/* ============================================================
   PEAK — shared styles
   BLACK × METALLIC GOLD × MOUNTAINS
   ============================================================ */

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

:root {
  /* фон */
  --bg:       #050505;
  --bg-2:     #080808;
  --bg-3:     #0d0d0d;
  /* графит */
  --g-1:      #141414;
  --g-2:      #1a1a1a;
  --g-3:      #222222;
  /* золото */
  --gold:       #d6a33a;
  --gold-2:     #e6b84a;
  --gold-3:     #f2c45f;
  --gold-light: #f5d98a;
  --gold-deep:  #a87a22;
  --gold-dim:   rgba(214,163,58,0.12);
  --gold-glow:  rgba(214,163,58,0.07);
  --gold-grad:  linear-gradient(135deg, var(--gold-light) 0%, var(--gold-2) 30%, var(--gold) 62%, var(--gold-deep) 100%);
  --gold-grad-hover: linear-gradient(135deg, #fbe6a6 0%, var(--gold-3) 30%, var(--gold-2) 62%, #b98827 100%);
  /* текст */
  --white:    #ffffff;
  --text:     #e8e8e8;
  --muted:    #a0a0a0;
  --dim:      #666666;
  /* линии */
  --border:   rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --border-gold: rgba(214,163,58,0.38);
  /* статусы (только для данных, не для декора) */
  --ok:       #5fbf87;
  --warn:     #e6b84a;
  --err:      #e0625a;

  --display:  'Unbounded', 'Manrope', system-ui, sans-serif;
  --sans:     'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:     ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --radius:   8px;
  --radius-s: 5px;
  --ease:     cubic-bezier(.2,.7,.2,1);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(72px, 10vw, 128px);
}

@media (min-width: 1600px) { :root { --container: 1320px; } }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

::selection { background: rgba(214,163,58,.35); color: #fff; }

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

button, input { font-family: var(--sans); }

a:focus-visible, button:focus-visible, .plan-btn:focus-visible {
  outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px;
}
.input:focus-visible { outline: none; }

/* ── ФОН: топографические линии + мягкое золотое свечение + зерно ── */
.bg-topo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  transform: translateZ(0);
  background:
    radial-gradient(900px 600px at 82% -10%, rgba(214,163,58,.09), transparent 65%),
    radial-gradient(700px 500px at -10% 110%, rgba(214,163,58,.04), transparent 60%);
}
.bg-topo::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/topo.svg') center / cover no-repeat;
  opacity: .045;
}

.wrap, .nav-inner, .foot-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
}

/* ── ЛОГОТИП ── */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; display: block; flex-shrink: 0;
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
.logo:hover .logo-mark { transform: translateY(-2px); filter: drop-shadow(0 4px 12px rgba(214,163,58,.45)); }
.logo-text {
  font-family: var(--display);
  font-size: 17px; font-weight: 700;
  color: #fff; letter-spacing: .16em; text-transform: uppercase;
  line-height: 1;
}
.logo-text span { color: var(--gold-2); }

