/* Страницы документов Tach VPN. Та же система, что на лендинге
   (дизайн-референс blancvpn): серых нет, нейтрали — альфа от #132f6b. */
:root {
  --bg-accent: #1D60E8;
  --bg-accent-hover: #164FC6;
  --bg-secondary: #132f6b0a;
  --bg-secondary-hover: #132f6b1a;
  --bg-subdued: #1d60e80f;
  --bg-subdued-on-white: #f2f6fe;
  --bg-tile: #e4ecfc;
  --border-primary: #132f6b2e;
  --border-secondary: #132f6b1a;
  --text-primary: #151e30;
  --text-secondary: #0c1527a6;
  --text-accent: #1D60E8;
  --text-warn: #9A5B00;
  --bg-warn: #ffb02914;
  --border-warn: #ffb02952;
  --dark-bg: #0B1122;
  --dark-bg-alt: #0C1223;
  --dark-border: rgba(255,255,255,.16);
  --dark-text-secondary: rgba(255,255,255,.65);
  --font: "Golos Text", -apple-system, "Helvetica Neue", sans-serif;
  --r-slab: 40px; --r-card: 30px; --r-tile: 20px; --r-sm: 16px;
  --r-pill: 32px; --r-pill-sm: 24px;
  --shadow-card: 1px 1px 8px rgba(0,0,0,.06);
  --container: 1200px;
  --doc: 740px;            /* узкий контейнер для текста — как в референсе */
  --gutter: 40px;
  --t: .2s;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font: 400 16px/26px var(--font);
  color: var(--text-primary); background: var(--bg-subdued-on-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-accent); text-decoration: none; }
a:hover { color: var(--bg-accent-hover); }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.doc  { width: 100%; max-width: var(--doc);       margin: 0 auto; padding: 0 var(--gutter); }

/* ——— шапка ——— */
.nav { background: var(--dark-bg); color: #fff; }
.nav__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.logo:hover { color: #fff; }
.logo svg { width: 30px; height: 30px; flex: none; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-pill-sm);
  font: 500 14px/20px var(--font); background: var(--bg-accent); color: #fff;
  cursor: pointer; white-space: nowrap; transition: background-color var(--t);
}
.button:hover { background-color: var(--bg-accent-hover); color: #fff; }
.back { color: var(--dark-text-secondary); font-size: 15px; transition: color var(--t); }
.back:hover { color: #fff; }

/* ——— шапка документа ——— */
.head { background: var(--dark-bg); color: #fff; padding: 52px 0 72px;
  background-image: radial-gradient(22% 100% at 0 0, #1B3C82, transparent); }
.head h1 { margin: 0; font-size: 40px; line-height: 48px; font-weight: 600; }
.head .accent-dot { color: #4F8DFF; }
.head p { margin: 14px 0 0; color: var(--dark-text-secondary); font-size: 17px; }

/* светлый лист наезжает на тёмную шапку */
.sheet {
  background: var(--bg-subdued-on-white);
  border-radius: var(--r-slab) var(--r-slab) 0 0;
  margin-top: -40px; position: relative; z-index: 1;
  padding: 64px 0 96px;
}

/* ——— текст документа ——— */
.doc h2 {
  margin: 48px 0 16px; font-size: 24px; line-height: 32px; font-weight: 600;
  scroll-margin-top: 24px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 28px 0 10px; font-size: 18px; line-height: 26px; font-weight: 600; }
.doc p  { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--text-secondary); }
.doc .muted { color: var(--text-secondary); }
.doc .small { font-size: 14px; line-height: 22px; }
.doc hr { border: 0; border-top: 1px solid var(--border-secondary); margin: 40px 0; }
.doc strong, .doc b { font-weight: 600; }

/* оглавление */
.toc { background: #fff; border-radius: var(--r-tile); padding: 24px 28px; box-shadow: var(--shadow-card); margin-bottom: 40px; }
.toc b { display: block; margin-bottom: 12px; font-weight: 500; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-primary); }
.toc a:hover { color: var(--text-accent); }

/* карточки внутри текста */
.note { background: #fff; border-radius: var(--r-tile); padding: 22px 24px; box-shadow: var(--shadow-card); margin: 0 0 20px; }
.note p:last-child { margin-bottom: 0; }
.fill {
  background: var(--bg-warn); border: 1px solid var(--border-warn);
  border-radius: var(--r-tile); padding: 22px 24px; margin: 0 0 24px;
}
.fill b { color: var(--text-warn); }
.fill p:last-child { margin-bottom: 0; }
.fill code {
  background: #fff; border: 1px solid var(--border-secondary); border-radius: 8px;
  padding: 1px 6px; font-family: ui-monospace, Menlo, monospace; font-size: 14px;
}

/* таблица данных */
.tbl { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; line-height: 22px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-secondary); vertical-align: top; }
.tbl thead th { font-weight: 600; border-bottom-color: var(--border-primary); }
.tbl td:last-child { color: var(--text-secondary); }
.tbl-wrap { overflow-x: auto; margin: 0 0 20px; }

/* ——— футер ——— */
.foot { background: var(--dark-bg); color: #fff; padding: 48px 0 36px; }
.foot__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--dark-border);
  color: var(--dark-text-secondary); font-size: 14px; }
.foot a { color: var(--dark-text-secondary); }
.foot a:hover { color: #fff; }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 767px) {
  :root { --gutter: 24px; --r-slab: 28px; }
  .head { padding: 36px 0 60px; }
  .head h1 { font-size: 28px; line-height: 36px; }
  .sheet { padding: 40px 0 64px; }
  .doc h2 { font-size: 21px; line-height: 28px; margin-top: 36px; }
  .nav__right .back { display: none; }
}
