/* ============================================================
   ВНЕШТЕРМИНАЛ-2000 - Design System v2
   Файл: design-system.css
   Стиль: B2B Editorial / Awwwards-grade
   Дата: 2026-05-01
   ============================================================ */

/* ============================================================
   1. FONT FACE - Onest (самохост, woff2/woff)
      Developer: скачать с https://fonts.google.com/specimen/Onest
      или https://github.com/cyrealtype/Onest - OFL-лицензия
      Положить в src/fonts/onest/
   ============================================================ */

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest/Onest-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   2. DESIGN TOKENS - CSS Custom Properties
   ============================================================ */

:root {

  /* --- Цвет: Основные --- */
  --color-primary:        #376a9b;     /* фирменный синий */
  --color-primary-dark:   #2a5480;     /* синий тёмный (hover) */
  --color-primary-light:  #4d83b8;     /* синий светлый (glow) */
  --color-primary-dim:    rgba(55, 106, 155, 0.15);  /* прозрачный синий */

  --color-navy:           #0d2740;     /* deep navy для тёмных секций */
  --color-navy-deep:      #071729;     /* ещё глубже - фоны overlay */
  --color-navy-mid:       #163352;     /* промежуточный navy */

  /* --- Цвет: Нейтралы --- */
  --color-white:          #ffffff;
  --color-off-white:      #f5f7fa;     /* фон светлых секций */
  --color-surface:        #eef1f6;     /* карточки на светлом */
  --color-border:         #d0d9e4;     /* линии на светлом */
  --color-border-navy:    rgba(255,255,255,0.1); /* линии на тёмном */

  --color-text:           #1a2332;     /* основной текст */
  --color-text-secondary: #4a5d72;     /* вторичный текст */
  --color-text-muted:     #8099b4;     /* метки, подписи */
  --color-text-on-navy:   #c8d8ea;     /* текст на тёмном */
  --color-text-on-navy-dim: rgba(200, 216, 234, 0.65);

  /* --- Цвет: Маркеры карты (из существующего index.html) --- */
  --map-port:             #0066ff;
  --map-airport:          #cc00ff;
  --map-railway:          #ff6600;
  --map-road:             #00aa00;

  /* --- Цвет: Семантика --- */
  --color-success:        #1a7a4a;
  --color-error:          #b83232;
  --color-warning:        #a06020;

  /* --- Фоны с уровнями глубины --- */
  --bg:                   var(--color-off-white);
  --bg-elevated:          var(--color-white);
  --bg-sunken:            var(--color-surface);
  --bg-navy:              var(--color-navy);
  --bg-navy-elevated:     var(--color-navy-mid);

  /* --- Типографика --- */
  --font-primary:         'Onest', 'Arial', sans-serif;
  --font-mono:            'JetBrains Mono', 'Courier New', monospace;

  /* --- Типографическая шкала (7 шагов) --- */
  /* Display - hero, цифры-акценты */
  --text-display-2xl:     clamp(3.5rem, 9vw, 10rem);   /* ~160px на 1280 */
  --text-display-xl:      clamp(2.75rem, 6.5vw, 7.5rem); /* ~120px */
  --text-display-lg:      clamp(2.25rem, 4.5vw, 5.5rem); /* ~88px */

  /* Заголовки секций */
  --text-h1:              clamp(2rem, 3.5vw, 4rem);    /* ~64px */
  --text-h2:              clamp(1.75rem, 2.75vw, 3rem); /* ~48px */
  --text-h3:              clamp(1.375rem, 2vw, 2rem);   /* ~32px */
  --text-h4:              clamp(1.125rem, 1.5vw, 1.5rem); /* ~24px */
  --text-h5:              clamp(1rem, 1.25vw, 1.25rem); /* ~20px */
  --text-h6:              clamp(0.875rem, 1vw, 1rem);   /* ~16px */

  /* Тело */
  --text-body-lg:         clamp(1.0625rem, 1.2vw, 1.25rem); /* ~20px */
  --text-body:            clamp(0.9375rem, 1.05vw, 1.0625rem); /* ~17px */
  --text-body-sm:         clamp(0.8125rem, 0.9vw, 0.9375rem); /* ~15px */
  --text-caption:         clamp(0.6875rem, 0.75vw, 0.8125rem); /* ~13px */

  /* --- Tracking и Leading --- */
  --leading-display:      0.88;
  --leading-heading:      1.1;
  --leading-body:         1.6;
  --leading-relaxed:      1.75;

  --tracking-tight:       -0.03em;
  --tracking-snug:        -0.02em;
  --tracking-normal:      0em;
  --tracking-wide:        0.06em;
  --tracking-wider:       0.12em;
  --tracking-widest:      0.18em;

  /* --- Spacing (4px-base) --- */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  --space-40: 10rem;     /* 160px */

  /* --- Section padding (responsive) --- */
  --section-py:    clamp(4rem, 8vw, 8rem);
  --section-py-lg: clamp(6rem, 12vw, 12rem);

  /* --- Контейнер --- */
  --container-max: 1280px;
  --container-pad: clamp(1.25rem, 4vw, 5rem);

  /* --- Border radius --- */
  --radius-sm:    4px;
  --radius:       8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  /* --- Тени (тёплые с оттенком navy) --- */
  --shadow-xs:  0 1px 3px rgba(13, 39, 64, 0.08);
  --shadow-sm:  0 4px 12px rgba(13, 39, 64, 0.10);
  --shadow-md:  0 8px 24px rgba(13, 39, 64, 0.12);
  --shadow-lg:  0 20px 48px rgba(13, 39, 64, 0.16);
  --shadow-xl:  0 40px 80px -20px rgba(13, 39, 64, 0.22);
  --shadow-glow: 0 0 0 1px rgba(55, 106, 155, 0.2),
                 0 8px 32px rgba(55, 106, 155, 0.25);
  --shadow-glow-lg: 0 0 0 1px rgba(55, 106, 155, 0.3),
                    0 16px 64px rgba(55, 106, 155, 0.35);

  /* --- Motion: Easings --- */
  --ease-out-expo:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-primary:      cubic-bezier(0.7, 0, 0.2, 1);
  --ease-power:        cubic-bezier(0.85, 0, 0.15, 1);
  --ease-smooth:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Motion: Durations --- */
  --dur-fast:   200ms;
  --dur-base:   400ms;
  --dur-slow:   700ms;
  --dur-xslow:  1200ms;

  /* --- Z-index шкала --- */
  --z-base:    1;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   500;
  --z-cursor:  9999;
  --z-loader:  10000;
}

