/* ============================================================
   Промpack — производственный лендинг · v2
   Дизайн-код: спокойная светлая система по референсу index.html
   (белый фон, чёрный текст, синие акценты, зелёный дозированно)
   Шрифты: Inter (OFL), Oswald (OFL) — лицензии в assets/fonts/
   ============================================================ */

/* ------------------------------------------------------------
   1. Токены
   ------------------------------------------------------------ */
:root {
  /* Палитра (логика референса) */
  --white: #ffffff;
  --ink: #083400;                    /* «чёрный» текст с лесным подтоном */
  --tx2: rgba(8, 52, 0, .72);        /* вторичный текст */
  --line: rgba(8, 52, 0, .12);       /* волосяные линии */
  --mist: #f2f5ef;                   /* спокойная светлая поверхность */
  --lime: #87ea5c;
  --lime-deep: #5ecb31;
  --blue: #0097c7;                   /* точечные акценты, ссылки, фокус */
  --yellow: #ffea4b;
  --papaya: #ffbd89;
  --fog: #58717a;
  --negative: #cf2929;
  --positive: #008026;

  /* Совместимость со старыми именами (страницы presentation/privacy) */
  --color-lime-volt: var(--lime);
  --color-forest-ink: var(--ink);
  --color-volt-yellow: var(--yellow);
  --color-papaya: var(--papaya);
  --color-white: var(--white);
  --color-fog: var(--fog);
  --color-negative: var(--negative);
  --color-warning: #9a6500;

  /* Типографика */
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', var(--font-body);

  --size-h1: clamp(40px, 7vw, 96px);
  --size-h2: clamp(30px, 4.4vw, 56px);
  --size-h3: clamp(21px, 2.3vw, 26px);
  --size-metric: clamp(32px, 2.5vw, 40px);
  --text-body: 17px;
  --text-sm: 15px;

  /* Сетка и ритм */
  --w-page: 1216px;
  --pad-x: clamp(20px, 4.5vw, 56px);
  --sec-y: clamp(60px, 8vw, 108px);

  /* Радиусы */
  --r-panel: clamp(24px, 3.4vw, 44px);
  --r-card: clamp(20px, 2.4vw, 30px);
  --r-input: 16px;
  --r-pill: 9999px;

  /* Движение */
  --motion-fast: 160ms;
  --motion-base: 300ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tap-min: 44px;
}

/* ------------------------------------------------------------
   2. Шрифты — локальные субсеты, font-display: swap
   ------------------------------------------------------------ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/inter-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/oswald-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/oswald-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/oswald-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/oswald-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Montserrat 800 — только для фирменного логотипа «ПРОМ ЭКОПАК» */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/montserrat-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/montserrat-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ------------------------------------------------------------
   3. База
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  letter-spacing: -0.08px;
  font-feature-settings: "calt", "ss01";
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4, p, dt, dd, li, cite, figcaption { overflow-wrap: break-word; }
ul[class], ol[class] { padding: 0; list-style: none; }

a { color: inherit; }
p a, .prose a, .prose li a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
p a:hover, .prose a:hover { text-decoration-thickness: 2.5px; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--ink); color: var(--lime); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.pill:focus-visible { border-radius: var(--r-pill); }

[id] { scroll-margin-top: 92px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--lime);
  padding: 12px 24px; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none;
  transition: top var(--motion-fast) var(--ease);
}
.skip-link:focus-visible { top: 16px; }

/* ------------------------------------------------------------
   4. Поверхности, контейнер, служебная типографика
   ------------------------------------------------------------ */
.room { background: var(--bg, var(--white)); color: var(--tx, var(--ink)); }
.room--white     { --bg: var(--white); --tx: var(--ink); --muted: var(--tx2); }
.room--mist      { --bg: var(--mist);  --tx: var(--ink); --muted: var(--tx2); }
.room--ink,
.room--forest,
.room--aubergine { --bg: var(--ink); --tx: #fff; --muted: rgba(255,255,255,.72); }
.room--lime      { --bg: var(--lime); --tx: var(--ink); --muted: rgba(8,52,0,.78); }

.section { padding-block: var(--sec-y); }
.container { max-width: var(--w-page); margin-inline: auto; padding-inline: var(--pad-x); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.05px;
  padding: 9px 18px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--white); color: var(--ink);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(8,52,0,.25);
}
@media (max-width: 479px) {
  .eyebrow { font-size: 12.5px; padding: 8px 14px; gap: 8px; }
  .eyebrow::before { width: 8px; height: 8px; }
}
@media (max-width: 359px) {
  .eyebrow { font-size: 11.5px; padding: 7px 12px; }
}
.room--ink .eyebrow, .room--forest .eyebrow, .room--aubergine .eyebrow {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32);
}

.lead { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; max-width: 38em; }
.muted { color: var(--muted, var(--tx2)); }
.small { font-size: var(--text-sm); line-height: 1.5; }

/* ------------------------------------------------------------
   5. Display-типографика
   ------------------------------------------------------------ */
