/* =========================================================================
   RAYO · направление «Ночная гроза» (storm) + приёмы из nordic и court.
   Только токены из tokens.css. Порядок страницы:
   гроза (тёмная) → паспорт (светлая) → линейка (светлая, туман) →
   кто делает (тёмная) → клубам (светлая) → вопросы (туман) → финал (тёмная) → подвал.
   ========================================================================= */

body { background: var(--c-white); }

/* ---------- Шапка ---------- */
.site-header.is-scrolled { background: rgba(255, 255, 255, .82); }
.site-header.is-dark.is-scrolled { background: rgba(8, 9, 10, .72); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.wordmark svg { height: 20px; width: auto; }
@media (min-width: 64em) { .wordmark svg { height: 22px; } }
.lang { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); }
.lang a, .lang span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; text-decoration: none; border-radius: var(--r-pill); }
.lang a { opacity: .62; }
@media (hover: hover) and (pointer: fine) { .lang a:hover { opacity: 1; } }
.site-header.is-dark { --focus: var(--c-accent); }
.skip-link { background: var(--c-white); color: var(--c-ink); box-shadow: 0 0 0 2px var(--c-ink); }
.skip-link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mobile-menu { --focus: var(--c-accent); background: var(--c-black); color: var(--c-snow-1); overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 30em) {
  .mobile-menu { padding-top: calc(var(--header-h) + var(--s-2)); gap: var(--s-4); }
  .mobile-menu a:not(.btn) { padding: 10px 0; font-size: 1.25rem; }
  .mobile-menu .btn { margin-top: var(--s-4); }
}
.mobile-menu li + li { border-top-color: rgba(255, 255, 255, .1); }
@media (min-width: 64em) and (max-width: 79.99em) { .nav a { padding: 0 10px; } }

/* ---------- 1. Гроза ---------- */
.storm {
  position: relative; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(20px, 3vw, 48px));
  padding-bottom: clamp(48px, 5vw, 80px);
  background:
    radial-gradient(60% 70% at 78% 30%, color-mix(in srgb, var(--c-night-3) 60%, transparent), transparent 70%),
    var(--c-black);
}
.storm::before { /* едва видная сетка точек «ночного неба» */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.storm__grid { display: grid; gap: var(--s-7); grid-template-areas: "copy" "art" "facts"; }
.storm__copy { grid-area: copy; position: relative; z-index: 2; }
.storm__copy > * + * { margin-top: var(--s-5); }
.storm h1 {
  font-size: clamp(2.75rem, 1.2rem + 6.4vw, 5.25rem);   /* 44 → 84 */
  line-height: .94; letter-spacing: var(--ls-hero); font-weight: 720;
}
.storm h1 .muted { color: var(--fg-3); display: block; }
.storm .t-lead { max-width: 34ch; }
.storm__note { font-size: var(--fs-sm); color: var(--fg-2); }
.storm .row { gap: var(--s-2) var(--s-5); }
.storm .btn--link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--fg-3); }

.storm__facts { grid-area: facts; position: relative; z-index: 2; display: grid; gap: var(--s-4); margin: 0; }
.storm__fact { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.storm__fact dt { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-3); }
.storm__fact dd { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--fg); max-width: 40ch; }
@media (min-width: 40em) { .storm__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } }

/* Сцена с молнией и силуэтом: viewBox 640×900.
   До 1200 px — свой кадр во всю ширину под кнопками: видна полоса y 100…740 из 900,
   --s — масштаб (1 единица viewBox = --s px). Сердце ракетки — в точке (342.5, 448)
   и стоит на 42 % ширины кадра; строка паспорта — справа от него, с выноской. */
