/* ─────────────────────────────────────────────────────────────
   ВПН Зона — второй сателлит. Светлая тема, magazine-layout.
   Классы намеренно отличаются от первого сайта (другой фингерпринт).
   Единицы: rem / % / fr / clamp — без жёстких px в раскладке.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #1a2232;
  --ink-soft: #5a6b82;
  --line: #e3e8f0;
  --brand: #2f6bff;
  --brand-dark: #1f4fd0;
  --accent: #00b3a4;
  --warn: #e8820c;
  --r: 0.75rem;
  --maxw: 60rem;
  --gap: clamp(1rem, 3vw, 1.75rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* ─── Topbar ─── */
.topbar { background: var(--surface); border-bottom: 0.0625rem solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 3.6rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-size: 1.12rem; }
.logo b { color: var(--brand); }
.logo:hover { text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: 0.25rem 1.05rem; font-size: 0.93rem; }
.menu a { color: var(--ink-soft); }
.menu a:hover, .menu a[aria-current] { color: var(--brand); text-decoration: none; }

/* ─── Breadcrumbs ─── */
.crumbs { font-size: 0.85rem; color: var(--ink-soft); padding-top: 1.1rem; }
.crumbs a { color: var(--ink-soft); }

/* ─── Intro ─── */
.intro { padding-block: clamp(1.4rem, 5vw, 2.6rem) clamp(1rem, 3vw, 1.6rem); }
.intro h1 { font-size: clamp(1.6rem, 5.5vw, 2.6rem); line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.intro h1 em { color: var(--brand); font-style: normal; }
.lead { font-size: clamp(1.04rem, 2.4vw, 1.2rem); color: var(--ink-soft); max-width: 44rem; margin: 0 0 1.3rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.3rem; }
.pill { font-size: 0.82rem; background: #eef3ff; color: var(--brand-dark); border: 0.0625rem solid #dbe6ff; padding: 0.28rem 0.7rem; border-radius: 999px; }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; padding: 0.68rem 1.25rem; border-radius: var(--r); border: 0.0625rem solid transparent; }
.btn-fill { background: var(--brand); color: #fff; }
.btn-fill:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ─── Blocks ─── */
.block { padding-block: clamp(1.3rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 3.6vw, 1.85rem); letter-spacing: -0.015em; margin: 0 0 0.45rem; }
h3 { font-size: 1.12rem; margin: 0 0 0.3rem; }
.sub { color: var(--ink-soft); max-width: 46rem; margin: 0 0 1.3rem; }
p { margin: 0 0 1rem; }
code { background: #eef1f6; padding: 0.05rem 0.35rem; border-radius: 0.35rem; font-size: 0.92em; }

/* ─── TOC chips ─── */
.toc { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1.4rem; }
.toc a { font-size: 0.88rem; color: var(--ink-soft); background: var(--surface); border: 0.0625rem solid var(--line); padding: 0.3rem 0.7rem; border-radius: 999px; }
.toc a:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }

/* ─── Grid tiles ─── */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 38rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 54rem) { .grid.cols3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--r); padding: 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; box-shadow: 0 0.0625rem 0.125rem rgba(26,34,50,.04); }
a.tile { color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.tile:hover { border-color: var(--brand); box-shadow: 0 0.5rem 1.5rem rgba(47,107,255,.1); transform: translateY(-0.12rem); text-decoration: none; }
.tile .head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.chip { font-size: 0.76rem; color: var(--brand-dark); background: #eef3ff; padding: 0.18rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.tile .more { margin-top: auto; color: var(--brand); font-weight: 600; font-size: 0.9rem; }
.tile .spec { font-size: 0.85rem; color: var(--ink-soft); }
.tile .spec b { color: var(--ink); }

/* ─── Steps ─── */
.steps { display: grid; gap: 0.75rem; counter-reset: s; }
.stepc { display: grid; grid-template-columns: 2.3rem 1fr; gap: 0.85rem; background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--r); padding: 0.95rem 1.05rem; }
.stepc::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #eef3ff; color: var(--brand); font-weight: 700; }
.stepc p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ─── Comparison table ─── */
.tablewrap { overflow-x: auto; border: 0.0625rem solid var(--line); border-radius: var(--r); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 34rem; }
table.cmp th, table.cmp td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 0.0625rem solid var(--line); }
table.cmp thead th { background: #f0f3f9; font-weight: 700; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td b { color: var(--ink); }

/* ─── Note ─── */
.note { background: #fff8ee; border: 0.0625rem solid #f6e0bd; border-radius: var(--r); padding: 1rem 1.15rem; }
.note b { color: var(--warn); }
.note.info { background: #eef7ff; border-color: #cfe6ff; }
.note.info b { color: var(--brand-dark); }

/* ─── Accordion FAQ ─── */
.acc details { background: var(--surface); border: 0.0625rem solid var(--line); border-radius: var(--r); padding: 0.3rem 1.05rem; margin-bottom: 0.65rem; }
.acc summary { cursor: pointer; font-weight: 600; padding-block: 0.7rem; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "▾"; float: right; color: var(--brand); }
.acc details[open] summary::after { transform: rotate(180deg); }
.acc details p { color: var(--ink-soft); margin: 0 0 0.85rem; }

/* ─── Footer ─── */
.foot { background: var(--surface); border-top: 0.0625rem solid var(--line); margin-top: 1.5rem; padding-block: 2rem; color: var(--ink-soft); font-size: 0.9rem; }
.foot .container { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .foot .container { grid-template-columns: repeat(3, 1fr); } }
.foot b { color: var(--ink); display: block; margin-bottom: 0.4rem; }
.foot a { display: block; color: var(--ink-soft); padding: 0.1rem 0; }
.foot a:hover { color: var(--brand); }
.foot .small { grid-column: 1 / -1; border-top: 0.0625rem solid var(--line); padding-top: 1rem; }