.display, h1, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
h1 { font-size: var(--size-h1); line-height: 1.02; max-width: 13em; }
.h2 { font-size: var(--size-h2); line-height: 1.04; max-width: 14em; }
.h3 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: var(--size-h3); line-height: 1.15; letter-spacing: .01em;
}

/* Маркер-выделение слова (чёрный + зелёный) */
.hl { position: relative; display: inline-block; padding: 0 .12em; z-index: 0; }
.hl::before {
  content: ""; position: absolute; left: 0; right: 0; top: .04em; bottom: 0;
  background: var(--lime); border-radius: .14em; z-index: -1;
}
/* Слово-акцент: тот же фирменный салатовый выделитель, что и .hl */
.blu { position: relative; display: inline-block; padding: 0 .12em; z-index: 0; }
.blu::before {
  content: ""; position: absolute; left: 0; right: 0; top: .04em; bottom: 0;
  background: var(--lime); border-radius: .14em; z-index: -1;
}

/* ------------------------------------------------------------
   6. Кнопки-pill
   ------------------------------------------------------------ */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap-min);
  padding: 13px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.08px;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease),
              color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.98); }

.pill--ink { background: var(--ink); color: var(--lime); }
.pill--ink:hover { background: #0c4a02; }
.pill--primary { background: var(--lime); color: var(--ink); }
.pill--primary:hover { background: #79df4e; }
.pill--ghost { border-color: currentColor; background: transparent; }
.pill--lg { padding: 16px 32px; font-size: 17px; }

/* ------------------------------------------------------------
   7. Шапка — белая, липкая, лёгкая
   ------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  transition: box-shadow var(--motion-base) var(--ease);
}
.header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.header__inner {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  min-height: 72px; padding-block: 10px;
}

/* Логотип: текстовый двухцветный «ПРОМ ЭКОПАК» (референс владельца).
   На светлом фоне: «ПРОМ» — чернильный, «ЭКОПАК» — салатовый #9fe870.
   На тёмном фоне: «ПРОМ» — белый, «ЭКОПАК» — тот же салатовый. */
.logo {
  font-family: 'Montserrat', var(--font-sans); font-weight: 800;
  font-size: 26px; line-height: 1; letter-spacing: .015em;
  text-transform: uppercase; color: var(--ink);
  text-decoration: none; white-space: nowrap;
  padding-block: 6px; flex: none;
}
.logo__eco { color: #9fe870; }
@media (max-width: 1180px) { .logo { font-size: 23px; } }
@media (max-width: 479px)  { .logo { font-size: 20px; } }
@media (max-width: 379px)  { .logo { font-size: 18px; } }

.nav { display: none; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -0.08px;
  padding: 10px 13px; border-radius: var(--r-pill); white-space: nowrap;
  transition: background-color var(--motion-fast) var(--ease);
}
.nav__link:hover { background: var(--mist); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__phone { display: none; text-decoration: none; font-weight: 600; font-size: 15.5px; white-space: nowrap; padding: 10px 4px; }
.header__phone:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blue); }
.header__cta { display: none; padding: 12px 22px; white-space: nowrap; }

.burger {
  width: var(--tap-min); height: var(--tap-min);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 2px solid var(--ink);
}
.burger__lines, .burger__lines::before, .burger__lines::after {
  content: ""; display: block; width: 20px; height: 2.5px; border-radius: 2px;
  background: currentColor; position: relative;
  transition: transform var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease);
}
.burger__lines::before { position: absolute; top: -7px; }
.burger__lines::after  { position: absolute; top: 7px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after  { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню — белое полноэкранное */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--white); color: var(--ink);
  padding: 104px var(--pad-x) 40px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: auto;
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity var(--motion-base) var(--ease), transform var(--motion-base) var(--ease),
              visibility 0s linear var(--motion-base);
}
.mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mobile-nav__link {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(28px, 7.6vw, 40px); line-height: 1.18;
  text-decoration: none; padding: 7px 0;
}
.mobile-nav__link:hover { color: var(--lime-deep); }
.mobile-nav__meta { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; justify-items: start; }
.mobile-nav__meta a[href^="tel"] { font-size: 21px; font-weight: 600; text-decoration: none; }

body.nav-open { overflow: hidden; }

@media (min-width: 1240px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger, .mobile-nav { display: none; }
}
@media (min-width: 1240px) {
  .nav__link { padding: 10px 10px; font-size: 14.5px; }
  .header__inner { gap: 18px; }
  .nav__list { gap: 2px; }
}
@media (min-width: 560px) and (max-width: 1239px) { .header__cta { display: inline-flex; } }
/* Телефон в шапке — только на страницах без основной навигации (презентация, политика) */
@media (min-width: 720px) { .header__phone { display: inline; } }

/* ------------------------------------------------------------
   8. Hero — белый, лёгкий; сцена в отдельной mist-панели
   ------------------------------------------------------------ */
.hero { padding-block: clamp(36px, 5.5vw, 72px) clamp(48px, 6.5vw, 88px); }
.hero h1 { margin-top: clamp(18px, 2.6vw, 30px); }
.hero__lead { margin-top: clamp(18px, 2.6vw, 28px); color: var(--tx2); }
.hero__actions { margin-top: clamp(22px, 3vw, 34px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--fog); max-width: 46em; }

/* Панель со сценой производственного цикла */
.hero__scene {
  margin-top: clamp(28px, 4.4vw, 52px);
  background: var(--mist);
  border-radius: var(--r-panel);
  padding: clamp(16px, 2.6vw, 34px) clamp(12px, 2.2vw, 30px) clamp(10px, 1.6vw, 18px);
  overflow: hidden;
}
.hero__scene svg { width: 100%; height: auto; }
.scene-m { display: none; max-width: 480px; margin-inline: auto; }
@media (max-width: 719px) {
  .scene-d { display: none; }
  .scene-m { display: block; }
}

.scene-caption {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 12px 6px 6px;
  font-size: 14px; font-weight: 600; color: var(--tx2);
  counter-reset: sc;
}
.scene-caption li { display: inline-flex; align-items: baseline; gap: 7px; }
.scene-caption li::before {
  counter-increment: sc; content: counter(sc);
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--lime-deep);
}