.strike {
  --s: .5;
  grid-area: art; position: relative; z-index: 1; margin-inline: calc(-1 * var(--gutter));
  height: calc(640px * var(--s) + 36px); overflow: hidden;   /* +36 px снизу — строка с именем марки */
}
.strike svg {
  position: absolute; top: calc(-100px * var(--s)); left: calc(42% - 342.5px * var(--s));
  width: calc(640px * var(--s)); height: calc(900px * var(--s)); max-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 11%, #000 19%, #000 74%, transparent 82%);
  mask-image: linear-gradient(180deg, transparent 11%, #000 19%, #000 74%, transparent 82%);
}
.strike__label {
  position: absolute; left: calc(42% + 40px); right: var(--gutter); top: calc(348px * var(--s) - .75em);
  font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.45; color: var(--fg);
}
.strike__label::before { content: ""; position: absolute; left: -34px; top: .75em; width: 28px; height: 1px; background: var(--c-snow-3); }
.strike__label b { display: block; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.strike__label small { display: block; max-width: 24ch; font-size: var(--fs-eyebrow); color: var(--fg-3); }
.callout { display: none; }
.strike__name {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 8px;
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .04em; line-height: 1.5; color: var(--fg-3);
}
.strike__name b { color: var(--fg); font-weight: 500; }
.stress { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 40em) and (max-width: 74.99em) { .strike { --s: .66; } }

@media (min-width: 75em) {
  .storm { min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: center; }
  .storm > .container { width: 100%; }
  .storm__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "copy ." "facts ."; gap: var(--s-9) var(--gap-lg); }
  .storm__copy > * + * { margin-top: var(--s-6); }
  .storm__facts { max-width: 640px; gap: var(--gap-lg); }
  /* молния во всю высоту сцены */
  .strike {
    position: absolute; top: 0; bottom: 0; width: auto; height: 100%; margin: 0;
    right: max(var(--gutter), (100% - var(--container)) / 2 - 2vw);
    aspect-ratio: 640 / 900; overflow: visible;
  }
  .strike svg {
    inset: 0; left: 0; top: 0; width: 100%; height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 64px, #000 210px); mask-image: linear-gradient(180deg, transparent 0, transparent 64px, #000 210px);
  }
  .strike__label { right: auto; left: 73.5%; top: 63.3%; transform: translateY(-30%); font-size: var(--fs-sm); }
  .strike__label::before { display: none; }
  .callout { display: inline; }
  /* имя марки — под строкой паспорта у ракетки, далеко от заголовка */
  .strike__name { left: 73.5%; right: auto; bottom: auto; top: 73%; max-width: 21ch; }
  /* вторая половина заголовка — одной строкой; на ноутбуках 1200–1359 кегль меньше, чтобы не дойти до ракетки */
  .storm h1 .muted { white-space: nowrap; }
}
@media (min-width: 75em) and (max-width: 84.99em) {
  .storm h1 { font-size: 4.5rem; }
}

/* молния: рисуется один раз при загрузке, вспыхивает и остаётся. Это единственное свечение на странице */
.bolt-core { stroke: var(--c-bolt); }
.bolt-glow { stroke: var(--c-accent); }
.bolt-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bolt-draw 520ms var(--ease-in) 260ms forwards; }
.bolt-flash { opacity: 0; animation: bolt-flash 1400ms linear 640ms forwards; }
@keyframes bolt-draw { to { stroke-dashoffset: 0; } }
@keyframes bolt-flash { 0% { opacity: 0; } 6% { opacity: 1; } 14% { opacity: .35; } 22% { opacity: .95; } 100% { opacity: .7; } }
.racket-body { fill: var(--c-black); stroke: var(--c-snow-3); }
.racket-holes { fill: none; stroke: var(--c-snow-3); opacity: .55; }
.racket-heart { fill: var(--c-accent); }
.callout { stroke: var(--c-snow-3); fill: none; }
@media (prefers-reduced-motion: reduce) {
  .bolt-draw { animation: none; stroke-dashoffset: 0; }
  .bolt-flash { animation: none; opacity: .7; }
}

/* ---------- Заголовок секции (общий) ---------- */
.s-head { display: grid; gap: var(--s-4); margin-bottom: var(--head-gap); }
.s-head .t-lead { max-width: 36ch; }
@media (min-width: 64em) {
  .s-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: var(--gap-lg); }
}

