/* ==========================================================================
   ATABIKE — инженерный минимализм. Секции сверху вниз: герой, модельный ряд,
   гравел-панель, «Качество мануфактуры», подбор ростовки, «Как купить»,
   community-баннер, футер.
   Белая база, много воздуха, нейтральный гротеск, тонкие линии.
   ========================================================================== */

:root {
  --bg:     #ffffff;
  --alt:    #f4f2ed;
  --alt-2:  #ece9e2;
  --ink:    #191712;
  --ink-2:  #3c392f;
  --muted:  #6a675c;   /* 5.06:1 на --alt, 5.66:1 на белом — проходит AA */
  --line:   #e6e1d8;   /* декоративные разделители */
  --line-2: #d5cec1;
  --line-ui: #8d887c;  /* границы интерактивных элементов, 3.5:1 — WCAG 1.4.11 */
  --dark:   #17150f;   /* тёмные секции/футер */
  --dark-ink:   #ece7dd;
  --dark-muted: #9a9184;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-logo: 'Sora', 'Inter', system-ui, sans-serif;  /* геометричный, однородный wordmark */

  --wrap: 1440px;
  --wrap-narrow: 1120px;
  --r: 2px;
  --r-card: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
/* Плавную прокрутку включаем только тем, кто не просил её отключить. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
@media (min-width: 768px) { .wrap { padding: 0 48px; } }

/* --- Типографика --------------------------------------------------------- */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.h1 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.0; margin: 0; font-size: clamp(44px, 7.5vw, 104px); }
.h2 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 0; font-size: clamp(30px, 4.6vw, 60px); }
.h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; margin: 0; font-size: clamp(21px, 2.6vw, 30px); }
.lead { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }

/* --- Кнопки / ссылки ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 500; line-height: 1;
  padding: 16px 32px; border-radius: var(--r);
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 12px 22px; font-size: 14px; }

.link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid currentColor;
}
.link svg { transition: transform 0.2s var(--ease); }
.link:hover svg { transform: translateX(5px); }
.link--light { color: #fff; }

/* --- Навигация (прозрачная над героем → белая при скролле) --------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s var(--ease), border-color 0.3s; }
.nav.scrolled { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { font-family: var(--font-logo); font-weight: 600; letter-spacing: 0.01em; font-size: 20px; color: var(--ink); }
.nav__links { display: none; gap: 30px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--ink); transition: width 0.22s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: transparent; color: var(--ink); border: 1px solid transparent; transition: background 0.15s; }
.icon-btn:hover { background: rgba(0,0,0,0.05); }
.icon-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.nav__burger { display: inline-flex; }
@media (min-width: 940px) { .nav__links { display: flex; } .nav__burger { display: none; } }

/* --- Переключатель языка (дропдаун) -------------------------------------- */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line-ui); border-radius: var(--r); background: transparent; color: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; transition: border-color 0.15s, background 0.15s; }
.lang__btn:hover { border-color: var(--ink); }
.lang__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang__btn svg { transition: transform 0.2s var(--ease); opacity: 0.7; }
.lang.open .lang__btn { border-color: var(--ink); }
.lang.open .lang__btn svg { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 156px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,0.12); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s; z-index: 20; }
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__opt { display: block; width: 100%; text-align: left; padding: 11px 13px; border: 0; background: transparent; border-radius: 5px; font-family: var(--font); font-size: 14px; color: var(--ink); transition: background 0.15s; }
.lang__opt:hover { background: var(--alt); }
.lang__opt[aria-current='true'] { color: var(--muted); }
.lang__opt[aria-current='true']::after { content: '✓'; float: right; color: var(--ink); }

/* --- Мобильное меню ------------------------------------------------------ */
/* visibility убирает закрытое меню из таб-порядка: без неё ссылки за кадром
   всё равно ловят фокус. */
/* visibility переключаем ступенькой, а не плавно: при открытии — сразу
   (иначе focus() по ещё скрытому элементу молча не срабатывает), при
   закрытии — с задержкой на всю анимацию выезда. */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); transform: translateX(-100%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s linear 0.4s; display: flex; flex-direction: column; padding: 20px 24px; }
