/* shared/fonts.css */
/* Шрифты — те же файлы, что у основного сайта (Google Fonts, OFL), свои копии: CDN режется. */
/* Oswald 700 cyrillic-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/oswald-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* Oswald 700 cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/oswald-700-cyrillic.woff2) format('woff2');
  unicode-range: U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;
}
/* Oswald 700 latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/oswald-700-latin-ext.woff2) format('woff2');
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Oswald 700 latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/oswald-700-latin.woff2) format('woff2');
  unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Caveat 500 700 cyrillic-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(shared/fonts/caveat-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* Caveat 500 700 cyrillic */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(shared/fonts/caveat-cyrillic.woff2) format('woff2');
  unicode-range: U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;
}
/* Caveat 500 700 latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(shared/fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Caveat 500 700 latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(shared/fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* IBM Plex Mono 400 cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* IBM Plex Mono 400 cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-400-cyrillic.woff2) format('woff2');
  unicode-range: U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;
}
/* IBM Plex Mono 400 latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* IBM Plex Mono 400 latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* IBM Plex Mono 500 cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* IBM Plex Mono 500 cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2');
  unicode-range: U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;
}
/* IBM Plex Mono 500 latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* IBM Plex Mono 500 latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* IBM Plex Mono 700 cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-700-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
/* IBM Plex Mono 700 cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-700-cyrillic.woff2) format('woff2');
  unicode-range: U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116;
}
/* IBM Plex Mono 700 latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-700-latin-ext.woff2) format('woff2');
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* IBM Plex Mono 700 latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/ibm-plex-mono-700-latin.woff2) format('woff2');
  unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* DM Mono 400 latin-ext */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(shared/fonts/dm-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* DM Mono 400 latin */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(shared/fonts/dm-mono-400-latin.woff2) format('woff2');
  unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Stardos Stencil 700 latin */
@font-face {
  font-family: 'Stardos Stencil';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(shared/fonts/stardos-stencil-700-latin.woff2) format('woff2');
  unicode-range: U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* shared/tokens.css */
/* Токены оплаты, кабинета и админки. Основа — main site/styles/tokens.css (те же значения),
   плюс продуктовые: поверхности, статусы, размеры для форм. Только тёмная тема. */
:root {
  /* как на основном сайте */
  --bg: #000;
  --fg: #fff;
  --body: #ddd;
  --muted: #a3a3a3;          /* 8.5:1 на чёрном */
  --accent: #ff2d2d;         /* только: главная кнопка, фокус, опасное/внимание, выбранный срок */
  --accent-ink: #000;
  --roughness: 1;
  --grain: 0.08;             /* на продуктовых страницах вдвое слабее, чем на сайте */
  --line: 2px;
  --gutter: clamp(16px, 4vw, 40px);

  /* шрифты */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-logo: 'DM Mono', ui-monospace, monospace;
  --font-stencil: 'Stardos Stencil', var(--font-mono);

  /* продукт */
  --subtle: #8a8a8a;         /* подписи, 5.9:1 — темнее для текста не используем */
  --surface: #0a0a0a;        /* карточки */
  --surface-2: #141414;      /* поля ввода, вложенные блоки */
  --rule: #2a2a2a;           /* тонкие разделители */
  --rule-strong: #4a4a4a;
  --ok: #fff;                /* статусы: цвет одинаковый, различаются иконкой, словом и рамкой */
  --warn: var(--accent);

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);   /* заголовок экрана */
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem);   /* крупные цифры: цена, баланс, дни */

  --tap: 44px;               /* минимальная зона нажатия */
  --radius: 0;               /* углов нет — бумага */
  --header-h: 64px;
  --nav-h: 64px;
  --max: 1120px;
  --speed: 0.32s;
}

/* shared/base.css */
/* База: сброс, типографика, фокус, утилиты. Подключать после fonts.css и tokens.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-mono);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* фокус виден всегда: белая обводка + акцентное кольцо; у полей не отключаем */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--fg);
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
}

