/* =====================================================================
   NO-INET — дизайн-система
   ===================================================================== */
:root {
  --bg: #05070d;
  --bg-2: #090d18;
  --surface: rgba(17, 24, 42, .62);
  --surface-solid: #0e1424;
  --surface-2: rgba(26, 36, 62, .55);
  --line: rgba(120, 160, 255, .12);
  --line-2: rgba(120, 160, 255, .22);
  --text: #eef3ff;
  --text-2: #b6c2dc;
  --muted: #7d8aa8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #7c5cff;
  --gold: #fbbf24;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);
  --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(59, 130, 246, .10) 50%, rgba(99, 102, 241, .14));
  --glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 10px 40px -10px rgba(34, 211, 238, .45);
  --r: 20px;
  --r-sm: 14px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 500 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Фон: сетка, свечения, шум */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgba(59, 130, 246, .12), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(99, 102, 241, .12), transparent 60%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
::selection { background: rgba(34, 211, 238, .3); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ico-lg { width: 26px; height: 26px; }

/* Падающие звёзды */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.stars i {
  position: absolute; width: 120px; height: 1px;
  background: linear-gradient(90deg, rgba(186, 230, 253, .9), transparent);
  transform: rotate(32deg); opacity: 0;
  animation: shoot 7s linear infinite;
}
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; }
  8% { opacity: .9; }
  50% { opacity: 0; translate: 320px 200px; }
  100% { opacity: 0; translate: 320px 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .stars { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); font: 700 18px var(--display); letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 24px rgba(34, 211, 238, .35); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav-link { color: var(--text-2); font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 10px; }
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .04); text-decoration: none; }
@media (max-width: 860px) { .nav .nav-link { display: none; } }

/* --------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; border: 0;
  font: 700 15px var(--font); color: #04121a; cursor: pointer;
  background: var(--grad); box-shadow: 0 8px 30px -10px rgba(34, 211, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s, box-shadow .2s, filter .2s, opacity .2s;
  text-decoration: none !important; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 36px -10px rgba(34, 211, 238, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45); }
.btn-tg { color: #fff; background: linear-gradient(135deg, #2aabee, #1d8bd6); box-shadow: 0 8px 30px -10px rgba(42, 171, 238, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-soft { color: #a5f3fc; background: rgba(34, 211, 238, .1); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .28); }
.btn-soft:hover { background: rgba(34, 211, 238, .16); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5); }
.btn-danger { color: #fecaca; background: rgba(248, 113, 113, .08); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .25); }
.btn-danger:hover { background: rgba(248, 113, 113, .16); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: 40px; height: 40px; border-radius: 12px; }

/* ------------------------------------------------------------------ card */
.card {
  position: relative; padding: 24px; border-radius: var(--r);
  background: var(--surface);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0, 0, 0, .8);
}
/* Градиентная рамка */
.card-glow::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 211, 238, .55), rgba(59, 130, 246, .15) 40%, rgba(99, 102, 241, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.card-title { margin-bottom: 18px; }
.card-title .ico { color: var(--cyan); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 64px 0 40px; }
@media (min-width: 900px) { .hero { padding: 96px 0 64px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(34, 211, 238, .08); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .25);
  color: #a5f3fc; font-size: 14px; font-weight: 700;
}
.pill b { background: var(--grad); color: #04121a; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 {
  font: 700 clamp(34px, 6vw, 68px)/1.04 var(--display); letter-spacing: -0.03em;
  margin: 22px 0 20px;
}
.h1-tag { display: block; margin-top: 14px; font-size: .5em; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: clamp(16px, 1.8vw, 19px); max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.hero-visual .ring {
  position: absolute; inset: -6%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(34, 211, 238, .5), transparent 30%, rgba(99, 102, 241, .4), transparent 70%);
  filter: blur(30px); opacity: .55; animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual img {
  position: relative; width: 100%; border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, .3), 0 40px 120px -30px rgba(34, 211, 238, .5);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(9, 13, 24, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px -10px rgba(0, 0, 0, .8);
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.float-chip small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.float-chip .ico { color: var(--cyan); }
.float-chip.c1 { top: 8%; left: -6%; animation: float 5s ease-in-out infinite; }
.float-chip.c2 { bottom: 12%; right: -6%; animation: float 7s ease-in-out infinite reverse; }
@media (max-width: 600px) { .float-chip.c1 { left: 0; } .float-chip.c2 { right: 0; } }

.stats-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 56px;
  border-radius: var(--r); overflow: hidden; background: var(--line);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 720px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stats-bar > div { background: rgba(9, 13, 24, .85); padding: 22px 20px; text-align: center; }
.stats-bar b { display: block; font: 700 clamp(24px, 3vw, 32px) var(--display); }
.stats-bar span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* --------------------------------------------------------------- sections */
.section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.eyebrow { display: inline-block; color: var(--cyan); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-title { font: 700 clamp(26px, 4vw, 44px)/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 14px; }
.section-sub { color: var(--text-2); margin: 0; font-size: 17px; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Бенто-сетка возможностей */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.feature { transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35), 0 24px 60px -30px rgba(34, 211, 238, .5); }
.feature .f-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); color: var(--cyan); font-size: 24px;
}
.feature .f-ico .ico { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (min-width: 1000px) {
  .feature.big { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
}
.feature.big h3 { font: 700 24px/1.2 var(--display); }
.ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ops span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 700;
  background: rgba(9, 13, 24, .7); box-shadow: inset 0 0 0 1px var(--line-2);
}
.ops span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.signal-viz { display: flex; align-items: flex-end; gap: 8px; height: 140px; justify-content: center; }
.signal-viz i { width: 26px; border-radius: 8px; background: var(--grad); box-shadow: 0 0 24px rgba(34, 211, 238, .45); animation: bars 2.4s ease-in-out infinite; }
.signal-viz i:nth-child(1) { height: 30%; }
.signal-viz i:nth-child(2) { height: 50%; animation-delay: .2s; }
.signal-viz i:nth-child(3) { height: 72%; animation-delay: .4s; }
.signal-viz i:nth-child(4) { height: 100%; animation-delay: .6s; }
@keyframes bars { 50% { opacity: .55; } }

/* Локации */
.locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.loc {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, transform .2s;
}
.loc:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.loc img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.loc b { display: block; font-weight: 700; font-size: 15px; }
.loc span { color: var(--muted); font-size: 12px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-center { justify-content: center; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.chip .ico { width: 16px; height: 16px; color: var(--cyan); }

/* Тарифы */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); justify-content: center; }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan-note { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.plan.highlight { background: linear-gradient(180deg, rgba(251, 191, 36, .07), var(--surface) 40%); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .55), 0 30px 80px -40px rgba(251, 191, 36, .5); }
.plan.highlight .plan-note {
  align-self: flex-start; color: #1a1300; background: linear-gradient(135deg, #fde68a, #fbbf24);
  padding: 4px 12px; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
}
.plan h3 { font: 700 22px var(--display); margin-bottom: 4px; }
.plan .price { font: 700 40px var(--display); letter-spacing: -0.03em; margin: 14px 0 6px; }
.plan .price small { font: 600 15px var(--font); color: var(--muted); letter-spacing: 0; }
.plan-warn { display: flex; gap: 8px; align-items: flex-start; color: #fca5a5; font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 12px; background: rgba(248, 113, 113, .07); margin: 8px 0 4px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.plan li { display: flex; gap: 10px; padding: 7px 0; color: var(--text-2); font-size: 15px; }
.plan li .ico { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }
.plan-desc { color: var(--text-2); font-size: 14px; white-space: pre-line; margin: 6px 0 0; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

/* Шаги */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.how-step { counter-increment: step; }
.how-step .num {
  font: 700 44px var(--display); line-height: 1; margin-bottom: 16px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9;
}
.how-step .num::before { content: '0' counter(step); }
.how-step h3 { font-size: 19px; margin-bottom: 8px; }
.how-step p { margin: 0; color: var(--text-2); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(34, 211, 238, .1); color: var(--cyan); font-size: 20px; font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin: 0; padding: 0 22px 20px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 64px 24px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(34, 211, 238, .25), transparent), var(--surface-solid);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3), 0 40px 120px -50px rgba(34, 211, 238, .6);
}
.cta h2 { font: 700 clamp(26px, 4vw, 42px)/1.1 var(--display); margin-bottom: 14px; }
.cta p { color: var(--text-2); margin: 0 auto 28px; max-width: 520px; }
.cta .hero-actions { justify-content: center; }

.footer { padding: 36px 0 44px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--text-2); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================= AUTH */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 32px 16px 56px; }
.auth-shell { width: 100%; max-width: 980px; display: grid; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px -50px rgba(34, 211, 238, .4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
@media (min-width: 880px) { .auth-shell { grid-template-columns: 1fr 1fr; } }
.auth-brand {
  display: none; position: relative; padding: 44px; overflow: hidden;
  background: radial-gradient(500px 300px at 30% 0%, rgba(34, 211, 238, .2), transparent), linear-gradient(160deg, #0b1630, #060a14);
  border-right: 1px solid var(--line);
}
@media (min-width: 880px) { .auth-brand { display: flex; flex-direction: column; } }
.auth-brand img { width: 100%; max-width: 340px; border-radius: 22px; margin: 8px auto 28px; box-shadow: 0 0 0 1px rgba(34, 211, 238, .3), 0 30px 80px -30px rgba(34, 211, 238, .55); }
.auth-brand h2 { font: 700 26px/1.2 var(--display); margin-bottom: 18px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: center; color: var(--text-2); font-size: 15px; }
.auth-points .ico { color: var(--cyan); }
.auth-card { padding: 36px 28px; }
@media (min-width: 560px) { .auth-card { padding: 44px; } }
.auth-card h2 { font: 700 26px var(--display); margin-bottom: 8px; }
.auth-card .sub { color: var(--text-2); margin: 0 0 26px; }
.tabs { display: flex; padding: 4px; margin-bottom: 24px; border-radius: 14px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); }
.tab { flex: 1; padding: 10px 6px; border: 0; background: transparent; color: var(--muted); font: 700 14px var(--font); border-radius: 10px; cursor: pointer; transition: color .2s, background .2s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.input {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 0;
  background: rgba(0, 0, 0, .35); color: var(--text); font: 600 15px var(--font); outline: none;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s;
}
.input::placeholder { color: #56627f; }
.input:focus { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 0 4px rgba(34, 211, 238, .12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text-2); margin: 10px 0; cursor: pointer; }
/* Галочка фиксированного размера: иначе flex сжимает её у строки, которая переносится */
.check input { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--cyan); cursor: pointer; }
.check span { flex: 1; min-width: 0; }
.link-btn { background: none; border: 0; color: var(--cyan); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.mt { margin-top: 16px; }
.hidden { display: none !important; }
.ok { color: var(--ok); }

.alert { display: flex; gap: 10px; padding: 13px 15px; border-radius: 14px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert-error { background: rgba(248, 113, 113, .08); color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .28); }
.alert-ok { background: rgba(52, 211, 153, .08); color: #86efac; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .28); }
.alert-info { background: rgba(34, 211, 238, .07); color: #a5f3fc; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .25); }
.alert > div { flex: 1; }

.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(34, 211, 238, .15); border-top-color: var(--cyan); animation: spin .8s linear infinite; display: inline-block; }
.loading-screen { min-height: 50vh; display: grid; place-items: center; }

/* ============================================================== CABINET */
.cab { display: grid; gap: 28px; padding: 28px 0 120px; }
@media (min-width: 1000px) { .cab { grid-template-columns: 250px 1fr; padding: 36px 0 64px; } }

/* Сайдбар (desktop) / нижняя панель (mobile) */
.side { display: contents; }
.side-inner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; padding: 6px; border-radius: 20px;
  background: rgba(9, 13, 24, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -10px rgba(0, 0, 0, .9);
}
.side-user, .side-extra { display: none; }
.side-nav { display: flex; flex: 1; gap: 4px; }
.side-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px;
  color: var(--muted); font-size: 11px; font-weight: 700; transition: color .2s, background .2s;
}
.side-nav a:hover { color: var(--text); text-decoration: none; }
.side-nav a.active { color: var(--text); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); }
.side-nav a.active .ico { color: var(--cyan); }
@media (min-width: 1000px) {
  .side { display: block; }
  .side-inner {
    position: sticky; top: 92px; left: auto; right: auto; bottom: auto;
    /* Под шапкой (у неё z-index 50) и не выше экрана: внизу страницы меню уходит под шапку, а не поверх неё */
    z-index: 1; max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    flex-direction: column; gap: 6px; padding: 14px; border-radius: 22px;
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  }
  .side-user { display: flex; align-items: center; gap: 12px; padding: 8px 8px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .avatar {
    width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center;
    background: var(--grad); color: #04121a; font: 700 17px var(--display);
  }
  .side-user b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-user span { color: var(--muted); font-size: 12px; font-weight: 600; }
  .side-nav { flex-direction: column; }
  .side-nav a { flex-direction: row; gap: 12px; padding: 12px 14px; font-size: 15px; }
  .side-extra { display: grid; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
}
.cab-main { min-width: 0; display: grid; gap: 20px; align-content: start; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font: 700 clamp(24px, 3.4vw, 34px) var(--display); letter-spacing: -0.02em; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 700; font-size: 14px; }
.back:hover { color: var(--text); text-decoration: none; }

.dash-grid { display: grid; gap: 20px; }
@media (min-width: 1180px) { .dash-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.stack > *, .dash-grid > * { min-width: 0; }

/* Приветственная карточка с балансом */
.welcome {
  overflow: hidden; display: grid; gap: 20px; padding: 28px;
  background: radial-gradient(500px 240px at 100% 0%, rgba(34, 211, 238, .22), transparent 70%), radial-gradient(400px 200px at 0% 100%, rgba(99, 102, 241, .18), transparent 70%), var(--surface);
}
@media (min-width: 640px) { .welcome { grid-template-columns: 1fr auto; align-items: end; } }
.welcome .stat-label { margin-bottom: 4px; }
.welcome .stat-value { font: 700 clamp(34px, 5vw, 46px) var(--display); letter-spacing: -0.03em; }
.welcome .actions { margin: 0; flex-wrap: nowrap; }
@media (max-width: 639px) { .welcome .actions > * { flex: 1; } }

.stat-label { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font: 700 30px var(--display); letter-spacing: -0.02em; }

.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status-ok { background: rgba(52, 211, 153, .1); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .25); }
.status-warn { background: rgba(251, 191, 36, .1); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .25); }
.status-bad { background: rgba(248, 113, 113, .1); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .25); }

/* Карточка подписки в списке */
.sub-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; color: var(--text); transition: transform .2s, box-shadow .2s; }
.sub-row:hover { text-decoration: none; transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .4), 0 24px 60px -30px rgba(34, 211, 238, .45); }
.sub-row-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-row-head h3 { font-size: 18px; }
.sub-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.sub-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sub-meta .ico { width: 16px; height: 16px; color: var(--muted); }
.sub-meta .ok .ico { color: var(--ok); }
.chev { color: var(--muted); }
@media (max-width: 520px) { .sub-row { grid-template-columns: auto 1fr; } .chev { display: none; } }

/* Кольцо оставшихся дней */
.ring { position: relative; width: 74px; height: 74px; flex: none; }
.ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .track { stroke: rgba(120, 160, 255, .12); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring .ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring .ring-txt b { font: 700 18px var(--display); }
.ring .ring-txt span { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.ring-expired .track { stroke: rgba(248, 113, 113, .22); }
.ring-expired .bar { display: none; }
.ring-expired .ring-txt { color: var(--danger); justify-items: center; gap: 2px; }
.ring-expired .ring-txt span { color: var(--danger); }
.ring-lg { width: 120px; height: 120px; }
.ring-lg .ring-txt b { font-size: 28px; }
.ring-lg .ring-txt span { font-size: 11px; }

.buy-more {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border-radius: var(--r);
  color: #a5f3fc; font-weight: 800; background: rgba(34, 211, 238, .05);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .2); border: 1px dashed rgba(34, 211, 238, .35);
  transition: background .2s;
}
.buy-more:hover { background: rgba(34, 211, 238, .1); text-decoration: none; }

/* Детали подписки */
.sub-hero { display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) { .sub-hero { grid-template-columns: auto 1fr; } }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 860px) { .kv-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kv > div { padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.kv .k { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kv .v { font-weight: 800; font-size: 17px; margin-top: 4px; overflow-wrap: anywhere; }
.progress { height: 8px; border-radius: 999px; background: rgba(120, 160, 255, .1); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 12px rgba(34, 211, 238, .6); }

.copy-row { display: flex; gap: 8px; }
.copy-row .input { font: 500 13px var(--mono); min-width: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Варианты выбора (сроки, оплата) */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 14px 16px; border-radius: 14px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text); font: inherit; transition: box-shadow .2s, background .2s, transform .15s;
}
.choice:hover { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45); }
.choice.active { background: var(--grad-soft); box-shadow: inset 0 0 0 2px var(--cyan), 0 10px 30px -12px rgba(34, 211, 238, .6); }
.choice.choice-hl:not(.active) { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .5); }
.choice b { font-size: 15px; font-weight: 800; }
.choice span { color: #a5f3fc; font-weight: 800; font-size: 15px; }
.choice s { color: var(--muted); font-size: 12px; font-weight: 600; }
.choice em { font-style: normal; font-size: 11px; font-weight: 800; color: #04121a; background: var(--ok); padding: 1px 7px; border-radius: 6px; margin-top: 4px; }

/* Устройства */
.devices { display: grid; gap: 8px; }
.device { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); }
.device-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .25); }
.device b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device span { color: var(--muted); font-size: 13px; font-weight: 600; }
.slots { display: flex; gap: 5px; margin: 4px 0 16px; }
.slots i { flex: 1; height: 6px; border-radius: 4px; background: rgba(120, 160, 255, .12); }
.slots i.on { background: var(--grad); box-shadow: 0 0 8px rgba(34, 211, 238, .5); }

.addon { margin-top: 20px; padding: 18px; border-radius: 16px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line-2); }
.qty-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--text);
  transition: background .15s;
}
.qty-btn:hover:not(:disabled) { background: rgba(34, 211, 238, .12); color: var(--cyan); }
.qty-btn:disabled { opacity: .3; cursor: not-allowed; }
.qty-btn .ico { width: 18px; height: 18px; }
.qty b { min-width: 30px; text-align: center; font: 700 18px var(--display); }