.menu.open { transform: translateX(0); visibility: visible; transition: transform 0.4s var(--ease), visibility 0s linear 0s; }
.menu__head { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.menu nav { display: flex; flex-direction: column; margin-top: 16px; }
.menu nav a { font-size: clamp(32px, 10vw, 56px); font-weight: 500; letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu nav a:hover { color: var(--muted); }

/* ==========================================================================
   ПАНЕЛИ (full-bleed фото-секции — приём Schindelhauer)
   ========================================================================== */
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; overflow: hidden; }
/* На вертикальных экранах кадр смещаем вправо-вниз: слева ложится текст. */
.panel__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
@media (min-width: 900px) { .panel__photo { object-position: center; } }
.panel__scrim { position: absolute; inset: 0; }
.panel__inner { position: relative; width: 100%; align-self: center; padding-top: 120px; padding-bottom: 72px; }
.panel__content { max-width: 620px; }
.panel__content .eyebrow { display: block; margin-bottom: 20px; }
.panel__content h1, .panel__content h2 { margin: 0 0 22px; }
.panel__content p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; margin: 0 0 30px; max-width: 46ch; }

/* Светлый герой: тёмный текст над чистой зоной снимка.
   На узких экранах текст ложится поверх самого снимка, поэтому там скрим
   вертикальный и заметно плотнее — иначе заголовок пропадает в фотографии. */
.panel--light { color: var(--ink); }
.panel--light .panel__scrim { background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.88) 46%, rgba(255,255,255,0.55) 74%, rgba(255,255,255,0.2) 100%); }
.panel--light .panel__content p { color: var(--ink-2); }
@media (min-width: 900px) {
  .panel--light .panel__scrim { background: linear-gradient(90deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.25) 42%, rgba(255,255,255,0) 68%); }
}

/* Тёмный блок: светлый текст, затемнение снизу */
.panel--dark { color: #fff; }
.panel--dark .panel__inner { align-self: flex-end; }
.panel--dark .panel__scrim { background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0.75) 100%); }
.panel--dark .eyebrow { color: rgba(255,255,255,0.75); }
.panel--dark .panel__content p { color: rgba(255,255,255,0.86); }

/* Центрированный вариант (community) */
.panel--center { text-align: center; }
.panel--center .panel__content { max-width: 640px; margin: 0 auto; }
.panel--center .panel__content p { margin-left: auto; margin-right: auto; }
.panel--center .panel__scrim { background: rgba(10,9,7,0.42); }
.panel--center .panel__photo { filter: grayscale(0.4) brightness(0.7); }

.panel__meta { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; justify-content: space-between; gap: 16px; padding: 0 24px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; pointer-events: none; }
@media (min-width: 768px) { .panel__meta { padding: 0 48px; } }
/* Строка меты ложится на нижний край снимка (в герое — на дощатый пол),
   поэтому берём тёмный тон, а не --muted. */
.panel--light .panel__meta { color: var(--ink-2); }
.panel--dark .panel__meta { color: rgba(255,255,255,0.6); }

