/* ============================================================
   KONTAREX — Production-Grade Stylesheet v2
   Methodology: BEM (Block__Element--Modifier)
   Approach: Mobile-first
   ============================================================ */

/* --- RESET & VARIABLES --- */
:root {
  --brand-blue: #004789;
  --brand-blue-dark: #003366;
  --brand-blue-light: #e8f0f8;
  --brand-orange: #FF5A00;
  --brand-orange-dark: #E04E00;
  --text-dark: #1A202C;
  --text-main: #4A5568;
  --text-light: #718096;
  --bg-light: #F7FAFC;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --header-topbar: 36px;
  --header-main: 72px;
  --header-height: calc(var(--header-topbar) + var(--header-main));
  --container-max: 1280px;
  --container-pad: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

/* When scroll is locked (menu/modal open), sticky breaks —
   switch header to fixed so it stays pinned at viewport top */
body.no-scroll .header {
  position: fixed;
  left: 0;
  right: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

address {
  font-style: normal;
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
}

.section-title--left {
  text-align: left;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--brand-orange);
  margin: 16px auto 0;
}

.section-title--left::after {
  margin-left: 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-orange);
  color: #fff;
  border: 2px solid var(--brand-orange);
}

.btn--primary:hover {
  background: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3);
}

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--outline {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
}

.btn--outline:hover {
  background: var(--brand-blue);
  color: #fff;
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--border-color);
}

.btn--ghost:hover {
  border-color: var(--brand-blue);
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* --- SCROLL ANIMATIONS --- */
.js-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-animate--visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--bg-white);
}

/* --- TOPBAR --- */
.header__topbar {
  background: var(--brand-blue);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  height: var(--header-topbar);
  display: none;
}

@media (min-width: 768px) {
  .header__topbar {
    display: flex;
    align-items: center;
  }
}

.header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__topbar-schedule,
.header__topbar-address {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.header__topbar-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.header__topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

.header__topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__topbar-email {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.header__topbar-email:hover {
  color: #fff;
}

.header__topbar-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__topbar-social {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  transition: color var(--transition);
}

.header__topbar-social:hover {
  color: #fff;
}

/* --- HEADER MAIN --- */
.header__main {
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: var(--header-main);
}

.header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
  padding: 5px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-img {
  height: 60px;
  width: auto;
}

/* --- HEADER NAV --- */
.header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .header__nav {
    display: block;
  }
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav-link,
.header__nav-trigger {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: width var(--transition);
}

.header__nav-link:hover {
  color: var(--brand-blue);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-trigger:hover {
  color: var(--brand-blue);
}

.header__nav-chevron {
  transition: transform var(--transition);
}

.header__nav-trigger[aria-expanded="true"] .header__nav-chevron {
  transform: rotate(180deg);
}

/* --- MEGA MENU --- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 3px solid var(--brand-blue);
  box-shadow: var(--shadow-lg);
  padding: 32px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 50;
}

.mega-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.mega-menu__heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-orange);
  display: inline-block;
}

.mega-menu__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-menu__link {
  font-size: 0.9rem;
  color: var(--text-main);
  transition: color var(--transition);
  padding: 2px 0;
}

.mega-menu__link:hover {
  color: var(--brand-orange);
}

.mega-menu__col--promo {
  display: flex;
  align-items: stretch;
}

.mega-menu__promo {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.mega-menu__promo-img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.mega-menu__promo-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.mega-menu__inner--services {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Scroll row for Projects/Blog mega-menus */
.mega-menu__scroll-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.mega-menu__scroll-row::-webkit-scrollbar {
  height: 4px;
}

.mega-menu__scroll-row::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 2px;
}

.mega-menu__scroll-row::-webkit-scrollbar-thumb {
  background: var(--brand-blue);
  border-radius: 2px;
}

.mega-menu__scroll-row {
  cursor: grab;
}

.mega-menu__scroll-row.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.mega-menu__scroll-row.is-dragging .mega-menu__card {
  pointer-events: none;
}

.mega-menu__card {
  user-select: none;
  -webkit-user-select: none;
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
}

.mega-menu__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mega-menu__card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.mega-menu__card-title {
  display: block;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

.mega-menu__card--all {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  min-height: 140px;
}

.mega-menu__card-all-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--brand-blue);
}

/* --- HEADER ACTIONS --- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__phone {
  display: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.header__phone:hover {
  color: var(--brand-blue);
}

@media (min-width: 768px) {
  .header__phone {
    display: block;
  }
}

.header__cta {
  font-size: 0.75rem;
  padding: 8px 14px;
}

@media (min-width: 768px) {
  .header__cta {
    font-size: 0.82rem;
    padding: 10px 22px;
  }
}

/* --- BURGER --- */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .header__burger {
    display: none;
  }
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.header__burger--open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger--open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger--open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- MOBILE NAV --- */
.mobile-nav {
  position: fixed;
  top: var(--header-main);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-nav--open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav__body {
  padding: 24px var(--container-pad) 40px;
}

.mobile-nav__list {
  border-top: 1px solid var(--border-color);
}

.mobile-nav__item {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav__link {
  display: block;
  padding: 16px 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}

.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}

.mobile-nav__toggle svg {
  transition: transform var(--transition);
}

.mobile-nav__toggle--open svg {
  transform: rotate(180deg);
}

.mobile-nav__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-nav__submenu--open {
  max-height: 800px;
}

.mobile-nav__submenu .mobile-nav__link {
  font-size: 0.95rem;
  font-weight: 400;
  padding: 10px 0 10px 20px;
  color: var(--text-main);
}

.mobile-nav__footer {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
}

.mobile-nav__phone {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.mobile-nav__schedule {
  font-size: 0.85rem;
  color: var(--text-light);
}


/* ============================================================
   PAGE HEADER & BREADCRUMBS (global)
   ============================================================ */
.page-header {
  padding: 32px 0 24px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.page-header__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1.1;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.breadcrumbs__item::after {
  content: '/';
  color: var(--border-color);
}

.breadcrumbs__item--current::after {
  display: none;
}

.breadcrumbs__item--current {
  color: var(--text-dark);
  font-weight: 600;
}

.breadcrumbs__link {
  color: var(--text-light);
  transition: color var(--transition);
}

.breadcrumbs__link:hover {
  color: var(--brand-blue);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-main));
  overflow: hidden;
  background: var(--text-dark);
}

@media (min-width: 768px) {
  .hero {
    min-height: calc(100vh - var(--header-height));
  }
}

.hero__slides {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-main));
  min-height: 480px;
}

