/* ============================================================
   ВБХ — Волгоградская бытовая химия
   styles.css · токены из DESIGN-SPEC §3 · мобайл-фёрст
   Брейкпоинты: 375 (база) / 600 / 640 / 700 / 768 / 900 / 1024 / 1200 / 1280
   ============================================================ */

/* ---------- БАЗОВЫЙ FALLBACK для браузеров без CSS-переменных
   (IE11, старые корпоративные сборки): значения без var(), чтобы
   страница оставалась опрятной. Современные браузеры перекрывают
   всё это правилами ниже по каскаду. ---------- */
body {
  margin: 0;
  background: #F4F7F9;
  color: #0B1B29;
  font-family: 'Golos Text', Arial, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: 'Unbounded', Arial, sans-serif; line-height: 1.15; }
a { color: #0A6E67; }
img { max-width: 100%; height: auto; border: 0; }
main { display: block; }
.container, .container-wide { max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.hero, .final, .legend { background: #04101F; color: #E9F2F7; }
.hero a:not(.btn), .final a:not(.btn) { color: #2FD9CE; }
.btn {
  display: inline-block;
  padding: 12px 20px;
  background: #2FD9CE;
  color: #04101F;
  text-decoration: none;
  border-radius: 24px;
  border: 0;
}
ul[role="list"] { list-style: none; padding: 0; }
.hero__line { display: block; }

/* ---------- ТОКЕНЫ (DESIGN-SPEC §3, как есть) ---------- */
:root {
  /* ---------- ПАЛИТРА: ТЁМНАЯ ЗОНА (hero, финал) ---------- */
  --ink-950: #04101F;            /* базовый фон, чернильно-синий, НЕ чёрный */
  --ink-900: #062036;            /* верх градиента, поверхности */
  --ink-800: #0A2C47;            /* приподнятые поверхности, бордеры карточек */
  --ink-footer: #072138;         /* фон футера (= верхний стоп hero-градиента) */
  --ink-line: rgba(233,242,247,0.10);  /* hairline-бордеры на тёмном */
  --text-on-dark: #E9F2F7;       /* основной текст на тёмном (≈16:1) */
  --text-dim-dark: #9FB4C4;      /* вторичный текст на тёмном (≈9:1) */

  /* ---------- ПАЛИТРА: СВЕТЛАЯ ЗОНА ---------- */
  --paper: #F4F7F9;              /* фон светлых секций, холодный, НЕ #FFF */
  --paper-2: #E9EFF3;            /* чередование секций, подложки */
  --surface: #FFFFFF;            /* карточки */
  --line: #DCE5EA;               /* бордеры на светлом */
  --text-ink: #0B1B29;           /* основной текст на светлом (≈15:1) */
  --text-dim: #46606F;           /* вторичный текст на светлом (≈6:1) */

  /* ---------- АКЦЕНТЫ (без фиолетового!) ---------- */
  --aqua: #2FD9CE;               /* ГЛАВНЫЙ акцент: CTA, интерактив. Цвет ASTEL */
  --aqua-bright: #4FE3EA;        /* hover/glow */
  --accent-deep: #0A6E67;        /* аква для ТЕКСТА на светлом (5.6:1). Ссылки, иконки */
  --lime: #C9F53C;               /* ТОЛЬКО цифры на тёмном + чипы успеха. Не текст на светлом! */
  --cyan-deep: #17588C;          /* цвет исторического лого ВБХ, для доверительных мелочей */
  --ink-on-aqua: #062033;        /* текст/иконки на аква-заливке (CTA, чекбокс) */
  --err: #FF7A6B;                /* ошибки формы: бордер невалидного инпута */
  --err-soft: #FF9C8F;           /* ошибки формы: текст подсказки на тёмном */

  /* ---------- ГРАДИЕНТЫ (точные стопы) ---------- */
  --grad-hero-base: linear-gradient(180deg, #072138 0%, #051627 55%, #04101F 100%);
  --grad-hero-glow-1: radial-gradient(ellipse 60% 48% at 22% 28%, rgba(47,217,206,0.16) 0%, rgba(47,217,206,0.05) 45%, transparent 70%);
  --grad-hero-glow-2: radial-gradient(ellipse 52% 42% at 82% 72%, rgba(23,120,180,0.20) 0%, rgba(23,120,180,0.06) 50%, transparent 75%);
  --grad-cta-final: linear-gradient(180deg, #04101F 0%, #072138 100%);
  --grad-number: linear-gradient(92deg, #2FD9CE 0%, #C9F53C 100%);   /* заливка display-цифр на тёмном */
  --grad-btn-hover: linear-gradient(135deg, #4FE3EA 0%, #2FD9CE 100%);
  --grad-card-cat: linear-gradient(180deg, #FFFFFF 0%, #F1F6F8 100%); /* карточки категорий */

  /* ---------- ТИПОШКАЛА (fluid) ---------- */
  --fs-display: clamp(2.75rem, 1.05rem + 7.6vw, 8rem);      /* hero H1, гига-цифры */
  --fs-h1: clamp(2.25rem, 1.35rem + 4vw, 5rem);             /* заголовки секций */
  --fs-h2: clamp(1.75rem, 1.25rem + 2.2vw, 3.25rem);        /* подсекции, СТМ-шаги */
  --fs-h3: clamp(1.25rem, 1.08rem + 0.9vw, 1.875rem);       /* карточки */
  --fs-h4: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);      /* мелкие заголовки, FAQ-вопрос */
  --fs-lead: clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);     /* подзаголовок hero, лиды */
  --fs-body: 1.0625rem;                                     /* 17px, основной текст */
  --fs-caption: 0.8125rem;                                  /* 13px, подписи */
  --fs-label: 0.75rem;                                      /* 12px, overline: caps, ls 0.14em */

  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Golos Text', 'Segoe UI', system-ui, sans-serif;

  /* ---------- SPACING ---------- */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;
  --section-pad: clamp(4.5rem, 3rem + 6vw, 9rem);            /* вертикальные поля секций */
  --section-pad-lg: clamp(6rem, 4rem + 8vw, 12rem);          /* hero, СТМ, финал */

  /* ---------- РАДИУСЫ ---------- */
  --r-xs: 4px;    /* фокус-скругления инлайн-ссылок */
  --r-sm2: 6px;   /* чекбокс */
  --r-sm: 8px;    /* чипы, инпуты внутренние элементы */
  --r-md: 14px;   /* инпуты, мелкие карточки */
  --r-lg: 24px;   /* карточки */
  --r-xl: 36px;   /* крупные панели, фото */
  --r-round: 999px; /* кнопки-пилюли, бейджи */

  /* ---------- ТЕНИ / СВЕЧЕНИЯ ---------- */
  --shadow-card: 0 1px 2px rgba(11,27,41,0.06), 0 12px 32px -12px rgba(11,27,41,0.14);
  --shadow-card-hover: 0 2px 4px rgba(11,27,41,0.06), 0 24px 48px -16px rgba(11,27,41,0.22);
  --shadow-header: 0 1px 0 rgba(11,27,41,0.06), 0 8px 24px -12px rgba(11,27,41,0.10);
  --glow-aqua: 0 0 0 1px rgba(47,217,206,0.28), 0 12px 40px -8px rgba(47,217,206,0.38);
  --focus-ring: 0 0 0 3px rgba(47,217,206,0.45);             /* видимый фокус ВЕЗДЕ */

  /* ---------- КОНТЕЙНЕР ---------- */
  --container: 1240px;
  --container-wide: 1360px;      /* hero-типографика, marquee */
  --gutter: 24px;
  --side-pad: clamp(1.25rem, 4vw, 3rem);

  /* ---------- ДВИЖЕНИЕ ---------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms; --dur-med: 320ms; --dur-slow: 640ms;

  /* ---------- прочее ---------- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --header-h: 72px;
}

/* ---------- БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden; /* fallback: Safari ≤15 не знает clip */
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 var(--fs-body)/1.6 var(--font-body);
  color: var(--text-ink);
  background: var(--ink-950); /* тёмная база: hero сверху, финал снизу */
  overflow-x: hidden; /* fallback: Safari ≤15 */
  overflow-x: clip;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

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

a { color: inherit; }

::selection { background: rgba(47,217,206,0.35); }

section { scroll-margin-top: 88px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.nowrap { white-space: nowrap; }

.container {
  width: 100%; max-width: calc(var(--container) + 2 * var(--side-pad));
  margin-inline: auto; padding-inline: var(--side-pad);
}
.container-wide { max-width: calc(var(--container-wide) + 2 * var(--side-pad)); width: 100%; margin-inline: auto; padding-inline: var(--side-pad); }

/* ---------- ЗОНЫ ---------- */
.zone-dark  { background: var(--ink-950); color: var(--text-on-dark);
              --tx: var(--text-on-dark); --tx-dim: var(--text-dim-dark);
              --card-bg: rgba(233,242,247,0.04); --card-line: var(--ink-line); }
.zone-light { background: var(--paper); color: var(--text-ink);
              --tx: var(--text-ink); --tx-dim: var(--text-dim);
              --card-bg: var(--surface); --card-line: var(--line); }

/* Зерно на тёмных зонах */
.zone-dark { position: relative; }
.zone-dark::after {
  content: ""; position: absolute; inset: 0; z-index: 5;
  background-image: var(--grain);
  opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
}

/* ---------- ТИПОГРАФИКА ---------- */
.overline {
  font: 600 var(--fs-label)/1.3 var(--font-body);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: var(--s-4);
}
.zone-dark .overline, .overline--dark { color: var(--text-dim-dark); }

.section-title {
  font: 500 var(--fs-h1)/1.08 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--tx, var(--text-ink));
  text-wrap: balance;
}
.section-lead {
  font-size: var(--fs-lead); line-height: 1.55;
  color: var(--tx-dim, var(--text-dim));
  max-width: 52ch;
}

.grad-text {
  background: var(--grad-number);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- ИКОНКИ (Lucide, stroke 1.75) ---------- */
.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon--lime { color: var(--lime); }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--font-body);
  padding: 18px 34px; border-radius: var(--r-round);
  border: 0; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-med), background var(--dur-med),
              color var(--dur-med), border-color var(--dur-med);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn--primary { color: var(--ink-on-aqua); background: var(--aqua); }
.btn--primary:hover  { background: var(--grad-btn-hover); transform: translateY(-2px); box-shadow: var(--glow-aqua); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--tx, var(--text-ink));
  border: 1px solid var(--line);
}
.zone-dark .btn--ghost { border-color: rgba(233,242,247,0.28); }
.btn--ghost:hover { border-color: var(--aqua); color: var(--accent-deep); }
.zone-dark .btn--ghost:hover { color: var(--aqua-bright); }

.btn--sm { padding: 10px 20px; font-size: 0.9375rem; }

.btn--retail { padding: 18px 30px; }
.btn--retail .icon { width: 18px; height: 18px; }

/* Ссылка-стрелка */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 1rem/1.3 var(--font-body);
  color: var(--accent-deep); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 5px; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }

/* Чип */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-round);
  border: 1px solid var(--ink-line);
  font-size: var(--fs-caption); font-weight: 500; line-height: 1.3;
  color: var(--text-on-dark);
}
.chip .icon { width: 16px; height: 16px; }

/* ---------- SKIP-LINK ---------- */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--aqua); color: var(--ink-on-aqua);
  font: 600 0.9375rem/1 var(--font-body);
  padding: 12px 20px; border-radius: var(--r-round);
  text-decoration: none;
  transform: translateY(-300%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline: none; box-shadow: var(--focus-ring); }

/* ---------- ЛИНИЯ РОЗЛИВА ---------- */
.fill-line {
  display: none;
  position: fixed; top: 0; bottom: 0;
  /* 40px левее колонки контента; max() держит линию в кадре на 1280–1352,
     где формула уходит в минус (контент при этом начинается на 48px) */
  left: max(16px, calc((100vw - var(--container)) / 2 - 40px));
  width: 2px; z-index: 60;
  background: rgba(47,217,206,0.14);
  pointer-events: none;
}
.fill-line__progress {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--aqua) 0%, var(--aqua-bright) 100%);
  transform: scaleY(0); transform-origin: top;
}
@media (min-width: 1280px) { .fill-line { display: block; } }