/* пока ссылка не в фокусе — нулевой размер и обрезка, а не сдвиг за край: во встроенных браузерах iOS
   (Safari View Controller, Telegram) при свёрнутой адресной строке сдвинутая вверх ссылка выглядывала */
.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* заголовки: сжатый гротеск, капс — как на сайте */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;   /* не меньше: «Ё» и «Й» не налезают на строку выше */
  letter-spacing: 0.005em;
  color: var(--fg);
}

/* рукописные пометки — только декоративные, короткие */
.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
}

/* цифры денег, дат и сроков — моноширинные, ровные столбцы, без эффектов */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.muted {
  color: var(--muted);
}

/* ксерокс: только заголовки, дудлы, рамки */
.xerox {
  filter: url(#xerox);
}

.xerox-strong {
  filter: url(#xerox-strong);
}

/* иконка из спрайта: <svg class="ic"><use href="#d-check"/></svg> */
.ic {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* второй (тонкий) штрих и заливка облака заданы атрибутами в спрайте (shared/partials/doodles.svg) */

/* зерно поверх страницы — статичный SVG-шум, без WebGL; очень слабое */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: calc(var(--grain) * 1.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='0 0 0 0 0 0 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(shared/%23n)'/%3E%3C/svg%3E");
}

/* «печать» при появлении: скрываем ТОЛЬКО если модуль анимаций запустился (html.motion-ok).
   Нет JS, нет GSAP, сбой, reduced-motion — всё видно сразу. */
.motion-ok [data-print] {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* shared/components.css */
/* Общие компоненты оплаты, кабинета и админки. Витрина всех состояний — tools/kit (node tools/build.mjs kit).
   Правило ксерокса: фильтры только у рамок, дудлов и заголовков. Цены, баланс, даты, ссылки, QR, поля,
   ошибки и юридический текст — всегда чёткие. */

/* ---------- раскладка ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap, 16px);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--gap, 12px);
  flex-wrap: wrap;
}

.screen-title {
  font-size: var(--step-2);
  margin: 8px 0 4px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.note-hand {
  display: inline-block;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--fg);
  transform: rotate(-3deg);
}

/* ---------- шапка ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.app-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
}

.logo-cloud {
  width: 1.7em;
  height: auto;
  overflow: visible;
}

.logo-word {
  font-family: var(--font-logo);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- кнопки ---------- */
/* Поведение как на основном сайте (main site: Hero/Pricing):
   главная (акцент) — при наведении мерцает «ступеньками»; контурная — текст и рамка в акцент; белая — текст в акцент.
   Ступени и длительность — переменные: shared/js/motion.js меняет их на каждое наведение (неровный, «живой» FPS). */
.btn {
  --btn-fg: var(--fg);
  --fps-steps: 7;
  --fps-dur: 1s;   /* мерцание ≥ 0.9 с на цикл — меньше трёх вспышек в секунду (WCAG 2.3.1) */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 12px 20px;
  border: var(--line) solid var(--btn-fg);
  background: transparent;
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  transition: color 0.2s steps(var(--fps-steps)), border-color 0.2s steps(var(--fps-steps)), background 0.2s steps(var(--fps-steps));
}

.btn:hover,
.btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

/* главная — единственная акцентная на экране */
.btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  border-color: var(--accent);
  color: var(--accent-ink);
  animation: flicker var(--fps-dur) steps(var(--fps-steps)) infinite;
}

/* белая залитая (как «оплатить» в ценах на сайте) */
.btn--light {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.btn--light:hover,
.btn--light:focus-visible {
  border-color: var(--fg);
  color: var(--accent);
}

/* мягкое мерцание: неглубокое (до 0.75) и медленное — заметно, но не «стробит» */
@keyframes flicker {
  0%, 100% { opacity: 1; }
  25% { opacity: 0.75; }
  50% { opacity: 1; }
  75% { opacity: 0.88; }
}

.btn--quiet {
  border-color: var(--rule-strong);
  color: var(--body);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--text {
  min-height: var(--tap);
  padding: 8px 4px;
  border: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn--text:hover {
  background: transparent;
  color: var(--fg);
}

.btn--danger {
  --btn-fg: var(--accent);
}

.btn--danger:hover,
.btn--danger:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  animation: flicker var(--fps-dur) steps(var(--fps-steps)) infinite;
}

.btn--block {
  width: 100%;
}

.btn--icon {
  width: var(--tap);
  padding: 0;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* идёт запрос: текст остаётся, справа «печатаются» точки */
.btn[aria-busy='true']::after {
  content: '';
  width: 1.4em;
  text-align: left;
  animation: busy-dots 1s steps(4) infinite;
}

@keyframes busy-dots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* ---------- поля ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: var(--line) solid var(--rule-strong);
  background: var(--surface-2);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 1rem;
  border-radius: 0;
}

.input::placeholder {
  color: #6f6f6f;
}

.input:hover {
  border-color: var(--muted);
}

.input:focus {
  border-color: var(--fg);
}

.input[aria-invalid='true'] {
  border-color: var(--accent);
}

.field-hint {
  font-size: var(--step--1);
  color: var(--subtle);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: var(--step--1);
  color: var(--accent);
}

.field-error .ic {
  margin-top: 2px;
}

/* переключатель «регистрация / вход» и т. п. */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: var(--line) solid var(--rule-strong);
}

.segmented button {
  min-height: var(--tap);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.segmented button[aria-pressed='true'],
.segmented button.is-active {
  background: var(--fg);
  color: var(--bg);
}

/* переключатель вкл/выкл */
.switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.switch-track {
  width: 100%;
  height: 100%;
  border: var(--line) solid var(--rule-strong);
  background: var(--surface-2);
  pointer-events: none;
}

.switch-track::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  background: var(--muted);
  transition: transform var(--speed) steps(3), background var(--speed) steps(3);
}

.switch input:checked + .switch-track {
  border-color: var(--fg);
}

.switch input:checked + .switch-track::after {
  transform: translateX(22px);
  background: var(--fg);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- карточки ---------- */
.card {
  position: relative;
  padding: clamp(16px, 3vw, 24px);
  background: var(--surface);
  border: var(--line) solid var(--rule-strong);   /* запасная рамка, пока не нарисована */
  color: var(--body);
}

.card.is-rough {
  border-color: transparent;
}

.rough {
  position: absolute;
  inset: calc(var(--line) * -1);
  width: calc(100% + var(--line) * 2);
  height: calc(100% + var(--line) * 2);
  pointer-events: none;
  overflow: visible;
  color: var(--rule-strong);
}

.card--strong .rough,
.card:hover .rough {
  color: var(--fg);
}

.card--alert .rough {
  color: var(--accent);
}

a.card,
button.card {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
}

/* пары «подпись — значение» (сводка заказа, данные подписки) */
.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}

.kv:last-child {
  border-bottom: 0;
}

.kv-label {
  color: var(--muted);
  font-size: var(--step--1);
}

.kv-value {
  color: var(--fg);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.kv--total .kv-value {
  font-size: var(--step-2);
  font-weight: 500;
}

.price-old {
  margin-right: 8px;
  color: var(--subtle);
  text-decoration: line-through;
}

/* ---------- статусы: иконка + слово + рисунок рамки, не только цвет ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border: var(--line) solid var(--fg);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge .ic {
  width: 1em;
  height: 1em;
  stroke-width: 9;
}

.badge--ok {
  background: var(--fg);
  color: var(--bg);
}

.badge--wait {
  border-style: dashed;
  color: var(--fg);
}

.badge--alert {
  border-style: double;
  border-width: 4px;
  border-color: var(--accent);
  color: var(--accent);
  padding: 1px 8px 1px 6px;
}

.badge--neutral {
  border-color: var(--rule-strong);
  color: var(--muted);
}

/* крупный статус экрана: «оплата прошла», «проверяем платёж»… */
.status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: center;
}

.status-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: var(--line) solid var(--fg);
  color: var(--fg);
}

.status-icon .ic {
  width: 30px;
  height: 30px;
  stroke-width: 8;
}

.status-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem);
  text-transform: uppercase;
  line-height: 1.05;   /* не меньше: «Ё» и «Й» не налезают на строку выше */
  color: var(--fg);
}

.status-text {
  margin: 0;
  color: var(--body);
}

.status[data-kind='ok'] .status-icon {
  background: var(--fg);
  color: var(--bg);
}

.status[data-kind='wait'] .status-icon {
  border-style: dashed;
}

.status[data-kind='wait'] .status-icon .ic {
  animation: tick 2s steps(8) infinite;
}

@keyframes tick {
  to { transform: rotate(360deg); }
}

.status[data-kind='alert'] .status-icon {
  border: 4px double var(--accent);
  color: var(--accent);
}

.status[data-kind='neutral'] .status-icon {
  border-color: var(--rule-strong);
  color: var(--muted);
}

/* ---------- шкала (срок, трафик) ---------- */
.meter {
  position: relative;
  height: 10px;
  border: 1px solid var(--rule-strong);
  background: var(--surface-2);
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--fg);
}