/* ── КНОПКИ ── */
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  background: var(--gold-grad); color: #0a0a0a;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; border-radius: var(--radius-s);
  border: 1px solid rgba(245,217,138,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px -14px rgba(214,163,58,.55);
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-grad-hover); opacity: 0; transition: opacity .3s var(--ease);
}
/* блик, проходящий по металлу при наведении */
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 40px -12px rgba(214,163,58,.7);
}
.btn-primary[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary .spinner { border-color: rgba(0,0,0,.25); border-top-color: #0a0a0a; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
  border: 1px solid var(--border-2); border-radius: var(--radius-s);
  background: rgba(255,255,255,.02);
  transition: border-color .25s, color .25s, background .25s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--border-gold); color: #fff; background: var(--gold-glow); }
.btn-outline svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn-outline:hover svg { transform: translateY(2px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border-2); border-radius: var(--radius-s);
  background: transparent; color: var(--text); text-decoration: none; cursor: pointer;
  font-family: var(--sans); transition: background .2s, border-color .2s, color .2s;
}
.btn-ghost:hover { background: var(--gold-glow); color: #fff; border-color: var(--border-gold); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost:disabled:hover { background: transparent; color: var(--text); border-color: var(--border-2); }

.btn-block { width: 100%; padding: 14px; font-size: 14px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(5,5,5,0.82);
  transition: background .3s, border-color .3s;
}
nav.is-scrolled, body.nav-open nav { background: rgba(5,5,5,0.96); border-bottom-color: var(--border); }
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px; gap: 24px;
}
.nav-links {
  display: flex; align-items: center; gap: 34px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a, .nav-link {
  position: relative;
  font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color .2s; white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-link:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--text); }
.nav-buy {
  font-size: 13px; font-weight: 700; color: #0a0a0a;
  background: var(--gold-grad); text-decoration: none;
  padding: 10px 20px; border-radius: var(--radius-s);
  border: 1px solid rgba(245,217,138,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
  transition: filter .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.nav-buy:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 24px -10px rgba(214,163,58,.6); }
nav .btn-ghost { padding: 9px 18px; }

.nav-burger {
  display: none;
  flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 6px; width: 40px; height: 40px; flex-shrink: 0;
  background: transparent; border: none; padding: 0 4px; cursor: pointer;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px; border-radius: 2px;
  background: #fff; transition: transform .3s var(--ease), opacity .2s ease, width .3s var(--ease);
}
.nav-burger span:nth-child(2) { width: 14px; background: var(--gold); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 26px;
  border-top: 1px solid var(--border);
  background: rgba(5,5,5,0.98);
  max-height: calc(100dvh - 72px); overflow-y: auto;
}
.nav-mobile-menu.show { display: flex; animation: menu-in .3s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 2px; font-size: 15px; font-weight: 500; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.nav-mobile-link::after { content: '→'; color: var(--dim); font-size: 13px; }
.nav-mobile-menu .nav-mobile-divider ~ .nav-mobile-link { font-size: 13px; color: var(--muted); padding: 12px 2px; }
.nav-mobile-menu .nav-mobile-divider ~ .nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-buy {
  display: block; width: 100%; margin: 18px 0 8px;
  padding: 15px; border: 1px solid rgba(245,217,138,.5); border-radius: var(--radius-s);
  background: var(--gold-grad); color: #0a0a0a;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  text-align: center; text-decoration: none; cursor: pointer;
}
.nav-mobile-divider { height: 1px; background: var(--border); margin: 10px 0 4px; }
body.nav-open { overflow: hidden; }

/* ── ОБЩЕЕ: заголовки секций ── */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2);
  margin-bottom: 18px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px);
}
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12;
  letter-spacing: -.02em; color: #fff;
}
.section-title span { color: var(--gold-2); }
.section-sub { font-size: 15px; color: var(--muted); max-width: 420px; }

/* ── HERO ── */
.hero { position: relative; padding: clamp(128px, 15vw, 176px) 0 clamp(56px, 8vw, 96px); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero-content { min-width: 0; }

.hero-brand {
  display: flex; align-items: center; gap: 14px; margin-bottom: 30px;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.hero-brand strong {
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: #fff;
}
.hero-brand i { display: block; width: 40px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 74px);
  letter-spacing: -.035em;
  color: #fff; line-height: 1.04; margin-bottom: 26px;
  text-wrap: balance;
}
.hero-title span {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-slogan {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .01em;
  color: var(--gold-3); margin-bottom: 22px;
}
.hero-slogan::before {
  content: ''; width: 3px; height: 1.4em; flex-shrink: 0;
  background: var(--gold-grad); border-radius: 2px;
}

.hero-sub {
  font-size: 17px; color: var(--muted);
  max-width: 440px; line-height: 1.65; margin-bottom: 40px;
}
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.hero-meta span:not(:last-child)::after { content: ''; width: 3px; height: 3px; background: var(--gold); transform: rotate(45deg); }
.hero-meta .hero-note { letter-spacing: .02em; text-transform: none; font-size: 13px; font-weight: 600; color: var(--text); margin-left: auto; }
.hero-note b { color: var(--gold-2); font-weight: 700; }

.hero-visual {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; justify-self: end;
  display: grid; place-items: center;
}
.hero-visual::before {
  content: ''; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,163,58,.2), rgba(214,163,58,.05) 45%, transparent 70%);
}
.hero-contours {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22;
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
          mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}
.hero-frame {
  position: absolute; inset: 6%; pointer-events: none;
}
.hero-frame i { position: absolute; width: 22px; height: 22px; border-color: rgba(214,163,58,.5); border-style: solid; border-width: 0; }
.hero-frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero-coord {
  position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--dim);
}
.hero-coord.tl { top: 9%; left: 12%; }
.hero-coord.br { bottom: 9%; right: 12%; }
/* <picture> растягиваем на всю область, иначе 74% считаются от его ужатой ширины и знак уезжает влево */
.hero-visual picture {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hero-emblem {
  position: relative; width: 74%; height: auto; display: block;
  filter: drop-shadow(0 0 36px rgba(214,163,58,.16));
}

/* ── БЕЗ РЕГИСТРАЦИИ ── */
.no-signup { padding: clamp(48px, 7vw, 84px) 0 0; }
.no-signup-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0;
}
.no-signup-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 34px 32px; text-decoration: none; color: inherit;
  background: linear-gradient(170deg, var(--g-1), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.no-signup-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.no-signup-card:hover {
  transform: translateY(-4px); border-color: var(--border-gold);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.9);
}
.no-signup-card:hover::before { opacity: .7; }
.no-signup-icon {
  width: 46px; height: 46px; margin-bottom: 20px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-2);
  border: 1px solid var(--border-gold); background: var(--gold-glow);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.no-signup-icon svg { width: 22px; height: 22px; }