/* Переключатель */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch { position: relative; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { display: block; width: 50px; height: 28px; border-radius: 999px; background: rgba(120, 160, 255, .18); transition: background .2s; position: relative; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.4, 1.4, .6, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.switch input:checked + i { background: var(--grad); box-shadow: 0 0 16px rgba(34, 211, 238, .5); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 3px; }

.chip-btn { cursor: pointer; font: 700 14px var(--font); border: 0; color: var(--text); }
.chip-btn:hover { box-shadow: inset 0 0 0 1px var(--cyan); color: #a5f3fc; }

/* История */
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tx:last-child { border-bottom: 0; }
.tx-ico { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; background: rgba(120, 160, 255, .08); color: var(--muted); }
.tx-ico.in { background: rgba(52, 211, 153, .1); color: var(--ok); }
.tx b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx span { color: var(--muted); font-size: 12px; font-weight: 600; }
.tx .amt { margin-left: auto; white-space: nowrap; font-weight: 800; }
.tx .amt.ok { color: var(--ok); }

/* Меню: на телефоне часть разделов уходит в «Ещё» */
.side-nav .m-only { display: none; }
@media (max-width: 999px) {
  .side-nav .m-hide { display: none; }
  .side-nav .m-only { display: flex; }
}
.avatar {
  width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--grad); color: #04121a; font: 700 17px var(--display);
}
.avatar-sm { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
.avatar-photo { overflow: hidden; background: var(--surface-2, #111a2c); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mono { font-family: var(--mono); }
.label-up { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.empty { display: grid; justify-items: center; gap: 6px; padding: 26px 10px; text-align: center; color: var(--muted); }
.empty .ico { color: var(--cyan); opacity: .8; }
.empty p { margin: 0 0 6px; font-weight: 700; }

/* Сегментные вкладки */
.seg { display: flex; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); }
.seg a, .seg button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 12px; border: 0;
  background: transparent; color: var(--text-2); font: 700 14px var(--font); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.seg a:hover, .seg button:hover { color: var(--text); text-decoration: none; }
.seg .active { background: var(--grad); color: #04121a; box-shadow: 0 8px 24px -10px rgba(34, 211, 238, .8); }
.seg .ico { width: 18px; height: 18px; }
.seg-sm a, .seg-sm button { padding: 9px 10px; font-size: 13px; }
.seg-scroll { overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll a { flex: none; }
@media (max-width: 520px) { .seg:not(.seg-scroll) .ico { display: none; } .seg a, .seg button { padding: 10px 6px; font-size: 13px; } }

/* Способы оплаты */
.choices-wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.choice-media { flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
.choice-media b { white-space: nowrap; }
.choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice-text span { color: var(--muted); font-size: 12px; font-weight: 600; }
.pay-tile {
  position: relative; width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  color: #fff; font: 800 15px var(--display); letter-spacing: -.02em; object-fit: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px -6px rgba(0, 0, 0, .6);
}
.pay-tile .ico { width: 20px; height: 20px; }
.pay-sbp {
  position: absolute; right: -6px; bottom: -6px; padding: 1px 4px; border-radius: 6px; font: 800 8px var(--font); font-style: normal; letter-spacing: .02em;
  color: #fff; background: linear-gradient(90deg, #5b57a2, #d90751, #fab91f, #0fa8d6); box-shadow: 0 0 0 2px var(--surface-solid);
}
.tx-chip .pay-tile { width: 18px; height: 18px; border-radius: 5px; font-size: 8px; box-shadow: none; }
.tx-chip .pay-sbp { display: none; }

/* История операций */
.tx-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.tx-totals > div { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); }
.tx-totals span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.tx-totals b { font: 700 18px var(--display); }
.tx-day { margin: 16px 0 2px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tx-main { flex: 1; min-width: 0; }
.tx-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.tx-sub .status { padding: 1px 8px; font-size: 11px; }
.tx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 3px; border-radius: 8px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.tx-ico.t-in { background: rgba(52, 211, 153, .12); color: var(--ok); }
.tx-ico.t-sub { background: rgba(34, 211, 238, .1); color: var(--cyan); }
.tx-ico.t-gift { background: rgba(251, 191, 36, .1); color: var(--gold); }
.tx-ico.t-out { background: rgba(120, 160, 255, .08); color: var(--text-2); }
.tx .amt { font: 700 15px var(--display); }

/* Рефералы */
.copy-block + .copy-block { margin-top: 16px; }
.copy-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.copy-label b { font-size: 14px; }
.copy-label span { color: var(--muted); font-size: 12px; font-weight: 600; }
.ref-pct { text-align: right; }
.ref-pct b { display: block; font: 700 clamp(34px, 5vw, 48px) var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.ref-pct span { color: var(--muted); font-size: 13px; font-weight: 700; }
@media (max-width: 639px) { .ref-pct { text-align: left; } }
.steps-list { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps-list li { counter-increment: s; display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.steps-list li::before {
  content: counter(s); width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); color: var(--cyan); font: 700 13px var(--display);
}
.terms { display: grid; gap: 1px; border-radius: 14px; overflow: hidden; background: var(--line); }
.terms > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: rgba(9, 13, 24, .9); font-size: 14px; }
.terms span { color: var(--text-2); }

/* Подарки */
.gift-tariffs { display: grid; gap: 10px; }
.gift-tariff {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; border: 0; cursor: pointer; text-align: left;
  background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font: inherit; transition: box-shadow .2s, background .2s;
}
.gift-tariff:hover { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45); }
.gift-tariff.hl { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .45); }
.gift-tariff.active { background: var(--grad-soft); box-shadow: inset 0 0 0 2px var(--cyan); }
.gift-tariff.hl.active { box-shadow: inset 0 0 0 2px var(--gold), 0 10px 30px -14px rgba(251, 191, 36, .6); }
.gift-ico { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(34, 211, 238, .1); color: var(--cyan); }
.gift-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gift-t em { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 800; color: var(--gold); background: rgba(251, 191, 36, .12); padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.gift-t b { font-size: 16px; }
.gift-t small { color: #93c5fd; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.radio { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--line-2); position: relative; }
.active > .radio { background: var(--cyan); box-shadow: none; }
.active > .radio::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #04121a; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.gift-desc { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .2); color: var(--text-2); font-size: 14px; white-space: pre-line; }
textarea.input { resize: vertical; min-height: 60px; line-height: 1.5; }
.gift-card { display: grid; gap: 12px; }
.gift-card.fresh { margin-top: 16px; padding: 20px; border-radius: 18px; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.gift-hello { display: flex; align-items: center; justify-content: center; gap: 10px; font: 700 18px var(--display); color: var(--cyan); }
.gift-code {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px; border-radius: 14px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line-2); color: #93c5fd; font: 700 17px var(--mono); letter-spacing: .04em;
}
.gift-code:hover { box-shadow: inset 0 0 0 1px var(--cyan); }
.gift-code .ico { width: 16px; height: 16px; opacity: .6; }
.gift-activate { max-width: 520px; width: 100%; margin: 0 auto; display: grid; gap: 14px; justify-items: center; padding: 36px 24px; }
.gift-activate h2 { font: 700 22px var(--display); }
.gift-activate p { margin: 0; }
.gift-activate .btn, .gift-activate > div { width: 100%; }
.gift-input { text-align: center; font: 700 18px var(--mono); letter-spacing: .06em; padding: 16px; }
.big-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3), 0 0 40px rgba(34, 211, 238, .25); color: var(--cyan); }
.gift-item h3 { font-size: 17px; }

/* Поддержка */
.ticket-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { text-decoration: none; }
.ticket-row:hover b { color: var(--cyan); }
.ticket-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.ticket-row .status { flex: none; }
.ticket-row .tx-sub { display: block; }
.ticket-last { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.chat-card { display: flex; flex-direction: column; }
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; min-height: 220px; overflow-y: auto; padding: 16px; margin: 0 -8px; border-radius: 16px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line); }
.chat-day { align-self: center; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: 12px; font-weight: 700; }
.msg { max-width: min(80%, 560px); padding: 11px 14px 8px; border-radius: 18px; font-size: 15px; }
.msg-me { align-self: flex-end; background: linear-gradient(135deg, rgba(34, 211, 238, .22), rgba(59, 130, 246, .22)); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); border-bottom-right-radius: 6px; }
.msg-admin { align-self: flex-start; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); border-bottom-left-radius: 6px; }
.msg-from { display: flex; align-items: center; gap: 6px; color: var(--cyan); font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.msg-from .ico { width: 14px; height: 14px; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-time { text-align: right; color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 4px; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; margin-top: 16px; }
.chat-input .input { flex: 1; }

/* Информация */
.rich { color: var(--text-2); font-size: 15px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.rich b, .rich strong { color: var(--text); }
.rich a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.rich ol, .rich ul { margin: 6px 0; padding-left: 22px; white-space: normal; }
.rich li { margin: 4px 0; }
.rich li::marker { color: var(--cyan); font-weight: 700; }
.rich code { font-family: var(--mono); font-size: .9em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.rich blockquote { margin: 8px 0; padding: 8px 14px; border-left: 3px solid var(--cyan); background: rgba(34, 211, 238, .05); border-radius: 0 10px 10px 0; }
.doc { padding: 28px; }
@media (min-width: 720px) { .doc { padding: 36px 40px; } }
.doc-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.faq-body { padding: 0 22px 20px; }
.tier { padding: 20px; }
.tier-head { display: flex; align-items: center; gap: 14px; }
.tier-head h3 { font-size: 17px; }
.tier-ico { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font: 700 16px var(--display); }
.tier-done .tier-ico, .tier-current .tier-ico { background: var(--grad); color: #04121a; box-shadow: 0 0 20px rgba(34, 211, 238, .4); }
.tier-current { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5), 0 20px 50px -30px rgba(34, 211, 238, .6); }
.tier-body { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .2); }
.more-row { display: flex; align-items: center; gap: 14px; color: var(--text); }
.more-row:hover { text-decoration: none; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .4); }
.more-row .f-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); }

/* Профиль и обязательная почта */
.alert-warn { background: rgba(251, 191, 36, .08); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .35); align-items: center; }
.alert-warn .ico { color: var(--gold); }
.alert-warn b { color: #fef3c7; }
.alert-warn .small { color: #fcd34d; opacity: .85; font-weight: 600; }
.sticky-warn { margin: 0; flex-wrap: wrap; }
.sticky-warn > div:not(.banner-actions) { flex: 1 1 260px; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gate { max-width: 480px; width: 100%; display: grid; justify-items: center; text-align: center; gap: 12px; padding: 36px 28px; }
.gate h2 { font: 700 24px var(--display); }
.gate p { margin: 0; }
.gate .email-flow { width: 100%; text-align: left; margin-top: 8px; }
.side-user { color: var(--text); border-radius: 14px; transition: background .2s; }
.side-user:hover { text-decoration: none; background: rgba(255, 255, 255, .03); }
/* Подпись не шире 42%: длинная («Двухэтапная аутентификация») переносится, а не сжимает значение в столбик */
.info-row { display: grid; grid-template-columns: fit-content(42%) 1fr 34px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row > span.muted { min-width: 0; overflow-wrap: break-word; }
.info-row:last-child { border-bottom: 0; }
.info-row > b { text-align: right; overflow-wrap: anywhere; font-weight: 700; }
.card > .info-row:last-of-type { border-bottom: 0; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255, 255, 255, .04); color: var(--muted); transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--cyan); background: rgba(34, 211, 238, .1); }
.icon-btn .ico { width: 16px; height: 16px; }
.info-row .status { justify-self: end; grid-column: 3; white-space: nowrap; }
.info-row:has(.status) { grid-template-columns: auto 1fr auto; }
.notif { padding: 16px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; padding-bottom: 0; }
.notif:first-child { padding-top: 0; }
.notif b { display: block; margin-bottom: 2px; }
.notif-extra { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.select { width: auto; padding: 8px 12px; font-size: 14px; cursor: pointer; }
select.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px; background-repeat: no-repeat; }
select.select option { background: var(--surface-solid); }
.acc-row { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.acc-row b { display: block; }
.acc-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Пароль, данные для входа, подтверждение почты */
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.input-btn:hover, .input-btn.on { color: var(--cyan); background: rgba(34, 211, 238, .08); }
.input-btn .ico { width: 18px; height: 18px; }
.link-btn .ico { width: 15px; height: 15px; margin-right: 4px; vertical-align: -2px; }
.creds { padding: 4px 16px; border-radius: 14px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); }
.creds .info-row b { font-family: var(--mono); font-size: 15px; }
.verify-mail { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; overflow-wrap: anywhere; }
.verify-mail .ico { color: var(--cyan); }
.big-ico.pulse { animation: glow-pulse 2.4s ease-in-out infinite; color: var(--gold); }
@keyframes glow-pulse { 50% { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .5), 0 0 50px rgba(251, 191, 36, .35); } }

/* Главная = подписка: переключатель, плитки, быстрые действия */
.sub-switch { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; }
.sub-switch::-webkit-scrollbar { display: none; }
.sub-switch a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; border-radius: 12px; color: var(--text-2); font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .2s, color .2s; }
.sub-switch a:hover { color: var(--text); text-decoration: none; }
.sub-switch a.active { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.dot-ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot-bad { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.dot-warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { position: relative; padding: 18px; border-radius: var(--r); background: var(--surface); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0, 0, 0, .8); min-width: 0; }
.tile-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tile-label .ico { width: 16px; height: 16px; color: var(--cyan); }
.tile-value { margin-top: 10px; font: 700 clamp(20px, 3.2vw, 28px)/1.1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.tile-sub { margin-top: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tile .progress { margin-top: 12px; }
.tile-bad .tile-value { color: var(--danger); }
/* Пометка у способа оплаты: «Работает при белых списках» */
.choice-note {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: #6ee7b7; background: rgba(52, 211, 153, .1); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .3);
  width: fit-content; line-height: 1.3;
}
.choice-note .ico { width: 12px; height: 12px; }
/* «Истекла» словом, а не числом — не рвём на «Истек / ла», а чуть уменьшаем */
.tile-bad .tile-value { overflow-wrap: normal; word-break: keep-all; font-size: clamp(17px, 2.2vw, 24px); }
.tile-warn .tile-value { color: var(--warn); }

.quick { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qa { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-align: left; cursor: pointer; font: inherit; min-width: 0; transition: transform .2s, box-shadow .2s; }
.qa:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .4), 0 16px 40px -24px rgba(34, 211, 238, .6); text-decoration: none; }
.qa-ico { width: 42px; height: 42px; border-radius: 13px; flex: none; display: grid; place-items: center; }
.qa-ico .ico { width: 21px; height: 21px; }
.qa > div { min-width: 0; }
.qa b { display: block; font-size: 15px; font-weight: 800; }
.qa > div > span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tone-blue { background: rgba(59, 130, 246, .14); color: #93c5fd; box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .3); }
.tone-green { background: rgba(52, 211, 153, .12); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .28); }
.tone-amber { background: rgba(251, 191, 36, .12); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .28); }
.tone-violet { background: rgba(124, 92, 255, .14); color: #c4b5fd; box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .3); }

.sub-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-head h2 { font: 700 clamp(19px, 2.6vw, 24px) var(--display); }
.ring .ring-txt { justify-items: center; }
.ring .ring-txt .ico { width: 16px; height: 16px; }
.ring-lg .ring-txt .ico { width: 24px; height: 24px; }
/* Истёкшая: значок крупно по центру, подпись мелко под ним — как число и «дней» у активной */
.ring-expired .ring-txt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding-top: 2px; }
.ring-expired .ring-txt .ico { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(248, 113, 113, .55)); }
.ring-expired.ring-lg .ring-txt .ico { width: 30px; height: 30px; }
.ring-expired .ring-txt span { font-size: 9px; letter-spacing: .08em; padding-left: .08em; line-height: 1; }
.ring-expired.ring-lg .ring-txt span { font-size: 10px; }
.ring-expired .track { stroke: rgba(248, 113, 113, .32); }

/* Устройства: переименование */
.device .icon-btn { flex: none; }
.device-name-edit { display: flex; gap: 6px; align-items: center; }
.device-name-edit .input { padding: 9px 12px; font-size: 15px; }

/* Мобильная доводка */
@media (max-width: 639px) {
  .card { padding: 18px; }
  .tile { padding: 14px; }
  .tile-label { font-size: 10.5px; letter-spacing: .08em; }
  .sub-hero { grid-template-columns: auto 1fr; gap: 14px; }
  .sub-hero .ring-lg { width: 84px; height: 84px; }
  .sub-hero .ring-lg .ring-txt b { font-size: 21px; }
  .qa > div > span { white-space: normal; }
  .copy-row { flex-wrap: wrap; }
  .copy-row .input { flex: 1 1 100%; }
  .copy-row .btn { flex: 1; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices-wide { grid-template-columns: 1fr; }
  .input { font-size: 16px; } /* iOS не приближает поле при вводе */
}

/* Итог покупки тарифа */
.buy-summary { display: grid; gap: 6px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.buy-summary > div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.buy-summary .buy-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--text); font-size: 16px; }
.buy-summary .buy-total b { font: 700 18px var(--display); color: #a5f3fc; }

/* Плавная смена разделов */
[data-view] { transition: opacity .2s ease; }
[data-view].is-loading { opacity: .55; pointer-events: none; }
[data-view].view-in { animation: view-in .28s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.top-bar { position: fixed; top: 0; left: 0; z-index: 200; height: 2px; width: 0; opacity: 0; background: var(--grad); box-shadow: 0 0 10px var(--cyan); transition: width .3s ease, opacity .3s ease; pointer-events: none; }
.top-bar.on { opacity: 1; width: 70%; transition: width 4s cubic-bezier(.1, .7, .3, 1), opacity .2s; }
.top-bar.done { opacity: 0; width: 100%; }
/* Скроллбар всегда занимает место — контент не сдвигается вбок при смене высоты */
html { scrollbar-gutter: stable; }

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px;
  background: rgba(14, 20, 36, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35), 0 20px 50px -10px rgba(0, 0, 0, .8);
  font-size: 14px; font-weight: 700; animation: toast-in .25s ease;
}
@media (min-width: 1000px) { .toast { bottom: 28px; } }
/* Вход: «или войти через» Telegram / Яндекс / VK */
.social .divider { margin: 22px 0 14px; }
.social-btns { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.social-btns.social-n1 { grid-template-columns: 1fr; }
.social-btns.social-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; padding: 12px 10px; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 15px var(--font); color: var(--text); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .15s, background .2s, box-shadow .2s;
}
.social-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .07); }
.social-btn:active { transform: scale(.97); }
.social-btn:disabled { opacity: .6; cursor: default; transform: none; }
.social-ico { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font: 800 13px var(--font); color: #fff; }
.social-ico .ico { width: 15px; height: 15px; }
.social-tg .social-ico { background: linear-gradient(135deg, #2aabee, #1d8bd6); }
.social-yandex .social-ico { background: #fc3f1d; font-size: 15px; }
.social-vk .social-ico { background: #0077ff; font-size: 11px; letter-spacing: -.02em; }
.social-google .social-ico { background: linear-gradient(135deg, #4285f4, #34a853); }
.social-yandex:hover { box-shadow: inset 0 0 0 1px rgba(252, 63, 29, .55), 0 10px 26px -14px rgba(252, 63, 29, .8); }
.social-vk:hover { box-shadow: inset 0 0 0 1px rgba(0, 119, 255, .6), 0 10px 26px -14px rgba(0, 119, 255, .9); }
.social-tg:hover { box-shadow: inset 0 0 0 1px rgba(42, 171, 238, .6), 0 10px 26px -14px rgba(42, 171, 238, .9); }
@media (max-width: 480px) {
  .social-btns.social-n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-btns.social-n3 > :first-child { grid-column: 1 / -1; }
}

/* Новости */
.news-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--text); transition: transform .25s, box-shadow .25s; }
.news-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35), 0 24px 60px -30px rgba(34, 211, 238, .55); }
.news-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c) 45%, transparent), transparent 60%), linear-gradient(135deg, #0e1730, #120f2a); }
.news-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-cover img { transform: scale(1.05); }
.news-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 13, .55)); pointer-events: none; }
/* Обложка без картинки: сетка, свечение цветом рубрики, логотип в стеклянной плашке */
.news-art { display: none; }
.news-cover-empty .news-art { position: absolute; inset: 0; display: block; }
.news-cover-empty { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, #0a1124), #0c0f24 55%, #140c2c); }
.news-art-grid {
  position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(rgba(148, 197, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 197, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.news-art-glow {
  position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 50%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 62%); filter: blur(28px); opacity: .7;
  transition: opacity .4s, transform .6s ease;
}
.news-art-glow::after {
  content: ''; position: absolute; width: 60%; aspect-ratio: 1; right: -30%; top: -10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, .55), transparent 65%);
}
.news-art-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px;
  display: grid; place-items: center; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1);
}
.news-art-mark::before {
  content: ''; position: absolute; inset: -14px; border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
}
.news-art-mark img { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--c) 75%, transparent)); }
.news-card:hover .news-art-mark { transform: translate(-50%, -50%) scale(1.08) rotate(-4deg); }
.news-card:hover .news-art-glow { opacity: 1; transform: translateY(-50%) scale(1.1); }
/* Маленькие карточки без картинки — обложка пониже, чтобы не было пустого «окна» */
.news-grid .news-cover-empty { aspect-ratio: 16 / 7; }
.news-big .news-art-mark { width: 92px; height: 92px; }
.news-big .news-art-mark::before { inset: -20px; border-radius: 34px; }
/* Низ карточки: дата и просмотры слева, «Читать →» справа */
.news-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.news-foot-row .news-meta { margin-top: 0; }
.news-read { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 800; color: var(--c, var(--cyan)); }
.news-read .ico { width: 15px; height: 15px; transition: transform .25s; }
.news-card:hover .news-read .ico { transform: translateX(4px); }
.news-card { box-shadow: inset 0 0 0 1px var(--line); }
.news-card:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 24px 60px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.news-body { display: grid; gap: 10px; padding: 18px 20px 20px; align-content: start; flex: 1; }
.news-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.news-cat {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}
.news-cat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.news-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-2); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.news-tag .ico { width: 13px; height: 13px; }
.news-hot { color: var(--gold); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.news-title { font: 700 17px/1.3 var(--display); letter-spacing: -0.01em; margin: 0; }
.news-excerpt { margin: 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; font-weight: 700; margin-top: auto; }
.news-meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-meta .ico { width: 14px; height: 14px; }
@media (min-width: 760px) {
  .news-big { display: grid; grid-template-columns: 1.15fr 1fr; }
  .news-big .news-cover { aspect-ratio: auto; min-height: 280px; }
  .news-big .news-body { padding: 28px; align-content: center; }
}
.news-big .news-title { font-size: clamp(20px, 2.6vw, 28px); }
.news-big .news-excerpt { font-size: 15px; -webkit-line-clamp: 4; }
.news-article { padding: 0; overflow: hidden; }
.news-cover-wide { aspect-ratio: 21 / 9; }
.news-cover-wide.news-cover-empty { aspect-ratio: auto; height: 120px; }
.news-article-body { display: grid; gap: 14px; padding: 24px clamp(18px, 4vw, 44px) 32px; max-width: 820px; }
.news-article-title { font: 700 clamp(24px, 3.6vw, 36px)/1.15 var(--display); letter-spacing: -0.02em; margin: 0; }
.news-article-meta { flex-wrap: wrap; }
.news-lead { margin: 0; font-size: 17px; color: var(--text); font-weight: 600; padding-left: 14px; border-left: 3px solid var(--cyan); }
.news-content { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.news-content h1, .news-content h2, .news-content h3 { color: var(--text); font-family: var(--display); margin: 1.4em 0 .5em; line-height: 1.25; }
.news-content h2 { font-size: 22px; } .news-content h3 { font-size: 18px; }
.news-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 14px 0; box-shadow: 0 0 0 1px var(--line); }
.news-content figure { margin: 18px 0; }
.news-content figcaption { color: var(--muted); font-size: 13px; text-align: center; }
.news-content blockquote { margin: 16px 0; padding: 12px 16px; border-radius: 12px; background: rgba(34, 211, 238, .06); border-left: 3px solid var(--cyan); color: var(--text); }
.news-content hr { border: 0; height: 1px; background: var(--line); margin: 24px 0; }
.news-content mark { background: rgba(251, 191, 36, .25); color: var(--text); padding: 0 3px; border-radius: 4px; }
.rich-table { overflow-x: auto; margin: 14px 0; }
.rich-table table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.rich-table th, .rich-table td { padding: 8px 12px; border: 1px solid var(--line-2); text-align: left; }
.news-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--line); }