/* --- Подписка (в community) ---------------------------------------------- */
.subscribe { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.subscribe input { flex: 1; min-width: 220px; padding: 15px 18px; border: 1px solid rgba(255,255,255,0.45); border-radius: var(--r); background: rgba(0,0,0,0.18); color: #fff; font-family: var(--font); font-size: 15px; }
.subscribe input::placeholder { color: rgba(255,255,255,0.55); }
.subscribe input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.panel__social { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ==========================================================================
   СВЕТЛЫЕ СЕКЦИИ (craft / path)
   ========================================================================== */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--alt); }

/* Качество мануфактуры — текстовый split (заголовок слева, список справа) */
.craft3 { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 60px); }
@media (min-width: 900px) { .craft3 { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 100px); align-items: start; } }
.craft3__head .eyebrow { display: block; margin-bottom: 16px; }
.craft3__head h2 { margin: 0 0 22px; }
.craft3__lead { color: var(--muted); margin: 0 0 26px; max-width: 42ch; }
.numlist { list-style: none; margin: 0; padding: 0; }
.numlist li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.numlist li:last-child { border-bottom: 1px solid var(--line-2); }
.numlist__n { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.numlist h3 { font-size: 17px; font-weight: 500; margin: 0 0 4px; }
.numlist p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Путь к твоему велосипеду */
.section__head { max-width: 720px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.section__head .eyebrow { display: block; margin-bottom: 18px; }
.path { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 760px) { .path { grid-template-columns: 1fr 1fr; } }
.path__col { background: var(--bg); padding: clamp(34px, 4.5vw, 60px); display: flex; flex-direction: column; }
.path__col .eyebrow { color: var(--muted); }
.path__col h3 { margin: 16px 0 14px; }
.path__col p { color: var(--muted); margin: 0 0 28px; flex: 1; }
.section--alt .path__col { background: var(--bg); }

/* ==========================================================================
   ФУТЕР (светлый, дизайнерский) — closing-CTA + колонки + крупный wordmark
   ========================================================================== */
.footer { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 44px); overflow: hidden; }

/* Closing CTA */
.footer__cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.footer__cta .eyebrow { display: block; margin-bottom: 14px; }
.footer__cta h2 { max-width: 18ch; }

/* Колонки */
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: clamp(44px, 5vw, 72px) 0; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; } }
.footer__brand { font-family: var(--font-logo); font-weight: 600; letter-spacing: 0.02em; font-size: 21px; color: var(--ink); }
.footer__brand-col p { color: var(--muted); font-size: 14px; max-width: 32ch; margin: 16px 0 0; line-height: 1.55; }
.footer__social { display: flex; gap: 8px; margin-top: 22px; }
.footer__col-h { font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
/* Тап-таргеты в колонках: 15px-строка сама по себе даёт ~20px высоты — добавляем
   вертикальные отступы, чтобы каждая ссылка занимала не меньше 32px. */
.footer ul a, .footer ul span { display: inline-block; font-size: 15px; padding: 6px 0; color: var(--ink-2); transition: color 0.15s; }
.footer ul span { color: var(--muted); }
.footer ul a:hover { color: var(--ink); }

/* Нижняя строка */
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; }
.footer__toplink { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.footer__toplink:hover { color: var(--muted); }

/* Крупный дизайнерский wordmark во всю ширину */
.footer__word { font-family: var(--font-logo); font-weight: 600; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(70px, 19.5vw, 290px); text-align: center; margin: 16px 0 0; user-select: none; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); text-stroke: 1.5px var(--line-2); }

/* ==========================================================================
   МОДЕЛЬНЫЙ РЯД
   ========================================================================== */
.models__head { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: clamp(28px, 4vw, 44px); }
@media (min-width: 900px) { .models__head { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 60px; } }
.models__head .eyebrow { display: block; margin-bottom: 16px; }
.models__lead { color: var(--muted); margin: 0; max-width: 44ch; }

/* Фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.chip {
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-ui); background: transparent; color: var(--ink-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Сетка карточек */
.grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid__empty { text-align: center; color: var(--muted); padding: 60px 0 0; }

.card { background: var(--bg); display: flex; flex-direction: column; }
.card__media { position: relative; background: var(--alt); padding: 26px 20px; display: flex; align-items: center; justify-content: center; }
.card__media svg { width: 100%; height: auto; max-width: 300px; }
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 5px 10px; border-radius: var(--r);
}
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__name { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.card__stock { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
.card__stock.is-in { color: var(--ink); }
.card__specs { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card__specs li { font-size: 14px; color: var(--muted); line-height: 1.45; padding-left: 15px; position: relative; }
.card__specs li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--line-2); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.card__price { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.card__from { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.06em; }
.card__more { background: transparent; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 3px; font-size: 14px; }
.card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.swatches i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 5px; border: 1px solid rgba(0,0,0,0.12); vertical-align: middle; }

/* --- Фото мануфактуры ---------------------------------------------------- */
.craft3__photo { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; border-radius: var(--r-card); margin-bottom: clamp(40px, 5vw, 72px); }

/* ==========================================================================
   ТАБЛИЦА РОСТОВОК
   ========================================================================== */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.sizes { width: 100%; border-collapse: collapse; min-width: 520px; }
.sizes th, .sizes td { text-align: left; padding: 16px 20px; font-size: 15px; border-bottom: 1px solid var(--line); }
.sizes thead th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 400; background: var(--alt); }
.sizes tbody th { font-weight: 500; width: 96px; }
.sizes tbody td { color: var(--muted); }
.sizes tbody tr:last-child th, .sizes tbody tr:last-child td { border-bottom: 0; }
.sizes tbody tr:hover td, .sizes tbody tr:hover th { background: var(--alt); }
.sizes__note { font-size: 14px; margin: 20px 0 0; max-width: 60ch; }

/* Подпись под формой подписки */
.subscribe__note { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.6); margin: 16px 0 0; }

