/* Компас VPN — лендинг. Палитра и шрифты взяты из кабинета и бота. */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

:root {
  --accent: #F2B24B;
  --accent-dim: #C98F2E;
  --bg: #0D131C;
  --surface: #151D29;
  --text: #EAF0F6;
  --text-2: #8A97A9;
  --ok: #5BC08A;
  --line: color-mix(in oklab, var(--text) 12%, transparent);
  --glass-bg: color-mix(in oklab, var(--surface) 62%, transparent);
  --glass-brd: color-mix(in oklab, var(--text) 12%, transparent);
  --glass-hi: color-mix(in oklab, var(--text) 22%, transparent);
  --radius: 24px;
  --pad: 20px;
  --maxw: 1120px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F4F6F9;
    --surface: #FFFFFF;
    --text: #101826;
    --text-2: #5F6B7B;
    --glass-bg: color-mix(in oklab, var(--surface) 78%, transparent);
    --glass-brd: color-mix(in oklab, var(--text) 14%, transparent);
    --glass-hi: #FFFFFF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3, .num, .brand span { font-family: "Unbounded", "Golos Text", system-ui, sans-serif; }
h1 { font-size: clamp(30px, 6.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 18px; max-width: 16ch; }
h2 { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.015em; font-weight: 600; margin: 0 0 24px; }
h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
a { color: inherit; }

/* Медленное цветное свечение под стеклом */
.glow { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .28; pointer-events: none; z-index: 0; }
.glow-a { width: 62vw; height: 62vw; left: -18vw; top: -14vw; background: radial-gradient(circle, #F2B24B 0%, transparent 70%); animation: drift 54s ease-in-out infinite alternate; }
.glow-b { width: 58vw; height: 58vw; right: -20vw; top: 22vh; background: radial-gradient(circle, #2E6BE6 0%, transparent 70%); opacity: .18; animation: drift 68s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}

.wrap-width { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* Стекло */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-top-color: var(--glass-hi);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 0 color-mix(in oklab, var(--text) 8%, transparent) inset,
              0 -1px 0 0 rgb(0 0 0 / 35%) inset,
              0 24px 60px -24px rgb(0 0 0 / 55%);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: var(--surface); }
}
@supports (backdrop-filter: blur(1px)) {
  .glass { backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); }
}

/* Шапка */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad) 12px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; }
.mark { width: 26px; height: 26px; }
.bar-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.bar-nav a { text-decoration: none; color: var(--text-2); }
.bar-nav a:hover { color: var(--text); }
.pill {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 9px 16px; border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px var(--accent); }

main { position: relative; z-index: 1; }
section { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Герой */
.hero { padding-top: clamp(28px, 6vw, 64px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero .lead { color: var(--text-2); font-size: clamp(16px, 2.2vw, 19px); max-width: 60ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 34px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  background: var(--accent); color: #12181f;
  font-weight: 600; font-size: 17px;
  border-radius: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  touch-action: manipulation;
}
.cta:active { transform: translateY(1px); box-shadow: 0 6px 16px -10px var(--accent); }
.price-tag { font-size: 16px; color: var(--text-2); }
.price-tag b { color: var(--text); }
.price-tag small { font-size: 14px; }

.status { list-style: none; margin: 0; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 15px; }
.status li { display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px color-mix(in oklab, var(--ok) 60%, transparent); }
.status b { font-weight: 500; }
.status .ms { color: var(--text-2); font-variant-numeric: tabular-nums; }
.status-note { color: var(--text-2); margin-left: auto; }

/* Тарифы */
.section { padding-top: clamp(36px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.periods { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: color-mix(in oklab, var(--text) 6%, transparent); border: 1px solid var(--line); }
.periods button {
  appearance: none; border: 0; background: transparent; color: var(--text-2);
  font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 11px; cursor: pointer;
  min-height: 40px; touch-action: manipulation;
}
.periods button[aria-selected="true"] { background: var(--accent); color: #12181f; font-weight: 600; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.card { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.card.is-featured { border-color: color-mix(in oklab, var(--accent) 55%, transparent); transform: translateY(-8px); }
.flag {
  align-self: flex-start;
  font-size: 12px; letter-spacing: .02em; font-weight: 600;
  color: #12181f; background: var(--accent);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.card-price { display: flex; align-items: baseline; gap: 4px; margin: 6px 0 2px; }
.num { font-size: clamp(30px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.card-price small { color: var(--text-2); font-size: 14px; }
.card-note { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.card ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; font-size: 15px; color: var(--text); }
.card ul li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 10px; vertical-align: middle; }
.btn {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600;
  transition: background .15s ease, transform .15s ease;
  touch-action: manipulation;
}
.btn:hover { background: color-mix(in oklab, var(--text) 8%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #12181f; border-color: transparent; }
.btn-accent:hover { background: color-mix(in oklab, var(--accent) 88%, #000); }

.fineprint { color: var(--text-2); font-size: 13px; margin-top: 16px; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: none; }
.steps li { padding: 0; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 12px;
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  color: var(--accent); font-weight: 700; font-size: 15px;
  margin-bottom: 10px; font-family: "Unbounded", sans-serif;
}
.steps h3 { font-size: 17px; }
.steps p { color: var(--text-2); font-size: 15px; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 4px 18px; background: color-mix(in oklab, var(--text) 4%, transparent);
}
.faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { color: var(--text-2); font-size: 15px; padding-bottom: 8px; }

footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-2); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Мобильный */
@media (max-width: 720px) {
  .bar-nav a:not(.pill) { display: none; }
  .status-note { margin-left: 0; width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card.is-featured { transform: none; }
  .periods { width: 100%; justify-content: space-between; }
  .periods button { flex: 1; padding: 8px 6px; }
}

/* Доступность и моушен */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
  * { transition: none !important; }
}