/* ---------- ЛОГОТИП ---------- */
.logo { display: inline-flex; text-decoration: none; border-radius: var(--r-sm); }
.logo:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.logo__svg { color: var(--aqua); --logo-cutout: var(--ink-950); --logo-sub: var(--text-dim-dark); }
.logo-letter {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  fill: var(--logo-cutout);
}
.logo-sub {
  font-family: var(--font-body); font-weight: 600; font-size: 9px;
  letter-spacing: 0.28em; fill: var(--logo-sub);
}

/* ---------- HEADER ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--dur-med), box-shadow var(--dur-med), border-color var(--dur-med);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  height: var(--header-h);
  transition: height var(--dur-med);
}
.nav { display: none; }
.nav__link {
  font: 500 0.9375rem/1 var(--font-body);
  color: var(--text-dim-dark); text-decoration: none;
  padding: 6px 2px; border-radius: var(--r-xs);
  transition: color var(--dur-fast);
}
.nav__link:hover { color: var(--text-on-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.nav__link[aria-current] { color: var(--text-on-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.nav__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.header__side { display: flex; align-items: center; gap: var(--s-5); }
.header__phone {
  display: none;
  font: 600 0.9375rem/1 var(--font-body);
  color: inherit; text-decoration: none; padding: 6px 2px; border-radius: var(--r-xs);
  transition: color var(--dur-fast);
}
.header__phone:hover { color: var(--aqua-bright); }
.header__phone:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.header__cta { display: none; }

/* Состояние B — после скролла */
.header.is-scrolled {
  background: rgba(244,247,249,0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text-ink);
  border-color: transparent;
  box-shadow: var(--shadow-header);
}
.header.is-scrolled .header__inner { height: 64px; }
.header.is-scrolled .nav__link { color: var(--text-dim); }
.header.is-scrolled .nav__link:hover,
.header.is-scrolled .nav__link[aria-current] { color: var(--text-ink); }
.header.is-scrolled .header__phone:hover { color: var(--accent-deep); }
.header.is-scrolled .logo__svg { color: var(--text-ink); --logo-cutout: #F2F6F8; --logo-sub: var(--text-dim); }

/* Поверх открытого мобильного меню header всегда «тёмный» */
body.menu-open .header {
  background: transparent; box-shadow: none; border-color: transparent;
  color: var(--text-on-dark);
}
body.menu-open .header .logo__svg { color: var(--aqua); --logo-cutout: var(--ink-950); --logo-sub: var(--text-dim-dark); }

/* Бургер */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
  color: inherit;
}
.burger__line {
  display: block; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-med) var(--ease-out);
}
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.burger:focus-visible { outline: none; box-shadow: var(--focus-ring); }

@media (min-width: 600px)  { .header__cta { display: inline-flex; } }
@media (min-width: 900px)  { .header__phone { display: inline-block; } }
@media (min-width: 1200px) {
  /* 8 пунктов меню: на 1200–1359 шаг ужат, иначе ряд не помещается в контейнер */
  .nav { display: flex; gap: 18px; }
  .burger { display: none; }
}
@media (min-width: 1360px) { .nav { gap: 26px; } }

/* ---------- МОБИЛЬНОЕ МЕНЮ ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--ink-950); color: var(--text-on-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + var(--s-6)) var(--side-pad) var(--s-7);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: var(--s-4); }
.mobile-menu__link {
  font: 500 var(--fs-h2)/1.15 var(--font-display);
  color: var(--text-on-dark); text-decoration: none;
  padding: 4px 0; border-radius: var(--r-sm);
  transition: color var(--dur-fast);
}
.mobile-menu__link:hover { color: var(--aqua-bright); }
.mobile-menu__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mobile-menu__bottom { display: grid; gap: var(--s-5); margin-top: var(--s-7); }
.mobile-menu__phone {
  font: 600 1.375rem/1.2 var(--font-body); color: var(--text-on-dark); text-decoration: none;
  display: grid; gap: 2px;
}
.mobile-menu__phone small { font: 400 var(--fs-caption)/1.3 var(--font-body); color: var(--text-dim-dark); }
.mobile-menu__cta { width: 100%; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column;
  background:
    var(--grad-hero-glow-1),
    var(--grad-hero-glow-2),
    var(--grad-hero-base);
  overflow: hidden; /* fallback: Safari ≤15 */
  overflow: clip;
}
.hero__canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  mix-blend-mode: screen; opacity: 0.9;
  filter: blur(22px) contrast(180%);
  pointer-events: none;
}
.hero__static-glow { display: none; }
.hero__static-glow i {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.hero__static-glow i:nth-child(1) { width: 380px; height: 380px; left: 8%;  top: 22%; background: rgba(47,217,206,0.18); }
.hero__static-glow i:nth-child(2) { width: 300px; height: 300px; right: 12%; top: 55%; background: rgba(23,120,180,0.22); }
.hero__static-glow i:nth-child(3) { width: 180px; height: 180px; left: 46%; top: 70%; background: rgba(201,245,60,0.10); }

.hero__inner {
  position: relative; z-index: 2;
  flex: 1 1 auto;
  display: grid; align-items: center; align-content: center;
  gap: var(--s-7);
  padding-top: calc(var(--header-h) + var(--s-7));
  padding-bottom: var(--s-7);
}
.hero__eyebrow { margin-bottom: var(--s-5); }
/* Ширина строки «в промышленных» ≈ 10.9em (Unbounded очень широкий) —
   размер привязан к доступной ширине, чтобы строка никогда не резалась */
.hero__title {
  font: 600 min(var(--fs-display), 7.6rem, calc((100vw - 2 * var(--side-pad)) / 11.4)) / 1.04 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  max-width: 12ch;
}
.hero__lead { margin-top: var(--s-5); max-width: 52ch; display: grid; gap: var(--s-2); }
.hero__lead p { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-dim-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-6); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero__product { position: relative; justify-self: center; width: min(62vw, 300px); }
/* Лучи солнца с этикетки: позиция = точка солнца на hero-canister.webp
   (51.3% / 47.9%). Контейнер 250vmax — лучи долетают до краёв вьюпорта
   на любом экране, обрезка по .hero { overflow: clip }. Screen-блендинг:
   поверх текста лучи только осветляют, текст остаётся читаемым */
.hero__sunrays {
  position: absolute;
  left: 51.3%; top: 47.9%;
  width: 250vmax; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 2;
}
/* На время вспышки слой лучей поднимается над текстом hero (ставится/снимается
   из intro-timeline, при reduced-motion timeline не играет — класс не появится) */
.hero__product.is-raying { z-index: 3; }
.hero__product-glow {
  position: absolute; inset: -18%;
  background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(47,217,206,0.28) 0%, transparent 70%);
  filter: blur(30px);
}
.hero__product-img {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(2,10,20,0.55));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(0.8deg); }
}

