/* Свой VPN — site styles. Dark only; no external fonts (CSP: self). */
:root {
  color-scheme: dark;
  --bg: #090b09;
  --bg-2: #0e110e;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .15);
  --text: #f1f5ec;
  --text-2: #b0b9aa;
  --text-3: #7d8778;
  --lime: #c8ff4d;
  --lime-2: #a8e335;
  --lime-ink: #132000;
  --lime-soft: rgba(200, 255, 77, .12);
  --sky: #6ad7ff;
  --sky-soft: rgba(106, 215, 255, .12);
  --danger: #ff8370;
  --danger-soft: rgba(255, 131, 112, .12);
  --warn: #ffc857;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
code { font-family: var(--mono); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--lime-ink); }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--lime); color: var(--lime-ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-a { width: 620px; height: 620px; left: -180px; top: -260px; background: radial-gradient(circle, rgba(200, 255, 77, .26), transparent 65%); }
.glow-b { width: 700px; height: 700px; right: -260px; top: 120px; background: radial-gradient(circle, rgba(106, 215, 255, .16), transparent 65%); }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%); }

/* ---------- Buttons ---------- */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { --h: 54px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--lime); color: var(--lime-ink); box-shadow: 0 0 0 0 rgba(200, 255, 77, 0), 0 10px 30px -10px rgba(200, 255, 77, .55); }
.btn-primary:hover:not(:disabled) { background: #d6ff73; box-shadow: 0 0 0 4px rgba(200, 255, 77, .15), 0 14px 34px -10px rgba(200, 255, 77, .6); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); border-color: rgba(255, 255, 255, .25); }
.btn-quiet { background: transparent; color: var(--text-2); }
.btn-quiet:hover:not(:disabled) { color: var(--text); background: var(--surface); }
.btn-danger { background: var(--danger-soft); border-color: rgba(255, 131, 112, .4); color: #ffb3a6; }
.btn-danger:hover { background: rgba(255, 131, 112, .2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row-sm { gap: 6px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 650; font-size: 15px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Common ---------- */
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.error { color: var(--danger); font-size: 14px; min-height: 1.4em; }
.grad { background: linear-gradient(100deg, var(--lime) 10%, #e6ffb0 50%, var(--sky) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -40px rgba(0, 0, 0, .8); }
.chip .dot-live { margin-left: 8px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; }
.flag { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px; background: linear-gradient(180deg, #fff 0 50%, #dc143c 50% 100%); color: transparent; font-size: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); flex-shrink: 0; }
.flag-lg { min-width: 38px; height: 38px; border-radius: 12px; }
.globe { display: inline-grid; place-items: center; flex-shrink: 0; background: var(--lime-soft); border: 1px solid rgba(200, 255, 77, .35); color: var(--lime); font-size: 20px; line-height: 1; }
.flag-ru { background: linear-gradient(180deg, #fff 0 33.3%, #1c57d6 33.3% 66.6%, #d52b1e 66.6%); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge-outline { background: transparent; }
.badge[data-tone="ok"] { background: var(--lime-soft); border-color: rgba(200, 255, 77, .35); color: var(--lime); }
.badge[data-tone="bad"] { background: var(--danger-soft); border-color: rgba(255, 131, 112, .35); color: var(--danger); }
.badge[data-tone="warn"] { background: rgba(255, 200, 87, .1); border-color: rgba(255, 200, 87, .35); color: var(--warn); }
.badge[data-tone="ok"]::before, .badge[data-tone="bad"]::before, .badge[data-tone="warn"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(9, 11, 9, .72); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: var(--wrap); margin: 0 auto; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -.03em; white-space: nowrap; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(200, 255, 77, .6); }
.brand-logo svg { width: 22px; height: 22px; fill: none; stroke: var(--lime-ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.live-pill[data-state="ok"] i { background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 255, 77, .6); animation: pulse 2s infinite; }
.live-pill[data-state="bad"] i { background: var(--danger); }

/* ---------- Hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin: 22px 0 22px; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 750; text-wrap: balance; }
.hero h1 .grad { display: inline; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 560px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { list-style: none; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, auto); gap: 16px 32px; justify-content: start; }
.hero-facts li { display: flex; align-items: center; gap: 12px; }
.hero-facts strong { font-size: 30px; font-weight: 700; letter-spacing: -.04em; color: var(--lime); font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 13px; line-height: 1.35; color: var(--text-3); }

.hero-visual { position: relative; }
.route-map { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 560 / 460; border-radius: var(--r-xl); border: 1px solid var(--border); background: radial-gradient(120% 80% at 70% 30%, rgba(200, 255, 77, .07), transparent 60%), radial-gradient(90% 70% at 70% 90%, rgba(106, 215, 255, .07), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); overflow: hidden; isolation: isolate; }
.route-map::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%); mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%); z-index: -1; }
.route-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route { fill: none; stroke-width: 2; stroke-linecap: round; transition: stroke .4s, opacity .4s, stroke-width .4s; }
.r-pl { stroke: rgba(200, 255, 77, .22); stroke-dasharray: 4 7; }
.r-pl.is-active { stroke: url(#g-lime); stroke-dasharray: none; stroke-width: 3; filter: drop-shadow(0 0 6px rgba(200, 255, 77, .5)); }
.r-ru { stroke: url(#g-sky); stroke-width: 2.5; filter: drop-shadow(0 0 5px rgba(106, 215, 255, .35)); }
.r-out { stroke: rgba(200, 255, 77, .5); stroke-width: 2; stroke-dasharray: 2 6; }
.packet circle { fill: var(--lime); filter: drop-shadow(0 0 6px var(--lime)); }
.p-pl { opacity: 0; transition: opacity .3s; }
.p-pl.is-active { opacity: 1; }
.p-ru circle { fill: var(--sky); filter: drop-shadow(0 0 6px var(--sky)); }
.node { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.25; white-space: nowrap; }
.node b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.node small { display: block; color: var(--text-3); font-size: 12px; }
.n-phone, .n-pl, .n-ru { padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(16, 20, 16, .88); border: 1px solid var(--border-2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.n-phone { left: 3%; top: 50%; transform: translateY(-50%); }
.node-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border-2); position: relative; flex-shrink: 0; }
.ico-phone::before { content: ""; position: absolute; left: 13px; top: 8px; width: 12px; height: 20px; border: 2px solid var(--text); border-radius: 4px; }
.ico-phone::after { content: ""; position: absolute; left: 17px; top: 24px; width: 4px; height: 2px; border-radius: 2px; background: var(--text); }
.n-entry { transform: translate(-50%, -50%); left: 50.4%; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(16, 20, 16, .9); border: 1px solid var(--border); color: var(--text-3); font-size: 12px; transition: color .3s, border-color .3s, background .3s; }
.n-entry i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); transition: background .3s, box-shadow .3s; }
.n-entry.is-active { color: var(--text); border-color: rgba(200, 255, 77, .5); background: rgba(30, 40, 16, .92); }
.n-entry.is-active i { background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 77, .18); }
.n-e1 { top: 20%; }
.n-e2 { top: 36.5%; }
.n-e3 { top: 53%; }
.n-pl { left: 73.5%; top: 32.6%; transform: translate(-30%, -50%); border-color: rgba(200, 255, 77, .45); box-shadow: 0 0 0 6px rgba(200, 255, 77, .06), 0 18px 40px -18px rgba(0, 0, 0, .9); }
.n-ru { left: 73.5%; top: 79.6%; transform: translate(-30%, -50%); border-color: rgba(106, 215, 255, .45); box-shadow: 0 0 0 6px rgba(106, 215, 255, .06), 0 18px 40px -18px rgba(0, 0, 0, .9); }
.n-world { right: 4%; top: 9%; font-size: 12px; color: var(--lime); font-weight: 600; }
.autoselect { position: absolute; left: 4%; bottom: 5%; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(16, 20, 16, .9); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.autoselect b { color: var(--text); font-weight: 650; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }

/* ---------- Ticker ---------- */
.ticker { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .015); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; gap: 48px; padding: 18px 0; animation: marquee 40s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; letter-spacing: .02em; }
.ticker-track span::after { content: "✦"; color: var(--lime); font-size: 11px; }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.eyebrow span { font-family: var(--mono); color: var(--lime); padding: 2px 8px; border-radius: 6px; background: var(--lime-soft); letter-spacing: 0; }
.section h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -.04em; font-weight: 720; text-wrap: balance; }
.section-lead { margin-top: 18px; font-size: 17px; color: var(--text-2); max-width: 640px; }

/* ---------- Routing demo ---------- */
.routing-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: stretch; }
.service-picker { display: flex; flex-direction: column; gap: 12px; }
.picker-label { font-size: 13px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.svc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); opacity: .7; }
.svc[data-kind="ru"]::before { background: var(--sky); }
.svc:hover { background: var(--surface-3); }
.svc[aria-pressed="true"] { border-color: var(--lime); background: var(--lime-soft); }
.svc[data-kind="ru"][aria-pressed="true"] { border-color: var(--sky); background: var(--sky-soft); }
.route-result { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; overflow: hidden; --accent: var(--lime); --accent-soft: var(--lime-soft); }
.route-result[data-kind="ru"] { --accent: var(--sky); --accent-soft: var(--sky-soft); }
.route-result::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; transition: background .4s; }
.rr-path { display: grid; grid-template-columns: auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto; align-items: center; gap: 8px; margin-bottom: 8px; }
.rr-node { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); font-size: 14px; font-weight: 650; text-align: center; white-space: nowrap; }
.rr-mid { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transition: color .3s, border-color .3s, background .3s; }
.rr-end { overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.rr-line { position: relative; height: 2px; background: var(--border-2); border-radius: 2px; overflow: hidden; }
.rr-line i { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: travel 1.4s linear infinite; }
.rr-verdict { font-size: clamp(26px, 3vw, 34px); font-weight: 720; letter-spacing: -.03em; color: var(--accent); transition: color .3s; }
.rr-text { font-size: 16px; color: var(--text-2); }
.rr-note { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.tile:hover { border-color: var(--border-2); transform: translateY(-2px); }
.tile h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 700; }
.tile p { color: var(--text-2); font-size: 15px; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 28px; }
.tile-copy { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime); border: 1px solid rgba(200, 255, 77, .25); margin-bottom: auto; font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.tile-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-ru .tile-ico { background: var(--sky-soft); color: var(--sky); border-color: rgba(106, 215, 255, .3); }
.tile-auto { background: radial-gradient(80% 120% at 100% 0%, rgba(200, 255, 77, .1), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
.ping-bars { flex: 0 0 44%; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.ping-bars div { display: grid; grid-template-columns: 62px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.ping-bars em { font-style: normal; font-family: var(--mono); font-size: 12px; text-align: right; color: var(--text-3); }
.ping-bars div:first-child em { color: var(--lime); }
.b { height: 8px; border-radius: 8px; background: var(--surface-3); position: relative; overflow: hidden; }
.b::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform-origin: left; }
.b1::after { background: var(--lime); transform: scaleX(.86); animation: bar1 4s var(--ease) infinite; }
.b2::after { background: rgba(200, 255, 77, .45); transform: scaleX(.58); animation: bar2 4s var(--ease) infinite; }
.b3::after { background: var(--danger); opacity: .5; transform: scaleX(.12); }
.tile-network { align-items: stretch; }
.server-list { flex: 0 0 44%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.server-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.server-row b { font-weight: 650; font-size: 15px; }
.server-row .badge { margin-left: auto; }
.server-code { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--lime); flex-shrink: 0; }

/* ---------- Cabinet ---------- */
.cabinet { scroll-margin-top: 72px; }
.notice { margin-bottom: 18px; padding: 14px 18px; border-radius: var(--r); background: var(--lime-soft); border: 1px solid rgba(200, 255, 77, .3); color: #e4ffb3; font-size: 15px; }
.notice.is-error { background: var(--danger-soft); border-color: rgba(255, 131, 112, .35); color: #ffc4b9; }
.cab-skeleton { height: 260px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.cab-skeleton i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.cab-skeleton i:nth-child(1) { width: 40%; height: 28px; }
.cab-skeleton i:nth-child(2) { width: 75%; }
.cab-skeleton i:nth-child(3) { width: 55%; }

.cab-guest { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.guest-card { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; background: radial-gradient(70% 100% at 0% 0%, rgba(200, 255, 77, .1), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
.guest-card h3 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; font-weight: 720; }
.guest-card .muted { font-size: 16px; max-width: 480px; }
.guest-card .btn-row { margin-top: 8px; }
.guest-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); }
.guest-ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.guest-steps { list-style: none; margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 4px; }
.guest-steps li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.guest-steps li:last-child { border-bottom: 0; }
.guest-steps li > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-3); font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--lime); }
.guest-steps b { font-size: 16px; }
.guest-steps p { font-size: 14px; color: var(--text-2); }

.cab-dash { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 16px; align-items: start; }
.cab-status, .cab-connect { padding: clamp(22px, 3vw, 32px); min-width: 0; }
.cab-status { display: flex; flex-direction: column; gap: 18px; }
.status-top, .connect-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cab-status h3, .cab-connect h3 { font-size: 19px; letter-spacing: -.02em; }
.ring-wrap { position: relative; width: 168px; height: 168px; margin: 4px auto; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.2s var(--ease), stroke .3s; }
.ring-fg[data-tone="warn"] { stroke: var(--warn); }
.ring-fg[data-tone="bad"] { stroke: var(--danger); }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label strong { font-size: 44px; line-height: 1; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.status-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.status-meta div { padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--border); min-width: 0; }
.status-meta dt { font-size: 12px; color: var(--text-3); }
.status-meta dd { margin: 2px 0 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
#account-message { font-size: 14px; }

.cab-connect { display: flex; flex-direction: column; gap: 16px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 650; white-space: nowrap; transition: background .2s, color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.tabs button .tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-weight: 750; }
.tabs button .tag-off { background: var(--surface-3); color: var(--text-3); }
.profile-pane { display: flex; flex-direction: column; gap: 14px; }
.profile-desc { color: var(--text-2); font-size: 15px; min-height: 3em; }
.link-box { padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px dashed var(--border-2); }
.link-box code { display: block; font-size: 13px; color: var(--text); overflow-wrap: anywhere; word-break: break-all; line-height: 1.5; user-select: all; }
.qr-panel { display: flex; gap: 20px; align-items: center; padding: 18px; border-radius: var(--r); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.qr { flex: 0 0 auto; width: 200px; height: 200px; padding: 10px; border-radius: 14px; background: #fff; }
.qr svg { width: 100%; height: 100%; }
.qr-panel .muted { font-size: 14px; }
.cab-connect.is-locked .tabs, .cab-connect.is-locked .profile-pane { opacity: .35; pointer-events: none; filter: saturate(.4); }

/* ---------- Tariffs ---------- */
.tariffs { margin-top: 40px; }
.tariffs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tariffs-head h3 { font-size: 24px; letter-spacing: -.03em; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { position: relative; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); color: var(--text); transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; }
.plan:hover:not(:disabled) { border-color: var(--border-2); transform: translateY(-2px); }
.plan[aria-pressed="true"] { border-color: var(--lime); background: radial-gradient(100% 100% at 100% 0%, rgba(200, 255, 77, .14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: 0 0 0 1px var(--lime), 0 20px 50px -30px rgba(200, 255, 77, .6); }
.plan:disabled { cursor: default; }
.plan:disabled .plan-check { display: none; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-size: 16px; font-weight: 650; color: var(--text-2); }
.plan-price { font-size: 40px; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.plan-per { font-size: 14px; color: var(--text-3); }
.plan-check { position: absolute; right: 20px; bottom: 20px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-2); display: grid; place-items: center; font-size: 14px; color: transparent; transition: background .2s, border-color .2s, color .2s; }
.plan[aria-pressed="true"] .plan-check { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
#sales-note { margin-top: 12px; }
.checkout { margin-top: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 14px; font-weight: 600; color: var(--text-2); }
input:not([type="checkbox"]):not([type="file"]) { width: 100%; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(0, 0, 0, .35); color: var(--text); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
input:not([type="checkbox"]):not([type="file"]):focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 77, .15); }
input::placeholder { color: var(--text-3); }
input[aria-invalid="true"] { border-color: var(--danger) !important; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--lime); }
.consent a { color: var(--lime); }
.pending { margin-top: 16px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pending > div { flex: 1; min-width: 200px; }
.pending strong { font-size: 17px; }
.pending-ico { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--lime); animation: spin 1s linear infinite; flex-shrink: 0; }
.pending[data-state="paid"] .pending-ico { animation: none; border-color: var(--lime); background: var(--lime); }
.pending[data-state="canceled"] .pending-ico { animation: none; border-color: var(--danger); }

/* ---------- Setup ---------- */
.tabs-platform { display: inline-flex; max-width: 100%; margin-bottom: 20px; }
.tabs-platform button { flex: 0 0 auto; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 20px; letter-spacing: -.02em; }
.step p { color: var(--text-2); font-size: 15px; }
.step .text-link { margin-top: auto; padding-top: 6px; }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--lime); }
.step-art { height: 110px; margin: 4px 0 10px; border-radius: var(--r); background: rgba(0, 0, 0, .25); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden; }
.art-download i { width: 46px; height: 74px; border-radius: 10px; border: 2px solid var(--text-3); }
.art-download b { position: absolute; font-size: 26px; color: var(--lime); animation: drop 1.8s var(--ease) infinite; }
.art-link b { width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-size: 26px; font-weight: 500; }
.art-link i { font-style: normal; font-family: var(--mono); font-size: 13px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); }
.art-power svg { width: 64px; height: 64px; fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 12px rgba(200, 255, 77, .5)); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq .section-head { margin: 0; position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 650; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--lime); font-size: 20px; font-weight: 400; transition: transform .3s var(--ease), background .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--lime-soft); }
.faq-list summary:hover::after { background: var(--surface-3); }
.faq-list details p { padding: 0 44px 22px 0; color: var(--text-2); font-size: 16px; }
.faq-list details p b { color: var(--text); }

/* ---------- Help ---------- */
.help-wrap { padding-bottom: 0; }
.help { padding: clamp(28px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; overflow: hidden; background: radial-gradient(60% 140% at 100% 50%, rgba(200, 255, 77, .14), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
.help > div:first-child { max-width: 560px; }
.help h2 { margin-bottom: 12px; }
.help-action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--border); overflow: hidden; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 0; display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-inner > p { margin-left: auto; }
.footer-word { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); font-size: clamp(110px, 26vw, 330px); line-height: .8; font-weight: 800; letter-spacing: -.07em; text-align: center; background: linear-gradient(180deg, rgba(200, 255, 77, .16), rgba(200, 255, 77, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-top: 28px; transform: translateY(12%); }

/* ---------- Dialogs & toast ---------- */
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: clamp(22px, 4vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--border-2); background: #121612; color: var(--text); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9); }
dialog[open] { animation: pop .25s var(--ease); }
dialog::backdrop { background: rgba(4, 6, 4, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h2 { font-size: 28px; letter-spacing: -.03em; font-weight: 720; margin-bottom: 10px; }
dialog .eyebrow { margin-bottom: 10px; }
dialog form, dialog { display: flex; flex-direction: column; gap: 14px; }
dialog:not([open]) { display: none; }
.key-box { padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .4); border: 1px dashed rgba(200, 255, 77, .4); }
.key-box code { display: block; font-size: 15px; color: var(--lime); word-break: break-all; user-select: all; }
.file-pick { align-self: flex-start; position: relative; display: inline-flex; font-size: 14px; color: var(--lime); font-weight: 600; cursor: pointer; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick span { text-decoration: underline; text-underline-offset: 4px; }
.file-pick:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 200; transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; background: #1b211a; border: 1px solid var(--border-2); color: var(--text); font-size: 15px; font-weight: 600; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); animation: toast .3s var(--ease); max-width: calc(100% - 32px); }
.toast.is-error { border-color: rgba(255, 131, 112, .45); color: #ffc4b9; }


/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 77, .55); } 70% { box-shadow: 0 0 0 9px rgba(200, 255, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes travel { to { left: 100%; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes drop { 0% { transform: translateY(-14px); opacity: 0; } 40% { opacity: 1; } 80%, 100% { transform: translateY(12px); opacity: 0; } }
@keyframes bar1 { 0%, 100% { transform: scaleX(.86); } 50% { transform: scaleX(.8); } }
@keyframes bar2 { 0%, 100% { transform: scaleX(.58); } 50% { transform: scaleX(.66); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; width: 100%; justify-self: center; }
  .routing-demo { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; }
  .cab-dash { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .section-head { position: static; }
}
@media (max-width: 760px) {
  .topbar-inner { height: 60px; gap: 12px; }
  .live-pill span { display: none; }
  .hero { padding-top: 32px; padding-bottom: 40px; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .ping-bars, .server-list { flex-basis: auto; }
  .tile { min-height: 0; }
  .cab-guest { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .qr-panel { flex-direction: column; text-align: center; }
  .qr { width: min(240px, 100%); height: auto; aspect-ratio: 1; }
  .btn-row > .btn { flex: 1 1 auto; }
  .footer-inner > p { margin-left: 0; width: 100%; }
  .faq-list details p { padding-right: 0; }
  .rr-path { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 6px; }
  .rr-line { width: 2px; height: 14px; margin-left: 20px; }
  .rr-line i { animation: none; left: 0; width: 100%; background: var(--accent); }
  .rr-end { max-width: none; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 17px; }
}
/* Hero route map adapts to its own width, not the viewport. */
@container (max-width: 500px) {
  .node { font-size: 11px; gap: 7px; }
  .node b { font-size: 12px; }
  .node small { display: none; }
  .n-phone, .n-pl, .n-ru { padding: 6px 10px 6px 6px; border-radius: 12px; }
  .node-ico, .flag-lg { width: 28px; min-width: 28px; height: 28px; border-radius: 9px; }
  .ico-phone::before { left: 8px; top: 4px; width: 10px; height: 16px; }
  .ico-phone::after { left: 11px; top: 16px; }
  .n-phone { left: 2%; }
  .n-entry { font-size: 10px; padding: 3px 8px 3px 6px; gap: 6px; }
  .n-entry i { width: 6px; height: 6px; }
  .n-world { font-size: 10px; right: 3%; top: 7%; }
  .n-pl, .n-ru { transform: translate(-30%, -50%); }
  .autoselect { font-size: 11px; left: 3%; bottom: 3%; padding: 5px 10px; }
}
@container (max-width: 360px) {
  .n-phone b { font-size: 0; }
  .n-phone b::after { content: "Телефон"; font-size: 11px; }
  .n-pl .flag-lg, .n-ru .flag-lg { display: none; }
  .n-pl, .n-ru { padding: 6px 10px; }
  .n-entry { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .packet { display: none; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}

/* ---------- Trial ---------- */
.trial-note { display: inline-flex; align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: var(--lime-soft); border: 1px solid rgba(200, 255, 77, .3); color: var(--lime); font-size: 14px; font-weight: 650; }
.trial-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r); background: radial-gradient(120% 160% at 0% 0%, rgba(200, 255, 77, .16), transparent 60%), rgba(0, 0, 0, .25); border: 1px solid rgba(200, 255, 77, .35); }
.trial-cta > div { min-width: 0; flex: 1 1 180px; }
.trial-cta strong { display: block; font-size: 19px; letter-spacing: -.02em; color: var(--lime); }
.trial-cta p { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.trial-cta .btn { flex: 0 0 auto; }
@media (max-width: 760px) { .trial-cta .btn { width: 100%; } }
/* ---------- Legal pages ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 0; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.04em; line-height: 1.05; margin: 12px 0 10px; }
.doc h2 { font-size: 21px; letter-spacing: -.02em; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--text-2); font-size: 16px; margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc b { color: var(--text); }
.doc a { color: var(--lime); }

/* =================================================================== */
/*  Multi-page site: shared chrome, cabinet sections, info pages        */
/* =================================================================== */
.section h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.04em; font-weight: 720; text-wrap: balance; }
.section.page-top { padding-top: clamp(40px, 6vw, 80px); }
.section.tight { padding-top: clamp(40px, 5vw, 64px); }
.section-lead a { font-size: inherit; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* Burger menu (small screens) */
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 10px var(--gutter) 16px; flex-direction: column; gap: 2px; background: #0b0e0b; border-bottom: 1px solid var(--border); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 16px; }
}

/* Footer columns */
.footer-cols { align-items: flex-start; justify-content: space-between; }
.footer-brand { max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 150px; }
.footer-col b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--text); }
.footer-copy { max-width: var(--wrap); margin: 28px auto 0; padding: 0 var(--gutter); }

/* Shared bits */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.info-card { padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.info-card h2, .info-card h3 { font-size: 20px; letter-spacing: -.02em; }
.info-card .notice { margin: 0; font-size: 14px; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.field.help-search { max-width: 520px; margin-bottom: 20px; }
.field.help-search input { width: 100%; }

/* Home: pricing teaser */
.teaser { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pack { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.pack:hover { border-color: var(--border-2); transform: translateY(-2px); }
.pack.is-best { border-color: rgba(200, 255, 77, .5); background: radial-gradient(100% 100% at 100% 0%, rgba(200, 255, 77, .12), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.pack-name { font-size: 16px; font-weight: 650; color: var(--text-2); }
.pack-price { font-size: 38px; line-height: 1.1; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pack-per { font-size: 14px; color: var(--text-3); }
.pack .badge { margin-top: auto; }
.teaser-side { padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }

/* Pricing page */
.trial-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 26px; margin-bottom: 18px; background: radial-gradient(80% 160% at 0% 0%, rgba(200, 255, 77, .16), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border-color: rgba(200, 255, 77, .35); }
.trial-banner strong { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--lime); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 14px; }
.price-card { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.price-card.is-best { border-color: rgba(200, 255, 77, .5); background: radial-gradient(100% 70% at 100% 0%, rgba(200, 255, 77, .13), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.price-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-top h3 { font-size: 18px; color: var(--text-2); font-weight: 650; }
.price-amount { font-size: clamp(44px, 6vw, 60px); line-height: 1; font-weight: 760; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.price-card .ticks { margin: 6px 0 10px; }
.price-card .btn { margin-top: auto; }
.table-card { padding: 6px clamp(12px, 2vw, 24px); overflow-x: auto; }
.compare, .orders { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td, .orders th, .orders td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td, .orders tbody tr:last-child td { border-bottom: 0; }
.compare thead th, .orders thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.compare tbody th { font-weight: 600; color: var(--text-2); }
.compare td, .orders td { font-variant-numeric: tabular-nums; }

/* Help page */
.guide-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.guide-step { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.guide-step h3 { font-size: 19px; letter-spacing: -.02em; }
.guide-step .text-link { margin-top: auto; padding-top: 6px; }
.guide-cta { margin-top: 20px; }
#help-list details[hidden] { display: none; }

/* Status page */
.status-banner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 28px; margin-bottom: 16px; }
.status-banner > div { flex: 1 1 220px; min-width: 0; }
.status-banner strong { font-size: 24px; letter-spacing: -.03em; }
.status-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--text-3); flex: 0 0 auto; }
.status-banner[data-state="ok"] .status-dot { background: var(--lime); animation: pulse 2s infinite; }
.status-banner[data-state="bad"] .status-dot { background: var(--danger); }
.status-banner[data-state="ok"] { border-color: rgba(200, 255, 77, .35); }
.status-banner[data-state="bad"] { border-color: rgba(255, 131, 112, .4); }
.status-list { list-style: none; margin: 0; padding: 6px 24px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: 0; }
.status-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-note { margin-top: 16px; max-width: 640px; }
.status-note a { color: var(--lime); }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-main { grid-column: 1 / -1; background: radial-gradient(60% 140% at 100% 50%, rgba(200, 255, 77, .13), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); }
.contact-main h2 { font-size: 28px; }

/* 404 */
.not-found { text-align: left; }
.nf-code { font-size: clamp(110px, 24vw, 260px); line-height: .85; font-weight: 800; letter-spacing: -.07em; background: linear-gradient(180deg, rgba(200, 255, 77, .5), rgba(200, 255, 77, 0) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.not-found .btn-row { margin-top: 28px; }

/* Cabinet */
.cab-wrap { display: flex; flex-direction: column; gap: 20px; }
.subnav { position: sticky; top: 68px; z-index: 20; display: flex; gap: 4px; padding: 6px; border-radius: 14px; background: rgba(9, 11, 9, .82); border: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: 0 0 auto; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 13px; color: var(--text-3); }
.stat strong { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cab-section { margin-top: clamp(20px, 3vw, 36px); scroll-margin-top: 130px; }
.cab-section > h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin-bottom: 8px; }
.cab-section > .muted { margin-bottom: 18px; }
.cab-section .tabs-platform { margin-top: 4px; }
.history-card { padding: 6px clamp(12px, 2vw, 24px); }
.history-card > p { padding: 18px 12px; }
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#tariffs.cab-section { padding-top: 0; }
body[data-page="account"] .tariffs { margin-top: clamp(20px, 3vw, 36px); }

@media (max-width: 1080px) {
  .teaser { grid-template-columns: minmax(0, 1fr); }
  .subnav { top: 60px; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .sec-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { flex-direction: column; gap: 28px; }
  .status-row { align-items: flex-start; }
  .orders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .orders, .orders tbody, .orders tr, .orders td { display: block; width: 100%; }
  .orders tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .orders tbody tr:last-child { border-bottom: 0; }
  .orders td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px; border: 0; }
  .orders td::before { content: attr(data-label); color: var(--text-3); font-size: 13px; }
  .compare { min-width: 420px; }
  .btn-row > .btn { flex: 1 1 auto; }
}