/* Reset CSS */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Global Styles & Variables */
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
:root {
  --alegreya: "Alegreya Sans";
  --nunito: "Nunito Sans";
  --text-primary: #232121;
  --text-headings: #2b2a28;
  --text-secondary: #848687;
  --text-light: #fff;
  --accent-blue: #0daefd;
  --accent-blue-hover: #0095ff;
  --accent-red: #fe0c0b;
  --accent-red-hover: #d50201;
  --border-light: #d9d9d9;
  --border-medium: #ccc;
  --border-dark: #ddd;
  --border-catalog-nav: #e0e0e0;
  --border-product-line: #90b5c7;
  --background-light-blue: #f3f9fc;
  --background-catalog-nav: #f1f7fa;
  --background-button-hover-light: #f8f8f8;
  --background-header-nav-active: #f1f1f178;
  --background-slider-btn: rgba(217,217,217,.47);
  --background-slider-btn-hover: rgba(217,217,217,.7);
}
html,
body {
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
body {
  font-family: var(--nunito);
}
img {
  max-width: 100%;
  height: auto;
}
.container {
  width: 1310px;
  max-width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}
.container-fluid {
  max-width: 100%;
  padding: 0 15px;
}
.mt-50 {
  margin-top: 50px;
}
.center {
  text-align: center;
}

/* Scroll Reveal Animations */
.reveal-fade-up,
.portfolio-grid__item,
.portfolio a,
.our-works a {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}
.reveal-fade-up.is-revealed,
.portfolio-grid__item.is-revealed,
.portfolio a.is-revealed,
.our-works a.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.overlay {
  background-color: rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: -15px;
    z-index: 100;
    background-image: linear-gradient(95deg, #ff7e00 20%, #c9264a 80%);
    color: var(--text-light);
    padding: 12px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(150%) rotate(-7deg);
    background-size: 200% 100%;
}
.floating-cta.visible {
    opacity: 1;
    transform: translateY(0) rotate(-7deg);
    animation: wobble 20s ease-in-out infinite, gradient-flow 4s ease infinite;
}
.floating-cta:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    animation-play-state: paused;
}
.floating-cta__text {
    font-family: var(--alegreya);
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}
.floating-cta__timer {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes wobble {
  0%, 4%, 100% { transform: translateY(0) rotate(-7deg); }
  0.6% { transform: translateY(-8px) rotate(-9deg); }
  1.2% { transform: translateY(0) rotate(-5deg); }
  1.8% { transform: translateY(-4px) rotate(-8deg); }
  2.4% { transform: translateY(0) rotate(-6deg); }
  3.0% { transform: translateY(-2px) rotate(-7deg); }
}

/* Desktop CTA Widget */
.desktop-cta {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 101;
}
.desktop-cta__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
}
.desktop-cta.active .desktop-cta__list {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.desktop-cta__item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
    padding: 0;
}
.desktop-cta__item:hover {
    transform: scale(1.1);
    background-color: var(--accent-red-hover);
}
.desktop-cta__item svg {
    width: 24px;
    height: 24px;
    fill: var(--text-light);
}
.desktop-cta__phones-wrapper { position: relative; }
.desktop-cta__phones-tooltip {
    position: absolute;
    right: 120%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    pointer-events: none;
}
.desktop-cta__phones-tooltip.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: all;
}
.desktop-cta__phones-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.desktop-cta__phones-tooltip .tooltip-phone-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 10px 0;
}
.desktop-cta__phones-tooltip .tooltip-phone-link:not(:last-child) {
    border-bottom: 1px solid #eee;
}
.desktop-cta__phones-tooltip .val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-headings);
    transition: 0.3s;
}
.desktop-cta__phones-tooltip .lbl {
    font-size: 13px;
    color: var(--text-secondary);
}
.desktop-cta__phones-tooltip .tooltip-phone-link:hover .val {
    color: var(--accent-red);
}

.desktop-cta__social-icon {
    display: block;
    width: 50px;
    height: 50px;
    transition: transform 0.2s ease;
}
.desktop-cta__social-icon:hover {
    transform: scale(1.1);
}
.desktop-cta__social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.desktop-cta__toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-red);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
}
.desktop-cta__toggle:hover {
    transform: scale(1.05);
}
.desktop-cta__toggle-icon-open,
.desktop-cta__toggle-icon-close {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    fill: var(--text-light);
}
.desktop-cta__toggle-icon-close {
    transform: rotate(-90deg);
    opacity: 0;
}
.desktop-cta.active .desktop-cta__toggle-icon-open {
    transform: rotate(90deg);
    opacity: 0;
}
.desktop-cta.active .desktop-cta__toggle-icon-close {
    transform: rotate(0);
    opacity: 1;
}
.static-banner {
    display: none;
    margin-bottom: 30px;
}

/* Specific Page Template Section Paddings */
body.page-template-about-page main section.about-wrapper,
body.page-template-catalog-page main section.catalog-content,
body.page-template-contact-page main > section {
    padding: 0;
}
body.page-template-catalog-page main .catalog-content > .section-inner,
body.page-template-contact-page main > section > .section-inner {
    padding: 0;
}

/* Home Page Section Paddings */
.home-default-padding {
    padding-top: 65px;
    padding-bottom: 65px;
}
body.page-template-home-page-php main > section.banner,
body.home main > section.banner {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 65px;
}

/* Typography */
h1 {
    font-family: var(--alegreya);
    font-size: 52px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-headings);
    text-transform: uppercase;
    margin-bottom: 30px;
}
h2, .h2 {
    font-family: var(--alegreya);
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-headings);
    text-transform: uppercase;
    margin-bottom: 30px;
}
h3, .h3 {
  font-family: var(--alegreya);
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-headings);
  text-transform: uppercase;
  margin-bottom: 30px;
}
p {
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 400;
}
p:not(:last-child) {
  margin-bottom: 20px;
}

/* Buttons & Links */
.btn {
  font-size: 16px;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: center;
  min-width: 180px;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-weight: 700;
  -webkit-box-shadow: 0px 4px 15px rgba(0,0,0,0.15);
          box-shadow: 0px 4px 15px rgba(0,0,0,0.15);
  position: relative;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  -webkit-box-shadow: 0px 6px 20px rgba(0,0,0,0.2);
          box-shadow: 0px 6px 20px rgba(0,0,0,0.2);
}
.btn--red {
  background-color: var(--accent-red);
  color: var(--text-light);
}
.btn--red:hover {
  background-color: var(--accent-red-hover);
  color: var(--text-light);
}
.btn--border {
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  background-color: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.btn--border:hover {
  border-color: var(--accent-blue-hover);
  background-color: var(--accent-blue-hover);
  color: var(--text-light);
  -webkit-box-shadow: 0px 6px 20px rgba(13,174,253,0.3);
          box-shadow: 0px 6px 20px rgba(13,174,253,0.3);
}
.btn--w100 {
  width: 100%;
}
.more-btn {
  font-size: 16px;
  line-height: 1.3;
  color: #1f2123;
  font-weight: 400;
  text-decoration: underline;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}
.more-btn:hover {
  text-decoration: none;
  color: var(--accent-red-hover);
}
.page-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}
.page-link:hover {
  color: var(--accent-red-hover);
}
.page-link:hover svg {
  stroke: var(--accent-red-hover);
}
.page-link svg {
  width: 46px;
  height: 29px;
  stroke: var(--accent-blue);
  stroke-width: 2;
  fill: var(--text-light);
  -webkit-transition: inherit;
  -o-transition: inherit;
  transition: inherit;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 30px 0;
  font-size: 14px;
  line-height: 1.3;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 16px;
}
.breadcrumbs li:not(:first-child)::before {
  content: '/';
  margin: 0 8px;
  color: var(--text-secondary);
}
.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}
.breadcrumbs a:hover {
  color: var(--accent-blue-hover);
}
.breadcrumbs li:last-child span {
  color: var(--text-primary);
}

/* Yandex Map Balloon */
.balloon { padding: 5px 40px 5px 10px; }
.balloon__address { font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--text-primary); margin-bottom: 10px; }

/* Slider Buttons (Swiper) */
.slider-btn { border-radius: 50%; background-repeat: no-repeat; background-size: 20%; background-position: center center; cursor: pointer; box-shadow: 0px 0px 10px 0px rgba(0,0,0,.1019607843); background-color: var(--background-slider-btn); border: 2px solid var(--text-light); flex-shrink: 0; transition: .3s; }
.slider-btn:hover { background-color: var(--background-slider-btn-hover); }
.slider-btn--xl { width: 100px; height: 100px; }
.slider-btn--md { width: 60px; height: 60px; }
.slider-btn--prev { background-image: url("../img/prev.svg"); }
.slider-btn--next { background-image: url("../img/next.svg"); }