@media (min-width: 1024px) {
  .hero__inner { padding-bottom: var(--s-8); }
  .hero__content { position: relative; z-index: 2; }
  .hero__product {
    position: absolute; right: 0; bottom: 0; z-index: 1;
    justify-self: auto;
    width: clamp(300px, 30vw, 440px);
  }
  .hero__lead, .hero__actions, .hero__badges { max-width: min(52ch, calc(100% - 400px)); }
  .hero__actions, .hero__badges { max-width: calc(100% - 420px); }
}

/* Marquee брендов */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--ink-line);
  overflow: hidden; /* fallback: Safari ≤15 */
  overflow: clip;
  padding-block: 14px;
}
.marquee__track { display: flex; width: max-content; }
.marquee__track.is-on { animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track.is-on { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; padding-right: var(--s-7); }
.marquee__list li {
  display: inline-flex; align-items: center; gap: var(--s-7);
  padding-right: var(--s-7);
  font: 500 1.25rem/1 var(--font-display);
  color: rgba(233,242,247,0.35);
  white-space: nowrap;
}
.marquee__drop { width: 13px; height: 13px; fill: var(--aqua); stroke: none; opacity: 0.75; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- ЦИФРЫ ---------- */
.metrics-section { padding-block: var(--s-8) var(--s-10); }
.metrics-section__title {
  font: 500 var(--fs-h3)/1.2 var(--font-display);
  margin-bottom: var(--s-7);
}
.metrics {
  display: grid; grid-template-columns: 1fr;
  gap: 1px; background: var(--ink-line);
  border-block: 1px solid var(--ink-line);
}
.metric { background: var(--ink-950); padding: var(--s-5) var(--s-4) var(--s-5) 0; display: flex; flex-direction: column-reverse; gap: var(--s-2); }
.metric__value { display: flex; align-items: baseline; gap: 0.35em; }
/* спека даёт clamp(2.5rem,5.5vw,5.5rem); кап снижен, чтобы «500 000»
   (7 знаков × ~0.72em Unbounded) не резалось в колонке 3×2-сетки */
.metric__num {
  font: 600 clamp(2.25rem, 4.2vw, 4.25rem)/1.05 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.metric__unit { font: 500 clamp(1rem, 2vw, 2rem)/1 var(--font-display); color: var(--text-dim-dark); }
.metric__label { font-size: var(--fs-body); color: var(--text-dim-dark); max-width: 30ch; }

@media (min-width: 768px)  { .metrics { grid-template-columns: repeat(2, 1fr); } .metric { padding: var(--s-6); } }
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(3, 1fr); } }

/* ---------- СВЕТЛАЯ ОБОЛОЧКА ---------- */
.light-shell {
  position: relative; z-index: 2;
  background: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: -36px;
  overflow: clip;
}

.section { position: relative; padding-block: var(--section-pad); }
.section--alt { background: var(--paper-2); }

.section-head { margin-bottom: var(--s-8); display: grid; gap: var(--s-5); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 44ch); align-items: end; gap: var(--s-8); }
  .section-head .section-lead { justify-self: end; padding-bottom: 0.5em; }
}

/* Текстура пузырей */
.bubbles-tex {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(640px, 70vw); height: auto;
  opacity: 0.55;
}
.bubbles-tex--right { right: -12%; top: -40px; }
.bubbles-tex--left  { left: -14%; bottom: 6%; }
.section > .container { position: relative; z-index: 1; }

/* ---------- КАТЕГОРИИ ---------- */
.cat-grid { display: grid; gap: var(--s-5); }
.cat-card {
  position: relative; display: block; overflow: hidden;
  background: var(--grad-card-cat);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6);
  padding-bottom: 180px;
  min-height: 320px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: box-shadow var(--dur-med);
}
.cat-card:hover { box-shadow: var(--shadow-card-hover); }
.cat-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cat-card__sku {
  position: absolute; top: var(--s-4); right: var(--s-5);
  font: 600 clamp(4rem, 8vw, 6rem)/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  transition: color var(--dur-med), -webkit-text-stroke-color var(--dur-med);
  user-select: none;
}
.cat-card:hover .cat-card__sku { color: var(--accent-deep); -webkit-text-stroke-color: transparent; }
.cat-card__name { font: 500 var(--fs-h3)/1.2 var(--font-display); max-width: 12ch; }
.cat-card__chip {
  display: inline-block; margin-top: var(--s-3);
  font: 500 var(--fs-caption)/1.2 var(--font-body); letter-spacing: 0.02em;
  color: var(--text-dim);
  background: var(--paper-2); border-radius: var(--r-round); padding: 8px 14px;
}
.cat-card__desc { margin-top: var(--s-4); font-size: 0.9375rem; line-height: 1.55; color: var(--text-dim); max-width: 34ch; }
.cat-card__img {
  position: absolute; right: var(--s-4); bottom: 0;
  height: 165px; width: auto;
  transition: transform var(--dur-med) var(--ease-out);
}
.cat-card:hover .cat-card__img { transform: translateY(-11px) scale(1.04); }
.cat-card__round {
  position: absolute; right: var(--s-5); bottom: calc(-1 * var(--s-5));
  width: 170px; height: 170px; border-radius: 50%;
  background: var(--paper-2); overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out);
}
.cat-card__img--round { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.cat-card:hover .cat-card__round { transform: translateY(-11px) scale(1.04); }

@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
  .cat-card { min-height: 340px; padding-bottom: 200px; }
  .cat-card__img { height: 200px; right: var(--s-5); }
}

/* Витрина ASTEL */
.showcase { margin-top: var(--s-9); }
.showcase__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); }
.showcase__title { font: 500 var(--fs-h2)/1.15 var(--font-display); letter-spacing: -0.01em; }
.showcase__nav { display: flex; gap: var(--s-3); }
.showcase__arrow {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  color: var(--text-ink); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), opacity var(--dur-fast);
}
.showcase__arrow:hover { border-color: var(--aqua); color: var(--accent-deep); }
/* disabled: opacity 0.35, но бордер темнее — стрелка читается как «неактивна», а не «сломана» */
.showcase__arrow:disabled { opacity: 0.35; cursor: default; border-color: var(--text-dim); color: var(--text-ink); }
.showcase__arrow:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* <768: стрелки скрыты — аффорданс дают скролл-снап и выглядывающая карточка */
@media (max-width: 767px) { .showcase__nav { display: none; } }
.showcase__text { margin-top: var(--s-4); max-width: 62ch; color: var(--text-dim); }
.showcase__row {
  display: flex; gap: var(--s-5);
  margin-top: var(--s-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--s-2);
}
.showcase__row::-webkit-scrollbar { display: none; }
.showcase__card {
  flex: 0 0 auto; width: min(72vw, 300px); scroll-snap-align: start;
  position: relative; overflow: clip;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
/* фото заливает верх плитки; обёртка клипует hover-zoom, не задевая подпись */
.showcase__pic { overflow: clip; }
.showcase__card img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
}
/* подпись — под фото, на белой зоне карточки: без «смога» на светлых фото,
   контраст гарантирован (text-dim на surface ≈ 6.6:1, заголовок ≈ 15:1) */
.showcase__cap {
  padding: var(--s-4) var(--s-4) calc(var(--s-4) + 2px);
  border-top: 1px solid var(--line);
  font-size: var(--fs-caption); color: var(--text-dim);
  display: grid; gap: 2px;
}
.showcase__cap b { font: 600 0.9375rem/1.3 var(--font-body); color: var(--text-ink); }
.showcase .link-arrow { margin-top: var(--s-6); }

