/* ==========================================================================
   ПОТОК — стили лендинга
   Порядок: база → утилиты → компоненты → секции → адаптив.
   Зависимостей нет: только tokens.css.
   ========================================================================== */

/* 1. База ---------------------------------------------------------------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

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

body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

a { color: var(--link); text-underline-offset: 0.2em; }

ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

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

/* 2. Утилиты ------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* max() — чтобы на телефоне с вырезом контент не заезжал под скругления */
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }

.section--sunken {
  background: var(--bg-sunken);
  border-block: 1px solid var(--border-soft);
}

.section--tight-top { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

.section__head {
  max-width: 62ch;
  margin-bottom: var(--space-7);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

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

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -140%);
  z-index: var(--z-overlay);
  padding: 0.7rem 1.1rem;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 650;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* 3. Типографика --------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--brand-text);
}

.display {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: 640;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-display);
  font-weight: 620;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  font-weight: 600;
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: var(--fs-sm); }
.mono { font-family: var(--font-mono); }

.accent-text {
  color: var(--brand-text);
  font-style: normal;
}

.mark {
  position: relative;
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  left: -0.06em; right: -0.06em;
  bottom: 0.06em;
  height: 0.34em;
  background: var(--brand);
  opacity: 0.28;
  border-radius: 2px;
  z-index: -1;
}

/* 4. Кнопки и чипы ------------------------------------------------------- */

.btn {
  --btn-bg: var(--bg-inset);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  min-height: 48px;
  font-size: var(--fs-sm);
  font-weight: 620;
  letter-spacing: 0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) linear,
    border-color var(--dur-fast) linear,
    box-shadow var(--dur) var(--ease-out);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--brand);
  --btn-fg: var(--brand-ink);
  border-color: transparent;
  box-shadow: var(--glow);
}

.btn--primary:hover { --btn-bg: var(--brand-hover); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--bg-inset); }

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

.btn__icon { width: 18px; height: 18px; flex: none; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  font-size: var(--fs-xs);
  font-weight: 550;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.chip--brand {
  color: var(--brand-ink);
  background: var(--brand);
  border-color: transparent;
}

.chip__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-text);
  flex: none;
}

/* 5. Хедер --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Фолбэк: без color-mix() (Safari < 16.2) хедер остаётся непрозрачным */
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) linear, background-color var(--dur) linear;
}

.header.is-stuck { border-bottom-color: var(--border-soft); }

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: var(--brand-ink);
}

.brand__mark svg { width: 19px; height: 19px; }

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}

.icon-btn:hover { color: var(--text); background: var(--bg-inset); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-btn__moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-btn__moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-btn__sun { display: none; }

.nav-toggle { display: none; }

/* 6. Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 5vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  background-image:
    linear-gradient(to right, var(--hero-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 8%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 8%, #000 12%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 5vw, 4.5rem);
}

.hero__copy { display: grid; gap: var(--space-5); justify-items: start; }

.hero__title { max-width: 18ch; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
  width: 100%;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.hero__meta b { color: var(--text); font-weight: 620; }

/* 7. Сцена: телефон + очередь -------------------------------------------- */

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: var(--space-4);
  min-height: 460px;
}

.phone {
  position: relative;
  width: min(230px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  background: linear-gradient(160deg, var(--c-ink-600), var(--c-ink-800));
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow-lg), var(--glow);
  animation: float 7s var(--ease-in-out) infinite;
}

html[data-theme="light"] .phone {
  background: linear-gradient(160deg, #232833, #101319);
}

.phone::after {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
}

.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: var(--c-ink-1000);
}

.reel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.1rem 0.9rem 1rem;
  background:
    radial-gradient(90% 55% at 15% 0%, rgba(216, 255, 74, 0.22), transparent 60%),
    radial-gradient(80% 50% at 100% 22%, rgba(91, 216, 255, 0.18), transparent 62%),
    linear-gradient(195deg, #191e29, #0a0c11 72%);
}

.reel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 65%);
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
  pointer-events: none;
}

