/* BlooVPN — сайт и личный кабинет.

   Что делает подачу «дорогой», без приёмов из списка запрещённых:
   - глубина, а не плоскость: три уровня поверхностей, мягкие тени, тонкое зерно;
   - ОДНО свечение на всю страницу — ореол за маскотом, он читается как защита,
     а не как украшение;
   - крупная акцидентная типографика (Impact — шрифт бренда) рядом с спокойным
     системным текстом: контраст размеров, а не контраст цветов;
   - движение только по делу: появление при прокрутке, счётчики, состояние
     подключения, отклик на наведение. Ничего не «плавает» и не пульсирует фоном.

   Кабинет намеренно спокойнее лендинга: это рабочий экран, а не витрина. */

:root {
  --ink: #080a0e;
  --ink-2: #0c0f15;
  --surface: #12151c;
  --surface-2: #171b23;
  --surface-3: #1d222c;
  --line: #262c38;
  --line-soft: #1c212a;
  --text: #eef1f6;
  --muted: #949eae;
  --accent: #2e76ff;
  --accent-2: #5b94ff;
  --accent-hover: #1f63e6;
  --accent-quiet: rgba(46, 118, 255, .13);
  --on-accent: #ffffff;
  --success: #34c07d;
  --warning: #e0a13a;
  --danger: #e35a50;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .3);
  --shadow-lg: 0 32px 70px rgba(0, 0, 0, .45);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --band: clamp(44px, 4.6vw, 72px);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px;
  --dur: 200ms;
  --dur-slow: 520ms;
  --ease: cubic-bezier(.2, .6, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Impact, "Arial Black", "Segoe UI Black", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;

  /* Тонкое зерно поверх тёмных полос: убирает «пластиковую» плоскость. */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/></svg>");
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #ffffff;
    --ink-2: #f7f9fc;
    --surface: #f3f6fa;
    --surface-2: #eaeff6;
    --surface-3: #e1e8f1;
    --line: #d9e0ea;
    --line-soft: #e6ebf2;
    --text: #0e1117;
    --muted: #566072;
    --accent-quiet: rgba(46, 118, 255, .09);
    --shadow-sm: 0 2px 8px rgba(16, 22, 36, .06);
    --shadow-md: 0 12px 30px rgba(16, 22, 36, .09);
    --shadow-lg: 0 30px 64px rgba(16, 22, 36, .14);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0 0 var(--s3); line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 5.6vw, 76px); }
h2 { font-size: clamp(28px, 3.4vw, 46px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
h4 { font-size: 16px; }
p { margin: 0 0 var(--s4); }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
/* height:auto обязателен: у картинок проставлены width/height в разметке (это
   резервирует место и убирает скачок вёрстки), и без него CSS-ширина растягивает
   изображение до атрибутной высоты. */
img { max-width: 100%; height: auto; }

.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .004em; line-height: .98; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.center { text-align: center; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 50ch; }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin-bottom: var(--s4); padding: 6px 12px 6px 8px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--surface);
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.eyebrow b { color: var(--accent); font-weight: 650; }
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 22%, transparent);
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: var(--s3) var(--s4);
}
.skip-link:focus { left: var(--s4); top: var(--s4); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ движение */

[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].shown { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 45%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes bars {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes skel { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Пользователь просил меньше движения — оставляем только смену состояний. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ шапка */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line-soft); background: color-mix(in srgb, var(--ink) 92%, transparent); }
.header-inner { display: flex; align-items: center; gap: var(--s6); height: 74px; transition: height var(--dur) var(--ease); }
.site-header.scrolled .header-inner { height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 19px; font-weight: 700; text-decoration: none; letter-spacing: -.025em;
}
.brand b { color: var(--accent); font-weight: 700; }
.brand img { border-radius: 8px; display: block; transition: transform var(--dur) var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand.small { font-size: 17px; }

.site-nav { display: flex; gap: var(--s5); margin-right: auto; }
.site-nav a {
  position: relative; color: var(--muted); text-decoration: none; font-size: 15px; padding: var(--s2) 0;
  transition: color var(--dur) var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: right var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: var(--s3); }
.nav-mobile { display: none; }

.burger { display: none; background: none; border: 0; padding: var(--s2); cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: transform var(--dur) var(--ease); }

/* ------------------------------------------------------------------ кнопки */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5);
  border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 650; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; transform: none; }

.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18); }