/* ---------- БРЕНДЫ ---------- */
.brand-grid { display: grid; gap: var(--gutter); }
.brand-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6);
  min-height: 250px;
  transition: box-shadow var(--dur-med);
}
.brand-card:hover { box-shadow: var(--shadow-card-hover); }
.brand-card__seg {
  display: inline-block;
  font: 600 var(--fs-label)/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); background: var(--paper-2);
  border-radius: var(--r-round); padding: 8px 14px;
  margin-bottom: var(--s-4);
}
.brand-card__seg--lime { background: var(--lime); color: var(--text-ink); }
.brand-card__name { font: 500 var(--fs-h3)/1.15 var(--font-display); }
.brand-card__line { margin-top: var(--s-3); font-size: 0.9375rem; line-height: 1.55; color: var(--text-dim); max-width: 30ch; }
/* фото — не вырубки, а студийные кадры: показываем плиткой со скруглением.
   Мобайл: плитка в потоке справа-снизу; ≥700px: абсолютом в углу, текст в 52% */
.brand-card__img {
  width: 46%; aspect-ratio: 4 / 5; height: auto;
  object-fit: cover; object-position: 50% 62%;
  border-radius: var(--r-md);
  border: 1px solid var(--line); /* белый фон новых фото не сливается с картой */
  margin-left: auto; margin-top: var(--s-4);
  transition: transform var(--dur-med) var(--ease-out);
}
.brand-card:hover .brand-card__img { transform: translateY(-11px) scale(1.04); }
@media (min-width: 700px) {
  .brand-card { padding-bottom: var(--s-6); }
  .brand-card__name:not(.brand-card--featured .brand-card__name) { max-width: 54%; }
  .brand-card__line { max-width: 52%; }
  .brand-card__img { position: absolute; right: var(--s-4); bottom: var(--s-4); width: 42%; margin: 0; }
}

.brand-card--featured { padding: 0; min-height: 420px; display: flex; align-items: flex-end; }
.brand-card__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-card__overlay {
  position: relative; width: 100%;
  padding: var(--s-6);
  /* скрим ослаблен (макс 0.55) — светлый рендер не тонет; читаемость добирает text-shadow */
  background: linear-gradient(180deg, rgba(4,16,31,0) 0%, rgba(4,16,31,0.30) 45%, rgba(4,16,31,0.55) 100%);
  color: var(--surface);
}
.brand-card--featured .brand-card__name { color: var(--surface); }
.brand-card--featured .brand-card__line { color: rgba(240,247,251,0.95); max-width: 40ch; }
.brand-card--featured .brand-card__name,
.brand-card--featured .brand-card__line {
  text-shadow: 0 1px 3px rgba(4,16,31,0.6), 0 2px 16px rgba(4,16,31,0.45);
}

.brand-extra { margin-top: var(--s-6); font-size: var(--fs-caption); color: var(--text-dim); }

@media (min-width: 700px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card--featured { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); }
  .brand-card--featured { grid-column: span 2; grid-row: span 2; }
}

/* Легенда «Вихрь» */
.legend {
  margin-top: var(--s-8);
  border-radius: var(--r-xl);
  overflow: clip;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; gap: var(--s-5); align-items: center;
}
/* «1970»: градиент аква→лайм (как «Чистота» в hero) + мягкий glow;
   блик .is-shine добавляет JS один раз после входа */
.legend__year {
  position: relative; z-index: 1;
  font: 600 clamp(5rem, 13vw, 10rem)/0.95 var(--font-display);
  background-image:
    linear-gradient(100deg, rgba(255,255,255,0) 44%, rgba(234,255,242,0.9) 50%, rgba(255,255,255,0) 56%),
    var(--grad-number);
  background-size: 250% 100%, 100% 100%;
  background-position: 100% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(47,217,206,0.30));
  user-select: none;
}
.legend__year.is-shine { animation: legendShine 7s ease-in-out 0.1s infinite; }
@keyframes legendShine {
  0%   { background-position: 100% 0, 0 0; }
  16%  { background-position: 0% 0, 0 0; }
  100% { background-position: 0% 0, 0 0; }
}
/* Вихревой мотив за цифрой: дуги, вращение 80s, дёшево (transform-only) */
.legend__swirl {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(280px, 38vw, 460px); aspect-ratio: 1; height: auto;
  left: min(-4%, -40px); top: 50%;
  transform: translateY(-50%);
  color: var(--aqua); opacity: 0.11;
  animation: legendSwirl 80s linear infinite;
}
@keyframes legendSwirl {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
.legend__body { position: relative; z-index: 1; display: grid; gap: var(--s-4); }
.legend__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.legend__kicker .overline { margin-bottom: 0; }
.legend__badge {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--ink-line); border-radius: var(--r-round);
  font: 500 var(--fs-caption)/1.3 var(--font-body); color: var(--text-dim-dark);
}
.legend__badge b { font: 600 0.9375rem/1 var(--font-display); color: var(--lime); }
.legend__text { color: var(--text-dim-dark); max-width: 58ch; line-height: 1.65; }
.legend-mark { color: var(--aqua); font-weight: 500; } /* #2FD9CE на ink-950 ≈ 10:1 */
@media (min-width: 900px) { .legend { grid-template-columns: auto 1fr; gap: var(--s-8); } }

/* ---------- ПРОИЗВОДСТВО ---------- */
.collage-wrap {
  position: relative; z-index: 1;
  padding-left: max(var(--side-pad), calc((100% - var(--container)) / 2));
}
.collage { display: grid; gap: var(--s-4); }
.collage__item { position: relative; margin: 0; overflow: hidden; }
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.caption-chip {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  font: 600 var(--fs-label)/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-ink); background: rgba(255,255,255,0.92);
  padding: 9px 14px; border-radius: var(--r-round);
  box-shadow: var(--shadow-card);
  max-width: calc(100% - 2 * var(--s-4));
}
.collage__item--big { aspect-ratio: 4 / 3; }
.collage__item { border-radius: var(--r-lg); margin-right: var(--side-pad); }
.collage__item--big { border-radius: var(--r-xl); }

@media (min-width: 900px) {
  .collage {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr 1fr;
    gap: var(--gutter);
  }
  .collage__item { margin-right: 0; border-radius: var(--r-xl) 0 0 var(--r-xl); aspect-ratio: auto; }
  .collage__item--big { grid-row: span 2; border-radius: var(--r-xl); aspect-ratio: auto; }
  .collage__item:not(.collage__item--big) { min-height: 260px; }
}

#proizvodstvo .fact-row { margin-top: var(--s-8); }
.fact-row { display: grid; gap: var(--s-6); }
.fact { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.fact__icon { width: 28px; height: 28px; color: var(--accent-deep); margin-top: 2px; }
.fact p { font-size: var(--fs-body); line-height: 1.55; color: var(--tx, var(--text-ink)); max-width: 34ch; }
.fact b { color: var(--text-ink); }
@media (min-width: 640px)  { .fact-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fact-row { grid-template-columns: repeat(4, 1fr); } }

.cert-line { margin-top: var(--s-7); }

/* ---------- СТМ ---------- */
.stm { background: var(--surface); border-top: 1px solid var(--line); padding-block: var(--section-pad-lg); }
.stm__head { text-align: center; display: grid; justify-items: center; gap: var(--s-4); margin-bottom: var(--s-9); }
.stm__title { max-width: 18ch; }
.stm__lead { max-width: 62ch; }

.steps { display: grid; gap: var(--s-6); counter-reset: none; padding: 0; margin: 0; }
.step {
  border-left: 2px solid var(--line);
  padding-left: var(--s-5);
  transition: border-color var(--dur-med);
}
.step__num {
  display: block;
  font: 600 3rem/1 var(--font-display);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11,27,41,0.28); /* контур читается на белом; активный — заливка accent-deep */
  transition: color var(--dur-med), -webkit-text-stroke-color var(--dur-med);
  margin-bottom: var(--s-4);
  user-select: none;
}
.step.is-active { border-color: var(--accent-deep); }
.step.is-active .step__num { color: var(--accent-deep); -webkit-text-stroke-color: transparent; }
.step__name { font: 600 var(--fs-h4)/1.3 var(--font-body); color: var(--text-ink); }
.step__text { margin-top: var(--s-2); font-size: 0.9375rem; line-height: 1.55; color: var(--text-dim); max-width: 30ch; }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
  .step { border-left: 0; border-top: 2px solid var(--line); padding-left: 0; padding-top: var(--s-5); }
}

.cta-panel {
  margin-top: var(--s-9);
  border-radius: var(--r-xl);
  overflow: clip;
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5);
}
.cta-panel__text { font: 500 var(--fs-h3)/1.25 var(--font-display); color: var(--text-on-dark); max-width: 20ch; }
.cta-panel__btn { box-shadow: var(--glow-aqua); position: relative; z-index: 6; }