/* Главная: колонки ближе по ширине, чтобы карточке устройств не было тесно */
@media (min-width: 1180px) { .dash-grid.dash-even { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

/* «Скопировать всё» в профиле: на телефоне — одна иконка, заголовок не мнётся */
.copy-all { flex: none; }
@media (max-width: 480px) {
  .copy-all { width: 40px; height: 40px; padding: 0; gap: 0; }
  .copy-all span { display: none; }
}

/* Ключ на экране активации подарка: круглый значок со свечением, а не растянутый овал */
.gift-activate > .big-ico {
  width: 84px; height: 84px; border-radius: 26px; justify-self: center;
  background: linear-gradient(145deg, rgba(34, 211, 238, .22), rgba(124, 92, 255, .22));
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .4), 0 0 0 8px rgba(34, 211, 238, .05), 0 18px 50px -12px rgba(34, 211, 238, .6);
  transform: rotate(-8deg); animation: key-float 4s ease-in-out infinite;
}
.gift-activate > .big-ico .ico { width: 38px; height: 38px; transform: rotate(8deg); filter: drop-shadow(0 0 8px rgba(34, 211, 238, .8)); }
@keyframes key-float { 50% { transform: rotate(-8deg) translateY(-5px); } }

/* «Обычный VPN»: предупреждение про белые списки заметнее */
.plan-warn {
  align-items: center; gap: 10px; padding: 12px 14px; margin: 10px 0 6px;
  font-size: 13.5px; font-weight: 700; line-height: 1.45; color: #fecaca;
  background: linear-gradient(135deg, rgba(248, 113, 113, .16), rgba(248, 113, 113, .06));
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .45), 0 10px 30px -14px rgba(248, 113, 113, .6);
}
.plan-warn .ico { width: 22px; height: 22px; color: #f87171; flex: none; }

/* Логотип: значок + «NO-» белым и «INET» с переливом */
.logo-mark { border-radius: 12px; background: transparent; }
.logo-accent {
  font-weight: inherit;
  background: linear-gradient(90deg, #22d3ee, #60a5fa 50%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* «На главную» в шапке кабинета: кнопка с домиком, на телефоне — только домик */
.nav-home .ico { color: var(--cyan); }
@media (max-width: 560px) {
  /* На телефоне на главную ведёт логотип — отдельная кнопка только теснит шапку */
  .nav-home { display: none; }
}
.header .logo { flex: none; min-width: 0; }

/* Узкие экраны: быстрые действия — иконка сверху, текст снизу; кольцо поменьше */
@media (max-width: 420px) {
  .qa { flex-direction: column; align-items: flex-start; gap: 10px; }
  .qa > div { width: 100%; }
  .sub-hero .ring-lg { width: 72px; height: 72px; }
  .sub-hero .ring-lg .ring-txt b { font-size: 19px; }
  .sub-hero .ring-lg .ring-txt span { font-size: 9px; }
  .sub-head h2 { font-size: 18px; }
  .sub-meta { gap: 4px 12px; font-size: 13px; }
}

/* Узкие телефоны: логотип в одну строку, у кнопок в шапке только иконки,
   плашки с кнопкой — кнопка уходит вниз на всю ширину */
.logo span { white-space: nowrap; }
@media (max-width: 400px) {
  .header .container { gap: 10px; }
  .logo { gap: 10px; font-size: 16px; }
  .logo-mark { width: 36px; height: 36px; }
  body[data-base="../"] .header .nav .btn-sm:not(.btn-icon) { width: 40px; height: 40px; padding: 0; font-size: 0; gap: 0; }
}
@media (max-width: 479px) {
  .alert:has(> .btn), .alert:has(> .banner-actions) { flex-wrap: wrap; }
  .alert > .btn { flex: 1 1 100%; }
  .alert > .banner-actions { flex: 1 1 100%; }
  .alert > .banner-actions > * { flex: 1; }
}

/* Длинный текст переносится, а не уезжает за край телефона */
.toast { width: max-content; max-width: calc(100vw - 32px); line-height: 1.4; }
.toast .ico { flex: none; }
.toast-error { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .45), 0 20px 50px -10px rgba(0, 0, 0, .8); }
/* iPhone с «чёлкой» и полоской жестов: нижнее меню не залезает под полоску */
@media (max-width: 999px) {
  .side-inner { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cab { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* =====================================================================
   Полировка: живой фон, светящиеся рамки, глубина и микро-анимации
   ===================================================================== */

/* Северное сияние: свечения медленно плывут */
body::before {
  inset: -25%;
  background:
    radial-gradient(38% 34% at 78% 18%, rgba(34, 211, 238, .17), transparent 70%),
    radial-gradient(34% 30% at 18% 32%, rgba(59, 130, 246, .15), transparent 70%),
    radial-gradient(36% 32% at 55% 85%, rgba(124, 92, 255, .14), transparent 70%),
    radial-gradient(22% 20% at 30% 75%, rgba(34, 211, 238, .07), transparent 70%);
  animation: aurora 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) rotate(6deg) scale(1.06); }
  100% { transform: translate3d(-3%, 2%, 0) rotate(-4deg) scale(1.02); }
}

/* Шапка: светящаяся нижняя линия */
.header { border-bottom-color: transparent; }
.header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .45) 30%, rgba(99, 102, 241, .45) 70%, transparent);
}
.logo-mark { transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), box-shadow .3s; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); box-shadow: 0 0 34px rgba(34, 211, 238, .6); }

