/* ==========================================================================
   Black Ebike — лендинг
   Значения цветов и типографики скопированы из PLATFORM/frontend/design-tokens.md
   (монохром-премиум). Меняются токены — правится и этот файл.
   Лендинг живёт только в тёмной теме: секции построены на ночных рендерах.
   ========================================================================== */

/* ── Шрифты ──────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Archivo Black';
  src: url('fonts/archivo-black-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  src: url('fonts/archivo-black-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-cyrillic-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-cyrillic-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-cyrillic-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Токены ──────────────────────────────────────────────────────────────── */

:root {
  --bg: #0B0B0D;
  --surface: #17171A;
  --surface-2: #1F1F23;
  --text: #FFFFFF;
  --muted: #8A8A90;
  --border: #262629;
  --accent: #FFFFFF;
  --on-accent: #0B0B0D;

  --font-display: 'Archivo Black', 'Inter', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-gap: clamp(88px, 13vh, 168px);
  --radius: 20px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Основа ──────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  /* Якорь не заезжает под фиксированную шапку. */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { margin: 0; font-weight: 400; }

p { margin: 0; }

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
}
.skip-link:focus { left: 12px; }

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

/* ── Типографика ─────────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 18px;
  text-wrap: balance;
}

.section__lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
}

/* ── Кнопки ──────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.button:hover { transform: translateY(-2px); background: #E8E8EA; }
.button:active { transform: translateY(0); }

.button--large { min-height: 58px; padding: 18px 38px; font-size: 17px; }
.button--small { min-height: 40px; padding: 9px 20px; font-size: 14px; }

.button--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.button--ghost:hover { background: var(--surface-2); border-color: var(--muted); }

/* ── Шапка ───────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

/* Знак-молния вытянутый (1046:1532), поэтому высоту задаём, а ширину считает браузер:
   в квадратной коробке он «плавал» и зазор до слова казался кривым. */
.logo { display: inline-flex; align-items: center; gap: 13px; }
/* 28 px — минимальный размер знака по brand-identity §3; берём с запасом,
   иначе глаза-вырезы на лице персонажа перестают читаться. */
.logo__mark { height: 31px; width: auto; }
.logo__word {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* Оптическая компенсация: разрядка добавляет пустоту справа от последней буквы. */
  margin-right: -0.14em;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-inline: auto;
  font-size: 14px;
  color: var(--muted);
}
.site-nav a { transition: color .25s var(--ease); }
.site-nav a:hover { color: var(--text); }

.site-header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.lang { display: flex; gap: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.lang a {
  padding: 6px 8px;
  color: var(--muted);
  border-radius: 6px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.lang a:hover { color: var(--text); background: var(--surface-2); }
.lang a[aria-current] { color: var(--text); }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .logo__word { display: none; }
}

/* ── Первый экран ────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-block: 140px clamp(56px, 10vh, 110px);
  overflow: hidden;
}

.hero__media { position: absolute; inset: -8% 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Затемнение: текст читается поверх любого кадра. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(11,11,13,.72) 38%, rgba(11,11,13,.25) 72%, rgba(11,11,13,.55) 100%);
}

.hero__content { position: relative; }

.hero__title {
  font-family: var(--font-display);
  /* Нижняя граница считается по самому длинному слову в трёх языках
     («Электровелосипед»): при большем кегле оно не помещается в 390 px. */
  font-size: clamp(1.85rem, 8.4vw, 6rem);
  line-height: .98;
  letter-spacing: -0.035em;
  margin-top: 20px;
  max-width: 15ch;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero__subtitle {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.9vw, 1.28rem);
  color: #C9C9CE;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.hero__stores { font-size: 13px; color: var(--muted); }

.stores { display: flex; gap: 12px; }
.stores__link {
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  transition: border-color .25s var(--ease);
}
.stores__link:hover { border-color: var(--muted); }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(56px, 10vh, 110px);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ── Секции ──────────────────────────────────────────────────────────────── */

.section { position: relative; padding-block: var(--section-gap); }

.section__head { max-width: 46ch; margin-inline: auto; text-align: center; }

/* Заголовок в узкой колонке двухколоночной секции: на всю ширину экрана он
   разваливается на пять строк, поэтому здесь шкала на ступень ниже. */
.section__head--left { margin-inline: 0; text-align: left; max-width: none; }
.section__head--left .section__title { font-size: clamp(1.65rem, 2.9vw, 2.3rem); max-width: 16ch; }
.section__head--left .section__lead { font-size: 1rem; max-width: 44ch; }

.section__cta { margin-top: clamp(40px, 6vh, 72px); text-align: center; }

.section__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Фон никогда не спорит с текстом: он фактура, а не иллюстрация. */
.section__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.section__bg--dim img { opacity: .26; }
.section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg), rgba(11,11,13,.55) 30%, rgba(11,11,13,.55) 70%, var(--bg));
}