/* ============================================================
   3. RESET + BASE
   ============================================================ */

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

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

body {
  font-family: var(--font-primary);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--color-text);
  background-color: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lenis smooth scroll */
html.lenis {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

img, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

p:not(:last-child) {
  margin-bottom: 1em;
}

/* ============================================================
   4. TYPOGRAPHY SCALE
   ============================================================ */

h1, .h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h2, .h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text);
}

h3, .h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tracking-snug);
}

h4, .h4 {
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.3;
}

h5, .h5 {
  font-size: var(--text-h5);
  font-weight: 600;
  line-height: 1.35;
}

h6, .h6 {
  font-size: var(--text-h6);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

small, .text-sm {
  font-size: var(--text-body-sm);
  line-height: 1.5;
}

/* --- Display / Kinetic классы --- */
.text-display {
  font-size: var(--text-display-xl);
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

.text-display--2xl {
  font-size: var(--text-display-2xl);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.text-display--lg {
  font-size: var(--text-display-lg);
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
}

.text-headline {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-snug);
}

.text-eyebrow {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
}

.text-eyebrow--navy {
  color: var(--color-text-on-navy-dim);
}

.text-body-lg {
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  color: var(--color-text-secondary);
}

.text-body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.text-caption {
  font-size: var(--text-caption);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-wide);
}

/* Kinetic reveal wrappers - для SplitText (GSAP) */
.kinetic {
  overflow: hidden;
}

.kinetic .char {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  will-change: transform, opacity;
}

.kinetic .word {
  display: inline-block;
  overflow: hidden;
}

.kinetic .line {
  overflow: hidden;
  display: block;
}

/* Состояние после reveal */
.kinetic.is-revealed .char,
.kinetic.is-revealed .word-inner {
  transform: translateY(0);
  opacity: 1;
}

/* On dark backgrounds */
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5,
.section--navy h6,
.section--navy .text-display,
.section--navy .text-headline {
  color: var(--color-white);
}

.section--navy p,
.section--navy .text-body-lg {
  color: var(--color-text-on-navy);
}

.section--navy .text-eyebrow {
  color: var(--color-primary-light);
}

/* ============================================================
   5. LAYOUT - Grid & Container
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1440px;
}

/* 12-колоночная сетка */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.grid--6 {
  grid-template-columns: repeat(6, 1fr);
}

/* Span helpers */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Flex helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

/* ============================================================
   6. СЕКЦИИ
   ============================================================ */

.section {
  position: relative;
  padding-block: var(--section-py);
  overflow: hidden;
}

.section--lg {
  padding-block: var(--section-py-lg);
}

.section--flush {
  padding-block: 0;
}

.section--white {
  background-color: var(--color-white);
}

.section--off-white {
  background-color: var(--color-off-white);
}

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--navy-deep {
  background-color: var(--color-navy-deep);
  color: var(--color-white);
}

/* Разделитель секций */
.section__divider {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-primary);
  margin-block: var(--space-6);
}

