/* Bunker VPN — общий стиль сайта. Без внешних шрифтов и скриптов. */

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --text: #13171d;
  --muted: #586271;
  --border: #e1e5ea;
  --accent: #0e7c66;
  --accent-hover: #0a6654;
  --on-accent: #ffffff;
  --accent-soft: #e2f3ee;
  --accent-text: #0b6b58;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
  --radius: 14px;
  --maxw: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1015;
    --surface: #141a21;
    --surface-2: #1b232c;
    --text: #e6ebf0;
    --muted: #9ba7b4;
    --border: #26303b;
    --accent: #3cc6a3;
    --accent-hover: #5ad3b4;
    --on-accent: #052a21;
    --accent-soft: #11302a;
    --accent-text: #5fd6b8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container { padding: 0 24px; }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
}
.skip-link:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.nowrap { white-space: nowrap; }

/* ---------- Шапка ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 60px;
  padding-top: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand .vpn { color: var(--accent-text); }

.logo-bg { fill: var(--accent); }
.logo-fg { fill: var(--on-accent); }

.header-cta { margin-left: auto; }

.nav {
  order: 3;
  display: flex;
  gap: 2px;
  width: calc(100% + 16px);
  margin: 0 -8px;
  padding: 2px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

@media (min-width: 880px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
  }
  .header-bar { flex-wrap: nowrap; min-height: 64px; padding-top: 0; }
  .nav { order: 0; width: auto; margin: 0 0 0 28px; padding: 0; overflow: visible; }
  .nav a { padding: 6px 10px; font-size: 15px; }
  [id] { scroll-margin-top: 80px; }
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .i { width: 20px; height: 20px; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }

.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14.5px; border-radius: 10px; }
.btn-sm .i { width: 18px; height: 18px; }

.btn-block { width: 100%; }

/* ---------- Первый экран ---------- */

.hero { padding: 36px 0 56px; }

.hero-grid { display: grid; gap: 36px; align-items: center; }

@media (min-width: 920px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 650;
}

.hero h1 {
  font-size: clamp(31px, 6.4vw, 52px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.lead {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}
.checks li { display: flex; align-items: center; gap: 7px; }
.checks .i { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.25; }

/* Схема «устройства → роутер → два пути» */

.flow {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
}
.flow-node strong { display: block; font-size: 15px; line-height: 1.3; }
.flow-node small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }

.flow-icons { display: flex; gap: 4px; color: var(--muted); }
.flow-icons .i { width: 22px; height: 22px; }

.flow-router { background: var(--accent); color: var(--on-accent); }
.flow-router small { color: inherit; opacity: .85; }
.flow-router .i { width: 26px; height: 26px; }

.flow-line { display: block; width: 100%; height: 26px; color: var(--muted); }
.flow-line path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}

.flow-outs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.flow-out {
  padding: 13px 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.flow-out.secure {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--accent-soft);
}

