/* ============================================================
   CHEESE VPN — Design System
   Tema: тёмно-синий фон + сырно-золотой акцент.
   Шрифты: Space Grotesk (display), Inter (body), Space Mono (числа/код).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces (navy) */
  --navy-950: #070b16;
  --navy-900: #0a1020;
  --navy-850: #0c1428;
  --navy-800: #0f1830;
  --surface:  #111c38;
  --surface-2:#16244a;
  --surface-3:#1c2e5c;

  /* Cheese (gold/orange) */
  --cheese:       #ffc23d;
  --cheese-2:     #ffb02e;
  --cheese-deep:  #f5921e;
  --cheese-rind:  #e07c10;
  --cheese-light: #ffe2a0;
  --cheese-grad:  linear-gradient(135deg, #ffd866 0%, #ffb02e 48%, #f5921e 100%);
  --cheese-glow:  rgba(255, 168, 46, .45);

  /* Cheese "holes" — layered as a background image over the gold gradient.
     --hole color is overridden per element (dark holes on gold, light on dark). */
  --hole: rgba(124, 64, 4, .42);
  --cheese-holes:
    radial-gradient(circle at 12% 30%, var(--hole) 0 4.5px, transparent 5.5px),
    radial-gradient(circle at 27% 68%, var(--hole) 0 3.5px, transparent 4.5px),
    radial-gradient(circle at 40% 22%, var(--hole) 0 3px,   transparent 4px),
    radial-gradient(circle at 52% 60%, var(--hole) 0 4px,   transparent 5px),
    radial-gradient(circle at 63% 30%, var(--hole) 0 3px,   transparent 4px),
    radial-gradient(circle at 74% 70%, var(--hole) 0 4.5px, transparent 5.5px),
    radial-gradient(circle at 86% 38%, var(--hole) 0 5px,   transparent 6px),
    radial-gradient(circle at 93% 62%, var(--hole) 0 3.5px, transparent 4.5px);

  /* Status / semantic (used sparingly) */
  --mint:    #35e0a6;
  --mint-dim:#18b888;
  --danger:  #ff5c6c;
  --info:    #5aa9ff;

  /* Text */
  --text:      #eaf0ff;
  --text-dim:  #aebada;
  --muted:     #7d8bb0;
  --on-cheese: #2a1a02;

  /* Lines */
  --border:        rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --border-cheese: rgba(255,184,64,.40);

  /* Radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.30);
  --shadow:    0 18px 40px -18px rgba(0,0,0,.65);
  --shadow-lg: 0 40px 80px -28px rgba(0,0,0,.75);
  --glow-cheese: 0 10px 30px -8px var(--cheese-glow);

  /* Fonts */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background-color: var(--navy-950);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Layered background: aurora glows + faint dot grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(255,168,46,.16), transparent 60%),
    radial-gradient(820px 620px at 6% 4%, rgba(70,110,220,.16), transparent 58%),
    radial-gradient(700px 700px at 50% 118%, rgba(255,140,30,.08), transparent 60%),
    var(--navy-950);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--cheese);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--text-dim); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cheese-light);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--cheese); opacity: .7;
}

.text-cheese {
  background: var(--cheese-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--font-mono); }
.dim { color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.06rem; }

.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --hole: rgba(255,206,135,.17); /* light holes for dark buttons */
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background-color: var(--btn-bg);
  background-image: var(--cheese-holes);
  color: var(--text);
  font-weight: 600; font-size: .98rem;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn--sm { padding: 10px 16px; font-size: .88rem; }
.btn--block { display: flex; width: 100%; }

/* Signature cheese button — holes baked into the background, above the gradient */
.btn--cheese {
  --hole: rgba(124,64,4,.44);
  background-color: transparent;
  background-image: var(--cheese-holes), var(--cheese-grad);
  color: var(--on-cheese);
  border-color: transparent;
  box-shadow: var(--glow-cheese);
}
.btn--cheese:hover { box-shadow: 0 16px 40px -10px var(--cheese-glow); }

.btn--ghost { background-color: transparent; border-color: var(--border-strong); }
.btn--ghost:hover { background-color: rgba(255,255,255,.05); border-color: var(--border-cheese); }

