/* Палитра сайта — те же значения, что и в фирменной палитре мини-аппа
   (web/static/newvpn/newvpn.css :root), только под собственными именами
   переменных сайта: --card = --secondary-bg, --border = --section-separator,
   --muted = --hint, --accent2 = --button. Значения держим синхронными
   вручную (общий @import сюда не заводим — newvpn.css/tgcabinet.css
   правит параллельная задача, дублировать риск конфликта), а не выдумываем
   новые цвета. */
:root {
  --bg: #050914;
  --bg2: #0b1326;
  --card: #101a31;
  --border: #203455;
  --text: #e6edf3;
  --muted: #a5b4cf;
  --accent: #38d9ff;
  --accent2: #2563eb;
  --bad: #f85149;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Живой фон — обратная связь: первая версия была недостаточно тёмной и
   переливалась слишком медленно, чтобы заметить. Теперь база темнее (почти
   чёрная к краям), пятна бледнее и движутся быстрее (18с), плюс отдельный
   слой sparkle-field — мерцающие белые искры, плывущие по всей странице
   поверх фона (position: fixed, не мешает контенту). */
body {
  background-color: #030611;
  background-image:
    radial-gradient(circle at 20% -10%, rgba(37,99,235,.18), transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(56,217,255,.12), transparent 38%),
    radial-gradient(circle at 45% 105%, rgba(37,99,235,.14), transparent 45%),
    linear-gradient(180deg, #050810 0%, #030611 55%, #01030a 100%);
  background-size: 180% 180%, 180% 180%, 180% 180%, 100% 100%;
  background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
  animation: aurora-drift 18s ease-in-out infinite alternate;
  color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, sans-serif;
}
@keyframes aurora-drift {
  0%   { background-position: 0% 0%,  100% 0%,  50% 100%, 0 0; }
  50%  { background-position: 25% 20%, 75% 25%, 35% 85%,  0 0; }
  100% { background-position: 8% 12%,  92% 8%,  60% 92%,  0 0; }
}

/* Искры: горстка маленьких белых точек, паттерн плитками по всему экрану
   (fixed — видно поверх любого места страницы при скролле), плывут по
   диагонали и мерцают по яркости — две независимые анимации. */
.sparkle-field {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-repeat: repeat;
  background-size: 340px 340px;
  background-image:
    radial-gradient(1.6px 1.6px at 10% 20%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.2px 1.2px at 80% 10%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.4px 1.4px at 30% 85%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.4px 1.4px at 45% 35%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.3px 1.3px at 70% 92%, rgba(255,255,255,.6), transparent);
  animation: sparkle-drift 26s linear infinite, sparkle-twinkle 2.6s ease-in-out infinite alternate;
}
@keyframes sparkle-drift {
  from { background-position: 0 0; }
  to   { background-position: -340px 340px; }
}
@keyframes sparkle-twinkle {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body, .sparkle-field { animation: none; }
}
a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Навигация */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(5,9,20,.9); backdrop-filter: blur(12px);
  z-index: 10; flex-wrap: wrap; gap: 8px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 12px 2px rgba(56, 217, 255, .5), 0 0 24px 6px rgba(37, 99, 235, .3);
}
.logo-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--text); }
/* Разграничить два продукта уже в шапке — та же пара цветов, что у карточек
   выбора на главной (picker-card.primary/.secondary): иначе оба пункта
   меню выглядят одним сплошным текстом. */
.nav-freenet { color: var(--accent); font-weight: 700; }
.nav-amnezia { color: var(--accent2); font-weight: 700; }

/* Кнопки */
.btn {
  display: inline-block; background: linear-gradient(135deg, #42e8ff, #2563eb);
  color: #fff !important; border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; text-decoration: none !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .32);
}
.btn-big { padding: 14px 28px; font-size: 17px; }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn-ghost { color: var(--text); padding: 14px 20px; }
.btn-ghost2 { background: var(--bg2); border: 1px solid var(--border); }
button.btn { font-family: inherit; }

/* Флеш-сообщения */
.flash { max-width: 1000px; margin: 16px auto 0; padding: 12px 18px; border-radius: 10px; }
.flash.ok  { background: rgba(63,185,80,.15); border: 1px solid var(--accent); }
.flash.bad { background: rgba(248,81,73,.15); border: 1px solid var(--bad); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  align-items: center; padding: 38px 0 34px;
}
.hero-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.1; margin-bottom: 16px; }
.eyebrow {
  color: #67e8f9; font-size: 14px; font-weight: 700; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .08em;
}
.sub { color: var(--muted); max-width: 640px; margin: 0 auto 12px; }
.hero-actions { margin-top: 24px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Заголовки — крупнее вес и трекинг, лёгкое свечение акцентом (тот же приём,
   что уже даёт .step-badge/.logo-mark), не новая палитра. */
h1 {
  font-weight: 800; letter-spacing: -.01em;
  text-shadow: 0 0 28px rgba(56, 217, 255, .25);
}
h2 { font-weight: 800; letter-spacing: -.005em; }

/* Витрина одного продукта (/freenet, /amnezia) — та же структура, что .hero,
   но с блоком фактов-чипов (.picker-fact) под заголовком. */
.product-hero { max-width: 720px; margin: 0 auto; text-align: center; padding: 38px 0 8px; }
.product-hero h1 { font-size: 38px; line-height: 1.15; margin-bottom: 14px; }
.product-facts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 18px 0 6px; }
.product-hero .hero-actions { justify-content: center; }