/* Титульный кадр ролика: знак и бренд по центру экрана */
.reel__logo {
  position: relative;
  margin-block: auto;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: var(--brand);
}

.reel__logo svg {
  width: 54px; height: 54px;
  filter: drop-shadow(0 0 16px rgba(216, 255, 74, 0.42));
  animation: breathe 5.5s var(--ease-in-out) infinite;
}

.reel__logo span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: rgba(255, 255, 255, 0.94);
}

.reel__eq {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.reel__eq i {
  width: 7px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(to top, var(--c-lime-600), var(--c-lime-400));
  transform-origin: bottom center;
  animation: eq 1.4s var(--ease-in-out) infinite;
}

.reel__eq i:nth-child(1) { animation-delay: 0s;    height: 42%; }
.reel__eq i:nth-child(2) { animation-delay: 0.16s; height: 74%; }
.reel__eq i:nth-child(3) { animation-delay: 0.32s; height: 100%; }
.reel__eq i:nth-child(4) { animation-delay: 0.48s; height: 62%; }
.reel__eq i:nth-child(5) { animation-delay: 0.64s; height: 88%; }

.reel__caption {
  position: relative;
  display: grid;
  gap: 0.4rem;
}

.reel__line {
  height: 13px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  transform-origin: left center;
  animation: type 4.6s var(--ease-in-out) infinite;
}

.reel__line--short { width: 58%; background: var(--brand); animation-delay: 0.35s; }

.reel__line--ghost {
  width: 78%;
  background: rgba(255, 255, 255, 0.35);
  animation-delay: 0.7s;
}

.reel__bar {
  position: relative;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.reel__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 40%);
  background: var(--brand);
  border-radius: inherit;
  animation: progress 4.6s linear infinite;
}

.queue {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}

.queue__list { display: grid; gap: 0.55rem; }

.queue__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--text-muted);
  background: var(--bg-inset);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.queue__item b { color: var(--text); font-weight: 640; }

.queue__body { display: grid; gap: 0.2rem; min-width: 0; }

.queue__state {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.queue__item--pending .queue__state { color: var(--text-faint); }

.queue__tick {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex: none;
}

.queue__item--done .queue__tick {
  background: var(--brand);
  border-color: transparent;
  animation: tick 4s var(--ease-out) infinite;
}

.queue__item--done .queue__tick::after {
  content: "";
  width: 8px; height: 4px;
  border-left: 1.6px solid var(--brand-ink);
  border-bottom: 1.6px solid var(--brand-ink);
  transform: rotate(-45deg) translateY(-1px);
}

.queue__foot {
  font-size: var(--fs-xs);
  color: var(--text-faint);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border);
}

/* 8. Бегущая строка платформ -------------------------------------------- */

.marquee {
  border-block: 1px solid var(--border-soft);
  background: var(--bg-sunken);
  padding-block: var(--space-4);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 32s linear infinite;
}

/* Две одинаковые группы: сдвиг на -50% даёт бесшовный цикл */
.marquee__group {
  display: flex;
  gap: var(--space-7);
  padding-right: var(--space-7);
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.marquee__item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* 9. Цифры --------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-5);
}

.stat {
  display: grid;
  gap: 0.4rem;
  padding-top: var(--space-4);
  border-top: 2px solid var(--border);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 660;
  letter-spacing: var(--ls-tight);
}

.stat__label { font-size: var(--fs-sm); color: var(--text-muted); }