.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--surface-2); }

.btn-quiet { background: var(--accent-quiet); color: var(--accent); }
.btn-quiet:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }

.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }

.btn-onaccent { background: #fff; color: #0d1220; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-onaccent:hover { background: #f0f3f8; }

.btn-sm { min-height: 38px; padding: 0 var(--s4); font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 var(--s6); font-size: 16.5px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-weight: 650; font-size: 15px;
}
.link-arrow::after { content: "→"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ полосы */

.band { position: relative; padding: var(--band) 0; }
.band-surface { background: var(--ink-2); }
/* Полоса-призыв компактнее обычных: в ней одна мысль и одна кнопка. */
.band-accent {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--on-accent); overflow: hidden;
  padding: clamp(40px, 4vw, 60px) 0;
}
.band-accent .muted { color: rgba(255, 255, 255, .8); }

.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .05; mix-blend-mode: overlay;
}

.band-head { max-width: 56ch; margin-bottom: var(--s6); }
.band-head h2 { margin-bottom: var(--s3); }
.band-head p { margin: 0; }

.split { display: grid; grid-template-columns: minmax(240px, 350px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.split-head { position: sticky; top: 108px; align-self: start; }
.split-head h2 { margin-bottom: var(--s4); }
.split-head p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ герой */

.hero { position: relative; padding: clamp(28px, 3.4vw, 52px) 0 clamp(36px, 4vw, 60px); overflow: hidden; }
.hero::after {
  /* Единственное свечение на сайте: ореол за маскотом. */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -6%; top: 6%; width: min(760px, 70vw); aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 62%);
  filter: blur(10px);
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }

.hero h1 { margin-bottom: var(--s5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-note { margin: var(--s4) 0 0; font-size: 14.5px; color: var(--muted); }
.hero-note b { color: var(--text); font-weight: 600; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5) var(--s4); max-width: 520px;
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
}
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 32px; letter-spacing: .01em; line-height: 1; }
.hero-facts span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* Сцена с маскотом: карточки «висят» вокруг него и показывают продукт. */
.stage { position: relative; display: grid; place-items: end center; min-height: clamp(320px, 34vw, 460px); }
.stage-mascot { width: clamp(260px, 30vw, 430px); display: block; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45)); }

.float {
  position: absolute; z-index: 2;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: var(--s3) var(--s4);
  animation: rise 620ms var(--ease-out) backwards;
}
.float-status { left: 0; top: 12%; animation-delay: 240ms; min-width: 208px; }
.float-devices { right: 0; top: 44%; animation-delay: 380ms; }
.float-price { left: 4%; bottom: 8%; animation-delay: 500ms; }

.status-row { display: flex; align-items: center; gap: var(--s3); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); animation: pulse-ring 2.4s var(--ease) infinite; }
.status-text { font-size: 14px; font-weight: 650; }
.status-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.signal { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; margin-left: auto; }
.signal i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; animation: bars 1.5s var(--ease) infinite; }
.signal i:nth-child(2) { animation-delay: .18s; }
.signal i:nth-child(3) { animation-delay: .36s; }
.signal i:nth-child(4) { animation-delay: .54s; }

.float-devices b, .float-price b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.float-devices span, .float-price span { font-size: 12.5px; color: var(--muted); }
.float-price b { color: var(--accent); }

/* ------------------------------------------------------------------ бегущая строка */

.marquee-band { padding: var(--s4) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.marquee-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 0 var(--s6); font-size: 17px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.marquee span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; }

/* ------------------------------------------------------------------ крупные блоки */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 40px); }
.pillar {
  position: relative; padding: var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-md); }
