/* ============================================================
   GenitzNetSub — лендинг продажи VPN-подписки (wow.genitz.online)
   Дизайн-язык переиспользован из web/assets/gn.css админ-панели
   GenitzNet ("Glass Command Center"): тёмное стекло + фиолетовый
   градиент-акцент, JetBrains Mono для цифр/сроков/цен.
   ============================================================ */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

:root {
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;

  --r-xs: 6px; --r-sm: 10px; --r: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px; --r-pill: 999px;
  --gap: 20px;
  --ease: cubic-bezier(.2,.8,.2,1);

  --bg: #0E1017;
  --bg-2: #0A0C11;
  --glow-a: rgba(139,107,255,.20);
  --glow-b: rgba(79,140,255,.12);
  --panel: rgba(255,255,255,.065);
  --panel-2: rgba(255,255,255,.10);
  --panel-dense: rgba(20,22,31,.92);
  --panel-solid: rgba(26,28,39,.97);
  --input: rgba(255,255,255,.055);
  --border: rgba(255,255,255,.10);
  --border-2: rgba(255,255,255,.18);
  --hl: rgba(255,255,255,.14);

  --text: #E6E9EF;
  --text-2: #C4CAD7;
  --muted: #99A2B5;
  --faint: #6F778A;

  --accent: #8B6BFF;
  --accent-2: #4F8CFF;
  --accent-ink: #B7A4FF;
  --accent-soft: rgba(139,107,255,.16);
  --accent-line: rgba(139,107,255,.45);
  --grad: linear-gradient(135deg, #9477FF 0%, #6E6BFF 45%, #4F8CFF 100%);
  --on-accent: #fff;

  --ok: #3ECF8E; --ok-soft: rgba(62,207,142,.14); --ok-line: rgba(62,207,142,.38);
  --warn: #E0B13C; --warn-soft: rgba(224,177,60,.15);
  --bad: #EF5C5C; --bad-soft: rgba(239,92,92,.14);

  --shadow: inset 0 1px 0 var(--hl), 0 14px 34px -18px rgba(0,0,0,.75);
  --shadow-sm: inset 0 1px 0 var(--hl), 0 6px 16px -10px rgba(0,0,0,.6);
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(700px 420px at 12% -8%, var(--glow-a), transparent 60%),
    radial-gradient(600px 380px at 100% 0%, var(--glow-b), transparent 55%),
    linear-gradient(rgba(255,255,255,.043) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.043) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- glass panel */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,16,23,.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 19px; margin-right: auto; }
.brand b { color: var(--accent-ink); font-weight: 800; }
.nav-desktop { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-desktop a:hover, .nav-desktop a.is-active { color: var(--text); }
.nav-mobile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 20px 18px; background: var(--panel-dense); border-bottom: 1px solid var(--border);
}
.nav-mobile a {
  padding: 13px 16px; border-radius: var(--r-sm); background: var(--panel-2);
  font-size: 14.5px; font-weight: 600; color: var(--text-2);
}
.nav-mobile a:hover, .nav-mobile a.is-active { color: var(--text); background: var(--panel); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: var(--r-pill);
  background: var(--panel-2); border: 1px solid var(--border); font-size: 13.5px; font-weight: 700;
}
.account-avatar {
  width: 26px; height: 26px; border-radius: 999px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff;
}
.burger {
  display: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--panel-2); border: 1px solid var(--border); position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.burger span::before { transform: translate(-50%, -7px); }
.burger span::after { transform: translate(-50%, 5px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; border-radius: var(--r-sm);
  padding: 13px 22px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text);
  transition: transform .15s var(--ease), background .15s, border-color .15s;
}
.btn:hover { border-color: var(--border-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--grad); border: none; color: var(--on-accent); box-shadow: 0 10px 28px -12px rgba(139,107,255,.55); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.block { width: 100%; }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn.danger { background: var(--bad-soft); border-color: rgba(239,92,92,.35); color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------- hero */
.hero { padding: 88px 0 64px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; color: var(--accent-ink); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: 16.5px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 700; }
.hero-stat span { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }

/* ---------------------------------------------------------- section shell */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.section-eyebrow { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------- pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan-card {
  position: relative; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px;
}
.plan-card.is-featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; padding: 5px 14px;
  border-radius: var(--r-pill); text-transform: uppercase; letter-spacing: .03em;
}
.plan-name { font-size: 16px; font-weight: 700; color: var(--text-2); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-family: var(--mono); font-size: 34px; font-weight: 700; }
.plan-price s { color: var(--faint); font-size: 15px; font-family: var(--mono); }
.plan-period { color: var(--faint); font-size: 13px; }
.plan-features { display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.plan-features svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.plan-discount { display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 800; color: var(--ok); background: var(--ok-soft); border: 1px solid var(--ok-line); padding: 3px 9px; border-radius: var(--r-pill); }

.device-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; }
.stepper-btn { width: 28px; height: 28px; border-radius: var(--r-xs); border: 1px solid var(--border); background: var(--panel-solid); color: var(--text); font-size: 16px; font-weight: 700; line-height: 1; }
.stepper-btn:hover { border-color: var(--accent-line); color: var(--accent-ink); }
.stepper-value { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.stepper-value [data-device-value] { font-family: var(--mono); font-weight: 700; color: var(--text); }

/* ---------------------------------------------------------- features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.feature-icon {
  width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent-ink);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 15.5px; }
.feature-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------------------------------------------------------- FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin: 0 auto; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: none; border: none; color: var(--text); font-size: 14.5px; font-weight: 700; text-align: left;
}
.faq-q svg { width: 18px; height: 18px; color: var(--faint); flex: none; transition: transform .2s var(--ease); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
.faq-item.is-open .faq-a { max-height: 240px; }
.faq-a-inner { padding: 0 22px 18px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* ---------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); padding: 44px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; font-size: 16px; }
.footer-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------- forms */
.auth-shell { max-width: 400px; margin: 72px auto; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-shell h1 { font-size: 22px; text-align: center; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--input); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--text); font-size: 14.5px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-line); background: var(--panel-2); }
.form-error { background: var(--bad-soft); border: 1px solid var(--bad); color: #FFC9C9; padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; }
.form-note { text-align: center; font-size: 13px; color: var(--muted); }
.form-note a { color: var(--accent-ink); font-weight: 700; }

/* ---------------------------------------------------------- checkout */
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.checkout-summary { padding: 24px; position: sticky; top: 84px; }
.summary-plan { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); padding: 6px 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--border); font-size: 16px; font-weight: 800; }
.summary-total b { font-family: var(--mono); font-size: 22px; }
.checkout-form { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.method-row { display: flex; gap: 10px; }
.method-pill {
  flex: 1; text-align: center; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--panel-2); font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.method-pill input { display: none; }
.method-pill.is-active { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }

/* ---------------------------------------------------------- account / subscription delivery */
.dash-shell { max-width: 720px; margin: 48px auto; display: flex; flex-direction: column; gap: 18px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; }
.dash-head h1 { font-size: 24px; }
.status-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.status-row + .status-row { border-top: 1px solid var(--border); }
.status-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
.status-badge svg { width: 18px; height: 18px; color: var(--ok); }
.status-label { font-size: 13px; color: var(--muted); }
.status-value { font-family: var(--mono); font-weight: 700; }
.warn-box { padding: 16px 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.sub-widget { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.sub-widget h3 { font-size: 15.5px; }
.sub-clients { display: flex; gap: 8px; flex-wrap: wrap; }
.sub-client-btn {
  padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid var(--border);
  background: var(--panel-2); font-size: 13px; font-weight: 700; color: var(--muted);
}
.sub-client-btn.is-active { background: var(--grad); color: #fff; border: none; }
.sub-link-row { display: flex; gap: 8px; }
.sub-link-row input {
  flex: 1; background: var(--input); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 13px; color: var(--text-2); font-family: var(--mono); font-size: 12.5px;
}
.sub-hint { font-size: 12px; color: var(--faint); }

.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-row b { font-family: var(--mono); }
.pill { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------------------------------------------------------- misc */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .burger { display: block; }
  .pricing-grid, .features-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