/* Появление элементов сцены */
.factory .enter { opacity: 0; }
.play .enter { animation: f-enter .65s var(--ease) forwards; }
.play .d1 { animation-delay: .05s; }
.play .d2 { animation-delay: .22s; }
.play .d3 { animation-delay: .42s; }
.play .d4 { animation-delay: .62s; }
.play .d5 { animation-delay: .85s; }
@keyframes f-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Потоки материала: пунктир движется по линии */
.factory .flow { stroke-dasharray: 3 12; stroke-linecap: round; }
.play .flow { animation: f-flow 1.7s linear infinite; }
.play .flow--slow { animation-duration: 3.2s; }
@keyframes f-flow { to { stroke-dashoffset: -30; } }

/* Намотка втулки: спираль вращается */
.factory .roll-spin { transform-origin: center; transform-box: fill-box; }
.play .roll-spin { animation: f-spin 6.5s linear infinite; }
@keyframes f-spin { to { transform: rotate(360deg); } }

.is-paused .factory * { animation-play-state: paused !important; }

/* Без JavaScript сцена сразу в финальном состоянии */
.no-js .factory .enter { opacity: 1; }
.no-js .js-only { display: none; }

/* ------------------------------------------------------------
   9. Метрики — спокойная mist-комната, белые карточки
   ------------------------------------------------------------ */
.metrics__head { max-width: 46em; display: grid; gap: 16px; justify-items: start; }
.metrics__grid {
  margin-top: clamp(30px, 4.4vw, 52px);
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
.metric {
  background: var(--white);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.4vw, 28px);
  display: grid; gap: 9px; align-content: start;
  min-width: 0;
}
.metric dt { order: 2; font-size: 15.5px; line-height: 1.42; color: var(--ink); font-weight: 600; }
.metric .metric__value { order: 1; }
.metric .metric__src { order: 3; }
.metric__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--size-metric); line-height: 1;
  text-transform: uppercase; letter-spacing: .005em;
}
.metric__value em { font-style: normal; background: var(--lime); border-radius: 10px; padding: 0 .12em; }
.metric__src { font-size: 13.5px; line-height: 1.45; color: var(--fog); }

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

/* ------------------------------------------------------------
   10. Продукция — белая комната, цветная мозаика карточек
   ------------------------------------------------------------ */