/* Карточки: блик сверху + рамка, которая светится там, где курсор */
.card, .tile, .qa, .loc, .choice, .device, .kv > div, .addon { --mx: 50%; --my: -40%; }
.card, .tile, .qa {
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 60px -34px rgba(0, 0, 0, .9);
}
.qa, .loc { position: relative; }
.card::after, .tile::after, .qa::after, .loc::after, .choice::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(34, 211, 238, .75), transparent 60%),
    linear-gradient(180deg, rgba(160, 200, 255, .16), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; transition: opacity .35s;
}
.card:hover::after, .tile:hover::after, .qa:hover::after, .loc:hover::after, .choice:hover::after { opacity: 1; }
/* Мягкий свет внутри под курсором */
.card:not(.card-glow)::before, .tile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(34, 211, 238, .06), transparent 55%);
}
.card:not(.card-glow):hover::before, .tile:hover::before { opacity: 1; }

/* Кнопки: пробегающий блик и пружинка */
.btn { overflow: hidden; isolation: isolate; }
.btn:not(.btn-ghost):not(.btn-soft):not(.btn-danger)::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .7s ease;
}
.btn:not(.btn-ghost):not(.btn-soft):not(.btn-danger):hover::after { left: 120%; }
.btn:active { transform: scale(.97); }