.meter--alert .meter-fill {
  background: var(--accent);
}

/* без лимита — штриховка вместо заливки */
.meter--unlimited .meter-fill {
  width: 100% !important;
  background: repeating-linear-gradient(-45deg, var(--rule-strong) 0 4px, transparent 4px 9px);
}

/* ---------- строки списков (операции, устройства) ---------- */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row > .ic {
  color: var(--muted);
}

.list-title {
  color: var(--fg);
}

.list-meta {
  font-size: var(--step--1);
  color: var(--subtle);
}

.list-amount {
  text-align: right;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.list-row.is-canceled .list-title,
.list-row.is-canceled .list-amount {
  color: var(--subtle);
  text-decoration: line-through;
}

/* ---------- пусто / загрузка / ошибка ---------- */
.empty,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 16px;
  text-align: center;
}

.empty .doodle,
.error-state .doodle {
  width: 72px;
  height: 72px;
  color: var(--fg);
}

.error-state .doodle {
  color: var(--accent);
}

.empty p,
.error-state p {
  margin: 0;
  max-width: 34ch;
}

/* скелет — «бледная ксерокопия»: серые полосы, мигают ступеньками */
.skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-bar {
  height: 14px;
  background: #222;
  animation: skeleton 1.8s steps(6) infinite alternate;
}