.no-signup-card:hover .no-signup-icon { transform: scale(1.08); background: var(--gold-dim); }
.no-signup-title {
  font-family: var(--display); font-weight: 600; font-size: 20px;
  letter-spacing: -.01em; color: #fff; margin-bottom: 10px;
}
.no-signup-text { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 22px; flex-grow: 1; }
.no-signup-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--gold-2);
}
.no-signup-cta svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.no-signup-card:hover .no-signup-cta svg { transform: translateX(4px); }

.no-signup-trail { width: 120px; display: flex; align-items: center; justify-content: center; }
.no-signup-trail svg { width: 64px; height: 100%; }

.no-signup-note {
  margin-top: 28px; text-align: center; font-size: 13px; color: var(--muted);
}

/* ── STATS ── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat { padding: 34px 32px; border-right: 1px solid var(--border); position: relative; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; color: #fff;
  line-height: 1; margin-bottom: 10px; letter-spacing: -.03em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.stat-n span { color: var(--gold-2); }
.stat-n small { font-family: var(--sans); font-size: .4em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-right: 6px; }
.stat-l { font-size: 13px; color: var(--muted); }

/* ── БЕГУЩАЯ СТРОКА ── */
.ticker {
  position: relative; z-index: 1; overflow: hidden;
  margin: clamp(40px, 6vw, 72px) 0 0; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; will-change: transform; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 40px; padding-right: 40px;
  font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .3em; color: rgba(255,255,255,.16); white-space: nowrap;
}
.ticker-track span::after { content: ''; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── КАК ЭТО РАБОТАЕТ ── */
.how { padding: var(--section) 0 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.how-step {
  background: var(--bg-2); padding: 36px 32px 34px; position: relative;
  transition: background .35s var(--ease);
}
.how-step::before {
  content: ''; position: absolute; top: 0; left: 0; height: 1px; width: 100%;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.how-step:hover { background: var(--bg-3); }
.how-step:hover::before { transform: scaleX(1); }
.how-num {
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .1em;
  color: var(--gold-2); margin-bottom: 40px; display: flex; align-items: center; gap: 12px;
}
.how-num::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.how-icon { width: 30px; height: 30px; color: #fff; margin-bottom: 18px; stroke-width: 1.4; }
.how-title { font-family: var(--display); font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 10px; letter-spacing: -.01em; }
.how-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── ANTIJAM ── */
.antijam { padding: var(--section) 0 0; }
.antijam-inner {
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--g-1), var(--bg-2) 60%);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 64px);
}
.antijam-inner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,163,58,.6), transparent);
}
.antijam-text { min-width: 0; }
.antijam-visual { width: 320px; max-width: 32vw; height: auto; display: block; overflow: visible; }
.antijam-visual .sig { animation: sig-pulse 3.6s ease-in-out infinite; }
.antijam-visual .sig:nth-of-type(2) { animation-delay: .4s; }
.antijam-visual .sig:nth-of-type(3) { animation-delay: .8s; }
@keyframes sig-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.antijam-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -.02em;
  color: #fff; line-height: 1.15; margin-bottom: 18px;
}
.antijam-title span { color: var(--gold-2); }
.antijam-body { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 580px; }
.antijam-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--border);
}
.antijam-feature-icon { width: 22px; height: 22px; color: var(--gold-2); margin-bottom: 14px; stroke-width: 1.5; }
.antijam-feature-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; line-height: 1.35; }
.antijam-feature-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── PRICING ── */
.pricing { padding: var(--section) 0 0; }
.plans-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.plan {
  background: linear-gradient(170deg, var(--g-1), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 24px;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.plan::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.9);
}
.plan:hover::before { opacity: .6; }
.plan.is-popular {
  border-color: var(--border-gold);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(214,163,58,.12), transparent 60%),
    linear-gradient(170deg, var(--g-2), var(--bg-2));
  box-shadow: 0 0 0 1px rgba(214,163,58,.18), 0 30px 70px -34px rgba(214,163,58,.45);
}
.plan.is-popular::before { opacity: 1; }
/* маленький знак PEAK на выделенном тарифе */
.plan.is-popular::after {
  content: 'PEAK'; position: absolute; top: 12px; right: 14px;
  font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .24em;
  color: var(--gold-2); opacity: .8;
}
.plan-skeleton::after { content: none; }
.plan-badge {
  align-self: center;
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 18px; min-height: 16px; line-height: 16px;
  text-align: center;
}
.plan.is-popular .plan-badge {
  padding: 3px 10px; border: 1px solid var(--border-gold); border-radius: 20px; background: var(--gold-dim); line-height: 1.2; min-height: 0;
}
.plan-name {
  font-size: 12px; font-weight: 700;
  color: var(--muted); letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 18px;
  text-align: center;
}
.plan-price {
  font-family: var(--display);
  font-size: clamp(34px, 3vw, 42px); font-weight: 600;
  color: #fff; line-height: 1;
  letter-spacing: -.035em; margin-bottom: 4px;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  text-align: center;
}
.plan.is-popular .plan-price { background: linear-gradient(180deg, #fff 10%, var(--gold-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price sup {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  vertical-align: top; margin-right: 4px; position: relative; top: 4px;
  color: var(--gold-2); -webkit-text-fill-color: var(--gold-2); letter-spacing: 0;
}
.plan-save {
  font-weight: 600; font-size: 12px; color: var(--gold-2);
  display: block; margin: 6px 0 26px; min-height: 18px; white-space: nowrap;
  text-align: center;
}
.plan-save.is-highlight { font-size: 14px; font-weight: 700; }
.plan-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: block; width: 100%; text-align: center; text-decoration: none;
  margin-top: auto; padding: 13px 0; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans);
  background: transparent; border: 1px solid var(--border-2); cursor: pointer;
  color: var(--text); border-radius: var(--radius-s);
  transition: color .25s, border-color .25s, box-shadow .25s;
}
.plan-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold-grad);
  opacity: 0; transition: opacity .25s ease-out;
}
.plan-btn:hover, .plan.is-popular .plan-btn { color: #0a0a0a; border-color: rgba(245,217,138,.55); }
.plan-btn:hover::before, .plan.is-popular .plan-btn::before { opacity: 1; }
.plan.is-popular .plan-btn:hover { box-shadow: 0 10px 30px -12px rgba(214,163,58,.7); }
.plan-error { font-size: 12px; color: var(--err); margin-top: 10px; text-align: center; }
.plans-empty { grid-column: 1 / -1; font-size: 13px; color: var(--muted); text-align: center; padding: 20px 0; }

/* ============================================================
   SKELETON — заглушки на время загрузки данных
   Одна CSS-анимация на transform (композитится GPU, без JS-таймеров
   и без сторонних библиотек), чтобы не нагружать страницу.
   ============================================================ */
.skeleton {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.05);
  border-radius: 5px;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(214,163,58,.08), transparent);
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
@keyframes skel-shimmer { to { transform: translateX(100%); } }