/* Заголовки страниц кабинета — с мягким переливом */
.section-title {
  background: linear-gradient(180deg, #fff 30%, #b9cdf5); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .grad-text, .auth-brand .grad-text {
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6, #22d3ee); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }

/* Плашка статуса «Активна» дышит */
.status-ok::before { animation: dot-pulse 2.2s ease-in-out infinite; }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 12px currentColor; } }

/* Кольцо: рисуется при появлении и светится */
.ring .bar { filter: drop-shadow(0 0 5px rgba(34, 211, 238, .65)); animation: ring-draw 1.1s cubic-bezier(.3, .8, .3, 1) both; }
@keyframes ring-draw { from { stroke-dashoffset: 263.9; } }
.ring-lg::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 70%); filter: blur(10px);
}
.ring-expired.ring-lg::before { background: radial-gradient(circle, rgba(248, 113, 113, .2), transparent 70%); }
.ring-lg .ring-txt b { background: linear-gradient(180deg, #fff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Плитки: иконка в светящемся кружке, цифры с переливом */
.tile-label .ico {
  width: 28px; height: 28px; padding: 6px; border-radius: 9px;
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .28);
}
.tile-value { background: linear-gradient(180deg, #fff 35%, #b3c8f0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tile-bad .tile-value { background: linear-gradient(180deg, #fecaca, var(--danger)); -webkit-background-clip: text; background-clip: text; }
.tile-warn .tile-value { background: linear-gradient(180deg, #fef3c7, var(--warn)); -webkit-background-clip: text; background-clip: text; }
.tile { transition: transform .25s; }
.tile:hover { transform: translateY(-2px); }
.progress > span { position: relative; overflow: hidden; }
.progress > span::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-100%); animation: bar-sheen 2.8s ease-in-out infinite;
}
@keyframes bar-sheen { 60%, 100% { transform: translateX(100%); } }

/* Быстрые действия: иконка подпрыгивает и светится */
.qa-ico { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .3s; }
.qa:hover .qa-ico { transform: translateY(-2px) scale(1.08) rotate(-4deg); }
.qa:hover .tone-blue { box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .5), 0 0 22px rgba(59, 130, 246, .45); }
.qa:hover .tone-green { box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .5), 0 0 22px rgba(52, 211, 153, .4); }
.qa:hover .tone-amber { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .5), 0 0 22px rgba(251, 191, 36, .4); }
.qa:hover .tone-violet { box-shadow: inset 0 0 0 1px rgba(124, 92, 255, .55), 0 0 22px rgba(124, 92, 255, .45); }

/* Устройства и строки */
.device { transition: box-shadow .25s, background .25s; }
.device:hover { background: rgba(34, 211, 238, .035); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .25); }
.device-ico, .feature .f-ico { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3), 0 0 20px -6px rgba(34, 211, 238, .55); }
.tx { transition: background .2s; border-radius: 12px; }
.tx:hover { background: rgba(255, 255, 255, .02); }

/* Карточка с градиентной рамкой — рамка медленно вращается */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.card-glow::before, .plan.highlight::before {
  background: conic-gradient(from var(--a), rgba(34, 211, 238, .7), rgba(59, 130, 246, .12) 25%, rgba(124, 92, 255, .6) 50%, rgba(59, 130, 246, .12) 75%, rgba(34, 211, 238, .7));
  animation: border-spin 9s linear infinite;
}
.plan.highlight::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a), rgba(251, 191, 36, .9), rgba(251, 191, 36, .1) 30%, rgba(34, 211, 238, .6) 55%, rgba(251, 191, 36, .1) 80%, rgba(251, 191, 36, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes border-spin { to { --a: 360deg; } }

/* Меню: на ПК активный пункт с подсвеченной полоской, на телефоне — капсула со свечением */
.side-nav a { position: relative; }
.side-nav a .ico { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.side-nav a:hover .ico { transform: scale(1.12); }
.side-nav a.active .ico { filter: drop-shadow(0 0 6px rgba(34, 211, 238, .8)); }
@media (min-width: 1000px) {
  .side-inner { box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 70px -40px rgba(0, 0, 0, .9); }
  .side-nav a.active::before {
    content: ''; position: absolute; left: -14px; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0;
    background: var(--grad); box-shadow: 0 0 12px var(--cyan);
  }
  .avatar { box-shadow: 0 0 0 3px rgba(34, 211, 238, .14), 0 0 24px -4px rgba(34, 211, 238, .7); }
}
@media (max-width: 999px) {
  .side-inner { background: rgba(9, 13, 24, .78); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); }
  .side-inner::before {
    content: ''; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .7), transparent);
  }
  .side-nav a.active { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35), 0 6px 20px -8px rgba(34, 211, 238, .7); }
}

/* Переключатель подписок и вкладки — светящийся активный пункт */
.sub-switch a.active, .tab.active { box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .4), 0 8px 24px -12px rgba(34, 211, 238, .8); }
.choice { transition: transform .2s, box-shadow .2s, background .2s; position: relative; }
.choice:hover { transform: translateY(-1px); }