@media (min-width: 768px) {
  .hero__slides {
    height: calc(100vh - var(--header-height));
  }
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__slide--active {
  opacity: 1;
}

.hero__slide-bg {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 65% 0, 45% 100%, 0 100%);
}

@media (max-width: 767px) {
  .hero__slide-bg {
    clip-path: polygon(0 0, 100% 0, 100% 55%, 0 75%);
  }
}

.hero__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide-content {
  position: relative;
  display: flex;
  align-items: center;
  min-height: inherit;
  height: 100%;
  z-index: 100;
}

.hero__slide-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 20, 50, 0.7) 0%, rgba(0, 71, 137, 0.3) 40%, transparent 60%);
  z-index: -1;
}

.hero__slide-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(100vh - var(--header-main));
  padding-top: 40px;
  padding-bottom: 100px;
}

@media (min-width: 768px) {
  .hero__slide-inner {
    min-height: calc(100vh - var(--header-height));
    padding-bottom: 120px;
  }
}

@media (max-width: 767px) {
  .hero__slide-inner {
    justify-content: center;
    text-align: center;
  }
}

.hero__text-block {
  max-width: 560px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero__slide--active .hero__text-block {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 767px) {
  .hero__text-block {
    transform: translateY(30px);
    max-width: 100%;
    padding-top: 40px;
  }

  .hero__slide--active .hero__text-block {
    transform: translateY(0);
  }
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero__title-accent {
  color: var(--brand-orange);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

@media (max-width: 767px) {
  .hero__subtitle {
    max-width: 100%;
  }
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- DIAGONAL OVERLAY (pseudo-element, below text) --- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(135deg,
    transparent 40%,
    rgba(0, 30, 60, 0.85) 40%,
    rgba(0, 30, 60, 0.92) 100%
  );
}

@media (max-width: 767px) {
  .hero::after {
    background: linear-gradient(180deg,
      transparent 45%,
      rgba(0, 30, 60, 0.9) 65%,
      rgba(0, 30, 60, 0.95) 100%
    );
  }
}

/* --- HERO ARROWS --- */
.hero__nav {
  position: absolute;
  bottom: 48px;
  right: 40px;
  z-index: 150;
  display: flex;
  gap: 12px;
}

@media (max-width: 767px) {
  .hero__nav {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
  }
}

.hero__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  transition: all var(--transition);
  background: rgba(0, 0, 0, 0.2);
}

.hero__arrow:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

/* --- HERO DOTS --- */
.hero__dots {
  position: absolute;
  bottom: 48px;
  left: 40px;
  z-index: 150;
  display: flex;
  gap: 10px;
}

@media (max-width: 767px) {
  .hero__dots {
    display: none;
  }
}

.hero__dot {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--transition);
}

.hero__dot--active {
  background: var(--brand-orange);
  width: 56px;
}


/* ============================================================
   TRUST TRIGGERS
   ============================================================ */
.trust {
  padding: 48px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .trust {
    padding: 56px 0;
  }
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.trust__item {
  text-align: center;
  padding: 20px 12px;
}

.trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--bg-light);
  border-radius: 50%;
  transition: transform var(--transition);
}