/* Текстовые заглушки: сам текст-плейсхолдер прячем, размер держит строка,
   поэтому при появлении данных вёрстка не прыгает. */
body.is-loading .skel {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  background: rgba(255,255,255,.05);
  border-radius: 5px;
  display: inline-block;
  min-width: var(--skel-w, 90px);
  /* высота ровно в размер шрифта — строка сохраняет свой line-height,
     поэтому появление настоящего текста не двигает соседние блоки */
  height: 1em; line-height: 1; vertical-align: -.12em;
  position: relative; overflow: hidden;
  user-select: none; pointer-events: none;
}
body.is-loading .skel::after {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(214,163,58,.08), transparent);
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
body.is-loading .skel > * { visibility: hidden; }
/* Бейдж статуса: рамку прячем, но высоту держит его собственный padding */
body.is-loading .badge.skel {
  border-color: transparent; height: auto; line-height: inherit; vertical-align: baseline;
}
/* Полоса трафика во время загрузки — пустой жёлоб с подсветкой */
body.is-loading .progress { background: rgba(255,255,255,.05); }

/* Крупная цифра: выравниваем по базовой линии, иначе строка выше на пару пикселей */
body.is-loading .widget-num .skel { vertical-align: baseline; height: .74em; }

.skel-line { display: block; height: 12px; }
.skel-flag { display: inline-block; width: 36px; height: 36px; border-radius: 6px; }

/* Карточка-заглушка тарифа: те же размеры, что у настоящей .plan */
.plan-skeleton { pointer-events: none; }
.plan-skeleton .skel-badge { height: 11px; width: 50%; margin: 0 auto 23px; }
.plan-skeleton .skel-name { height: 12px; width: 60%; margin: 0 auto 18px; }
.plan-skeleton .skel-price { height: 40px; width: 64%; margin: 0 auto 4px; }
.plan-skeleton .skel-save { height: 12px; width: 40%; margin: 6px auto 26px; }
.plan-skeleton .skel-btn { height: 43px; width: 100%; margin-top: auto; border-radius: 5px; }