.section__divider--full {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin-block: 0;
}

.section--navy .section__divider--full {
  background: var(--color-border-navy);
}

/* Scene-container для pin-секций */
.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.scene__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 23, 41, 0.75) 0%,
    rgba(13, 39, 64, 0.55) 50%,
    rgba(55, 106, 155, 0.2) 100%
  );
  z-index: 1;
}

.scene__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-block: var(--space-24);
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background-color var(--dur-base) var(--ease-smooth),
              backdrop-filter var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}

.nav.scrolled {
  background-color: rgba(13, 39, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border-navy);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--text-body-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--color-white);
}

.nav__link.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 200px;
  background: var(--color-navy-mid);
  border: 1px solid var(--color-border-navy);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth);
  box-shadow: var(--shadow-lg);
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-body-sm);
  color: var(--color-text-on-navy);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth);
}

.nav__dropdown-item:hover {
  background-color: rgba(55, 106, 155, 0.2);
  color: var(--color-white);
}

/* Бургер */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}

.nav__burger-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: transform var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-base) var(--ease-out-expo);
}

.nav__burger.is-open .nav__burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__burger.is-open .nav__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__burger.is-open .nav__burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--color-navy-deep);
  z-index: calc(var(--z-overlay) - 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-24) var(--container-pad);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}

.nav__mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__mobile-link {
  display: block;
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-white);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border-navy);
  transition: color var(--dur-fast) var(--ease-smooth),
              padding-left var(--dur-base) var(--ease-out-expo);
}

.nav__mobile-link:hover {
  color: var(--color-primary-light);
  padding-left: var(--space-4);
}

/* ============================================================
   8. HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--color-navy-deep);
}

/* Gradients без Google/внешних ресурсов */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 60%, rgba(55, 106, 155, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(13, 39, 64, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(7, 23, 41, 0.9) 0%, transparent 50%),
    var(--color-navy-deep);
}

.hero__bg-logo {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 50vw, 640px);
  height: auto;
  opacity: 0.035;
  pointer-events: none;
}

.hero__bg-logo svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: var(--space-20);
  padding-top: var(--space-32);
}

.hero__eyebrow {
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: clamp(2.75rem, 6.8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--color-white);
  max-width: 1100px;
  margin-bottom: var(--space-8);
  text-wrap: balance;
}

.hero__subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-text-on-navy);
  max-width: 480px;
  margin-bottom: var(--space-10);
  line-height: var(--leading-body);
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-caption);
  color: var(--color-text-on-navy-dim);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  animation: floatY 2.5s var(--ease-smooth) infinite;
}