/* ---------- 2. Взвешена для тебя: паспорт экземпляра ---------- */
.weigh { padding-top: calc(var(--section-y) - 8px); }
.weigh__grid { display: grid; gap: var(--s-9); align-items: center; }
@media (min-width: 64em) { .weigh__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-lg); } }
.weigh__copy > * + * { margin-top: var(--s-5); }
.weigh__copy .t-lead { max-width: 30ch; }
.proofs { list-style: none; padding: 0; margin: var(--s-8) 0 0; border-top: 1px solid var(--line); }
.proofs li { display: grid; grid-template-columns: 3ch minmax(0, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.proofs li > b { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--fg-2); padding-top: 3px; }
.proofs h3 { font-size: var(--fs-body); font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
.proofs p { margin-top: 2px; font-size: var(--fs-sm); color: var(--fg-2); max-width: 46ch; }
.tbd { color: var(--fg-2); }

/* паспорт как бирка: отверстие под шнурок, линия отрыва, штриховка 30° в шапке, номер моноширинным */
.passport {
  position: relative; margin: 0; background: var(--c-paper); border: 1px solid var(--line);
  border-radius: var(--r-box); padding: calc(var(--s-7) + 20px) var(--s-7) var(--s-6); max-width: 520px; justify-self: center; width: 100%;
}
.passport__hole { position: absolute; top: 16px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.passport__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4);
  background: linear-gradient(90deg, var(--line-strong) 55%, transparent 0) 0 100% / 9px 1.5px repeat-x;
  font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-2);
}
.passport__head span::before { content: ""; display: inline-block; width: 22px; height: 10px; margin-right: 10px; vertical-align: -1px; background: repeating-linear-gradient(120deg, var(--fg) 0 1.5px, transparent 1.5px 6px); }
.passport__mark { height: 14px; width: auto; color: var(--fg); }
.passport__body { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-7); padding-top: var(--s-5); align-items: center; }
.passport__shape { width: 64px; height: auto; color: var(--fg); }
.passport__rows { margin: 0; display: grid; }
.passport__rows > div { display: grid; grid-template-columns: 9ch minmax(0, 1fr); align-items: baseline; gap: var(--s-4); padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.passport__rows > div:last-child { border-bottom: 0; }
.passport__rows dt { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-2); }
.passport__rows dd { margin: 0; font-size: var(--fs-sm); color: var(--fg); }
.passport__rows > div:first-child { padding: 4px 0 14px; }
.passport__rows > div:first-child dd { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); font-weight: 250; letter-spacing: -0.04em; line-height: 1; }
.passport__blank { display: inline-block; vertical-align: baseline; width: 5ch; height: 0; border-bottom: 1.5px solid var(--fg); }
.passport__rows > div:first-child .passport__blank { width: 2.6em; margin-right: .08em; }
.passport__unit { margin-left: .35em; font-family: var(--font-mono); font-size: .34em; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--fg-2); }
.passport__num dd { font-family: var(--font-mono); font-size: 1.375rem; font-weight: 500; letter-spacing: .02em; }
.passport__num .passport__blank { width: 4.5ch; }
.passport__cap { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--fg-2); }
@media (max-width: 29.99em) {
  .passport { padding: calc(var(--s-5) + 22px) var(--s-5) var(--s-4); }
  .passport__hole { top: 12px; }
  .passport__body { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); }
  .passport__shape { width: 40px; }
  .passport__rows > div { grid-template-columns: 9ch minmax(0, 1fr); gap: var(--s-3); }
}

/* ---------- 3. Линейка 1 · 2 · 3 ---------- */
.levels { display: grid; gap: var(--gap); list-style: none; padding: 0; margin: 0; }
@media (min-width: 64em) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lvl {
  position: relative; display: grid; gap: var(--s-5);
  padding: var(--s-7); border-radius: var(--r-box);
  background: var(--bg); color: var(--fg);
  grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num head" "text text" "specs specs";
  column-gap: var(--s-6);
}
.lvl--1 { --bg: var(--c-tone-1); }
.lvl--2, .lvl--3 {
  --fg: var(--c-snow-1); --fg-2: var(--c-snow-2); --fg-3: var(--c-snow-3); --line: rgba(255, 255, 255, .14); --line-strong: rgba(255, 255, 255, .3); --focus: var(--c-accent);
}
.lvl--2 { --bg: var(--c-tone-2); }
.lvl--3 { --bg: var(--c-tone-3); }
.lvl__head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.lvl__tag { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-2); }
/* силуэт формы — вторая главная характеристика после цифры */
.lvl__shape { height: 72px; width: auto; color: var(--fg); flex: none; }
.lvl__num {
  grid-area: num; align-self: center;
  font-size: clamp(6.5rem, 3rem + 14vw, 17.5rem); font-weight: 720; line-height: .78; letter-spacing: -0.07em;
  font-variant-numeric: normal; font-feature-settings: "cv01" 1; margin-left: -.04em; color: var(--fg);
}
.lvl__text { grid-area: text; }
.lvl__text h3 { font-size: var(--fs-h3); letter-spacing: -0.025em; color: var(--fg); }
.lvl__text p { margin-top: var(--s-2); color: var(--fg-2); max-width: 30ch; }
.lvl__specs { grid-area: specs; display: grid; margin: 0; border-top: 1px solid var(--line); align-self: end; }
.lvl__specs div { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.lvl__specs div:last-child { border-bottom: 0; padding-bottom: 0; }
.lvl__specs dt { color: var(--fg-2); }
.lvl__specs dd { margin: 0; font-weight: var(--fw-medium); color: var(--fg); text-align: right; display: inline-flex; align-items: center; gap: var(--s-2); }
.lvl__specs .tbd { color: var(--fg-2); font-weight: var(--fw-text); }
@media (max-width: 29.99em) { .lvl { padding: var(--s-6) var(--s-5); column-gap: var(--s-4); } .lvl__text p { max-width: none; } }
@media (min-width: 64em) {
  /* строки сетки одинаковые у трёх плиток: метка, цифра, заголовок с описанием, таблица — базовые линии совпадают */
  .lvl {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "num" "text" "specs";
    min-height: 600px; padding: var(--s-8); grid-template-rows: auto auto 1fr auto; row-gap: var(--s-6);
  }
  .lvl__num { align-self: start; margin-top: var(--s-2); }
  .lvl__shape { height: 96px; }
}
/* шкала «проще — сильнее» */
.levels__scale { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--fg-2); }
.levels__scale i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--c-ink)); }
.levels__note { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--fg-2); }