.btn--outline-cheese {
  --hole: rgba(255,198,112,.24);
  background-color: rgba(255,184,64,.08);
  border-color: var(--border-cheese);
  color: var(--cheese-light);
}
.btn--outline-cheese:hover { background-color: rgba(255,184,64,.16); }

.btn--mint { background-color: rgba(53,224,166,.12); border-color: rgba(53,224,166,.4); color: var(--mint); }
.btn--mint:hover { background-color: rgba(53,224,166,.2); }

/* ---------- Badges / pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  font-size: .82rem; color: var(--text-dim);
}
.pill svg { width: 15px; height: 15px; }
.pill--cheese { background: rgba(255,184,64,.12); border-color: var(--border-cheese); color: var(--cheese-light); }
.pill--mint { background: rgba(53,224,166,.1); border-color: rgba(53,224,166,.32); color: var(--mint); }

.tag {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 7px;
  background: rgba(255,184,64,.14); color: var(--cheese-light);
  border: 1px solid var(--border-cheese);
}

.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(53,224,166,.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(53,224,166,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(53,224,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,224,166,0); }
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--border-cheese);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,184,64,.12); border: 1px solid var(--border-cheese);
  color: var(--cheese); margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }

.glass {
  background: rgba(15,24,48,.55);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,13,26,.78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; width: 100%; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.brand .logo-cheese { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(245,146,30,.4)); }
.brand b { color: var(--cheese); }

.nav__links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link {
  position: relative;
  padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--text-dim); font-size: .94rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__link.active { color: var(--text); }
.nav__link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--cheese-grad); border-radius: 2px;
}
/* Free proxy link — highlighted gold pill */
.nav__link--free {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--on-cheese); font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--glow-cheese);
  animation: freeGlow 2.8s ease-in-out infinite;
}
.nav__link--free:hover { color: var(--on-cheese); transform: translateY(-1px); box-shadow: 0 14px 30px -8px var(--cheese-glow); }
.nav__link--free.active { color: var(--on-cheese); }      /* keep dark text when active */
.nav__link--free.active::after { content: none; }          /* no underline on the gold pill */
.nav__link--free .free-spark { display: inline-flex; color: var(--on-cheese); }
@keyframes freeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,180,60,0), var(--glow-cheese); }
  50%      { box-shadow: 0 0 0 4px rgba(255,180,60,.14), 0 14px 28px -8px var(--cheese-glow); }
}

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__burger {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  align-items: center; justify-content: center; color: var(--text);
}
.nav__burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6,10,20,.7); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 86vw);
  background: var(--navy-850); border-left: 1px solid var(--border);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mobile-menu__link {
  padding: 14px 16px; border-radius: 14px; font-size: 1.04rem; font-weight: 500; color: var(--text-dim);
  border: 1px solid transparent;
}
.mobile-menu__link:hover, .mobile-menu__link.active { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--border); }
.mobile-menu__link--free { background: var(--cheese-grad); color: var(--on-cheese); font-weight: 600; }
.mobile-menu .nav__actions { margin-top: auto; flex-direction: column; }
.mobile-menu .btn { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(36px, 6vw, 70px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-block: 18px 20px; }
.hero__lead { font-size: 1.16rem; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-dim); }
.hero__trust svg { width: 16px; height: 16px; color: var(--mint); }

/* Hero visual: mascot + connection panel */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.mascot-stage { position: relative; width: min(420px, 92%); aspect-ratio: 1; display: grid; place-items: center; }
.mascot-orbit {
  position: absolute; inset: 4%;
  border: 1.5px dashed rgba(255,184,64,.28); border-radius: 50%;
  animation: spin 28s linear infinite;
}
.mascot-orbit::before, .mascot-orbit::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--cheese); box-shadow: 0 0 14px var(--cheese-glow);
}
.mascot-orbit::before { top: -6px; left: 50%; }
.mascot-orbit::after { bottom: -6px; left: 50%; background: var(--mint); box-shadow: 0 0 14px rgba(53,224,166,.6); }
.mascot-orbit--2 { inset: 16%; animation-duration: 20s; animation-direction: reverse; border-color: rgba(90,169,255,.22); }
.mascot-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255,168,46,.32), transparent 68%); filter: blur(8px); }
.mascot { position: relative; width: 82%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 24px 36px rgba(0,0,0,.5)); }

