:root {
  --bg: #0a0d14;
  --bg-elevated: #11151f;
  --surface: #161b27;
  --surface-2: #1d2330;
  --border: rgba(255,255,255,.06);
  --border-strong: rgba(255,255,255,.12);
  --text: #f3f5fa;
  --text-muted: rgba(243,245,250,.62);
  --text-dim: rgba(243,245,250,.42);
  --brand: #6c8cff;
  --brand-2: #9d6cff;
  --brand-grad: linear-gradient(135deg,#6c8cff 0%,#9d6cff 50%,#5dd5fb 100%);
  --hero-glow: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,140,255,.35) 0%, rgba(157,108,255,.15) 30%, transparent 60%);
  --ok: #2bd47e;
  --ok-bg: rgba(43,212,126,.12);
  --warn: #ffa940;
  --warn-bg: rgba(255,169,64,.14);
  --err: #ff6868;
  --err-bg: rgba(255,104,104,.14);
  --card-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;
  --space-7: 80px;
  --container: 1180px;
  --header-h: 64px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --border: rgba(10,13,20,.08);
  --border-strong: rgba(10,13,20,.16);
  --text: #0e1320;
  --text-muted: rgba(14,19,32,.66);
  --text-dim: rgba(14,19,32,.44);
  --brand: #4860e2;
  --brand-2: #7a3df0;
  --brand-grad: linear-gradient(135deg,#4860e2 0%,#7a3df0 60%,#22b4d9 100%);
  --hero-glow: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(72,96,226,.18) 0%, rgba(122,61,240,.10) 30%, transparent 60%);
  --card-shadow: 0 20px 50px -22px rgba(20,30,60,.18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-logo .dot {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand-grad);
  box-shadow: 0 6px 22px -6px rgba(108,140,255,.7);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.header-actions { display: flex; gap: 10px; align-items: center; }

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background .2s;
  display: inline-flex;
  align-items: center;
  padding: 2px;
}
.theme-toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-grad);
  transition: transform .25s cubic-bezier(.4,1.4,.6,1);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: grid;
  place-items: center;
  color: #fff;
}
.theme-toggle .thumb svg { width: 14px; height: 14px; }
[data-theme="light"] .theme-toggle .thumb { transform: translateX(26px); }
.theme-toggle .icon-bg {
  position: absolute;
  font-size: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.theme-toggle .icon-bg.left { left: 8px; }
.theme-toggle .icon-bg.right { right: 8px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  transition: transform .12s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 14px 36px -10px rgba(108,140,255,.55);
}
.btn-primary:hover { box-shadow: 0 18px 44px -10px rgba(108,140,255,.7); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); }
.btn-lg { padding: 16px 30px; font-size: 15px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  transition: color .15s, background .15s, border-color .15s;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero-home {
  padding: 48px 0 36px;
}
.hero-home .hero-inner {
  gap: 36px;
  align-items: center;
}
.hero-home .hero-lead { margin-bottom: 22px; }
.hero-home .hero-cta { margin-bottom: 20px; }
.hero-home .hero-visual {
  max-width: 360px;
  aspect-ratio: 1 / 0.85;
}
.hero-home .hero h1 {
  font-size: clamp(32px, 4.2vw, 52px);
  margin-bottom: 14px;
}
.hero-nav-wrap {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}
.home-nav-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-nav-tiles .page-tile {
  min-height: 118px;
  padding: 18px 18px 40px;
}
.home-nav-tiles .page-tile:first-child {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 0 0;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-eyebrow .blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-bg);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 900;
}
.hero h1 .accent {
  background: var(--brand-grad);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-meta b {
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  display: block;
  margin-bottom: 2px;
  letter-spacing: -.02em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  isolation: isolate;
  z-index: 1;
}
.hero-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-grad);
  filter: blur(60px);
  opacity: .35;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.04); }
}

.hero-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  display: grid;
  gap: 4px;
  min-width: 180px;
  z-index: 2;
}
.hero-card .label { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.hero-card .value { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.hero-card.c1 { top: 8%; left: 0%; animation: float 5s ease-in-out infinite; }
.hero-card.c2 { top: 36%; right: -10%; animation: float 6s ease-in-out infinite reverse; }
.hero-card.c3 { bottom: 6%; left: 12%; animation: float 7s ease-in-out infinite; }
.hero-card .icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--brand);
  margin-bottom: 6px;
}

/* ============ SECTION COMMON ============ */
section { padding: 72px 0; }
section .section-head {
  text-align: center;
  margin-bottom: 40px;
}
section .section-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
section .section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.03em;
  font-weight: 900;
}
section .section-head p {
  margin: 0 auto;
  max-width: 580px;
  font-size: 16px;
  color: var(--text-muted);
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow);
}
.feature-card .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--brand) 18%, var(--surface-2)));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--brand);
  margin-bottom: 16px;
}
.feature-card .feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px -8px rgba(108,140,255,.5);
}
.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.price-card.featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--surface)) 0%, var(--surface) 60%);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border-strong));
  box-shadow: 0 30px 70px -28px rgba(108,140,255,.45);
}
.price-card.featured::before {
  content: "Популярный";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.price-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.price-card .price {
  margin: 0 0 6px;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.price-card .price small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}
.price-card .discount {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--ok-bg);
  color: var(--ok);
  margin-bottom: 16px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}