.trust__item:hover .trust__icon {
  transform: scale(1.08);
}

.trust__label {
  font-size: 0.9rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.trust__desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}


/* ============================================================
   CATALOG
   ============================================================ */
.catalog {
  padding: 72px 0;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .catalog {
    padding: 96px 0;
  }
}

.catalog__tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.catalog__tab {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  transition: all var(--transition);
}

.catalog__tab:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.catalog__tab--active {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.catalog__tab--active:hover {
  color: #fff;
}

.catalog__panel {
  display: none;
}

.catalog__panel--active {
  display: block;
}

.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 540px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .catalog__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- PRODUCT CARD --- */
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-light);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-orange);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.product-card__badge--new {
  background: var(--brand-blue);
}

.product-card__badge--sale {
  background: #C62828;
}

.product-card__body {
  padding: 20px;
}

.product-card__title {
  font-size: 1rem;
  margin-bottom: 6px;
  letter-spacing: 0;
}

.product-card__size {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.product-card__price {
  font-size: 1rem;
  color: var(--brand-orange);
  margin-bottom: 16px;
}

.product-card__price strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.product-card__old-price {
  text-decoration: line-through;
  opacity: 0.7;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-left: 8px;
}

.product-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__actions .btn {
  flex: 1;
  min-width: 0;
}

/* --- CATALOG FOOTER --- */
.catalog__footer {
  text-align: center;
  margin-top: 40px;
}

.catalog__more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  transition: gap var(--transition), color var(--transition);
}

.catalog__more-link:hover {
  gap: 14px;
  color: var(--brand-orange);
}


/* ============================================================
   QUIZ / CALCULATOR
   ============================================================ */
.quiz {
  padding: 72px 0;
  background: var(--bg-white);
}

@media (min-width: 768px) {
  .quiz {
    padding: 96px 0;
  }
}

.quiz__wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .quiz__wrapper {
    padding: 48px 40px;
  }
}

.quiz__header {
  text-align: center;
  margin-bottom: 32px;
}