.connect-card {
  position: absolute; bottom: 2%; right: -2%;
  width: 220px; padding: 16px; border-radius: var(--r);
  display: flex; flex-direction: column; gap: 12px;
}
.connect-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.connect-card__label { font-size: .76rem; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.connect-card__server { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; }
.connect-card__ping { font-family: var(--font-mono); color: var(--mint); font-size: .9rem; }
.connect-toggle {
  width: 100%; padding: 12px; border-radius: var(--r-sm);
  background: var(--cheese-grad); color: var(--on-cheese); font-weight: 700; border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter .2s;
}
.connect-toggle.on { background: rgba(53,224,166,.16); color: var(--mint); border: 1px solid rgba(53,224,166,.4); }
.speed-card {
  position: absolute; top: 4%; left: -3%;
  width: 170px; padding: 14px 16px; border-radius: var(--r);
}
.speed-card__val { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--cheese); }
.speed-card__val small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.speed-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 8px; }
.speed-bars i { flex: 1; background: var(--cheese-grad); border-radius: 3px 3px 0 0; animation: bars 1.2s ease-in-out infinite; opacity: .85; }
.speed-bars i:nth-child(2){ animation-delay:.15s } .speed-bars i:nth-child(3){ animation-delay:.3s }
.speed-bars i:nth-child(4){ animation-delay:.45s } .speed-bars i:nth-child(5){ animation-delay:.6s }
.speed-bars i:nth-child(6){ animation-delay:.75s }

@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes bars { 0%,100%{ transform: scaleY(.35) } 50%{ transform: scaleY(1) } }