.products__intro { display: grid; gap: 16px; max-width: 46em; justify-items: start; }
.mosaic { margin-top: clamp(30px, 4.4vw, 52px); display: grid; gap: 14px; }
.card {
  border-radius: var(--r-panel);
  padding: clamp(22px, 2.8vw, 34px);
  display: flex; flex-direction: column; gap: 13px;
  background: var(--bg, var(--white)); color: var(--tx, var(--ink));
  min-width: 0;
}
.mosaic .card { min-height: 320px; }
.card--lime   { --bg: var(--lime);   --tx: var(--ink); }
.card--ink    { --bg: var(--ink);    --tx: #fff; }
.card--papaya { --bg: var(--papaya); --tx: var(--ink); }
.card--yellow { --bg: var(--yellow); --tx: var(--ink); }
.card--white  { --bg: var(--white);  --tx: var(--ink); }

.card__icon { width: 68px; height: 68px; flex: none; }
.card__icon .fillsoft { fill: currentColor; opacity: .14; }
.card__title { max-width: 12em; }
.card__text { max-width: 34em; font-size: 15.5px; line-height: 1.5; }
.card--ink .card__text { color: rgba(255,255,255,.78); }
.card__meta { font-size: 13.5px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 7px; }
.card__meta span { border: 1.5px solid currentColor; border-radius: var(--r-pill); padding: 5px 13px; opacity: .85; }
.card__cta { margin-top: auto; align-self: flex-start; }
.card--ink .card__cta.pill--ink { background: var(--lime); color: var(--ink); }
.card--ink .card__cta.pill--ink:hover { background: #79df4e; }

.products__other {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  background: var(--mist);
  border-radius: var(--r-card);
  padding: 18px clamp(20px, 2.6vw, 28px);
  font-size: 15.5px;
}
.products__other p { flex: 1 1 320px; min-width: 0; }

@media (min-width: 680px)  { .mosaic { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------
   11. Замкнутый цикл — тёмная комната, орбита + стадии
   ------------------------------------------------------------ */
.cycle__grid {
  margin-top: clamp(28px, 4.4vw, 52px);
  display: grid; gap: clamp(24px, 3.6vw, 48px); align-items: start;
}
.cycle__scene { display: block; }
.cycle-svg { width: 100%; max-width: 520px; height: auto; margin-inline: auto; display: block; }

/* --- Кольцо цикла --- */
.cycle-svg .orbit { stroke: rgba(255,255,255,.26); stroke-dasharray: 3 9; }
.cycle-svg .orbit-flow { stroke: var(--lime); stroke-dasharray: 150 1169.5; stroke-dashoffset: -839.6; opacity: .9; }

/* --- Материал, идущий по кругу --- */
.cycle-svg .rider-disc { fill: var(--lime); }
.cycle-svg .rider-ico { stroke: var(--ink); }
.cycle-svg .orbit-rider { transform-box: fill-box; transform-origin: center; }

/* --- Узлы --- */
.cycle-svg .node-halo { fill: var(--lime); opacity: 0; transform-box: fill-box; transform-origin: center; }
.cycle-svg .node-ring {
  fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.4); stroke-width: 2;
  transition: fill var(--motion-base) var(--ease), stroke var(--motion-base) var(--ease);
}
.cycle-svg .node-ico { stroke: #fff; transition: stroke var(--motion-base) var(--ease); }
.cycle-svg .node.is-active .node-ring { fill: var(--lime); stroke: var(--lime); }
.cycle-svg .node.is-active .node-ico { stroke: var(--ink); }

/* --- Центральный счётчик этапа --- */
.cycle-core__num {
  font-family: var(--font-display); font-weight: 700; font-size: 56px;
  fill: var(--lime); letter-spacing: .02em;
}
.cycle-core__label {
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  fill: #fff; text-transform: uppercase; letter-spacing: .04em;
}

/* --- Движение: включается классом .is-running, останавливается .is-paused --- */
@keyframes cyc-rotor { to { transform: rotate(360deg); } }
@keyframes cyc-rider { to { transform: rotate(-360deg); } }
@keyframes cyc-flow  { from { stroke-dashoffset: -839.6; } to { stroke-dashoffset: -2159.1; } }
@keyframes cyc-halo  { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(1.28); } }
@keyframes cyc-bob   { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@keyframes cyc-split { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@keyframes cyc-press { 0%, 30%, 100% { transform: translateY(0); } 55%, 70% { transform: translateY(5px); } }
@keyframes cyc-spin  { to { transform: rotate(360deg); } }
@keyframes cyc-draw  { 0% { stroke-dashoffset: 27; } 40%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 27; } }
@keyframes cyc-nudge { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(3px); } }
@keyframes cyc-speed { 0%, 100% { opacity: .15; } 50% { opacity: .95; } }

.cycle__scene.is-running .orbit-rotor {
  transform-box: view-box; transform-origin: 260px 260px;
  animation: cyc-rotor 19.2s linear infinite;
  animation-delay: var(--cyc-delay, 0s);
}
.cycle__scene.is-running .orbit-rider {
  animation: cyc-rider 19.2s linear infinite;
  animation-delay: var(--cyc-delay, 0s);
}
.cycle__scene.is-running .orbit-flow {
  animation: cyc-flow 19.2s linear infinite;
  animation-delay: var(--cyc-delay, 0s);
}
.cycle__scene.is-running .node.is-active .node-halo { animation: cyc-halo 2.2s ease-out infinite; }
.cycle__scene.is-running .ico-bob   { animation: cyc-bob 2.4s ease-in-out infinite; }
.cycle__scene.is-running .ico-split { animation: cyc-split 2.6s ease-in-out infinite; }
.cycle__scene.is-running .ico-split--b { animation-delay: -1.3s; }
.cycle__scene.is-running .ico-press { animation: cyc-press 2.2s ease-in-out infinite; }
.cycle__scene.is-running .ico-gear  { animation: cyc-spin 7s linear infinite; }
.cycle__scene.is-running .ico-check { stroke-dasharray: 27; animation: cyc-draw 3s ease-in-out infinite; }
.cycle__scene.is-running .ico-truck { animation: cyc-nudge 2.4s ease-in-out infinite; }
.cycle__scene.is-running .ico-wheel { animation: cyc-spin 1.6s linear infinite; }
.cycle__scene.is-running .ico-speed { animation: cyc-speed 1.2s ease-in-out infinite; }
.cycle__scene.is-running .ico-speed--b { animation-delay: -.4s; }

.ico-bob, .ico-split, .ico-press, .ico-gear, .ico-truck, .ico-wheel, .node-halo {
  transform-box: fill-box; transform-origin: center;
}
.cycle__scene.is-paused *, .cycle__scene.is-paused { animation-play-state: paused !important; }

.stages { display: grid; gap: 10px; counter-reset: stage; min-width: 0; }
.stage {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline;
  border: 1.5px solid rgba(255,255,255,.24);
  border-radius: var(--r-card);
  padding: 16px 20px;
  transition: border-color var(--motion-base) var(--ease), background-color var(--motion-base) var(--ease);
}
.stage::before {
  counter-increment: stage; content: counter(stage, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  color: var(--lime); grid-row: 1 / 3; line-height: 1.35;
}
.stage__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 19px; letter-spacing: .01em;
}
.stage__text { grid-column: 2; color: var(--muted); font-size: 14.5px; line-height: 1.48; max-width: 34em; }
.stage:hover { border-color: rgba(255,255,255,.55); }
.stage.is-active { border-color: var(--lime); background: rgba(135,234,92,.09); }

.cycle__actions { margin-top: clamp(26px, 3.6vw, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
.room--ink .pill--ghost { color: #fff; }

@media (max-width: 959px) { .cycle-svg { max-width: 340px; } }
@media (min-width: 960px) {
  .cycle__scene { position: sticky; top: 96px; }
  .cycle__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}

/* ------------------------------------------------------------
   12. Снабжение — белая комната, факты + фото
   ------------------------------------------------------------ */
.supply__head { max-width: 40em; display: grid; gap: 16px; justify-items: start; }
.proofs { margin-top: clamp(28px, 4.2vw, 48px); display: grid; gap: clamp(18px, 2.6vw, 30px); }
.proof { display: grid; gap: 7px; align-content: start; padding-top: 16px; border-top: 3px solid var(--ink); min-width: 0; }
.proof__title {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 19px; letter-spacing: .01em;
}
.proof__text { color: var(--tx2); font-size: 15px; line-height: 1.5; }

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

.supply__media { margin-top: clamp(30px, 4.4vw, 52px); }
.supply__media picture { display: block; }
.supply__media img {
  width: 100%; border-radius: var(--r-panel);
  aspect-ratio: 1672 / 941; object-fit: cover;
}
.supply__media figcaption { margin-top: 13px; font-size: 14.5px; color: var(--tx2); max-width: 46em; }

/* ------------------------------------------------------------
   13. Вторсырьё + основатель — mist-комната, две карточки
   ------------------------------------------------------------ */
.duo { display: grid; gap: 14px; align-items: stretch; }
.duo > * { min-width: 0; }

.recycle { gap: 15px; }
.recycle .eyebrow { align-self: flex-start; }
.recycle__list { display: grid; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.recycle__list li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.recycle__list li::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px;
  background: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(8,52,0,.22);
  margin-top: 6px;
}
.recycle__phone {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 27px);
  text-decoration: none; letter-spacing: .01em;
}
.recycle__phone:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blue); }
.recycle__phone-note { font-size: 13.5px; color: var(--fog); }

.founder { display: grid; gap: 18px; padding: clamp(14px, 1.8vw, 18px); }
.founder__photo {
  border-radius: calc(var(--r-panel) - 10px);
  overflow: hidden;
  min-height: 100%;
}
.founder__photo picture, .founder__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%;
}
.founder__body { display: grid; gap: 16px; align-content: start; padding: clamp(8px, 1.4vw, 16px); min-width: 0; }
.founder blockquote { display: grid; gap: 12px; }
.founder blockquote p { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.45; }
.founder cite { font-style: normal; font-size: 14px; color: var(--muted); }
.values { display: flex; flex-wrap: wrap; gap: 7px; }
.values li {
  font-size: 13.5px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--r-pill);
  padding: 6px 14px; color: rgba(255,255,255,.9);
}
.founder .card__text { font-size: 15.5px; }
.founder .card__cta { margin-top: 2px; justify-self: start; align-self: auto; }

@media (max-width: 879px) {
  .founder__photo { aspect-ratio: 4 / 3; min-height: 0; }
  .founder__photo img { object-position: 50% 12%; }
}
@media (min-width: 880px) {
  .founder { grid-template-columns: minmax(190px, .85fr) 1.15fr; align-items: stretch; }
}
@media (min-width: 940px) {
  .duo { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
}

/* ------------------------------------------------------------
   14. Финал — тёмная комната, белая форма
   ------------------------------------------------------------ */
.final__grid { display: grid; gap: clamp(28px, 4.4vw, 56px); align-items: start; }
.final__grid > * { min-width: 0; }
.final__head { display: grid; gap: 18px; justify-items: start; }
.final__head .display { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.08; color: var(--lime); max-width: 11em; }
.final__head .lead { color: rgba(255,255,255,.8); }
.final__contacts { display: grid; gap: 12px; margin-top: 6px; justify-items: start; }
.final__contacts a { font-weight: 600; text-decoration: none; }
.final__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.final__contacts .big {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(25px, 3.2vw, 40px); letter-spacing: .01em; line-height: 1.1;
}
.final__docs { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 980px) {
  .final__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
}

/* Форма */
.form-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--r-panel);
  padding: clamp(20px, 2.8vw, 36px);
  display: grid; gap: 16px;
}
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; width: 100%;
  background: var(--mist);
  border: 1.5px solid transparent;
  border-radius: var(--r-input);
  padding: 13px 17px; min-height: var(--tap-min);
}
.field textarea { min-height: 108px; resize: vertical; }
.field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23083400' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 17px center; padding-right: 44px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--blue); background: var(--white); border-radius: var(--r-input);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--negative); background: #fff5f5; }
.field__error { display: none; color: var(--negative); font-size: 13.5px; font-weight: 600; }
.field.is-invalid .field__error { display: block; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; font-size: 13.5px; line-height: 1.45; color: var(--tx2); }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); }
.consent .field__error { grid-column: 1 / -1; }

