/* Лендинг dd-grandmobile по макету design/figma (SPEC.md). Сначала телефон (412), с 900px — компьютер (1440).
   Шрифты: TT Travels → Unbounded (свободный, OFL) до решения по лицензии; Circe → файлы владельца, пока Montserrat. */

@font-face { font-family: "Head"; src: url(../fonts/unbounded-cyrillic.woff2) format("woff2"); font-weight: 400 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Head"; src: url(../fonts/unbounded-latin.woff2) format("woff2"); font-weight: 400 900; font-display: swap;
  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+2215; }
/* Circe (если появится): вернуть url(../fonts/circe-*.woff2) первым в src. Без файла — два 404 на каждой загрузке (аудит 30.10) */
@font-face { font-family: "Body"; src: url(../fonts/montserrat-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Body"; src: url(../fonts/montserrat-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --purple: #a036ea;
  --pink: #ff57a8;
  --blue: #183dff;
  --teal: #3be8c6;
  --check: #641ff1;
  --ink: #121212;
  --field-border: rgba(36, 38, 44, .16);
  --field-hint: rgba(36, 38, 44, .7);
  --err: #ff8fbf;
  --head: "Head", "Arial Black", system-ui, sans-serif;
  --body: "Body", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #000; color: #fff; font: 16px/1.35 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }   /* 30.10: картинки не тащатся мышью и не дают меню «Сохранить» по долгому нажатию (просьба владельца) */   /* height: auto — иначе атрибут height тянет картинку (машина была 964×768 вместо 964×538) */
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.desk { display: none; }
.deco { position: absolute; pointer-events: none; user-select: none; }
[hidden] { display: none !important; }   /* иначе .btn { display: flex } показывал скрытую «Попробовать ещё раз» */

/* Варианты страницы: main — пришёл по ссылке, random — без ссылки */
body[data-hero="main"] .only-random, body[data-hero="random"] .only-main { display: none !important; }

/* ─── Кнопки ─── */
/* На телефоне поля кнопки уже и шрифт чуть меньше: на 360 «Получить автомобиль» и «Скопировать промокод» шли в две строки */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 16px;
  border: 0; border-radius: 40px; color: #fff; font: 800 min(16px, 4.4vw)/1.1 var(--head); text-decoration: none; text-align: center;
  transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--blue { background: var(--blue); }
.btn--pink { background: var(--pink); }
/* Фокус с клавиатуры — бирюзовая рамка с зазором (на чёрном и фиолетовом видна) */
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.link { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; }

/* ─── Первый экран ─── */
.hero { position: relative; overflow: hidden; background: #000; }
.hero__purple { display: none; }
.hero__torn { display: none; }
.hero__inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 22px 25px 0; }
.logo { display: inline-flex; gap: 4px; position: relative; z-index: 3; }
.logo img { height: 28px; width: auto; }
.hero__text { position: relative; z-index: 3; margin-top: 26px; }
.hero__title { margin: 0; font: 700 min(31px, 7.6vw)/1.05 var(--head); letter-spacing: -.01em; }   /* min: на 320–360 «в «Другое Дело»» шире строки */
.hero__title--random { font-size: min(31px, 6.2vw); }   /* «и скин в Grand Mobile» не переносится — иначе вылезает за экран */
.hero__underline { width: 300px; margin: 6px 0 0 -4px; }
.hero__sub { margin: 26px 0 0; font: 700 21px/1.12 var(--head); }
.pill { display: inline-block; padding: 0 10px 2px; border-radius: 40px; background: var(--pink); color: #fff; }
.hero__lead { margin: 14px 0 0; font-size: 15px; line-height: 1.2; max-width: 330px; }
.hero__sub--random { font: 700 18px/1.25 var(--body); margin-top: 22px; }
/* Магазины: одинаковой ширины, столбиком; белая обводка — на компьютере все три равны; на телефоне (iOS/Android,
   .stores--device) первый — залитой розовой кнопкой, как прежняя «Перейти в игру» */
#to-game { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 24px; max-width: 360px; }
/* В первом экране — только у варианта random; в карточке — на «Ссылка не работает / устарела» (app.js, placeStores) */
body[data-hero="main"] .hero #to-game { display: none !important; }
.card #to-game { margin: 20px auto 0; max-width: 320px; }
/* Заметные кнопки (29.10): яркая белая обводка с лёгким бирюзовым свечением, белый жирный текст. Блик по контуру —
   псевдоэлемент: градиент бирюзовый → розовый в кольце 2 px (маска «рамка минус содержимое»), едет background-position,
   появляется opacity — без перерисовки макета. По очереди 1 → 2 → 3 по 1,2 с, затем пауза ~3 с (цикл 6,6 с):
   один плавный проход в 1,2 с — далеко ниже 3 вспышек/с. prefers-reduced-motion — без блика (ниже) */
.store { position: relative; isolation: isolate; border: 2px solid #fff; background: rgba(255, 255, 255, .06); color: #fff; font-weight: 800;
  box-shadow: 0 0 10px rgba(61, 224, 192, .28); transition: box-shadow .2s, background .2s; }
.store::before { content: ""; position: absolute; inset: 0; z-index: -1;   /* кольцо — сразу внутри обводки: inset < 0 давал прокрутку текста кнопки */
  border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0 25%, #3de0c0 42%, #ff4fa3 58%, transparent 75% 100%) 100% 0 / 300% 100% no-repeat;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; animation: store-glint 6.6s linear infinite; }
.store:nth-child(2)::before { animation-delay: 1.2s; }
.store:nth-child(3)::before { animation-delay: 2.4s; }
@keyframes store-glint {
  0% { opacity: 0; background-position: 100% 0; }
  3% { opacity: 1; }
  15% { opacity: 1; }
  18.2%, 100% { opacity: 0; background-position: 0 0; }
}
.store:hover, .store:focus-visible { background: rgba(255, 255, 255, .12); box-shadow: 0 0 18px rgba(61, 224, 192, .55); filter: none; }
.stores--device .store:first-child { border-color: var(--pink); background: var(--pink); box-shadow: 0 0 12px rgba(255, 79, 163, .4); }
.hero__art { position: relative; height: 372px; margin: 10px -25px 0; }
.blob-hero { width: 110%; left: -8%; top: 40px; }
.blob-hero--blue { top: 70px; }
/* height/aspect-ratio/object-fit — явно на классе: Safari (WebKit) у абсолютной картинки с width в % брал высоту из атрибута
   height=768 или контейнера и растягивал машину (29.10); соотношение — как у файлов 1376×768 и 760×424.
   Машина 6×6 (30.10): на телефоне въезжает справа — слева отступ ~4 % от края (видимый кузов начинается с 7 % картинки),
   корма уходит за правый край экрана (решение владельца 30.10) */
.car { position: absolute; z-index: 2; width: 132%; max-width: none; height: auto; aspect-ratio: 1376 / 768; object-fit: contain;
  left: -4.8%; top: 70px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.tag { position: absolute; z-index: 3; padding: 8px 16px; border-radius: 72px; background: #fff; color: var(--ink); font: 400 10px/1 var(--body); white-space: nowrap; }
.tag--1 { left: 24px; top: 22px; transform: rotate(32deg); padding: 10px 22px; }
.tag--2 { left: 178px; top: 12px; transform: rotate(20deg); padding: 10px 22px; }
.tag--3 { left: 116px; top: 76px; }
.dots { position: absolute; display: block; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 1.6px, transparent 2px) 0 0 / 8px 8px; }
.dots--hero { z-index: 1; width: 150px; height: 150px; left: 20px; bottom: -10px; opacity: .9; }
.dots--left { width: 110px; height: 110px; right: -50px; top: -34px; }   /* над второй строкой заголовка, не под буквами */
.star { width: 26px; z-index: 3; }
.star--pink { width: 40px; right: 92px; top: 12px; display: none; }
.star--w1 { right: 6px; top: 200px; }   /* на 320 касалась «!» в «скин!» */
.star--w2 { left: 46%; top: 520px; display: none; }

/* ─── Карточка ─── */
/* overflow-x: clip — петли у правого края (повёрнутая картинка 674 px) растягивали страницу до 1562 px на 1440;
   по вертикали не режем: петли заходят на первый экран, ноутбук — под блок поддержки, как в макете */
.claim { position: relative; background: var(--purple); padding: 34px 4% 48px; overflow-x: clip; }
.loops { width: 60px; }
.loops--l { display: none; }
.loops--r { display: none; }
.card { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 26px 23px 30px; border-radius: 24px; background: #000; }
/* Размер — чтобы самое длинное слово заголовков («закончились», «отправилась» ≈ 8,7 em) влезало в строку целиком:
   overflow-wrap — только крайний случай. Без hyphens: auto — на Android со словарём переносов крупный заголовок
   резался бы дефисом («Сохра-няем») */
.card__title { position: relative; z-index: 1; margin: 0; font: 800 min(30px, 8.4vw)/1.05 var(--head); overflow-wrap: break-word; text-wrap: balance; }
.card__title:focus { outline: none; }   /* фокус ставит скрипт после отправки — для чтения с экрана, рамка не нужна */
.test-badge { position: relative; z-index: 1; display: inline-block; margin: 0 0 12px; padding: 4px 10px; border: 1px solid var(--teal);
  border-radius: 20px; color: var(--teal); font: 700 12px/1.2 var(--body); letter-spacing: .02em; }
.card__text { position: relative; z-index: 1; margin: 14px 0 0; font-size: 16px; line-height: 1.2; color: #fff; text-wrap: pretty; }   /* без одного слова на последней строке */
.card__text b { font-weight: 700; }
.laptop { display: none; }
.plane { position: absolute; width: min(112px, 23vw); height: auto; right: -18px; top: 36px;   /* в поле карточки и меньше: на 360 лежал на «!» */ transform: rotate(-8deg); pointer-events: none; }
body:not([data-state="form"]) .plane { display: none; }   /* на телефоне — только рядом с коротким заголовком формы */
.card__main { margin-top: 26px; position: relative; }

/* Состояния: показывается только текущее */
.state { display: none; }
body[data-state="loading"] .state--loading,
body[data-state="saving"] .state--saving,
body[data-state="code"] .state--code,
body[data-state="info"] .state--info { display: block; }
/* Форма — сетка; display только здесь: правило .form { display } перебивало .state и форма была видна во всех состояниях */
body[data-state="form"] .state--form { display: grid; }
.state--loading { padding: 40px 0; text-align: center; }
/* Пока app.js не выбрал вариант (main/random) и состояние — тексты первого экрана и карточки скрыты: иначе на долю секунды
   видны тексты по умолчанию и их тут же подменяют (замечание владельца 30.10). Скрипт не загрузился — через 6 с показываем как есть */
.hero__text, .card__side { transition: opacity .3s ease; }
body[data-state="loading"] .hero__text, body[data-state="loading"] .card__side { opacity: 0; animation: gm-reveal 0s 6s forwards; }
@keyframes gm-reveal { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__text, .card__side { transition: none; } }
.state__title { margin: 16px 0 0; font: 800 22px/1.15 var(--head); }
.state__text { margin: 12px 0 0; font-size: 16px; line-height: 1.3; text-wrap: pretty; }   /* без одного слова на последней строке */
.state--saving, .state--info { text-align: center; padding: 0 0 4px; }
.state__icon { width: 104px; margin: 0 auto 6px; }
.state--info .state__text a { color: var(--teal); }
.countdown { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0 0; }
.countdown__value { font: 800 32px/1 var(--head); color: var(--teal); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.countdown__label { font-size: 14px; color: rgba(255, 255, 255, .75); }
#retry { margin-top: 20px; }
/* Без формы карточка — по центру, как окно с кодом в макете; заголовок ближе к своему содержимому.
   Текста карточки в этих состояниях нет — пустой абзац не добавляет отступ */
body:not([data-state="form"]) .card__side { text-align: center; }
body:not([data-state="form"]) .card__main { margin-top: 20px; }
.card__text:empty { display: none; }
/* Код и кнопки без формы — не шире 380 px и по центру: на телефоне карточка уже, там они по-прежнему во всю ширину */
.code, #copy, #retry { max-width: 380px; margin-left: auto; margin-right: auto; }

/* Поля */
.form { gap: 8px; }
.field { position: relative; }
.input { width: 100%; height: 52px; padding: 12px 16px; border: 1px solid var(--field-border); border-radius: 12px; background: #fff;
  color: var(--ink); font: 400 18px/1.35 var(--body); outline: none; -webkit-appearance: none; appearance: none; }
.input::placeholder { color: var(--field-hint); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 61, 255, .35); }
.input[aria-invalid="true"] { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 87, 168, .4); }
/* Поле с ошибкой после отправки (30.10): две вспышки рамки, чтобы ошибку нельзя было пропустить; без движения — без вспышки */
.input--flash { animation: input-flash .45s ease-in-out 4 alternate; }
@keyframes input-flash { to { box-shadow: 0 0 0 7px rgba(255, 87, 168, .65); } }
@media (prefers-reduced-motion: reduce) { .input--flash { animation: none; } }
.input--date { background: #fff url(../img/icon-calendar.svg) no-repeat right 14px center / 22px; padding-right: 46px; }
/* Значок календаря (30.10): поверх значка — прозрачный системный <input type=date>; нажатие открывает календарь системы
   (на iOS/Android — сам по нажатию, на компьютере — showPicker в app.js). 16px — iOS не увеличивает страницу при фокусе */
.date-pick { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; opacity: 0;
  font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; background: none; color: transparent; }
.date-pick::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; cursor: pointer; }
/* Мягкая подсказка под полем (не ошибка) */
.hint { margin: 4px 2px 0; color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.25; }
.hint[hidden] { display: none; }
.err { margin: 4px 2px 0; min-height: 0; color: var(--err); font-size: 14px; line-height: 1.25; }
.err:empty { display: none; }
.err--form { text-align: center; }
.typo { margin: 6px 2px 0; padding: 10px 12px; border-radius: 12px; background: #1c1c1c; font-size: 15px; }
.typo b { overflow-wrap: anywhere; }   /* длинная почта переносится, а не растягивает карточку */
.typo .link:disabled { opacity: .5; cursor: progress; }
/* Цель касания — 44 px в высоту (поля вокруг текста), раскладка та же: отрицательные поля съедают добавку */
.typo .link { padding: 12px 8px; margin: -12px -8px; }
.typo__btns { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Подсказки */
.suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 54px; margin: 0; padding: 6px 0; list-style: none; border-radius: 12px;
  background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); max-height: 280px; overflow: auto; }
.suggest li { padding: 10px 16px; font-size: 16px; line-height: 1.25; cursor: pointer; }
.suggest li small { display: block; color: var(--field-hint); font-size: 13px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: #eef0ff; }
.suggest mark { background: none; color: inherit; font-weight: 700; }
/* Домены почты на телефоне — чипы над полем: клавиатура их не закрывает */
.chips { position: absolute; z-index: 20; left: 0; right: 0; bottom: 100%; margin-bottom: 6px; display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.chips[hidden] { display: none; }
.chip { flex: 0 0 auto; height: 40px; padding: 0 10px; border: 0; border-radius: 20px; background: #fff; color: var(--ink);
  font: 600 15px/40px var(--body); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.chip:active { background: #eef0ff; }

/* Согласие */
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; font-size: 13px; line-height: 1.35; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; }
.check__box { flex: 0 0 24px; height: 24px; border-radius: 4px; border: 2px solid #fff; transition: background .15s; }
.check input:checked + .check__box { background: var(--check) url(../img/tick.svg) no-repeat center / 12px; border-color: var(--check); }
/* Фокус с клавиатуры: бирюзовая рамка с зазором — на чёрном видна (контраст ~13:1; синяя тень была 1,5:1) */
.check input:focus-visible + .check__box { outline: 2px solid var(--teal); outline-offset: 2px; }
.check a[href] { text-decoration: underline; }   /* без адреса (consent_url = null) — простой текст */
.check--opt { min-height: 44px; margin-top: 4px; }
/* Младше 14 (app.js, minorCheck): вступление и тексты галочек от лица законного представителя */
#form:not(.form--minor) .only-minor, #form.form--minor .only-adult { display: none; }
.guardian { margin: 12px 0 0; font-size: 13px; line-height: 1.35; font-weight: 700; }   /* рассылки: зона нажатия ≥ 44 px (вся подпись — label) */
#submit { margin-top: 16px; }

/* Промокод */
.code { margin-top: 6px; margin-bottom: 16px; padding: 22px 12px; border-radius: 12px; background: #fff; color: #000; text-align: center;
  font: 700 22px/1.2 ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;   /* моноширинный: 0/O, 1/I различимы */
  letter-spacing: .04em; font-variant-numeric: slashed-zero; word-break: break-all; user-select: all; }
.activate { max-width: 380px; margin: 18px auto 0; text-align: left; }
.activate__title { margin: 0; font: 700 16px/1.25 var(--body); }
.activate__steps { margin: 8px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.activate__steps li + li { margin-top: 4px; }
.state--code .state__text { text-align: center; color: rgba(255, 255, 255, .75); font-size: 14px; max-width: 380px; margin-left: auto; margin-right: auto; }

/* Крутилка */
.spinner { display: inline-block; width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .2); border-top-color: var(--teal);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── После кода: «Знакомься» ─── */
.about { position: relative; overflow: hidden; background: #000; }   /* без z-index, как .help */
.about__inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 40px 25px 0; }
.about__title { margin: 0; font: 700 36px/1 var(--head); }
.about__text p { font-size: 16px; line-height: 1.3; max-width: 560px; text-wrap: pretty; }
.about__text .btn { max-width: 340px; margin-top: 22px; }
.about__girl { width: 80%; margin: 24px auto 0; }
.ticker { overflow: hidden; background: var(--pink); color: #000; font: 700 16px/1 var(--body); padding: 18px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker__track span { white-space: nowrap; padding-right: .35em; }   /* хвостовой пробел flex съедает — на стыке было «Мерч ✦Бесплатные» */
@keyframes ticker { to { transform: translateX(-50%); } }

/* ─── Поддержка ─── */
/* Ноутбук карточки формы — ПОВЕРХ блока (решение владельца 30.10, в макете срезался): у блока нет своего слоя (z-index auto),
   его фон ниже карточки (z 2), а текст — выше (z 3): ноутбук не закрывает текст */
.help { position: relative; overflow: hidden; background: #000; padding: 40px 25px 200px; }
.help__text { position: relative; z-index: 3; max-width: 800px; }
.help__pre { margin: 0; font: 700 18px/1.2 var(--body); }
.help__title { margin: 8px 0 0; font: 800 28px/1.12 var(--head); }
.help__accent { color: var(--pink); }
.help__body { margin: 18px 0 0; font-size: 16px; line-height: 1.4; text-wrap: pretty; }   /* на 900 «скин.» стоял один на строке */
.help__q { position: absolute; width: 190px; left: 30px; bottom: 10px; z-index: 1; }
/* Кодов уже не будет (завершена, закончились) — скин не обещаем, остаётся «Есть вопросы? Напиши нам» */
.help-over { display: none; }
body[data-info="ended"] .help-code, body[data-info="pool_empty"] .help-code { display: none; }
body[data-info="ended"] .help-over, body[data-info="pool_empty"] .help-over { display: block; }
.star--teal { width: 34px; right: 16px; top: 4px; }   /* выше «Если что-то пошло не так»: на 320 лежала на «так» */
.zigzag { width: 160px; right: -20px; bottom: 40px; }

/* ─── Подвал ─── */
.footer { background: var(--purple); padding: 26px 25px 40px; text-align: center; font-size: 12px; line-height: 1.35; }
.footer p { margin: 0 0 6px; }
.footer a { margin: 0 4px; text-decoration: underline; }
.noscript { padding: 16px; background: var(--pink); color: #000; text-align: center; }
.ym-pixel { position: absolute; left: -9999px; width: 1px; height: 1px; }   /* пиксель Метрики без JS (noscript) */

/* Широкий телефон: заголовок формы влезает в одну строку и уходил под самолётик — две строки, как на 360–412 */
@media (min-width: 480px) and (max-width: 599px) {
  body[data-state="form"] .card__title, body[data-state="form"] .card__text { max-width: calc(100% - 92px); }
}

/* ══════════ Планшет 600–899 ══════════
   Раскладка телефона, но крупнее: заголовок в две строки, как на компьютере; машина целиком (88% ширины, а не
   156% — была видна только передняя часть шириной 1198 px), хештеги над ней; карточка не шире 680 px,
   самолётик — справа от заголовка формы, текст его не заходит под него */
@media (min-width: 600px) and (max-width: 899px) {
  .desk { display: inline; }   /* строки текста первого экрана — как в макете компьютера */
  .hero__inner { padding: 30px 48px 0; }
  .logo img { height: 36px; }
  .hero__text { margin-top: 34px; max-width: 640px; }
  .hero__title { font-size: clamp(42px, 7.2vw, 60px); line-height: 1.04; }
  .hero__title--random { font-size: clamp(28px, 4.8vw, 40px); line-height: 1.12; }
  .hero__underline { width: clamp(356px, 61vw, 508px); margin: 4px 0 0 clamp(62px, 10.6vw, 89px); }
  .hero__title--random + .hero__underline { margin-left: -6px; }
  .hero__sub { font-size: clamp(24px, 3.7vw, 30px); margin-top: 34px; }
  .hero__lead { font-size: 18px; max-width: 420px; margin-top: 16px; }
  .hero__sub--random { font-size: 22px; margin-top: 28px; }
  #to-game { margin-top: 30px; }
  .hero__art { height: calc(49vw + 96px); margin: 18px -48px 0; }
  .blob-hero { width: 96%; left: 0; top: 40px; }
  .blob-hero--blue { top: 70px; left: 12%; width: 80%; }
  .car { width: 88%; left: 8%; top: 84px; }
  .tag { font-size: 14px; }
  .tag--1 { left: 7%; top: 30px; padding: 12px 26px; }
  .tag--2 { left: auto; right: 9%; top: 10px; padding: 12px 26px; }
  .tag--3 { left: 33%; top: 30px; padding: 10px 20px; }
  .dots--hero { width: 170px; height: 170px; left: 28px; bottom: 0; }
  .star--w1 { right: 48px; top: 170px; width: 30px; }

  .claim { padding: 40px 48px 56px; }
  .card { max-width: 680px; padding: 34px 40px 40px; }
  .card__title { font-size: 32px; }
  .card__text { font-size: 18px; }
  body[data-state="form"] .card__title, body[data-state="form"] .card__text { max-width: calc(100% - 150px); }
  .plane { width: 136px; right: -8px; top: 10px; }
}

/* ══════════ Компьютер ══════════ */
@media (min-width: 900px) {
  .desk { display: inline; }
  body { font-size: 18px; }
  .btn { padding: 12px 28px; font-size: 16px; }
  .hero { min-height: 704px; }
  /* Фиолетовое — с 63% ширины содержимого (.hero__inner, до 1440 px по центру), а не окна: на 1600–2560
     край и машина разъезжались. До 1440 это 63% окна, шире — середина + 187 px (13% от 1440) */
  .hero { --edge: calc(50% + min(13%, 187.2px)); }
  .hero__purple { display: block; position: absolute; inset: 0 0 0 var(--edge); background: var(--purple); }
  /* Рваный край: вертикальная полоса (torn-v.svg, растягивается — preserveAspectRatio="none"), правым краем
     заходит на фиолетовое на 2 px; книзу рвётся глубже, как в макете */
  .hero__torn { display: block; position: absolute; top: 0; height: 100%; width: clamp(70px, 8.4vw, 120px); max-width: none;
    left: calc(var(--edge) + 2px - clamp(70px, 8.4vw, 120px)); }
  .hero__inner { padding: 38px 60px 0; min-height: 704px; }
  .logo img { height: 44px; }
  .hero__text { margin-top: 26px; max-width: 960px; }   /* 88 px «в «Другое Дело»» — 938 px: в 900 не помещалось */
  .hero__title { font-size: clamp(56px, 6.2vw, 88px); line-height: 1.02; }
  .hero__title--random { font-size: clamp(30px, 3.5vw, 56px); }   /* остаётся на чёрном, до рваного края (на 1024 «Mobile» лежал на фиолетовом) */
  .hero__underline { width: min(745px, 52vw); margin-left: 130px; margin-top: 4px; }
  .hero__title--random + .hero__underline { margin-left: -10px; }
  .hero__sub { font-size: clamp(28px, 2.6vw, 38px); margin-top: 40px; }
  .hero__lead { font-size: 22px; line-height: 1.15; max-width: 460px; margin-top: 22px; }
  .hero__sub--random { font: 700 clamp(24px, 2.3vw, 34px)/1.2 var(--body); margin-top: 48px; }
  #to-game { width: 320px; margin-top: 40px; }
  .hero__art { position: absolute; inset: 0 0 0 auto; width: 62%; height: auto; margin: 0; z-index: 2; }
  /* Пятно — ниже подзаголовка (как в макете: выступ слева под текстом, а не за ним; было белым по бирюзовому 1,55:1) */
  .blob-hero { width: 101%; left: -12%; top: 500px; }
  .blob-hero--blue { width: 64%; left: 18%; top: 520px; }
  .car { width: 108%; left: -6%; top: 221px; }   /* Фигма: картинка 961 px, x 496, верх 221 при ширине 1440 */
  .tag { font-size: 18px; padding: 16px 30px; }
  .tag--1 { left: 50%; top: 70px; right: auto; transform: rotate(32deg); }
  .tag--2 { left: auto; right: 6%; top: 92px; transform: rotate(20deg); }
  .tag--3 { left: auto; right: 16%; top: 196px; }   /* на 1200 «#Grand Mobile» лежал на «»» заголовка */
  .dots--hero { width: 190px; height: 190px; left: auto; right: -60px; top: 210px; bottom: auto; }
  .dots--left { width: 120px; height: 120px; left: -60px; right: auto; top: 540px; }
  .star--pink { display: block; left: 45%; right: auto; top: 26px; width: 70px; }
  .star--w1 { left: 54%; right: auto; top: 80px; width: 30px; }
  .star--w2 { display: block; left: 19%; top: 586px; width: 50px; }

  .claim { padding: 43px 60px 51px; }
  .loops { display: block; width: 110px; transform: rotate(90deg); }
  .loops--l { left: 110px; top: -270px; }
  .loops--r { right: 160px; bottom: -230px; }
  /* minmax(0, 1fr): длинное слово в заголовке не раздвигает левую колонку и не выталкивает правую за карточку (было на 1024) */
  /* Левая колонка — не уже 250 px: на 900 была 164 и «действующую» не помещалось; форма до 496 px */
  .card { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 496px); gap: 40px; max-width: 1120px; padding: 40px; min-height: 500px; }
  /* 26 px на 900 … 34 px с 1172: «Промокоды закончились», «Сервис временно недоступен» — без разрыва слов (колонка 250–290 px) */
  .card__title { font-size: clamp(24px, 2.9vw, 34px); }
  .card__text { font-size: 20px; max-width: 520px; }
  .card__side { position: relative; }
  /* Фигма: ноутбук 540 px от x 80 колонки, низ уходит под блок поддержки на 42% высоты; в долях — чтобы
     на узких экранах не наезжал на форму */
  .laptop { display: block; position: absolute; left: 13.8%; bottom: 0; width: 92.5%; max-width: 540px; height: auto;
    transform: translateY(42.4%); pointer-events: none; }
  .plane, body:not([data-state="form"]) .plane { display: block; width: clamp(110px, 34%, 200px); left: -32px; right: auto; top: auto; bottom: 0; transform: rotate(-4deg); }
  .card__main { margin-top: 0; }
  .input { font-size: 18px; }
  .check { font-size: 14px; }

  /* Без формы (код, сообщения, сохранение, загрузка) — одна колонка по центру, как окно с кодом в макете:
     заголовок и главное действие одной группой, по середине карточки по вертикали; ноутбук — только у формы,
     самолётик — в углу карточки, не под текстом */
  body:not([data-state="form"]) .card { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; gap: 0;
    max-width: 880px; min-height: 340px; padding: 56px 64px 60px; }
  body:not([data-state="form"]) .card__side { position: static; width: 100%; max-width: 640px; }
  body:not([data-state="form"]) .card__main { width: 100%; max-width: 560px; margin-top: 28px; }
  body:not([data-state="form"]) .card__title { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.15; }
  body:not([data-state="form"]) .laptop { display: none; }
  body:not([data-state="form"]) .plane { width: clamp(90px, 9vw, 130px); left: -22px; bottom: 18px; }
  .code { font-size: clamp(22px, 2vw, 28px); padding: 22px 16px; border-radius: 16px; letter-spacing: .04em; margin-bottom: 18px; }
  .state--code .state__text { font-size: 16px; max-width: 440px; }
  .state--info .state__text, .state--saving .state__text { font-size: 20px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .state__icon { width: 88px; margin-bottom: 4px; }
  .countdown { margin-top: 22px; gap: 8px; }
  .countdown__value { font-size: clamp(34px, 3.2vw, 44px); }
  .countdown__label { font-size: 16px; }
  #retry { margin-top: 24px; }

  /* Как в макете: девушка обрезана по пояс (640 px, а не 932 — над заголовком была пустота на полэкрана),
     текст — по середине высоты */
  .about__inner { display: grid; grid-template-columns: 1fr 520px; align-items: center; column-gap: 40px; padding: 48px 60px 0; }
  .about__title { font-size: clamp(44px, 4.6vw, 76px); line-height: .92; }   /* две строки, как в макете (запасной шрифт шире) */
  .about__text { padding-bottom: 48px; }
  .about__text p { font-size: 22px; }
  .about__girl { width: 100%; max-height: 640px; margin: 0; object-fit: cover; object-position: top; align-self: end; }
  .ticker { font-size: 22px; padding: 18px 0; }

  .help { display: grid; grid-template-columns: 360px 1fr; align-items: center; min-height: 400px; padding: 56px 60px; }
  .help__q { position: relative; left: auto; bottom: auto; width: 300px; }
  .help__pre { font-size: 28px; }
  .help__title { font-size: clamp(30px, 2.8vw, 40px); }
  .help__body { font-size: 22px; max-width: 700px; }
  /* Текст поддержки — от 420 px до 1120 (абзац) / 420 px + 51% ширины (заголовок в одну строку): зигзаг — выше
     заголовка, звезда — у правого края, ниже зигзага (на 1440 звезда лежала на «Д?», на 1200–1366 зигзаг — на «?») */
  .star--teal { right: 16px; left: auto; top: 172px; width: 54px; }
  .zigzag { width: 280px; right: -30px; top: -24px; bottom: auto; }

  .footer { padding: 40px 60px 60px; font-size: 15px; }
}

/* Средняя ширина (планшет, маленький ноутбук): колонка с картинками уже — хештеги мельче и ниже заголовка;
   машина и пятно ниже, чтобы бампер и пятно не легли под «Grand Mobile» и «свой код» (текст до x≈490) */
@media (min-width: 900px) and (max-width: 1199px) {
  .tag { font-size: 14px; padding: 12px 22px; }
  .tag--1 { left: 36%; top: 64px; }
  .tag--2 { right: 4%; top: 70px; }
  .tag--3 { right: 8%; top: 236px; }
  .car { top: calc(460px - 13.4vw); }   /* 339 на 900 … 299 на 1199: ниже текста, колёса не срезаются */
  .blob-hero { top: calc(300px + 18vw); }   /* 462 на 900 … 516 на 1199: ниже подзаголовка, он с шириной опускается */
  /* Фиолетовое — правее, рваный край — уже: «получи свой автомобиль» кончается у 537 px и на 900 заходил на край */
  .hero { --edge: 66%; }
  .hero__torn { width: 48px; left: calc(var(--edge) + 2px - 48px); }
  /* Левая колонка карточки здесь 250–460 px: при 22 px текст формы шёл по слову на строку */
  .card__text { font-size: 19px; }
  /* Поддержка: колонка текста узкая — зигзаг меньше и над текстом, звезда — в правый нижний угол */
  .zigzag { width: 200px; right: -40px; top: -50px; }
  .star--teal { left: auto; right: 48px; top: auto; bottom: 24px; width: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .spinner { animation-duration: 0s; }
  .btn { transition: none; }
  .store::before { animation: none; opacity: 0; }   /* без блика — только яркая обводка */
}

/* Плавающая кнопка к форме (js/cta.js) — только телефон и узкий планшет; снизу с учётом «чёлки»/полосы жестов */
.cta-float { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45); opacity: 0; translate: 0 140%; pointer-events: none; transition: opacity .25s, translate .3s ease; }
.cta-float--on { opacity: 1; translate: 0 0; pointer-events: auto; animation: cta-in .3s ease both; }
@keyframes cta-in { from { opacity: 0; translate: 0 140%; } }
@media (min-width: 900px) { .cta-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .cta-float { transition: none; } }

/* Прогресс заполнения формы (js/progress.js, 30.10): кнопка отправки заливается по шагам, внизу кнопки машинка едет к флажку
   (свои SVG, не эмодзи — эмодзи на части Android/ПК рисуются квадратами).
   Текст кнопки меняет app.js — поэтому всё через --p и псевдоэлементы, без вложенных элементов */
#submit.btn--progress { position: relative; overflow: hidden;
  background: linear-gradient(90deg, #4f7dff 0 var(--p, 0%), var(--blue) var(--p, 0%)); }
#submit.btn--progress::before { content: ''; position: absolute; right: 12px; bottom: 4px; width: 10px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 16'%3E%3Cpath d='M1.5 1v15' stroke='white' stroke-width='1.4'/%3E%3Crect x='2' y='1' width='9' height='6' fill='white'/%3E%3Crect x='2' y='1' width='3' height='3' fill='%23111'/%3E%3Crect x='8' y='1' width='3' height='3' fill='%23111'/%3E%3Crect x='5' y='4' width='3' height='3' fill='%23111'/%3E%3C/svg%3E") center / contain no-repeat; }
#submit.btn--progress::after { content: ''; position: absolute; bottom: 3px; width: 26px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M2 11.5 4.5 6h10l4.5 3.5h8.5A2.5 2.5 0 0 1 30 12v1.5H2z' fill='white'/%3E%3Ccircle cx='9' cy='13.5' r='2.4' fill='%23111' stroke='white' stroke-width='1.2'/%3E%3Ccircle cx='24' cy='13.5' r='2.4' fill='%23111' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  left: clamp(6px, calc(var(--p, 0%) - 22px), calc(100% - 46px)); transition: left .5s cubic-bezier(.3, 1.4, .5, 1); }
#submit.btn--ready { box-shadow: 0 0 0 3px var(--teal), 0 8px 26px rgba(59, 232, 198, .35); }
/* Плавающая кнопка с прогрессом (js/cta.js) */
.cta-float { flex-direction: column; gap: 0; overflow: hidden; }
.cta-float__track { display: none; }
.cta-float--progress .cta-float__track { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--teal) 0 var(--p, 0%), rgba(255, 255, 255, .22) var(--p, 0%)); }
.cta-float__car { position: absolute; bottom: 3px; left: clamp(4px, calc(var(--p, 0%) - 18px), calc(100% - 26px)); transition: left .5s ease; }
.cta-float__car::before { content: ''; display: block; width: 24px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M2 11.5 4.5 6h10l4.5 3.5h8.5A2.5 2.5 0 0 1 30 12v1.5H2z' fill='white'/%3E%3Ccircle cx='9' cy='13.5' r='2.4' fill='%23111' stroke='white' stroke-width='1.2'/%3E%3Ccircle cx='24' cy='13.5' r='2.4' fill='%23111' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Пауза 10 с — пустое поле мягко «дышит» один раз */
.fx-nudge { animation: fx-nudge 1.6s ease-out; }
@keyframes fx-nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 232, 198, 0); } 30%, 60% { box-shadow: 0 0 0 4px rgba(59, 232, 198, .75); } }
@media (prefers-reduced-motion: reduce) { #submit.btn--progress::after, .cta-float__car { transition: none; } .fx-nudge { animation: none; outline: 2px solid var(--teal); } }
