:root {
  --bg: #0b090d;
  --surface: #141117;
  --surface-2: #1b171f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4eff6;
  --muted: #9b92a1;
  --accent: #f4226e;
  --accent-hover: #ff4585;
  --on-accent: #ffffff;
  --ok: #4ccf86;
  --bad: #f2617a;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Фоновые блики */
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%;
}
body::before {
  top: -25vmax; left: -20vmax; width: 70vmax; height: 70vmax;
  background: radial-gradient(closest-side, rgba(244, 34, 110, 0.34), rgba(244, 34, 110, 0.10) 55%, transparent);
}
body::after {
  bottom: -30vmax; right: -25vmax; width: 75vmax; height: 75vmax;
  background: radial-gradient(closest-side, rgba(130, 40, 220, 0.30), rgba(130, 40, 220, 0.08) 55%, transparent);
}

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; padding: 12px 16px 0; }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 920px; height: 56px; padding: 0 22px 0 16px; border-radius: 99px;
  background: rgba(22, 18, 26, 0.62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; white-space: nowrap; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
@media (max-width: 520px) { .nav .hide-sm { display: none; } .nav { gap: 14px; font-size: 14px; } .top .wrap { padding: 0 18px 0 12px; } .brand { font-size: 16px; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 28px -10px rgba(244, 34, 110, 0.7); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-soft { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-soft:hover { border-color: rgba(255, 255, 255, 0.2); }
.btn-block { width: 100%; }

/* Первый экран */
.hero { text-align: center; padding: 80px 0 72px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 20px; }
.hero h1 span { color: var(--accent); text-shadow: 0 0 48px rgba(244, 34, 110, 0.35); }
.hero p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 36px; }
.hero .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .hero { padding: 64px 0 56px; }
  .hero .actions .btn { width: 100%; }
}

/* Разделы */
.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.025em; line-height: 1.15; font-weight: 700; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; font-size: 15px; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)), rgba(20, 17, 23, 0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

/* Переключатель периода */
.seg { display: inline-flex; margin-top: 24px; padding: 4px; background: rgba(20, 17, 23, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 14px; }
.seg button { font: 500 14px/1 var(--font); color: var(--muted); background: none; border: 0; padding: 10px 16px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
@media (max-width: 420px) { .seg button { padding: 10px 11px; } }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: rgba(244, 34, 110, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 64px -24px rgba(244, 34, 110, 0.45); }
.plan .flag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.plan h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.plan .desc { color: var(--muted); font-size: 14px; margin: 0 0 28px; flex: 1; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.price .num { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; transition: opacity .15s; }
.price .cur { font-size: 20px; font-weight: 600; }
.price .per { color: var(--muted); font-size: 14px; margin-left: 4px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; gap: 24px; } }

/* Серверы */
.servers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.srv { padding: 20px; }
.srv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.srv-name { font-weight: 600; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state.off { color: var(--bad); }
.srv.off .metrics { opacity: .35; }
.metric { margin-bottom: 12px; }
.metric-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.track { height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .6s; }
.conn { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding-top: 4px; }
.conn b { color: var(--text); font-weight: 600; }
.servers-note { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .servers { grid-template-columns: 1fr; } }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* Подвал */
.foot { margin-top: 40px; padding: 40px 0 48px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.foot .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.foot .links.small { font-size: 13px; }
.foot a:hover { color: var(--text); }

/* Юридические страницы */
.doc { max-width: 720px; margin: 48px auto 0; padding: 40px; }
.doc h1 { font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.03em; line-height: 1.15; font-weight: 700; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 36px 0 12px; }
.doc h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.doc p, .doc ul, .doc ol { color: var(--muted); margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
@media (max-width: 560px) { .doc { padding: 24px 20px; margin-top: 24px; border-radius: 16px; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.back { display: inline-block; margin: 32px 0 0; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--text); }
.doc + .back, main > .back { margin-bottom: 0; }
.doc .back { margin: 0 0 24px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }

/* Компактные карточки на телефоне */
@media (max-width: 640px) {
  .card { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)), rgba(20, 17, 23, 0.9); border-radius: 18px; }
  .plans { gap: 14px; }
  .plan { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t p" "d p" "b b"; column-gap: 16px; padding: 20px; }
  .plan h3 { grid-area: t; font-size: 18px; margin: 0 0 2px; }
  .plan .desc { grid-area: d; margin: 0 0 16px; font-size: 13px; }
  .plan .price { grid-area: p; align-self: start; flex-wrap: wrap; justify-content: flex-end; margin: 0; max-width: 120px; }
  .plan .price .num { font-size: 32px; }
  .plan .price .cur { font-size: 17px; }
  .plan .price .per { width: 100%; text-align: right; margin: 4px 0 0; font-size: 12px; }
  .plan .btn { grid-area: b; height: 46px; }
  .plan .flag { left: 20px; }
  .plans .plan.featured { margin-top: 6px; }

  .srv { padding: 16px; }
  .srv-head { margin-bottom: 12px; }
  .metrics { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
  .metric { margin: 0; }
  .metric-top { font-size: 12px; margin-bottom: 5px; }
  .conn { flex-direction: column; align-items: flex-end; gap: 1px; padding: 0; font-size: 12px; }
  .feature { padding: 20px; }
}