.pillar-num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); opacity: .28; margin-bottom: var(--s3); }
.pillar h3 { font-size: 21px; margin-bottom: var(--s3); }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ спецификация */

.spec { border-top: 1px solid var(--line); }
.spec-row {
  display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: var(--s4) var(--s3); border-bottom: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  transition: background var(--dur) var(--ease);
}
.spec-row:hover { background: var(--surface); }
.spec-row h3 { margin: 0; }
.spec-row p { margin: 0; color: var(--muted); max-width: 64ch; }

/* ------------------------------------------------------------------ локации */

.loc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.loc {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.loc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
/* Код страны, а не флаг-эмодзи: в Windows цветных флагов нет и вместо них
   выводится пара мелких букв — выглядит как ошибка шрифта. */
.loc-code {
  flex-shrink: 0; padding: 7px 9px; border-radius: 7px;
  background: var(--accent-quiet); color: var(--accent);
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.loc b { display: block; font-weight: 650; font-size: 15px; }
.loc span { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ тарифы */

.price-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th {
  text-align: left; padding: var(--s4) var(--s5);
  font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  background: var(--surface-2);
}
.price-table td { padding: var(--s4) var(--s5); border-top: 1px solid var(--line-soft); vertical-align: middle; transition: background var(--dur) var(--ease); }
.price-table tbody tr:hover td { background: var(--surface-2); }
.price-table tr.best td { background: var(--accent-quiet); }
.price-table tr.best:hover td { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.price-table tr.best td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.price-period { font-weight: 650; font-size: 17px; }
.price-period small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; }
.price-sum { font-family: var(--font-display); font-size: 30px; letter-spacing: .01em; white-space: nowrap; }
.price-permonth { color: var(--muted); white-space: nowrap; }
.price-save {
  display: inline-block; padding: 3px 9px; border-radius: 6px; white-space: nowrap;
  background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); font-weight: 650; font-size: 13.5px;
}
.price-table td:last-child { text-align: right; }
.ribbon {
  display: inline-block; margin-left: var(--s2); padding: 3px 8px; border-radius: 5px;
  background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
}

.includes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s5) var(--s6); }
.includes li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); font-size: 15px; }
.includes li::before {
  content: "✓"; margin-top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  background: var(--accent-quiet); color: var(--accent);
}
.includes b { display: block; font-weight: 650; }
.includes span { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ шаги */

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); counter-reset: step; }
.timeline > div { counter-increment: step; padding-top: var(--s5); border-top: 2px solid var(--line); transition: border-color var(--dur) var(--ease); }
.timeline > div:hover { border-top-color: var(--accent); }
.timeline > div::before {
  content: "0" counter(step);
  display: block; margin-bottom: var(--s3);
  font-family: var(--font-display); font-size: 34px; letter-spacing: .02em; color: var(--accent); opacity: .45;
}
.timeline h3 { margin-bottom: var(--s2); }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------------ приложения */

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s6) var(--s5); }
.apps h4 { margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--line-soft); }
.apps li { padding: 6px 0; font-size: 15px; color: var(--muted); }
.apps li b { color: var(--text); font-weight: 650; }
.apps .primary::after {
  content: "основное"; margin-left: var(--s2); padding: 2px 7px; border-radius: 5px;
  background: var(--accent-quiet); color: var(--accent);
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
}

/* ------------------------------------------------------------------ FAQ */

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
details.faq { border-bottom: 1px solid var(--line-soft); padding: var(--s4) 0; }
details.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); transition: color var(--dur) var(--ease); }
details.faq summary:hover { color: var(--accent); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1.2; transition: transform var(--dur) var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: var(--s3) 0 0; color: var(--muted); max-width: 62ch; animation: rise 320ms var(--ease-out); }

/* ------------------------------------------------------------------ финальный призыв */

.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); align-items: center; }
.cta h2 { margin: 0 0 var(--s3); color: var(--on-accent); }
.cta p { margin: 0 0 var(--s5); color: rgba(255, 255, 255, .84); max-width: 46ch; font-size: 17px; }
/* Маскот «стоит» на нижней границе полосы, а не висит в воздухе обрезанным. */
.cta-mascot {
  width: clamp(140px, 15vw, 210px); display: block; align-self: end;
  margin-bottom: clamp(-60px, -4vw, -40px);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .28));
}

