/* PROKUST — кизильник блестящий
   Палитра снята с фотографий питомника: тень внутри куста, мокрый контейнер,
   пасмурное небо над полем, рыжий побег. Акцент на тёмном — не цвет, а блик. */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/unbounded-latin.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+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/golos-latin.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+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("/assets/fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;

  --ink: #06100a;
  --pot: #0e1a12;
  --leaf: #1f4e2f;
  --haze: #d9dfd4;
  --gloss: #f3f8ef;
  --stem: #b0693c;

  --stem-lit: #d08b57;
  --stem-deep: #8a4e28;
  --on-dark-soft: #a6b3a8;
  --on-haze-soft: #46584b;
  --hair-dark: rgba(243, 248, 239, 0.16);
  --hair-haze: rgba(6, 16, 10, 0.16);
  --error: #ff9a8c;

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

  --shell: min(92vw, 1420px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--gloss);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.cookie-open { padding-bottom: 132px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; }

.shell { width: var(--shell); margin-inline: auto; }
section[id] { scroll-margin-top: 84px; }
.band { padding-block: clamp(76px, 9vw, 148px); }
.band--haze { background: var(--haze); color: var(--ink); }
.band--dark { background: var(--ink); color: var(--gloss); }

.skip-link {
  position: fixed; z-index: 1200; top: 12px; left: 12px;
  padding: 12px 18px; transform: translateY(-160%);
  background: var(--gloss); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--stem-lit); outline-offset: 3px; border-radius: 1px;
}
.band--haze :where(a, button, input):focus-visible { outline-color: var(--stem-deep); }

/* Надпись-ярлык: мелкая, разрядка, как штамп на бирке питомника */
.eyebrow, .offer__pretitle {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stem-lit);
}
.band--haze .eyebrow { color: var(--stem-deep); }

/* ── Герой ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: clip; background: var(--ink); }
.hero__media { position: absolute; inset: -8% 0 -8%; z-index: 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(6, 16, 10, 0.9) 0%, rgba(6, 16, 10, 0.55) 46%, rgba(6, 16, 10, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 16, 10, 0.72) 0%, rgba(6, 16, 10, 0.12) 34%, rgba(6, 16, 10, 0.6) 100%);
  transition: opacity 1100ms var(--ease);
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100svh; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  letter-spacing: 0.06em; line-height: 1; text-decoration: none;
}
.topbar__phone { font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; }
.topbar__phone:hover { color: var(--stem-lit); }

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.85fr);
  gap: clamp(30px, 4.5vw, 78px);
  align-items: center;
  padding-block: clamp(38px, 6vh, 84px) clamp(24px, 4vh, 40px);
}
/* Имя набирается от ширины своей колонки, а не от ширины экрана:
   «БЛЕСТЯЩИЙ» — длинное слово, и на границе двухколоночного макета
   вьюпортные единицы его обрезают. */
.offer { max-width: 820px; container-type: inline-size; }
.offer__latin {
  margin: 0 0 14px; color: var(--stem-lit);
  font-size: clamp(0.9rem, 1.15vw, 1.1rem); font-style: italic; letter-spacing: 0.02em;
}
.offer h1 {
  margin: 0;
  font-size: clamp(1.9rem, 10vw, 6.2rem);
  font-size: clamp(1.9rem, 11cqw, 6.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.offer h1 .line { display: block; overflow: hidden; }
.offer h1 .line > span { display: block; }
.offer__lead {
  max-width: 560px; margin: clamp(20px, 2.6vh, 30px) 0 0;
  color: #dbe3da; font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.5;
}

/* Спец-строка — читается как штамп на бирке, а не как карточки статистики */
.tagline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-top: clamp(24px, 3vh, 36px); padding-top: 20px;
  border-top: 1px solid var(--hair-dark);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.76rem, 1.02vw, 0.95rem); letter-spacing: 0.04em; text-transform: uppercase;
}
.tagline span { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; }
.tagline span:not(:last-child)::after { content: ""; width: 5px; height: 5px; background: var(--stem); border-radius: 50%; }
.tagline b { font-weight: 600; color: var(--gloss); }
.tagline i { font-style: normal; color: var(--on-dark-soft); font-family: var(--font-body); letter-spacing: 0.08em; }

.hero__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 56px; border-top: 1px solid var(--hair-dark);
}
.hero__scroll {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--on-dark-soft); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.hero__scroll:hover { color: var(--gloss); }
.hero__scroll svg { transition: transform 400ms var(--ease); }
.hero__scroll:hover svg { transform: translateY(3px); }