.skeleton-bar--title {
  width: 45%;
  height: 28px;
}

.skeleton-bar--short {
  width: 30%;
}

.skeleton-card {
  height: 120px;
  background: var(--surface-2);
  border: var(--line) dashed var(--rule-strong);
  animation: skeleton 1.8s steps(6) infinite alternate;
}

@keyframes skeleton {
  from { opacity: 1; }
  to { opacity: 0.45; }
}

/* ---------- ссылка подписки и QR ---------- */
.copy-field {
  display: flex;
  align-items: stretch;
  border: var(--line) solid var(--rule-strong);
  background: var(--surface-2);
}

.copy-field-value {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  color: var(--fg);
  user-select: all;
}

.copy-field .btn {
  border-width: 0 0 0 var(--line);
  border-color: var(--rule-strong);
}

/* QR — белый квадрат, без фильтров и зерна */
.qr {
  position: relative;
  z-index: 91;
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 14px;
  background: #fff;
}

.qr img,
.qr canvas,
.qr svg {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* ---------- шаги оплаты ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 10px;
  border-top: 3px solid var(--rule);
  color: var(--subtle);
  font-size: var(--step--1);
  text-transform: lowercase;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}

.step[aria-current='step'] {
  border-top-color: var(--fg);
  color: var(--fg);
}

.step.is-done {
  border-top-color: var(--rule-strong);
  color: var(--muted);
}

/* ---------- выбор срока ---------- */
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-height: 120px;
  padding: 16px 18px;
  border: var(--line) solid var(--rule-strong);
  background: var(--surface);
  color: var(--body);
  text-align: left;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--fg);
}

.choice-title {
  position: relative;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  text-transform: uppercase;
  color: var(--fg);
}