.hero__scroll-hint-line {
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* Нижняя плашка с цифрами - 3 равных колонки, разделители между ними */
.hero__stats {
  position: absolute;
  bottom: var(--space-8);
  right: var(--container-pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 0;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: var(--space-5);
  min-width: 540px;
  max-width: 720px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0 var(--space-6);
  text-align: left;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.hero__stat:first-child {
  border-left: none;
  padding-left: 0;
}

.hero__stat:last-child {
  padding-right: 0;
}

.hero__stat-value {
  display: block;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero__stat-label {
  font-size: var(--text-caption);
  color: var(--color-text-on-navy-dim);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  line-height: 1.35;
}

/* ============================================================
   9. PRELOADER
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background-color: var(--color-navy-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity var(--dur-slow) var(--ease-smooth),
              transform var(--dur-slow) var(--ease-smooth);
}

.loader.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.loader__logo {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeIn var(--dur-slow) var(--ease-smooth) 0.2s forwards;
}

.loader__logo svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-primary-light);
  stroke-width: 1.5;
}

.loader__bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  transform-origin: left;
  transition: width var(--dur-slow) var(--ease-out-expo);
}

.loader__count {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-text-on-navy-dim);
  letter-spacing: var(--tracking-wider);
}

/* ============================================================
   10. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875em 2em;
  font-family: var(--font-primary);
  font-size: var(--text-body-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-smooth),
              background-color var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth);
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

/* Primary */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(55, 106, 155, 0.3);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 8px 32px rgba(55, 106, 155, 0.45);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(55, 106, 155, 0.2);
}

/* Secondary */
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary-dim);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn--secondary:active {
  transform: translateY(0) scale(0.98);
}

/* Ghost (на тёмных фонах) */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

.btn--ghost:active {
  transform: translateY(0) scale(0.98);
}

/* Размеры */
.btn--sm {
  padding: 0.6em 1.4em;
  font-size: var(--text-caption);
}

.btn--lg {
  padding: 1em 2.5em;
  font-size: var(--text-body);
}

/* Состояния */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.is-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--space-2);
}

/* Focus */
.btn:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

/* Magnetic wrapper */
.magnetic {
  display: inline-block;
}

.magnetic__inner {
  display: inline-flex;
  transition: transform var(--dur-base) var(--ease-spring);
  will-change: transform;
}

/* ============================================================
   11. CARDS
   ============================================================ */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-smooth),
              border-color var(--dur-base) var(--ease-smooth),
              transform var(--dur-base) var(--ease-spring);
}

.card:hover {
  box-shadow: var(--shadow-glow);
  border-color: rgba(55, 106, 155, 0.3);
  transform: translateY(-2px);
}

/* Glow effect - псевдоэлемент для hover */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 60% 60% at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(55, 106, 155, 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-smooth);
  pointer-events: none;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card--navy {
  background: var(--bg-navy-elevated);
  border-color: var(--color-border-navy);
  color: var(--color-white);
}

.card--navy:hover {
  border-color: rgba(55, 106, 155, 0.5);
  box-shadow: var(--shadow-glow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
}

.card__eyebrow {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.card__title {
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-3);
}

.card__body {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-body);
}

.card--navy .card__eyebrow {
  color: var(--color-primary-light);
}

.card--navy .card__title {
  color: var(--color-white);
}

.card--navy .card__body {
  color: var(--color-text-on-navy);
}

/* ============================================================
   12. ACCORDION / SERVICES
   ============================================================ */

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

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

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-6);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.accordion__trigger:hover {
  color: var(--color-primary);
}

.accordion__trigger-title {
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.2;
}

.accordion__trigger-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth),
              transform var(--dur-base) var(--ease-out-expo);
  margin-left: var(--space-4);
  flex-shrink: 0;
}

.accordion__trigger-icon::before,
.accordion__trigger-icon::after {
  content: '';
  display: block;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--dur-base) var(--ease-out-expo),
              opacity var(--dur-base) var(--ease-smooth);
}