/* ── Шаги ────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  margin-top: clamp(48px, 7vh, 88px);
}

.step { position: relative; padding-top: 28px; border-top: 1px solid var(--border); }

.step__number {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--muted);
}
.step__number::before { content: '0'; }

.step__title {
  margin-top: 14px;
  font-size: 21px;
  font-weight: 700;
  font-family: var(--font-text);
  letter-spacing: -0.01em;
}
.step__text { margin-top: 12px; color: var(--muted); }

/* ── Цены ────────────────────────────────────────────────────────────────── */

.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: clamp(48px, 7vh, 80px);
}

.price-card {
  padding: 34px 30px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(23, 23, 26, .72);
  backdrop-filter: blur(10px);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.price-card:hover { border-color: #3A3A40; transform: translateY(-4px); }

.price-card--featured {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(31, 31, 35, .84);
}

.price-card__period {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card__value {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  /* Длинное значение (в том числе заглушка) не должно вылезать из карточки. */
  overflow-wrap: anywhere;
}
.price-card__currency { font-size: .42em; letter-spacing: 0; color: var(--muted); }

/* «от» перед ценой недели: она зависит от модели, поэтому цифра — нижняя граница. */
.price-card__from { font-size: .34em; letter-spacing: 0; color: var(--muted); vertical-align: .5em; }

.price-card__unit { margin-top: 12px; font-size: 14px; color: var(--muted); }
.price-card__note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; }

.price-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(44px, 6vh, 72px);
}
.price-extra__block p { margin-top: 12px; color: var(--muted); }
.price-extra__title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.price-included {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ── Плитки ──────────────────────────────────────────────────────────────── */

/* Ровно два столбца: четыре плитки в один ряд мельчают, а 3+1 оставляет дыру. */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 7vh, 80px);
}
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } }

.tile {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(11, 11, 13, .55);
  backdrop-filter: blur(8px);
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.tile:hover { border-color: #3A3A40; background: rgba(23, 23, 26, .7); }

.tile__title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.tile__text { margin-top: 12px; color: var(--muted); }

/* ── Двухколоночные секции ───────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.split__media img { border-radius: var(--radius); width: 100%; }
.split__media--map img { border: 1px solid var(--border); background: var(--surface); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* На широком экране картинка держится в кадре, пока читается текст рядом. */
@media (min-width: 1100px) {
  .split__media { position: sticky; top: 110px; }
}

.checklist { margin-top: 32px; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .62em;
  width: 14px;
  height: 1px;
  background: var(--muted);
}

.features { margin-top: 36px; display: grid; gap: 26px; }
.feature__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feature__text { margin: 8px 0 0; color: var(--muted); }

.split__body > p:last-child { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ── Контакты ────────────────────────────────────────────────────────────── */

.contact { margin-top: 34px; display: grid; gap: 4px; }
.contact dt {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 6px 0 0; font-size: 17px; }
.contact dd a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact__row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 340px;
  padding: 4px 0;
  font-size: 15px;
}
.contact__row span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

.location__how { margin-top: 30px; color: var(--muted); max-width: 46ch; }

/* ── Вопросы ─────────────────────────────────────────────────────────────── */

.faq { margin-top: clamp(40px, 6vh, 64px); }

.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color .25s var(--ease);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '';
  flex: none;
  width: 13px;
  height: 13px;
  background:
    linear-gradient(var(--muted), var(--muted)) center/13px 1px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center/1px 13px no-repeat;
  transition: transform .35s var(--ease);
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__question:hover { color: #C9C9CE; }

.faq__answer { padding-bottom: 26px; color: var(--muted); max-width: 62ch; }

/* ── Подвал ──────────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: clamp(56px, 8vh, 96px) 40px;
  border-top: 1px solid var(--border);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__brand img { width: 96px; height: auto; opacity: .9; }
.site-footer__tagline { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 30ch; }

.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__col a { color: var(--muted); transition: color .25s var(--ease); }
.site-footer__col a:hover { color: var(--text); }
.site-footer__col a[aria-current] { color: var(--text); }

.site-footer__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.site-footer__address { margin-top: 8px; color: var(--muted); }

.site-footer__legal {
  margin-top: clamp(44px, 6vh, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Флаги методов оплаты (верификация P24) — текстовые плашки, всё своё, без внешних логотипов */
.site-footer__pay {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-chip {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Rezerwacja online (процесс покупки — требование P24) ────────────────── */
.checkout__form { display: flex; flex-direction: column; gap: 34px; margin-top: 34px; }

.checkout__fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checkout__fieldset legend { margin-bottom: 12px; }

.checkout__product { color: var(--muted); font-size: 15px; }

.checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .checkout__row { grid-template-columns: 1fr; } }

.checkout__field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.checkout__field span { color: var(--muted); }
.checkout__field small { color: var(--muted); font-size: 12px; }

.checkout__field input,
.checkout__field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  width: 100%;
}
.checkout__field input:focus-visible,
.checkout__field textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.checkout__field input[type='date'] { color-scheme: dark; }

.checkout__summary {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkout__totals { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.checkout__totals div { display: flex; justify-content: space-between; gap: 12px; }
.checkout__totals dt { color: var(--muted); }
.checkout__grand dd { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

.checkout__note { color: var(--muted); font-size: 13px; line-height: 1.55; }
.checkout__note--legal { border-top: 1px solid var(--border); padding-top: 10px; }
.checkout__note a { color: var(--text); }

.checkout__consent { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.checkout__consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--text); }
.checkout__consent a { color: var(--text); }

.checkout__submit { align-self: flex-start; }
.checkout__submit:disabled { opacity: 0.55; cursor: wait; }

.checkout__error { color: #f28b82; font-size: 14px; }

.checkout__seller { border-top: 1px solid var(--border); padding-top: 18px; }
.checkout__seller p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.checkout__seller a { color: var(--text); }

.checkout__done { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }

/* ── Юридические страницы ────────────────────────────────────────────────── */

.legal { padding-block: 140px clamp(64px, 9vh, 112px); }

.legal__back { font-size: 14px; color: var(--muted); }
.legal__back a:hover { color: var(--text); }

.legal__title {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.legal__meta { margin-top: 16px; font-size: 13px; color: var(--muted); }

.legal__notice {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
  color: var(--muted);
}

.legal__body { margin-top: 44px; }
.legal__body h2 {
  margin-top: 52px;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  scroll-margin-top: 96px;
}
.legal__body h3 { margin-top: 34px; font-size: 1.1rem; font-weight: 700; }
.legal__body h4 { margin-top: 26px; font-size: 1rem; font-weight: 700; color: var(--muted); }
.legal__body p { margin-top: 16px; color: #C9C9CE; }
.legal__body ul, .legal__body ol { margin-top: 16px; display: grid; gap: 10px; }
.legal__body li { position: relative; padding-left: 26px; color: #C9C9CE; }
.legal__body ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .68em;
  width: 12px;
  height: 1px;
  background: var(--muted);
}
/* Вложенный список внутри пункта: свой отступ и воздух сверху. */
.legal__body li > ul, .legal__body li > ol { margin-top: 10px; padding-left: 4px; }

.legal__body ol { counter-reset: item; }
.legal__body ol > li { counter-increment: item; }
.legal__body ol > li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }
.legal__body hr { margin: 44px 0; border: none; border-top: 1px solid var(--border); }
.legal__body blockquote {
  margin: 20px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--border);
  color: var(--muted);
}
.legal__body strong { color: var(--text); }

.table-scroll { margin-top: 22px; overflow-x: auto; }
.legal__body table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.legal__body th, .legal__body td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: #C9C9CE;
}
.legal__body th { color: var(--text); font-weight: 700; background: var(--surface); }

.legal__siblings {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.legal__siblings a { color: var(--muted); }
.legal__siblings a:hover { color: var(--text); }

/* ── Движение ────────────────────────────────────────────────────────────── */

/* Прячем только тогда, когда скрипты точно работают и смогут показать обратно
   (класс .js ставит js-flag.js в <head>). Без JS страница видна целиком. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s var(--ease) calc(var(--reveal-delay, 0) * 90ms),
    transform .7s var(--ease) calc(var(--reveal-delay, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .button:hover, .price-card:hover { transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