/* Плавное появление блоков, которые видны только после ответа API */
.reveal { animation: reveal-in .4s var(--ease) both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Проявление при скролле: включается только когда JS пометил <html>,
   поэтому без JS весь контент виден сразу. */
.js-scroll-reveal [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js-scroll-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ── REVIEWS ── */
.reviews { padding: var(--section) 0 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 32px 32px 28px; border-radius: var(--radius);
  position: relative; overflow: hidden; transition: border-color .3s, transform .35s var(--ease);
  display: flex; flex-direction: column;
}
.review:hover { border-color: var(--border-2); transform: translateY(-3px); }
.review-stars {
  color: var(--gold-2); font-size: 12px; letter-spacing: 4px;
  white-space: nowrap; margin-bottom: 18px;
}
.review-quote {
  font-family: var(--display); font-weight: 700;
  font-size: 80px; color: var(--gold); opacity: .12;
  position: absolute; top: 14px; right: 26px; line-height: 1;
}
.review-text { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 26px; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--g-2); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--gold-2); flex-shrink: 0;
}
.review-name { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.3; }
.review-role { font-size: 12px; color: var(--muted); }

/* ── CTA ── */
.cta-section { padding: var(--section) 0; }
.cta-box {
  border: 1px solid var(--border-gold);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(214,163,58,.14), transparent 55%),
    linear-gradient(160deg, var(--g-1), var(--bg) 70%);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 60px) clamp(24px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.cta-ridge {
  position: absolute; right: 0; bottom: 0; width: min(560px, 70%); height: auto;
  opacity: .5; pointer-events: none;
}
.cta-copy { max-width: 520px; position: relative; }
.cta-box h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.02em; color: #fff;
  margin-bottom: 12px; line-height: 1.15;
}
.cta-box p:not(.kicker) { font-size: 15px; color: var(--muted); }
.cta-box .btn-primary { flex-shrink: 0; position: relative; }

/* ── FOOTER ── */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: rgba(8,8,8,.7); }
.foot-inner { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 28px; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.foot-logo .logo-text { font-size: 16px; }
.foot-desc { font-size: 14px; color: var(--muted); max-width: 320px; margin-top: 18px; line-height: 1.65; }
.foot-slogan { font-family: var(--display); font-size: 13px; font-weight: 500; color: var(--gold-3); margin-top: 16px; }
.foot-col-title {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 18px;
}
.foot-links { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--gold-3); }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--dim);
}
.foot-bottom .foot-tags { letter-spacing: .22em; font-weight: 700; text-transform: uppercase; font-size: 10px; }
.foot-copy { font-size: 12px; color: var(--dim); }

/* компактный футер для внутренних страниц */
footer.foot-compact .foot-inner { padding-top: 24px; }
footer.foot-compact .foot-bottom { border-top: none; padding-top: 0; }
footer.foot-compact .foot-mini-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; }
footer.foot-compact .foot-mini-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
footer.foot-compact .foot-mini-links a:hover { color: var(--gold-3); }

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-page {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 104px 20px 48px;
}
.auth-ridge {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: auto; max-height: 45vh;
  pointer-events: none; z-index: 0; opacity: .7;
}
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: linear-gradient(170deg, rgba(20,20,20,.92), rgba(8,8,8,.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 34px 30px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.auth-logo {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
}
.auth-logo .logo-mark { width: 40px; height: 40px; }
.auth-logo .logo-text { font-size: 18px; }
.auth-title {
  font-family: var(--display); font-weight: 600;
  font-size: 24px; color: #fff; line-height: 1.2; margin: 26px 0 8px;
  letter-spacing: -.02em;
}
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
/* отступ до формы одинаковый и с подзаголовком (схлопывается с его margin), и без него */
.auth-card form { margin-top: 24px; }

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .14em; margin-bottom: 8px; text-transform: uppercase;
}
.input {
  width: 100%; padding: 13px 14px;
  background: var(--bg); color: #fff;
  border: 1px solid var(--border-2); border-radius: var(--radius-s);
  /* 16px, не меньше — иначе Safari на iPhone зумит страницу при фокусе на инпуте */
  font-size: 16px; font-family: var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: rgba(255,255,255,.22); }
.input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,163,58,.14);
}
.input.is-invalid { border-color: var(--err); }
/* пустая ошибка не резервирует место — иначе поля расходятся на лишние 20px */
.field-error { font-size: 12px; color: var(--err); }
.field-error:not(:empty) { margin-top: 6px; }

.checkrow {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
}
.checkrow input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0;
}
.checkrow a { color: var(--gold-2); text-decoration: none; }
.checkrow a:hover { text-decoration: underline; }