/* ------------------------------------------------------------------ карточки */

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.card + .card { margin-top: var(--s4); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
.card-head h2, .card-head h3 { margin: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 650; padding: 4px 11px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.pill.ok::before { animation: pulse-ring 2.4s var(--ease) infinite; }
.pill.warn { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.pill.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.pill.info { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s5); font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }

/* ------------------------------------------------------------------ формы */

.field { display: block; margin-bottom: var(--s4); }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; min-height: 48px; padding: 12px var(--s4);
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px var(--accent-quiet);
}
input[aria-invalid="true"] { border-color: var(--danger); }

.form-error { color: var(--danger); font-size: 14px; margin: calc(var(--s2) * -1) 0 var(--s4); }
.form-note { color: var(--muted); font-size: 14px; }

.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--surface-2); border-radius: var(--r-sm);
  padding: var(--s3) var(--s4); font-size: 15px; margin-bottom: var(--s4);
  animation: rise 320ms var(--ease-out);
}
.notice.bad { border-left-color: var(--danger); }
.notice.ok { border-left-color: var(--success); }

/* ------------------------------------------------------------------ авторизация */

.auth { max-width: 450px; margin: clamp(40px, 6vw, 88px) auto; }
.auth .card { padding: var(--s6); box-shadow: var(--shadow-lg); border-radius: var(--r-lg); }
.auth h1 { font-size: 30px; }
.auth-switch { margin-top: var(--s5); font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--accent); }
.divider { display: flex; align-items: center; gap: var(--s3); color: var(--muted); font-size: 13px; margin: var(--s5) 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ------------------------------------------------------------------ кабинет */

.cabinet { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--s6); padding: var(--s6) 0 var(--s8); align-items: start; }
/* Без min-width:0 колонки grid не дают содержимому сжиматься: на узком экране
   горизонтальная лента вкладок растягивала всю страницу. */
.cabinet > * { min-width: 0; }
.cab-nav { position: sticky; top: 94px; display: grid; gap: 2px; }
.cab-nav button {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  width: 100%; min-height: 42px; padding: 0 var(--s4);
  background: none; border: 0; border-radius: var(--r-sm);
  color: var(--muted); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cab-nav button:hover { color: var(--text); background: var(--surface); }
.cab-nav button.active { color: var(--text); background: var(--surface); box-shadow: inset 2px 0 0 var(--accent); }
.cab-nav .sep { height: 1px; background: var(--line-soft); margin: var(--s3) 0; }

.sub-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s3); margin-bottom: var(--s4); }
.sub-card-head h3 { font-size: 21px; margin: 0; }
.days-left { font-family: var(--font-display); font-size: 40px; letter-spacing: .01em; line-height: 1; }
.days-left span { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.preview-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: var(--s3) 0 6px; }
.preview-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 620ms var(--ease-out); }

.keybox { display: flex; gap: var(--s2); align-items: stretch; margin-top: var(--s3); }
.keybox code {
  flex: 1; min-width: 0; padding: 12px var(--s4);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line-soft); }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table td:last-child, .table th:last-child { text-align: right; }
.table-scroll { overflow-x: auto; }

.empty { text-align: center; padding: var(--s7) var(--s4); color: var(--muted); }
.empty img { width: 150px; opacity: .95; margin-bottom: var(--s4); }

.skeleton { background: var(--surface-2); border-radius: var(--r-sm); height: 14px; animation: skel 1.2s var(--ease) infinite; }
.skeleton.tall { height: 92px; }

/* ------------------------------------------------------------------ модалка покупки */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(3, 5, 9, .66); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: var(--s4);
  animation: fade 200ms var(--ease);
}
.sheet {
  width: 100%; max-width: 490px; max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s6); box-shadow: var(--shadow-lg);
  animation: rise 300ms var(--ease-out);
}
.sheet-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s4); margin-bottom: var(--s5); }
.sheet-close { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: var(--s1); transition: color var(--dur) var(--ease); }
.sheet-close:hover { color: var(--text); }