/* ---------- Logo / proof strip ---------- */
.proof-strip { border-block: 1px solid var(--border); padding-block: 26px; }
.proof-strip__inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; }
.proof-logo { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-weight: 600; opacity: .8; transition: opacity .2s; }
.proof-logo:hover { opacity: 1; }
.proof-logo svg { width: 24px; height: 24px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 18px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; }
.stat__num.text-cheese { background: var(--cheese-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 10px; color: var(--text-dim); font-size: .95rem; }

/* ---------- Feature media split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--rev .split__media { order: 2; }
.feature-list { display: grid; gap: 16px; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; list-style: none; }
.feature-list .fi {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,184,64,.12); border: 1px solid var(--border-cheese); color: var(--cheese);
}
.feature-list .fi svg { width: 18px; height: 18px; }
.feature-list b { display: block; color: var(--text); margin-bottom: 2px; }
.feature-list span { color: var(--text-dim); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__num {
  font-family: var(--font-mono); font-size: .85rem; color: var(--on-cheese);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cheese-grad); font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: rgba(255,255,255,.05); border: 1px solid var(--border); margin: 20px auto 40px; }
.billing-toggle button { padding: 9px 18px; border-radius: var(--r-pill); border: none; background: transparent; color: var(--text-dim); font-weight: 600; font-size: .9rem; transition: .2s; }
.billing-toggle button.active { background: var(--cheese-grad); color: var(--on-cheese); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column;
  padding: 30px 26px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  transition: transform .25s var(--ease), border-color .25s;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-cheese); }
.price-card--featured {
  border-color: var(--border-cheese);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,168,46,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,184,64,.06), rgba(255,255,255,.015));
  box-shadow: var(--shadow), 0 0 0 1px var(--border-cheese);
}
.price-card__ribbon {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill); background: var(--cheese-grad); color: var(--on-cheese); font-weight: 700;
}
.price-card { position: relative; }
.price-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.price-card__desc { color: var(--muted); font-size: .9rem; margin-top: 4px; min-height: 38px; }
.price-card__price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price-card__price b { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; }
.price-card__price b.text-cheese { background: var(--cheese-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card__per { color: var(--muted); font-size: .95rem; }
.price-card__old { color: var(--muted); text-decoration: line-through; font-size: .92rem; margin-top: 6px; min-height: 20px; }
.price-card__save { color: var(--mint); font-weight: 600; font-size: .9rem; }
.price-card ul { list-style: none; margin: 22px 0; display: grid; gap: 12px; flex: 1; }
.price-card li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--text-dim); }
.price-card li svg { flex: none; width: 18px; height: 18px; color: var(--cheese); margin-top: 2px; }
.price-card li.off { color: var(--muted); opacity: .6; }
.price-card li.off svg { color: var(--muted); }

/* ---------- Servers ---------- */
.server-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.search-box { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; padding: 12px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.search-box input { background: none; border: none; color: var(--text); width: 100%; font-size: .96rem; outline: none; }
.search-box svg { width: 18px; height: 18px; color: var(--muted); }
.region-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.region-filter button { padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text-dim); font-size: .88rem; font-weight: 500; transition: .2s; }
.region-filter button.active, .region-filter button:hover { border-color: var(--border-cheese); color: var(--cheese-light); background: rgba(255,184,64,.1); }

.server-table { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.server-row { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--border); transition: background-color .2s; }
.server-row:last-child { border-bottom: none; }
.server-row:hover { background: rgba(255,255,255,.03); }
.server-row.head { background: rgba(255,255,255,.03); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.server-loc { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.flag { width: 30px; height: 22px; border-radius: 4px; flex: none; display: grid; place-items: center; font-size: .9rem; background: rgba(255,255,255,.06); border: 1px solid var(--border); overflow: hidden; }
.server-city { color: var(--muted); font-weight: 400; font-size: .85rem; }
.ping { font-family: var(--font-mono); font-size: .9rem; }
.ping--good { color: var(--mint); } .ping--ok { color: var(--cheese); } .ping--mid { color: var(--info); }
.load-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.load-bar i { display: block; height: 100%; border-radius: 4px; background: var(--cheese-grad); }
.load-bar i.hi { background: linear-gradient(90deg, #ff8a3d, #ff5c6c); }

/* ---------- Referrals ---------- */
.ref-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.ref-card { padding: 28px; }
.ref-code { display: flex; gap: 10px; margin-top: 18px; }
.ref-code input { flex: 1; padding: 14px 18px; border-radius: var(--r-sm); background: rgba(0,0,0,.3); border: 1px dashed var(--border-cheese); color: var(--cheese-light); font-family: var(--font-mono); font-size: 1rem; }
.ref-steps { display: grid; gap: 14px; margin-top: 22px; }
.tier { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--border); background: rgba(255,255,255,.02); }
.tier__left { display: flex; align-items: center; gap: 14px; }
.tier__count { font-family: var(--font-mono); font-weight: 700; color: var(--cheese); font-size: 1.1rem; }
.tier__reward { font-weight: 600; color: var(--mint); }

/* ---------- Proxy page ---------- */
.proxy-hero { text-align: center; }
.proxy-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px;
  border-radius: var(--r-pill); background: rgba(42,171,238,.12); border: 1px solid rgba(42,171,238,.4);
  color: #6fc4f5; font-weight: 600; font-size: .9rem; margin-bottom: 22px;
}
.proxy-badge svg { width: 18px; height: 18px; }
.proxy-connect {
  max-width: 560px; margin: 36px auto 0; padding: 34px; text-align: center;
}
.proxy-connect .btn { font-size: 1.12rem; }
.proxy-note { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; text-align: left; justify-content: center; }
.proxy-note svg { flex: none; width: 16px; height: 16px; color: var(--cheese); margin-top: 3px; }

.proxy-servers { display: grid; gap: 14px; margin-top: 30px; }
.proxy-srv { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; }
.proxy-srv__meta { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.proxy-srv__meta b { color: var(--text); font-weight: 400; }
.copy-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-dim); font-size: .82rem; transition: .2s; }
.copy-btn:hover { border-color: var(--border-cheese); color: var(--cheese-light); }
.copy-btn svg { width: 15px; height: 15px; }

.channel-promo {
  display: flex; align-items: center; gap: 20px; padding: 26px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(42,171,238,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.channel-promo__icon { flex: none; width: 64px; height: 64px; }
.channel-promo__body { flex: 1; }
.channel-promo h3 { margin-bottom: 6px; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-card { text-align: left; }
.support-card .card__icon { margin-bottom: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: rgba(255,255,255,.02); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--border-cheese); }
.faq-q { width: 100%; text-align: left; padding: 20px 22px; background: none; border: none; color: var(--text); font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); }
.faq-q .chev { flex: none; width: 22px; height: 22px; color: var(--cheese); transition: transform .25s; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a > div { padding: 0 22px 22px; color: var(--text-dim); }

/* ---------- Forms / Auth ---------- */
.auth-wrap { max-width: 460px; margin-inline: auto; }
.auth-card { padding: 34px; }
.auth-tabs { display: flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: rgba(255,255,255,.04); border: 1px solid var(--border); margin-bottom: 26px; }
.auth-tabs button { flex: 1; padding: 11px; border-radius: var(--r-pill); border: none; background: transparent; color: var(--text-dim); font-weight: 600; transition: .2s; }
.auth-tabs button.active { background: var(--cheese-grad); color: var(--on-cheese); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; color: var(--text-dim); margin-bottom: 8px; font-weight: 500; }
.field .req { color: var(--cheese); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg.lead { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field input {
  width: 100%; padding: 14px 16px 14px 44px; border-radius: var(--r-sm);
  background: rgba(0,0,0,.28); border: 1px solid var(--border); color: var(--text); font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--cheese); box-shadow: 0 0 0 3px rgba(255,184,64,.18); }
.field .toggle-pass { position: absolute; right: 12px; background: none; border: none; color: var(--muted); padding: 6px; display: grid; place-items: center; }
.field .toggle-pass svg { width: 18px; height: 18px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; margin-bottom: 22px; }
.auth-row a { color: var(--cheese-light); }
.checkbox { display: flex; align-items: center; gap: 9px; color: var(--text-dim); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--cheese); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .82rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text); font-weight: 500; font-size: .92rem; transition: .2s; }
.social-btn:hover { border-color: var(--border-cheese); background: rgba(255,255,255,.07); }
.social-btn svg { width: 20px; height: 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 70px);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255,168,46,.22), transparent 55%),
    radial-gradient(100% 120% at 0% 100%, rgba(70,110,220,.18), transparent 55%),
    var(--surface);
  border: 1px solid var(--border-cheese);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-dim); transition: .2s; }