/* ---------- 4. Кто за маркой ---------- */
.who__grid { display: grid; gap: var(--s-9); }
@media (min-width: 64em) { .who__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-lg); align-items: start; } }
.who__num { border-top: 1px solid var(--line-strong); padding-top: var(--s-5); }
.who__num b { display: block; font-size: clamp(3.5rem, 2rem + 6vw, 7rem); font-weight: 680; letter-spacing: -0.05em; line-height: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.who__num p { margin-top: var(--s-4); color: var(--fg-2); max-width: 32ch; }
.who__num small { display: block; margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--fg-3); max-width: 44ch; }
.steps-x { list-style: none; padding: 0; margin: 0; display: grid; }
.steps-x li { display: grid; grid-template-columns: 3ch minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.steps-x li:last-child { border-bottom: 1px solid var(--line); }
.steps-x li > b { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; color: var(--fg-3); padding-top: 6px; }
.steps-x h3 { font-size: var(--fs-h4); }
.steps-x p { margin-top: var(--s-1); color: var(--fg-2); max-width: 48ch; }
.who__note { margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--fg-2); max-width: 52ch; }

/* ---------- 5. Клубам и тренерам: тихая полоса ---------- */
.clubs__in { display: grid; gap: var(--s-6); padding-block: var(--s-7); border-block: 1px solid var(--line); }
.clubs__in h2 { font-size: var(--fs-h3); }
.clubs__in p { margin-top: var(--s-2); color: var(--fg-2); max-width: 56ch; }
.clubs__in .btn { justify-self: start; }
@media (min-width: 64em) { .clubs__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--gap-lg); } }

/* ---------- 6. Вопросы ---------- */
.faq-wrap { display: grid; gap: var(--s-7); }
@media (min-width: 64em) { .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-lg); } }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--fg); opacity: .75; } }

/* ---------- 7. Финал: «Хватит играть прокатной» + форма ---------- */
.final { padding-bottom: var(--section-y); }
.final__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-9); }
@media (min-width: 64em) {
  .final__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-lg); align-items: start; }
  /* левая колонка едет рядом с высокой формой — без пустого поля внизу */
  .final__copy { position: sticky; top: calc(var(--header-h) + var(--s-8)); }
}
.final__copy > * + * { margin-top: var(--s-5); }
.final h2 { font-size: var(--fs-display); letter-spacing: var(--ls-display); line-height: 1.02; font-weight: var(--fw-display); max-width: 11ch; text-wrap: balance; }
.final .t-lead { max-width: 34ch; }
.rent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-5); align-items: baseline; margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); max-width: 30rem; }
.rent b { font-size: var(--fs-h2); font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rent span { color: var(--fg-2); font-size: var(--fs-sm); }
.final__box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-box); padding: var(--s-7); }
.final__box h3 { font-size: var(--fs-h4); }
.final__box .form { margin-top: var(--s-5); }
@media (max-width: 29.99em) { .final__box { padding: var(--s-6) var(--s-4); margin-inline: calc(var(--s-1) * -1); } }

/* ---------- Подвал ---------- */
.site-footer { padding-bottom: var(--s-8); }  /* липкая полоса над подвалом скрыта — запас под неё не нужен */
.site-footer .wordmark { color: var(--fg); }
.site-footer .wordmark svg { height: 20px; }
.site-footer .site-footer__h { font-size: var(--fs-xs); font-family: var(--font-mono); font-weight: 500; letter-spacing: var(--ls-eyebrow); line-height: 1.4; text-transform: uppercase; color: var(--fg-3); margin-bottom: var(--s-4); }
.site-footer__soon { color: var(--fg-3); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__fn { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--fg-3); max-width: 70ch; }
@media (max-width: 63.99em) {
  .site-footer__grid > :last-child { grid-column: 1 / -1; }
  .site-footer ul { gap: var(--s-1); }
}
@media (min-width: 64em) { .site-footer__soon { min-height: 32px; } }