/* ---------- ЛОГИСТИКА ---------- */
/* Карта — главная: мобайл — во всю ширину под текстом, врезка юга под ней,
   карточки ниже; ≥1024 — блок карты на всю ширину секции: главная карта +
   врезка юга в одном ряду, инфо сверху, карточки фактов рядом из трёх снизу */
.logi {
  display: grid; gap: var(--s-6);
  grid-template-areas: "info" "map" "facts";
}
.logi__info { grid-area: info; }
.logi__map { grid-area: map; position: relative; }
.logi__map svg { width: 100%; height: auto; display: block; }
.logi__duo { display: grid; gap: var(--s-4); }
.logi__main { position: relative; min-width: 0; }

/* Врезка-лупа юга: карточка на surface, внутри тот же dotgrid-паттерн */
.logi__inset {
  position: relative; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: var(--s-4);
}

.logi__facts { grid-area: facts; display: grid; gap: var(--s-4); }
.logi-card {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-card);
}
.logi-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgba(47,217,206,0.14); color: var(--accent-deep);
}
.logi-card p { font-size: var(--fs-body); line-height: 1.5; color: var(--text-ink); max-width: 40ch; }

/* Метрика поверх карты — в стиле каунтеров, лаймовый маркер-подчёркивание */
.logi__metric {
  position: absolute; right: 2%; bottom: 2%;
  display: grid; gap: 4px; justify-items: start;
  pointer-events: none;
}
.logi__metric-num {
  position: relative; z-index: 0; display: inline-block;
  font: 600 clamp(1.6rem, 1.1rem + 2.2vw, 3rem)/1.05 var(--font-display);
  letter-spacing: -0.01em; color: var(--text-ink);
  white-space: nowrap;
}
.logi__metric-num::after {
  content: ""; position: absolute; left: -0.1em; right: -0.1em; bottom: 0.02em;
  height: 0.26em; border-radius: var(--r-xs); z-index: -1;
  background: var(--lime); opacity: 0.85;
  transform-origin: 0 50%;
}
.logi__metric-cap { font: 500 var(--fs-caption)/1.3 var(--font-body); color: var(--text-dim); }
/* свип-блик подчёркивания: is-armed ставит JS (не reduced), is-live — по скроллу */
.logi__metric.is-armed .logi__metric-num::after { transform: scaleX(0); opacity: 0; }
.logi__metric.is-live .logi__metric-num::after { animation: logiSweep 0.9s var(--ease-out) 0.15s forwards; }
@keyframes logiSweep {
  0%   { transform: scaleX(0); opacity: 0.9; }
  60%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.85; }
}

.map-arc {
  stroke: rgba(10,110,103,0.5); /* accent-deep 50%: аква терялась на paper-2 */
  stroke-width: 2; fill: none; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.map-dot { fill: var(--aqua); stroke: #fff; stroke-width: 1.5; }
.map-city--origin .map-dot { fill: var(--accent-deep); }
/* пульс-кольцо города: показывает JS в момент прибытия импульса */
.map-pulse {
  fill: none; stroke: var(--aqua); stroke-width: 1.5; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
/* световой импульс, бегущий по дуге (создаёт JS) */
.map-spark {
  fill: var(--aqua); opacity: 0;
  filter: drop-shadow(0 0 4px rgba(47,217,206,0.9));
  pointer-events: none;
}
.map-city text {
  font: 500 12px/1 var(--font-body);
  fill: var(--text-dim); stroke: none;
  /* halo фоном секции: подписи читаемы поверх дот-грида, дуг и рамки юга */
  paint-order: stroke; stroke: var(--paper-2); stroke-width: 3px; stroke-linejoin: round;
}
.map-city--origin text { font-weight: 600; fill: var(--text-ink); }
.map-city--s text { font-size: 17px; }

/* Рамка-выноска южного кластера + линия-связка к врезке */
.map-frame {
  fill: rgba(47,217,206,0.06);
  stroke: var(--aqua); stroke-width: 1.2;
  stroke-dasharray: 5 4;
}
.map-link {
  stroke: var(--aqua); stroke-width: 1;
  stroke-dasharray: 5 4; opacity: 0.75; fill: none;
}

/* Врезка: статичные мини-дуги (без спарков), точки в стиле карты */
.inset-arc {
  stroke: var(--aqua); stroke-width: 1.5; fill: none;
  stroke-linecap: round; opacity: 0.5;
}
.inset-city text {
  font: 500 14px/1 var(--font-body);
  fill: var(--text-dim); stroke: var(--surface);
  paint-order: stroke; stroke-width: 3px; stroke-linejoin: round;
}
.inset-city--hub text { font-weight: 600; fill: var(--text-ink); }
.inset-city--hub .map-dot { fill: var(--accent-deep); }
.inset-title {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  fill: var(--text-dim);
}

/* Строка-факт под картой — только desktop, уравновешивает колонки */
.logi__note { display: none; }

/* <768: подписи городов главной карты нечитаемы в масштабе — оставляем
   Волжский и 3 якоря крупным кеглем (21px SVG ≈ 11px на экране 375);
   метрика уходит под карту. Подписи врезки остаются все: 14px в её
   viewBox 440 ≈ 11px на экране 375 — тот же кегль, что у якорей */
@media (max-width: 767px) {
  .map-city text { display: none; }
  .map-city--origin text, .map-city--key text { display: inline; font-size: 21px; }
  .logi__metric { position: static; margin-top: var(--s-3); }
}

/* <1024: врезка идёт под картой во всю ширину — горизонтальная
   линия-связка не нужна (связь читается по рамке и заголовку врезки) */
@media (max-width: 1023px) {
  .map-link { display: none; }
}

@media (min-width: 1024px) {
  /* Карта+врезка не помещаются в колонку — блок карты на всю ширину:
     инфо сверху, дуэт карт в ряд, карточки фактов рядом из трёх снизу */
  .logi { row-gap: var(--s-7); }
  .logi__facts { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .logi__duo { display: flex; align-items: stretch; gap: var(--s-6); }
  .logi__main { flex: 1 1 0; }
  .logi__inset {
    flex: 0 0 38%;
    display: flex; flex-direction: column; justify-content: center;
  }
  /* мостик связки через флекс-гэп: продолжение линии из главного svg
     (y=311 в viewBox 28..320 → 96.92% высоты ряда) */
  .logi__inset::before {
    content: ""; position: absolute;
    left: calc(-1 * var(--s-6) - 1px); width: var(--s-6);
    top: 96.92%; height: 0;
    border-top: 1px dashed rgba(47, 217, 206, 0.75);
  }
  .logi__metric { right: 3%; bottom: 8%; }
  .nb-lg { white-space: nowrap; }
  .logi__note {
    display: block;
    margin-top: var(--s-4);
    font-size: var(--fs-caption); color: var(--text-dim);
  }
}

/* ---------- СЕТИ (фактические поставки) ---------- */
/* Мобайл: компактная строка «фото слева — текст справа»;
   ≥768: вертикальная карточка в языке showcase — фото cover сверху, подпись на белом */
.net-grid { display: grid; gap: var(--s-4); }
.net-card {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-5);
  align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: box-shadow var(--dur-med);
}
.net-card:hover { box-shadow: var(--shadow-card-hover); }
.net-card__pic {
  position: relative; overflow: clip;
  width: 104px; aspect-ratio: 3 / 4; align-self: start;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
}
.net-card__pic > img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}
.net-card:hover .net-card__pic > img { transform: scale(1.04); }
/* Второе фото дуэта (Ашан): на мобильной строке места нет */
.net-card__pic-extra { display: none; }
.net-card__body { display: grid; gap: var(--s-3); justify-items: start; align-content: start; min-width: 0; }
/* Вордмарк сети — текстом, без логотипов (язык net-badge, крупнее) */
.net-card__mark {
  font: 500 clamp(1.25rem, 1.12rem + 0.6vw, 1.625rem)/1.15 var(--font-display);
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text-ink);
}
.net-card__items { font-size: 0.9375rem; line-height: 1.5; color: var(--text-dim); max-width: 34ch; }
/* Чип СТМ-кейса: паттерн logi-card__icon — аква-подложка + accent-deep (лайм на светлом запрещён) */
.net-card__stm {
  display: inline-flex; padding: 6px 12px; border-radius: var(--r-round);
  font: 600 var(--fs-label)/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(47,217,206,0.14); color: var(--accent-deep);
}
@media (min-width: 768px) {
  .net-grid { grid-template-columns: repeat(2, 1fr); gap: var(--gutter); }
  .net-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
  .net-card__pic {
    width: 100%; aspect-ratio: 4 / 5; align-self: auto;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .net-card__body { padding: var(--s-5) var(--s-5) var(--s-6); }
  .net-card__pic-extra {
    display: block; position: absolute; right: var(--s-3); bottom: var(--s-3);
    width: 40%; aspect-ratio: 3 / 4;
    border: 1px solid var(--line); border-radius: var(--r-md);
    overflow: clip; background: var(--surface);
    box-shadow: var(--shadow-card);
  }
  .net-card__pic-extra img { width: 100%; height: 100%; object-fit: cover; }
}
@media (min-width: 1024px) { .net-grid { grid-template-columns: repeat(3, 1fr); } }

/* Цитата «Ленты» — одна, компактная */
.quote-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl);
  padding: var(--s-7);
  box-shadow: var(--shadow-card);
}
.quote-card::before {
  content: "«";
  position: absolute; top: -18px; left: 20px;
  font: 600 6rem/1 var(--font-display);
  color: rgba(11,27,41,0.07);
  pointer-events: none;
}
.quote-card__brand { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.quote-card__quote { margin-top: var(--s-5); margin-bottom: var(--s-5); }
.quote-card__quote p { font: 500 var(--fs-h4)/1.5 var(--font-body); color: var(--text-ink); }
.quote-card__author {
  margin-top: auto; padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  display: grid; gap: 2px;
}
.quote-card__author b { font: 600 0.9375rem/1.4 var(--font-body); }
.quote-card__author span { font-size: var(--fs-caption); color: var(--text-dim); }
.quote-card--compact { margin-top: var(--gutter); max-width: 860px; padding: var(--s-6); }
.quote-card--compact .quote-card__quote { margin-top: var(--s-4); margin-bottom: var(--s-4); }
.quote-card--compact .quote-card__quote p { font-size: var(--fs-body); }

/* «Договоры подписаны»: приглушённая панель — поставок ещё нет, честно отделяем от действующих */
.net-signed {
  margin-top: var(--gutter);
  background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid; gap: var(--s-5);
}
.net-signed__head { display: grid; gap: var(--s-2); }
.net-signed__title { font: 600 var(--fs-h4)/1.3 var(--font-body); color: var(--text-ink); }
.net-signed__note { font-size: var(--fs-caption); line-height: 1.5; color: var(--text-dim); max-width: 36ch; }
.net-signed .net-badges { margin-top: 0; }
.net-signed .net-badge { background: var(--surface); }
@media (min-width: 900px) {
  .net-signed { grid-template-columns: minmax(240px, 340px) 1fr; column-gap: var(--s-8); align-items: center; }
}

.net-badges { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.net-badge {
  font: 600 var(--fs-label)/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line); border-radius: var(--r-round);
  padding: 12px 20px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.net-badge:hover { color: var(--text-ink); border-color: var(--text-dim); }

/* ---------- РОЗНИЦА ---------- */
.retail { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.retail__inner { text-align: center; display: grid; justify-items: center; gap: var(--s-5); }
.retail__title { font: 500 var(--fs-h2)/1.15 var(--font-display); letter-spacing: -0.01em; }
.retail__text { color: var(--text-dim); max-width: 56ch; }
.retail__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-top: var(--s-2); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: var(--s-7); }
.faq__left { align-self: start; }
.accordion { border-top: 1px solid var(--line); }
.acc-heading { margin: 0; }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  padding: var(--s-5) var(--s-2) var(--s-5) 0;
  font: 600 var(--fs-h4)/1.35 var(--font-body);
  color: var(--text-ink);
}
.acc-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(47,217,206,0.45); border-radius: var(--r-sm); }
.acc-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--accent-deep);
  transition: transform var(--dur-med) var(--ease-out);
}
.acc-icon .icon { width: 20px; height: 20px; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel__inner { overflow: hidden; min-height: 0; }
.acc-panel__inner p { color: var(--text-dim); padding-bottom: var(--s-5); max-width: 58ch; }

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .faq__left { position: sticky; top: 120px; }
}