.accordion__trigger-icon::before {
  width: 10px;
  height: 1.5px;
}

.accordion__trigger-icon::after {
  width: 1.5px;
  height: 10px;
  position: absolute;
}

.accordion__item.is-open .accordion__trigger-icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: rotate(45deg);
}

.accordion__item.is-open .accordion__trigger-icon::before,
.accordion__item.is-open .accordion__trigger-icon::after {
  background: var(--color-white);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out-expo);
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__panel-inner {
  overflow: hidden;
}

.accordion__panel-content {
  padding-bottom: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

/* Тёмный аккордеон */
.accordion--navy {
  border-top-color: var(--color-border-navy);
}

.accordion--navy .accordion__item {
  border-bottom-color: var(--color-border-navy);
}

.accordion--navy .accordion__trigger-title {
  color: var(--color-white);
}

.accordion--navy .accordion__panel-content {
  color: var(--color-text-on-navy);
}

/* ============================================================
   13. STATS / COUNTERS
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-1);
}

.stat-item {
  padding: var(--space-8) var(--space-6);
  border-left: 1px solid var(--color-border);
  position: relative;
}

.stat-item:first-child {
  border-left: none;
}

.stat-item__value {
  font-size: var(--text-display-lg);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.stat-item__suffix {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-primary);
}

.stat-item__label {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* На тёмном фоне */
.section--navy .stat-item {
  border-left-color: var(--color-border-navy);
}

.section--navy .stat-item__value,
.section--navy .stat-item__suffix {
  color: var(--color-white);
}

.section--navy .stat-item__label {
  color: var(--color-text-on-navy);
}

/* ============================================================
   14. TIMELINE
   ============================================================ */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-primary) 10%,
    var(--color-primary) 90%,
    transparent
  );
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 4px);
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-off-white),
              0 0 0 4px var(--color-primary);
  transition: box-shadow var(--dur-base) var(--ease-smooth);
}

.timeline__item.is-visible::before {
  box-shadow: 0 0 0 3px var(--color-off-white),
              0 0 0 4px var(--color-primary),
              0 0 12px rgba(55, 106, 155, 0.4);
}

.timeline__year {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.timeline__title {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline__desc {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================================
   15. MARQUEE
   ============================================================ */

.marquee {
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-4);
  background: var(--color-white);
}

.marquee--navy {
  background: var(--color-navy);
  border-color: var(--color-border-navy);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeX 28s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  padding-inline: var(--space-8);
  font-size: var(--text-body-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.marquee__item::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.marquee--navy .marquee__item {
  color: var(--color-text-on-navy-dim);
}

.marquee--navy .marquee__item::after {
  background: var(--color-primary-light);
}

/* ============================================================
   16. PRICE TABLE
   ============================================================ */

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}

.price-table__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--dur-fast) var(--ease-smooth);
  cursor: default;
}

.price-table__row:hover {
  background-color: var(--color-surface);
}

.price-table__row:hover .price-table__price {
  color: var(--color-primary);
}

.price-table__desc {
  font-size: var(--text-body-sm);
  color: var(--color-text);
  line-height: 1.5;
}

.price-table__unit {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  text-align: center;
}

.price-table__price {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  text-align: right;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.price-table__note {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
}

/* ============================================================
   17. MAP WRAPPER
   ============================================================ */

.map-section {
  background: var(--color-navy);
  padding-block: 0;
}

.map-section__header {
  padding-top: var(--section-py);
  padding-bottom: var(--space-10);
}

.map-section__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-top: var(--space-6);
}

.map-section__intro p {
  color: var(--color-text-on-navy);
}

.map-container {
  position: relative;
  width: 100%;
  /* Карта: существующий #map JS НЕ трогаем */
}

.map-container #map {
  width: 100%;
  height: 600px;
}

.map-legend {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: rgba(13, 39, 64, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-navy);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  z-index: 10;
}

.map-legend__title {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-on-navy-dim);
  margin-bottom: var(--space-4);
}

