/* ==========================================================================
   vavada-bonus.online — «технический терминал».

   Тёмно-графитовый фон с холодным уклоном и бирюзовый акцент. Синий занят
   соседним проектом редакции, поэтому уходим в графит с зеленью, а не в
   синеву.

   Моноширинный шрифт здесь не украшение, а часть содержания: сайт про
   проверку доменов, а в моноширинном видно разницу между l и 1, между 0
   и O. Именно об этом половина материалов, поэтому все адреса, коды и
   разборы имён подаются моноширинным.
   ========================================================================== */

:root {
  --bg: #0e1214;
  --surface: #161c1f;
  --surface-2: #1c2427;
  --ink: #e6edee;
  --ink-2: #bcc9cb;
  --muted: #7f9296;
  --line: #243033;
  --line-2: #35464a;

  --accent: #2fb3ab;
  --accent-hover: #57cfc6;
  --accent-soft: #10292a;
  --accent-line: #2c5c5b;

  --ok: #47c78d;
  --ok-soft: #10241c;
  --warn: #d99a4a;
  --warn-soft: #241a10;
  --danger: #e0736a;
  --danger-soft: #251413;

  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --max: 1160px;
  --measure: 45rem;

  --r: 6px;
  --r-lg: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.55);

  --bar-h: 36px;
  --header-h: 64px;
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-is-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

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

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

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

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------------------------------ служебная полоса */
.utility-bar {
  background: var(--ink);
  color: #9fb2b5;
  font-size: .8125rem;
  line-height: 1.35;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
}
.utility-bar__inner {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  align-items: center; justify-content: space-between;
  padding: 7px 20px;
}
.utility-bar p { margin: 0; }
.utility-bar a { color: #d6e3e5; text-decoration: none; border-bottom: 1px solid rgba(214,227,229,.32); }
.utility-bar a:hover { color: #fff; border-bottom-color: #fff; }
.utility-bar__links { display: flex; gap: 18px; flex-shrink: 0; }

.age-chip {
  display: inline-block; background: var(--accent); color: #06201f;
  font-weight: 700; font-size: .75rem;
  padding: 1px 7px; border-radius: 3px; margin-right: 7px;
}

/* ------------------------------------------------------ шапка */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(14, 18, 20, .93);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo__mark { border-radius: var(--r); }
.logo__text { display: block; line-height: 1.05; }
.logo__text b, .logo__text i {
  font-size: 1.1875rem; font-weight: 800; font-style: normal;
  letter-spacing: -.025em;
}
.logo__text i { color: var(--accent); }
.logo__text small {
  display: block; font-size: .625rem; font-weight: 600;
  color: var(--muted); letter-spacing: .09em; text-transform: uppercase; margin-top: 3px;
}

#main-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 7px 9px; border-radius: var(--r);
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.nav-list a:hover { background: var(--surface); color: var(--ink); }
.nav-list a.nav-active { color: var(--accent); background: var(--accent-soft); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 38px; padding: 9px 8px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------ Telegram */
.btn-tg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: #06201f !important;
  font-size: .9rem; font-weight: 600; text-decoration: none !important;
  border: 1px solid var(--accent); transition: background .15s, transform .15s;
}
.btn-tg:hover { background: var(--accent); border-color: var(--accent); color: #06201f !important; transform: translateY(-1px); }
.btn-tg svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-tg--nav { padding: 7px 13px; font-size: .85rem; }

/* ------------------------------------------------------ каркас */
main { display: block; padding: 36px 0 64px; }

.breadcrumbs {
  font-size: .8125rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.breadcrumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.page-title {
  font-size: clamp(1.8rem, 1.15rem + 2.4vw, 2.85rem);
  line-height: 1.1; letter-spacing: -.03em; font-weight: 800;
  color: var(--ink); margin: 0 0 12px; max-width: 24ch;
}

.update-note {
  font-size: .8125rem; color: var(--muted);
  margin: 0 0 26px; padding-left: 11px; border-left: 3px solid var(--accent-line);
}

.section { margin-bottom: 44px; }
.content-block { max-width: var(--measure); }
.content-block--wide { max-width: none; }

.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1.18; letter-spacing: -.022em; font-weight: 800;
  color: var(--ink); margin: 42px 0 14px; max-width: 32ch;
}
h3 { font-size: 1.125rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 28px 0 9px; }
h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 20px 0 7px; }

p { margin: 0 0 15px; }
.content-block > :first-child, .section > :first-child { margin-top: 0; }
ul, ol { margin: 0 0 18px; padding-left: 21px; }
li { margin-bottom: 7px; }
strong { color: var(--ink); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }

code {
  font-family: var(--mono); font-size: .875em;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 3px; padding: 1px 5px; color: var(--ink);
}

/* ------------------------------------------------------ главная */
.hero { padding: 8px 0 34px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.hero__kicker {
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.hero__title {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  line-height: 1.03; letter-spacing: -.035em; font-weight: 800;
  color: var(--ink); margin: 0 0 18px; max-width: 19ch;
}
.hero__lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 46rem; margin: 0 0 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 19px; border-radius: var(--r);
  font-size: .9375rem; font-weight: 700; text-decoration: none !important;
  border: 1px solid var(--line-2); color: var(--ink) !important; background: var(--surface);
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #06201f !important; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ------------------------------------------------------ карточки */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 20px 22px; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.card__num { font-family: var(--mono); font-size: .75rem; color: var(--accent); letter-spacing: .07em; margin: 0 0 9px; }
.card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.28; margin: 0 0 7px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card p { font-size: .9rem; color: var(--muted); margin: 0 0 11px; }
.card__more { margin-top: auto; font-size: .875rem; font-weight: 700; }

/* числовые карточки — основной приём сайта */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 22px; }
.figure { background: var(--surface); padding: 18px 18px 20px; }
.figure__value {
  display: block; font-size: 2rem; font-weight: 800; line-height: 1;
  letter-spacing: -.035em; color: var(--ink);
  font-variant-numeric: tabular-nums; margin-bottom: 7px;
}
.figure__label { font-size: .8125rem; color: var(--muted); line-height: 1.35; }
.figure--accent .figure__value { color: var(--accent); }
.figure--warn .figure__value { color: var(--danger); }

/* ------------------------------------------------------ таблицы */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; min-width: 540px; }
caption { caption-side: top; text-align: left; padding: 13px 16px; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--line); }
th, td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--surface-2); color: var(--ink);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ------------------------------------------------------ выноски */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--muted);
  background: var(--surface); padding: 17px 19px; margin: 0 0 22px;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.callout > :last-child { margin-bottom: 0; }
