/* Тёмная палитра как у Spread. Правила — в site/HANDOFF.md. */
:root {
  --bg: #0f0f0f;
  --card: #1a1a1a;
  --inset: #262626;
  --line: #2c2c2c;
  --accent: #d97757;
  --accent-soft: rgba(217,119,87,.16);
  --text: #ffffff;
  --muted: #808080;
  --muted-2: #a6a6a6;
  --font: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400;
  font-size: 16px; line-height: 1.55; margin: 0;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted-2); }

/* кнопки */
.btn { font: inherit; font-size: 15px; border: 0; cursor: pointer; border-radius: 12px; padding: 12px 22px; background: var(--inset); color: var(--text); transition: transform .15s, box-shadow .2s; display: inline-block; }
.btn:hover { transform: translateY(-1px); }
.btn.main { color: #0f0f0f; background: var(--accent); box-shadow: 0 0 28px rgba(217,119,87,.3); }
.btn.main:hover { box-shadow: 0 0 40px rgba(217,119,87,.5); }
.btn.big-btn { padding: 15px 28px; font-size: 16px; }
.btn.sm { padding: 9px 18px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.top { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 22px rgba(217,119,87,.35); }
.mark svg { width: 16px; height: 16px; }
.nav { display: flex; gap: 22px; margin-right: auto; font-size: 15px; color: var(--muted-2); }
.nav a:hover { color: var(--text); }
/* общие блоки */
.card { background: var(--card); border-radius: 18px; padding: 28px; min-width: 0; }
.card h2 { font-weight: 400; font-size: 22px; margin: 0; }
.glow { position: relative; overflow: hidden; }
.glow::before { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; top: -140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(217,119,87,.34), transparent); pointer-events: none; }
.glow > * { position: relative; }
section { padding-block: 36px; }
.sec-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 400; margin: 0 0 6px; }
.sec-sub { color: var(--muted-2); margin: 0 0 24px; max-width: 38em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step .n { width: 38px; height: 38px; border-radius: 11px; background: var(--inset); display: grid; place-items: center; margin-bottom: 18px; font-size: 17px; color: var(--accent); }
.step h3 { font-size: 20px; font-weight: 400; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted-2); font-size: 15px; }

/* тариф + форма */
.plan { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.big { font-size: clamp(48px, 7vw, 64px); line-height: 1; margin: 20px 0 6px; text-shadow: 0 0 40px rgba(217,119,87,.4); }
.big small { font-size: 20px; color: var(--muted-2); text-shadow: none; }
.tabs { display: inline-flex; background: var(--inset); border-radius: 12px; padding: 4px; gap: 2px; margin: 22px 0 14px; }
.tabs button { font: inherit; font-size: 14px; color: var(--muted-2); background: transparent; border: 0; border-radius: 9px; padding: 8px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rows li:last-child { border-bottom: 0; }
.rows li span:first-child { color: var(--muted-2); }
.rows li span:last-child { text-align: right; }
[hidden] { display: none !important; }

form { display: grid; gap: 14px; margin-top: 20px; }
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted-2); }
input[type=email], input[type=password], input[type=text] { font: inherit; font-size: 16px; color: var(--text); background: var(--inset); border: 1px solid transparent; border-radius: 12px; padding: 13px 14px; width: 100%; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--inset); margin: 1px 0 0; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--accent); box-shadow: 0 0 12px rgba(217,119,87,.4); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check a { color: var(--text); border-bottom: 1px solid var(--accent); }
.note { font-size: 13.5px; color: var(--muted); margin: 0; }
.err { font-size: 14px; color: #ff9b83; margin: 0; min-height: 1.4em; }
.err a { border-bottom: 1px solid currentColor; }

/* FAQ */
.faq { background: var(--card); border-radius: 18px; padding: 8px 28px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted-2); font-size: 15.5px; max-width: 46em; }

footer { border-top: 1px solid var(--line); margin-top: 28px; padding-block: 28px 44px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; font-size: 14px; color: var(--muted); }
footer a:hover { color: var(--text); }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--inset); padding: 12px 20px; border-radius: 12px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); z-index: 20; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- иконка профиля в шапке ---------- */
.profile-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--inset); color: var(--muted-2); font-size: 16px; transition: box-shadow .2s, color .2s, transform .15s; }
.profile-btn:hover { color: var(--text); box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(217,119,87,.35); transform: translateY(-1px); }
.profile-btn svg { width: 21px; height: 21px; stroke: currentColor; }
.profile-btn .ini { display: none; }
.profile-btn.on { background: var(--accent); color: #0f0f0f; box-shadow: 0 0 22px rgba(217,119,87,.35); }
.profile-btn.on svg { display: none; }
.profile-btn.on .ini { display: block; }
.nav a[aria-current="page"] { color: var(--text); }

/* ---------- внутренние страницы ---------- */
body.sub { position: relative; overflow-x: hidden; }
body.sub::before { content: ""; position: absolute; top: -220px; right: -180px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217,119,87,.22), transparent); filter: blur(60px); pointer-events: none; }
body.sub > * { position: relative; }
.page-head { padding-block: 28px 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 10px; max-width: none; }
.page-head p { margin: 0; color: var(--muted-2); max-width: 36em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat .big { font-size: clamp(40px, 5vw, 54px); margin: 6px 0 4px; }
.stat p { margin: 0; color: var(--muted-2); font-size: 15px; }
.tag { display: inline-block; padding: 3px 12px; border-radius: 99px; font-size: 13px; background: var(--inset); color: var(--muted-2); }
.tag.ok { color: #6fcf97; background: rgba(111,207,151,.12); }
.tag.bad { color: #ff9b83; background: rgba(255,155,131,.12); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn.ghost { background: var(--inset); color: var(--text); box-shadow: none; }
.field-hint { font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .plan, .steps, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .opt { display: none; }
}
@media (max-width: 480px) {
  .card { padding: 22px 18px; }
  .top { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.vpn { margin-top: 16px; }
.vpn h3 { font-weight: 400; font-size: 20px; margin: 0 0 16px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs > div { background: var(--inset); border-radius: 14px; padding: 18px; }
.vs p { margin: 10px 0 0; color: var(--muted-2); font-size: 15px; }
@media (max-width: 960px) { .vs { grid-template-columns: 1fr; } }
