/* PAIVPN - общий стиль сайта и Mini App. Цвета как у аватаров ботов. */
:root {
  --bg: #14123a;
  --bg2: #1d1a52;
  --card: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .12);
  --text: #eef0ff;
  --muted: #a9acd6;
  --teal: #1fd1bd;
  --mint: #7ef5d6;
  --violet: #5a3ccf;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, #3a2a9a 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #1b2f7a 0%, transparent 55%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* шапка */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px);
  background: rgba(20, 18, 58, .72); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font-weight: 800; letter-spacing: .5px; font-size: 20px; }
.logo svg { width: 30px; height: 30px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
nav a:hover { color: var(--text); }
@media (max-width: 720px) { nav .opt { display: none; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 16px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-main { color: #0f1033; background: linear-gradient(135deg, var(--mint), var(--teal));
  box-shadow: 0 8px 30px rgba(31, 209, 189, .35); }
.btn-ghost { color: var(--text); background: var(--card); border: 1px solid var(--line); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* первый экран */
.hero { padding: 84px 0 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 18px; }
.hero h1 span { background: linear-gradient(135deg, var(--mint), var(--teal)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 560px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .shield { display: flex; justify-content: center; }
.hero .shield svg { width: min(300px, 70vw); filter: drop-shadow(0 20px 60px rgba(31, 209, 189, .25)); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 48px; } .hero .shield { order: -1; }
  .hero .shield svg { width: 170px; } }

/* блоки */
section { padding: 56px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 6px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.ico { font-size: 28px; }

/* тарифы */
.plan { position: relative; display: flex; flex-direction: column; }
.plan .price { font-size: 38px; font-weight: 800; margin: 8px 0 2px; }
.plan .per { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; color: var(--muted); }
.plan li { padding: 4px 0; }
.plan li::before { content: "✓ "; color: var(--teal); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.best { border-color: rgba(31, 209, 189, .6); box-shadow: 0 0 0 1px rgba(31, 209, 189, .3) inset; }
.tag { position: absolute; top: -12px; right: 18px; background: var(--teal); color: #0f1033; font-size: 12px;
  font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* шаги */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 60px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 22px; width: 28px; height: 28px;
  border-radius: 50%; background: linear-gradient(135deg, var(--mint), var(--teal)); color: #0f1033; font-weight: 800;
  display: grid; place-items: center; font-size: 15px; }

/* вкладки устройств */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; font-size: 15px; }
.tabs button.on { background: var(--teal); color: #0f1033; border-color: var(--teal); font-weight: 700; }
.tabpane { display: none; } .tabpane.on { display: block; }
.tabpane ol { margin: 0; padding-left: 20px; color: var(--muted); } .tabpane li { padding: 4px 0; }
.tabpane b { color: var(--text); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

/* подвал */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
footer a { color: var(--muted); margin-right: 16px; }
footer a:hover { color: var(--text); }

/* документы */
.doc { max-width: 820px; padding: 48px 20px 64px; }
.doc h1 { font-size: 32px; margin-bottom: 4px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { color: #d5d7f3; }
.doc .meta { color: var(--muted); }
.fill { background: rgba(255, 200, 80, .15); border: 1px dashed rgba(255, 200, 80, .6); padding: 0 6px; border-radius: 6px; }

/* модалка покупки без Telegram */
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); color: var(--text);
  max-width: 440px; padding: 28px; }
dialog::backdrop { background: rgba(5, 5, 20, .7); }