/* Карточки-переключатели продукта на главной — крупные, кликабельные целиком,
   с мягким свечением позади (тот же радиальный приём, что в фоне body у
   мини-аппа), primary ярче акцентом, secondary — приглушённее, чтобы FreeNet
   читался как основной продукт с первого взгляда. */
.picker {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; padding: 30px 0 50px;
}
.picker-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px; border-radius: 18px; overflow: hidden;
  background: rgba(16, 26, 49, .88); border: 1px solid var(--border);
  color: var(--text); text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.picker-card:hover { transform: translateY(-3px); }
.picker-glow {
  position: absolute; top: -60%; right: -30%; width: 70%; height: 220%;
  border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(10px);
}
.picker-card > * { position: relative; z-index: 1; }
.picker-card.primary {
  border-color: rgba(56, 217, 255, .55);
  box-shadow: 0 0 0 1px rgba(56, 217, 255, .25), 0 20px 50px rgba(37, 99, 235, .28);
}
.picker-card.primary .picker-glow { background: radial-gradient(circle, rgba(56, 217, 255, .35), transparent 70%); }
.picker-card.primary:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 36px rgba(56, 217, 255, .5), 0 24px 56px rgba(37, 99, 235, .32); }
.picker-card.secondary { border-color: var(--border); }
.picker-card.secondary .picker-glow { background: radial-gradient(circle, rgba(37, 99, 235, .2), transparent 70%); }
.picker-card.secondary:hover { border-color: var(--accent2); box-shadow: 0 0 24px rgba(37, 99, 235, .3); }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.picker-title { font-size: 21px; font-weight: 800; }
.picker-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--border); color: var(--muted);
}
.picker-card.primary .picker-tag { color: #0a1a2b; background: linear-gradient(135deg, #42e8ff, #2563eb); border: none; }
.picker-pitch { color: var(--muted); margin: 0; }
.picker-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.picker-fact {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px;
  border-radius: 10px; background: var(--bg2); border: 1px solid var(--border); min-width: 140px;
}
.picker-fact-num { font-size: 17px; font-weight: 800; color: var(--text); }
.picker-fact-label { font-size: 12px; color: var(--muted); }
.picker-cta { margin-top: 6px; font-weight: 700; color: #67e8f9; }
.picker-card.secondary .picker-cta { color: var(--text); }

/* Карточки */
section { padding: 40px 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: rgba(16, 26, 49, .88); border: 1px solid var(--border);
  border-radius: 8px; padding: 22px; margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 8px; }
.bot-note {
  border-color: rgba(103,232,249,.5);
  background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(16,26,49,.92));
}
.bot-note .btn { margin-top: 8px; }

/* Тарифы */
h2 { font-size: 30px; margin-bottom: 12px; text-align: center; }
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg2); }
.badge { background: var(--accent2); color: #fff; border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; margin-top: 26px; }

/* Шаги и FAQ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
/* Круглый светящийся бейдж-иконка — тот же приём, что степпер мини-аппа
   (web/static/newvpn/newvpn.css :: .step-icon), под карточную сетку сайта. */
.step-badge {
  width: 42px; height: 42px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 19px;
  background: var(--bg2); border: 1px solid var(--accent);
  box-shadow: 0 0 14px rgba(56, 217, 255, .45); margin-bottom: 12px;
}
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Формы */
.auth-card { max-width: 420px; margin: 60px auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.auth-card h2 { text-align: left; }
form label { display: block; margin: 16px 0 6px; font-weight: 600; }
input, select {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-size: 16px;
}
form .btn-big { width: 100%; margin-top: 22px; }
.auth-card p { margin-top: 14px; }

/* Кабинет */
.cabinet h2, .cabinet h3 { text-align: left; }
.cabinet h3 { margin: 26px 0 10px; }
.status.ok-border { border-color: var(--accent); }

/* Карточка одной ссылки FreeNet VPN (Основная/Быстрая/Российская) — тот же
   компонент .link-card, что у мини-аппа и Telegram-кабинета
   (web/static/newvpn/newvpn.css), своя копия под ширину сайта: обе страницы
   не делят один файл (newvpn.css правит параллельная задача). */
.link-card { padding: 16px 18px; }
.link-card .link-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.link-card .link-url {
  display: block; margin: 8px 0 10px; padding: 8px 10px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--muted); word-break: break-all;
}
.freenet-links { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.freenet-card .btn { margin-right: 8px; }
.freenet-card p { margin-top: 8px; }
.key-card .key-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.hidden-store { position: absolute; left: -9999px; }
.key-visible {
  margin-top: 12px;
}
.key-visible textarea {
  width: 100%; min-height: 120px; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.45;
}
.conf {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; margin-top: 12px; overflow-x: auto; font-size: 13px;
}
.buy-form { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.buy-form label { flex: 1; min-width: 140px; margin: 0; }
.buy-form select { margin-top: 6px; }
.price-line { font-size: 20px; padding-bottom: 10px; }
.buy-form .btn-big { width: auto; margin: 0; }

footer {
  border-top: 1px solid var(--border); margin-top: 60px; padding: 26px 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted);
}
@media (max-width: 600px) {
  main { padding: 0 14px; }
  .nav { padding: 12px 14px; }
  .nav nav { gap: 12px; font-size: 14px; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 28px 0 24px; }
  .eyebrow { font-size: 12px; }
  .btn-big { width: 100%; text-align: center; }
  .btn-ghost { width: 100%; text-align: center; padding: 8px 12px; }
}