.choice { display: grid; gap: var(--s2); }
.choice label {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.choice label:hover { border-color: var(--muted); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-quiet); }
.choice .grow { flex: 1; }
.choice .price { font-weight: 700; }

.total { display: flex; justify-content: space-between; align-items: baseline; margin: var(--s5) 0 var(--s4); font-size: 18px; }
.total b { font-family: var(--font-display); font-size: 30px; letter-spacing: .01em; }

/* ------------------------------------------------------------------ подвал */

.site-footer { border-top: 1px solid var(--line-soft); background: var(--ink-2); padding: var(--s7) 0 var(--s4); }
.footer-inner { display: grid; grid-template-columns: 1.7fr repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.footer-inner h4 { color: var(--muted); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s4); }
.footer-inner nav, .footer-inner .col { display: grid; gap: var(--s3); align-content: start; font-size: 15px; }
.footer-inner a { color: var(--muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.footer-inner a:hover { color: var(--accent); }
.footer-inner p { max-width: 40ch; margin: var(--s4) 0 0; color: var(--muted); font-size: 14px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between;
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px;
}

/* ------------------------------------------------------------------ тосты */

.toasts { position: fixed; right: var(--s5); bottom: var(--s5); z-index: 80; display: grid; gap: var(--s2); max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: var(--s4); font-size: 15px;
  box-shadow: var(--shadow-md);
  animation: rise 260ms var(--ease-out);
}
.toast.bad { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--success); }

/* ------------------------------------------------------------------ кабинет: бонусы */

.cab-nav .nav-admin { color: var(--warning); }
.cab-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); }
.cab-head h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.grid-2 > .card + .card { margin-top: 0; }
.stat-big { font-family: var(--font-display); font-size: 44px; line-height: 1; letter-spacing: .01em; }
.stat-big small { font-family: var(--font); font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }

.level-track { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); margin: var(--s4) 0 var(--s2); overflow: hidden; }
.level-track i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width 800ms var(--ease-out); }
.level-steps { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.level-steps b { color: var(--text); font-weight: 650; }

.streak { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s2); margin: var(--s4) 0; }
.streak div {
  display: grid; justify-items: center; gap: 2px; padding: var(--s3) 0;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  font-size: 12px; color: var(--muted); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.streak b { font-family: var(--font-display); font-size: 20px; color: var(--text); letter-spacing: .01em; }
.streak .done { border-color: color-mix(in srgb, var(--success) 40%, var(--line)); background: color-mix(in srgb, var(--success) 10%, var(--surface-2)); }
.streak .done b { color: var(--success); }
.streak .current { border-color: var(--accent); background: var(--accent-quiet); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.streak .current b { color: var(--accent); }
.streak .chest b::after { content: " ★"; font-size: 12px; color: var(--warning); }

.wheel-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s6); align-items: center; }
.wheel-wrap { position: relative; width: 220px; height: 220px; }
.wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 6px solid var(--surface-3); box-shadow: var(--shadow-md), inset 0 0 0 2px rgba(255, 255, 255, .06);
  transition: transform 4.2s cubic-bezier(.12, .7, .08, 1);
}
.wheel-wrap::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: -6px; transform: translateX(-50%);
  border: 11px solid transparent; border-top: 18px solid var(--text); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}
.wheel-wrap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--surface); border: 3px solid var(--surface-3); box-shadow: var(--shadow-sm);
}
.prize-list { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.prize-list span { display: flex; align-items: center; gap: var(--s2); }
.prize-list i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.quest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.quest:last-child { border-bottom: 0; }
.quest h4 { margin: 0 0 2px; font-size: 15.5px; }
.quest p { margin: 0; font-size: 13.5px; color: var(--muted); }
.quest .reward { font-weight: 700; color: var(--accent); white-space: nowrap; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s3); }
.shop-item {
  display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.shop-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.shop-item h4 { margin: 0; }
.shop-item p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; }
.shop-item .price { font-family: var(--font-display); font-size: 24px; letter-spacing: .01em; }
.shop-item .price small { font-family: var(--font); font-size: 13px; color: var(--muted); letter-spacing: 0; }

