/* Штиль VPN — палитра и плотность взяты из самих приложений:
   desktop/app/src/assets/tokens.css и mobile/.../ui/theme/Color.kt.
   Ни одного внешнего запроса: шрифт системный, как в приложениях. */

:root {
  --ink-950: #090e1a;
  --ink-900: #0e1728;
  --ink-800: #17263f;
  --ink-700: #1e2e4a;
  --ink-600: #2c3e5f;
  --ink-400: #9baac4;
  --azure-500: #4f92ff;
  --azure-400: #7fb2ff;
  --azure-200: #a5c5ff;
  --azure-ink: #06152e;
  --green-400: #46d189;

  --bg: var(--ink-950);
  --bg-glow: rgba(79, 146, 255, .16);
  --surface: rgba(23, 38, 63, .66);
  --surface-solid: var(--ink-900);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #e9effa;
  --text-muted: var(--ink-400);
  --accent: var(--azure-400);
  --accent-strong: var(--azure-500);
  --on-accent: var(--azure-ink);
  --shadow: 0 20px 48px rgba(0, 0, 0, .38);

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 9999px;
  --page: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7fc;
    --bg-glow: rgba(79, 146, 255, .12);
    --surface: #ffffff;
    --surface-solid: #ffffff;
    --border: rgba(155, 170, 196, .28);
    --border-strong: rgba(155, 170, 196, .5);
    --text: #0e1728;
    --text-muted: #5a6b85;
    --accent: #1f5fc4;
    --accent-strong: #4f92ff;
    --on-accent: #ffffff;
    --shadow: 0 12px 32px rgba(15, 23, 42, .1);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -30vh 0 auto 0;
  height: 90vh;
  background: radial-gradient(60% 55% at 50% 0%, var(--bg-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

.wrap { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
a { color: var(--accent); }

section { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--text-muted); margin-top: .8rem; font-size: 1.05rem; }

/* шапка */
.top {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.4rem 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand img { width: 34px; height: 34px; }
.brand b { font-size: 1.05rem; letter-spacing: .06em; font-weight: 600; }
.langs { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; }
.langs a {
  text-decoration: none; color: var(--text-muted); font-size: .92rem;
  padding: .3rem .6rem; border-radius: var(--radius-sm);
}
.langs a:hover { color: var(--text); background: var(--surface); }
.langs .on { color: var(--text); background: var(--surface); border: 1px solid var(--border); }

/* первый экран */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem); text-align: center; }
.hero img.mark { width: clamp(88px, 14vw, 124px); height: auto; margin-bottom: 1.6rem; }
.hero p.lead {
  color: var(--text-muted); font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 40rem; margin: 1.2rem auto 0;
}
.cta { margin-top: clamp(2rem, 4vw, 2.8rem); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); padding: .85em 2.4em;
  border-radius: var(--pill); background: var(--accent-strong); color: var(--on-accent);
  box-shadow: 0 12px 28px rgba(79, 146, 255, .28);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--azure-400); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--azure-400); outline-offset: 4px; }
.cta .sub { display: block; margin-top: .9rem; color: var(--text-muted); font-size: .95rem; }
.cta .sub a { color: var(--text-muted); }

.badges {
  display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.2rem; color: var(--text-muted); font-size: .9rem;
}
.badges span {
  border: 1px solid var(--border); border-radius: var(--pill);
  padding: .35rem .9rem; background: var(--surface);
}

/* карточки */
.grid { display: grid; gap: 1.1rem; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem 1.5rem;
  backdrop-filter: blur(18px);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: var(--pill);
  background: rgba(79, 146, 255, .16); color: var(--accent);
  font-weight: 700; margin-bottom: .9rem;
}

/* схема маршрутов */
.split { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: center; }
.split svg { width: 100%; height: auto; max-width: min(34rem, 100%); color: var(--text); }
.split ul { margin: 1.2rem 0 0; padding-left: 1.1rem; color: var(--text-muted); }
.split li { margin-bottom: .5rem; }

/* снимки: колонки заданы пропорциями самих снимков, поэтому высота у трёх одна */
.shots {
  display: grid; gap: 1.6rem; align-items: end;
  grid-template-columns: 0.5fr 1.2fr 0.96fr;
}
@media (max-width: 820px) { .shots { grid-template-columns: 1fr; justify-items: center; } }
.shot { text-align: center; margin: 0; min-width: 0; }
.shot img {
  display: block; width: 100%; height: auto; max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow); background: var(--surface-solid);
}
@media (max-width: 820px) { .shot img { max-width: 420px; } }
.shot span { display: block; margin-top: .7rem; color: var(--text-muted); font-size: .9rem; }

/* цены */
.price { text-align: center; }
.price .amount { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; }
.price .per { color: var(--text-muted); font-size: .95rem; }
.price .note { color: var(--text-muted); margin-top: .8rem; font-size: .95rem; }
.price.free { border-color: rgba(70, 209, 137, .35); }
.price.free .amount { color: var(--green-400); }
@media (prefers-color-scheme: light) { .price.free .amount { color: #0e7a47; } }

/* вопросы */
details {
  border-bottom: 1px solid var(--border); padding: 1.1rem 0;
}
details summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 1rem;
  align-items: baseline;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; margin-left: auto; color: var(--accent); font-weight: 400; }
details[open] summary::after { content: "−"; }
details:last-child { border-bottom: none; }
details p { color: var(--text-muted); margin-top: .8rem; max-width: 52rem; }

/* таблица платформ */
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: .85rem .6rem; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; }
td code { font-size: .88rem; color: var(--text-muted); }

footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0 3.5rem;
  color: var(--text-muted); font-size: .92rem;
}
footer .grid { margin-bottom: 1.6rem; }
footer a { color: var(--accent); }

[dir="rtl"] .langs { margin-left: 0; margin-right: auto; }
[dir="rtl"] .split ul { padding-left: 0; padding-right: 1.1rem; }

/* последний экран: та же кнопка, что наверху */
.last { text-align: center; }
.last p { color: var(--text-muted); max-width: 34rem; margin: .9rem auto 0; }
.last .cta { margin-top: 1.8rem; }