/* без JS аккордеон раскрыт */
@media (scripting: none) {
  .acc-panel { grid-template-rows: 1fr; }
}

/* ---------- ФИНАЛЬНЫЙ CTA ---------- */
.final {
  position: relative; z-index: 3;
  background: var(--grad-cta-final);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: -36px;
  overflow: clip;
  padding-block: var(--section-pad-lg) var(--section-pad);
}
.final__glow i {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none;
}
.final__glow i:nth-child(1) { width: 420px; height: 420px; left: -6%; top: 6%; background: rgba(47,217,206,0.12); }
.final__glow i:nth-child(2) { width: 360px; height: 360px; right: -4%; bottom: 10%; background: rgba(23,120,180,0.18); }

.final__title {
  font: 600 min(var(--fs-display), 6rem, calc((100vw - 2 * var(--side-pad)) / 10.6)) / 1.06 var(--font-display);
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.final__sub { margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.55; color: var(--text-dim-dark); max-width: 58ch; }
.final__sub-phone { color: var(--aqua); text-decoration: none; }
.final__sub-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.final__sub-phone:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

.final__grid { margin-top: var(--s-8); display: grid; gap: var(--s-8); }
@media (min-width: 1024px) {
  .final__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(3rem, 8vw, 7rem); }
}

/* Форма */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: var(--s-2); }
.field__label { font-size: var(--fs-caption); font-weight: 500; color: var(--text-dim-dark); }
.field__hint { font-weight: 400; color: rgba(159,180,196,0.75); margin-left: var(--s-2); }
.field__error { font-size: 0.8125rem; color: var(--err-soft); }
.field__error[hidden] { display: none; }

.input {
  font: 400 1rem/1.4 var(--font-body); color: var(--text-on-dark);
  background: rgba(233,242,247,0.06);
  border: 1px solid rgba(233,242,247,0.16);
  border-radius: var(--r-md); padding: 16px 18px; width: 100%;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.input::placeholder { color: rgba(159,180,196,0.7); }
.input:hover { border-color: rgba(233,242,247,0.30); }
.input:focus-visible { outline: none; border-color: var(--aqua); box-shadow: var(--focus-ring); background: rgba(233,242,247,0.08); }
.input[aria-invalid="true"] { border-color: var(--err); }
.input--area { resize: vertical; min-height: 96px; }

/* honeypot: визуально спрятан */
.hp-field {
  position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Чекбокс */
.field--consent { gap: var(--s-3); }
.checkbox { display: inline-flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.checkbox__input {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden;
}
.checkbox__box {
  flex: none; width: 20px; height: 20px; border-radius: var(--r-sm2);
  border: 1px solid rgba(233,242,247,0.30);
  background: rgba(233,242,247,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.checkbox__box .icon { width: 13px; height: 13px; stroke-width: 3; color: var(--ink-on-aqua); transform: scale(0); transition: transform var(--dur-fast) var(--ease-out); }
.checkbox__input:checked + .checkbox__box { background: var(--aqua); border-color: var(--aqua); }
.checkbox__input:checked + .checkbox__box .icon { transform: scale(1); }
.checkbox__input:focus-visible + .checkbox__box { box-shadow: var(--focus-ring); }
.checkbox__label { font-size: 0.9375rem; color: var(--text-dim-dark); }
.checkbox__link { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; }
.checkbox__link:hover { color: var(--aqua-bright); }
.checkbox__link:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

.form__submit { width: 100%; }

/* Успех */
.success {
  border: 1px solid var(--ink-line); border-radius: var(--r-lg);
  background: rgba(233,242,247,0.04);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  display: grid; justify-items: center; gap: var(--s-4);
  align-self: start;
}
.success[hidden] { display: none; }
.success__mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--lime); color: var(--ink-950);
  display: inline-flex; align-items: center; justify-content: center;
}
.success__mark .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.success__title { font: 500 var(--fs-h3)/1.2 var(--font-display); }
.success__title:focus { outline: none; }
.success__text { color: var(--text-dim-dark); max-width: 40ch; }
.success__text a { color: var(--aqua); text-decoration: none; }
.success__text a:hover { text-decoration: underline; }

/* Контакты */
.contacts__list { display: grid; gap: var(--s-6); }
.contacts__label {
  display: block;
  font: 600 var(--fs-label)/1.3 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim-dark); margin-bottom: var(--s-1);
}
.contacts__item p { color: var(--text-on-dark); }
.contacts__phone {
  font: 500 var(--fs-h3)/1.2 var(--font-display);
  color: var(--text-on-dark); text-decoration: none;
  transition: color var(--dur-fast);
}
.contacts__phone:hover { color: var(--aqua-bright); }
.contacts__phone:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
.contacts__small { font-size: var(--fs-caption); color: var(--text-dim-dark); margin-top: 2px; }
.contacts__mail { color: var(--aqua); text-decoration: none; }
.contacts__mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.contacts__mail:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

.socials { display: flex; gap: var(--s-3); margin-top: var(--s-7); }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(233,242,247,0.22);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-on-dark);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.social .icon { width: 20px; height: 20px; }
.social:hover { color: var(--aqua-bright); border-color: var(--aqua); }
.social:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  background: var(--ink-footer); color: var(--text-dim-dark);
  font-size: var(--fs-caption);
  padding-block: var(--s-8) var(--s-6);
}
.footer::after {
  content: ""; position: absolute; inset: 0; z-index: 5;
  background-image: var(--grain);
  opacity: 0.05; mix-blend-mode: overlay; pointer-events: none;
}
.footer a { position: relative; z-index: 6; }
.footer__grid { display: grid; gap: var(--s-7); }
.footer__about { display: grid; gap: var(--s-5); max-width: 44ch; }
.footer__logo { color: var(--aqua); --logo-cutout: var(--ink-footer); --logo-sub: var(--text-dim-dark); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-content: start; }
.footer__nav a { color: var(--text-dim-dark); text-decoration: none; padding: 2px; border-radius: var(--r-xs); }
.footer__nav a:hover { color: var(--text-on-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer__nav a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.footer__contacts { display: grid; gap: var(--s-2); align-content: start; }
.footer__contacts a { color: var(--text-on-dark); text-decoration: none; }
.footer__contacts a:hover { color: var(--aqua-bright); }
.footer__contacts a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }
.footer__bottom {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid var(--ink-line);
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); }
}