/* Соцкнопки в футере — те же габариты, что были у ссылок */
.footer__social-btn { width: 42px; height: 42px; border: 1px solid var(--line-ui); border-radius: var(--r); display: flex; align-items: center; justify-content: center; background: transparent; color: var(--ink); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.footer__social-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer__social-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ==========================================================================
   БЫСТРЫЙ ПРОСМОТР
   ========================================================================== */
.quick { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s; }
.quick.open { opacity: 1; visibility: visible; transition: opacity 0.25s var(--ease), visibility 0s linear 0s; }
.quick__backdrop { position: absolute; inset: 0; background: rgba(12,11,8,0.55); backdrop-filter: blur(3px); }
.quick__panel {
  position: relative; z-index: 1; background: var(--bg); border-radius: var(--r-card);
  width: min(880px, 100%); max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr; box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(14px); transition: transform 0.25s var(--ease);
}
.quick.open .quick__panel { transform: none; }
@media (min-width: 760px) { .quick__panel { grid-template-columns: 1.05fr 1fr; } }
.quick__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255,255,255,0.9); }
.quick__media { background: var(--alt); padding: 40px 28px; display: flex; align-items: center; justify-content: center; }
.quick__media svg { width: 100%; height: auto; max-width: 340px; }
.quick__body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; }
.quick__row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 16px 0 6px; }
.quick__price { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.quick__body .card__specs { margin: 16px 0 0; flex: 0; }
.quick__meta { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 16px 0 0; }
.quick__body .btn { margin-top: 26px; align-self: flex-start; }

/* ==========================================================================
   ЗАПИСЬ НА ТЕСТ-ДРАЙВ
   ========================================================================== */
.book { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .book { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.book__aside .eyebrow { display: block; margin-bottom: 16px; }
.book__aside p { color: var(--muted); margin: 20px 0 0; max-width: 34ch; line-height: 1.6; }
.book__facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.book__facts li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--ink-2); }
.book__facts svg { margin-top: 3px; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .form { grid-template-columns: 1fr 1fr; } .form__row--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; font-family: var(--font); font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-ui); border-radius: var(--r);
  transition: border-color 0.15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a675c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field--bad input, .field--bad select { border-color: #a3311f; }
.field__err { font-size: 13px; color: #a3311f; min-height: 0; }
.field__err:empty { display: none; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 13px; color: var(--muted); max-width: 40ch; margin: 0; line-height: 1.5; }
.form__ok {
  grid-column: 1 / -1; display: none; gap: 14px; align-items: flex-start;
  padding: 22px 24px; background: var(--alt); border-left: 2px solid var(--ink); border-radius: var(--r);
}
.form__ok.show { display: grid; grid-template-columns: 22px 1fr; }
.form__ok strong { display: block; font-weight: 500; margin-bottom: 4px; }
.form__ok p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* --- Скип-линк ----------------------------------------------------------- */
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 200; transform: translateY(-160%);
  padding: 12px 20px; background: var(--ink); color: #fff; border-radius: var(--r);
  font-size: 14px; font-weight: 500; transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; outline: 2px solid #fff; outline-offset: -5px; }

/* --- Тосты --------------------------------------------------------------- */
.toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px 24px; font-size: 14px; font-weight: 500; box-shadow: 0 14px 34px rgba(0,0,0,0.2); animation: toast-in 0.3s var(--ease); }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } }

/* --- Reveal -------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.panel .reveal { transition-duration: 1s; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
