/* VPNimus — сайт-визитка. Шрифт Onest (OFL), свои файлы, без внешних запросов. */
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/onest-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/onest-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/onest-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/onest-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url("fonts/onest-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url("fonts/onest-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #EEF3F6;        /* снег */
  --surface: #FFFFFF;
  --ink: #0F2238;       /* северная ночь */
  --muted: #55687B;
  --line: #D3DDE5;
  --accent: #0A8F7A;    /* полярное сияние */
  --accent-strong: #077363;
  --on-accent: #FFFFFF;
  --track: #D6E4E8;
  --phone: #0F2238;
  --phone-ink: #E7EEF4;
  --phone-muted: #8FA4B8;
  --radius-lg: 28px;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1826;
    --surface: #13243A;
    --ink: #E7EEF4;
    --muted: #93A6B8;
    --line: #23394F;
    --accent: #34D1B2;
    --accent-strong: #5FE0C6;
    --on-accent: #062019;
    --track: #1E3A4C;
    --phone: #071321;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "tnum" 0;
}
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; max-width: 100%; }

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

/* Шапка */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; font-size: 16px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 17px/1 "Onest", system-ui, sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 20px; height: 20px; }

/* Первый экран */
.hero { padding: 40px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 22px; font-weight: 800; font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
.hero .lead { margin: 0 0 34px; font-size: 20px; color: var(--muted); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* Экран приложения — главный образ страницы */
.phone {
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 9 / 18.5;
  background: var(--phone);
  color: var(--phone-ink);
  border-radius: 44px;
  padding: 30px 26px;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -30px rgba(15, 34, 56, .45), inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone .bar { display: flex; justify-content: space-between; font-size: 13px; color: var(--phone-muted); }
.phone .status { margin-top: 34px; font-size: 15px; color: var(--phone-muted); text-align: center; }
.phone .status strong { display: block; margin-top: 4px; font-size: 22px; color: var(--phone-ink); font-weight: 600; }
.power {
  margin: 28px auto 0; width: 156px; height: 156px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #3BE0BF 0%, #12A88E 55%, #0A7E6B 100%);
  box-shadow: 0 0 0 12px rgba(52, 209, 178, .12), 0 0 0 26px rgba(52, 209, 178, .06);
}
.power svg { width: 58px; height: 58px; color: #062019; }
.phone .country { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 15px; }
.phone .country span:last-child { color: var(--phone-muted); }
.meter { margin-top: 14px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.06); }
.meter .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--phone-muted); }
.meter .row b { color: var(--phone-ink); font-weight: 600; }
.meter .track { margin-top: 10px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; }
.meter .fill { height: 100%; width: 70%; border-radius: 8px; background: #34D1B2; transform-origin: left; animation: fill 1.4s cubic-bezier(.2,.7,.2,1) .3s both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .meter .fill { animation: none; } }

/* Разделы */
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 14px; font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.section .intro { margin: 0 0 44px; color: var(--muted); max-width: 56ch; }

/* Как это работает — настоящая последовательность шагов */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-strong); font-weight: 800; }
.steps h3 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }

/* Бесплатно и подписка */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.compare th, .compare td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 20px; font-weight: 800; padding-top: 26px; }
.compare thead th:last-child { color: var(--accent-strong); }
.compare tbody th { font-weight: 400; color: var(--muted); width: 32%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Тарифы — список, а не карточки */
.plans { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--radius-lg); }
.plan { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding: 26px 30px; border-bottom: 1px solid var(--line); }
.plan:last-child { border-bottom: 0; }
.plan .name { font-size: 22px; font-weight: 600; }
.plan .name small { display: block; margin-top: 2px; font-size: 15px; font-weight: 400; color: var(--muted); }
.plan .per { color: var(--muted); font-size: 16px; text-align: right; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; min-width: 5.5ch; text-align: right; }
.plan.best { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.plan.best .name small { color: var(--accent-strong); }
.plans-note { margin: 20px 0 0; color: var(--muted); font-size: 16px; max-width: 70ch; }
.plans:first-child { border-top-left-radius: var(--radius-lg); }
.plan:first-child { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.plan:last-child { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }

/* Поддержка */
.support .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.support ul { margin: 0; padding: 0 0 0 1.1em; color: var(--muted); }
.support li { margin: 0 0 12px; }
.support li strong { color: var(--ink); font-weight: 600; }

/* Вопросы */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* Скачать */
.get .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.get h2 { margin-bottom: 8px; }
.get p { margin: 0; color: var(--muted); }

/* Подвал */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* Документы: оферта, политика, контакты */
.doc { padding: 28px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { margin: 0 0 8px; font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -0.025em; }
.doc .date { margin: 0 0 40px; color: var(--muted); }
.doc h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 600; }
.doc p, .doc li { color: var(--ink); }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin: 0 0 8px; }
.doc .muted { color: var(--muted); }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }

/* Мобильные */
@media (max-width: 900px) {
  .hero .wrap, .support .wrap { grid-template-columns: 1fr; gap: 44px; }
  .phone { width: min(100%, 300px); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .hero { padding: 20px 0 64px; }
  .section { padding: 60px 0; }
  .plan { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px; }
  .plan .per { grid-column: 1; grid-row: 2; text-align: left; }
  .plan .price { grid-column: 2; grid-row: 1 / span 2; font-size: 26px; }
  .compare th, .compare td { padding: 14px 14px; font-size: 16px; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd { margin-bottom: 12px; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.steps-doc { counter-reset: s; list-style: none; padding: 0; }
.steps-doc li { counter-increment: s; position: relative; padding-left: 52px; margin: 0 0 22px; }
.steps-doc li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent-strong); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.callout { margin: 0 0 36px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border-left: 4px solid var(--accent); }