.map-legend__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-smooth);
}

.map-legend__item:hover {
  background: rgba(255,255,255,0.05);
}

.map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--color);
}

.map-legend__label {
  font-size: var(--text-caption);
  color: var(--color-text-on-navy);
}

/* ============================================================
   18. MULTI-STEP FORM
   ============================================================ */

.form-page {
  background: var(--color-navy-deep);
  min-height: 100vh;
}

.form-hero {
  padding-top: calc(72px + var(--space-16));
  padding-bottom: var(--space-12);
  background: linear-gradient(
    180deg,
    var(--color-navy-deep) 0%,
    var(--color-navy) 100%
  );
}

.form-steps {
  max-width: 640px;
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* Прогресс-бар */
.step-progress {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-10);
  gap: 0;
}

.step-progress__item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-progress__item:last-child {
  flex: 0;
}

.step-progress__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--color-text-on-navy-dim);
  flex-shrink: 0;
  transition: border-color var(--dur-base) var(--ease-smooth),
              background var(--dur-base) var(--ease-smooth),
              color var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}

.step-progress__item.is-active .step-progress__dot {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 0 16px rgba(55, 106, 155, 0.5);
}

.step-progress__item.is-done .step-progress__dot {
  border-color: var(--color-primary-light);
  background: var(--color-primary-light);
  color: var(--color-white);
}

.step-progress__line {
  flex: 1;
  height: 1px;
  background: var(--color-border-navy);
  margin-inline: var(--space-2);
  transition: background var(--dur-slow) var(--ease-smooth);
}

.step-progress__item.is-done + .step-progress__item .step-progress__line,
.step-progress__line.is-filled {
  background: var(--color-primary-light);
}

.step-progress__label {
  font-size: var(--text-caption);
  color: var(--color-text-on-navy-dim);
  margin-top: var(--space-2);
  text-align: center;
  letter-spacing: var(--tracking-wide);
}

/* Панели шагов */
.step-panel {
  display: none;
  animation: fadeIn var(--dur-base) var(--ease-smooth);
}

.step-panel.is-active {
  display: block;
}

/* Поля формы */
.field {
  margin-bottom: var(--space-6);
}

.field__label {
  display: block;
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--color-text-on-navy);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-wide);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--color-border-navy);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-primary);
  font-size: var(--text-body);
  color: var(--color-white);
  transition: border-color var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-fast) var(--ease-smooth);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--color-text-on-navy-dim);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--color-primary-light);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 0 3px rgba(55, 106, 155, 0.2);
}

.field__input.is-error,
.field__select.is-error,
.field__textarea.is-error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(184, 50, 50, 0.15);
}

.field__error {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-caption);
  color: #e87272;
}

.field__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot */
.field--honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Checkbox 152-ФЗ */
.checkbox-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  cursor: pointer;
  padding: var(--space-5);
  border: 1.5px solid var(--color-border-navy);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth);
}

.checkbox-consent:hover {
  border-color: rgba(55, 106, 155, 0.4);
  background: rgba(55, 106, 155, 0.05);
}

.checkbox-consent__box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-border-navy);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease-smooth),
              background var(--dur-fast) var(--ease-smooth);
  background: transparent;
}

.checkbox-consent input[type="checkbox"]:checked ~ .checkbox-consent__box,
.checkbox-consent.is-checked .checkbox-consent__box {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.checkbox-consent__check {
  width: 11px;
  height: 11px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.checkbox-consent.is-checked .checkbox-consent__check {
  opacity: 1;
}

.checkbox-consent__text {
  font-size: var(--text-body-sm);
  color: var(--color-text-on-navy);
  line-height: 1.55;
}

.checkbox-consent__text a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Success screen */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-20) var(--space-8);
  animation: fadeIn var(--dur-slow) var(--ease-smooth);
}

.form-success.is-visible {
  display: block;
}

.form-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-8);
  border-radius: 50%;
  background: rgba(55, 106, 155, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn var(--dur-slow) var(--ease-spring);
}