.choice-price {
  font-size: var(--step-2);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.choice-price small {
  font-size: var(--step--1);
  color: var(--muted);
}

.choice-total {
  font-size: var(--step--1);
  color: var(--muted);
}

/* выбранный — акцентная рамка и каракуля вокруг названия (акцент разрешён) */
.choice[aria-checked='true'] {
  border-color: var(--accent);
}

.choice .choice-oval {
  position: absolute;
  inset: -10px -18px;
  width: calc(100% + 36px);
  height: calc(100% + 20px);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  max-width: none;
  visibility: hidden;
}

.choice[aria-checked='true'] .choice-oval {
  visibility: visible;
}

.choice-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  transform: rotate(4deg);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

/* ---------- тост и диалог ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 12px 16px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--step--1);
  transform: translateX(-50%);
}

.toast[data-kind='alert'] {
  background: var(--bg);
  color: var(--fg);
  border: 4px double var(--accent);
}

.dialog {
  width: min(92vw, 440px);
  padding: 24px;
  border: var(--line) solid var(--fg);
  background: var(--bg);
  color: var(--body);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.dialog-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  text-transform: uppercase;
  color: var(--fg);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- навигация кабинета ---------- */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  /* «оторванный» верхний край */
  clip-path: polygon(0 6px, 6% 1px, 12% 5px, 19% 0, 27% 4px, 35% 1px, 44% 6px, 52% 2px, 61% 5px, 70% 0, 78% 4px, 87% 1px, 94% 5px, 100% 2px, 100% 100%, 0 100%);
  border-top: 1px solid var(--rule-strong);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: var(--nav-h);
  color: var(--subtle);
  font-size: 0.75rem;
  text-decoration: none;
}

.bottom-nav a[aria-current='page'] {
  color: var(--fg);
}

.bottom-nav a[aria-current='page'] .ic {
  stroke-width: 9;
}

@media (min-width: 900px) {
  .bottom-nav {
    position: static;
    grid-auto-columns: max-content;
    gap: 24px;
    padding: 0;
    clip-path: none;
    border: 0;
    background: transparent;
  }

  .bottom-nav a {
    flex-direction: row;
    min-height: var(--tap);
    font-size: var(--step--1);
  }
}

/* ---------- таблицы админки ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  white-space: nowrap;
}

.table th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table tbody tr:hover {
  background: var(--surface-2);
}

.table td.num,
.table th.num {
  text-align: right;
}

/* checkout.css */
/* Страница оплаты 2.0 — поверх shared (токены, база, компоненты). Классы и id, которые читает script.js, не меняются. */

/* ---------- шапка ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-h);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn,
.lang-toggle {
    min-width: var(--tap);
    min-height: var(--tap);
    border: var(--line) solid var(--rule-strong);
    background: transparent;
    color: var(--fg);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    text-decoration: none;
}

.icon-btn:hover,
.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ---------- раскладка ---------- */
.site-main {
    padding: 24px 0 64px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
        'steps steps'
        'main  side';
    gap: 28px 48px;
    align-items: start;
}

.checkout-progress {
    grid-area: steps;
}

.checkout-main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.checkout-sidebar {
    grid-area: side;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

/* ---------- 01 тариф ---------- */
.plan-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-name {
    font-size: var(--step-3);
}

.plan-desc {
    margin: 0;
    max-width: 52ch;
}

.plan-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 12px 32px;
}

.plan-features,
.included-list,
.trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-features li,
.included-item,
.trust li,
.plan-countries-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.plan-features .ic,
.included-item .ic,
.plan-countries-row .ic {
    margin-top: 2px;
    color: var(--fg);
}

.plan-countries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-countries-label {
    color: var(--muted);
}

/* Россия — отдельно: не «ещё одна страна», а обход белых списков */
.plan-countries-ru {
    padding: 8px 10px;
    border: 1px dashed var(--rule-strong);
    color: var(--fg);
}

/* выбор срока: карточки choice из shared, выбранная — акцентная рамка и овал */
.duration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.duration-card.is-selected {
    border-color: var(--accent);
}

.duration-card.is-selected .choice-oval {
    visibility: visible;
}