.auth-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 8px;
}
.link-muted { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.link-muted:hover { color: var(--gold-2); }

.auth-card .btn-primary { margin-top: 8px; }

.auth-alert {
  display: none;
  background: rgba(224,98,90,.08); border: 1px solid rgba(224,98,90,.3);
  color: #f0b3ae; border-radius: var(--radius-s);
  padding: 11px 14px; font-size: 13px; margin-bottom: 16px;
}
.auth-alert.show { display: block; }

.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.auth-foot a { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.auth-slogan {
  position: relative; z-index: 1; margin-top: 22px; text-align: center;
  font-family: var(--display); font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: .02em;
}
.auth-wrap { width: 100%; max-width: 420px; position: relative; z-index: 1; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* simple modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  width: 100%; max-width: 380px;
  background: var(--g-1); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 30px 28px; position: relative;
}
.modal h3 { font-family: var(--display); font-size: 18px; color: #fff; margin-bottom: 10px; }
.modal p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--gold-2); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-body { position: relative; z-index: 1; padding: 112px 0 80px; }
.dash-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.dash-hello {
  font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px);
  color: #fff; line-height: 1.15; letter-spacing: -.025em;
}
.dash-hello span { color: var(--gold-2); }
.dash-email { font-size: 14px; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.dash-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--dim);
}
.dash-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(214,163,58,.8); }

.payment-sync-note {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); margin-top: 18px;
}
.payment-sync-note .spinner { border-color: rgba(214,163,58,.25); border-top-color: var(--gold-2); }

.dash-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 28px;
}
.card {
  position: relative;
  background: linear-gradient(170deg, var(--g-1), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px;
  min-width: 0;
}
.card.span-2 { grid-column: 1 / -1; }
.card-title {
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-desc { font-size: 14px; color: var(--muted); margin: -8px 0 22px; }
.card .plans-row .plan { background: var(--bg-2); }
.card .plans-row .plan.is-popular { background: radial-gradient(120% 70% at 50% 0%, rgba(214,163,58,.12), transparent 60%), var(--bg-2); }

.badge {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  padding: 5px 10px; border-radius: 20px; text-transform: uppercase;
  white-space: nowrap;
}
.badge.active { color: var(--gold-3); background: var(--gold-dim); border: 1px solid var(--border-gold); }
.badge.inactive { color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--border-2); }
.badge.online { color: var(--ok); background: rgba(95,191,135,.1); }
.badge.offline { color: var(--err); background: rgba(224,98,90,.1); }

.sub-plan { font-family: var(--display); font-size: clamp(22px, 2.4vw, 28px); color: #fff; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.sub-meta { font-size: 14px; color: var(--muted); }
.sub-meta strong { color: var(--text); font-weight: 600; }

.traffic-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.traffic-used { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); color: #fff; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.traffic-limit { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress {
  height: 6px; border-radius: 6px; background: var(--g-3);
  overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: 6px;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(214,163,58,.5);
  transition: width .8s var(--ease);
}
.traffic-hint { font-size: 13px; color: var(--muted); margin-top: 12px; }

.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-row .btn-primary, .actions-row .btn-ghost { padding: 13px 24px; font-size: 14px; }

.sub-link-row { display: flex; gap: 8px; }
.sub-link-input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 16px;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-s);
  color: var(--text); font-family: var(--mono);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sub-link-input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214,163,58,.14);
}
.btn-copy {
  padding: 0 18px; border: 1px solid var(--border-gold); border-radius: var(--radius-s);
  background: var(--gold-dim); color: var(--gold-3); cursor: pointer; font-size: 13px; font-weight: 700;
  white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
.btn-copy:hover { background: var(--gold-grad); color: #0a0a0a; border-color: rgba(245,217,138,.55); }
.qr-box {
  margin-top: 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
#qr-code, #onboard-qr-code, .qr-code {
  width: 150px; height: 150px; background: #fff; border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center; padding: 8px;
  box-shadow: 0 0 0 1px var(--border-gold), 0 0 0 5px var(--bg-2), 0 0 0 6px var(--border);
  color: #050505; font-weight: 700;
}
#qr-code img, #qr-code canvas, #onboard-qr-code img, #onboard-qr-code canvas, .qr-code img, .qr-code canvas { width: 100%; height: 100%; }
.qr-hint { font-size: 13px; color: var(--muted); max-width: 260px; }

.device-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 4px; }
.device-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-s);
  background: var(--bg); text-decoration: none; color: var(--muted);
  cursor: pointer; font-family: var(--sans);
  transition: border-color .25s, background .25s, color .25s;
}
.device-card:hover { border-color: var(--border-2); color: #fff; }
.device-card.is-active { border-color: var(--border-gold); background: var(--gold-glow); color: #fff; }
.device-card.is-active::after {
  content: ''; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 2px; background: var(--gold-grad);
}
.device-icon { width: 24px; height: 24px; line-height: 1; display: block; }
.device-card.is-active .device-icon { color: var(--gold-3); }
.device-icon svg { width: 100%; height: 100%; display: block; }
.device-name { font-size: 12px; font-weight: 600; }

.onboard-steps { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; margin-bottom: 4px; }
.onboard-steps[hidden] { display: none; }
.onboard-step { display: flex; gap: 16px; }
.onboard-step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border-gold); color: var(--gold-3);
  font-size: 11px; font-weight: 600; font-family: var(--display);
  display: flex; align-items: center; justify-content: center;
}
.onboard-step-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.onboard-step-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.onboard-link-box { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); display: none; }
.onboard-link-box.show { display: block; }
.onboard-step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.onboard-fallback { font-size: 13px; color: var(--muted); margin-top: 10px; }
.link-btn {
  background: none; border: none; padding: 0; margin: 0; font: inherit;
  color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn:hover { color: var(--gold-light); }
.link-btn:disabled { opacity: .5; cursor: not-allowed; text-decoration: none; }
#windows-alt-panel:not([hidden]) { margin-top: 4px; display: flex; flex-direction: column; gap: 20px; }

.widget-num {
  font-family: var(--display); font-weight: 600; font-size: 40px; color: #fff;
  line-height: 1; margin-bottom: 8px; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.widget-label { font-size: 13px; color: var(--muted); }
.servers-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.servers-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.servers-flag {
  width: 40px; height: 40px; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--radius-s);
}
.servers-flag img { width: 22px; height: 22px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.pay-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; }
.pay-table th {
  text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim);
  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.pay-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-table tr:last-child td { border-bottom: none; }
.pay-table tbody tr { transition: background .2s; }
.pay-table tbody tr:hover { background: rgba(255,255,255,.015); }
.pay-status { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.pay-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pay-status.paid { color: var(--gold-3); }
.pay-status.pending { color: var(--muted); }
.pay-status.failed { color: var(--err); }
.pay-status.refunded { color: var(--dim); }

/* ============================================================
   ПОКУПКА И ПРОДЛЕНИЕ БЕЗ РЕГИСТРАЦИИ
   ============================================================ */
.guest-page { position: relative; z-index: 1; padding: 120px 0 var(--section); min-height: 72vh; }
.guest-page [hidden] { display: none !important; }

.guest-steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.guest-steps li {
  background: var(--bg-2); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.guest-steps b { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--gold-2); }

.guest-hint, .pricing-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.pricing-note { text-align: center; }
.guest-hint a, .pricing-note a, .guest-notice a, .auth-sub a, .guest-alert a { color: var(--gold-2); font-weight: 600; text-decoration: none; }
.guest-hint a:hover, .pricing-note a:hover, .guest-notice a:hover, .auth-sub a:hover, .guest-alert a:hover { text-decoration: underline; }

.guest-notice {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px;
  padding: 14px 16px; border: 1px solid var(--border-gold); border-radius: var(--radius-s);
  background: var(--gold-glow); font-size: 14px; color: var(--text);
}
.guest-notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--gold-2); }