/* ============================================================
   19. FOOTER
   ============================================================ */

.footer {
  background: var(--color-navy-deep);
  padding-block: var(--space-16) var(--space-10);
  position: relative;
  overflow: hidden;
}

.footer__bg-logo {
  position: absolute;
  right: var(--container-pad);
  bottom: 0;
  width: clamp(180px, 25vw, 320px);
  opacity: 0.03;
  pointer-events: none;
}

.footer__bg-logo svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 0.5;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border-navy);
  margin-bottom: var(--space-10);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--text-body-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.footer__logo-icon {
  width: 28px;
  height: 28px;
}

.footer__tagline {
  font-size: var(--text-body-sm);
  color: var(--color-text-on-navy-dim);
  line-height: 1.55;
}

.footer__col-title {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-on-navy-dim);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-body-sm);
  color: var(--color-text-on-navy);
  transition: color var(--dur-fast) var(--ease-smooth);
  position: relative;
  width: fit-content;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

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

.footer__link:hover::after {
  transform: scaleX(1);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__contact-link {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-white);
  transition: color var(--dur-fast) var(--ease-smooth);
}

.footer__contact-link:hover {
  color: var(--color-primary-light);
}

.footer__requisites {
  font-size: var(--text-caption);
  color: var(--color-text-on-navy-dim);
  line-height: 1.8;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: var(--text-caption);
  color: var(--color-text-on-navy-dim);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-caption);
  color: var(--color-text-on-navy-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.footer__legal-link:hover {
  color: var(--color-primary-light);
}

/* ============================================================
   20. CUSTOM CURSOR
   ============================================================ */

/* Custom cursor - выключен по запросу пользователя; используется системный */

/* ============================================================
   21. REVEAL ANIMATIONS
   ============================================================ */

/* Image reveal - clip-path */
.img-reveal {
  overflow: hidden;
  position: relative;
}

.img-reveal__inner {
  transform: scale(1.05);
  clip-path: inset(100% 0 0 0);
  transition: clip-path var(--dur-xslow) var(--ease-out-expo),
              transform var(--dur-xslow) var(--ease-out-expo);
  will-change: clip-path, transform;
}

.img-reveal.is-revealed .img-reveal__inner {
  clip-path: inset(0% 0 0 0);
  transform: scale(1);
}

/* Fade up - оставляем видимым по умолчанию.
   Если JS подключился, GSAP в initScrollAnimations() сам
   ставит initial state через gsap.from() и анимирует. */
.fade-up,
.stagger > * {
  /* visible by default */
}

.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   22. NOISE OVERLAY + DECORATIVES
   ============================================================ */

/* Шумовая текстура (SVG filter через base64) */
.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Горизонтальный разделитель с анимацией */
.line-divider {
  display: block;
  height: 1px;
  background: var(--color-border);
  width: 0%;
  transition: width var(--dur-xslow) var(--ease-out-expo);
}

.line-divider.is-visible {
  width: 100%;
}

.section--navy .line-divider {
  background: var(--color-border-navy);
}

/* Вертикальная декоративная метка */
.vertical-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  user-select: none;
}

.section--navy .vertical-label {
  color: var(--color-text-on-navy-dim);
}

/* ============================================================
   23. SPLIT LAYOUT (О компании)
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.split--60-40 {
  grid-template-columns: 3fr 2fr;
}

.split--40-60 {
  grid-template-columns: 2fr 3fr;
}

.split__col {
  position: relative;
}

.split__col--sticky {
  position: sticky;
  top: calc(72px + var(--space-8));
}

/* ============================================================
   24. CTA SECTION
   ============================================================ */

