/* Kavo VPN — site styles (palette follows KavoTheme in the iOS app) */
:root {
  --navy: #0C1730;
  --navy-deep: #0A1424;
  --card: #131F3A;
  --card-2: #1B2942;
  --line: #22304A;
  --line-strong: #2A3A58;
  --blue: #2F6BF0;
  --blue-hover: #1F5FE8;
  --blue-text: #4D86FF;
  --blue-soft: #9CC0FF;
  --text: #FFFFFF;
  --text-2: #9AA4B4;
  --text-3: #7C8798;
  --paper: #FFFFFF;
  --paper-2: #F7F9FC;
  --ink: #0C1730;
  --ink-2: #4A5568;
  --ink-3: #6B7686;
  --paper-line: #E3E8F0;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--blue-soft); }
:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.muted { color: var(--text-2); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(12, 23, 48, .86);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.wordmark span { color: var(--blue-text); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a.btn, .nav a.btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; color: var(--text); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; border: 0;
  background: var(--blue); color: #fff; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--blue-hover); color: #fff; transform: translateY(-1px); }
.btn-small { padding: 10px 18px; border-radius: 12px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { background: var(--card); color: var(--text); border-color: var(--blue); }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--text); text-decoration: none; }
.store svg { width: 26px; height: 26px; color: var(--blue-text); }
.store small { display: block; font-size: .72rem; color: var(--text-2); letter-spacing: .02em; line-height: 1.2; }
.store strong { display: block; font-size: 1.05rem; line-height: 1.25; }
a.store:hover { border-color: var(--blue); color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: 80px 0 0; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 88px; align-self: center; }
.hero h1 .accent { color: var(--blue-text); }
.lead { font-size: 1.2rem; color: var(--text-2); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding: 0; list-style: none; }
.chips li { font-size: .86rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); background: rgba(19, 31, 58, .7);
  padding: 6px 12px 6px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-text); }