/* ---------- ЛАЙТБОКС ---------- */
.lightbox {
  border: 0; padding: 0; margin: auto;
  background: transparent;
  max-width: min(92vw, 560px); width: 100%;
}
.lightbox::backdrop { background: rgba(4,16,31,0.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__frame { position: relative; }
.lightbox__img {
  width: 100%; height: auto; max-height: 82vh; object-fit: contain;
  border-radius: var(--r-md); background: var(--surface);
}
.lightbox__counter {
  text-align: center; margin-top: var(--s-3);
  font: 500 var(--fs-caption)/1 var(--font-body); color: var(--text-on-dark);
}
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(233,242,247,0.35);
  background: rgba(4,16,31,0.6); color: var(--text-on-dark); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.lightbox__btn:hover { border-color: var(--aqua); color: var(--aqua-bright); }
.lightbox__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.lightbox__btn--prev { left: -12px; }
.lightbox__btn--next { right: -12px; }
.lightbox__btn--close { top: -12px; right: -12px; transform: none; width: 42px; height: 42px; }

/* ============================================================
   MOTION LAYER (motion-designer)
   Всё — transform/opacity; начальные скрытые состояния входа
   живут только под html.js-anim (класс ставит инлайн-скрипт
   в <head> без reduced-motion и снимает по концу хореографии
   или страховочный таймер 3s).
   ============================================================ */

/* --- Вход hero: маски строк заголовка --- */
.hero__line { display: block; overflow: clip; padding-block: 0.1em 0.14em; margin-block: -0.1em -0.14em; }
.hero__line-inner { display: block; }
html.js-anim .hero__line-inner { transform: translateY(118%); }
html.js-anim .header,
html.js-anim .hero__eyebrow,
html.js-anim .hero__lead,
html.js-anim .hero__actions .btn,
html.js-anim .hero__badges .chip,
html.js-anim .hero__product,
html.js-anim .marquee { opacity: 0; }

/* --- Линия розлива: узел-капля на фронте заполнения --- */
.fill-line__progress { will-change: transform; }
.fill-line__node {
  position: absolute; top: -5px; left: 50%;
  width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%;
  background: var(--aqua-bright);
  box-shadow: 0 0 12px 2px rgba(79,227,234,0.55);
  opacity: 0; /* показывает JS (GSAP-путь) */
}

/* --- Marquee: постоянная лента — единственный уместный will-change --- */
.marquee__track { will-change: transform; }

/* --- Стыки тёмное↔светлое: статичная тень «губы», движение даёт scrub --- */
.light-shell { box-shadow: 0 -20px 44px -18px rgba(2,10,20,0.55); }
.final { box-shadow: 0 -20px 44px -18px rgba(2,10,20,0.4); }

/* --- CTA: жидкий glow-пульс (заранее отрисованная тень, анимируем opacity/scale) --- */
.btn--primary { position: relative; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 6px 28px -4px rgba(47,217,206,0.55);
  opacity: 0;
  transition: opacity var(--dur-med);
  pointer-events: none;
}
.btn--primary:hover::after { opacity: 1; animation: glowPulse 1.8s ease-in-out 0.25s infinite; }
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}
/* магнитным кнопкам transform ведёт GSAP — убираем transform из transition,
   чтобы не было двойного сглаживания */
.btn--primary.is-magnetic { transition-property: box-shadow, background, color, border-color; }

/* --- Иконки-стрелки в кнопках: сдвиг по ховеру --- */
.btn .icon { transition: transform var(--dur-fast) var(--ease-out); }
.btn--retail:hover .icon { transform: translate(3px, -3px); }

/* --- Карточки: lift + фото scale 1.04 (только transform) --- */
.cat-card { transition: box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out); }
.cat-card:hover { transform: translateY(-4px); }
.cat-card__img, .cat-card__round { transform-origin: 50% 100%; }
.showcase__card img { transition: transform var(--dur-med) var(--ease-out); }
.showcase__card:hover img { transform: scale(1.04); }
.brand-card { transition: box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out); }
.brand-card:hover { transform: translateY(-4px); }
.brand-card__cover { transition: transform var(--dur-slow) var(--ease-out); }
.brand-card--featured:hover .brand-card__cover { transform: scale(1.03); }

/* --- Цифры: лаймовый блик-подчёркивание в момент завершения счёта --- */
.metric__num { position: relative; display: inline-block; }
.metric__num::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.09em;
  height: 3px; border-radius: 2px;
  background: var(--lime);
  transform: scaleX(0); transform-origin: 0 50%;
  opacity: 0;
  pointer-events: none;
}
.metric__num.is-glint::after { animation: numGlint 1.1s var(--ease-out) forwards; }
@keyframes numGlint {
  0%   { transform: scaleX(0); opacity: 1; }
  45%  { transform: scaleX(1); opacity: 1; }
  70%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* --- СТМ: «налив» — сплошная линия-прогресс вдоль таймлайна шагов --- */
.steps { position: relative; --flow: 0; }
.steps::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent-deep) 0%, var(--aqua) 100%);
  border-radius: 2px;
  transform: scaleY(var(--flow, 0)); transform-origin: 0 0;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .steps::before {
    top: 0; bottom: auto; right: 0; height: 2px; width: auto;
    background: linear-gradient(90deg, var(--accent-deep) 0%, var(--aqua) 100%);
    transform: scaleX(var(--flow, 0));
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .hero__canvas { display: none; }
  .hero__static-glow { display: block; }
  .hero__product-img { animation: none; }
  .marquee__track, .marquee__track.is-on { animation: none !important; }
  /* карта логистики: дуги и города статичны, без импульсов и пульсов */
  .map-pulse, .map-spark { opacity: 0; }
  .map-arc { stroke-dashoffset: 0 !important; }
  .logi__metric.is-armed .logi__metric-num::after { transform: scaleX(1); opacity: 0.85; animation: none; }
  /* motion layer: всё новое выключено */
  .fill-line__node { display: none; }
  .steps::before { display: none; }
  .metric__num::after { display: none; }
  .btn--primary::after { animation: none; }
  /* легенда «Вихрь»: градиент и подсветки остаются, движение выключено */
  .legend__swirl { animation: none; }
  .legend__year.is-shine { animation: none; }
  .hero__sunrays { display: none; }
  .light-shell, .final { transform: none !important; }
  html.js-anim .hero__line-inner { transform: none; }
  html.js-anim .header,
  html.js-anim .hero__eyebrow,
  html.js-anim .hero__lead,
  html.js-anim .hero__actions .btn,
  html.js-anim .hero__badges .chip,
  html.js-anim .hero__product,
  html.js-anim .marquee { opacity: 1; }
}

/* ============================================================
   КАТАЛОГ (catalog.html)
   Hero страницы, чипы-фильтры, сетка карточек, модальная
   карточка товара. Всё на токенах §3; светлая зона.
   ============================================================ */