.form-note { font-size: 13.5px; line-height: 1.5; color: var(--fog); }
.form-status { font-size: 14px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status a { color: var(--blue); }
.form-status.is-error { color: var(--negative); }

/* ------------------------------------------------------------
   15. Футер — тёмный, отделён линией
   ------------------------------------------------------------ */
.footer {
  padding-block: clamp(44px, 5.5vw, 64px) 30px;
  font-size: 15px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.footer__grid { display: grid; gap: clamp(26px, 4vw, 48px); }
.footer__grid > * { min-width: 0; }
.footer h2 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(255,255,255,.55);
  margin-bottom: 13px;
}
.footer address { font-style: normal; display: grid; gap: 5px; }
.footer a { text-decoration: none; color: rgba(255,255,255,.88); }
.footer a:hover { color: var(--lime); }
.footer ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.footer__law { display: grid; gap: 4px; color: var(--muted); margin-top: 14px; font-size: 13.5px; }
.footer__brand {
  font-family: 'Montserrat', var(--font-sans); font-weight: 800; font-size: 26px;
  letter-spacing: .015em; text-transform: uppercase; white-space: nowrap;
  margin-bottom: 14px; color: #fff;
}
.footer__brand .logo__eco { color: #9fe870; }
.footer__bottom {
  margin-top: clamp(28px, 4vw, 44px); padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  color: var(--muted); font-size: 13.5px;
}
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.35fr 1fr 1fr .9fr; } }