.result-box {
  margin-top: var(--s4); padding: var(--s4); border-radius: var(--r-md);
  background: var(--accent-quiet); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  animation: rise 320ms var(--ease-out);
}
.result-box h4 { margin: 0 0 var(--s2); }

/* ------------------------------------------------------------------ кабинет: устройства и трафик */

.sub-extra { margin-top: var(--s4); border-top: 1px solid var(--line-soft); padding-top: var(--s3); }
.sub-extra summary { cursor: pointer; font-weight: 650; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); }
.sub-extra summary::-webkit-details-marker { display: none; }
.sub-extra summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform var(--dur) var(--ease); }
.sub-extra[open] summary::after { transform: rotate(45deg); }
.device { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.device:last-child { border-bottom: 0; }
.device-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-quiet); color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.device b { display: block; font-weight: 650; }
.device span { font-size: 13px; color: var(--muted); }
.device .btn { margin-left: auto; }

.slots { display: flex; gap: 6px; margin: var(--s2) 0 var(--s3); }
.slots i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); }
.slots i.on { background: var(--accent); }

.chart { margin-top: var(--s3); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--accent); opacity: .85; transition: opacity var(--dur) var(--ease); }
.chart .bar:hover { opacity: 1; }
.chart .bar.alt { fill: var(--success); }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart-legend { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: 13px; color: var(--muted); margin-top: var(--s2); }

/* ------------------------------------------------------------------ посадочные: приглашение, акция, подарок, статус */

.landing { padding: clamp(36px, 5vw, 80px) 0; }
.landing-card {
  max-width: 720px; margin: 0 auto; padding: clamp(24px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  text-align: center; position: relative; overflow: hidden;
}
.landing-card .mascot { width: 150px; margin: 0 auto var(--s4); display: block; }
.landing-card h1 { font-size: clamp(34px, 5vw, 60px); margin-bottom: var(--s4); }
.landing-card .lead { margin: 0 auto var(--s5); }
.offer-big { font-family: var(--font-display); font-size: clamp(72px, 12vw, 132px); line-height: .9; color: var(--accent); letter-spacing: .01em; }
.countdown { display: inline-flex; gap: var(--s2); margin: var(--s4) 0 var(--s2); }
.countdown div { min-width: 68px; padding: var(--s2) var(--s3); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); }
.countdown b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.countdown span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.code-chip {
  display: inline-block; margin: var(--s3) 0; padding: var(--s2) var(--s4); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 18px; font-weight: 700; letter-spacing: .08em;
  background: var(--accent-quiet); color: var(--accent); border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
}