.price-card ul li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card ul li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 900;
}

/* ============ STATUS ============ */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.status-hero-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px var(--ok-bg);
  flex: 0 0 auto;
}
.status-dot.warn { background: var(--warn); box-shadow: 0 0 0 5px var(--warn-bg); }
.status-dot.err { background: var(--err); box-shadow: 0 0 0 5px var(--err-bg); }
.status-text strong { font-size: 18px; letter-spacing: -.02em; }
.status-text p { margin: 2px 0 0; color: var(--text-muted); font-size: 13px; }

.server-list { display: grid; gap: 10px; }
.server-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.server-row:last-child { border-bottom: 0; }
.server-info { display: grid; gap: 2px; min-width: 0; }
.server-info strong { font-size: 14px; }
.server-info span { font-size: 12px; color: var(--text-muted); }
.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ok-bg);
  color: var(--ok);
}
.server-badge.off { background: var(--err-bg); color: var(--err); }
.server-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ============ FAQ ============ */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-search {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px 16px;
  margin-bottom: 18px;
  transition: border-color .15s;
}
.faq-search:focus-within { border-color: var(--brand); }
.faq-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  padding: 12px 0;
  font-size: 15px;
}
.faq-search svg { width: 18px; height: 18px; color: var(--text-dim); }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 15px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-dim);
  flex: 0 0 auto;
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq-item .answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--brand-grad);
  border-radius: var(--r-lg);
  padding: 44px 32px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.12) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
  font-weight: 900;
}
.cta-banner p { margin: 0 0 22px; font-size: 16px; opacity: .9; }
.cta-banner .btn {
  background: #fff;
  color: #2a2f4d;
}
.cta-banner .btn:hover { background: rgba(255,255,255,.92); }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); transition: color .15s; }
.footer-links a:hover { color: var(--text); }

/* ============ LOADER ============ */
.loader-block {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.main-nav a.is-active {
  color: var(--text);
  background: var(--surface);
  font-weight: 700;
}

.nav-link { display: block; }

/* ============ PAGE LAYOUT ============ */
.page-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.page-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.03em;
  font-weight: 900;
  line-height: 1.08;
}
.page-lead {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}
.section-compact { padding: 40px 0; }
.section-head-left { text-align: left; margin-bottom: 24px; }
.section-head-left p { margin-left: 0; }

.btn-xl {
  padding: 18px 34px;
  font-size: 16px;
  min-height: 56px;
}

/* Home page tiles */
.page-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.page-tile {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px 20px 44px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .15s, border-color .15s, box-shadow .15s;
  min-height: 140px;
}
.page-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow);
}
.page-tile-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  min-height: 120px;
  padding-bottom: 48px;
}
.page-tile-featured h3 { font-size: 22px; }
.page-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--brand);
}
.page-tile-icon svg { width: 22px; height: 22px; }
.page-tile h3 { margin: 0; font-size: 17px; font-weight: 800; }
.page-tile p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.page-tile-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: var(--text-dim);
}
.page-tile-arrow svg { width: 18px; height: 18px; }

