/* ===========================================================================
   Domiq — сайт. Один файл стилей на все страницы.
   Ничего не загружается извне: шрифты системные, иконки — встроенный SVG.
   Тёмная тема не предусмотрена намеренно.
   =========================================================================== */

:root {
  /* Цвета бренда — из «Брендинг проекта Domiq/handoff/brand.json» */
  --amber: #f49a18;
  --ink: #20242a;
  --muted: #7f776f;
  --cream: #fbf6ee;
  --surface: #fffdf8;
  --soft: #f3eee6;
  --line: #eee2d2;

  --radius-card: 22px;
  --radius-small: 14px;
  --radius-pill: 999px;

  --shadow: 0 20px 60px rgba(121, 85, 45, 0.12), 0 2px 12px rgba(121, 85, 45, 0.08);
  --shadow-soft: 0 2px 10px rgba(121, 85, 45, 0.06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --font-reading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --page: 1080px;
  --gutter: 24px;
}

/* --------------------------------------------------------------------------
   Переключение языка. Без JavaScript страница показывает русский.
   Каждый переводимый кусок продублирован трижды и помечен lang="ru|en|es".

   Машинный перевод браузера на сайте запрещён (translate="no", 27.09.2026):
   переводчик Яндекс Браузера помечал переведённые куски lang="ru", и при
   выбранном EN правило ниже прятало их все — на странице сброса пароля
   пропали заголовок, подписи полей и надпись на кнопке. У сайта свои RU/EN/ES.
   -------------------------------------------------------------------------- */
html[data-lang="ru"] .i18n:not([lang="ru"]),
html[data-lang="en"] .i18n:not([lang="en"]),
html[data-lang="es"] .i18n:not([lang="es"]) {
  display: none;
}

/* -------------------------------------------------------------------------- */

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

html {
  /* only — браузер не затемняет страницу и поля принудительно (27.09.2026). */
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-small) 0;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

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

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand svg {
  display: block;
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* Переключатель языка */
.langs {
  display: inline-flex;
  background: var(--soft);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  flex: 0 0 auto;
}

.langs button {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 32px;
}

.langs button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

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

.hero {
  padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 80px);
  text-align: center;
}

.hero__mark {
  display: block;
  margin: 0 auto clamp(24px, 4vw, 36px);
  width: clamp(76px, 12vw, 104px);
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(31px, 6.2vw, 58px);
  max-width: 17ch;
  margin: 0 auto;
  text-wrap: balance;
}

.hero__lead {
  margin: clamp(20px, 3vw, 28px) auto 0;
  max-width: 60ch;
  font-size: clamp(17px, 2.1vw, 20px);
  color: #4a4740;
}

/* Блок загрузки. Включается флагом в script.js — см. STORES. */
.stores {
  margin-top: clamp(28px, 4vw, 40px);
}

.stores__soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #5c574f;
}

.stores__soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex: 0 0 auto;
}

.stores__live {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.btn-store:hover {
  background: #2c313a;
}

/* Два кода рядом: у каждого магазина свой адрес, и общий код увёл бы
   владельца айфона на страницу, которую его телефон открыть не может. */
.stores__codes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  margin-top: 24px;
}

.stores__qr {
  margin: 0;
}

.stores__qr-hint {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.stores__qr img {
  width: 132px;
  height: 132px;
  border-radius: var(--radius-small);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.stores__qr figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Секции
   ========================================================================== */

.section {
  padding: clamp(44px, 7vw, 84px) 0;
}

.section--soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section__head h2 {
  font-size: clamp(25px, 3.8vw, 38px);
}

.section__head p {
  margin-top: 14px;
  color: #4a4740;
  font-size: clamp(16px, 2vw, 18px);
}

/* Карточки-сетка */
.grid {
  display: grid;
  gap: 16px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 28px);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin-top: 8px;
  color: #55514a;
  font-size: 16px;
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(244, 154, 24, 0.14);
  color: var(--amber);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Две половины */
.halves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.half {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3.2vw, 34px);
}

.half--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.half__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.half h3 {
  font-size: clamp(20px, 2.6vw, 25px);
}

.half ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.half li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  color: #55514a;
}

.half--dark li {
  color: #ddd6ca;
}

.half li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* О данных */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 28px);
}

.fact h3 {
  font-size: 17px;
  font-weight: 700;
}

.fact p {
  margin-top: 8px;
  font-size: 15px;
  color: #55514a;
}