.quiz__title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quiz__desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.quiz__progress {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.quiz__progress-bar {
  height: 100%;
  background: var(--brand-orange);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz__step-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- QUIZ STEPS --- */
.quiz__body {
  min-height: 260px;
}

.quiz__step {
  display: none;
}

.quiz__step--active {
  display: block;
  animation: quizFadeIn 0.35s ease;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.quiz__question {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz__option {
  cursor: pointer;
}

.quiz__option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.quiz__option-box {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.quiz__option-box:hover {
  border-color: var(--brand-blue);
}

.quiz__option-input:checked + .quiz__option-box {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.quiz__option-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.quiz__form-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: center;
}

.quiz__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
}

/* --- QUIZ NAV --- */
.quiz__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.quiz__nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.quiz__nav-btn:hover:not(:disabled) {
  background: var(--brand-blue-light);
}

.quiz__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.quiz__nav-btn--next {
  margin-left: auto;
}


/* ============================================================
   EXPLODED VIEW
   ============================================================ */
.exploded {
  padding: 72px 0;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .exploded {
    padding: 96px 0;
  }
}

.exploded__wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.exploded__image-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.exploded__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* --- HOTSPOTS --- */
.exploded__hotspot {
  position: absolute;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  z-index: 5;
  border-radius: 50%;
  background: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition);
}

.exploded__hotspot:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.exploded__hotspot-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  animation: hotspotPulse 2s infinite;
}

@keyframes hotspotPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.exploded__hotspot-icon {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

/* --- TOOLTIPS (Desktop: positioned near hotspot) --- */
.exploded__tooltip {
  position: absolute;
  width: 260px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 10;
  pointer-events: none;
}

.exploded__tooltip--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Position tooltips relative to hotspots */
.exploded__tooltip[data-tooltip="0"] { top: 14%; left: 55%; }
.exploded__tooltip[data-tooltip="1"] { top: 28%; left: 20%; }
.exploded__tooltip[data-tooltip="2"] { top: 38%; right: 2%; left: auto; }
.exploded__tooltip[data-tooltip="3"] { top: 53%; left: 45%; }
.exploded__tooltip[data-tooltip="4"] { top: 78%; left: 65%; }

.exploded__tooltip-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1;
  transition: color var(--transition);
}

.exploded__tooltip-close:hover {
  color: var(--text-dark);
}

.exploded__tooltip-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-right: 20px;
}

.exploded__tooltip-text {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Mobile overlay mode */
@media (max-width: 767px) {
  .exploded__tooltip {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100vw - 48px);
    max-width: 340px;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 200;
  }

  .exploded__tooltip--open {
    transform: translate(-50%, -50%) scale(1);
  }
}


/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 72px 0;
  background: var(--bg-white);
}

@media (min-width: 768px) {
  .services {
    padding: 96px 0;
  }
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.05);
}

.service-card__body {
  padding: 24px 20px;
}

.service-card__title {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}


/* ============================================================
   ABOUT / PRODUCTION
   ============================================================ */
.about {
  padding: 72px 0;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .about {
    padding: 96px 0;
  }
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.about__text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.about__counter {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.about__counter-value {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--brand-blue);
  line-height: 1;
}

.about__counter-suffix {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--brand-orange);
}

.about__counter-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

.about__images {
  position: relative;
}

.about__img--main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__img--secondary {
  display: none;
}

@media (min-width: 768px) {
  .about__img--secondary {
    display: block;
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 45%;
    border-radius: var(--radius-md);
    border: 4px solid var(--bg-light);
    box-shadow: var(--shadow-lg);
  }
}


/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: 72px 0;
  background: var(--bg-white);
}

@media (min-width: 768px) {
  .portfolio {
    padding: 96px 0;
  }
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  grid-auto-flow: dense;
}

@media (min-width: 540px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }

  .portfolio__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.portfolio__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  min-height: 200px;
}

.portfolio__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 60, 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: background var(--transition);
}

.portfolio__name {
  font-size: 1.1rem;
  color: #fff;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.portfolio__tag {
  font-size: 0.85rem;
  color: var(--brand-orange);
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  transition-delay: 0.05s;
  margin-top: 6px;
}

.portfolio__item:hover .portfolio__overlay {
  background: rgba(0, 30, 60, 0.78);
}

.portfolio__item:hover .portfolio__img {
  transform: scale(1.05);
}

.portfolio__item:hover .portfolio__name,
.portfolio__item:hover .portfolio__tag {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: always show overlay text */
@media (max-width: 767px), (pointer: coarse) {
  .portfolio__overlay {
    background: linear-gradient(0deg, rgba(0, 20, 50, 0.85) 0%, transparent 60%);
    justify-content: flex-end;
    padding-bottom: 16px;
  }

  .portfolio__name,
  .portfolio__tag {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio__footer {
  text-align: center;
  margin-top: 40px;
}


/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison {
  padding: 72px 0;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .comparison {
    padding: 96px 0;
  }
}

.comparison__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-white);
}

.comparison__table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparison__th,
.comparison__td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.comparison__th {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.comparison__th--feature {
  background: var(--bg-light);
  color: var(--text-light);
  width: 30%;
  position: sticky;
  left: 0;
  z-index: 2;
}

.comparison__th--modular {
  background: var(--brand-blue);
  color: #fff;
}

.comparison__th--capital {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
}

.comparison__th--accent {
  background: var(--brand-orange);
  color: #fff;
}

.comparison__td--feature {
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-white);
  position: sticky;
  left: 0;
  z-index: 2;
}

.comparison__td--modular {
  background: rgba(0, 71, 137, 0.03);
}

.comparison__td--capital {
  background: var(--bg-white);
}

.comparison__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.comparison__badge--good {
  background: #e6f9ee;
  color: #0d7a3e;
}

.comparison__badge--bad {
  background: #fef0ec;
  color: #b83a1a;
}

/* Mobile sticky column shadow */
@media (max-width: 767px) {
  .comparison__th--feature,
  .comparison__td--feature {
    min-width: 140px;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.06);
  }
}