/* Search Form (Relevanssi) */
.search-form { position: relative; width: 310px; }
.search-form .search-field { font-size: 14px; padding: 8px 10px 8px 34px; border: 1px solid var(--border-light); background-color: var(--text-light); border-radius: 8px; width: 100%; outline: none; }
.search-form .search-submit { background-image: url("../img/search.svg"); background-repeat: no-repeat; background-size: cover; background-position: center; border: none; background-color: rgba(0,0,0,0); width: 16px; height: 16px; left: 10px; top: 50%; transform: translate(0, -50%); position: absolute; padding: 0; }
.search-form .relevanssi-live-search-result-status p,
.search-form .relevanssi-live-search-no-results { font-size: 16px; padding: 5px 10px; margin-bottom: 0; }
.search-form .relevanssi-live-search-result p { padding: 0; margin-bottom: 0; }
.search-form .relevanssi-live-search-result p a { font-size: 16px; padding: 5px 10px; color: var(--text-headings); text-decoration: none; transition: .3s; display: block; }
.search-form .relevanssi-live-search-result p a:hover { color: var(--accent-red); }
.search-form .relevanssi-live-search-results { top: 100%; left: 0; width: 100%; background-color: var(--text-light); border: 1px solid var(--border-light); border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); z-index: 10; }

/* Header */
.header { top: 0; left: 0; width: 100%; padding: 0; z-index: 100; background-color: var(--text-light); }
.header.sticky { position: fixed; }
.header-top__inner { display: flex; align-items: center; padding: 20px 0; gap: 10px; }
.header__contact { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.header__contact svg { width: 24px; height: 24px; fill: var(--text-light); stroke: var(--text-secondary); stroke-width: 1.5; transition: .3s; }
.header__contact a, .header__contact span { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.3; font-weight: 400; color: var(--text-primary); text-decoration: none; font-family: var(--nunito); transition: .3s; }
.header__contact a:hover { color: var(--accent-red); }
.header__contact a:hover svg { stroke: var(--accent-red); }

/* Header Phones Dropdown */
.header__phones-wrapper {
    position: relative;
    margin-left: 20px;
}
.header__phones-main {
    display: flex;
    align-items: center;
    gap: 5px;
}
.header__tell { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.3; font-weight: 400; color: var(--text-primary); text-decoration: none; font-family: var(--nunito); transition: .3s; }
.header__tell svg { width: 24px; height: 24px; fill: var(--text-light); stroke: var(--text-secondary); stroke-width: 1.5; transition: .3s; }
.header__tell:hover { color: var(--accent-red-hover); }
.header__tell:hover svg { stroke: var(--accent-red-hover); }

.header__phones-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header__phones-toggle svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
    transition: transform 0.3s;
}
.header__phones-toggle.is-active svg {
    transform: rotate(180deg);
}
.header__phones-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--text-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 10;
}
.header__phones-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.header__phones-dropdown ul li:not(:last-child) {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}
.header__phones-dropdown a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.header__phones-dropdown .phone-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-headings);
    transition: 0.3s;
}
.header__phones-dropdown .phone-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.header__phones-dropdown a:hover .phone-val {
    color: var(--accent-red);
}