/* ------------------------------------------------------------
   16. Reveal-появления (IntersectionObserver)
   ------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s var(--ease);
}
.no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   17. Страницы presentation / privacy
   ------------------------------------------------------------ */
.page-hero { padding-block: clamp(44px, 6.5vw, 88px); }
.page-hero h1 { font-size: clamp(34px, 5.6vw, 76px); max-width: 14em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.prose { max-width: 46em; display: grid; gap: 15px; }
.prose h2 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.08; margin-top: 24px;
}
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 8px; }
.prose ul li::marker { color: var(--lime-deep); }
.chapter { padding-block: clamp(36px, 5.5vw, 64px); }
.chapter + .chapter { border-top: 1.5px solid var(--line); }
.notice {
  border: 2px solid var(--color-warning); border-radius: var(--r-card);
  padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 8px; max-width: 46em;
}
.notice strong { color: var(--color-warning); text-transform: uppercase; letter-spacing: .04em; }

/* ------------------------------------------------------------
   17b. Реквизиты — карточки с копированием
   ------------------------------------------------------------ */
.nav__link[aria-current] { background: var(--lime); color: var(--ink); }
.nav__link[aria-current]:hover { background: var(--lime-deep); }
.mobile-nav__link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--lime);
  text-decoration-thickness: 5px; text-underline-offset: 4px;
}
.footer a[aria-current="page"] { color: var(--lime); }

.copy-status { margin-top: 14px; min-height: 1.4em; font-size: 15px; color: var(--tx2); }
.copy-status:empty { min-height: 0; margin-top: 0; }

.req-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .req-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.req-card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r-card); padding: clamp(20px, 2.6vw, 30px);
  min-width: 0;
}
.req-card .h3 { margin-bottom: 6px; }
.req-list { display: grid; }
.req-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px;
  align-items: start; padding-block: 14px; border-top: 1px solid var(--line);
}
.req-row dt {
  grid-column: 1; font-size: 13.5px; line-height: 1.35; color: var(--fog);
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.req-row dd {
  grid-column: 1; margin: 0; font-size: 16.5px; line-height: 1.45;
  font-weight: 600; overflow-wrap: anywhere;
}
.req-num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.req-row .copy { grid-column: 2; grid-row: 1 / 3; }

.copy {
  width: 38px; height: 38px; flex: none; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  position: relative; transition: border-color var(--motion-fast) var(--ease),
    background-color var(--motion-fast) var(--ease);
}
.copy::before, .copy::after {
  content: ""; position: absolute; border: 1.6px solid var(--ink); border-radius: 3px;
}
.copy::before { width: 12px; height: 14px; left: 9px; top: 8px; }
.copy::after { width: 12px; height: 14px; left: 14px; top: 13px; background: var(--white); }
.copy:hover { border-color: var(--ink); background: var(--mist); }
.copy.is-done { border-color: var(--lime-deep); background: var(--lime); }
.copy.is-done::before { display: none; }
.copy.is-done::after {
  width: 14px; height: 8px; left: 11px; top: 12px;
  border: 0; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  border-radius: 1px; background: none; transform: rotate(-45deg);
}

.req-note { margin-top: 14px; font-size: 14.5px; color: var(--tx2); }

.req-cta {
  margin-top: clamp(26px, 3.4vw, 40px); padding: clamp(20px, 2.8vw, 30px);
  background: var(--mist); border-radius: var(--r-card);
  display: grid; gap: 16px; align-items: center;
}
.req-cta p { max-width: 40em; }
.req-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 780px) { .req-cta { grid-template-columns: 1fr auto; gap: 24px; } }

