/* ==========================================================================
   1xbets-arg.net — guía independiente
   ========================================================================== */

:root {
  --navy: #0d2740;
  --navy-2: #123452;
  --blue: #1a5685;
  --blue-2: #2470ad;
  --blue-soft: #e6eff7;
  --green: #557f00;
  --green-bright: #9bd10a;
  --bg: #edf1f5;
  --surface: #fff;
  --text: #1b2733;
  --muted: #566575;
  --line: #d6dee6;
  --warn-bg: #fff6d6;
  --warn: #8a6100;
  --danger-bg: #fde9e7;
  --danger: #b3261e;
  --info-bg: #e6f0fa;
  --info: #1a5685;
  --success-bg: #e9f5dc;
  --success: #3f6600;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(13 39 64 / 8%), 0 4px 14px rgb(13 39 64 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font: 400 1rem/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }

h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
p, ul, ol { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-2); }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; border-radius: 3px; }

.container { width: min(100% - 32px, 1120px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  padding: 10px 16px; background: #fff; color: var(--navy); border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* Иконки из спрайта /assets/img/icons.svg: контурные, цвет наследуется */
svg[aria-hidden="true"] { fill: none; stroke: currentcolor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 1.25em; height: 1.25em; }

/* ---------- Header ---------- */

.topbar { background: var(--navy); color: #fff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }

.brand { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__name { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em; }
.brand__logo { display: block; height: 34px; width: auto; }
.brand__flag { display: block; height: 22px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgb(255 255 255 / 25%); }
.brand__tag {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 999px; color: #d5e2ee;
}

.topbar__note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8125rem; color: #d5e2ee; text-align: right; }

.age-badge {
  display: inline-grid; place-items: center; flex: none;
  min-width: 34px; height: 24px; padding: 0 6px;
  border: 2px solid currentcolor; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; line-height: 1;
}
.age-badge--lg { min-width: 52px; height: 52px; font-size: 1rem; }

/* Меню: на десктопе — строка с выпадающими группами, на телефоне — панель по кнопке «Menú» */
.mainnav { background: var(--blue); }
.menu, .menu__sub { margin: 0; padding: 0; list-style: none; }
.menu__top {
  display: block; width: 100%; padding: 12px 14px; border: 0; border-bottom: 3px solid transparent; background: none;
  color: #fff; font: 600 0.9375rem/1.4 var(--font); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.menu__top:hover { color: #fff; }
.menu__sub a { display: block; padding: 11px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgb(0 0 0 / 25%); }
  .cta-bar { position: absolute; inset: 0 0 auto; height: 60px; pointer-events: none; }
  .cta-bar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
  .cta-bar__inner > * { pointer-events: auto; }
  .menu-toggle { display: none; }
  .topbar__note { margin-right: 300px; }

  .menu { display: flex; gap: 2px; }
  .menu__item { position: relative; }
  .menu__item--group > .menu__top::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px;
    border: solid currentcolor; border-width: 0 2px 2px 0; transform: rotate(45deg);
  }
  .menu__top:hover, .menu__item--group:hover > .menu__top, .menu__top[aria-expanded="true"] { background: rgb(255 255 255 / 12%); }
  .is-current > .menu__top, .menu__top[aria-current="page"] { border-bottom-color: var(--green-bright); background: rgb(0 0 0 / 15%); }
  .menu__sub {
    display: none; position: absolute; top: 100%; left: 0; z-index: 30; min-width: 230px; padding: 6px;
    border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 10px 24px rgb(13 39 64 / 22%);
  }
  .menu__item--group:hover > .menu__sub,
  .menu__item--group:focus-within > .menu__sub,
  .menu__top[aria-expanded="true"] + .menu__sub { display: block; }
  .menu__sub a { color: var(--navy); }
  .menu__sub a:hover { background: var(--blue-soft); color: var(--navy); }
  .menu__sub a[aria-current="page"] { background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--green); }
}
@media (min-width: 900px) and (max-width: 1150px) { .topbar__note { display: none; } }

@media (max-width: 899px) {
  /* Шапка «растворяется», чтобы закрепить можно было одну строку с кнопками */
  .site-header { display: contents; }
  .topbar__inner { min-height: 48px; }
  .topbar__note, .brand__tag { display: none; }
  .brand__logo { height: 28px; }
  .brand__flag { height: 18px; }

  .cta-bar { position: sticky; top: 0; z-index: 20; background: var(--navy); box-shadow: 0 2px 10px rgb(0 0 0 / 30%); }
  .cta-bar__inner { display: flex; align-items: center; gap: 8px; padding-block: 8px; }
  .cta-bar .btn.btn--sm { flex: 1 1 0; min-height: 44px; padding-inline: 8px; }
  .menu-toggle {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 1px solid rgb(255 255 255 / 35%); border-radius: 10px; background: none; color: #fff; cursor: pointer;
  }
  .menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: currentcolor; transition: transform 0.15s;
  }
  .menu-toggle__icon { position: relative; }
  .menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__icon::before { top: -6px; }
  .menu-toggle__icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

  .mainnav { background: var(--navy-2); padding-block: 8px 16px; }
  .js .mainnav { display: none; position: fixed; inset: 60px 0 0; z-index: 19; overflow-y: auto; overscroll-behavior: contain; }
  .js .mainnav.is-open { display: block; }
  html:not(.js) .menu-toggle { display: none; }
  .menu__item + .menu__item { border-top: 1px solid rgb(255 255 255 / 12%); }
  .menu__item--group > .menu__top {
    padding: 14px 4px 4px; border: 0; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: #9fb6cb; cursor: default; pointer-events: none;
  }
  .menu__item > a.menu__top { padding: 14px 4px; font-size: 1rem; }
  .menu__sub { padding-bottom: 8px; }
  .menu__sub a { padding: 12px 4px; color: #fff; font-size: 1rem; }
  .menu__sub a[aria-current="page"], a.menu__top[aria-current="page"] { color: var(--green-bright); }
}

/* ---------- Hero ---------- */

.hero {
  padding: 20px 0 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy-2) 70%, var(--navy) 100%);
}
.hero a { color: #fff; }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.hero__lead { font-size: 1.0625rem; color: #e4edf5; max-width: 62ch; }
.hero__art { justify-self: center; max-width: 280px; }
.hero .callout { margin: 16px 0 0; color: var(--text); max-width: 62ch; }

.byline { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 20px; font-size: 0.8125rem; color: #d5e2ee; }
.byline span { padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 12%); }

.breadcrumbs { margin-bottom: 20px; font-size: 0.8125rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; color: #c4d4e3; }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: #8fa9c1; }
.breadcrumbs a { color: #e4edf5; }

@media (min-width: 860px) {
  .hero { padding: 24px 0 56px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
  .hero--plain .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { max-width: none; }
}

/* ---------- Content ---------- */

.content { display: grid; gap: 20px; padding: 0 0 40px; margin-top: -24px; }
.content > * { min-width: 0; }

.section, .toc, .author {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 16px;
}
@media (min-width: 720px) {
  .section, .toc { padding: 28px 32px; }
  .author { padding: 20px 32px; }
}

.section h2 {
  position: relative; padding-left: 16px; margin-bottom: 16px;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem); font-weight: 800; color: var(--navy);
}
.section h2::before {
  content: ""; position: absolute; left: 0; top: 0.15em; bottom: 0.15em;
  width: 5px; border-radius: 3px; background: var(--green-bright);
}
.section > p, .section > .list { max-width: 75ch; }

/* TOC */
.toc summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.toc ol {
  margin: 14px 0 0; padding-left: 1.4em;
  columns: 2 260px; column-gap: 32px; font-size: 0.9375rem;
}
.toc li { break-inside: avoid; padding: 3px 0; }

/* Lists */
.list { padding-left: 1.25em; }
.list li { margin-bottom: 0.5em; }
.list li::marker { color: var(--blue-2); }

.list--check, .list--cross, .list--box { list-style: none; padding-left: 0; }
.list--check li, .list--cross li, .list--box li { position: relative; padding-left: 30px; }
.list--check li::before, .list--cross li::before, .list--box li::before {
  position: absolute; left: 0; top: 0.2em;
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; font-size: 0.75rem; font-weight: 800; line-height: 1; color: #fff;
}
.list--check li::before { content: "✓"; background: var(--green); }
.list--cross li::before { content: "✕"; background: var(--danger); }
.list--box li::before { content: ""; border: 2px solid var(--blue); border-radius: 4px; background: #fff; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 14px 16px 14px 60px; min-height: 56px;
  background: var(--blue-soft); border-radius: 8px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px;
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800;
}
@media (min-width: 960px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); }
  .steps--row li { padding: 56px 14px 16px; font-size: 0.9375rem; }
}

/* Cards */
.cards { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.card__icon {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 12px;
  border-radius: 8px; background: var(--blue); color: #fff;
}
.card__title { font-size: 1.0625rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card p, .card li { font-size: 0.9375rem; }
.card .steps li { background: var(--surface); border: 1px solid var(--line); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; }
thead th, thead td { background: var(--blue); color: #fff; font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 700; color: var(--navy); min-width: 150px; }
tbody tr:nth-child(even) { background: #f3f6f9; }
tbody tr + tr { border-top: 1px solid var(--line); }

/* Callouts */
.callout {
  display: flex; gap: 12px; padding: 16px; margin: 16px 0;
  border-left: 5px solid; border-radius: 8px;
}
.callout:last-child { margin-bottom: 0; }
.callout__icon { flex: none; width: 24px; height: 24px; margin-top: 2px; }
.callout__body { flex: 1; min-width: 0; }
.callout--warn { background: var(--warn-bg); border-color: #e0a800; }
.callout--warn .callout__icon { color: var(--warn); }
.callout--danger { background: var(--danger-bg); border-color: var(--danger); }
.callout--danger .callout__icon { color: var(--danger); }
.callout--info { background: var(--info-bg); border-color: var(--blue-2); }
.callout--info .callout__icon { color: var(--info); }
.callout--success { background: var(--success-bg); border-color: var(--green); }
.callout--success .callout__icon { color: var(--success); }
.callout--note { background: #f3f6f9; border-color: var(--muted); font-style: italic; }
.callout--note .callout__icon { color: var(--muted); }
.callout--age { background: #eef1f4; border-color: var(--navy); }
.callout__age {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border: 3px solid var(--navy); border-radius: 50%; color: var(--navy); font-weight: 800; font-size: 0.9375rem;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.chips li {
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #f3f6f9; color: var(--muted); font-size: 0.875rem; font-weight: 600;
}

/* Split (texto + ilustración) */
.split { display: grid; gap: 20px; align-items: center; }
.split__media { display: grid; place-items: center; padding: 16px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--navy)); }
.split__media img { max-width: 220px; }
@media (min-width: 800px) { .split { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; } }

/* Иллюстрации, скриншоты, обложки */
figure { margin: 0; }
figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--muted); text-align: center; }

.illus { margin: 20px 0 0; max-width: 640px; }
.illus img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; }
.callout .illus img { border-color: rgb(0 0 0 / 10%); }

.shot { margin: 20px 0 0; max-width: 300px; }
.shot--wide { max-width: 760px; }
.shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.shot--hero { margin: 0; max-width: 320px; }
.shot--hero img { border: 0; box-shadow: 0 12px 32px rgb(0 0 0 / 35%); }

.steps li.has-shot { display: grid; gap: 14px; }
.shot--step { margin: 0; max-width: 240px; }
@media (min-width: 720px) {
  .steps li.has-shot { grid-template-columns: minmax(0, 1fr) 220px; align-items: start; }
}

.steps li.has-shot--wide { grid-template-columns: minmax(0, 1fr); }
.has-shot--wide .shot--step { max-width: 640px; }
.card__shot { order: 1; margin: 14px auto 0; max-width: 260px; }
.card:has(.card__shot) { display: flex; flex-direction: column; align-items: flex-start; }
.hero .shot--hero img { max-height: 460px; width: auto; max-width: 100%; margin-inline: auto; }

.phone { max-width: 230px; margin-inline: auto; padding: 10px; border-radius: 30px; background: #0a1b2d; box-shadow: 0 12px 32px rgb(0 0 0 / 35%); }
.phone img { display: block; width: 100%; border-radius: 22px; }
.split__media--phone { background: none; padding: 0; }

.card__cover { display: block; background: linear-gradient(135deg, var(--blue), var(--navy)); width: calc(100% + 36px); max-width: none; margin: -18px -18px 14px; aspect-ratio: 12 / 5; object-fit: cover; border-radius: 7px 7px 0 0; }

.table__icon { width: 22px; height: 22px; margin-right: 10px; color: var(--blue); vertical-align: -5px; }
.table--fix thead th:first-child::before { content: "✕ "; color: #ffb4ab; }
.table--fix thead th:last-child::before { content: "✓ "; color: var(--green-bright); }

.iconlist { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; }
.iconlist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; font-size: 0.9375rem; }
.iconlist__icon { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
@media (min-width: 720px) { .iconlist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .iconlist:has(li:nth-child(4)) { grid-template-columns: repeat(4, 1fr); } .iconlist:has(li:nth-child(4)) li { flex-direction: column; } }

.callout--lock { background: var(--blue-soft); border-color: var(--blue); }
.callout--lock .callout__icon { width: 32px; height: 32px; color: var(--blue); }

/* Карточки игр */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .games { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.game { overflow: hidden; border-radius: 10px; background: var(--navy-2); box-shadow: var(--shadow); }
.game img { display: block; width: 100%; aspect-ratio: 285 / 153; object-fit: cover; }
.game figcaption { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 12px 12px; text-align: left; color: #fff; }
.game figcaption strong { font-size: 0.9375rem; }
.game figcaption span { font-size: 0.75rem; color: #b9cbdc; }

/* Партнёрские кнопки (размеры и расстановка — по конкурентам: 48–52 px, скругление 10 px, пары кнопок) */
.btn.btn--cta {
  min-height: 50px; padding: 10px 26px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; text-decoration: none; text-align: center;
  background: linear-gradient(180deg, #628f00, #4f7700); color: #fff; box-shadow: 0 2px 0 rgb(0 0 0 / 20%);
}
.btn.btn--cta:hover { background: linear-gradient(180deg, #6c9c00, #557f00); color: #fff; }
.btn.btn--alt { background: var(--blue-2); }
.btn.btn--alt:hover { background: #1d5f96; }
.btn.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 0.875rem; white-space: nowrap; }
.cta-note { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 400; color: #c4d4e3; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.hero .btn.btn--alt { background: #fff; color: var(--navy); }
.hero .btn.btn--alt:hover { background: #e6eff7; color: var(--navy); }

.section-cta { margin: 20px 0 0; }
.callout + .section-cta { margin-top: 16px; }
.card__btn { margin-top: 12px; }
.game__btn { margin-top: 8px; align-self: flex-start; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: var(--shadow);
}
.cta-band__text { margin: 0; flex: 1 1 280px; font-size: 1.0625rem; font-weight: 700; }
.cta-band__action { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn.btn--alt { background: #fff; color: var(--navy); }
@media (min-width: 720px) { .cta-band { padding: 24px 32px; } }

@media (max-width: 640px) {
  .hero__cta .btn, .section-cta .btn, .cta-band__action .btn { flex: 1 1 100%; width: 100%; }
  .cta-band__action { width: 100%; }
}
html { scroll-padding-top: 126px; }
@media (max-width: 899px) { html { scroll-padding-top: 76px; } }
/* Coupon */
.coupon { padding: 20px; border: 2px dashed var(--blue-2); border-radius: var(--radius); background: var(--blue-soft); margin-bottom: 16px; }
.coupon__label { margin-bottom: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.coupon__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 4px; }
.coupon__code { font: 800 clamp(1.5rem, 1.1rem + 2vw, 2.25rem)/1.2 var(--mono); color: var(--navy); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.coupon__status { min-height: 1.4em; margin-bottom: 8px; font-size: 0.875rem; color: var(--success); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px;
  border: 0; border-radius: 8px; background: var(--green); color: #fff;
  font: 700 0.9375rem var(--font); cursor: pointer;
}
.btn:hover { background: #466a00; }

/* Calculadora */
.calc { margin-top: 16px; padding: 16px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.calc__title { font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.calc__title span { font-weight: 400; color: var(--muted); }
.calc__fields { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 12px; }
.calc label { display: grid; gap: 4px; font-size: 0.875rem; font-weight: 600; }
.calc input { width: 170px; min-height: 44px; padding: 8px 12px; border: 1px solid #8b9aaa; border-radius: 6px; font: inherit; }
.calc__result { font-size: 1.0625rem; }
.calc output { font-weight: 800; color: var(--navy); }

/* FAQ */
.faq__item { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.faq__item + .faq__item { margin-top: 10px; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--blue); }
.faq__item[open] summary::after { content: "−"; }
.faq__item h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.faq__answer { padding: 0 16px 16px; }

/* Related */
.related__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.related__list a {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--blue); border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.related__list a::after { content: " →"; }
.related__list a:hover { background: var(--blue); color: #fff; }

/* Author */
.author { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.9375rem; }
.author__avatar { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }

/* ---------- Trust + footer ---------- */

.trust { background: #dfe5eb; color: #2c3a48; }
.trust__inner { display: flex; align-items: center; gap: 16px; padding-block: 20px; font-size: 0.9375rem; }

.site-footer { padding: 32px 0 24px; background: var(--navy); color: #c4d4e3; font-size: 0.875rem; }
.site-footer a { color: #e4edf5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.footer__title { margin-bottom: 8px; color: #fff; font-weight: 700; }
.footer__col ul, .footer__legal { margin: 0; padding: 0; list-style: none; }
.footer__col li { padding: 4px 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.footer__copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 15%); color: #a9bccd; }

@media (max-width: 560px) {
  .topbar__note { font-size: 0.75rem; max-width: 130px; }
}

@media print {
  .mainnav, .cta-bar, .toc, .site-footer, .skip-link, .hero__art { display: none; }
  .hero { background: none; color: #000; }
}