.guest-lookup { max-width: 760px; }
.guest-lookup .field { margin-bottom: 0; }
.guest-lookup .sub-link-row .input { flex: 1; min-width: 0; }
.guest-lookup .sub-link-row .btn-primary { flex-shrink: 0; padding: 0 26px; min-height: 48px; }
.guest-lookup .guest-hint { margin-top: 16px; font-size: 13px; }
.guest-other { font-size: 14px; }

.guest-grid { margin-top: 0; }
.guest-meta-gap { margin-top: 4px; }
.guest-save {
  border-color: var(--border-gold);
  background: radial-gradient(120% 90% at 0% 0%, rgba(214,163,58,.1), transparent 55%), linear-gradient(170deg, var(--g-1), var(--bg-2));
}
.guest-save .card-title { color: var(--gold-3); }
.guest-save-text { font-size: 14px; color: var(--muted); margin: -8px 0 16px; max-width: 640px; }
.guest-sub-row { margin-top: 18px; }
.guest-alert { margin: 16px 0 0; }
.guest-renew-head { margin-top: clamp(40px, 5vw, 64px); }

.guest-apps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.guest-apps-label { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

.guest-state {
  max-width: 560px; margin: 0 auto; padding: 48px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.guest-spinner { width: 30px; height: 30px; margin-bottom: 10px; border-color: rgba(214,163,58,.2); border-top-color: var(--gold-2); }
.guest-state-icon {
  width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--border-gold); color: var(--gold-3);
}
.guest-state-icon svg { width: 24px; height: 24px; }
.guest-state-icon.is-error { border-color: rgba(224,98,90,.4); color: var(--err); }
.guest-state-title { font-family: var(--display); font-size: clamp(20px, 2.4vw, 24px); font-weight: 600; letter-spacing: -.02em; color: #fff; line-height: 1.25; }
.guest-state-text { max-width: 420px; font-size: 14px; color: var(--muted); }
.guest-state .actions-row { justify-content: center; margin-top: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav-links { gap: 22px; }
  .nav-actions { gap: 16px; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .no-signup-grid { grid-template-columns: 1fr; }
  .no-signup-trail { width: 100%; height: 56px; }
  .no-signup-trail svg { width: 40px; height: 100%; transform: rotate(90deg); }
  .dash-grid { grid-template-columns: 1fr; }
  .plans-row { grid-template-columns: repeat(2, 1fr); }
  .antijam-features { grid-template-columns: 1fr; gap: 20px; }
  .antijam-feature { display: grid; grid-template-columns: 22px 1fr; column-gap: 16px; }
  .antijam-feature-icon { grid-row: span 2; margin: 1px 0 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step { padding: 28px 26px; }
  .how-num { margin-bottom: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; justify-self: center; margin-bottom: -12px; }
  .hero-coord { display: none; }
}
@media (max-width: 720px) {
  .guest-page { padding-top: 96px; }
  .guest-steps { grid-template-columns: 1fr; }
  .guest-steps li { padding: 13px 16px; }
  .guest-lookup .sub-link-row .btn-primary { width: 100%; padding: 14px; }
  .guest-state { padding: 36px 20px; }
  .guest-apps .btn-ghost { flex: 1 1 calc(50% - 5px); justify-content: center; }
  .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { height: 64px; }
  .nav-mobile-menu { max-height: calc(100dvh - 64px); }
  html { scroll-padding-top: 72px; }
  .hero { padding-top: 88px; }
  .hero-visual { max-width: 260px; }
  .hero-brand { margin-bottom: 22px; }
  .hero-sub { font-size: 16px; margin-bottom: 30px; }
  .hero-cta .btn-primary, .hero-cta .btn-outline { flex: 1 1 100%; }
  .hero-meta { margin-top: 30px; gap: 10px 18px; }
  .hero-meta span:not(:last-child)::after { display: none; }
  .hero-meta .hero-note { margin-left: 0; width: 100%; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 24px 12px; }
  .stat:first-child { padding-left: 0; }
  .stat-n { font-size: 24px; }
  .stat-l { font-size: 12px; line-height: 1.4; }
  .plans-row { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review { padding: 26px 22px 22px; }
  .cta-box { flex-direction: column; align-items: stretch; }
  .cta-box .btn-primary { width: 100%; white-space: normal; text-align: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 36px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  footer.foot-compact .foot-bottom { align-items: center; text-align: center; }
  .antijam-inner { grid-template-columns: 1fr; }
  .antijam-visual { width: 220px; max-width: 70%; margin: 0 auto; }
  .auth-card { padding: 30px 22px 24px; }
  .dash-body { padding-top: 92px; }
  .card { padding: 22px 18px; }
  .sub-link-row { flex-direction: column; }
  .btn-copy { padding: 12px 18px; }
  .device-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .device-card { padding: 14px 8px; gap: 8px; }
  .device-icon { width: 22px; height: 22px; }
  .device-name { font-size: 11.5px; }
  .onboard-steps { gap: 18px; margin-top: 22px; }
  .onboard-step { gap: 12px; }
  .onboard-step-num { width: 26px; height: 26px; font-size: 10.5px; }
  .onboard-step-title { font-size: 14px; }
  .onboard-step-desc { font-size: 13px; }
  .onboard-fallback { font-size: 12.5px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--border); }
  .foot-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .device-card { padding: 12px 8px; }
  .device-name { font-size: 11px; }
  .onboard-steps { gap: 16px; margin-top: 20px; }
  .onboard-step { gap: 10px; }
  .onboard-step-num { width: 24px; height: 24px; font-size: 10px; }
  .onboard-step-title { font-size: 13.5px; }
  .onboard-step-desc { font-size: 12.5px; line-height: 1.55; }
  .onboard-step-actions { gap: 8px; margin-top: 10px; }
  .onboard-step-actions .btn-ghost { padding: 10px 14px; font-size: 12.5px; }
  .onboard-fallback { font-size: 12px; }
  .actions-row .btn-primary, .actions-row .btn-ghost { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 360px) {
  .logo-text { font-size: 15px; }
  .hero-title { font-size: 34px; }
}
/* низкие экраны (ноутбуки, альбомная ориентация) — регистрация без скролла */
@media (max-height: 760px) {
  .auth-page { padding: 88px 20px 28px; }
  .auth-card { padding: 28px 30px 22px; }
  .auth-title { font-size: 21px; margin: 18px 0 6px; }
  .auth-sub { font-size: 13px; margin-bottom: 18px; }
  .auth-card form { margin-top: 18px; }
  .field { margin-bottom: 12px; }
  .field label { margin-bottom: 6px; }
  .input { padding: 11px 13px; }
  .btn-block { padding: 12px; }
  .auth-foot { margin-top: 16px; padding-top: 14px; }
  .auth-slogan { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .antijam-visual .sig { animation: none; }
  .btn-primary:hover, .plan:hover, .review:hover { transform: none; }
  .btn-primary::after { display: none; }
  .nav-burger span { transition: none; }
  .skeleton::after, body.is-loading .skel::after { animation: none; }
  .reveal { animation: none; }
  .js-scroll-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}
