/* КиберБуст — лаконичный дизайн в стиле RSSVpn (ui.css + site.css). Без сторонних шрифтов и тяжёлых эффектов. */
:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e0e3e8;
  --border-strong: #c7cdd6;
  --text: #14171c;
  --text-2: #3f4651;
  --muted: #646c78;
  --accent: #2f6fed;
  --accent-hover: #255fd6;
  --accent-text: #ffffff;
  --accent-weak: #eaf1fe;
  --ok: #17784b;
  --ok-weak: #e7f5ed;
  --warn: #935800;
  --warn-weak: #fcf2e0;
  --bad: #c0352f;
  --bad-weak: #fcebea;
  --focus: #2f6fed;
  --overlay: rgba(15, 18, 24, 0.5);
  --radius: 8px;
  --radius-sm: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --header-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1014;
    --surface: #16191e;
    --surface-2: #1d2128;
    --border: #2a2f37;
    --border-strong: #3a414c;
    --text: #e9ebee;
    --text-2: #c3c8d0;
    --muted: #949ca8;
    --accent: #5a8dff;
    --accent-hover: #7aa3ff;
    --accent-text: #0b1020;
    --accent-weak: #1a2640;
    --ok: #4cc58a;
    --ok-weak: #13281e;
    --warn: #e2a64b;
    --warn-weak: #2c2214;
    --bad: #f0736b;
    --bad-weak: #2e1716;
    --focus: #7aa3ff;
    --overlay: rgba(0, 0, 0, 0.65);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1014;
  --surface: #16191e;
  --surface-2: #1d2128;
  --border: #2a2f37;
  --border-strong: #3a414c;
  --text: #e9ebee;
  --text-2: #c3c8d0;
  --muted: #949ca8;
  --accent: #5a8dff;
  --accent-hover: #7aa3ff;
  --accent-text: #0b1020;
  --accent-weak: #1a2640;
  --ok: #4cc58a;
  --ok-weak: #13281e;
  --warn: #e2a64b;
  --warn-weak: #2c2214;
  --bad: #f0736b;
  --bad-weak: #2e1716;
  --focus: #7aa3ff;
  --overlay: rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15.5px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 650; letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.18; }
h2 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; }
h3 { font-size: 17px; line-height: 1.35; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13.5px; line-height: 20px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.section { padding: 44px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  min-height: var(--header-h); padding: 8px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-weight: 700; font-size: 17px; margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--text-2); padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 14.5px; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 15px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; height: 34px; padding: 0; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge-accent { background: var(--accent-weak); color: var(--accent); border-color: transparent; }
.badge-ok { background: var(--ok-weak); color: var(--ok); border-color: transparent; }

/* Hero (exact RSSVpn 2-col layout + 2x2 hairline facts grid) */
.hero { padding: 40px 0 44px; }
.hero-grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 48px; }
}
.lead { font-size: 17px; line-height: 1.55; color: var(--text-2); margin-top: 14px; max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.facts li { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.fact-title { font-weight: 650; font-size: 15px; }
.fact-text { font-size: 13.5px; line-height: 19px; color: var(--muted); }

/* Search & Category Toolbar */
.catalog-tools { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 22px; }
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.input {
  width: 100%; padding: 10px 13px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 14.5px;
}
.input:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: var(--focus); }
.search-input { max-width: 440px; flex: 1 1 260px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }

/* Product Grid & Laconic Cards */
.grid-products { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pcard {
  display: flex; flex-direction: column; gap: 10px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .14s ease;
}
.pcard:hover { border-color: var(--accent); }
.pcard.is-vip { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.pcard-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.pcard h3 { font-size: 16px; line-height: 1.35; }
.pcard h3 a { color: var(--text); }
.pcard h3 a:hover { color: var(--accent); }
.pcard-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.48; margin: 0; }
.pcard-perks { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.pcard-perks li::before { content: "• "; color: var(--accent); font-weight: 700; }
.pcard-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price-now { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-old { font-size: 13.5px; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.pcard-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* Steps, Lookup & FAQ */
.grid-3 { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step-num { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.lookup-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lookup-row .input { max-width: 320px; }

.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--text-2); }

/* Product Detail Page */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.detail-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 840px) { .detail-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr); align-items: start; } }
.file-ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.file-ul li {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 11px; font-family: var(--mono); font-size: 12.5px; color: var(--text);
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0; margin-top: 40px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.footer-links a { color: var(--text-2); }

/* Dialogs / Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  position: relative; width: 100%; max-width: 490px; max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 22px;
  scrollbar-width: thin;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-size: 14px;
}
.modal-title { font-size: 19px; margin: 10px 0 6px; padding-right: 34px; }
.co-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.co-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--text-2); }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13.5px; }
.alert-bad { background: var(--bad-weak); color: var(--bad); }
.alert-ok { background: var(--ok-weak); color: var(--ok); text-align: center; padding: 16px; border: 1px solid var(--ok); }
.kv-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0 16px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }

.pcard > .badge { align-self: flex-start; }
.pager { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:24px; flex-wrap:wrap; }

/* eco-strip: quick links back to main RSSVpn project */
.brand-back {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  margin-left: 2px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 16px;
  font-weight: 600;
  background: var(--accent-weak);
  color: var(--accent);
}
.btn-vpn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-weak);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  font-weight: 600;
}
.btn-vpn:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.eco-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.eco-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, border-color .14s ease, box-shadow .14s ease;
  white-space: nowrap;
}
.eco-pill:hover { text-decoration: none; transform: translateY(-1px); }
.eco-pill svg { width: 15px; height: 15px; flex: none; }
.eco-pill-vpn {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.eco-pill-vpn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 24%, transparent);
}
.eco-pill-aura {
  background: var(--accent-weak);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.eco-pill-aura:hover { border-color: var(--accent); }
.eco-pill-partner {
  background: var(--ok-weak);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 28%, transparent);
}
.eco-pill-partner:hover { border-color: var(--ok); }
.eco-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--ok);
  color: #ffffff;
}
@media (max-width: 560px) {
  .brand-back { display: none; }
  .eco-strip-row { gap: 6px; padding-top: 7px; padding-bottom: 7px; }
  .eco-pill { font-size: 12.5px; padding: 5px 10px; white-space: normal; }
}

/* brand-switcher: CyberBoost + RSSVpn side-by-side */
.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex-wrap: wrap;
}
.brand-group .brand {
  margin-right: 0;
}
.brand-sep {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
  flex: none;
}
.brand-rssvpn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color .14s ease;
}
.brand-rssvpn:hover {
  background: var(--surface-2);
  text-decoration: none;
}