/* ------------------------------------------------------------
   17c. Фотогалерея — превью 4:3 и просмотр в увеличенном виде
   ------------------------------------------------------------ */
.gal-grid { display: grid; gap: 14px; margin-top: clamp(26px, 3.6vw, 40px); }
@media (min-width: 600px) { .gal-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gal-grid--teaser { grid-template-columns: repeat(4, 1fr); } }

.gal-item { margin: 0; min-width: 0; display: grid; gap: 10px; align-content: start; }
.gal-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  border-radius: var(--r-card); overflow: hidden; cursor: zoom-in;
  position: relative; line-height: 0;
}
.gal-btn img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--line); transition: transform 600ms var(--ease);
}
.gal-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(8, 52, 0, .1);
  transition: box-shadow var(--motion-base) var(--ease);
}
.gal-btn:hover img, .gal-btn:focus-visible img { transform: scale(1.035); }
.gal-btn:hover::after { box-shadow: inset 0 0 0 2.5px var(--lime-deep); }
.room--ink .gal-btn::after { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }

.gal-cap { display: grid; gap: 3px; line-height: 1.45; }
.gal-cap b {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 17px; letter-spacing: .01em;
}
.gal-cap span { font-size: 14.5px; color: var(--tx2); }
.room--ink .gal-cap span { color: var(--muted); }

.gal-section + .gal-section { margin-top: clamp(34px, 4.6vw, 60px); }
.gal-section__head { display: grid; gap: 8px; max-width: 44em; justify-items: start; }
.gal-actions { margin-top: clamp(24px, 3.2vw, 36px); display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Просмотр в увеличенном виде --- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(8, 52, 0, .93);
  padding: clamp(12px, 2.4vw, 28px);
  grid-template-rows: 1fr auto;
  gap: 14px;
}
.lightbox.is-open { display: grid; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage picture { display: contents; }
.lightbox__stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: clamp(12px, 1.6vw, 20px); object-fit: contain;
}
.lightbox__cap { color: #fff; display: grid; gap: 4px; justify-items: center; text-align: center; }
.lightbox__cap b {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(17px, 2vw, 21px); letter-spacing: .01em;
}
.lightbox__cap span { font-size: 15px; color: rgba(255,255,255,.78); max-width: 52em; }
.lightbox__count { font-size: 13.5px; color: rgba(255,255,255,.55); letter-spacing: .04em; }

.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); background: rgba(8,52,0,.5);
  cursor: pointer; color: #fff; display: grid; place-items: center;
  transition: background-color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.lightbox__btn:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.lightbox__btn::before {
  content: ""; width: 13px; height: 13px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
}
.lightbox__close { top: clamp(12px, 2.4vw, 28px); right: clamp(12px, 2.4vw, 28px); }
.lightbox__close::before {
  width: 18px; height: 18px; border: 0;
  background:
    linear-gradient(currentColor, currentColor) center/18px 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/2.5px 18px no-repeat;
  transform: rotate(45deg);
}
.lightbox__prev { left: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.lightbox__prev::before { transform: rotate(45deg); margin-left: 4px; }
.lightbox__next { right: clamp(8px, 2vw, 24px); top: 50%; transform: translateY(-50%); }
.lightbox__next::before { transform: rotate(-135deg); margin-right: 4px; }
@media (max-width: 559px) {
  .lightbox__btn { width: 44px; height: 44px; }
  .lightbox__prev { left: 6px; } .lightbox__next { right: 6px; }
}
body.lightbox-open { overflow: hidden; }

/* ------------------------------------------------------------
   17d. Правовые документы (политика, согласие)
   ------------------------------------------------------------ */
.page-hero--legal h1 {
  font-size: clamp(25px, 3.4vw, 44px); line-height: 1.12; max-width: 18em;
}
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 22px;
  font-size: 14px; color: var(--tx2);
}
.legal-meta span {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line);
}