.fact a {
  color: #a8690a;
  font-weight: 600;
}

/* Ролик: во всю ширину колонки, скруглён как карточки, кадр-обложка до запуска */
.promo-video {
  margin: clamp(28px, 4vw, 40px) 0 0;
}

.promo-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  background: #1f1b16;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.promo-video figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Снимки экранов приложения: два телефона рядом, на узком экране — в столбик */
.shots {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
}

.shot {
  margin: 0;
  text-align: center;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   Внутренние страницы
   ========================================================================== */

.page {
  padding: clamp(36px, 6vw, 68px) 0 clamp(48px, 7vw, 90px);
}

.page__head {
  max-width: 70ch;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.page__head h1 {
  font-size: clamp(28px, 4.6vw, 44px);
}

.page__head .page__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 4vw, 52px);
  max-width: 74ch;
  font-family: var(--font-reading);
}

.doc h2 {
  font-size: clamp(18px, 2.4vw, 21px);
  margin: 42px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.01em;
}

.doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 32px;
}

.doc .doc__title {
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.25;
}

.doc p {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.7;
  color: #34383e;
}

.doc ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.doc li {
  position: relative;
  padding-left: 20px;
  font-size: 16.5px;
  line-height: 1.65;
  color: #34383e;
}

.doc li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-weight: 700;
}

.doc a {
  color: #a8690a;
}

.doc__meta {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--muted);
}

/* Простая страница (поддержка, удаление аккаунта) */
.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: clamp(19px, 2.6vw, 23px);
  margin: 40px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
  color: #34383e;
}

.prose a {
  color: #a8690a;
}

.prose ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.prose li {
  position: relative;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: #34383e;
}

.prose li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-weight: 700;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-small);
  padding: 20px 22px;
  margin: 0 0 28px;
}

.callout p {
  margin: 0;
  font-size: 16px;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  font-size: 17px;
  line-height: 1.6;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
}

.mail:hover {
  background: #2c313a;
}

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

.site-foot {
  background: var(--ink);
  color: #c9c2b8;
  padding: clamp(40px, 6vw, 64px) 0 clamp(28px, 4vw, 40px);
  font-size: 15px;
}

.site-foot__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-foot__brand svg {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.site-foot h2 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b8378;
  margin-bottom: 14px;
  font-weight: 700;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-foot a {
  color: #e6e0d6;
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--amber);
}

.site-foot address {
  font-style: normal;
  line-height: 1.7;
  color: #a9a196;
}

.site-foot__bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: #8b8378;
  font-size: 14px;
}

/* ==========================================================================
   Узкий экран (проверено на 360px)
   ========================================================================== */

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 16px;
  }

  /* На телефоне шапка занимает две строки. Приклеенной она съедала бы
     шестую часть экрана, поэтому здесь она просто верхняя. */
  .site-head {
    position: static;
    backdrop-filter: none;
  }

  .site-head__inner {
    gap: 10px 14px;
  }

  .brand svg {
    height: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 16px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
    margin-top: 2px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .langs {
    margin-left: auto;
  }

  .langs button {
    padding: 6px 10px;
  }

  .hero h1 {
    max-width: none;
  }

  .doc {
    padding: 22px 18px;
  }

  .doc p,
  .doc li {
    font-size: 16px;
  }
}

@media print {
  .site-head,
  .site-foot,
  .langs {
    display: none;
  }

  body {
    background: #fff;
  }

  .doc {
    border: 0;
    padding: 0;
    max-width: none;
  }
}


/* ==========================================================================
   Картинки: те же, что на первом экране приложения
   ========================================================================== */

/* Четыре квадрата под первым экраном. Сетка, а не карусель: карусель прячет
   три четверти содержимого за жестом, о котором никто не догадывается. */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(28px, 5vw, 48px);
}

.card-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--soft);
}

.card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Подпись поверх картинки, на плашке: без плашки светлый текст пропадает на
   светлом небе, а тёмный — на тёмной крыше. */
.card-photo figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

/* Промо: картинка и текст в ряд, через один — зеркально. */
.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  padding: clamp(18px, 3vw, 34px) 0;
}

.promo + .promo {
  border-top: 1px solid var(--line);
}

.promo__pic {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--soft);
}

.promo__pic img {
  display: block;
  width: 100%;
  height: auto;
}

.promo__text h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.25;
}

