/* VASILEVS VPN — дизайн-система лендинга.
   Смысловая ДНК взята от вашего сайта mcvasilevs.ru (тёмный фон,
   неоновые свечения на hover, стеклянные карточки), но пересобрана под
   другую метафору: не "неоновый концерт", а "хакерский терминал" —
   моноширинный шрифт везде, зелёный/пурпурный неон вместо оранжевого.
   Стиль общий с кабинетом (web/twa/style.css) — они должны выглядеть как
   одно целое. */

:root {
  --ink: #05070a;
  --surface: #0d1117;
  --surface-2: #0a0e14;
  --text: #e6f1ea;
  --muted: #7c8b85;
  --neon: #39ff88;
  --neon-dim: #1a5c3a;
  --magenta: #ff3ea5;
  --line: #1b2a22;

  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Глубина фона: сверху мягкое неон-свечение, по всему полю — едва
   заметная терминальная сетка. fixed, чтобы не ехала при скролле и не
   мешала контенту (pointer-events: none, ниже по z-index). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 460px at 50% -160px, rgba(57, 255, 136, 0.10), transparent 70%),
    radial-gradient(900px 500px at 100% 0, rgba(255, 62, 165, 0.05), transparent 60%),
    linear-gradient(rgba(27, 42, 34, 0.20) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(27, 42, 34, 0.20) 1px, transparent 1px) 0 0 / 44px 100%;
}

p { margin: 0 0 1em; }
a { color: inherit; }

::selection { background: rgba(57, 255, 136, 0.24); color: #fff; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  text-decoration: none;
  color: var(--neon);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(57, 255, 136, 0.35);
}
.brand .bracket { color: var(--muted); text-shadow: none; }
.nav { display: flex; gap: 24px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--neon); }

/* --- hero --- */
.hero { padding: 84px 0 64px; }
.hero-content { max-width: 660px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: 0 0 18px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 62, 165, 0.35);
  border-radius: 999px;
}
h1 {
  font-size: clamp(32px, 5.4vw, 50px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 .accent { color: var(--neon); text-shadow: 0 0 28px rgba(57, 255, 136, 0.35); }
.lede { font-size: 16.5px; color: var(--muted); max-width: 58ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.hero-trust li { font-size: 12.5px; color: var(--muted); padding-left: 20px; position: relative; }
.hero-trust li::before { content: '✓'; position: absolute; left: 0; color: var(--neon); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-mono);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.btn-primary { background: var(--neon); color: #05070a; box-shadow: 0 0 0 rgba(57, 255, 136, 0); }
.btn-primary:hover { box-shadow: 0 0 26px rgba(57, 255, 136, 0.5); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

/* --- section heading (общий ритм: моно-нумерация как в терминале) --- */
.section-head { margin-bottom: 26px; }
.section-num {
  font-size: 12px;
  color: var(--neon);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

/* --- features --- */
.features { padding: 8px 0 68px; }
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features-list li {
  position: relative;
  padding: 18px 18px 18px 42px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.features-list li::before {
  content: '>';
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--neon);
  font-weight: 700;
}
.features-list li:hover {
  border-color: var(--neon-dim);
  box-shadow: 0 0 26px rgba(57, 255, 136, 0.07);
  transform: translateY(-2px);
}
.features-list strong { color: var(--text); display: block; margin-bottom: 6px; font-size: 15px; }

/* --- plans --- */
.plans { padding: 60px 0; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans h2, .recover h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

.email-field {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.email-field label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; letter-spacing: 0.04em; }
.email-field-inner { flex: 1 1 260px; min-width: 0; } /* min-width:0 — чтобы поле ужималось, а не распирало строку на узком экране */
.email-field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.email-field input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.12); }
.email-field input::placeholder { color: var(--muted); }

.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.plan-card {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.plan-card:hover { border-color: var(--neon-dim); box-shadow: 0 0 28px rgba(57, 255, 136, 0.09); transform: translateY(-3px); }
.plan-card.best-value { border-color: var(--neon-dim); box-shadow: 0 0 34px rgba(57, 255, 136, 0.12); }
.plan-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.plan-price { font-size: 28px; color: var(--neon); margin: 0; line-height: 1; }
.plan-price small { font-size: 12px; color: var(--muted); font-weight: 400; }
.plan-perday { font-size: 12px; color: var(--muted); margin: -4px 0 2px; }
.plan-card .btn { width: 100%; margin-top: auto; }
.plan-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--neon);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.plans-loading, .plans-error { color: var(--muted); grid-column: 1 / -1; font-size: 14px; }

.form-message { margin-top: 14px; font-size: 13px; min-height: 18px; }
.form-message.ok { color: var(--neon); }
.form-message.error { color: var(--magenta); }

/* --- recover access --- */
.recover { padding: 60px 0 76px; }
.recover-box { max-width: 480px; }
.recover .btn-primary { margin-top: 4px; }

/* --- footer --- */
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--neon); }

/* --- юридическая страница (offer.html) --- */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.legal .legal-updated { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.legal .legal-notice {
  background: rgba(255, 62, 165, 0.08);
  border: 1px solid var(--magenta);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 32px;
}
.legal h2 { font-size: 17px; margin: 32px 0 10px; color: var(--neon); }
.legal p, .legal li { font-size: 14px; color: var(--muted); }
.legal ol { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal .back-link { display: inline-block; margin-top: 8px; font-size: 13px; }

/* --- responsive --- */
@media (max-width: 640px) {
  .features-list { grid-template-columns: 1fr; }
  .header-row { height: 56px; }
  .nav { gap: 16px; }
  .hero { padding: 52px 0 44px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .plans, .recover { padding: 44px 0; }
  body::before { background-size: auto, auto, 100% 36px, 36px 100%; }
}

/* Сверхузкие экраны: Galaxy Fold в сложенном виде (~280px) и мелкие
   телефоны. Ужимаем типографику и отступы, прячем дублирующую навигацию в
   шапке (в герое те же переходы кнопками) — чтобы ничего не переполняло. */
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  h1 { font-size: clamp(23px, 8.5vw, 30px); }
  .lede { font-size: 14.5px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.08em; padding: 4px 10px; }
  .hero { padding: 40px 0 36px; }
  .hero-trust { gap: 6px 16px; }
  .plans, .recover { padding: 40px 0; }
  .plan-card { padding: 20px 18px; }
  .plan-price { font-size: 24px; }
  .features-list li { padding: 16px 14px 16px 36px; }
  .email-field { padding: 14px; }
}