.footer-social a:hover { color: var(--cheese-light); border-color: var(--border-cheese); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-dim); font-size: .94rem; transition: color .2s; }
.footer-col a:hover { color: var(--cheese-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* ---------- Legal documents ---------- */
.legal-doc { margin-top: 30px; color: var(--text-dim); line-height: 1.8; }
.legal-doc h2 { font-size: 1.35rem; margin: 38px 0 12px; color: var(--text); scroll-margin-top: 90px; }
.legal-doc h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--text); }
.legal-doc p { margin-bottom: 14px; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.legal-doc li { color: var(--text-dim); }
.legal-doc a { color: var(--cheese-light); }
.legal-doc strong { color: var(--text); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.legal-toc a { font-size: .85rem; padding: 7px 13px; border-radius: var(--r-pill); background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-dim); transition: .2s; }
.legal-toc a:hover { border-color: var(--border-cheese); color: var(--cheese-light); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--border-cheese); color: var(--text);
  padding: 13px 20px; border-radius: var(--r-pill); font-size: .92rem; font-weight: 500;
  display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow); z-index: 300;
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--mint); }

/* ---------- Cheese holes on all gold buttons & badges ---------- */
.nav__link--free,
.mobile-menu__link--free,
.billing-toggle button.active,
.auth-tabs button.active,
.connect-toggle,
.price-card__ribbon,
.step__num {
  --hole: rgba(124,64,4,.44);
  background-color: transparent;
  background-image: var(--cheese-holes), var(--cheese-grad);
}

/* ---------- Disabled buttons & "soon" ribbon ---------- */
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; }
.price-card__ribbon.ribbon--soon { background-image: none; background-color: var(--surface-3); color: var(--text-dim); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
/* Collapse nav to burger earlier so the longer "Не работает Telegram?" pill never wraps */
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .nav__actions .btn:not(.nav-cta) { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { min-height: 360px; order: -1; }
  .split, .ref-hero { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .price-grid, .steps, .support-grid, .cols-3 { grid-template-columns: 1fr; }
  .price-card--featured { order: -1; }
}
@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .server-row { grid-template-columns: 1.4fr 1fr auto; }
  .server-row .col-load { display: none; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .speed-card { left: 0; top: 0; width: 150px; }
  .connect-card { right: 0; width: 200px; }
  .footer-grid { grid-template-columns: 1fr; }
  .proxy-srv { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