.callout__title { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.callout--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout--warn .callout__title { color: var(--warn); }
.callout--ok { border-left-color: var(--ok); background: var(--ok-soft); }
.callout--ok .callout__title { color: var(--ok); }
.callout--check { border-left-color: var(--accent); background: var(--accent-soft); }
.callout--check .callout__title { color: var(--accent); }
.callout--danger { border-left-color: var(--danger); background: var(--danger-soft); }
.callout--danger .callout__title { color: var(--danger); }

.unverified {
  display: inline-block; font-size: .6875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--warn); background: var(--warn-soft);
  border: 1px solid #e8c9a8; border-radius: 3px; padding: 1px 6px;
  vertical-align: 2px; white-space: nowrap;
}

/* ------------------------------------------------------ шаги */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 22px; }
.steps > li { counter-increment: st; position: relative; padding: 0 0 22px 44px; margin: 0 0 0 15px; border-left: 1px solid var(--line-2); }
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(st); position: absolute; left: -15px; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #06201f;
  font-size: .8125rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 3px 0 6px; font-size: 1rem; }
.steps p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------ определения */
.kv { margin: 0 0 22px; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 700; color: var(--ink); font-size: .9375rem; margin: 0; }
.kv dd { margin: 0; font-size: .9375rem; }

/* ------------------------------------------------------ FAQ */
.faq { margin: 0 0 22px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 34px 15px 0; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 17px; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------ блог */
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.cat-pill {
  font: inherit; font-size: .8125rem; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2);
}
.cat-pill:hover { border-color: var(--ink); color: var(--ink); }
.cat-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.post-list { display: grid; gap: 14px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.post-card__cat { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.post-card__title { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; margin: 0 0 8px; max-width: 36ch; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); text-decoration: underline; }
.post-card__excerpt { color: var(--muted); font-size: .9rem; margin: 0 0 10px; max-width: 62ch; }

.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .8125rem; color: var(--muted); margin: 0 0 26px; }
.post-meta > * + *::before { content: "·"; margin-right: 14px; color: var(--line-2); }
.post-meta__cat { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .6875rem; color: var(--accent); }
.post-meta__author { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.post-meta__author:hover { color: var(--accent); }

/* ------------------------------------------------------ обновления */
.updates { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.updates li { display: grid; grid-template-columns: 128px 1fr; gap: 14px; padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.updates time { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; padding-top: 2px; }
.updates a { color: var(--ink); text-decoration: none; }
.updates a:hover { color: var(--accent); text-decoration: underline; }

/* ------------------------------------------------------ редакция */
.author-card { padding: 24px 0; border-bottom: 1px solid var(--line); max-width: var(--measure); }
.author-card:first-child { border-top: 1px solid var(--line-2); }
.author-card__name { font-size: 1.3rem; font-weight: 800; margin: 0 0 3px; color: var(--ink); letter-spacing: -.02em; }
.author-card__role { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.author-card p { font-size: .9375rem; }
.author-card p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------ калькулятор */
.calc { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); margin: 0 0 24px; overflow: hidden; }
.calc__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1px; background: var(--line); }
.calc__field { background: var(--surface); padding: 14px 16px; }
.calc__field label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.calc__field input, .calc__field select {
  font: inherit; font-size: 1rem; width: 100%; padding: 8px 10px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
}
.calc__field input:focus, .calc__field select:focus { border-color: var(--accent); outline: none; }
.calc__hint { font-size: .75rem; color: var(--muted); margin: 6px 0 0; }
.calc__results { border-top: 1px solid var(--line-2); background: var(--surface-2); padding: 18px 16px; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 16px; margin-bottom: 16px; }
.result__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.result__value { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.verdict { font-size: .9375rem; color: var(--ink-2); margin: 0; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* ------------------------------------------------------ чек-лист */
.checklist { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); margin: 0 0 24px; overflow: hidden; }
.checklist__item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.checklist__item:last-of-type { border-bottom: 0; }
.checklist__item input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.checklist__item span { font-size: .9375rem; }
.checklist__item b { display: block; color: var(--ink); }
.checklist__bar { padding: 14px 18px; background: var(--surface-2); border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .875rem; }
.checklist__bar button { font: inherit; font-size: .8125rem; padding: 6px 14px; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r); cursor: pointer; color: var(--ink-2); }
.checklist__bar button:hover { border-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------ оглавление */
.toc {
  max-width: var(--measure); margin: 0 0 28px;
  padding: 15px 19px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
.toc__title { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc__list { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc__list li { margin-bottom: 6px; break-inside: avoid; font-size: .9375rem; }
.toc__list a { color: var(--ink); text-decoration: none; }
.toc__list a:hover { color: var(--accent); text-decoration: underline; }
h2[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ------------------------------------------------------ читайте также */
.related { max-width: var(--measure); padding-top: 22px; border-top: 1px solid var(--line-2); }
.related__title { margin: 0 0 14px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.related__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.related__item { display: grid; gap: 3px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.related__item:hover { border-left-color: var(--accent); }
.related__link { font-weight: 700; color: var(--ink); text-decoration: none; }
.related__link:hover { color: var(--accent); text-decoration: underline; }
.related__note { font-size: .875rem; color: var(--muted); }

/* ------------------------------------------------------ источник условий */
.source-note {
  max-width: var(--measure); margin: 0 0 26px;
  padding: 15px 19px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--muted);
  border-radius: 0 var(--r-lg) var(--r-lg) 0; font-size: .9375rem;
}
.source-note p { margin: 0; }
.source-note__title { margin: 0 0 5px !important; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------ CTA в тексте */
.cta-inline {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface);
  padding: 20px; margin: 30px 0;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.cta-inline p { margin: 0; font-size: .9375rem; max-width: 40ch; }
.cta-inline strong { display: block; font-size: 1.0625rem; margin-bottom: 4px; }

/* ------------------------------------------------------ подвал */
.site-footer { background: #0a0e0f; color: #8b9c9f; padding: 46px 0 30px; margin-top: 58px; font-size: .875rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); gap: 26px 30px; padding-bottom: 30px; border-bottom: 1px solid #1e282a; }
.footer-nav__title { font-size: .6875rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #66787b; margin: 0 0 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #c2d0d2; text-decoration: none; font-size: .875rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0; }
.trust-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid #222e30; border-radius: 999px; font-size: .8125rem; color: #c2d0d2; text-decoration: none; }
.trust-badge:hover { border-color: #456063; color: #fff; text-decoration: none; }
.trust-badge svg { width: 16px; height: 16px; }
.trust-badge--age { font-weight: 700; background: var(--accent); border-color: var(--accent); color: #06201f; }

.copyright { margin: 0 0 10px; color: #6f8083; font-size: .8125rem; }
.disclaimer { margin: 0; font-size: .78125rem; line-height: 1.55; color: #6f8083; }
.disclaimer a { color: #a8babd; }
.disclaimer strong { color: #c2d0d2; }

/* ------------------------------------------------------ плавающие CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: var(--ink); color: #fff; padding: 12px 20px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  transform: translateY(110%); transition: transform .28s ease;
  box-shadow: 0 -6px 24px rgba(0,0,0,.5);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__text { margin: 0; font-size: .9375rem; }
.sticky-cta .btn-tg { background: var(--accent); border-color: var(--accent); }
.sticky-cta .btn-tg:hover { background: #fff; color: var(--ink) !important; border-color: #fff; }

.floating-tg {
  position: fixed; right: 20px; bottom: 20px; z-index: 940;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.floating-tg:hover { background: var(--accent); }
.floating-tg svg { width: 26px; height: 26px; }

.popup-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(6,9,10,.72); display: none; align-items: center; justify-content: center; padding: 20px; }
.popup-overlay.is-visible { display: flex; }
.popup { background: var(--surface); border-radius: var(--r-lg); max-width: 460px; width: 100%; padding: 30px 26px; position: relative; box-shadow: var(--shadow-lg); text-align: center; }
.popup__close { position: absolute; right: 10px; top: 6px; background: none; border: 0; font-size: 1.75rem; line-height: 1; color: var(--muted); cursor: pointer; }
.popup__close:hover { color: var(--ink); }
.popup__title { font-size: 1.3rem; font-weight: 800; margin: 0 0 10px; color: var(--ink); letter-spacing: -.02em; }
.popup__text { font-size: .9375rem; color: var(--muted); margin: 0 0 20px; }

/* ------------------------------------------------------ адаптив */
@media (max-width: 1080px) { .nav-list a { padding: 7px 7px; font-size: .85rem; } }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  #main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    background: var(--surface); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 84px 20px 28px;
    transform: translateX(103%); transition: transform .26s ease;
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  #main-nav.is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { padding: 13px 4px; font-size: 1rem; }
  .btn-tg--nav { margin-top: 20px; justify-content: center; }
  .utility-bar__links { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  main { padding: 26px 0 48px; }
  .container { padding: 0 16px; }
  .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .updates li { grid-template-columns: 1fr; gap: 2px; }
  .toc__list { columns: 1; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .floating-tg { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .sticky-cta__text { font-size: .875rem; text-align: center; width: 100%; }
}

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

@media print {
  .utility-bar, .site-header, .site-footer, .sticky-cta, .floating-tg, .popup-overlay, .cta-inline { display: none !important; }
  body { background: #fff; color: #000; }
}


/* ==========================================================================
   Моноширинные элементы — опознавательный знак этого портала
   ========================================================================== */

/* адрес домена в тексте: подаём так, чтобы посимвольная разница была видна */
.domain {
  font-family: var(--mono);
  font-size: .95em;
  letter-spacing: .02em;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 2px 7px;
  color: var(--ink);
  white-space: nowrap;
}
.domain--ok { border-color: #2c5c5b; color: var(--ok); }
.domain--bad { border-color: #4a2b28; color: var(--danger); }
/* подсветка подменённого символа внутри адреса */
.domain mark {
  background: var(--danger);
  color: #140908;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 700;
}

/* построчный разбор адреса */
.domain-check {
  font-family: var(--mono); font-size: .9rem;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); overflow: hidden; margin: 0 0 22px;
}
.domain-check__row {
  display: grid; grid-template-columns: 26px 1fr;
  gap: 12px; padding: 11px 16px; align-items: baseline;
  border-bottom: 1px solid var(--line);
}
.domain-check__row:last-child { border-bottom: 0; }
.domain-check__mark { font-weight: 700; }
.domain-check__row--ok .domain-check__mark { color: var(--ok); }
.domain-check__row--bad .domain-check__mark { color: var(--danger); }
.domain-check__note { font-family: var(--sans); font-size: .85rem; color: var(--muted); display: block; margin-top: 3px; }

.hero__kicker, .card__num, .post-card__cat, .author-card__role,
.callout__title, .toc__title, .related__title, .source-note__title,
.figure__label, .result__label {
  font-family: var(--mono);
}

/* ---------- Частые вопросы ---------------------------------------------
   Разметка FAQPage собирается сборщиком из этого же блока, поэтому
   структура (ul.faq-list > li.faq-item > h3 + p) фиксирована: меняя её,
   нужно править и faq_schema() в build.py. */
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border-left: 3px solid var(--accent-line);
  padding: 0 0 0 1.1rem;
}

.faq-item h3 {
  margin: 0 0 .4em;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
}

.faq-item p {
  margin: 0 0 .6em;
  color: var(--ink-2);
}

.faq-item p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .faq-item { padding-left: .85rem; }
}