.promo__text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Зеркальный ряд: картинка справа. `order` вместо смены разметки — порядок
   чтения с экрана остаётся прежним. */
.promo--flip .promo__pic {
  order: 2;
}

@media (max-width: 820px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* На узком экране картинка всегда сверху: зеркальный порядок там читается
     как сбой вёрстки, а не как приём. */
  .promo,
  .promo--flip {
    grid-template-columns: 1fr;
  }

  .promo--flip .promo__pic {
    order: 0;
  }
}


/* ==========================================================================
   Просмотр блока магазинов: index.html?stores=preview
   Только для нас. На боевом сайте этих правил ничто не включает.
   ========================================================================== */

/* Кнопки в просмотре не нажимаются: адресов ещё нет, и клик по ним увёл бы
   на саму же страницу. */
[data-preview] .btn-store {
  pointer-events: none;
  opacity: 0.55;
}

/* Пустое место под код — пунктиром, чтобы было видно размер и положение. */
[data-preview] .stores__qr img {
  border: 2px dashed var(--line);
  background: var(--soft);
}

[data-preview] .stores__qr figcaption::after {
  content: " · место под QR";
  color: var(--muted);
  font-weight: 400;
}

html[data-lang="en"] [data-preview] .stores__qr figcaption::after {
  content: " · QR slot";
}

html[data-lang="es"] [data-preview] .stores__qr figcaption::after {
  content: " · espacio para el QR";
}

/* ==========================================================================
   Лист ожидания (26.09.2026): #waitlist на главной, /waitlist, /get
   ========================================================================== */

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

.hero__cta {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__cta-note {
  font-size: 14px;
  color: var(--muted);
}

.btn-cta {
  justify-content: center;
  background: var(--amber);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn-cta:hover {
  background: #e58c0c;
}

.btn-cta[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Приклеенная шапка не должна закрывать заголовок при переходе по #waitlist. */
#waitlist {
  scroll-margin-top: 72px;
}

.waitlist__box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 44px);
  text-align: center;
}

.waitlist__box h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.waitlist__sub {
  margin: 12px auto 0;
  max-width: 44ch;
  color: #4a4740;
  font-size: clamp(16px, 2vw, 18px);
}

.waitlist__form {
  margin-top: 24px;
  text-align: left;
}

.waitlist__row {
  display: flex;
  gap: 10px;
}

.waitlist__row input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid #d8d2c8;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
}

.waitlist__row input[aria-invalid="true"] {
  border-color: #b3261e;
}

.waitlist__row .btn-cta {
  flex: 0 0 auto;
}

.waitlist__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chips {
  border: 0;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip > span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--soft);
  font-size: 15px;
  font-weight: 600;
  color: #5c574f;
  cursor: pointer;
  user-select: none;
}

.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.waitlist__consent {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.waitlist__consent a {
  color: inherit;
}

/* Согласие жителей России — отдельной галочкой (152-ФЗ), текст под ней. */
.waitlist__ru {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.waitlist__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.waitlist__check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
}

.waitlist__ru a {
  color: inherit;
}

.waitlist__ru-text {
  margin: 10px 0 0 30px;
}

.waitlist__ru-text summary {
  cursor: pointer;
  text-decoration: underline;
}

.waitlist__ru-text p {
  margin: 8px 0 0;
  font-size: 13px;
}

.waitlist__msg {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 15px;
  color: #b3261e;
}

.waitlist__msg:empty {
  margin: 0;
}

.waitlist__done {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-small);
  background: var(--soft);
  border-left: 4px solid var(--amber);
  text-align: left;
}

.waitlist__done h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.waitlist__done p {
  margin: 0;
}

.waitlist__done:focus {
  outline: none;
}

/* /waitlist — подтверждение и выход по ссылке из письма; /get — ссылка в магазин. */
.token-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.get-box {
  text-align: center;
}

.get-box .stores__live {
  margin-top: 20px;
}

@media (max-width: 520px) {
  .waitlist__row {
    flex-direction: column;
  }

  .waitlist__row .btn-cta {
    width: 100%;
  }
}

.get-box h1 {
  font-size: clamp(26px, 4.4vw, 40px);
  margin: 0 auto;
  max-width: 20ch;
  text-wrap: balance;
}

/* Раздел «Лист ожидания» под политикой приложения (privacy.html#waitlist). */
.doc-extra {
  margin-top: 28px;
  scroll-margin-top: 72px;
}