/* ============================================================
   BLOG
   ============================================================ */
.blog {
  padding: 72px 0;
  background: var(--bg-white);
}

@media (min-width: 768px) {
  .blog {
    padding: 96px 0;
  }
}

.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card__link {
  display: block;
}

.blog-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 20px;
}

.blog-card__date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.4;
}

.blog__footer {
  text-align: center;
  margin-top: 40px;
}


/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 72px 0;
  background: var(--bg-light);
}

@media (min-width: 768px) {
  .faq {
    padding: 96px 0;
  }
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--bg-white);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 24px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  transition: color var(--transition);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-light);
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__item--open .faq__question {
  color: var(--brand-blue);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq__item--open .faq__answer {
  max-height: 300px;
}

.faq__answer-inner {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}


/* ============================================================
   CEO MESSAGE
   ============================================================ */
.ceo {
  padding: 72px 0;
  background: var(--bg-white);
}

@media (min-width: 768px) {
  .ceo {
    padding: 96px 0;
  }
}

.ceo__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ceo__wrapper {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }
}

.ceo__photo-col {
  text-align: center;
}

.ceo__photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .ceo__photo {
    height: 100%;
    min-height: 360px;
  }
}

.ceo__content-col {
  /* text side */
}

.ceo__label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-orange);
}

.ceo__quote {
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--brand-blue);
  margin-bottom: 16px;
  max-height: 250px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.ceo__quote::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to top, var(--bg-white) 0%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .ceo__quote {
    max-height: 400px;
  }
}

.ceo__quote.is-expanded {
  max-height: 2000px;
}

.ceo__quote.is-expanded::after {
  opacity: 0;
}

.ceo__quote.ceo__quote--no-spoiler {
  max-height: none;
  overflow: visible;
}

.ceo__quote.ceo__quote--no-spoiler::after {
  display: none;
}

.ceo__quote p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 12px;
}

.ceo__quote p:last-child {
  margin-bottom: 0;
}

.ceo__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-blue);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.ceo__toggle:hover {
  color: var(--brand-orange);
}

.ceo__toggle--hidden {
  display: none;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer__top {
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__top-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer__top-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__top-inner {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
  }
}

.footer__logo {
  display: block;
  margin-bottom: 16px;
}

.footer__logo-img {
  height: 170px;
  width: auto;
}

.footer__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--brand-orange);
  color: #fff;
}

.footer__col-title {
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--brand-orange);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-link {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__contact-link:hover {
  color: var(--brand-orange);
}

.footer__address,
.footer__schedule {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- FOOTER BOTTOM --- */
.footer__bottom {
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: 0.85rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer__legal-link {
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer__legal-link:hover {
  color: var(--brand-orange);
}


/* ============================================================
   MODALS
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal--open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 40, 0.6);
  backdrop-filter: blur(4px);
}

.modal__container {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  /* clamp(Мин отступ, Резиновый отступ, Макс отступ на ПК) */
  padding: clamp(32px, 5vw, 48px);
  width: 100%;
  /* Даем модалке растянуться до 600px на ПК, на мобилке она займет 100% */
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
}

.modal--open .modal__container {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text-light);
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--text-dark);
}

.modal__title {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal__subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.modal__form .form-field {
  margin-bottom: 16px;
}
.modal__form .form-checkbox {
  margin-bottom: 16px;
}

.modal__form .wpcf7-not-valid-tip {
  font-size: 0.8rem;
  margin-top: 4px;
  line-height: 1.2;
  display: block;
}

.modal__form .wpcf7-response-output {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

/* --- FORMS --- */
.modal__form {
  display: flex;
  flex-direction: column;
  /* Увеличиваем расстояние между полями (было 16px) */
  gap: 24px;
}

/* Страховка: CF7 любит вставлять пустые абзацы и переносы, которые ломают отступы */
.modal__form p {
  margin: 0;
  padding: 0;
  width: 100%;
}
.modal__form br {
  display: none;
}

.form-field__input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition);
  outline: none;
}

.form-field__input::placeholder {
  color: var(--text-light);
}

.form-field__input:focus {
  border-color: var(--brand-blue);
}

.form-field__input--textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-light);
}