/* 10. Карточки услуг ----------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.card {
  position: relative;
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) linear;
}

.card:hover { transform: translateY(-3px); border-color: var(--brand); }

.card__index {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--brand-text);
  letter-spacing: var(--ls-wide);
}

.card__title { font-size: var(--fs-lg); font-weight: 620; letter-spacing: var(--ls-tight); }

.card__text { font-size: var(--fs-sm); color: var(--text-muted); }

.card__list {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.card__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}

.card__list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--brand-text);
}

/* 11. Процесс ------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.85rem;
  left: 0;
  padding-right: 0.6rem;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--brand-text);
}

.section--sunken .step::before { background: var(--bg-sunken); }

.step__title { font-size: var(--fs-md); font-weight: 620; }

.step__text { font-size: var(--fs-sm); color: var(--text-muted); }

/* 12. Платформы ---------------------------------------------------------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.platform {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.platform__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.platform__badge {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  font-weight: 700;
  flex: none;
}

.platform__name { font-size: var(--fs-md); font-weight: 620; }

.platform__note { font-size: var(--fs-xs); color: var(--text-faint); }

.platform__list {
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.platform__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}

.platform__list li::before {
  content: "";
  width: 14px; height: 1.5px;
  margin-top: 0.7em;
  background: var(--brand-text);
}

.note-line {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  background: var(--bg-inset);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.note-line strong { color: var(--text); }

/* 13. Тарифы ------------------------------------------------------------- */

.pricing__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.switch {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.switch__btn {
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}

.switch__btn[aria-pressed="true"] {
  color: var(--brand-ink);
  background: var(--brand);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Кнопка прижата к низу — карточки одной высоты, кнопки на одной линии */
.plan > .btn { margin-top: auto; }

.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md), var(--glow);
}

.plan__flag {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: var(--radius-pill);
}

.plan__name { font-size: var(--fs-md); font-weight: 640; }

.plan__price {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.15rem 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 660;
  letter-spacing: var(--ls-tight);
}

/* Число и знак валюты не должны разрываться переносом */
.plan__price > span { white-space: nowrap; }

.plan__price small {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-faint);
}

.plan__desc { font-size: var(--fs-sm); color: var(--text-muted); }

.plan__list {
  display: grid;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-soft);
}

.plan__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}

.plan__list li::before {
  content: "✓";
  color: var(--brand-text);
  font-weight: 700;
}

.pricing__foot {
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-faint);
}

/* 14. FAQ ---------------------------------------------------------------- */

.faq { display: grid; gap: var(--space-3); }

.faq__item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__item[open] { border-color: var(--brand); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-md);
  font-weight: 580;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 1.8px solid var(--brand-text);
  border-bottom: 1.8px solid var(--brand-text);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease-out);
  flex: none;
}

.faq__item[open] .faq__q::after { transform: rotate(225deg) translate(-1px, -1px); }

.faq__a {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 68ch;
}

/* 15. Заявка ------------------------------------------------------------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.form {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.field { display: grid; gap: 0.45rem; }

.field__label {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}

.field__input,
.field__textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
}

.field__textarea { min-height: 118px; resize: vertical; }

.field__input::placeholder,
.field__textarea::placeholder { color: var(--text-faint); }

.field__input:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.field__error {
  font-size: var(--fs-xs);
  color: var(--danger);
  min-height: 1em;
}

.field--invalid .field__input,
.field--invalid .field__textarea { border-color: var(--danger); }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  justify-content: space-between;
}

.form__consent { font-size: var(--fs-xs); color: var(--text-faint); max-width: 34ch; }

.form__status {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-text);
}

.contact-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.contact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-decoration: none;
}

.contact:hover { border-color: var(--brand); color: var(--text); }

.contact__key {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  min-width: 5.5rem;
}

.contact__val { color: var(--text); font-weight: 550; }

/* 15.1 Липкая кнопка заявки (только телефоны) ---------------------------- */

.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-overlay);
  display: none; /* включается в мобильной точке останова */
  padding:
    0.65rem
    max(var(--gutter), env(safe-area-inset-right, 0px))
    calc(0.65rem + env(safe-area-inset-bottom, 0px))
    max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid var(--border-soft);
}

/* 16. Подвал ------------------------------------------------------------- */

.footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--border-soft);
  background: var(--bg-sunken);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-faint);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__links a { color: var(--text-muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); text-decoration: underline; }

/* 16.1 Раскадровка форматов и плейсхолдеры ------------------------------- */

.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.story { display: grid; gap: var(--space-4); align-content: start; }

.story__reel {
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 16;
  max-height: 430px;
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.story__frame {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-faint);
  border-bottom: 1px dashed var(--border);
}

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

.story__frame span { position: relative; z-index: 1; }