.flow-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.flow-tag .i { width: 18px; height: 18px; stroke-width: 2; }
.flow-out.secure .flow-tag { color: var(--accent-text); }
.flow-out p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.flow-caption { margin: 14px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- Секции ---------- */

.section { padding: 56px 0; }

@media (min-width: 920px) {
  .section { padding: 88px 0; }
}

.section-alt {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.section-head { max-width: 660px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 4.6vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.section-alt .card { background: var(--bg); }

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* Шаги */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.step { padding: 22px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.step-top .icon-box { margin: 0; }
.step-num { color: var(--muted); font-size: 14px; font-weight: 650; }
.step h3 { font-size: 19px; }
.step p { margin: 0; color: var(--muted); }
.step p + p { margin-top: 10px; }

/* Преимущества */

.features { display: grid; gap: 16px; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.feature { padding: 22px; }
.feature h3 { font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }

/* Роутеры */

.routers { display: grid; gap: 14px; }

@media (min-width: 640px) {
  .routers { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .routers { grid-template-columns: repeat(4, 1fr); }
}

.router-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.router-card .i { width: 28px; height: 28px; margin-bottom: 6px; color: var(--muted); }
.router-card h3 { margin: 0; font-size: 17px; }
.router-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}
.badge-muted { background: var(--surface-2); color: var(--muted); }

.note { margin: 18px 0 0; color: var(--muted); font-size: 15px; }

/* Тарифы */

.plans { display: grid; gap: 16px; }

@media (min-width: 800px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.plan { position: relative; display: flex; flex-direction: column; padding: 24px; }
.plan-name { margin: 0 0 8px; color: var(--muted); font-size: 16px; font-weight: 650; }
.plan-price { margin: 0; font-size: 42px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.plan-price .cur { font-size: 26px; font-weight: 700; }
.plan-per { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.plan .btn { margin-top: 20px; }
.plan .badge { position: absolute; top: 20px; right: 20px; margin: 0; }
.plan-accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.includes {
  display: grid;
  gap: 10px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.includes li { display: flex; gap: 10px; align-items: flex-start; }
.includes .i { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); stroke-width: 2.25; }

@media (min-width: 720px) {
  .includes { grid-template-columns: repeat(2, 1fr); }
}

.service-info {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 15px;
}
.service-info h3 { font-size: 16px; margin-bottom: .6em; }
.service-info ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.service-info li { margin: .35em 0; }

/* Вопросы */

.faq { max-width: 800px; border-top: 1px solid var(--border); }

.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  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(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--accent-text); }

.answer { padding: 0 0 20px; color: var(--muted); }
.answer p:last-child { margin-bottom: 0; }

/* Призыв внизу */

.cta-band {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 30px 24px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--on-accent);
}
.cta-band h2 { margin-bottom: .3em; font-size: clamp(24px, 4vw, 30px); font-weight: 800; }
.cta-band p { margin: 0; opacity: .9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-on-accent { background: var(--on-accent); color: var(--accent); }
.btn-on-accent:hover { background: var(--surface-2); color: var(--accent-text); }
.btn-ghost-on-accent { border-color: currentColor; color: var(--on-accent); }
.btn-ghost-on-accent:hover { background: color-mix(in srgb, var(--on-accent) 12%, transparent); color: var(--on-accent); }

@media (max-width: 479px) {
  .cta-actions .btn { flex: 1 1 100%; }
}

@media (min-width: 860px) {
  .cta-band { grid-template-columns: 1fr auto; padding: 40px 44px; }
}

/* ---------- Подвал ---------- */

.site-footer {
  padding: 44px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
}

.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.footer-about, .footer-seller { grid-column: 1 / -1; }

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.3fr .8fr .9fr 1.2fr; gap: 36px; }
  .footer-about, .footer-seller { grid-column: auto; }
}

.footer-about p { margin: 12px 0 0; }

.footer-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }

.seller { margin: 0; font-style: normal; line-height: 1.7; overflow-wrap: anywhere; }

.footer-bottom {
  display: grid;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.footer-bottom p { margin: 0; }

/* ---------- Текстовые страницы ---------- */

.page-head { padding: 40px 0 12px; }
.page-head h1 { max-width: 800px; font-size: clamp(28px, 5.2vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.page-head .lead { margin: 0; }
.page-meta { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

.prose { max-width: 780px; padding-bottom: 72px; overflow-wrap: break-word; }
.prose h2 { margin: 2em 0 .6em; font-size: 22px; font-weight: 750; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 17.5px; }
.prose ol, .prose ul { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li > ul, .prose li > ol { margin: .35em 0 0; }
.prose .clause { margin: 0 0 .8em; }
.prose .clause b { font-weight: 650; }

.toc {
  margin: 24px 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc p { margin: 0 0 8px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 0; padding: .2em 0; break-inside: avoid; }

.callout {
  margin: 0 0 1.5em;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-muted { background: var(--surface-2); }

.table-wrap {
  margin: 0 0 1.2em;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }

.requisites {
  display: grid;
  grid-template-columns: minmax(96px, max-content) 1fr;
  gap: 8px 18px;
  margin: 0 0 1em;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 420px) {
  .requisites { grid-template-columns: 1fr; gap: 2px; }
  .requisites dd { margin-bottom: 8px; }
}

/* Контакты */

.contact-grid { display: grid; gap: 16px; margin: 8px 0 32px; }

@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-card { display: flex; flex-direction: column; padding: 22px; }
.contact-card h2 { margin: 0 0 .3em; font-size: 18px; }
.contact-card p { margin: 0 0 12px; color: var(--muted); }
.contact-card .value { margin: 0; color: var(--text); font-weight: 650; overflow-wrap: anywhere; }
.contact-card .value:not(:last-child) { margin-bottom: 16px; }
.contact-card .btn { align-self: flex-start; margin-top: auto; }

/* Установка */

ul.req-list { display: grid; gap: 12px; margin: 0 0 1.5em; padding: 0; list-style: none; }
ul.req-list li {
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.req-list .i { margin-top: 1px; color: var(--accent); }
.req-list strong { display: block; }
.req-list span { color: var(--muted); font-size: 15px; }

ol.num-steps { counter-reset: n; margin: 0 0 1.5em; padding: 0; list-style: none; }
.num-steps li { position: relative; margin: 0 0 14px; padding-left: 44px; }
.num-steps li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 750;
}
.num-steps strong { display: block; }
.num-steps span { color: var(--muted); }

.soon {
  margin: 0 0 1.5em;
  padding: 22px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border));
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.soon h2 { margin: 0 0 .4em; font-size: 19px; }
.soon p { margin: 0 0 14px; }
.soon .btn { margin-top: 2px; }
