/* =====================================================================
   CASPER STEALTH NETWORK — общий стиль
   Тёмный obsidian + crimson/amber, Unbounded / Inter / JetBrains Mono
   ===================================================================== */

/* ---------- Токены ---------- */
:root {
  --bg: #040507;
  --bg-2: #08090e;
  --panel: #0b0c12;
  --panel-2: #101218;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.055);
  --txt: #f3f4f6;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --crimson: #ff2a3c;
  --amber: #ffb800;
  --orange: #ff6b00;
  --emerald: #34d399;
  --radius: 20px;
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* ---------- Личный кабинет ---------- */
.account-shell { padding-top: 54px; padding-bottom: 90px; max-width: 900px; }
.header-balance { display: inline-flex; align-items: center; margin-right: 10px; padding: 8px 12px; border: 1px solid rgba(255,184,0,.45); border-radius: 999px; color: var(--amber); font-size: 12px; font-family: var(--font-mono); background: rgba(255,184,0,.08); }
.account-login, .account-top, .account-block { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(16,18,24,.94), rgba(8,9,14,.94)); border-radius: var(--radius); padding: 28px; }
.account-login { max-width: 660px; margin-top: 26px; }
.account-login-copy h2, .account-top h2 { margin: 8px 0 4px; font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); }
.account-login-copy p, .account-block p, .phone-login p { color: var(--muted); }
.account-icon { color: var(--amber); font-size: 34px; line-height: 1; }
.login-methods, .account-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.login-method, .account-tab { border: 1px solid var(--line); color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.login-method.is-active, .account-tab.is-active { color: var(--txt); border-color: rgba(255,184,0,.65); background: rgba(255,184,0,.1); }
.login-note, .muted { color: var(--muted-2); font-size: 13px; }
.qr-card, .phone-login, .balance-placeholder { display: grid; gap: 10px; padding: 20px; border: 1px dashed var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.account-message { min-height: 24px; color: var(--amber); margin: 18px 0 0; }
.account-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 26px; }
.account-tabs { margin-top: 22px; }
.account-section { display: none; }
.account-section.is-active { display: block; }
.account-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.account-card { display: grid; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.account-card span, .account-card small { color: var(--muted-2); font-size: 13px; }
.account-card strong { font-family: var(--font-display); font-size: 23px; }
.account-block h3 { margin: 8px 0 12px; font-family: var(--font-display); font-size: 16px; }
.account-block h3:not(:first-child) { margin-top: 28px; }
.ref-link { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.ref-link code { flex: 1; overflow: auto; padding: 10px; color: var(--amber); background: var(--bg); border-radius: 8px; font-size: 12px; }
@media (max-width: 600px) { .account-shell { padding-top: 32px; } .account-login, .account-top, .account-block { padding: 20px; } .account-top { flex-direction: column; } .account-cards { grid-template-columns: 1fr; } .ref-link { align-items: stretch; flex-direction: column; } }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 4%, rgba(255, 42, 60, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 88% 12%, rgba(255, 184, 0, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 50% 96%, rgba(255, 42, 60, 0.08) 0%, transparent 46%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px, 28px 28px;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--crimson); color: #fff; }

/* ---------- Каркас ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.page { position: relative; z-index: 1; }

/* ---------- Типографика ---------- */
.display { font-family: var(--font-display); font-weight: 800; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px rgba(255, 42, 60, 0.14), 0 0 14px rgba(255, 42, 60, 0.8);
}
.eyebrow.amber { color: var(--amber); }
.eyebrow.amber .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.13), 0 0 14px rgba(255, 184, 0, 0.7); }

.heading-metallic {
  background: linear-gradient(180deg, #ffffff 0%, #e5e7eb 56%, #9ca3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.lede {
  margin: 14px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.section { padding: 84px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); border: 0; margin: 0; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.btn:active { transform: scale(0.976); }

.btn-primary {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(100deg, #ffb800 0%, #ff6b00 52%, #ff2a3c 100%);
  box-shadow: 0 12px 32px -8px rgba(255, 94, 0, 0.62), 0 0 22px rgba(255, 42, 60, 0.28), inset 0 1.5px 1px rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 2px rgba(80, 10, 0, 0.35);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: translateX(-140%) skewX(-24deg);
  animation: btnSweep 3.8s ease-in-out infinite;
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(255, 94, 0, 0.72), 0 0 30px rgba(255, 42, 60, 0.4); transform: translateY(-1px); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }

.btn-amber {
  color: #1a1200;
  background: linear-gradient(100deg, #ffd166, #ffb800 55%, #ff8a00);
  box-shadow: 0 10px 26px -10px rgba(255, 184, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-amber:hover { box-shadow: 0 14px 34px -10px rgba(255, 184, 0, 0.85); }

.btn-sm { height: 40px; padding: 0 16px; font-size: 10.5px; border-radius: 11px; gap: 8px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 5, 7, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.header.scrolled { background: rgba(4, 5, 7, 0.92); border-bottom-color: var(--line-soft); }
.header-inner { display: flex; align-items: center; gap: 30px; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #1c1e2b, #0b0c12);
  border: 1px solid rgba(255, 42, 60, 0.45);
  box-shadow: 0 0 20px rgba(255, 42, 60, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.brand-mark img { width: 29px; height: 29px; }
.brand-mark .live {
  position: absolute; right: -2px; bottom: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--emerald);
  border: 2px solid var(--bg-2);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
}
.brand-sub {
  margin-top: 5px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  color: var(--amber);
  text-transform: uppercase;
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1px; background: linear-gradient(90deg, var(--amber), var(--crimson));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 78px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center; }

.h1 {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.h1-accent {
  display: inline-block;
  background: linear-gradient(100deg, #ffb800 0%, #ff6b00 46%, #ff2a3c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.25));
}
.hero .lede { font-size: 16px; max-width: 520px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: #d1d5db;
}
.chip b { color: var(--amber); font-weight: 700; }
.chip .tick { width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 7px rgba(52, 211, 153, 0.9); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  overflow: hidden;
}
.stat { background: #07080d; padding: 16px 14px 15px; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.01em;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Виджет подключения ---------- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute; inset: -18% -12%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 107, 0, 0.16), transparent 62%);
  filter: blur(14px);
  pointer-events: none;
}

.connect-card {
  position: relative;
  border-radius: 22px;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle, 0deg),
    rgba(255, 184, 0, 0.9) 0deg,
    rgba(255, 42, 60, 0.9) 100deg,
    rgba(255, 255, 255, 0.09) 190deg,
    rgba(255, 184, 0, 0.8) 285deg,
    rgba(255, 184, 0, 0.9) 360deg);
  animation: spinBorder 8s linear infinite;
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.95), 0 0 46px -12px rgba(255, 107, 0, 0.32);
}
.connect-inner {
  position: relative;
  overflow: hidden;
  border-radius: 20.5px;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 88%, rgba(255, 42, 60, 0.16), transparent 55%),
    radial-gradient(circle at 10% 6%, rgba(255, 184, 0, 0.12), transparent 50%),
    linear-gradient(165deg, rgba(24, 26, 36, 0.96), rgba(10, 11, 16, 0.99));
  backdrop-filter: blur(16px);
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(-45deg,
    rgba(255, 255, 255, 0.016) 0px,
    rgba(255, 255, 255, 0.016) 1px,
    transparent 1px,
    transparent 7px);
}
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-app {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.cc-app img { width: 16px; height: 16px; }
.cc-ping {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.1);
}

.cc-status { display: flex; align-items: center; gap: 14px; margin: 18px 0 16px; }
.cc-ring {
  position: relative;
  width: 58px; height: 58px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255, 42, 60, 0.22), transparent 70%);
  border: 1px solid rgba(255, 42, 60, 0.4);
  box-shadow: 0 0 26px rgba(255, 42, 60, 0.24), inset 0 0 18px rgba(255, 42, 60, 0.15);
}
.cc-ring::after {
  content: "";
  position: absolute; inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 42, 60, 0.3);
  animation: slowSpin 16s linear infinite;
}
.cc-ring img { width: 30px; height: 30px; }
.cc-state {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}
.cc-server {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
}

.cc-bars { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-bottom: 16px; }
.cc-bars span {
  flex: 1;
  transform-origin: bottom;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #ffb800, rgba(255, 42, 60, 0.55));
  animation: barsWave 1.9s ease-in-out infinite;
  opacity: 0.9;
}

.cc-rows { border-top: 1px solid var(--line-soft); }
.cc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px;
}
.cc-row span { color: var(--muted-2); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.cc-row b { font-family: var(--font-mono); font-weight: 700; color: #e5e7eb; font-size: 11.5px; }
.cc-row b.ok { color: var(--emerald); }

.cc-foot { display: flex; align-items: center; gap: 8px; padding-top: 13px; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase; }
.cc-foot .bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.cc-foot .bar i { display: block; height: 100%; width: 86%; background: linear-gradient(90deg, #34d399, #ffb800); animation: pulseWidth 4s ease-in-out infinite; }

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -26px rgba(0, 0, 0, 0.9); }
.plan-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 20px 20px;
  border-radius: 19px;
  background: linear-gradient(170deg, #11131a 0%, #0a0b10 100%);
  position: relative;
  overflow: hidden;
}
.plan.featured {
  background: conic-gradient(from var(--border-angle, 0deg),
    rgba(255, 184, 0, 0.95) 0deg,
    rgba(255, 42, 60, 0.95) 88deg,
    rgba(255, 255, 255, 0.08) 175deg,
    rgba(255, 184, 0, 0.85) 272deg,
    rgba(255, 184, 0, 0.95) 360deg);
  animation: spinBorder 7s linear infinite;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.95), 0 0 34px -8px rgba(255, 107, 0, 0.3);
}
.plan.featured .plan-inner {
  background:
    radial-gradient(circle at 86% 88%, rgba(255, 42, 60, 0.16), transparent 55%),
    radial-gradient(circle at 10% 6%, rgba(255, 184, 0, 0.13), transparent 52%),
    linear-gradient(170deg, #14151d 0%, #0a0b10 100%);
}
.plan-tag {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 8px;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.plan-tag.hit { color: #1a0d00; background: linear-gradient(100deg, #ffd166, #ffb800 60%, #ff8a00); box-shadow: 0 0 18px rgba(255, 184, 0, 0.45); }
.plan-tag.save { color: var(--emerald); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }

.plan-term {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.plan-price {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.plan.featured .plan-price {
  background: linear-gradient(90deg, #ffb800 0%, #ffe680 45%, #ff8a00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 3.5s ease infinite;
  filter: drop-shadow(0 0 14px rgba(255, 184, 0, 0.35));
}
.plan-per { margin-top: 5px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-2); }
.plan-devices {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.07);
  font-family: var(--font-mono);
  font-size: 10px;
  color: #7dd3fc;
}
.plan-features { list-style: none; margin: 16px 0 20px; padding: 16px 0 0; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #cbd5e1; line-height: 1.4; }
.plan-features svg { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--emerald); }
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: 10px; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-2); text-align: center; letter-spacing: 0.04em; }

.plans-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted-2);
}
.plans-note span { display: inline-flex; align-items: center; gap: 7px; }
.plans-note svg { width: 13px; height: 13px; color: var(--amber); }

/* ---------- Шаги ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps::before {
  content: "";
  position: absolute; top: 21px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.4), rgba(255, 42, 60, 0.3), transparent);
}
.step { position: relative; }
.step-dot {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: #0b0c12;
  border: 1px solid rgba(255, 184, 0, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  box-shadow: 0 0 22px -6px rgba(255, 184, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.step h4 { margin: 16px 0 6px; font-family: var(--font-display); font-size: 12.5px; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase; color: #fff; }
.step p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Почему мы ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature:hover { border-color: rgba(255, 184, 0, 0.28); transform: translateY(-3px); }
.feature .num {
  position: absolute; right: 16px; top: 2px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 62px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}
.feature .ico {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 42, 60, 0.28);
  background: rgba(255, 42, 60, 0.1);
  color: var(--crimson);
  margin-bottom: 16px;
}
.feature .ico svg { width: 19px; height: 19px; }
.feature h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.01em; color: #fff; }
.feature p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Локации ---------- */
.loc-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.loc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.loc {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.loc:hover { border-color: rgba(255, 184, 0, 0.3); background: rgba(255, 184, 0, 0.05); transform: translateY(-2px); }
.loc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.loc-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid rgba(255, 184, 0, 0.28);
  background: rgba(255, 184, 0, 0.09);
}
.loc-ping { font-family: var(--font-mono); font-size: 9.5px; color: var(--emerald); }
.loc h4 { margin: 11px 0 1px; font-family: var(--font-display); font-size: 11.5px; font-weight: 700; color: #fff; letter-spacing: 0.01em; }
.loc small { display: block; font-size: 10px; color: var(--muted-2); font-family: var(--font-mono); }
.loc-load { margin-top: 11px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.loc-load i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #34d399, #ffb800); }

/* ---------- Скачать ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dl-card {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
}
.dl-icon {
  width: 54px; height: 54px; flex: none;
  border-radius: 15px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0f15;
  color: var(--amber);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.dl-icon svg { width: 26px; height: 26px; }
.dl-body { flex: 1; min-width: 0; }
.dl-body h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 14px; text-transform: uppercase; color: #fff; }
.dl-meta { margin-top: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); letter-spacing: 0.03em; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.dl-link { font-size: 11px; color: var(--muted); text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, 0.22); transition: color 0.2s ease; }
.dl-link:hover { color: var(--amber); }
.dl-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 18px; padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 184, 0, 0.2);
  background: rgba(255, 184, 0, 0.055);
  font-size: 12px;
  color: #d6d3d1;
}
.dl-note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--amber); }

/* ---------- Кабинет ---------- */
.cabinet {
  position: relative;
  border-radius: 26px;
  padding: 1px;
  background: linear-gradient(120deg, rgba(255, 184, 0, 0.55), rgba(255, 42, 60, 0.5) 45%, rgba(255, 255, 255, 0.06));
}
.cabinet-inner {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  padding: 42px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 42, 60, 0.16), transparent 52%),
    radial-gradient(circle at 6% 90%, rgba(255, 184, 0, 0.11), transparent 50%),
    linear-gradient(165deg, #10121a, #08090e);
  display: flex;
  align-items: center;
  gap: 40px;
}
.cabinet-inner .wm {
  position: absolute; right: -30px; bottom: -60px;
  width: 260px; height: 260px;
  opacity: 0.06;
  animation: watermarkFloat 6.5s ease-in-out infinite;
}
.cabinet-copy { flex: 1; position: relative; z-index: 1; }
.cabinet-copy h3 { margin: 10px 0 10px; font-family: var(--font-display); font-weight: 900; font-size: clamp(21px, 2.4vw, 29px); text-transform: uppercase; line-height: 1.12; letter-spacing: -0.01em; }
.cabinet-copy p { margin: 0; max-width: 500px; color: var(--muted); font-size: 13.5px; }
.cabinet-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cabinet-list span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #e5e7eb;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.cabinet-action { position: relative; z-index: 1; flex: none; }

/* ---------- Подвал ---------- */
.footer { position: relative; z-index: 1; margin-top: 30px; padding: 52px 0 34px; border-top: 1px solid var(--line-soft); background: rgba(4, 5, 7, 0.6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; }
.footer-brand p { margin: 16px 0 0; max-width: 330px; font-size: 12.5px; color: var(--muted-2); line-height: 1.65; }
.footer h5 { margin: 4px 0 14px; font-family: var(--font-display); font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col a, .footer-col span { font-size: 12.5px; color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--muted-2);
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--muted-2); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.age { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Анимации ---------- */
@property --border-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@keyframes spinBorder { to { --border-angle: 360deg; } }
@keyframes btnSweep {
  0% { transform: translateX(-140%) skewX(-24deg); }
  45%, 100% { transform: translateX(260%) skewX(-24deg); }
}
@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes watermarkFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
  50% { transform: translate3d(-4px, -8px, 0) rotate(-2deg); }
}
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes barsWave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}
@keyframes pulseWidth {
  0%, 100% { width: 78%; }
  50% { width: 93%; }
}
@keyframes dustDrift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.18; }
  50% { transform: translate3d(5px, -16px, 0); opacity: 0.6; }
}

.dust-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dust-layer span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px var(--amber);
  animation: dustDrift 7s ease-in-out infinite;
}
.dust-layer span.red { background: var(--crimson); box-shadow: 0 0 10px var(--crimson); }

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   СТРАНИЦА ТАРИФА / ОПЛАТЫ
   ===================================================================== */
.tariff-page { padding: 34px 0 84px; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); text-decoration: none;
  transition: color 0.2s ease;
}
.back-link:hover { color: #fff; }
.back-link .box { padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-family: var(--font-mono); font-size: 10px; color: #d1d5db; }

.step-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.step-badge .sq { width: 6px; height: 6px; border-radius: 1.5px; background: var(--amber); box-shadow: 0 0 9px rgba(255, 184, 0, 0.8); }

.tariff-title { margin: 10px 0 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase; line-height: 1.08; letter-spacing: -0.02em; }
.tariff-sub { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

.tariff-layout { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 22px; align-items: start; margin-top: 26px; }

.detail-frame {
  position: relative;
  border-radius: 24px;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle, 0deg),
    rgba(255, 184, 0, 0.85) 0deg,
    rgba(255, 42, 60, 0.85) 95deg,
    rgba(255, 255, 255, 0.08) 180deg,
    rgba(255, 184, 0, 0.75) 275deg,
    rgba(255, 184, 0, 0.85) 360deg);
  animation: spinBorder 7s linear infinite;
  box-shadow: 0 24px 56px -20px rgba(0, 0, 0, 0.95), 0 0 34px -8px rgba(255, 107, 0, 0.26);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-inner {
  position: relative;
  overflow: hidden;
  border-radius: 22.5px;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 85%, rgba(255, 42, 60, 0.14), transparent 55%),
    radial-gradient(circle at 12% 10%, rgba(255, 184, 0, 0.12), transparent 50%),
    linear-gradient(165deg, rgba(24, 26, 36, 0.95), rgba(12, 13, 19, 0.99));
  backdrop-filter: blur(16px);
}
.hud { position: absolute; width: 12px; height: 12px; pointer-events: none; }
.hud.tl { top: 10px; left: 10px; border-top: 2px solid rgba(255, 184, 0, 0.6); border-left: 2px solid rgba(255, 184, 0, 0.6); border-top-left-radius: 3px; }
.hud.tr { top: 10px; right: 10px; border-top: 2px solid rgba(255, 42, 60, 0.6); border-right: 2px solid rgba(255, 42, 60, 0.6); border-top-right-radius: 3px; }
.hud.bl { bottom: 10px; left: 10px; border-bottom: 2px solid rgba(255, 42, 60, 0.5); border-left: 2px solid rgba(255, 42, 60, 0.5); border-bottom-left-radius: 3px; }
.hud.br { bottom: 10px; right: 10px; border-bottom: 2px solid rgba(255, 184, 0, 0.5); border-right: 2px solid rgba(255, 184, 0, 0.5); border-bottom-right-radius: 3px; }

.detail-wm { position: absolute; right: -26px; bottom: -34px; width: 190px; height: 190px; opacity: 0.07; pointer-events: none; animation: watermarkFloat 5.5s ease-in-out infinite; }
.card-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; background: radial-gradient(240px circle at var(--glare-x, 50%) var(--glare-y, 30%), rgba(255, 200, 90, 0.14), transparent 70%); }

.detail-rows { position: relative; z-index: 1; }
.d-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.d-row:first-child { padding-top: 2px; }
.d-row:last-child { border-bottom: 0; padding-bottom: 0; }
.d-label { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.d-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--amber); }
.d-ico svg { width: 14px; height: 14px; }
.d-ico.red { color: var(--crimson); border-color: rgba(255, 42, 60, 0.25); background: rgba(255, 42, 60, 0.09); }
.d-ico.amber { color: var(--amber); border-color: rgba(255, 184, 0, 0.25); background: rgba(255, 184, 0, 0.08); }
.d-ico.sky { color: #38bdf8; border-color: rgba(56, 189, 248, 0.22); background: rgba(56, 189, 248, 0.08); }
.d-ico.green { color: var(--emerald); border-color: rgba(52, 211, 153, 0.22); background: rgba(52, 211, 153, 0.08); }
.d-ico.violet { color: #a78bfa; border-color: rgba(167, 139, 250, 0.22); background: rgba(167, 139, 250, 0.08); }
.d-value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.tier-badge {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 42, 60, 0.35);
  background: rgba(255, 42, 60, 0.14);
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
}
.d-tariff { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; }
.d-price-old { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); text-decoration: line-through; }
.d-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(90deg, #ffb800 0%, #ffe680 45%, #ff8a00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 3.5s ease infinite;
  filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.32));
}
.d-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: #fff; }
.d-muted { font-size: 11px; color: var(--muted-2); }
.pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}
.speed-row { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.speed-row .left { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.speed-row .left .live { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px rgba(52, 211, 153, 0.9); }
.speed-row b { color: #fff; font-family: var(--font-mono); font-size: 10.5px; }
.speed-row .proto { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: rgba(255, 184, 0, 0.9); }

.promo-zone { position: relative; z-index: 1; margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.1); }
.promo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-toggle { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; color: var(--amber); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.promo-toggle svg { width: 14px; height: 14px; }
.promo-status { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-2); text-align: right; }
.promo-status.ok { color: var(--emerald); font-weight: 700; }
.promo-status.err { color: var(--crimson); }
.promo-box { display: none; gap: 8px; margin-top: 10px; }
.promo-box.open { display: flex; }
.promo-input {
  flex: 1; min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #08090e;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s ease;
}
.promo-input:focus { border-color: var(--amber); }
.promo-apply {
  height: 38px; padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 0, 0.45);
  background: rgba(255, 184, 0, 0.18);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.promo-apply:hover { background: rgba(255, 184, 0, 0.28); }

/* Быстрый выбор тарифа */
.plan-drawer { display: none; margin-top: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(16, 18, 27, 0.96); backdrop-filter: blur(10px); }
.plan-drawer.open { display: block; }
.plan-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 10px; }
.plan-drawer-head span { font-family: var(--font-display); font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan-drawer-head button { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; }
.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-opt {
  text-align: left;
  padding: 10px 11px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.plan-opt:hover { background: rgba(255, 255, 255, 0.08); }
.plan-opt.active { border-color: rgba(255, 184, 0, 0.5); background: rgba(255, 184, 0, 0.13); }
.plan-opt .line1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-opt b { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; color: #fff; }
.plan-opt em { font-family: var(--font-mono); font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--amber); }
.plan-opt small { display: block; margin-top: 3px; font-size: 9.5px; color: var(--muted); }
.plan-opt .save { color: var(--emerald); }
.plan-opt .hit { color: var(--crimson); }

/* Правая колонка: оплата */
.pay-panel { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)); }
.pay-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.pay-panel-head h2 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 19px; text-transform: uppercase; letter-spacing: -0.01em; }
.pay-panel-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.mode-pill {
  flex: none;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #d1d5db;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mode-pill:hover { background: rgba(255, 255, 255, 0.1); }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 14px;
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(10px);
}
.pay-card:active { transform: scale(0.97); }
.pay-check {
  position: absolute; top: 9px; right: 9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #0b0c12;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pay-check svg { width: 11px; height: 11px; }
.pay-card.selected .pay-check { opacity: 1; }
.pay-icon {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  padding: 9px;
  margin-bottom: 10px;
}
.pay-icon svg { width: 100%; height: 100%; }
.pay-name { position: relative; font-family: var(--font-display); font-size: 12.5px; font-weight: 800; color: #fff; line-height: 1.2; }
.pay-desc { position: relative; margin-top: 3px; font-size: 10px; line-height: 1.35; }

.pay-card.sbp { background: radial-gradient(circle at 50% 26%, rgba(167, 139, 250, 0.25), transparent 62%), linear-gradient(160deg, rgba(58, 36, 120, 0.55), rgba(22, 15, 48, 0.94)); border: 1px solid rgba(139, 92, 246, 0.34); }
.pay-card.sbp.selected { border-color: rgba(167, 139, 250, 0.95); box-shadow: 0 8px 26px -6px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.pay-card.sbp .pay-check { background: #a78bfa; }
.pay-card.sbp .pay-icon { background: #fff; box-shadow: 0 8px 22px rgba(124, 58, 237, 0.42); }
.pay-card.sbp .pay-desc { color: rgba(221, 214, 254, 0.85); }

.pay-card.lzt { background: radial-gradient(circle at 50% 26%, rgba(52, 211, 153, 0.22), transparent 62%), linear-gradient(160deg, rgba(16, 94, 58, 0.55), rgba(11, 38, 26, 0.94)); border: 1px solid rgba(34, 197, 94, 0.34); }
.pay-card.lzt.selected { border-color: rgba(74, 222, 128, 0.95); box-shadow: 0 8px 26px -6px rgba(22, 163, 74, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.pay-card.lzt .pay-check { background: #34d399; }
.pay-card.lzt .pay-icon { background: #131815; border: 1px solid rgba(52, 211, 153, 0.4); box-shadow: 0 8px 22px rgba(16, 185, 129, 0.3); }
.pay-card.lzt .pay-desc { color: rgba(167, 243, 208, 0.85); }

.pay-card.stars { background: radial-gradient(circle at 50% 26%, rgba(251, 191, 36, 0.24), transparent 62%), linear-gradient(160deg, rgba(130, 82, 16, 0.55), rgba(44, 27, 9, 0.94)); border: 1px solid rgba(251, 191, 36, 0.34); }
.pay-card.stars.selected { border-color: rgba(252, 211, 77, 0.95); box-shadow: 0 8px 26px -6px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.pay-card.stars .pay-check { background: #fbbf24; }
.pay-card.stars .pay-icon { background: linear-gradient(180deg, #2a2012, #17120a); border: 1px solid rgba(251, 191, 36, 0.4); box-shadow: 0 8px 22px rgba(245, 158, 11, 0.32); }
.pay-card.stars .pay-desc { color: rgba(253, 230, 138, 0.85); }

.pay-card.crypto { background: radial-gradient(circle at 50% 26%, rgba(56, 189, 248, 0.22), transparent 62%), linear-gradient(160deg, rgba(14, 92, 148, 0.55), rgba(10, 35, 60, 0.94)); border: 1px solid rgba(56, 189, 248, 0.34); }
.pay-card.crypto.selected { border-color: rgba(56, 189, 248, 0.95); box-shadow: 0 8px 26px -6px rgba(2, 132, 199, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.pay-card.crypto .pay-check { background: #38bdf8; }
.pay-card.crypto .pay-icon { background: linear-gradient(180deg, #0ea5e9, #0284c7); box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45); }
.pay-card.crypto .pay-desc { color: rgba(186, 230, 253, 0.85); }

.pay-card.balance { background: radial-gradient(circle at 50% 26%, rgba(255, 42, 60, 0.24), transparent 62%), linear-gradient(160deg, rgba(118, 22, 34, 0.55), rgba(38, 11, 16, 0.94)); border: 1px solid rgba(255, 42, 60, 0.34); }
.pay-card.balance.selected { border-color: rgba(255, 77, 94, 0.95); box-shadow: 0 8px 26px -6px rgba(225, 29, 72, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.pay-card.balance .pay-check { background: #fb7185; }
.pay-card.balance .pay-icon { background: linear-gradient(180deg, #2b1218, #17090d); border: 1px solid rgba(244, 63, 94, 0.42); box-shadow: 0 8px 22px rgba(255, 42, 60, 0.32); }
.pay-card.balance .pay-desc { color: rgba(254, 205, 211, 0.85); }
.pay-card.balance.disabled { opacity: 0.5; filter: saturate(0.6); cursor: not-allowed; }
.pay-card.balance.disabled:active { transform: none; }
.balance-wrap { display: flex; justify-content: center; margin-top: 12px; }
.balance-wrap .pay-card { width: calc(50% - 6px); }

.pay-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.32);
  font-size: 11.5px;
  color: var(--muted);
}
.pay-total b { font-family: var(--font-mono); font-size: 13px; color: #fff; }
.pay-foot { margin-top: 12px; font-size: 10.5px; color: var(--muted-2); line-height: 1.5; text-align: center; }

/* Модалки */
.modal { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.84); backdrop-filter: blur(9px); }
.modal.open { display: grid; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 22px;
  border-radius: 24px;
  background: #12141d;
  border: 1px solid rgba(255, 184, 0, 0.4);
  box-shadow: 0 0 60px rgba(255, 184, 0, 0.18), 0 30px 80px -30px #000;
  animation: modalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-card.green { border-color: rgba(52, 211, 153, 0.4); box-shadow: 0 0 60px rgba(16, 185, 129, 0.22), 0 30px 80px -30px #000; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--muted); font-size: 13px; cursor: pointer; transition: background 0.2s ease; }
.modal-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.modal-eyebrow { font-family: var(--font-display); font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }
.modal h3 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 18px; text-transform: uppercase; color: #fff; }
.modal p { margin: 6px 0 16px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amount-btn { padding: 12px 6px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 13px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease; }
.amount-btn:hover { background: rgba(255, 184, 0, 0.18); border-color: rgba(255, 184, 0, 0.5); }
.amount-btn.hot { background: rgba(255, 184, 0, 0.14); border-color: rgba(255, 184, 0, 0.42); color: var(--amber); }
.ok-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; background: rgba(52, 211, 153, 0.16); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--emerald); box-shadow: 0 0 22px rgba(16, 185, 129, 0.3); }
.ok-badge svg { width: 23px; height: 23px; }
.key-box { padding: 12px; border-radius: 13px; border: 1px solid var(--line); background: #08090e; margin-bottom: 16px; }
.key-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.key-head span { font-family: var(--font-display); font-size: 8.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.copy-btn { padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255, 184, 0, 0.4); background: rgba(255, 184, 0, 0.18); color: var(--amber); font-size: 10px; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: rgba(255, 184, 0, 0.28); }
.key-text { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; color: #cbd5e1; word-break: break-all; user-select: all; }

@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Правовые страницы ---------- */
.legal-page { padding: 44px 0 90px; }
.legal-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
.legal-nav { position: sticky; top: 100px; display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.028); }
.legal-nav a { padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--muted); text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.legal-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.legal-body { max-width: 720px; }
.legal-body section { padding: 26px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.legal-body section:last-child { border-bottom: 0; }
.legal-body h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 900; font-size: 17px; text-transform: uppercase; letter-spacing: 0.01em; color: #fff; }
.legal-body h3 { margin: 18px 0 6px; font-size: 13px; font-weight: 700; color: #e5e7eb; }
.legal-body p, .legal-body li { font-size: 13px; color: var(--muted); line-height: 1.7; }
.legal-body ul { padding-left: 18px; }
.legal-body code { font-family: var(--font-mono); font-size: 12px; color: var(--amber); }
.legal-note { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 184, 0, 0.22); background: rgba(255, 184, 0, 0.06); font-size: 12px; color: #d6d3d1; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 480px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; row-gap: 30px; }
  .tariff-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, 1fr); }

  /* До 1080 шапка переходит на гамбургер */
  .header-inner { position: static; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 24px 20px;
    background: rgba(6, 7, 11, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 4px; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 22px; }
  .steps::before { display: none; }
  .loc-grid { grid-template-columns: repeat(3, 1fr); }
  .cabinet-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 30px; }
  .cabinet-copy p { max-width: none; }
}

@media (max-width: 720px) {
  .shell { padding: 0 18px; }
  .header-inner { height: 66px; gap: 16px; }
  .section { padding: 62px 0; }
  .hero { padding: 44px 0 58px; }
  .hero .lede { font-size: 14.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .h1 { font-size: clamp(29px, 8.4vw, 40px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pay-grid { gap: 10px; }
  .plan-options { grid-template-columns: 1fr; }
  .detail-inner { padding: 18px; }
  .d-label { font-size: 12px; }
  .legal-nav { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
  .hero-chips .chip:nth-child(n + 4) { display: none; }
  .cabinet-inner { padding: 24px; }
  .pay-panel { padding: 16px; }
  .pay-panel-head { flex-direction: column; gap: 10px; }
  .balance-wrap .pay-card { width: calc(50% - 5px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .plan.featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