/* ---------- Формы: чипы-варианты, согласие, ошибки ---------- */
.btn--block { white-space: normal; text-align: center; padding-inline: 1.25em; line-height: 1.15; }
.modal { background: var(--c-white); }
.modal .field input::placeholder, .modal .field textarea::placeholder { color: var(--c-ink-2); }
/* крестик окна едет вместе с прокруткой шторки */
.modal__close { position: sticky; top: 8px; z-index: 2; display: flex; margin: calc(8px - var(--s-8)) calc(12px - var(--s-7)) -44px auto; background: var(--c-white); }
.modal h2:focus { outline: none; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); min-width: 0; }
.choice legend { padding: 0; margin-bottom: var(--s-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.choice legend .opt, .opt { font-weight: var(--fw-text); color: var(--fg-2); }
.choice__opts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 16px;
  border: 1px solid var(--line-control); border-radius: var(--r-pill);
  font-size: var(--fs-sm); cursor: pointer; transition: background-color var(--d-1) linear, color var(--d-1) linear, border-color var(--d-1) linear;
}
@media (hover: hover) and (pointer: fine) { .choice label:hover { border-color: var(--fg); } }
@media (max-width: 29.99em) { .choice label { padding: 0 13px; } }
.choice input:checked + label { background: var(--contrast-bg); color: var(--contrast-fg); border-color: var(--contrast-bg); }
.choice input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.form__aside { font-size: var(--fs-sm); color: var(--fg-2); margin-top: calc(-1 * var(--s-2)); }
.form__aside a { color: var(--fg); display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 30em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field__hint { font-size: var(--fs-xs); color: var(--fg-2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder { color: var(--fg-3); }
/* фокус поля: видимая рамка, не только смена цвета */
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--fg); box-shadow: none; }

/* согласие: квадрат 22 px в тон полей, зона касания 44 px; ссылки на документы — отдельной строкой */
.consent { --check: var(--c-ink); display: grid; gap: 0; font-size: var(--fs-xs); color: var(--fg-2); }
.theme-dark .consent, .theme-black .consent { --check: var(--c-accent); }
.consent__box { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--s-3); align-items: center; min-height: 44px; cursor: pointer; font-size: var(--fs-sm); color: var(--fg); }
.consent input {
  -webkit-appearance: none; appearance: none; width: 44px; height: 44px; margin: -11px; padding: 0; border: 0; background: none;
  display: grid; place-items: center; cursor: pointer;
}
.consent input::before { content: ""; grid-area: 1 / 1; width: 22px; height: 22px; box-sizing: border-box; border: 1.5px solid var(--line-control); border-radius: 6px; background: var(--field-bg); transition: border-color var(--d-1) linear; }
.consent input::after { content: ""; grid-area: 1 / 1; width: 6px; height: 11px; margin-top: -3px; border: solid var(--check); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform var(--d-1) var(--ease-out); }
.consent input:checked::before { border-color: var(--fg); }
.consent input:checked::after { transform: rotate(45deg) scale(1); }
.consent input:focus-visible { outline: none; }
.consent input:focus-visible::before { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent input[aria-invalid="true"]::before { border-color: var(--c-danger); }
.theme-dark .consent input[aria-invalid="true"]::before, .theme-black .consent input[aria-invalid="true"]::before { border-color: var(--c-danger-on-dark); }
.consent__docs { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin: 0 0 0 calc(22px + var(--s-3)); }
.consent__docs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-2); text-underline-offset: 3px; }
.consent__sum { margin-left: calc(22px + var(--s-3)); }
.consent__sum summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.consent__sum p { padding-bottom: var(--s-2); max-width: 52ch; }
.form .form__note { margin-top: calc(-1 * var(--s-2)); }
.form-done__mark { background: var(--c-accent); color: var(--c-on-accent); }
.form__err { color: var(--c-danger); font-size: var(--fs-sm); }
.form__err:empty { display: none; }
.theme-dark .field__err, .theme-black .field__err, .theme-dark .form__err, .theme-black .form__err { color: var(--c-danger-on-dark); }
.theme-dark .field input[aria-invalid="true"], .theme-black .field input[aria-invalid="true"] { border-color: var(--c-danger-on-dark); }

/* ---------- Липкая полоса на мобильном: тёмная ---------- */
.buybar { background: rgba(8, 9, 10, .9); box-shadow: 0 -1px 0 rgba(255, 255, 255, .08); }
.buybar__price { color: var(--c-snow-2); }
.buybar__price b { color: var(--c-snow-1); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 24.99em) { .buybar .btn { padding-inline: .9em; } }