/* Появление раздела: блоки выезжают по очереди */
[data-view].view-in { animation: none; }
[data-view].view-in > *,
[data-view].view-in > .dash-grid > .stack > *,
[data-view].view-in > .tiles > *,
[data-view].view-in > .quick > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
[data-view].view-in > *:nth-child(2), [data-view].view-in .tiles > *:nth-child(2), [data-view].view-in .quick > *:nth-child(2), [data-view].view-in .stack > *:nth-child(2) { animation-delay: .04s; }
[data-view].view-in > *:nth-child(3), [data-view].view-in .tiles > *:nth-child(3), [data-view].view-in .quick > *:nth-child(3), [data-view].view-in .stack > *:nth-child(3) { animation-delay: .08s; }
[data-view].view-in > *:nth-child(4), [data-view].view-in .tiles > *:nth-child(4), [data-view].view-in .quick > *:nth-child(4), [data-view].view-in .stack > *:nth-child(4) { animation-delay: .12s; }
[data-view].view-in > *:nth-child(n+5), [data-view].view-in .stack > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Лендинг */
.feature:hover .f-ico { transform: rotate(-6deg) scale(1.06); }
.feature .f-ico { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.loc:hover img { transform: scale(1.1); }
.loc img { transition: transform .3s; }
.stats-bar b { background: linear-gradient(180deg, #fff, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-visual img { box-shadow: 0 0 0 1px rgba(34, 211, 238, .35), 0 40px 120px -30px rgba(34, 211, 238, .55), 0 0 80px -20px rgba(124, 92, 255, .45); }

/* Установка приложений в карточке «Подключение» */
.apps { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.apps-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.app-platforms button { flex: 1 0 auto; }
.app-list { display: flex; gap: 8px; flex-wrap: wrap; }
.app-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 7px; border: 0; border-radius: 12px; cursor: pointer;
  background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font: 700 14px var(--font);
  transition: box-shadow .2s, background .2s, color .2s;
}
.app-chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .4); }
.app-chip.active { color: var(--text); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5), 0 8px 22px -12px rgba(34, 211, 238, .8); }
.app-chip em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #04121a; background: var(--ok); padding: 1px 6px; border-radius: 6px; }
.app-letter { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--grad); color: #04121a; font: 700 13px var(--display); }
.app-panel { display: grid; gap: 4px; padding: 6px 16px; border-radius: 16px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 0 0 1px var(--line); }
.app-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.app-step:last-child { border-bottom: 0; }
.app-step > b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); color: var(--cyan); background: rgba(34, 211, 238, .1); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .35); }
.app-step-title { font-weight: 800; padding-top: 3px; }
.app-step .actions { flex-wrap: wrap; }

/* Тонкий фирменный скроллбар */
html { scrollbar-color: rgba(34, 211, 238, .35) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(34, 211, 238, .28); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, .5); }

/* На телефоне — без тяжёлых эффектов, чтобы не тормозило */
@media (hover: none) {
  .card::after, .tile::after, .qa::after, .loc::after, .choice::after { opacity: .5; }
  .card:not(.card-glow)::before, .tile::before { display: none; }
}
@media (max-width: 639px) {
  body::before { animation-duration: 48s; }
}

/* ============================================================ лендинг v2 */
.section-sub, .section-title, .lead { text-wrap: balance; }

/* Козырь — обход белых списков: на всю ширину, яркая рамка, сравнение */
@media (min-width: 720px) { .feature.big.ace { grid-column: 1 / -1; } }
@media (min-width: 860px) {
  .feature.big.ace { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
}
.ace {
  padding: 32px; overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(34, 211, 238, .14), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(124, 92, 255, .14), transparent 70%),
    var(--surface);
  box-shadow: 0 30px 90px -40px rgba(34, 211, 238, .55), 0 20px 50px -30px rgba(0, 0, 0, .8);
}
.ace.card-glow::before { padding: 1.5px; animation-duration: 5s; }
.ace:hover { transform: none; }
.ace-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.ace-top .f-ico { margin: 0; }
.ace-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(251, 191, 36, .2), rgba(251, 146, 60, .12));
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .45), 0 0 24px -6px rgba(251, 191, 36, .6);
  color: #fde68a; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.ace-badge .ico { width: 14px; height: 14px; fill: currentColor; }
.feature.big.ace h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; margin-bottom: 12px; }
.feature.big.ace p { font-size: 16px; max-width: 560px; }
.ace .ops span { font-size: 13.5px; padding: 7px 11px; }
.ace-side {
  display: grid; gap: 10px; padding: 22px; border-radius: 18px; margin-top: 22px;
  background: rgba(5, 8, 16, .55); box-shadow: inset 0 0 0 1px var(--line-2);
}
@media (min-width: 860px) { .ace-side { margin-top: 0; } }
.ace-side .signal-viz { height: 110px; margin-bottom: 8px; }
.ace-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name mark' 'state mark';
  align-items: center; column-gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14.5px;
}
.ace-row > span:first-child { grid-area: name; }
.ace-row > b { grid-area: state; font-size: 12.5px; font-weight: 700; }
.ace-mark { grid-area: mark; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.ace-mark .ico { width: 16px; height: 16px; }
.ace-row.bad { background: rgba(248, 113, 113, .07); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .22); color: var(--text-2); }
.ace-row.bad > b { color: #fca5a5; }
.ace-row.bad .ace-mark { background: rgba(248, 113, 113, .16); color: var(--danger); }
.ace-row.ok { background: rgba(52, 211, 153, .08); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .4), 0 0 30px -12px rgba(52, 211, 153, .7); }
.ace-row.ok > b { color: #6ee7b7; }
.ace-row.ok .ace-mark { background: var(--ok); color: #04121a; box-shadow: 0 0 18px rgba(52, 211, 153, .7); }
@media (max-width: 639px) { .ace { padding: 22px; } .ace-side { padding: 16px; } }

/* Карточки возможностей: свой цвет у каждой */
.feature.tone-0 { --tone: 34, 211, 238; }
.feature.tone-1 { --tone: 139, 123, 255; }
.feature.tone-2 { --tone: 52, 211, 153; }
.feature.tone-3 { --tone: 96, 165, 250; }
.feature[class*='tone-'] .f-ico {
  color: rgb(var(--tone));
  background: linear-gradient(135deg, rgba(var(--tone), .2), rgba(var(--tone), .05));
  box-shadow: inset 0 0 0 1px rgba(var(--tone), .35), 0 0 22px -6px rgba(var(--tone), .6);
}
.feature[class*='tone-'] { background: radial-gradient(260px circle at 100% 0%, rgba(var(--tone), .13), transparent 70%), var(--surface); }
.feature[class*='tone-']:hover { box-shadow: inset 0 0 0 1px rgba(var(--tone), .4), 0 24px 60px -30px rgba(var(--tone), .6); }

/* Локации — только флаг и страна */
.loc { min-height: 56px; }
.loc b { font-size: 15.5px; }

/* Hero-картинка в SVG — без лишней рамки снизу */
.hero-visual img { aspect-ratio: 3 / 2; object-fit: cover; background: #070b18; }@media (min-width: 640px) {
  .locs { display: flex; flex-wrap: wrap; justify-content: center; }
  .locs .loc { flex: 0 1 210px; }
}@media (max-width: 600px) {
  .float-chip { padding: 8px 11px; font-size: 12px; }
  .float-chip.c1 { top: -14px; left: 4px; }
  .float-chip.c2 { bottom: -14px; right: 4px; }
}@media (max-width: 639px) {
  .locs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .loc { padding: 10px; gap: 9px; min-height: 50px; }
  .loc img { width: 26px; height: 26px; }
  .loc b { font-size: 14px; overflow-wrap: anywhere; }
}@media (min-width: 720px) and (max-width: 999px) {
  .bento > .feature.big.ace ~ .feature:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (max-width: 359px) { .loc b { font-size: 13px; } }
/* ============================================================ кабинет v3 */
.copy-row .btn { flex: none; white-space: nowrap; padding-inline: 18px; }
.copy-row .btn .ico { flex: none; }
/* Иконки платформ в цветах систем */
.device-ico.plat-android { color: #3ddc84; background: linear-gradient(135deg, rgba(61, 220, 132, .2), rgba(61, 220, 132, .05)); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .38), 0 0 20px -6px rgba(61, 220, 132, .55); }
.device-ico.plat-apple { color: #f5f7ff; background: linear-gradient(135deg, rgba(226, 232, 255, .2), rgba(148, 163, 184, .06)); box-shadow: inset 0 0 0 1px rgba(226, 232, 255, .3), 0 0 20px -6px rgba(226, 232, 255, .4); }
.device-ico.plat-windows { color: #4cc2ff; background: linear-gradient(135deg, rgba(0, 120, 212, .3), rgba(0, 120, 212, .08)); box-shadow: inset 0 0 0 1px rgba(76, 194, 255, .4), 0 0 20px -6px rgba(0, 120, 212, .7); }
.device-ico.plat-laptop, .device-ico.plat-tv { color: #c4b5fd; background: linear-gradient(135deg, rgba(139, 123, 255, .22), rgba(139, 123, 255, .06)); box-shadow: inset 0 0 0 1px rgba(139, 123, 255, .38), 0 0 20px -6px rgba(139, 123, 255, .6); }
.device-ico .ico { width: 21px; height: 21px; }
.device b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }/* Звёзды живут только внутри первого экрана и не залезают на карточки */
.hero > .stars { position: absolute; inset: 0; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero-visual img, .stats-bar { position: relative; z-index: 1; }
.hero-visual .float-chip { z-index: 2; }
/* Меню в шапке — «таблетки» с иконками и подсветкой текущего раздела */
.nav { gap: 12px; }
.nav-pills {
  display: flex; gap: 2px; padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line);
}
.nav-pills .nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; font-size: 14.5px; transition: color .2s, background .2s, box-shadow .2s; }
.nav-pills .nav-link .ico { width: 16px; height: 16px; color: var(--muted); transition: color .2s; }
.nav-pills .nav-link:hover .ico { color: var(--cyan); }
.nav-pills .nav-link.active { color: var(--text); background: rgba(34, 211, 238, .1); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); }
.nav-pills .nav-link.active .ico { color: var(--cyan); }
@media (max-width: 860px) { .nav-pills { display: none; } }

/* Подвал */
.footer { padding: 56px 0 28px; margin-top: 24px; position: relative; background: linear-gradient(180deg, transparent, rgba(5, 8, 18, .7)); }
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .45), rgba(124, 92, 255, .45), transparent);
}
.footer .container { display: block; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { margin: 14px 0 18px; color: var(--muted); max-width: 340px; font-size: 14px; line-height: 1.6; }
.footer-brand .logo-mark { width: 36px; height: 36px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .2s, color .2s, box-shadow .2s;
}
.footer-social a:hover { color: var(--cyan); transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45), 0 10px 24px -12px rgba(34, 211, 238, .7); text-decoration: none; }
.footer-social .ico { width: 18px; height: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); font-weight: 800; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14.5px; width: fit-content; transition: color .2s, transform .2s; }
.footer-col a .ico { width: 15px; height: 15px; color: var(--muted); }
.footer-col a:hover { color: var(--cyan); text-decoration: none; transform: translateX(3px); }
.footer-col a:hover .ico { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }

/* Страница документов */
.docs-page { padding-top: 56px; }
.docs-page .section-head { margin-bottom: 28px; }
.docs-tabs { max-width: 760px; margin: 0 auto 16px; justify-content: center; }
.docs-tabs a { flex: 1 0 auto; justify-content: center; }
.docs-page .doc { max-width: 860px; margin: 0 auto; min-height: 240px; }
.doc-title { font: 700 clamp(20px, 3vw, 26px)/1.2 var(--display); margin-bottom: 18px; }
.rich .doc-h { display: block; color: var(--text); font-size: 1.1em; margin: 6px 0; }
.docs-page .spinner { display: block; margin: 60px auto; }
@media (max-width: 560px) { .docs-tabs { justify-content: flex-start; } }@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col a { font-size: 14px; }
}/* Логотипы платёжек */
.pay-tile.pay-logo { background: #fff; padding: 0; overflow: visible; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px -6px rgba(0, 0, 0, .6); border-radius: 50%; }
.pay-tile.pay-logo img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.tx-chip .pay-tile.pay-logo { border-radius: 50%; }/* Сроки и тарифы компактнее: больше плиток в ряд, скидка — маленький значок в углу */
.choices:not(.choices-wide) { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.choices:not(.choices-wide) .choice { padding: 11px 12px 10px; gap: 1px; border-radius: 12px; }
.choices:not(.choices-wide) .choice b { font-size: 14px; }
.choices:not(.choices-wide) .choice span { font-size: 15px; }
.choices:not(.choices-wide) .choice s { font-size: 11px; }
.choices:not(.choices-wide) .choice em {
  position: absolute; top: -7px; right: 8px; margin: 0; padding: 1px 6px; font-size: 10px; border-radius: 6px;
  box-shadow: 0 0 0 2px var(--surface-solid);
}
.plans .plan { padding: 22px; }
.plans .plan h3 { font-size: 20px; }
.plan-meta { gap: 6px; }
@media (max-width: 520px) { .choices:not(.choices-wide) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 360px) { .choices:not(.choices-wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }/* Иконки приложений и платформ в блоке «Установка» */
.app-logo { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 10px -4px rgba(0, 0, 0, .7); }
.app-platforms .ico { width: 17px; height: 17px; }
.device-ico .ico { width: 20px; height: 20px; }
/* ============================================================ статус серверов */
.status-badge {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 12px;
  font-size: 13.5px; color: var(--text-2); background: rgba(52, 211, 153, .07); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .28);
  transition: background .2s, box-shadow .2s; white-space: nowrap;
}
.status-badge:hover { text-decoration: none; background: rgba(52, 211, 153, .13); color: var(--text); }
.status-badge b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.status-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: pulse 2s infinite; }
.status-badge.st-warn { background: rgba(251, 191, 36, .08); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .32); }
.status-badge.st-warn .dot { background: var(--warn); animation: none; box-shadow: 0 0 10px var(--warn); }
.status-badge.st-bad { background: rgba(248, 113, 113, .08); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .32); }
.status-badge.st-bad .dot { background: var(--danger); animation: none; box-shadow: 0 0 10px var(--danger); }
@media (max-width: 480px) { .status-badge .sb-label { display: none; } .status-badge { padding: 0 10px; } }
@media (max-width: 380px) { .header .nav { gap: 6px; } .status-badge { padding: 0 8px; gap: 5px; } }
/* На телефонах кнопка «Кабинет» — только значок, чтобы шапка не вылезала за экран */
@media (max-width: 480px) { .nav-cab span { display: none; } .nav-cab { width: 40px; height: 40px; padding: 0; justify-content: center; flex: none; } }

.status-page { padding-top: 56px; }
.status-page .section-head { margin-bottom: 28px; }
.status-page .container > .card { max-width: 980px; margin: 0 auto 18px; }
#st-groups { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
.st-summary { min-height: 120px; }
.st-summary > .spinner { display: block; margin: 36px auto; }
.st-hero { display: flex; align-items: center; gap: 18px; }
.st-hero h2 { margin: 0 0 4px; font-family: var(--display); font-size: clamp(20px, 3vw, 26px); }
.st-hero p { margin: 0; }
.st-big-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 6px rgba(52, 211, 153, .15), 0 0 24px var(--ok); }
.st-warn .st-big-dot { background: var(--warn); box-shadow: 0 0 0 6px rgba(251, 191, 36, .15), 0 0 24px var(--warn); }
.st-bad .st-big-dot { background: var(--danger); box-shadow: 0 0 0 6px rgba(248, 113, 113, .15), 0 0 24px var(--danger); }
.st-big-dot.nd { background: var(--muted); box-shadow: 0 0 0 6px rgba(125, 138, 168, .15); }
.st-summary.st-ok { box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .25), 0 20px 60px -30px rgba(52, 211, 153, .45); }
.st-summary.st-warn { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); }
.st-summary.st-bad { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .3); }
.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.st-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.st-tile-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--cyan); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .25); }
.st-tile-ico .ico { width: 19px; height: 19px; }
.st-tile b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-tile > div > span { display: block; color: var(--muted); font-size: 12.5px; }
.st-incidents { display: grid; gap: 8px; margin-top: 16px; }
@media (max-width: 760px) { .st-tiles { grid-template-columns: 1fr 1fr; } }

.st-check-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.st-check-head .f-ico, .st-group-head .f-ico {
  flex: none; margin: 0; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  color: var(--cyan); background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3), 0 0 20px -6px rgba(34, 211, 238, .55);
}
.st-check-head .f-ico .ico, .st-group-head .f-ico .ico { width: 22px; height: 22px; }
.st-check-head h2 { margin: 2px 0 4px; font-size: 18px; }
.st-check-head p { margin: 0; }
#st-check-res:not(:empty) { margin-top: 16px; }
.st-check-wait { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; padding: 6px 0; }
.st-check-wait .spinner { width: 20px; height: 20px; border-width: 2px; }
.st-check-sum { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 8px; background: rgba(52, 211, 153, .07); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .25); }
.st-check-sum b { font-family: var(--display); font-size: 20px; white-space: nowrap; color: var(--ok); }
.st-check-sum span { color: var(--text-2); font-size: 14px; }
.st-check-sum.st-warn { background: rgba(251, 191, 36, .07); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); }
.st-check-sum.st-warn b { color: var(--warn); }
.st-check-sum.st-bad { background: rgba(248, 113, 113, .07); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .3); }
.st-check-sum.st-bad b { color: var(--danger); }
.st-note { margin: 12px 0 0; }
.st-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.st-pill .ico { width: 14px; height: 14px; }
.st-pill.ok { color: var(--ok); background: rgba(52, 211, 153, .1); }
.st-pill.bad { color: var(--danger); background: rgba(248, 113, 113, .1); }
.st-pill.nd { color: var(--muted); background: rgba(255, 255, 255, .05); }

.st-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.st-group-head h3 { margin: 0 0 2px; font-size: 17px; }
.st-group-head p { margin: 0; }
.st-group-head > div:nth-child(2) { flex: 1; min-width: 0; }
.st-count { flex: none; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13.5px; color: var(--ok); background: rgba(52, 211, 153, .1); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .25); }
.st-count.warn { color: var(--warn); background: rgba(251, 191, 36, .1); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); }
.st-bars-head { display: flex; justify-content: space-between; margin: 10px 0 2px; padding-left: calc(38% + 14px); padding-right: 118px; color: var(--muted); font-size: 11.5px; }