.status-summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-bottom: var(--s5); }
.status-summary .stat-big { color: var(--success); }
.status-summary.degraded .stat-big { color: var(--warning); }
.node-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s3); }
.node { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.node .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.node.online .dot { background: var(--success); animation: pulse-ring 2.4s var(--ease) infinite; }
.node b { display: block; font-weight: 650; }
.node span { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ инструкции (SEO-страницы) */

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: 13.5px; color: var(--muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: gstep; display: grid; gap: var(--s3); }
.guide-steps li {
  counter-increment: gstep; position: relative; padding: var(--s4) var(--s4) var(--s4) 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.guide-steps li::before {
  content: counter(gstep); position: absolute; left: var(--s4); top: var(--s4);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-size: 18px;
}
.guide-steps h3 { margin: 4px 0 var(--s2); }
.guide-steps p { margin: 0; color: var(--muted); }
.faq-list details.faq:first-child { padding-top: 0; }
.guide-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s3); }
.guide-link {
  display: grid; gap: 2px; padding: var(--s4); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.guide-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-link span { font-size: 13px; color: var(--accent); }

/* ------------------------------------------------------------------ админка */

.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
.admin-bar input, .admin-bar select { width: auto; min-width: 220px; flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.kpi { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.kpi b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.05; letter-spacing: .01em; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.warn b { color: var(--warning); }
.table td.actions { white-space: nowrap; }
.table td.actions .btn { margin-left: 4px; }
.table .clickable { cursor: pointer; }
.row-form { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: end; margin-top: var(--s3); }
.row-form .field { margin: 0; flex: 1; min-width: 140px; }
.row-form .btn { flex-shrink: 0; }
.thread { display: grid; gap: var(--s2); margin: var(--s4) 0; }
.bubble { max-width: 80%; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--surface-2); white-space: pre-wrap; }
.bubble.admin { justify-self: end; background: var(--accent-quiet); }
.bubble small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .stage { min-height: 420px; margin-top: var(--s5); }
  .hero::after { right: -20%; top: 34%; }
  .split { grid-template-columns: 1fr; gap: var(--s6); }
  .split-head { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta-mascot { display: none; }
}

@media (max-width: 980px) {
  .cabinet { grid-template-columns: 1fr; gap: var(--s5); }
  .cab-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: var(--s2); padding-bottom: var(--s2); }
  .cab-nav .sep { display: none; }
  .cab-nav button.active { box-shadow: inset 0 -2px 0 var(--accent); }
  .timeline { grid-template-columns: 1fr; gap: var(--s5); }
  .faq-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 var(--s4); }
  .burger { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s2) var(--s4);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; animation: rise 220ms var(--ease-out); }
  .site-nav a { padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
  /* В 320 px шапка не вмещает лого, две кнопки и бургер: второстепенное
     действие уезжает в меню — ссылку .nav-mobile туда добавляет скрипт. */
  .header-inner { gap: var(--s3); }
  .header-actions { gap: var(--s2); }
  .header-actions .btn { padding: 0 var(--s3); font-size: 14px; }
  .header-actions .btn:first-child { display: none; }
  .site-nav .nav-mobile { display: block; }

  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
  .hero-facts strong { font-size: 26px; }
  .stage { min-height: 340px; }
  .float-status { left: -4px; top: 4%; min-width: 0; }
  .float-devices { right: -4px; top: 40%; }
  .float-price { left: 0; bottom: 2%; }
  .float { padding: var(--s2) var(--s3); }

  .spec-row { grid-template-columns: 1fr; gap: var(--s2); }

  /* Таблица цен на узком экране разворачивается в карточки: горизонтальный
     скролл в прайсе — верный способ потерять покупателя. */
  .price-wrap { border: 0; border-radius: 0; background: none; }
  .price-table thead { display: none; }
  .price-table tr {
    display: grid; gap: var(--s2); margin-bottom: var(--s3); padding: var(--s5);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  }
  .price-table tr.best { border-color: var(--accent); }
  .price-table tr.best td:first-child { box-shadow: none; }
  .price-table td, .price-table tbody tr:hover td, .price-table tr.best td { padding: 0; border: 0; background: none; }
  .price-table td:last-child { text-align: left; margin-top: var(--s2); }
  .price-table td:last-child .btn { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .wheel-box { grid-template-columns: 1fr; justify-items: center; }
  .streak { gap: 4px; }
  .streak b { font-size: 16px; }
  .countdown div { min-width: 56px; }
  .guide-steps li { padding-left: 58px; }
  .bubble { max-width: 100%; }
  .admin-bar input, .admin-bar select { min-width: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px var(--s3); }
  .kv dd { text-align: left; margin-bottom: var(--s2); }
  .toasts { left: var(--s4); right: var(--s4); bottom: var(--s4); max-width: none; }
}

@media (max-width: 480px) {
  .loc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand span { display: none; }
  /* Три факта остаются в один ряд: две колонки оставляли третий висеть один. */
  .hero-facts { gap: var(--s3); }
  .hero-facts strong { font-size: 23px; }
  .hero-facts span { font-size: 12.5px; }
}