.header__social { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.header__social li { height: 24px; display: flex; align-items: center; }
.header__social a { width: 24px; height: 24px; display: inline-block; transition: .3s; flex-shrink: 0; }
.header__social a img { width: 100%; height: 100%; display: block; }
.header__social a:hover { transform: scale(1.1); }
.header-bot { box-shadow: 0px 4px 30px 0px rgba(164,164,164,.2509803922); padding: 2px 0; }
.header-bot__inner { display: flex; align-items: center; }
.header__logo { width: 80px; display: block; flex-shrink: 0; }
.header__logo img { display: block; width: 100%; height: auto; }
.header__nav { margin-left: 70px; }
.header__nav ul { display: flex; align-items: center; gap: 0 70px; }
.header__nav a {
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px 6px 12px;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  color: var(--text-secondary);
  margin-right: 10px;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.header__nav li:last-child > a { margin-right: 0; }
.header__nav a:hover {
  background-color: var(--background-button-hover-light);
  border-color: #888;
  color: var(--accent-red);
}
.header__nav li.current-menu-item > a {
  background-color: var(--background-header-nav-active);
  color: var(--accent-red);
  border-color: var(--border-medium);
}
.header__nav li.current-menu-item > a:hover {
  background-color: var(--background-header-nav-active);
  color: var(--accent-red);
  border-color: var(--border-medium);
}
.fancybox__container { --fancybox-bg: rgba(24, 24, 27, 0.90); }
.header__btn { margin-left: auto; }
.header__lg { display: none; align-items: center; gap: 10px; flex: 1 1 auto; }
.header__link { font-size: 18px; line-height: 1.3; color: var(--text-primary); font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
.header__link:hover { color: var(--accent-blue-hover); }
.mobile-menu-btn { display: none; width: 30px; height: 30px; margin-left: 10px; cursor: pointer; }
.mobile-menu-btn img { width: 100%; height: 100%; display: block; }
.mobile-menu { display: none; position: fixed; top: 0; right: -340px; width: 300px; height: 100vh; overflow-y: auto; background-color: var(--text-light); transition: .5s ease-in-out; z-index: 102; box-shadow: -10px 0px 20px 0px rgba(0,0,0,.2); }
.mobile-menu.show { right: 0; }
.mobile-menu__head { display: flex; align-items: center; padding: 5px 10px; box-shadow: 0px 5px 12px -2px rgba(34,60,80,.3); height: 67px; }
.mobile-menu__logo { width: 60px; }
.mobile-menu__logo img { display: block; width: 100%; height: auto; }
.mobile-menu__close { width: 30px; height: 30px; margin-left: auto; cursor: pointer; }
.mobile-menu__close img { width: 100%; height: 100%; display: block; }
.mobile-menu__body { height: calc(100vh - 60px); padding: 30px 10px; }
.mobile-menu__nav { margin-bottom: 30px; }
.mobile-menu__nav li a { color: #000; font-size: 18px; text-decoration: none; display: block; padding: 10px 0; }
.mobile-menu__contact li { display: block; padding: 10px 0; }
.mobile-menu__contact li a, .mobile-menu__contact li>div { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.3; font-weight: 400; color: var(--text-primary); text-decoration: none; font-family: var(--nunito); transition: .3s; }
.mobile-menu__contact li a svg, .mobile-menu__contact li>div svg { width: 24px; height: 24px; fill: var(--text-light); stroke: var(--text-secondary); stroke-width: 1.5; transition: .3s; flex-shrink: 0; }
.mobile-menu__social { display: flex; align-items: center; gap: 20px; }
.mobile-menu__social a { width: 30px; height: 30px; }
.mobile-menu__social a img { width: 100%; height: 100%; display: block; }

/* Footer */
.footer { margin-top: auto; padding-top: 65px; }
.footer__inner { background-color: var(--text-primary); position: relative; z-index: 10; }
.footer__nav ul { display: flex; justify-content: center; gap: 0 70px; padding: 50px 0; }
.footer__nav a { font-family: var(--alegreya); font-size: 18px; line-height: 1.3; font-weight: 400; color: var(--text-light); text-transform: uppercase; text-decoration: none; transition: .3s; }
.footer__nav a:hover { color: var(--accent-red-hover); }
.footer__bottom { padding: 30px 0; border-top: 1px solid var(--text-light); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer__item { display: flex; align-items: center; }
.footer__logo { display: inline-block; flex-shrink: 0; margin-right: 125px; max-width: 96px; }
.footer__logo img { display: block; width: 100%; height: auto; }
.footer__address { font-size: 16px; line-height: 1.3; font-weight: 400; color: var(--text-light); }
.footer__contact { margin-right: 54px; }
.footer__contact li { text-align: right; }
.footer__contact li:not(:last-child) { margin-bottom: 5px; }
.footer__contact a { color: var(--text-light); text-decoration: none; line-height: 1.3; font-weight: 400; transition: .3s; }
.footer__contact a:hover { color: var(--accent-red-hover); }
.footer__tel { font-size: 20px; }
.footer__email { font-size: 18px; }

/* Popups */
.popup { margin: 0 auto; padding: 70px 30px; background-color: #fff; width: 895px; max-width: 90%; border-radius: 24px; display: none; box-sizing: border-box; }
#send-popup { width: 470px; }
.popup__title { font-family: var(--alegreya); font-size: 40px; line-height: 1.2; color: #2b2a28; font-weight: 700; text-align: center; text-transform: uppercase; margin-bottom: 30px; }
.popup__text { font-size: 20px; font-weight: 400; line-height: 1.3; color: #2b2a28; text-align: center; margin-bottom: 30px; }
.popup__ok { text-align: center; margin-bottom: 20px; }
.popup__ok img { max-width: 85px; }
.popup__form { max-width: 400px; margin: 0 auto; }
.productions__catalog-link-wrapper { margin-top: 35px; }
.productions__catalog-link-wrapper .productions-popup__link { font-size: 15px; color: var(--text-secondary); box-shadow: none; -webkit-box-shadow: none; text-decoration: none; }
.productions__catalog-link-wrapper .productions-popup__link:hover { color: var(--text-secondary); text-decoration: none; }
#productions-popup .productions-popup__link { color: var(--text-secondary); background-color: transparent; box-shadow: none; -webkit-box-shadow: none; border: 1px solid var(--text-secondary); }
#productions-popup .productions-popup__link:hover { color: var(--text-light); border-color: var(--accent-red-hover); background-color: var(--accent-red-hover); }
.popup-form-style.fancybox__content { background: #fff !important; border-radius: 20px !important; padding: 60px 120px !important; max-width: 895px !important; box-sizing: border-box !important; }
.popup-form-style .popup__title, .popup-form-style .form-title { max-width: 600px; font-family: var(--alegreya); font-size: 40px; line-height: 1.2; font-weight: 700; color: #2b2a28; margin: 0 auto 30px; text-align: center; text-transform: uppercase; }
.popup-form-style .wpcf7 { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.popup-form-style .wpcf7 p { text-align: left !important; width: 100% !important; margin-bottom: 10px; display: block !important; position: relative; }
.popup-form-style .wpcf7 .wpcf7-form-control-wrap { width: 100%; max-width: 505px; padding-top: 5px; display: block; position: relative; margin: 0 auto; }
.popup-form-style .wpcf7 .wpcf7-form-control-wrap input, .popup-form-style .wpcf7 .wpcf7-form-control-wrap textarea, .popup-form-style .wpcf7 .wpcf7-form-control-wrap select { width: 100%; border: 1px solid #B0B0B0; border-radius: 8px; padding: 12px 15px; box-sizing: border-box; font-size: 16px; margin: 0 auto 5px; outline: none; font-family: var(--nunito); }
.popup-form-style .wpcf7 input[type="submit"] { display: block; width: 100%; max-width: 505px; margin: 10px auto 0; background: red; color: #fff; border: none; border-radius: 8px; padding: 12px 15px; font-size: 16px; text-transform: uppercase; cursor: pointer; transition: background 0.3s; }
.popup-form-style .wpcf7 input[type="submit"]:hover { background: #cc0000; }
.popup-form-style .wpcf7 .wpcf7-form-control-wrap:last-of-type textarea { resize: both; max-width: 387px; max-height: 160px; min-width: 360px; min-height: 100px; }

/* Forms (Contact Form 7) - General */
.form label { display: block; margin-bottom: 20px; }
.form input:not([type="submit"]):not(.btn):not([type="checkbox"]), .form textarea { font-size: 16px; line-height: 1.3; font-weight: 400; color: #2b2a28; width: 100%; padding: 15px 20px; border: 1px solid #b0b0b0; border-radius: 8px; outline: none; box-sizing: border-box; }
.form input:not([type="submit"]):not(.btn)::-webkit-input-placeholder, .form textarea::-webkit-input-placeholder { color: #b0b0b0; }
.form input:not([type="submit"]):not(.btn)::-moz-placeholder, .form textarea::-moz-placeholder { color: #b0b0b0; }
.form input:not([type="submit"]):not(.btn):-ms-input-placeholder, .form textarea:-ms-input-placeholder { color: #b0b0b0; }
.form input:not([type="submit"]):not(.btn)::-ms-input-placeholder, .form textarea::-ms-input-placeholder { color: #b0b0b0; }
.form input:not([type="submit"]):not(.btn)::placeholder, .form textarea::placeholder { color: #b0b0b0; }
.form input[type="submit"] { margin-top: 10px; display: inline-block; background-color: red; color: #fff; border: none; border-radius: 8px; padding: 12px 25px; cursor: pointer; font-size: 16px; text-transform: uppercase; transition: background 0.3s; max-width: 177px; }
.form input[type="submit"]:hover { background-color: #cc0000; }
.form p { position: relative; margin-bottom: 20px; }
.form p:last-of-type { margin-bottom: 0; }
.wpcf7-not-valid-tip { position: absolute; background-color: tomato; color: #fff; font-size: 12px; line-height: 1.5; left: 0; top: 100%; padding: 0 20px; width: 100%; box-sizing: border-box; z-index: 2; }
.wpcf7-spinner { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; margin-top: 5px; }
.wpcf7-response-output { margin-top: 20px; padding: 10px; border: 1px solid; border-radius: 8px; }
.wpcf7-mail-sent-ok { border-color: green; }
.wpcf7-mail-sent-ng, .wpcf7-validation-errors { border-color: red; }

/* Text Consent for Forms */
.form-consent-text {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}
.form-consent-text a {
    color: var(--accent-blue);
    text-decoration: underline;
    transition: 0.3s;
}
.form-consent-text a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

/* Banner Section */
.banner { margin-bottom: 65px; position: relative; }
.banner-slider:not(.swiper-initialized) .banner-slide:first-child { visibility: visible !important; opacity: 1 !important; }
.banner .banner-control { position: absolute; bottom: 50px; left: 50%; margin-left: 285px; z-index: 105; display: flex; align-items: center; gap: 0 50px; height: 100px; }
.banner .banner-pagination { font-family: var(--alegreya); font-size: 40px; line-height: 1.2; font-weight: 500; color: #fff !important; width: 70px; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.banner .banner-pagination span { color: #fff !important; }
.banner-slide { padding: 150px 0; position: relative; height: auto; overflow: hidden; }
.banner-slide::before { content: ""; display: block; width: 75%; height: 100%; background: linear-gradient(270deg, rgba(0,0,0,0) 0%, #0450d9 60.66%, #25B6FD 100%); position: absolute; top: 0; left: 0; z-index: 1; }
.banner-slide picture, .banner-slide img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-slide__inner { max-width: 625px; position: relative; z-index: 2; }
.banner-slide__title { font-family: var(--alegreya); font-size: 40px; color: var(--text-light); line-height: 1.2; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; min-height: 192px; word-wrap: break-word; overflow-wrap: break-word; }
.banner-slide__text { font-size: 24px; line-height: 1.3; font-weight: 400; color: var(--text-light); margin-bottom: 30px; min-height: 63px; }

/* Productions Section */
.productions__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; grid-auto-rows: 312px; min-height: 996px; }
.productions .productions-card { border-radius: 8px; background-repeat: no-repeat; background-size: cover; background-position: center; display: flex; flex-direction: column; text-decoration: none; position: relative; overflow: hidden; transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; box-shadow: 0px 5px 15px rgba(0,0,0,0.1); background-color: #ffffff; }
.productions .productions-card:hover { transform: translateY(-10px); box-shadow: 0px 12px 30px rgba(0,0,0,0.25); }
.productions .productions-card picture, .productions .productions-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 1.5s; z-index: 1; }
.productions .productions-card__inner { min-height: 170px; width: 100%; margin-top: auto; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #00000080 100%); font-family: var(--alegreya); font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--text-light); text-transform: uppercase; position: relative; z-index: 2; text-align: center;}

.productions .productions-card:nth-child(1) { grid-area: 1/1/2/3; } /* 2x1 */
.productions .productions-card:nth-child(2) { grid-area: 1/3/2/4; } /* 1x1 */
.productions .productions-card:nth-child(3) { grid-area: 1/4/2/5; } /* 1x1 */
.productions .productions-card:nth-child(4) { grid-area: 2/1/3/2; } /* 1x1 */
.productions .productions-card:nth-child(5) { grid-area: 2/2/3/3; } /* 1x1 */
.productions .productions-card:nth-child(6) { grid-area: 2/3/3/5; } /* 2x1 */
.productions .productions-card:nth-child(7) { grid-area: 3/1/4/3; } /* 2x1 */
.productions .productions-card:nth-child(8) { grid-area: 3/3/4/5; } /* 2x1 */

/* Page Form Section */
.page-form { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #0daefd; border-radius: 24px; overflow: hidden; }
.page-form__inner { max-width: 500px; margin: 0 auto; padding: 70px 30px; }
.page-form__subtitle { font-size: 18px; line-height: 1.3; color: #2b2a28; font-weight: 400; margin-top: -10px; margin-bottom: 30px; }
.page-form .form { width: 100%; }
.page-form__r { position: relative; }
.page-form__r img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

/* Numbers */
.s-numbers { background: #fff; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.numbers-item { padding: 40px 20px; border-radius: 16px; background: #fff; border: 1px dashed var(--border-product-line); text-align: center; transition: box-shadow 0.3s ease; }
.numbers-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); border-color: transparent; }
.numbers-item__val { font-family: var(--alegreya); font-size: 56px; font-weight: 800; color: var(--text-headings); margin-bottom: 10px; line-height: 1.1; }
.numbers-item__text { font-size: 18px; font-weight: 600; color: var(--text-secondary); line-height: 1.4; }

/* S-Commerce Section (Why Us) */
.s-commerce { background-color: var(--background-light-blue); }
.commerce__row { display: flex; gap: 40px; }
.commerce__l { width: calc(40% - 20px); }
.commerce__r { width: calc(60% - 20px); display: flex; flex-direction: column; align-items: flex-start; }
.commerce__subtitle { font-size: 24px; line-height: 1.4; font-weight: 600; color: var(--text-headings); position: relative; max-width: 450px; }
.commerce__subtitle:before { content: ""; display: block; height: 3px; width: 100px; background-color: var(--accent-red); margin-top: 40px; border-radius: 2px; }

.commerce__list { 
    background-color: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(254, 12, 11, 0.05);
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    margin-bottom: 0; 
    width: 100%;
}
.commerce__list li { 
    background-color: transparent; 
    padding: 0 0 0 45px; 
    border-radius: 0; 
    box-shadow: none; 
    border-left: none; 
    display: flex; 
    align-items: flex-start; 
    font-size: 18px; 
    line-height: 1.4; 
    font-weight: 500; 
    color: var(--text-headings); 
    transition: color 0.3s ease-out; 
    list-style-type: none; 
    cursor: default; 
    user-select: none; 
    position: relative; 
    margin-bottom: 0; 
}
.commerce__list li:hover { transform: none; box-shadow: none; color: var(--accent-blue); }
.commerce__list li:before { 
    content: ""; position: absolute; left: 0; top: 2px; width: 28px; height: 28px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230daefd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); 
    background-size: contain; background-repeat: no-repeat; display: block; 
}

/* Whom we serve (Glassmorphism) */
.s-whom { background: linear-gradient(135deg, #1d435f 0%, #0daefd 100%); color: #fff; padding: 80px 0; }
.s-whom .h2 { color: #fff; }
.whom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.whom-card { background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 40px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.2); position: relative; transition: transform 0.3s ease; }
.whom-card:hover { transform: translateY(-5px); }
.whom-card__title { font-size: 26px; font-weight: 700; margin-bottom: 15px; font-family: var(--alegreya); text-transform: uppercase; }
.whom-card__text { font-size: 16px; line-height: 1.6; opacity: 0.9; }
.whom-card__num { position: absolute; bottom: 20px; right: 30px; font-size: 56px; font-family: var(--alegreya); opacity: 0.2; font-weight: 800; line-height: 1; z-index: 1; pointer-events: none; }

/* Steps */
.s-steps { background-color: #fcfcfc; }
.steps-grid { display: flex; align-items: stretch; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.step-card { flex: 1; min-width: 250px; background: #fff; padding: 40px 30px; border-radius: 16px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: relative; z-index: 2; transition: box-shadow 0.3s; }
.step-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.step-card__num { font-family: var(--alegreya); color: var(--text-secondary); font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-weight: 700; }
.step-card__title { font-size: 22px; font-weight: 700; font-family: var(--alegreya); color: var(--text-headings); margin-bottom: 15px; }
.step-card__text { font-size: 16px; color: var(--text-secondary); line-height: 1.4; }
.step-arrow { display: flex; align-items: center; justify-content: center; width: 40px; height: auto; position: relative; z-index: 1; }
.step-arrow::after { content: "→"; font-size: 24px; color: var(--accent-blue); background: var(--background-light-blue); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: sans-serif; font-weight: bold; }

/* Partners */
.s-partners { background-color: #fff; }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partners-item { border: 1px solid var(--border-light); border-radius: 8px; padding: 20px; display: flex; align-items: center; justify-content: center; aspect-ratio: 2/1; background: #fff; transition: box-shadow 0.3s; }
.partners-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: transparent; }
.partners-item img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); transition: filter 0.3s; }
.partners-item:hover img { filter: grayscale(0%); }

/* FAQ */
.s-faq { background-color: #f4f4f4; }
.faq-row { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; align-items: start; }
.faq-title-box { background-color: var(--accent-red); padding: 50px 40px; border-radius: 16px; box-shadow: 0 10px 30px rgba(254,12,11,0.2); position: sticky; top: 100px; }
.faq-title-box h2 { color: #fff; margin: 0; font-family: var(--nunito); font-weight: 800; text-transform: uppercase; font-size: 40px; line-height: 1.2; }
.faq-right { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border-medium); overflow: hidden; }
.faq-item__q { padding: 25px 0; font-size: 18px; font-weight: 700; color: var(--text-headings); cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-transform: uppercase; font-family: var(--nunito); transition: color 0.3s; }
.faq-item__q:hover { color: var(--accent-blue); }
.faq-item__toggle { width: 32px; height: 32px; border-radius: 50%; border: none; background: #e0e0e0; cursor: pointer; position: relative; transition: 0.3s; flex-shrink: 0; margin-left: 20px; }
.faq-item__toggle::before, .faq-item__toggle::after { content: ''; position: absolute; background: #555; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: 0.3s; }
.faq-item__toggle::before { width: 14px; height: 2px; }
.faq-item__toggle::after { width: 2px; height: 14px; }
.faq-item.active .faq-item__toggle::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item.active .faq-item__toggle { background: var(--accent-blue); }
.faq-item.active .faq-item__toggle::before { background: #fff; }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item__a-inner { padding: 0 0 25px 0; font-size: 16px; color: var(--text-secondary); line-height: 1.6; font-weight: 400; }

/* Sertificates Slider */
.sertificates { margin-right: auto; margin-left: 0; }
.sertificates .swiper-slide { width: 175px; margin-right: 15px; }
.sertificates .swiper-slide:last-child { margin-right: 0; }
.sertificates .swiper-slide img { width: 100%; display: block; }

/* Our Works Section */
.our-works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.our-works a { display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 1 / 1; }
.our-works a img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.our-works a:hover img { transform: scale(1.05); }

/* Old Whom Section (Gos, Arhi) */
.whom { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.whom__item { overflow: hidden; position: relative; }
.whom-gos { background-color: #29475f; background-repeat: no-repeat; background-position: left center; background-size: cover; padding: 60px; border-radius: 24px; position: relative; }
.whom-gos::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(7, 56, 96, 0.4) 0%, rgba(31, 82, 125, 0.7) 40%, #265984 100%); border-radius: inherit; z-index: 0; }
.whom-gos__inner { position: relative; z-index: 1; max-width: 450px; width: 100%; margin-left: auto; color: var(--text-light); }
.whom-gos__title { font-family: var(--alegreya); font-size: 36px; font-weight: 700; text-transform: uppercase; margin-bottom: 40px; }
.whom-gos__subtitle { font-size: 20px; line-height: 1.3; font-weight: 700; margin-bottom: 20px; }
.whom-gos__f { font-family: var(--alegreya); font-size: 40px; line-height: 1.2; font-weight: 700; margin-bottom: 40px; }
.whom-gos__list { margin-bottom: 50px; padding-left: 0; }
.whom-gos__list li { font-size: 20px; line-height: 1.3; font-weight: 700; position: relative; padding-left: 20px; list-style-type: none; }
.whom-gos__list li::before { content: ""; display: inline-block; width: 6px; height: 6px; background-color: var(--text-light); border-radius: 50%; position: absolute; left: 0; top: 10px; }
.whom-gos__list li:not(:last-child) { margin-bottom: 20px; }
.whom-gos__actions { display: flex; gap: 20px; }
.whom-gos__actions .btn { padding-left: 25px; padding-right: 25px; min-width: auto; }
.whom-arhi { background-image: url("../img/architectural-blueprints.webp"); background-repeat: no-repeat; background-size: cover; background-position: center; color: var(--text-primary); background-color: #e0eef4; border-radius: 24px; padding: 60px; }
.whom-arhi__img { position: absolute; bottom: 0; left: 50%; margin-left: -125px; z-index: 0; pointer-events: none; }
.whom-arhi__inner { max-width: 450px; width: 100%; position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; }
.whom-arhi__action { margin-top: auto; }
.whom-arhi__title { font-family: var(--alegreya); font-size: 36px; font-weight: 700; text-transform: uppercase; margin-bottom: 50px; }
.whom-arhi__f { font-family: var(--nunito); font-size: 36px; line-height: 1.3; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; }
.whom-arhi__f span { color: var(--accent-blue); }
.whom-arhi__text { font-size: 24px; line-height: 1.3; font-weight: 400; margin-bottom: 50px; }

/* --- About Page Styles --- */
.about-container { max-width: 1310px; margin: 0 auto; padding: 0 15px; }
.about__title { padding-bottom: 50px; margin-bottom: 50px; border-bottom: 1px solid var(--accent-blue); }
.about-wrapper { margin-top: 50px; }
.about-block { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; margin-bottom: 100px; }
.about-block > * { box-sizing: border-box; }
.about-img img { width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0px 4px 20px rgba(0,0,0,0.1); }
.about-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; }
.about-text__content { margin-bottom: 25px; }
.about-action { margin-top: 30px; }
.small-heading { font-size: 20px; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; line-height: 1.3; color: var(--text-primary); font-family: var(--nunito); }
.about .row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.about .row:not(:last-child) { margin-bottom: 100px; }
.about .row:nth-child(odd) .col:nth-child(2) { order: -1; }
.about .row img { width: 100%; border-radius: 16px; display: block; }
.about h3 { font-family: var(--alegreya); font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--text-primary); text-transform: uppercase; margin-bottom: 30px; }

/* Team (About) */
.about-team { background: #fcfcfc; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s; }
.team-card:hover { transform: translateY(-5px); }
.team-card__img { width: 100%; aspect-ratio: 1/1.2; overflow: hidden; background: #eee; }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; }
.team-card__info { padding: 25px 20px; }
.team-card__name { font-size: 18px; font-weight: 700; color: var(--text-headings); margin-bottom: 10px; }
.team-card__name span { font-weight: 400; color: var(--text-secondary); font-size: 14px; }
.team-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* Production Slider (About) */
.about-production { overflow: hidden; position: relative; }
.production-slider { padding: 20px 0; overflow: visible; }
.production-slider .swiper-slide { border-radius: 24px; overflow: hidden; transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease; opacity: 0.5; transform: scale(0.9); }
.production-slider .swiper-slide-active { opacity: 1; transform: scale(1); box-shadow: 0 10px 40px rgba(0,0,0,0.15); z-index: 2; position: relative; }
.production-slider img { width: 100%; height: 450px; object-fit: cover; display: block; }
.about-production .slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; margin-top: 20px; background-color: rgba(255,255,255,0.8); }
.about-production .slider-btn:hover { background-color: #fff; }
.about-production .slider-btn--prev { left: 10%; }
.about-production .slider-btn--next { right: 10%; }

/* --- Portfolio Page Styles --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 280px; gap: 30px; margin-top: 30px; }
.portfolio-grid__item { display: block; border-radius: 8px; overflow: hidden; grid-column: span 1; grid-row: span 1; }
.portfolio-grid__item.layout--h-span { grid-column: span 2; }
.portfolio-grid__item.layout--v-span { grid-row: span 2; }
.portfolio-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-grid__item:hover img { transform: scale(1.05); }
.portfolio-grid__item, .portfolio a, .our-works a { position: relative; }
.portfolio-grid__item::after, .portfolio a::after, .our-works a::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E"); background-size: 48px; background-position: center; background-repeat: no-repeat; opacity: 0; transition: opacity 0.3s ease; z-index: 2; pointer-events: none; border-radius: inherit; }
.portfolio-grid__item:hover::after, .portfolio a:hover::after, .our-works a:hover::after { opacity: 1; }

/* --- Catalog Page Styles --- */
.catalog-container { max-width: 1310px; margin: 0 auto; padding: 0 15px; }
.catalog-header { margin-bottom: 20px; }
.catalog-container > .h2 { margin: 0 0 20px 0; color: var(--text-primary); }
.catalog-row { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: flex-start; }
.catalog-content { scroll-margin-top: 120px; }
.catalog-nav { display: block ; position: static ; width: 100%; background-color: var(--background-catalog-nav); padding: 30px 20px 20px 20px; border-radius: 20px; margin: 0; box-shadow: 8px 8px 10px 0px rgba(164, 164, 164, .2509803922); }
.catalog-nav ul { list-style: none; margin: 0; padding: 0; }
.catalog-parent-link { display: block; font-size: 18px; font-weight: 700; color: var(--text-primary); text-decoration: none; margin: 0 0 20px; padding-bottom: 10px; border-bottom: 2px solid var(--border-catalog-nav); transition: color 0.3s ease; position: relative; }
.catalog-parent-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background-color: var(--accent-blue-hover); transition: width 0.4s ease-in-out; }
.catalog-parent-link:hover { text-decoration: none; color: var(--accent-blue-hover); }
.catalog-parent-link:hover::after, .catalog-parent-link.active-cat::after { width: 100%; }
.catalog-parent-link.active-cat { color: var(--accent-blue-hover); border-color: transparent; }
.catalog-nav ul > li:not(:first-of-type) > a.catalog-parent-link { margin-top: 40px; }
.catalog-child-link { display: block; font-size: 16px; color: var(--text-secondary); text-decoration: none; margin-bottom: 20px; transition: color 0.3s ease; }
.catalog-child-link:hover { text-decoration: none; color: var(--accent-blue-hover); }
.catalog-child-link.active-cat, .catalog-nav .current-cat .children .current-cat > a, .catalog-nav .current-cat > .children .current-cat-parent > a { color: var(--accent-blue-hover); font-weight: 700; }
.catalog-nav .catalog-list > .children ul, .catalog-nav ul.catalog-child-list { padding-left: 10px; }
.catalog-nav .catalog-list > li > .children > li > a { display: block; font-size: 20px; line-height: 1.3; font-weight: 400; color: var(--text-primary); padding-bottom: 10px; border-bottom: 1px solid var(--border-product-line); margin-bottom: 20px; transition: color 0.3s ease; }
.catalog-nav .catalog-list > li > .children > li > a:hover { text-decoration: none; color: var(--accent-blue-hover);}
.catalog-nav .catalog-list > li > .children .children a { display: block; font-size: 16px; line-height: 1.3; font-weight: 400; color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.catalog-nav .catalog-list > li > .children .children a:hover { text-decoration: none; color: var(--accent-blue-hover); }
.catalog-nav .catalog-list > li > .children .children li { margin-bottom: 20px; }
.catalog-nav__head { display: none; align-items: center; padding: 10px 20px; margin: 0 -20px 20px -20px; box-shadow: 0px 4px 30px 0px rgba(164,164,164,.2509803922); }
.catalog-nav__title { font-size: 20px; line-height: 1.3; color: var(--text-primary); font-weight: 700; }
.catalog-nav__close { width: 24px; height: 24px; margin-left: auto; cursor: pointer; }
.catalog-nav__close img { width: 100%; height: 100%; display: block; }
.filter-btn { display: none; padding: 10px; font-size: 18px; line-height: 1.3; color: var(--text-primary); font-weight: 700; text-align: center; background-color: var(--background-catalog-nav); margin-top: -15px; margin-bottom: 20px; cursor: pointer; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 0; align-self: start; }
.product-card { border: 1px solid var(--border-dark); border-radius: 8px; overflow: hidden; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; justify-content: flex-end; color: var(--text-primary); text-decoration: none; padding: 30px 20px 20px; position: relative; }
.product-card:hover { transform: scale(1.01); box-shadow: 0 0 15px 0px rgba(0, 149, 255, 0.7); }
.product-card .product-card__img { width: 100%; aspect-ratio: 1.4/1; overflow: hidden; margin-bottom: 10px; }
.product-card .product-card__img img {  transition: transform 0.3s; }
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card .product-card__article { font-size: 14px; color: var(--text-secondary); margin-bottom: 5px; text-align: left; }
.product-card .product-card__title { font-size: 20px; font-weight: 400; color: var(--text-primary); text-align: left; margin-top: 5px; }
.catalog-pagination { margin: 40px 0; text-align: center; }
.catalog-pagination .page-numbers { display: inline-block; margin: 0 5px; padding: 6px 12px; border: 1px solid var(--border-dark); color: var(--text-primary); text-decoration: none; transition: 0.3s; font-size: 18px; font-weight: 400; line-height: 1; }
.catalog-pagination .page-numbers.current, .catalog-pagination .page-numbers:hover { background-color: var(--accent-blue-hover); color: var(--text-light); border-color: var(--accent-blue-hover); }
.catalog-bigdesc { margin-top: 175px; margin-bottom: 50px; }
.catalog-bigdesc h3 { font-family: var(--alegreya); font-size: 38px; font-weight: 700; line-height: 1.2; text-transform: uppercase; margin-bottom: 50px; color: var(--text-primary); }
.catalog-bigdesc-content { display: flex; gap: 20px; }
.catalog-bigdesc-text { flex: 1; font-size: 18px; color: var(--text-secondary); line-height: 1.5; }
.catalog-bigdesc-text p { margin-bottom: 1em; }
.catalog-bigdesc-text ul { list-style-type: disc; margin-left: 20px; margin-top: 1em; margin-bottom: 1em; }
.catalog-bigdesc-text li { margin-bottom: 0.5em; }
.catalog-bigdesc-text strong { font-weight: bold; }
.catalog-bigdesc-img { flex: 1; }
.catalog-bigdesc-img img { width: 100%; height: auto; display: block; border-radius: 15px; }

/* --- Product Page (Single Product) Styles --- */
.product-container { --heading-color: var(--text-primary); --text-color: var(--text-secondary); --line-color: var(--accent-blue); --border-line: var(--border-product-line); --button-bg: var(--accent-red); --button-hover: var(--accent-red-hover); --font-base: "Nunito Sans"; max-width: 1310px; margin: 0 auto; padding: 0 15px; font-family: var(--font-base); color: var(--heading-color); }
.product-top-block { display: grid; grid-template-columns: 50% 50%; gap: 30px; margin: 20px 0; padding-bottom: 0; border-bottom: none; }
.product-left { position: relative; }
.product-gallery-default { display: flex; flex-direction: column; gap: 20px; }
.product-left img { width: 100%; height: auto; border-radius: 8px; object-fit: cover; display: block; }
.product-right { display: flex; flex-direction: column; text-align: left; }
.product-title { font-family: var(--alegreya); font-size: 48px; font-weight: 700; text-transform: uppercase; margin: 0 0 10px 0; color: var(--heading-color); line-height: 1.2; }
.product-article { font-size: 16px; color: var(--heading-color); font-weight: 400; margin-bottom: 15px; }
.product-container .line { border: none; border-top: 1px solid var(--border-line); margin: 10px 0; }
.product-container .section-divider { border: none; border-top: 1px solid var(--border-line); margin: 30px 0; }
.product-container .section-divider:not(:first-of-type) { display: none; }
.product-two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 20px 0; }
.product-field { font-size: 16px; line-height: 1.4; color: var(--heading-color); font-weight: 400; margin-bottom: 30px; }
.product-field strong { display: block; margin-bottom: 5px; color: var(--heading-color); font-size: 16px; line-height: 1.3; font-weight: normal; }
.product-field .product-value { font-size: 32px; font-weight: 700; color: var(--heading-color); line-height: 1.3; }
.product-right .btn-red { display: inline-block; margin-top: 20px; padding: 15px 30px; background-color: var(--button-bg); color: var(--text-light); border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; text-transform: uppercase; white-space: nowrap; max-width: 200px; min-width: 160px; text-align: center; transition: 0.3s; cursor: pointer; border: none; box-shadow: 0px 4px 20px rgba(0,0,0,0.15); }
.product-right .btn-red:hover { background-color: var(--button-hover); transform: translateY(-2px); box-shadow: 0px 6px 20px rgba(0,0,0,0.2); }
.product-info-block { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 100px 0 60px; }
.product-info-block .info-heading h2 { display: inline-block; font-family: var(--alegreya); font-size: 30px; font-weight: 400; text-transform: uppercase; color: var(--heading-color); margin: 0 0 10px; line-height: 50px; text-decoration: underline; text-decoration-color: var(--line-color); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.product-info-block .info-col .text { font-size: 18px; line-height: 1.5; color: var(--text-color); margin: 0 0 15px; }
.similar-products { margin-bottom: 40px; }
.similar-products > h2 { font-family: var(--alegreya); font-size: 42px; text-transform: uppercase; font-weight: 700; color: var(--heading-color); margin: 0 0 40px; line-height: 1.2; }
.product__img--mob { display: none; grid-template-columns: 1fr 1fr; padding: 20px 0; border-bottom: 1px solid var(--border-product-line); gap: 15px; }
.product__img--desctop { display: block; }
.product__img--desctop img:not(:last-child) { margin-bottom: 20px; }
.product-char { margin-bottom: 50px; }
.product-char__list { padding: 40px 0; border-bottom: 1px solid var(--border-product-line); display: grid; grid-template-columns: 1fr 1fr; gap: 50px 30px; }
.product-char__name { font-size: 16px; line-height: 1.3; color: var(--text-secondary); font-weight: 400; margin-bottom: 10px; }
.product-char__text { font-size: 32px; line-height: 1.3; color: var(--text-primary); font-weight: 700; }
.product-discr { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.product-discr__title { font-family: var(--alegreya); font-size: 36px; line-height: 1.3; font-weight: 400; color: var(--text-primary); display: inline-block; border-bottom: 1px solid var(--accent-blue); margin-bottom: 30px; }

/* --- News Archive Styles --- */
.news-archive-container .breadcrumbs { font-size: 14px; margin-bottom: 10px; white-space: nowrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 20px; width: 100%; }
.news-card { display: flex; flex-direction: column; background: transparent; border-radius: 0; overflow: hidden; width: 100%; }
.news-card__img { width: 100%; aspect-ratio: 1/1; margin-bottom: 15px; overflow: hidden; border-radius: 10px; display: block; background-color: #f5f5f5; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.news-card__content { padding: 15px 0 0 0; display: flex; flex-direction: column; flex-grow: 1; }
.news-card__date { font-size: 14px; color: #888; margin-bottom: 10px; font-weight: 400; }
.news-card__title { font-size: 20px; font-weight: bold; margin-bottom: 15px; line-height: 1.3; }
.news-card__title a { color: #333; text-decoration: none; }
.news-card__text { font-size: 16px; line-height: 1.4; color: #555; flex-grow: 1; margin-bottom: 10px; font-weight: 400; }
.news-card__link { text-decoration: underline; color: inherit; font-size: 16px; margin-top: auto; }

/* --- Single News Page Styles --- */
.single-news-container .breadcrumbs { font-size: 14px; margin-bottom: 20px; white-space: nowrap; }
.single-news__inner { max-width: 900px; margin: 0 auto; }
.single-news__img { width: 100%; height: auto; max-height: 450px; object-fit: cover; margin-bottom: 20px; border-radius: 10px; }
.single-news__date { font-size: 16px; color: #888; margin-bottom: 10px; font-weight: 600; }
.single-news__title { font-family: var(--alegreya); font-size: 28px; font-weight: bold; line-height: 1.2; margin-bottom: 20px; margin-top: 40px; text-transform: uppercase; text-align: left; color: #222; width: 100%; }
.single-news__text { font-size: 18px; line-height: 1.6; color: var(--text-secondary); text-align: left; width: 100%; margin: 40px 0px 35px 0; }
.single-news__text p { color: var(--text-secondary); font-size: inherit; line-height: inherit; margin-bottom: 15px; }
.single-news__text p:not(:last-child) { margin-bottom: 15px; }

/* Contact Page */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact__inner { border: 1px solid var(--text-primary); border-radius: 16px; padding: 60px; }
.contact__map { border-radius: 16px; overflow: hidden; height: 100%; min-height: 400px; }
.contact__item:not(:last-child) { margin-bottom: 50px; }
.contact__name { font-size: 16px; line-height: 1.5; color: var(--text-secondary); font-weight: 400; margin-bottom: 10px; }
.contact__text { display: flex; align-items: center; gap: 15px; font-size: 18px; line-height: 1.3; font-weight: 400; color: var(--text-primary); text-decoration: none; }
.contact__text img { width: 24px; height: 24px; flex-shrink: 0; }
.contact a.contact__text:hover { text-decoration: underline; }
.contact__phones-list { display: flex; flex-direction: column; gap: 10px; }
.contact__social { display: flex; gap: 30px; }
.contact__social a { text-decoration: none; transition: .3s; width: 28px; height: 28px; }
.contact__social a img { display: block; width: 100%; height: 100%; }
.contact__social a:hover { transform: scale(1.1); }

/* Portfolio Page */
.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.portfolio a { aspect-ratio: 1; display: block; }
.portfolio img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

/* Similar Products Slider */
.similar-prod { position: relative; }
.similar-prod:hover .slider-btn { opacity: 1; }
.similar-prod .slider-btn { position: absolute; top: 50%; transform: translate(0, -50%); z-index: 10; opacity: 0; }
.similar-prod .slider-btn.swiper-button-disabled { display: none; }
.similar-prod .slider-btn--prev { left: 10px; }
.similar-prod .slider-btn--next { right: 10px; }

/* Search Page */
.search-page { padding-top: 30px; }
.search-page > .h3 { margin-bottom: 30px; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Main Page specific text style */
.main-prod-text { font-size: 20px; line-height: 1.6; }

/* Navigation Links (Pagination - General fallback) */
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; margin-top: 50px; }
.nav-links span, .nav-links a { padding: 8px 10px; border: 1px solid var(--text-headings); text-decoration: none; font-size: 18px; color: var(--text-headings); font-weight: 400; line-height: 1; transition: .3s; }
.nav-links span.current, .nav-links a.current, .nav-links span:hover, .nav-links a:hover { background-color: var(--text-headings); color: var(--text-light); }

/* Privacy Policy & Standard Content Pages */
.privacy-content h2, .privacy-content h3 { font-family: var(--alegreya); color: var(--text-headings); margin-top: 40px; margin-bottom: 20px; line-height: 1.2; font-weight: 700; text-transform: none; }
.privacy-content h2 { font-size: 32px; }
.privacy-content h3 { font-size: 24px; }
.privacy-content p { margin-bottom: 15px; line-height: 1.6; font-size: 18px; }
.privacy-content ul { list-style: disc; margin-left: 20px; margin-bottom: 20px; }
.privacy-content ul li { margin-bottom: 10px; line-height: 1.6; font-size: 18px; }
.privacy-content a { color: var(--accent-blue); text-decoration: underline; transition: 0.3s; }
.privacy-content a:hover { color: var(--accent-red); text-decoration: none; }

/* ### Media Queries ### */
@media (max-width: 1640px) {
    .whom-arhi__img { margin-left: -160px; }
}

@media (max-width: 1310px) {
  .banner .banner-control { margin-left: 0; left: auto; right: 90px; gap: 15px; z-index: 105; }
  .banner .banner-pagination { font-size: 32px; }
}

@media (max-width: 1280px) {
  .header__nav ul { gap: 0 31px; }
}
@media (max-width: 1170px) {
  h1 { font-size: 48px; }
  h2, .h2 { font-size: 46px; }
  h3, .h3 { font-size: 28px; }
  .slider-btn--xl { width: 60px; height: 60px; }
  .slider-btn--md { width: 40px; height: 40px; }
  .header__contact { gap: 20px; }
  
  .header__phones-wrapper { margin-left: auto; }
  .header__phones-main .header__tell { width: 24px; height: 24px; border: 1px solid var(--accent-red); border-radius: 50%; justify-content: center; align-items: center; flex-shrink: 0; gap: 0; }
  .header__phones-main .header__tell span { display: none; }
  .header__phones-toggle { padding: 5px; }

  .header__social { margin-left: 0px; }
  .header__nav { margin-left: 30px; }
  .footer__item { gap: 20px 30px; }
  .footer__logo { margin-right: 0; }
  .footer__contact { margin-right: 0; }
  .productions__list { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; min-height: 0; }
  .productions .productions-card, .productions .productions-card:nth-child(1), .productions .productions-card:nth-child(2), .productions .productions-card:nth-child(3), .productions .productions-card:nth-child(4), .productions .productions-card:nth-child(5), .productions .productions-card:nth-child(6), .productions .productions-card:nth-child(7), .productions .productions-card:nth-child(8) { grid-area: auto; aspect-ratio: 312 / 220; }
  .about .row:not(:last-child), .about-block:not(:last-of-type) { margin-bottom: 50px; }
  .product-card .product-card__title { font-size: 18px; }
  .similar-prod { margin: 0 -15px; padding: 0 15px; }
  .similar-prod .swiper-slide { width: 280px; }
  .similar-prod .slider-btn { display: none; }
  .portfolio-grid .layout--h-span, .portfolio-grid .layout--v-span { grid-column: span 1; grid-row: span 1; }
  .whom { grid-template-columns: 1fr; }
  .whom-gos { border-radius: 24px; }
  .whom-arhi { border-radius: 24px; }
  .whom-arhi__img { margin-left: 0; left: auto; right: 0; }
}
@media (max-width: 1070px) {
  .lg-none { display: none; }
  .header { position: fixed; }
  .header-top { height: 70px; box-shadow: 0px 4px 30px 0px rgba(164,164,164,.2509803922); padding-top: 4px;}
  .header-top__inner { padding: 0px 0; }
  .header__contact, .header__phones-wrapper { display: none; }
  .header-bot { display: none; }
  .header__logo { width: 60px; }
  .header__nav { display: none; }
  .header__lg { display: flex; }
  .mobile-menu-btn { display: block; }
  .mobile-menu { display: block; }
  .breadcrumbs { padding: 95px 0 10px 0; }
  .search-page { padding-top: 85px; }
}
@media (max-width: 991px) {
  h1 { font-size: 46px; }
  h2, .h2 { font-size: 44px; }
  .about__title { font-size: 40px; }
  h3, .h3 { font-size: 24px; }
  h2 .ng-star-inserted  { font-size: 32px; }
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 220px; gap: 20px; }
  .our-works { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .footer__nav ul { gap: 0 30px; }
  .footer__bottom { gap: 20px; }
  .footer__logo { width: 60px; }
  .footer__tel, .footer__email { font-size: 16px; }
  .productions__list { grid-template-columns: repeat(2, 1fr); }
  
  /* New Blocks Responsive */
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .whom-grid { grid-template-columns: 1fr; }
  .faq-row { grid-template-columns: 1fr; gap: 30px; }
  .faq-title-box { padding: 30px; position: static; }
  .faq-title-box h2 { font-size: 32px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .commerce__row { flex-wrap: wrap; }
  .commerce__l, .commerce__r { width: 100%; }
  .commerce__subtitle { margin-bottom: 30px; padding-bottom: 0px; max-width: 100%; }
  .commerce__list { padding: 30px 20px; border-radius: 16px; }
  .commerce__list li { padding: 0 0 0 35px; margin-bottom: 20px; font-size: 18px; }
  .commerce__list li:before { width: 24px; height: 24px; top: 0; }
  .about__title { padding-bottom: 10px; margin-bottom: 15px; }
  
  /* About Block ordering fix */
  .about .row, .about-block { display: flex; flex-direction: column; gap: 30px; }
  .about-block { margin-bottom: 60px; }
  .about-text { order: 1; width: 100%; }
  .about-img { order: 2; width: 100%; }
  .about .row .col { order: 1; width: 100%; }
  .about .row img { order: 2; width: 100%; }

  .catalog-row { grid-template-columns: 1fr; margin-top: 0; }
  .catalog-nav { padding: 30px 60px 10px 60px; margin-bottom: 10px; border-radius: 15px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
  .search-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  body.page-template-home-page-php main > section:not(.banner):not(.s-commerce):not(.s-whom),
  body.home main > section:not(.banner):not(.s-commerce):not(.s-whom) { padding-top: 30px; padding-bottom: 30px; }
  body.page-template-home-page-php main section.s-commerce, body.home main section.s-commerce { padding: 50px 0; }
  .s-whom { padding: 50px 0; }
  .our-works { grid-template-columns: 1fr 1fr; gap: 20px; }
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: 180px; gap: 15px; }
  p { font-size: 16px; }
  .page-link { font-size: 16px; }
  .page-link svg { width: 32px; height: 20px; }
  .search-form { flex: 1 1 auto; width: auto; }
  .footer__bottom { flex-wrap: wrap; }
  .footer__item { justify-content: center; width: 100%; }
  .footer__item:first-child { flex-direction: column; }
  .footer__address { width: 100%; text-align: center; margin-top: 10px; }
  .footer__contact { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .footer__contact li { text-align: center; }
  .popup { padding: 40px 15px; border-radius: 16px; }
  .popup__title { font-size: 32px; }
  #productions-popup .popup__title { font-size: 26px; }
  .popup-form-style.fancybox__content { padding: 50px 15px !important; max-width: 90% !important; }
  .popup-form-style .popup__title, .popup-form-style .form-title { font-size: 24px; }
  .popup-form-style .wpcf7 .wpcf7-form-control-wrap input, .popup-form-style .wpcf7 .wpcf7-form-control-wrap textarea, .popup-form-style .wpcf7 .wpcf7-form-control-wrap select { padding: 12px 15px; }
  
  .banner { margin-bottom: 30px; }
  .banner .banner-control { bottom: 20px; right: 85px; }
  .banner-slide__title { font-size: 32px; min-height: 155px; }
  .banner-slide__text { font-size: 18px; }
  
  .page-form { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .page-form__r { display: none; }
  .sertificates { max-width: none; }
  .sertificates .swiper-wrapper { justify-content: flex-start; }
  
  /* New Blocks Responsive */
  .numbers-grid { grid-template-columns: 1fr; }
  .step-card { width: 100%; padding: 30px 20px; }
  .step-arrow { display: none; }
  .production-slider .swiper-slide { transform: scale(0.95); opacity: 0.6; }
  .production-slider .swiper-slide-active { transform: scale(1); opacity: 1; }
  .production-slider img { height: 300px; }
  .about-production .slider-btn { display: none; }

  .whom-gos { background-image: none !important; }
  .whom-gos::before { background: linear-gradient(90deg, rgba(7, 56, 96, 0.8) 0%, rgba(31, 82, 125, 0.9) 50%, #265984 100%); }
  .whom-gos__inner, .whom-arhi__inner { margin: 0 auto; width: 100%; max-width: 450px; }
  .whom-gos__title, .whom-arhi__title { font-size: 24px; }
  .whom-gos__subtitle { font-size: 18px; }
  .whom-gos__f { font-size: 32px; }
  .whom-gos__list li { font-size: 16px; }
  .whom-gos__actions { flex-wrap: wrap; }
  .whom-gos__actions .btn, .whom-arhi .btn { width: 100%; }
  .whom-arhi__img { display: none; }
  .whom-arhi__f { font-size: 24px; }

  .catalog-nav__head { display: flex; }
  .filter-btn { display: block; }
  .product-top-block { grid-template-columns: 1fr; }
  .product-container .section-divider { display: none; }
  .product-info-block { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact { grid-template-columns: 1fr; }
  .contact__inner { padding: 30px; }
  .contact__map { height: 400px; }
  .contact__item:not(:last-child) { margin-bottom: 30px; }
  .portfolio { grid-template-columns: repeat(3, 1fr); }
  .search-grid { grid-template-columns: repeat(3, 1fr); }
  .desktop-cta { right: 15px; bottom: 15px; }

  .catalog-nav .catalog-list > li > .children > li, .catalog-nav ul.catalog-child-list > li { margin-bottom: 15px; }
  .catalog-nav ul.catalog-child-list > li > a { font-size: 16px; }
  .catalog-nav .catalog-list > li > .children > li > a { font-size: 18px; }
  .about__title { font-size: 34px; }
  h2 .ng-star-inserted { font-size: 22px; }
}
@media (max-width: 576px) {
  h1 { font-size: 42px; }
  h2, .h2 { font-size: 40px; }
  .about__title { font-size: 24px; }
  h2 .ng-star-inserted { font-size: 20px; }
  .header-top { height: 60px; }
  .header__logo { width: 50px; }
  .header__social, .header__link { display: none; }
  .breadcrumbs { padding: 80px 0 15px 0; }
  
  .banner-slide__title { font-size: 28px; min-height: 135px; }
  .banner .banner-control { gap: 10px; right: 75px; }
  
  h3, .h3 { font-size: 18px; margin-bottom: 20px; }
  .btn { padding: 12px 20px; min-width: auto; }
  .slider-btn--xl { width: 40px; height: 40px; }
  .footer__nav { display: none; }
  .footer__bottom { border-top: none; padding: 20px 0; }
  .footer__item { flex-wrap: wrap; }
  .footer__contact { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 15px; }
  .footer__contact li { text-align: center; }
  .popup__text { font-size: 16px; }
  
  /* Hide Promo CTA and adjust Phone CTA scale on small screens */
  .floating-cta { display: none !important; }
  .desktop-cta { transform: scale(0.85); transform-origin: bottom right; right: 10px; bottom: 10px; }
  
  #productions-popup .popup__title { font-size: 22px; }
  #productions-popup .btn { width: 100%; }
  .popup-form-style .popup__title, .popup-form-style .form-title { font-size: 26px; }
  .popup-form-style.fancybox__content { padding: 30px 15px !important; max-width: 95% !important; }
  .popup-form-style .wpcf7 .wpcf7-form-control-wrap, .popup-form-style .wpcf7 .wpcf7-form-control-wrap:last-of-type textarea { max-width: 100%; min-width: auto; }
  .popup-form-style .wpcf7 .wpcf7-form-control-wrap input, .popup-form-style .wpcf7 .wpcf7-form-control-wrap textarea, .popup-form-style .wpcf7 .wpcf7-form-control-wrap select { padding: 10px 15px; }
  .form input:not([type="submit"]):not(.btn):not([type="checkbox"]), .form textarea { padding: 10px 15px; }
  .productions__list { gap: 15px; grid-auto-rows: auto;}
  .productions .productions-card__inner { font-size: 14px; padding: 10px 10px 15px 10px; }
  .page-form { border-radius: 15px; }
  .page-form__inner { padding: 40px 20px; }
  .page-form__subtitle { font-size: 16px; margin-bottom: 20px; }
  
  /* New Blocks Responsive */
  .numbers-item { padding: 25px 15px; }
  .numbers-item__val { font-size: 40px; }
  .whom-card { padding: 25px; }
  .whom-card__title { font-size: 20px; }
  .whom-card__num { font-size: 40px; }
  .faq-title-box { padding: 25px; }
  .faq-title-box h2 { font-size: 26px; }
  .faq-item__q { font-size: 16px; padding: 20px 0; }
  .team-grid { grid-template-columns: 1fr; }

  .commerce__subtitle { font-size: 18px; padding-bottom: 0px; margin-bottom: 30px; }
  .commerce__subtitle:before { margin-top: 20px; }
  .commerce__list li { padding: 0 0 0 35px; margin-bottom: 20px; font-size: 16px; }
  .commerce__list li:before { width: 20px; height: 20px; top: 0; }
  .sertificates { margin: 0 -15px; padding: 0 15px; }
  .sertificates .swiper-slide { max-width: 120px; }

  .whom-gos, .whom-arhi { padding: 40px 15px; }
  .whom-gos__inner, .whom-arhi__inner { width: 100%; }
  .whom-gos__title, .whom-arhi__title { font-size: 24px; }
  .whom-gos__subtitle { font-size: 18px; }
  .whom-gos__f { font-size: 32px; }
  .whom-gos__list li { font-size: 16px; }
  .whom-gos__actions { flex-wrap: wrap; }
  .whom-gos__actions .btn, .whom-arhi .btn { width: 100%; }
  .whom-arhi__f { font-size: 24px; }
  .whom-arhi__text { font-size: 16px; }

  .about__inner img { border-radius: 8px; }
  .about h3, .small-heading { margin-bottom: 20px; font-size: 18px; }
  .catalog-nav { padding: 30px 25px 10px 25px ; }
  .catalog-nav .catalog-list>li>.children>li>a, .catalog-nav ul.catalog-child-list > li > a { font-size: 16px; }
  .catalog-grid { gap: 20px; grid-template-columns: 1fr; }
  .product-card .product-card__img { margin-bottom: 15px; }
  .product-top-block { grid-template-columns: 1fr; border-bottom: none; padding-bottom: 30px; }
  .product__img--mob { display: grid; gap: 10px; }
  .product__img--desctop { display: none; }
  .product-right { gap: 15px; }
  .product-title { font-size: 24px; }
  .product-field .product-value { font-size: 24px; }
  .product-info-block { grid-template-columns: 1fr; margin: 30px 0; }
  .product-info-block .info-heading h2 { font-size: 30px; }
  .product-info-block .info-col p.text { font-size: 16px; }
  .search-grid { grid-template-columns: 1fr; }
  .similar-products > h2 { font-size: 40px; margin-bottom: 20px; }
  .nav-links span, .nav-links a { font-size: 16px; padding: 6px 8px; }
  .news-card__img { margin-bottom: 10px; }
  .news-card__date { font-size: 12px; margin-bottom: 5px; }
  .news-card__title { font-size: 16px; margin-bottom: 10px; }
  .news-card__text { font-size: 14px; margin-bottom: 10px; }
  .single-news__img { margin-bottom: 30px; }
  .single-news__title { font-size: 20px; margin-bottom: 20px; margin-top: 20px; }
  .single-news__text { font-size: 16px; margin: 20px 0 25px 0; }
  .contact__map { height: 300px; }
  .contact__text { font-size: 16px; }
  .contact__inner { padding: 20px; }
  .contact__item:not(:last-child) { margin-bottom: 20px; }
  .portfolio { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .portfolio-grid { grid-auto-rows: auto; }
  .portfolio-grid__item.layout--v-span, .portfolio-grid__item.layout--h-span { grid-column: span 1; grid-row: span 1; }
  .search-grid { gap: 10px; grid-template-columns: 1fr; }
  .main-prod-text { font-size: 16px; }
  .catalog-bigdesc-content { flex-direction: column; }
  .catalog-bigdesc-text, .catalog-bigdesc-img { flex: none; width: 100%; }
  .catalog-bigdesc-img { margin-top: 20px; }
}
@media (max-width: 480px) {
  .our-works { grid-template-columns: 1fr; gap: 15px; }
  .productions .productions-card__inner { padding: 8px; font-size: 12px; min-height: 120px; overflow: hidden; }
  .product-field .product-value { font-size: 20px; }
}
@media (max-width: 475px) {
    .banner { display: none !important; }
    .static-banner { display: block; }
    .banner-slide__title { font-size: 25px; min-height: 152px; }
}
@media (max-width: 391px) {
  .popup-form-style .popup__title { font-size: 24px; }
}
@media (max-width: 376px) {
    .banner-slide__title { font-size: 20px; min-height: 121px; }
    .banner-slide__text { font-size: 16px; }
}

/* Fix for empty Contact Form 7 response output */
.wpcf7-response-output:empty { display: none; }

/* --- 360 Product Viewer Additions --- */
.product-card__360-badge { position: absolute; top: 10px; right: 10px; z-index: 5; background-color: var(--accent-blue); color: var(--text-light); padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1; }
.product-360-trigger { position: absolute; top: 15px; right: 15px; z-index: 10; background-color: var(--accent-blue); color: var(--text-light); border: none; border-radius: 8px; padding: 8px 15px; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: background-color 0.3s ease, transform 0.3s ease; }
.product-360-trigger:hover { background-color: var(--accent-blue-hover); transform: scale(1.05); }
.product-360-container { position: relative; width: 100%; }
.product-360-viewer { width: 100% !important; height: auto !important; max-height: 420px; aspect-ratio: 704 / 478; cursor: ew-resize; overflow: hidden; background-color: #f0f0f0; background-repeat: no-repeat; background-size: cover; background-position: 0 -30px; }
.product-360-viewer img { display: none; }
.product-360-close { position: absolute; top: 15px; right: 15px; z-index: 20; background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 20px; line-height: 32px; text-align: center; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
.product-360-close:hover { background-color: rgba(0,0,0,0.8); transform: scale(1.1); }
.spinner-360 { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border: 5px solid rgba(0,0,0,0.1); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 1s linear infinite; z-index: 15; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (max-width: 576px) { .product-360-viewer { background-position: center center; } }

/* Красивые списки для текстовых блоков (О компании) */
.about-text__content ul {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0;
    margin-bottom: 20px;
}

.about-text__content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.about-text__content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
}




/* --- Floating Stock Button (Left Side) --- */
.side-stock-btn {
    position: fixed;
    left: 0; 
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--text-headings);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px 20px;
    border-radius: 0 12px 12px 0; 
    z-index: 100;
    text-decoration: none;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15); 
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.side-stock-btn:hover {
    background-color: var(--accent-blue);
    padding-left: 15px; 
    color: var(--text-light);
}

.side-stock-btn__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    stroke: var(--text-light);
    transition: transform 0.3s ease;
}

.side-stock-btn:hover .side-stock-btn__icon {
    transform: translateY(3px); 
}

.side-stock-btn__text {
    writing-mode: vertical-rl;
    transform: rotate(180deg); 
    font-family: var(--nunito);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Скрываем на планшетах и телефонах */
@media (max-width: 991px) {
    .side-stock-btn {
        display: none !important;
    }
}



/* --- Infinite Scroll Ajax Loader Additions (Task 5.3) --- */
.portfolio-ajax-loader {
    text-align: center;
    padding: 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-ajax-loader::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top-color: #0daefd;
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
}
@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

/* --- iOS Mobile Menu Background Scroll Lock (Task 5.10) --- */
html.lock-scroll,
body.lock-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}