/* ---------- Hero каталога: компактный тёмный блок ---------- */
.cat-hero {
  position: relative;
  overflow: clip;
  padding-block: calc(var(--header-h) + var(--s-7)) var(--s-8);
}
.cat-hero__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cat-hero__glow i { position: absolute; display: block; border-radius: 50%; filter: blur(10px); }
.cat-hero__glow i:nth-child(1) {
  left: -10%; top: -40%; width: 60%; height: 160%;
  background: radial-gradient(closest-side, rgba(47,217,206,0.16), transparent 72%);
}
.cat-hero__glow i:nth-child(2) {
  right: -8%; bottom: -60%; width: 55%; height: 170%;
  background: radial-gradient(closest-side, rgba(23,120,180,0.22), transparent 74%);
}
.cat-hero__inner { position: relative; z-index: 1; }
.cat-hero__title { font: 500 var(--fs-h1)/1.05 var(--font-display); max-width: 16ch; }
.cat-hero__lead {
  margin-top: var(--s-5);
  font-size: var(--fs-lead); line-height: 1.5;
  color: var(--text-dim-dark); max-width: 62ch;
}
.cat-hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
/* лайм разрешён только на тёмном — здесь это цифра счётчика */
.cat-hero__count { font: 600 1.125rem/1 var(--font-display); color: var(--lime); }
.cat-hero__cta { margin-top: var(--s-6); }

/* ---------- Фильтр по категориям ---------- */
.catalog { padding-block: var(--s-8) var(--section-pad); }
.cat-filter { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-round);
  border: 1px solid var(--line); background: var(--surface);
  font: 500 0.9375rem/1.2 var(--font-body); color: var(--text-dim);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.cat-chip:hover { border-color: var(--aqua); color: var(--text-ink); }
.cat-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cat-chip.is-active { background: var(--aqua); border-color: var(--aqua); color: var(--ink-on-aqua); }
.cat-chip__num {
  font: 600 var(--fs-label)/1 var(--font-body);
  padding: 4px 7px; border-radius: var(--r-round);
  background: var(--paper-2); color: var(--text-dim);
}
.cat-chip.is-active .cat-chip__num { background: rgba(6,32,51,0.16); color: var(--ink-on-aqua); }
.cat-filter__status { margin-top: var(--s-4); font-size: var(--fs-caption); color: var(--text-dim); }

/* <600: перенос дал бы шесть строк подряд — вместо этого один ряд со скроллом
   и снапом, как у витрин. Маску по краю не ставим: она срезала бы фокус-ринг */
@media (max-width: 599px) {
  .cat-filter {
    flex-wrap: nowrap; overflow-x: auto;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--side-pad);
    scrollbar-width: none;
    padding-bottom: var(--s-2);
  }
  .cat-filter::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 auto; scroll-snap-align: start; }
}

/* ---------- Сетка карточек ---------- */
.pgrid {
  margin-top: var(--s-5);
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px)  { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 900px)  { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pcard {
  position: relative; overflow: clip;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow var(--dur-med), border-color var(--dur-med);
}
.pcard:hover { box-shadow: var(--shadow-card-hover); }
.pcard.is-hidden { display: none; }

.pcard__pic { position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.pcard__pic img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}
.pcard:hover .pcard__pic img { transform: scale(1.04); }
/* плейсхолдер для позиции без фото — в языке карточек, не «битая картинка» */
.pcard__noimg {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 3 / 4;
  background: var(--grad-card-cat); color: var(--line);
}
.pcard__noimg svg {
  width: 38%; max-width: 72px; height: auto;
  fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}

.pcard__badge {
  position: absolute; z-index: 3; top: var(--s-3); left: var(--s-3);
  padding: 5px 11px; border-radius: var(--r-round);
  font: 600 var(--fs-label)/1.2 var(--font-body);
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--aqua); color: var(--ink-on-aqua);
}

.pcard__body { flex: 1; display: grid; align-content: start; gap: 6px; padding: var(--s-4); }
.pcard__title { font: 600 0.9375rem/1.35 var(--font-body); color: var(--text-ink); }
.pcard__open {
  display: block; width: 100%; padding: 0;
  font: inherit; color: inherit; text-align: left;
  background: none; border: 0; cursor: pointer;
}
/* растянутая зона клика: вся карточка открывает модалку, но ссылки магазинов
   лежат выше по z-index и остаются самостоятельными */
.pcard__open::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: var(--r-lg);
}
.pcard__open:focus-visible { outline: none; }
.pcard__open:focus-visible::after { box-shadow: var(--focus-ring); }
.pcard:hover .pcard__title { color: var(--accent-deep); }

.pcard__desc {
  font-size: var(--fs-caption); line-height: 1.45; color: var(--text-dim);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}

.pcard__shops {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  padding: 0 var(--s-4) var(--s-4);
}
.pcard__shop {
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: var(--r-round);
  border: 1px solid var(--line);
  font: 600 var(--fs-label)/1.3 var(--font-body);
  color: var(--text-dim); text-decoration: none;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.pcard__shop:hover { border-color: var(--aqua); color: var(--accent-deep); }
.pcard__shop:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.pgrid__empty { margin-top: var(--s-6); color: var(--text-dim); }
.pgrid__empty a { color: var(--accent-deep); }

/* Появление после фильтрации: волна с шагом 24ms, потолок --i:9 ставит JS */
.pgrid.is-anim .pcard:not(.is-hidden) {
  animation: pcardIn var(--dur-med) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 24ms);
}
@keyframes pcardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Модальная карточка товара ---------- */
.pmodal {
  border: 0; padding: 0; margin: auto;
  background: transparent;
  width: 100%; max-width: min(94vw, 880px); max-height: 92vh;
  overflow: visible;
}
.pmodal::backdrop {
  background: rgba(4,16,31,0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pmodal__frame {
  position: relative; overflow: clip;
  max-height: 92vh;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card-hover);
}
.pmodal__scroll { max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; }
.pmodal__pic { background: var(--surface); border-bottom: 1px solid var(--line); }
/* на мобильном фото ограничено по высоте, иначе кнопка «Запросить цену»
   уезжает за пределы экрана; фон белый — поля от contain незаметны */
.pmodal__pic img {
  width: 100%; height: 100%; max-height: 34vh;
  aspect-ratio: 3 / 4; object-fit: contain;
}
.pmodal__body { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-5); }
.pmodal__title { font: 500 var(--fs-h3)/1.2 var(--font-display); color: var(--text-ink); }
.pmodal__cat { margin-bottom: 0; }
.pmodal__vol {
  justify-self: start;
  padding: 6px 12px; border-radius: var(--r-round);
  font: 600 var(--fs-label)/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(47,217,206,0.14); color: var(--accent-deep);
}
.pmodal__vol[hidden] { display: none; }
.pmodal__desc { font-size: 0.9375rem; line-height: 1.6; color: var(--text-dim); }
.pmodal__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  margin-top: var(--s-2);
}
.pmodal__shops { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); }
.pmodal__close {
  position: absolute; z-index: 2; top: var(--s-3); right: var(--s-3);
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-ink);
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.pmodal__close:hover { border-color: var(--aqua); color: var(--accent-deep); }
.pmodal__close:focus-visible { outline: none; box-shadow: var(--focus-ring); }

@media (min-width: 768px) {
  .pmodal__scroll { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .pmodal__pic { border-bottom: 0; border-right: 1px solid var(--line); }
  .pmodal__pic img { max-height: none; height: 100%; }
  .pmodal__body { padding: var(--s-6); gap: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  /* фильтрация и раскрытие карточки — без движения */
  .pgrid.is-anim .pcard:not(.is-hidden) { animation: none; }
  .pcard:hover .pcard__pic img { transform: none; }
}

/* ---------- ПРОМО-РОЛИК (секция «Производство») ---------- */
.promo { margin: var(--s-7) 0 0; }
.promo__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden; overflow: clip;
  background: var(--ink-900);
  box-shadow: var(--shadow-card-hover);
  isolation: isolate;
}
.promo__poster,
.promo__frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.promo__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,16,31,0.10) 0%, rgba(4,16,31,0.42) 100%);
  pointer-events: none;
  transition: opacity var(--dur-med);
}
.promo__frame.is-playing::after,
.promo__frame.is-playing .promo__badge { opacity: 0; }

.promo__play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(72px, 9vw, 104px); aspect-ratio: 1;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(233,242,247,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(233,242,247,0.30), var(--glow-aqua);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: transform var(--dur-med), background var(--dur-med);
}
.promo__play svg { width: 38%; margin-left: 8%; }
.promo__play::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(47,217,206,0.55);
  animation: promoRing 2.6s ease-out infinite;
}
@keyframes promoRing {
  0%   { transform: scale(1);    opacity: 0.9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.promo__play:hover { background: var(--aqua); color: var(--ink-950); transform: translate(-50%, -50%) scale(1.06); }
.promo__play:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }

.promo__badge {
  position: absolute; left: var(--s-4); bottom: var(--s-4);
  padding: 6px 14px;
  border-radius: var(--r-pill, 999px);
  background: rgba(4,16,31,0.55);
  backdrop-filter: blur(6px);
  color: var(--text-on-dark);
  font-size: var(--fs-caption); letter-spacing: 0.02em;
  transition: opacity var(--dur-med);
}
.promo__cap {
  margin-top: var(--s-3);
  font-size: var(--fs-caption);
  color: var(--text-dim);
}
@media (prefers-reduced-motion: reduce) {
  .promo__play::before { animation: none; }
}