.hero-art { position: relative; height: 560px; }
.hero-art .rings { position: absolute; left: 50%; top: 10px; width: 520px; height: 520px; margin-left: -260px; }
.hero-art .rings circle { fill: none; }
.ring-base { stroke: var(--line); stroke-width: 1.5; }
.ring-glow { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 520 1200; stroke-linecap: round; opacity: .9; }
.ring-ticks { stroke: #405679; stroke-width: 2; stroke-dasharray: 2 58; }
.hero-art::before { content: ""; position: absolute; left: 50%; top: 52%; width: 460px; height: 460px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47, 107, 240, .35) 0%, rgba(47, 107, 240, .08) 45%, transparent 70%); pointer-events: none; }
.phone { position: absolute; width: 262px; padding: 9px; border-radius: 46px; background: #060D1C; border: 1.5px solid var(--line-strong);
  box-shadow: 0 30px 60px rgba(2, 6, 18, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.phone img { border-radius: 38px; width: 100%; }
.phone.back { left: 2%; top: 60px; transform: rotate(-7deg); opacity: .92; }
.phone.front { right: 6%; top: 18px; transform: rotate(4deg); }
/* первый экран: телефоны «выныривают» снизу, низ экрана скрыт краем блока */
.phone.cut { top: auto; bottom: 0; transform: none; border-radius: 46px 46px 0 0; border-bottom: 0; padding-bottom: 0; }
.phone.cut img { border-radius: 38px 38px 0 0; }
.phone.back.cut { width: 232px; left: 4%; bottom: 0; opacity: .78; }
.phone.front.cut { width: 290px; right: 4%; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.band { background: var(--navy-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.kicker { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card p { color: var(--text-2); margin: 0; font-size: .98rem; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(47, 107, 240, .14); color: var(--blue-text); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }

/* split with a phone */
.split { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.split.reverse { grid-template-columns: 340px 1fr; }
.split .phone { position: relative; width: 300px; margin: 0 auto; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 64px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-family: var(--font-display); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--text-2); margin: 0; }

/* privacy block */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.list-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.list-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.list-card ul { list-style: none; margin: 0; padding: 0; }
.list-card li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-2); font-size: .97rem; }
.list-card li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; }
.list-card.never li::before { background: rgba(255, 138, 144, .16); box-shadow: inset 0 0 0 1.5px #FF8A90; }
.list-card.never li::after { content: ""; position: absolute; left: 4px; top: calc(.42em + 7px); width: 8px; height: 2px; background: #FF8A90; }
.list-card.sent li::before { background: rgba(47, 107, 240, .18); box-shadow: inset 0 0 0 1.5px var(--blue-text); }
.list-card.sent li::after { content: ""; position: absolute; left: 6px; top: calc(.42em + 3px); width: 4px; height: 8px; border: solid var(--blue-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.more { margin-top: 22px; }
.list-card.cols ul { columns: 2; column-gap: 28px; }
.list-card.cols li { break-inside: avoid; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 650; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--blue-text); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-2); margin: 0 0 22px; max-width: 46em; }

/* CTA */
.cta { border-radius: 28px; padding: 56px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1B47B8 0%, #2F6BF0 55%, #4D86FF 100%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: rgba(255, 255, 255, .86); max-width: 36em; margin: 0 auto 26px; }
.cta .btn { background: #fff; color: var(--ink); }
.cta .btn:hover { background: var(--paper-2); color: var(--ink); }
.cta::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; bottom: -200px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .08); }

/* ---------- inner pages ---------- */
.page-head { padding: 64px 0 96px; }
.page-head p { color: var(--text-2); font-size: 1.1rem; max-width: 40em; }
.page-head .meta { font-size: .92rem; color: var(--text-3); margin-top: 12px; }
.paper { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 48px 56px; max-width: 860px; margin: -64px auto 96px; }
.paper h2 { font-size: 1.4rem; margin-top: 2em; scroll-margin-top: 90px; color: var(--ink); }
.paper h2:first-of-type { margin-top: .6em; }
.paper h3 { font-size: 1.06rem; margin-top: 1.6em; color: var(--ink); }
.paper p, .paper li { color: var(--ink-2); }
.paper ul, .paper ol { padding-left: 22px; }
.paper li { margin-bottom: .45em; }
.paper a { color: var(--blue); }
.paper a:hover { color: var(--blue-hover); }
.paper strong { color: var(--ink); }
.toc { background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: 16px; padding: 20px 26px; margin-bottom: 8px; }
.toc strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: .95rem; margin-bottom: 4px; break-inside: avoid; }
.summary { background: #EEF3FE; border-radius: 16px; padding: 20px 24px; margin: 26px 0 0; }
.summary ul { margin: 8px 0 0; }
.summary li { color: var(--ink); }

/* support */
.support-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin: -64px auto 96px; max-width: 980px; }
.support-grid .paper { margin: 0; max-width: none; padding: 40px; }
.email-line { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 750; margin: 6px 0 20px; word-break: break-all; }
.email-line a { color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--blue); }
.email-line a:hover { color: var(--blue); }
.paper .checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 14px 0; border-top: 1px solid var(--paper-line); }
.checklist li:first-child { border-top: 0; }
.checklist strong { display: block; }
.checklist span { color: var(--ink-3); font-size: .95rem; }
address { font-style: normal; line-height: 1.7; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--text-2); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { margin-bottom: 14px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--text-3); }

/* 404 */
.nf { padding: 120px 0; text-align: center; }
.nf .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--blue-text); line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-copy { padding-bottom: 32px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .phone { order: 2; }
  .support-grid { grid-template-columns: 1fr; margin-left: 24px; margin-right: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { justify-content: center; margin-top: 14px; border-bottom: 0; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 14px; padding: 0; border: 0; background: none; }
  .no-js .nav-toggle { display: none; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .hero-art { height: 400px; }
  .hero-art .rings { width: 400px; height: 400px; left: 50%; margin-left: -200px; }
  .hero-art::before { width: 360px; height: 360px; }
  .phone { width: 200px; border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
  .phone.back.cut { width: 176px; left: 0; }
  .phone.front.cut { width: 222px; right: 0; }
  .split .phone { width: 250px; }
  .grid-3, .lists { grid-template-columns: 1fr; }
  .list-card.cols ul { columns: 1; }
  .cta { padding: 40px 24px; }
  .paper { padding: 30px 22px; border-radius: 20px; margin-left: 16px; margin-right: 16px; }
  .toc ol { columns: 1; }
  .support-grid { margin-left: 16px; margin-right: 16px; }
  .support-grid .paper { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