/* ── Форма ─────────────────────────────────────────────────────────── */
.lead-panel {
  width: 100%; padding: clamp(24px, 2.4vw, 38px);
  background: rgba(8, 18, 12, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hair-dark); border-radius: 3px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  scroll-margin-top: 90px;
}
.lead-panel h2 { margin: 10px 0 0; font-size: clamp(1.5rem, 1.9vw, 1.95rem); line-height: 1.1; letter-spacing: -0.01em; }
.lead-panel__intro { margin: 10px 0 22px; color: var(--on-dark-soft); font-size: 0.9rem; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: #c9d3ca; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.field input {
  width: 100%; min-height: 52px; padding: 13px 15px;
  border: 1px solid rgba(243, 248, 239, 0.2); border-radius: 2px; outline: none;
  background: rgba(243, 248, 239, 0.04); color: var(--gloss); font-size: 1rem;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.field input::placeholder { color: #75817a; opacity: 1; }
.field input:hover { border-color: rgba(243, 248, 239, 0.4); }
.field input:focus { border-color: var(--stem-lit); background: rgba(243, 248, 239, 0.07); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { display: block; margin-top: 5px; color: var(--error); font-size: 0.76rem; line-height: 1.3; }
.field__error:empty { display: none; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; margin-top: 6px; color: #b7c2b8; font-size: 0.78rem; line-height: 1.4; cursor: pointer; }
.consent-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--stem); }
.consent-check a:hover, .lead-form__privacy a:hover { color: var(--stem-lit); }

.submit-button {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; margin-top: 18px; padding: 14px 20px;
  border: 0; border-radius: 2px; background: var(--gloss); color: var(--ink);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  text-align: left; cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.submit-button > * { position: relative; z-index: 1; }
.submit-button::before {
  content: ""; position: absolute; z-index: 0; inset: 0 -40%;
  background: linear-gradient(104deg, transparent 40%, rgba(6, 16, 10, 0.16) 50%, transparent 60%);
  transform: translateX(-100%);
}
.submit-button:hover::before { animation: sheen 900ms var(--ease) 1; }
.submit-button:hover { background: #ffffff; }
.submit-button:disabled { cursor: wait; opacity: 0.6; }
.form-status { margin: 12px 0 0; color: var(--error); font-size: 0.86rem; }
.form-status:empty { display: none; }
.lead-form__privacy { margin: 10px 0 0; color: #7f8b83; font-size: 0.72rem; }
.lead-success { padding-block: 40px; }
.lead-success__title { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }
.lead-success p { color: var(--on-dark-soft); }

/* ── Заголовок секции ──────────────────────────────────────────────── */
.band__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 80px); align-items: end; padding-bottom: clamp(34px, 4.5vw, 62px); }
.band__head h2 { margin: 14px 0 0; font-size: clamp(1.85rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em; }
.band__head p { margin: 0; color: var(--on-haze-soft); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.band--dark .band__head p { color: var(--on-dark-soft); }

/* ── Спецификация ──────────────────────────────────────────────────── */
.spec__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(30px, 4.5vw, 74px); align-items: start; }
.fact-list { border-top: 1px solid var(--ink); }
.fact {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: 20px; border-bottom: 1px solid var(--hair-haze);
}
.fact span { color: var(--on-haze-soft); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.fact strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.45rem); letter-spacing: -0.01em; text-align: right; }
.spec__note { margin: 22px 0 0; color: var(--on-haze-soft); font-size: 0.86rem; }
.spec__media { margin: 0; border-radius: 3px; overflow: hidden; }
.spec__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ── «Почему блестящий» — подпись страницы ─────────────────────────── */
.gloss { position: relative; padding-block: 0; background: var(--ink); }
.gloss__media { position: relative; overflow: hidden; height: clamp(340px, 62vh, 640px); }
/* Запас 9% сверху и снизу — столько же, сколько отрабатывает параллакс. */
.gloss__media picture { position: absolute; inset: -9% 0; display: block; }
.gloss__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.gloss__media::after {
  content: ""; position: absolute; inset: -30% -60%; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(104deg,
    transparent 36%,
    rgba(243, 248, 239, 0.03) 43%,
    rgba(243, 248, 239, 0.34) 50%,
    rgba(243, 248, 239, 0.03) 57%,
    transparent 64%);
  transform: translateX(-80%);
}
.gloss__media.is-lit::after { animation: sheen 1700ms var(--ease) 1 forwards; }
@keyframes sheen {
  0%   { transform: translateX(-80%); opacity: 0; }
  14%  { opacity: 1; }
  100% { transform: translateX(80%); opacity: 0; }
}
.gloss__body { padding-block: clamp(56px, 7vw, 104px); }
.gloss__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 5vw, 80px); align-items: start; }
.gloss__intro h2 { margin: 14px 0 0; font-size: clamp(1.85rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.03em; }
.gloss__intro p { margin: 0; color: var(--on-dark-soft); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.gloss__intro em { color: var(--stem-lit); font-style: italic; }
.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 46px); margin-top: clamp(40px, 5vw, 68px); }
.traits article { padding-top: 20px; border-top: 1px solid var(--hair-dark); }
.traits h3 { margin: 0 0 8px; font-size: 0.95rem; letter-spacing: 0.02em; }
.traits p { margin: 0; color: var(--on-dark-soft); font-size: 0.92rem; }

/* ── Поставка: нумерация здесь честная — это последовательность ────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.steps article { padding-top: 18px; border-top: 1px solid var(--ink); }
.steps b { display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--stem-deep); }
.steps h3 { margin: 0 0 7px; font-size: 0.95rem; letter-spacing: 0.02em; }
.steps p { margin: 0; color: var(--on-haze-soft); font-size: 0.9rem; }
.steps__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(40px, 5vw, 66px); padding-top: 26px; border-top: 1px solid var(--hair-haze); }
.steps__cta p { margin: 0; font-family: var(--font-display); font-size: clamp(1.05rem, 1.7vw, 1.5rem); text-transform: uppercase; letter-spacing: -0.01em; }
.outline-button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 24px;
  border: 1px solid currentColor; border-radius: 2px;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; text-transform: uppercase;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.band--haze .outline-button:hover { background: var(--ink); color: var(--haze); }
.band--dark .outline-button:hover, .legal-main .outline-button:hover { background: var(--gloss); color: var(--ink); }

/* ── Липкая панель ─────────────────────────────────────────────────── */
.railbar {
  position: fixed; z-index: 90; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(4vw, 16px);
  background: rgba(6, 16, 10, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair-dark);
  transform: translateY(-100%);
  transition: transform 420ms var(--ease);
}
.railbar.is-on { transform: translateY(0); }
.railbar__spec { display: flex; gap: 20px; color: var(--on-dark-soft); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.railbar__actions { display: flex; align-items: center; gap: 8px; }
.railbar__phone { font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.railbar__cta {
  min-height: 42px; padding: 10px 18px; border-radius: 2px;
  background: var(--gloss); color: var(--ink);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.railbar__cta:hover { background: #fff; }

/* ── Подвал ────────────────────────────────────────────────────────── */
.footer { padding-block: 62px 26px; background: var(--pot); border-top: 1px solid var(--hair-dark); }
.footer__grid { display: grid; grid-template-columns: 1.1fr 0.6fr 1fr; gap: 6vw; }
.footer p { margin: 14px 0 0; color: var(--on-dark-soft); font-size: 0.83rem; }
.footer__contacts, .footer__legal { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.footer a, .footer button { text-underline-offset: 3px; }
.footer a:hover, .footer button:hover { color: var(--stem-lit); }
.footer__legal button { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--hair-dark); color: #78847c; font-size: 0.75rem; }

/* ── Cookie ────────────────────────────────────────────────────────── */
.prokust-consent {
  position: fixed; z-index: 100;
  right: max(16px, 3vw); bottom: max(16px, 3vw); left: max(16px, 3vw);
  display: none; align-items: center; justify-content: space-between; gap: 26px;
  max-width: 1100px; margin-inline: auto; padding: 18px 22px;
  border: 1px solid var(--hair-dark); border-radius: 3px;
  background: rgba(10, 22, 15, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.prokust-consent.is-open { display: flex; }
.prokust-consent__copy strong { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.02em; text-transform: uppercase; }
.prokust-consent__copy p { display: inline; margin: 0 8px; color: var(--on-dark-soft); font-size: 0.83rem; }
.prokust-consent__copy a { font-size: 0.83rem; text-underline-offset: 3px; }
.prokust-consent__actions { display: flex; flex: 0 0 auto; gap: 10px; }
.cookie-button { min-height: 44px; padding: 10px 16px; border: 1px solid rgba(243, 248, 239, 0.28); border-radius: 2px; background: transparent; color: var(--gloss); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.cookie-button--accept { border-color: var(--gloss); background: var(--gloss); color: var(--ink); }

/* ── Появление при скролле ─────────────────────────────────────────── */
/* Скрываем только тогда, когда скрипт дожил до выполнения и поставил
   .js-motion. Иначе отвалившийся app.js оставил бы полстраницы невидимой. */
.js-motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity 760ms var(--ease), transform 760ms var(--ease); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .reveal[data-delay="1"] { transition-delay: 90ms; }
.js-motion .reveal[data-delay="2"] { transition-delay: 180ms; }
.js-motion .reveal[data-delay="3"] { transition-delay: 270ms; }

/* Загрузка героя: имя выезжает из-под маски, затемнение уходит */
.js-motion .hero .line > span { transform: translateY(105%); transition: transform 980ms var(--ease); }
.js-motion .hero__latin-anim,
.js-motion .hero .offer__lead,
.js-motion .hero .tagline,
.js-motion .hero .lead-panel,
.js-motion .hero .hero__foot {
  opacity: 0; transform: translateY(16px); transition: opacity 820ms var(--ease), transform 820ms var(--ease);
}
.is-ready .hero .line > span { transform: none; }
.is-ready .hero .line:nth-of-type(2) > span { transition-delay: 90ms; }
.is-ready .hero__latin-anim { opacity: 1; transform: none; }
.is-ready .hero .offer__lead { opacity: 1; transform: none; transition-delay: 260ms; }
.is-ready .hero .tagline { opacity: 1; transform: none; transition-delay: 350ms; }
.is-ready .hero .lead-panel { opacity: 1; transform: none; transition-delay: 420ms; }
.is-ready .hero .hero__foot { opacity: 1; transform: none; transition-delay: 520ms; }
.is-ready .hero__shade { opacity: 0.78; }

/* ── Адаптив ───────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 30px; }
  .band__head, .gloss__intro, .spec__layout { grid-template-columns: 1fr; }
  .band__head, .gloss__intro { gap: 18px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
}

@media (max-width: 820px) {
  body.cookie-open { padding-bottom: 0; }
  .hero__inner { min-height: auto; }
  .hero__media { inset: 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(6, 16, 10, 0.62) 0%, rgba(6, 16, 10, 0.5) 30%, rgba(6, 16, 10, 0.93) 100%); }
  .hero__grid { display: block; padding-block: 40px 26px; }
  .offer { max-width: none; }
  .lead-panel { margin-top: 34px; }
  .traits { grid-template-columns: 1fr; gap: 22px; }
  .railbar__spec { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; }
  .prokust-consent { align-items: stretch; flex-direction: column; gap: 14px; }
  .prokust-consent__copy p { display: block; margin: 5px 0; }
  .prokust-consent__actions { width: 100%; }
  .cookie-button { flex: 1; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100vw - 30px); }
  .topbar { min-height: 66px; }
  .topbar__phone { font-size: 0.88rem; }
  .lead-form__row { grid-template-columns: 1fr; }
  .fact { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fact strong { text-align: left; }
  .steps { grid-template-columns: 1fr; row-gap: 26px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
  .prokust-consent { right: 10px; bottom: 10px; left: 10px; padding: 16px; }
  .prokust-consent__actions { flex-direction: column; }
  .railbar { padding: 8px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js-motion .reveal, html .reveal { opacity: 1; transform: none; }
  .js-motion .hero .line > span, html .hero .line > span { transform: none; }
  .js-motion .hero__latin-anim, .js-motion .hero .offer__lead, .js-motion .hero .tagline,
  .js-motion .hero .lead-panel, .js-motion .hero .hero__foot,
  html .hero__latin-anim, html .hero .offer__lead, html .hero .tagline,
  html .hero .lead-panel, html .hero .hero__foot { opacity: 1; transform: none; }
}

/* ── Правовые страницы и 404 ───────────────────────────────────────── */
.legal-page { background: var(--ink); }
.legal-header { border-bottom: 1px solid var(--hair-dark); background: var(--pot); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.legal-header__inner > a:last-child { color: var(--stem-lit); font-weight: 600; text-decoration: none; }
.legal-main { width: min(92vw, 860px); margin-inline: auto; padding-block: clamp(52px, 7vw, 92px); }
.legal-main h1 { margin: 14px 0 16px; font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.07; letter-spacing: -0.03em; }
.legal-main .legal-updated { margin: 0 0 46px; color: var(--on-dark-soft); }
.legal-main h2 { margin: 42px 0 14px; padding-top: 20px; border-top: 1px solid var(--hair-dark); font-size: clamp(1.15rem, 2.2vw, 1.45rem); letter-spacing: -0.01em; }
.legal-main h3 { margin: 26px 0 10px; font-size: 1rem; }
.legal-main p, .legal-main li { color: #c3cdc5; }
.legal-main a { color: var(--stem-lit); text-underline-offset: 3px; }
.legal-main ul, .legal-main ol { padding-left: 22px; }
.legal-main li + li { margin-top: 7px; }
.legal-table { width: 100%; border-collapse: collapse; margin-block: 22px; }
.legal-table th, .legal-table td { padding: 13px 10px; border: 1px solid var(--hair-dark); text-align: left; vertical-align: top; }
.legal-table th { color: var(--stem-lit); }
.legal-note { padding: 18px; border-left: 2px solid var(--stem); background: rgba(176, 105, 60, 0.08); }
@media (max-width: 620px) {
  .legal-header__inner { min-height: 62px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table tr { margin-bottom: 14px; }
}