.cta-section {
  background: var(--color-navy);
  padding-block: var(--section-py-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 100%, rgba(55, 106, 155, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 30% 0%, rgba(55, 106, 155, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section__eyebrow {
  margin-bottom: var(--space-4);
}

.cta-section__title {
  font-size: var(--text-display-lg);
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

.cta-section__subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-text-on-navy);
  max-width: 480px;
  margin: 0 auto var(--space-10);
}

/* ============================================================
   25. PAGE HERO (service pages)
   ============================================================ */

.page-hero {
  background: var(--color-navy);
  padding-top: calc(72px + var(--space-24));
  padding-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 0% 100%, rgba(55, 106, 155, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 0%, rgba(55, 106, 155, 0.1) 0%, transparent 50%);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-caption);
  color: var(--color-text-on-navy-dim);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-wide);
}

.page-hero__breadcrumb-sep {
  color: var(--color-border-navy);
}

.page-hero__title {
  font-size: var(--text-display-lg);
  font-weight: 700;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--color-white);
  max-width: 740px;
  margin-bottom: var(--space-6);
}

.page-hero__desc {
  font-size: var(--text-body-lg);
  color: var(--color-text-on-navy);
  max-width: 560px;
  line-height: var(--leading-body);
}

/* ============================================================
   26. COOKIE BANNER (обновлённые стили, функционал не трогаем)
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  max-width: 560px;
  background: var(--color-navy-mid);
  border: 1px solid var(--color-border-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  z-index: var(--z-modal);
  box-shadow: var(--shadow-xl);
  display: flex;
  gap: var(--space-6);
  align-items: flex-end;
  transform: translateY(120%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__text {
  flex: 1;
  font-size: var(--text-body-sm);
  color: var(--color-text-on-navy);
  line-height: 1.55;
}

.cookie-banner__text a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ============================================================
   27. @KEYFRAMES
   ============================================================ */

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes marqueeX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scanline {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100vh); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(55, 106, 155, 0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(55, 106, 155, 0); }
}

/* ============================================================
   28. STATES
   ============================================================ */

.is-loading {
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

/* focus-visible глобально */
:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Скелетон загрузки карты */
.skeleton-map {
  background: var(--color-navy-mid);
  border-radius: var(--radius-lg);
  height: 600px;
  position: relative;
  overflow: hidden;
}

.skeleton-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  animation: scanline 1.5s ease-in-out infinite;
}

/* ============================================================
   29. MEDIA QUERIES - мобильная адаптация
   ============================================================ */

/* Tablet (768px) */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .split--60-40,
  .split--40-60 {
    grid-template-columns: 1fr;
  }

  .split__col--sticky {
    position: static;
  }

  .hero__stats {
    position: static;
    margin-top: var(--space-10);
    grid-template-columns: repeat(3, 1fr);
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .hero__stat {
    padding: 0 var(--space-3);
  }
  .hero__stat-value {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    white-space: normal;
  }

  .map-section__intro {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(3) {
    border-left: none;
  }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }

  .col-1, .col-2, .col-3, .col-4 { grid-column: span 4; }
  .col-5, .col-6, .col-7, .col-8 { grid-column: span 4; }
  .col-9, .col-10, .col-11, .col-12 { grid-column: span 4; }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero__title {
    font-size: clamp(2.25rem, 12vw, 4rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .price-table__head,
  .price-table__row {
    grid-template-columns: 1fr auto;
  }

  .price-table__unit {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
  }

  .step-progress__label {
    display: none;
  }

  .form-steps {
    padding-inline: var(--space-5);
  }

  .map-legend {
    position: static;
    margin-top: var(--space-4);
    border-radius: var(--radius-md);
  }

  .map-container #map {
    height: 400px;
  }

  .marquee__item {
    padding-inline: var(--space-5);
  }
}

/* Small mobile (max 375px) */
@media (max-width: 375px) {
  :root {
    --container-pad: 1rem;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }
}

/* ============================================================
   30. PREFERS-REDUCED-MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .kinetic .char,
  .kinetic .word-inner {
    transform: none !important;
    opacity: 1 !important;
  }

  .fade-up,
  .stagger > *,
  .timeline__item,
  .img-reveal__inner {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .marquee__track {
    animation: none !important;
  }

  .hero__scroll-hint {
    animation: none !important;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }

  a, button, .btn, .magnetic, [role="button"],
  input, textarea, select, label {
    cursor: auto !important;
  }
}