/* овал «маркером»: рисуется заново при каждом выборе срока, ступеньками — как печать; снятие выбора мгновенное */
.choice-oval path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.duration-card.is-selected .choice-oval path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.55s steps(9);
}

.choice-total {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
}

.choice-total .price-old:empty {
    display: none;
}

.included-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 12px;
}

.included-item {
    padding: 14px;
    border: 1px solid var(--rule);
    background: var(--surface);
}

/* FAQ — нативный <details>: работает без JS и с клавиатуры */
.faq-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--rule);
}

.faq-item {
    border-bottom: 1px solid var(--rule);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 12px 0;
    color: var(--fg);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-chevron {
    transition: transform var(--speed) steps(3);
}

.faq-item[open] .faq-chevron {
    transform: rotate(90deg);
}

.faq-item p {
    margin: 0 0 16px;
    max-width: 60ch;
}

/* ---------- заказ ---------- */
.order-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-title {
    margin-bottom: 8px;
}

.order-card .btn--block {
    margin-top: 14px;
}

.order-card.is-locked .kv-value {
    color: var(--muted);
}

.order-error {
    margin-top: 10px;
}

.order-balance {
    margin-top: 14px;
    padding-top: 6px;
    border-top: 1px solid var(--rule);
}

.order-balance .btn--block {
    margin-top: 10px;
}

.order-note {
    margin: 10px 0 0;
    font-size: var(--step--1);
    color: var(--muted);
}

.order-note a,
.trust a {
    color: var(--fg);
    text-underline-offset: 3px;
}

.order-note a:hover,
.trust a:hover {
    color: var(--accent);
}

.trust {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    font-size: var(--step--1);
    color: var(--muted);
}

.trust .ic {
    margin-top: 1px;
    color: var(--muted);
}

/* ---------- 02 оплата и 03 готово ---------- */
.status-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.status-icon--wait .ic {
    stroke-width: 7;
}

#doneCard[data-kind='alert'] .status-icon {
    border-color: var(--accent);
    color: var(--accent);
}

#doneCard[data-kind='neutral'] .status-icon {
    border-style: dashed;
    border-color: var(--muted);
    color: var(--muted);
}

#doneCard[data-kind='alert'] .rough {
    color: var(--accent);
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-actions:not(:has(> :not([hidden]))) {
    display: none;
}

.code-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.howto-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

.howto-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}

.howto-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--fg);
}

/* активация: никнейм и вход */
.activate {
    --gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
}

.act-account {
    margin: 0;
    color: var(--muted);
}

.act-account .num {
    color: var(--fg);
}

.act-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--subtle);
    font-size: var(--step--1);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.act-divider::before,
.act-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.act-tg-wait {
    --gap: 10px;
}

.act-link {
    align-self: center;
}

.activated {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.activated-mark svg {
    width: 76px;
    height: 76px;
    stroke: var(--fg);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.activated-title {
    font-size: var(--step-2);
}

.activated-text {
    margin: 0;
    max-width: 44ch;
}

/* ---------- мобильная плашка итога ---------- */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: var(--line) solid var(--rule-strong);
    transform: translateY(110%);
    visibility: hidden;
    /* уезжает вниз ступеньками, потом прячется совсем (не ловит фокус и нажатия) */
    transition: transform 0.36s steps(6), visibility 0s linear 0.36s;
}

.mobile-bar.is-shown {
    transform: none;
    visibility: visible;
    transition: transform 0.36s steps(6), visibility 0s;
}

@media (min-width: 900px) {
    .mobile-bar {
        display: none;
    }
}

.mobile-bar-sum {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-bar-label {
    font-size: var(--step--1);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.mobile-bar .num {
    font-size: var(--step-1);
}

/* ---------- узкие экраны ---------- */
@media (max-width: 899px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'steps'
            'main'
            'side';
    }

    /* на шагах оплаты и результата главное — статус, заказ ниже; на выборе срока заказ идёт после карточек */
    .checkout-sidebar {
        position: static;
    }

    .site-main {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 520px) {
    .duration-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .choice {
        min-height: 0;
    }

    .status-actions .btn {
        flex: 1 1 100%;
    }
}