/* Guide action cards */
.guide-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.guide-action-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.guide-action-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}
.guide-action-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border-strong));
}
.guide-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex: 0 0 auto;
}
.guide-action-icon svg { width: 22px; height: 22px; }
.guide-action-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.guide-action-card span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.guide-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.pricing-note {
  text-align: center;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Web cabinet / SaaS */
.cabinet-wrap { max-width: 960px; }
.cabinet-auth {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  display: grid;
  gap: 14px;
}
.cabinet-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: var(--r-md);
}
.cabinet-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: calc(var(--r-md) - 2px);
  cursor: pointer;
}
.cabinet-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.cabinet-divider {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.cabinet-alerts {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.cabinet-alert {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, #ff6868 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #ff6868 35%, transparent);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.cabinet-alert.ok {
  background: color-mix(in srgb, #34d399 14%, var(--surface));
  border-color: color-mix(in srgb, #34d399 45%, transparent);
  color: color-mix(in srgb, #a7f3d0 35%, var(--text));
}
.cabinet-alert.err {
  background: color-mix(in srgb, #ff6868 12%, var(--surface));
  border-color: color-mix(in srgb, #ff6868 35%, transparent);
}
.cabinet-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  width: 100%;
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.password-toggle:hover { color: var(--text); background: var(--surface-2); }
.password-toggle svg { width: 18px; height: 18px; }
.saas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.saas-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.saas-card-balance { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.saas-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.saas-value { font-size: 32px; font-weight: 900; line-height: 1.1; }
.saas-value-sm { font-size: 24px; }
.saas-key-placeholder {
  margin: 0;
  font-weight: 700;
  color: var(--text-muted);
}
.cabinet-topup-custom {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
}
.cabinet-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
  font-weight: 400;
  cursor: pointer;
}
.cabinet-consent input { margin-top: 3px; flex-shrink: 0; }
.cabinet-consent a { color: var(--brand); }
.legal-doc { max-width: 720px; }
.legal-section h2 { margin: 0 0 12px; font-size: 22px; }
.legal-section h3 { margin: 20px 0 8px; font-size: 16px; }
.legal-section p, .legal-section li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.legal-section ul { padding-left: 20px; }
.legal-back { margin-top: 24px; text-align: center; }
.saas-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  word-break: break-all;
}
.saas-muted { margin: 0; color: var(--text-muted); font-size: 14px; }
.saas-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.saas-chips .chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.saas-topup-pills, .saas-plan-row { display: flex; flex-wrap: wrap; gap: 8px; }
.saas-pill {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.saas-pill.active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-2));
}
.saas-actions { display: grid; gap: 8px; }
.saas-actions .btn { width: 100%; justify-content: center; }
.saas-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cabinet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.cabinet-card-muted {
  background: var(--bg-elevated);
  border-style: dashed;
}
.cabinet-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}
.cabinet-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.cabinet-note {
  font-size: 13px !important;
  color: var(--text-dim) !important;
}
.cabinet-form {
  display: grid;
  gap: 10px;
}
.cabinet-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.cabinet-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.cabinet-actions {
  display: grid;
  gap: 10px;
}
.cabinet-actions .btn { width: 100%; justify-content: center; }
@media (max-width: 720px) {
  .cabinet-grid { grid-template-columns: 1fr; }
}

/* Mobile nav */
.mobile-only { display: none; }
.hide-mobile { display: inline-flex; }

.mobile-nav-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
}
.mobile-nav-layer.open {
  pointer-events: auto;
  visibility: visible;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(4, 6, 12, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.mobile-nav-layer.open .mobile-nav-backdrop {
  opacity: 1;
}
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0)) 16px calc(20px + env(safe-area-inset-bottom, 0));
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav-layer.open .mobile-nav-panel {
  transform: translateX(0);
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-head strong { font-size: 16px; }
.mobile-nav-head .icon-btn {
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-links .nav-link,
.mobile-nav-links a {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
}
.mobile-nav-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}
.mobile-nav-actions .btn { width: 100%; justify-content: center; }

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .guide-actions { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .mobile-only { display: inline-grid; }
  .hide-mobile { display: none !important; }
  .site-header { height: 56px; }
  :root { --header-h: 56px; }
  .header-inner { gap: 10px; }
  .brand-logo span:not(.dot) {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions { gap: 6px; flex-shrink: 0; }
  .theme-toggle { width: 48px; height: 28px; }
  input, select, textarea, .cabinet-topup-custom {
    font-size: 16px;
  }
  .section-compact { padding: 32px 0; }
  .page-hero { padding: 32px 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 32px 0 20px; }
  .hero-home { padding: 28px 0 24px; }
  .hero-home .hero-nav-wrap { margin-top: 20px; }
  .home-nav-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .home-nav-tiles .page-tile {
    aspect-ratio: 1;
    min-height: 0;
    padding: 10px 8px;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    gap: 6px;
  }
  .home-nav-tiles .page-tile p,
  .home-nav-tiles .page-tile .page-tile-arrow { display: none; }
  .home-nav-tiles .page-tile h3 {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 800;
  }
  .home-nav-tiles .page-tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    margin: 0;
  }
  .home-nav-tiles .page-tile-icon svg { width: 18px; height: 18px; }
  .hero-home .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-content { position: relative; z-index: 2; }
  .hero-visual {
    max-width: 100%;
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
  }
  .hero-orb { display: none; }
  .hero-card {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    min-width: 0;
    width: 100%;
    aspect-ratio: 1;
    padding: 10px 6px;
    animation: none;
    z-index: 1;
    place-content: center;
    justify-items: center;
    text-align: center;
    gap: 3px;
  }
  .hero-card .value { font-size: 11px; line-height: 1.2; }
  .hero-card .label { font-size: 8px; letter-spacing: .05em; }
  .hero-card .icon { width: 24px; height: 24px; margin-bottom: 2px; }
  .guide-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .guide-action-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    aspect-ratio: 1;
    padding: 10px 8px;
    gap: 8px;
  }
  .guide-action-card span { display: none; }
  .guide-action-card strong { font-size: 11px; line-height: 1.25; }
  .guide-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .guide-action-icon svg { width: 18px; height: 18px; }
  .hero-meta { gap: 14px; }
  .container { padding: 0 16px; }
  .page-tiles { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .guide-footer-cta { flex-direction: column; }
  .guide-footer-cta .btn { width: 100%; }
  .server-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .server-badge { align-self: flex-start; }
  .status-hero-row { flex-wrap: wrap; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .price-card { padding: 24px 20px; }
  .price-card .price { font-size: 30px; }
}

/* ============ HELPERS ============ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Initial paint hidden until JS sets ready */
html:not(.js-ready) .js-only { display: none !important; }
html.js-ready .no-js { display: none !important; }