.form-checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.form-checkbox__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-color);
  border-radius: 3px;
  margin-top: 1px;
  transition: all var(--transition);
}

.form-checkbox__box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform var(--transition);
  margin-top: -2px;
}

.form-checkbox__input:checked + .form-checkbox__box {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.form-checkbox__input:checked + .form-checkbox__box::after {
  transform: rotate(-45deg) scale(1);
}

.form-checkbox__label a {
  color: var(--brand-blue);
  text-decoration: underline;
}

.form-checkbox__label a:hover {
  color: var(--brand-orange);
}


/* --- Inline text links (strictly scoped to SEO / FAQ content blocks) --- */
.seo-block a,
.faq a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.seo-block a:hover,
.faq a:hover {
  color: var(--brand-orange);
}

/* --- Mobile horizontal scroll fix --- */
@media (max-width: 768px) {
  body, html { overflow-x: clip; width: 100%; }
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999999;
  max-width: 400px;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: toastIn 0.35s ease-out, toastOut 0.35s ease-in 3.65s forwards;
  pointer-events: auto;
}

.toast-notification--success {
  background: var(--brand-blue, #004789);
}

.toast-notification--error {
  background: #E53E3E;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(24px); }
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1;
  padding: 16px;
  line-height: 1;
}

.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

@media (max-width: 767px) {
  .lightbox__nav {
    font-size: 2rem;
    padding: 10px;
  }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
}

/* ============================================================
   CONTENT TABLE (global — used by catalog, services-single)
   ============================================================ */
.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.content-table thead th {
  background: var(--text-dark);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.content-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.content-table tbody tr:last-child td {
  border-bottom: none;
}

.content-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

/* Sticky first column modifier */
.content-table--sticky-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

@media (max-width: 767px) {
  .content-table--sticky th:first-child,
  .content-table--sticky td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 100px;
  }

  .content-table--sticky thead th:first-child {
    background: var(--text-dark);
  }

  .content-table--sticky tbody tr:nth-child(even) td:first-child {
    background: #f5f5f5;
  }

  .content-table--sticky tbody tr:nth-child(odd) td:first-child {
    background: var(--bg-white);
  }
}

/* =============================================================
   ПОИСК (ПК И МОБИЛЬНАЯ ВЕРСИЯ)
   ============================================================= */

/* Триггер (Лупа) в шапке на ПК */
.header__search-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #12273f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  margin-right: 25px; /* Отступ до телефона */
  transition: color 0.3s;
}
.header__search-trigger:hover {
  color: #f36c21;
}

/* Оверлей поиска на ПК */
.header__main-inner {
  position: relative; /* Важно: контейнер для абсолютного оверлея */
}
.header__search-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  z-index: 50; /* Поверх всех элементов шапки */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.header__search-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-overlay__form {
  display: flex;
  flex: 1;
  align-items: center;
  height: 100%;
}
.search-overlay__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  padding: 10px 20px;
  background: transparent;
  font-family: inherit;
  color: #12273f;
}
.search-overlay__input::placeholder {
  color: #aeb8c3;
}
.search-overlay__submit,
.search-overlay__close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #12273f;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}
.search-overlay__submit:hover,
.search-overlay__close:hover {
  color: #f36c21;
}

/* Мобильная строка поиска в бургере */
.mobile-nav__search {
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
}
.mobile-search__form {
  display: flex;
  align-items: center;
  background: #f4f5f7;
  border-radius: 4px;
  padding: 5px 15px;
}
.mobile-search__input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  padding: 10px 0;
  color: #12273f;
  font-family: inherit;
}
.mobile-search__input::placeholder {
  color: #aeb8c3;
}
.mobile-search__submit {
  background: transparent;
  border: none;
  color: #f36c21;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

/* Скрываем элементы ПК-поиска на мобильных (Подстрой max-width под свой брейкпоинт бургера) */
@media (max-width: 991px) {
  .header__search-trigger,
  .header__search-overlay {
    display: none !important;
  }
}