.story__frame--hook {
  flex: 0 0 26%;
  color: var(--brand-text);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand) 18%, transparent),
    transparent
  );
}

.story__frame--body { flex: 1 1 auto; }

/* «Кадры» внутри основной части — намёк на раскадровку, а не пустота */
.story__frame--body::before {
  content: "";
  position: absolute;
  inset: 12px;
  background-image: radial-gradient(var(--text-faint) 1px, transparent 1px);
  background-size: 13px 13px;
  opacity: 0.35;
  border-radius: var(--radius-sm);
}

.story__frame--cta {
  flex: 0 0 22%;
  color: var(--text);
  background: var(--bg-inset);
}

.story__title { font-size: var(--fs-md); font-weight: 620; letter-spacing: var(--ls-tight); }

.story__text { font-size: var(--fs-sm); color: var(--text-muted); }

/* Контакт, который ещё не подключён */
.contact--pending {
  justify-content: space-between;
  border-style: dashed;
  cursor: default;
}

.badge-soon {
  margin-left: auto;
  padding: 0.15rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: var(--radius-pill);
}

.promise-list {
  display: grid;
  gap: 0.6rem;
  margin-top: var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.promise-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
}

.promise-list li::before {
  content: "→";
  color: var(--brand-text);
  font-weight: 700;
}

/* Ловушка для спам-ботов: невидима для людей, но заполняется ботами */
.field--trap {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Временные значения, которые нужно заменить своими */
.ph {
  display: inline-block;
  padding: 0 0.35em;
  color: var(--brand-text);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* 17. Появление при скролле --------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .phone,
  .marquee__track,
  .reel__line,
  .reel__eq i,
  .reel__logo svg,
  .reel__bar i,
  .queue__item--done .queue__tick { animation: none !important; }
  .reel__bar i { width: 100%; }
}

/* 18. Анимации ----------------------------------------------------------- */

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.1deg); }
  50%      { transform: translateY(-14px) rotate(0.6deg); }
}

@keyframes type {
  0%, 8%   { transform: scaleX(0.08); opacity: 0.5; }
  26%, 74% { transform: scaleX(1); opacity: 1; }
  92%, 100% { transform: scaleX(0.08); opacity: 0.5; }
}

@keyframes progress {
  0%   { transform: scaleX(0.06); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.28); }
  50%      { transform: scaleY(1); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50%      { transform: scale(1.06); opacity: 1; }
}

@keyframes tick {
  0%, 55%   { background: var(--bg-inset); border-color: var(--border); }
  70%, 100% { background: var(--brand); border-color: transparent; }
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 19. Адаптив ------------------------------------------------------------ */

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .grid-3,
  .steps,
  .plans,
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    padding: var(--space-5) var(--gutter) var(--space-6);
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out),
      visibility var(--dur) linear;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: var(--space-4); }

  .nav__link {
    display: block;
    font-size: var(--fs-md);
    padding-block: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
  }

  .stage { grid-template-columns: 1fr; }
  .phone { width: min(210px, 70%); }

  /* На узком экране кнопка в хедере не влезает — главный CTA остаётся в hero */
  .header__actions .btn--primary { display: none; }

  .grid-3,
  .steps,
  .plans,
  .platforms,
  .stories,
  .stats { grid-template-columns: 1fr; }

  .story__reel { max-height: 360px; aspect-ratio: 9 / 10; }

  .stats { gap: var(--space-4); }
  .pricing__head { align-items: flex-start; flex-direction: column; }
  .form { padding: var(--space-5); }

  /* Липкая кнопка заявки: включается, когда скрипт снял атрибут hidden */
  .mobile-cta:not([hidden]) { display: block; }
  body { padding-bottom: 5.5rem; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .queue__item { font-size: 0.72rem; }
}

/* 20. Печать ------------------------------------------------------------- */

@media print {
  .header, .marquee, .form, .stage, .skip-link, .mobile-cta { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .section { padding-block: 1.5rem; }
  .card, .plan, .platform { border-color: #ccc; break-inside: avoid; }
}