.st-row { display: grid; grid-template-columns: 38% 1fr 104px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.st-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.st-name > div { min-width: 0; }
.st-name b { display: flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-name span:not(.st-dot):not(.st-num) { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-num { flex: none; padding: 1px 6px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-2); background: rgba(255, 255, 255, .06); }
.st-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.st-down .st-dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.st-maint .st-dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.st-down .st-name span:not(.st-dot):not(.st-num) { color: var(--danger); }
.st-flag { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); }
.st-flag-x { display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .04); }
.st-flag-x .ico { width: 15px; height: 15px; }
.st-bars { display: flex; gap: 2px; height: 26px; min-width: 0; }
.st-bars i { flex: 1; min-width: 2px; border-radius: 3px; transition: transform .15s; }
.st-bars i:hover { transform: scaleY(1.18); }
.st-bars i.ok, .st-legend i.ok { background: #16b07a; }
.st-bars i.w1, .st-legend i.w1 { background: #f0a82a; }
.st-bars i.w2, .st-legend i.w2 { background: #e3692f; }
.st-bars i.bad, .st-legend i.bad { background: #e8504e; }
.st-bars i.nd, .st-legend i.nd { background: rgba(255, 255, 255, .1); }
.st-nums { text-align: right; }
.st-nums b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.st-ping { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-ping.good { color: var(--ok); }
.st-ping.mid { color: var(--warn); }
.st-ping.slow { color: var(--danger); }
.st-check-row { grid-template-columns: 1fr auto; }
.st-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; max-width: 980px; margin: 22px auto 0; color: var(--muted); font-size: 13px; }
.st-legend span { display: inline-flex; align-items: center; gap: 7px; }
.st-legend i { width: 12px; height: 12px; border-radius: 3px; }
.st-legend .st-src { flex-basis: 100%; justify-content: center; }
@media (max-width: 720px) {
  .st-row:not(.st-check-row) { grid-template-columns: 1fr auto; row-gap: 10px; }
  .st-row:not(.st-check-row) .st-bars { grid-column: 1 / -1; grid-row: 2; height: 20px; }
  .st-bars-head { display: none; }
}
@media (max-width: 480px) {
  .st-hero { gap: 14px; align-items: flex-start; }
  .st-big-dot { margin-top: 6px; }
  .st-tile { padding: 12px; gap: 10px; }
  .st-tile-ico { width: 32px; height: 32px; }
  .st-tile b { font-size: 16px; }
  .st-check-sum { flex-direction: column; align-items: flex-start; gap: 4px; }
  .st-check-row { grid-template-columns: 1fr; gap: 8px; }
  .st-check-row .st-pill { justify-self: start; margin-left: 39px; }
  .status-page #st-check-form { flex-wrap: wrap; }
  .status-page #st-check-form .btn { flex: 1 1 100%; }
}
/* Картинка на странице входа — с плашками, как на главной */
.auth-visual { max-width: 340px; margin: 18px auto 34px; }
.auth-brand .auth-visual img { max-width: 100%; margin: 0; }
.auth-visual .float-chip.c1 { top: -14px; left: -18px; }
.auth-visual .float-chip.c2 { bottom: -14px; right: -18px; }
/* Значок статуса: «Серверы работают» */
.status-badge .sb-label { color: var(--text); font-weight: 800; }
.status-badge .sb-label:empty { display: none; }
.status-badge b { display: inline-block; font-weight: 800; color: var(--ok); }
.status-badge.st-warn b { color: var(--warn); }
.status-badge.st-bad b { color: var(--danger); }
.status-badge .sb-label:empty + b::first-letter { text-transform: uppercase; }
@media (max-width: 480px) { .status-badge b::first-letter { text-transform: uppercase; } }
/* В шапке кабинета на телефонах от значка остаётся только цветная точка, у «Бот» — только иконка:
   так название NO-INET влезает целиком, даже с крупным шрифтом в браузере */
@media (max-width: 520px) {
  .status-badge-sm .sb-label, .status-badge-sm b { display: none; }
  .status-badge-sm { width: 40px; height: 40px; padding: 0; justify-content: center; flex: none; }
  .nav-bot span { display: none; }
  .nav-bot { width: 40px; height: 40px; padding: 0; justify-content: center; flex: none; }
  .header .logo { flex: 0 0 auto; }
  .header .logo span { overflow: visible; text-overflow: clip; }
}
/* Подсказка на странице статуса — в цветах сайта */
.st-tip {
  position: fixed; z-index: 100; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text);
  background: rgba(14, 20, 36, .96); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -10px rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.st-tip.on { opacity: 1; transform: none; }
.st-tip::after {
  content: ''; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px;
  background: inherit; transform: rotate(45deg); box-shadow: inset -1px -1px 0 var(--line-2);
}
.st-tip.below::after { bottom: auto; top: -5px; box-shadow: inset 1px 1px 0 var(--line-2); }
.st-tip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; background: var(--muted); }
.st-tip[data-tone='ok']::before { background: #16b07a; }
.st-tip[data-tone='w1']::before { background: #f0a82a; }
.st-tip[data-tone='w2']::before { background: #e3692f; }
.st-tip[data-tone='bad']::before { background: #e8504e; }
.st-tip[data-tone='']::before { display: none; }
.st-bars i, .st-dot { cursor: default; }
/* Шапка не вылезает за экран даже с крупным шрифтом в браузере телефона:
   значок статуса и название сжимаются первыми */
@media (max-width: 480px) {
  .header .container { gap: 10px; }
  .header .logo { min-width: 0; flex: 0 1 auto; }
  .header .logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header .nav { min-width: 0; flex: 0 1 auto; }
  .status-badge { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .status-badge b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
/* ============================================================ страница 404 */
.nf-page { min-height: calc(100vh - 72px); display: flex; align-items: center; padding: 48px 0 64px; }
.nf-page > .container { width: 100%; }
.nf { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.nf-code {
  display: flex; align-items: center; justify-content: center; gap: clamp(6px, 2vw, 14px);
  font: 700 clamp(96px, 24vw, 184px)/1 var(--display); letter-spacing: -.04em; margin-bottom: 22px;
}
.nf-code > span:not(.nf-zero) {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(34, 211, 238, .35));
}
.nf-zero {
  position: relative; display: grid; place-items: center;
  width: clamp(80px, 19vw, 150px); height: clamp(80px, 19vw, 150px); border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, .18), rgba(99, 102, 241, .06) 60%, transparent 70%);
  box-shadow: inset 0 0 0 2px rgba(34, 211, 238, .35), 0 0 60px -10px rgba(34, 211, 238, .5);
}
.nf-zero::before, .nf-zero::after {
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: rgba(34, 211, 238, .7); border-right-color: rgba(99, 102, 241, .5);
  animation: nf-spin 3.2s linear infinite;
}
.nf-zero::after { inset: -26px; border-top-color: rgba(124, 92, 255, .45); border-right-color: transparent; border-left-color: rgba(34, 211, 238, .25); animation-duration: 5.5s; animation-direction: reverse; }
.nf-zero img { width: 54%; height: 54%; border-radius: 22%; animation: nf-blink 2.6s ease-in-out infinite; }
@keyframes nf-spin { to { transform: rotate(360deg); } }
@keyframes nf-blink { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 55% { opacity: .9; } }
.nf .pill { margin-bottom: 18px; }
.nf-live { background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: none; }
.nf-title { font: 700 clamp(26px, 5vw, 40px)/1.15 var(--display); margin: 0 0 12px; }
.nf-text { margin: 0 auto 14px; max-width: 480px; text-wrap: balance; }
.nf-path { margin: 0 0 26px; max-width: 100%; }
.nf-path code {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
  padding: 6px 12px; border-radius: 10px; font: 500 13px var(--mono); color: var(--muted);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line);
}
.nf-path code:empty { display: none; }
.nf-actions { justify-content: center; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; }
.nf-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.nf-links a .ico { width: 16px; height: 16px; color: var(--muted); }
.nf-links a:hover { color: var(--cyan); text-decoration: none; }
.nf-links a:hover .ico { color: var(--cyan); }
@media (max-width: 480px) {
  .nf-page { padding: 32px 0 48px; min-height: auto; }
  .nf-actions { flex-direction: column; width: 100%; }
  .nf-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nf-zero::before, .nf-zero::after, .nf-zero img { animation: none; } }

/* Варианты оплаты («СБП», «Карта», «Крипта»): значок в квадрате, одна строка на вариант */
.choice .opt-emoji { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; line-height: 1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.choice .opt-emoji svg { width: 20px; height: 20px; }
.choice-media .choice-text { min-width: 0; }
.choice-media .choice-text b { white-space: normal; overflow-wrap: anywhere; }

/* Тарифы: выбран один — он подсвечен, остальные приглушены (выбор в них сброшен) */
.plans-picking .plan { transition: opacity .2s, box-shadow .2s, border-color .2s; }
.plans-picking .plan:not(.plan-picked) { opacity: .62; }
.plans-picking .plan:not(.plan-picked):hover { opacity: .9; }
.plan.plan-picked { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 0 1px rgba(34, 211, 238, .35), 0 18px 50px -20px rgba(34, 211, 238, .45); }

/* Удаление действующей подписки закрыто: кнопка неактивна, по наведению/нажатию — тёмная подсказка */
.del-locked { position: relative; display: inline-block; cursor: not-allowed; outline: none; }
.del-locked .btn[disabled] { pointer-events: none; opacity: .5; }
.del-locked::after {
  content: attr(data-hint); position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 20;
  width: max-content; max-width: min(280px, 80vw); padding: 9px 12px; border-radius: 10px;
  background: #0b1020; color: #dbe4f5; font: 600 13px/1.4 Manrope, system-ui, sans-serif;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, .22), 0 14px 34px -10px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.del-locked::before {
  content: ''; position: absolute; left: 22px; bottom: calc(100% + 4px); z-index: 21;
  border: 6px solid transparent; border-top-color: #0b1020; opacity: 0; transition: opacity .15s;
}
.del-locked:hover::after, .del-locked:focus::after, .del-locked.show::after,
.del-locked:hover::before, .del-locked:focus::before, .del-locked.show::before { opacity: 1; transform: none; }

/* Мини-админка: поле Telegram ID и кнопка в одну строку */
.admin-search { display: flex; gap: 10px; }
.admin-search .input { flex: 1; min-width: 0; }
.admin-search .btn { flex: none; }

/* Вход через бота: команда для бота и QR-код (по кнопке) */
.tg-cmd { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.tg-cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 13px 'JetBrains Mono', ui-monospace, monospace; color: var(--text); }
.tg-cmd .btn { flex: none; }
.tg-qr { margin-top: 12px; }
.tg-qr-img { width: 200px; max-width: 70vw; margin: 0 auto; padding: 10px; border-radius: 16px; background: #fff; }
.tg-qr-img svg { display: block; width: 100%; height: auto; }
.admin-results { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.admin-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; cursor: pointer;
  text-align: left; color: var(--text); font: inherit; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; }
.admin-row:hover { background: rgba(34, 211, 238, .07); }
.admin-row .avatar { flex: none; width: 36px; height: 36px; font-size: 15px; }
.admin-row b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Длинная команда /start webauth_… не должна растягивать карточку входа на телефоне */
.auth-shell > *, .auth-card { min-width: 0; }

/* ===== Плашки на главной: новости от администратора и подсказка про защиту ===== */
.plates { display: flex; flex-direction: column; gap: 10px; }
.plates:empty { display: none; }
.plate { --pc: 34, 211, 238; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 44px 14px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--pc), .13), rgba(var(--pc), .04)); box-shadow: inset 0 0 0 1px rgba(var(--pc), .32); animation: plate-in .35s ease both; }
.plate-green { --pc: 52, 211, 153; }
.plate-yellow { --pc: 251, 191, 36; }
.plate-red { --pc: 248, 113, 113; }
.plate-blue { --pc: 34, 211, 238; }
.plate-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: rgb(var(--pc)); background: rgba(var(--pc), .14); }
.plate-ico .ico { width: 18px; height: 18px; }
.plate-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.plate-body b { color: var(--text); font-size: 15px; }
.plate-text { color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.plate-btn { align-self: flex-start; margin-top: 6px; background: rgb(var(--pc)); color: #05070d; box-shadow: none; }
.plate-btn:hover { filter: brightness(1.08); color: #05070d; }
.plate-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 9px; display: grid; place-items: center;
  background: transparent; color: var(--muted); cursor: pointer; }
.plate-close:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.plate-close .ico { width: 16px; height: 16px; }
@keyframes plate-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Telegram не привязан: вкладку можно нажать, она подскажет привязать Telegram */
.tab.tab-locked { opacity: .6; }
.tab.tab-locked:hover { opacity: .85; }

/* Подсветка карточки, к которой пришли по ссылке */
.card-flash { animation: card-flash 2.2s ease; }
@keyframes card-flash { 0%, 100% { box-shadow: inset 0 0 0 1px var(--line); } 20%, 60% { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 28px rgba(34, 211, 238, .25); } }

/* Админка: плашки-новости */
.banner-color { display: flex; gap: 8px; flex-wrap: wrap; }
.banner-color button { --pc: 34, 211, 238; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
  color: rgb(var(--pc)); background: rgba(var(--pc), .1); box-shadow: inset 0 0 0 1px rgba(var(--pc), .3); }
.banner-color button.active { background: rgb(var(--pc)); color: #05070d; }
.banner-color .c-green { --pc: 52, 211, 153; }
.banner-color .c-yellow { --pc: 251, 191, 36; }
.banner-color .c-red { --pc: 248, 113, 113; }
.admin-banner-row { display: flex; gap: 10px; align-items: flex-start; }
.admin-banner-row .plate { flex: 1; padding-right: 14px; }
.admin-banner-row .plate-close { display: none; }
.admin-banner-acts { display: flex; flex-direction: column; gap: 6px; }

/* Выбор способов кода: могут быть активны обе кнопки — с зазором и без вылезания из рамки */
.tabs-multi { gap: 6px; }
.tabs-multi .tab { min-width: 0; padding: 10px 8px; overflow-wrap: anywhere; }
/* Кнопка в узкой карточке: не вылезает за край, длинный текст переносится */
.btn-wrap { max-width: 100%; white-space: normal; height: auto; min-height: 38px; text-align: left; }

/* ===== Вложения в обращениях ===== */
.attach-btn { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 12px; color: var(--text-2); font-weight: 600; }
.attach-btn .ico { width: 18px; height: 18px; }
.attach-btn:hover { color: var(--cyan); text-decoration: none; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.attach-item { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.attach-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach-video { width: 100%; height: 100%; display: grid; place-items: center; color: var(--cyan); }
.attach-video .ico { width: 24px; height: 24px; }
.attach-rm { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 7, 13, .75); color: #fff; cursor: pointer; padding: 0; }
.attach-rm .ico { width: 13px; height: 13px; }
.chat-card .attach-list { margin: 14px 0 0; }
.msg-media { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.msg-text + .msg-media { margin-top: 8px; }
.msg-photo { display: block; border-radius: 12px; overflow: hidden; line-height: 0; }
.msg-photo img { max-width: min(260px, 100%); max-height: 260px; object-fit: cover; display: block; }
.msg-video { max-width: min(320px, 100%); max-height: 320px; border-radius: 12px; background: #000; display: block; }

/* ===== Уведомление о cookie ===== */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: rgba(13, 19, 34, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px -10px rgba(0, 0, 0, .9);
  animation: cookie-in .35s ease both; transition: opacity .3s, transform .3s; }
.cookie-text { margin: 0; flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.cookie-text a { color: var(--cyan); }
.cookie .btn { flex: 0 0 auto; }
.cookie-hide { opacity: 0; transform: translateY(10px); }
/* В кабинете на телефоне — над нижним меню */
@media (max-width: 999px) { .cookie-raised { bottom: 96px; } }
@media (max-width: 480px) { .cookie { flex-direction: column; align-items: stretch; } .cookie .btn { width: 100%; } }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Экран привязки почты: «Пропустить» с предупреждением */
.skip-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); text-align: left; }
.skip-box .check { margin: 0 0 12px; }