.legal-doc { max-width: 46em; }
.legal-doc h2 {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(19px, 2.1vw, 24px); line-height: 1.2; letter-spacing: .01em;
  margin-top: clamp(30px, 3.6vw, 44px);
}
.legal-doc h3 {
  font-size: 17.5px; font-weight: 700; line-height: 1.35;
  margin-top: clamp(22px, 2.6vw, 30px);
}
.legal-doc p { margin-top: 12px; }
.legal-doc ul { margin-top: 12px; display: grid; gap: 9px; padding-left: 0; list-style: none; }
.legal-doc li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.legal-doc li::before {
  content: ""; width: 7px; height: 7px; margin-top: .55em; border-radius: 2px;
  background: var(--lime); box-shadow: inset 0 0 0 1.5px rgba(8, 52, 0, .25);
}
.legal-doc a { overflow-wrap: anywhere; }

.legal-sign {
  margin-top: clamp(26px, 3.2vw, 38px); padding: clamp(18px, 2.4vw, 26px);
  background: var(--mist); border-radius: var(--r-card); display: grid; gap: 10px;
}
.legal-sign p { margin: 0; overflow-wrap: anywhere; }

.legal-nav {
  margin-top: clamp(30px, 3.8vw, 46px); padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px;
}

/* ------------------------------------------------------------
   17e. Страница 404 — сцена с объёмными «404» из продукции
   ------------------------------------------------------------ */
.e404 { padding-block: clamp(34px, 5vw, 76px) clamp(44px, 6vw, 92px); overflow: hidden; }
.e404__grid { display: grid; gap: clamp(24px, 3.4vw, 44px); align-items: center; }
.e404__grid > * { min-width: 0; }
@media (min-width: 940px) { .e404__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }

.e404__text { display: grid; gap: 18px; justify-items: start; align-content: center; }
.e404__text .display { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.06; color: var(--lime); }
.e404__text .lead { max-width: 30em; }
.e404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.e404__links { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 6px; }
.e404__links a {
  display: inline-flex; padding: 9px 15px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
  transition: background-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.e404__links a:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px var(--lime); }
.e404__phone { font-size: 15px; color: var(--muted); max-width: 34em; }
.e404__phone a { color: var(--lime); text-underline-offset: 3px; }

/* --- сцена --- */
.e404__stage { --mx: 0; --my: 0; perspective: 1400px; }
.e404-svg {
  display: block; width: 100%; height: auto; max-width: 700px; margin-inline: auto;
  transform: rotateY(calc(var(--mx) * 4deg)) rotateX(calc(var(--my) * -3deg));
  transition: transform 420ms cubic-bezier(.22, .61, .36, 1);
  transform-style: preserve-3d;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, .45));
}
.e404-layer { transition: transform 420ms cubic-bezier(.22, .61, .36, 1); }
.e404-layer--back   { transform: translate(calc(var(--mx) * -14px), calc(var(--my) * -8px)); }
.e404-layer--shadow { transform: translate(calc(var(--mx) * 6px),  calc(var(--my) * 4px)); }
.e404-layer--mid    { transform: translate(calc(var(--mx) * 12px), calc(var(--my) * 7px)); }
.e404-layer--front  { transform: translate(calc(var(--mx) * 20px), calc(var(--my) * 12px)); }
.e404-layer--dust   { transform: translate(calc(var(--mx) * 28px), calc(var(--my) * 16px)); }

@keyframes e404-float { 0%, 100% { transform: translateY(-9px); } 50% { transform: translateY(9px); } }
@keyframes e404-spin  { to { transform: rotate(360deg); } }
@keyframes e404-flow  { to { stroke-dashoffset: -300; } }

.e404-float {
  animation: e404-float 6.4s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
.e404-float--slow { animation-duration: 7.6s; animation-delay: -1.2s; }
.e404-float--alt  { animation-duration: 6.9s; animation-delay: -2.6s; }
.e404-spin {
  animation: e404-spin 22s linear infinite;
  transform-box: fill-box; transform-origin: center;
}
.web-flow { stroke-dasharray: 26 22; animation: e404-flow 5.2s linear infinite; }
.web-flow--b { stroke-dasharray: 8 26; animation-duration: 7.4s; animation-direction: reverse; }

/* Экономим ресурсы, когда вкладка не видна */
.e404-svg[data-paused="1"] * { animation-play-state: paused !important; }

@media (max-width: 939px) {
  .e404-svg { max-width: 560px; }
  .e404__text { justify-items: start; }
}
@media (max-width: 559px) {
  .e404-svg { filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .4)); }
}

/* ------------------------------------------------------------
   18. Reduced motion — всё статично и читаемо
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .e404-float, .e404-spin, .web-flow { animation: none !important; }
  .e404-svg, .e404-layer { transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .factory .enter { opacity: 1 !important; animation: none !important; }
  .play .flow, .play .roll-spin { animation: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------
   19. Печать
   ------------------------------------------------------------ */
@media print {
  .header, .mobile-nav, .skip-link, .hero__scene, .cycle__scene, .copy, .req-cta, .lightbox { display: none !important; }
  .req-grid { grid-template-columns: 1fr !important; }
  .req-card { border: 0 !important; padding: 0 0 12px !important; break-inside: avoid; }
  .room { background: #fff !important; color: #000 !important; }
}
