/* Раздел «Ответы» (otvety/): статьи и оглавление. Цвета и шрифт — как на главной (site.css). Страницы собирает make-otvety.cjs. */
:root {
  color-scheme: light;
  --ink: #0e1730;
  --ink-2: #3c465e;
  --muted: #63708a;
  --line: #e3e9f3;
  --soft: #f5f8fd;
  --blue: #1f6feb;
  --blue-50: #eef4ff;
  --navy: #0b1530;
  --gutter: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Manrope, system-ui, sans-serif; font-size: 17px; line-height: 1.65; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.nw { white-space: nowrap; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / 92%); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { max-width: 1080px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand svg { width: 24px; height: 24px; fill: var(--ink); }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { color: var(--ink-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.top nav a:hover { color: var(--blue); }
.top .btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; white-space: nowrap; }
.top .btn:hover { color: #fff; background: #18254a; }
@media (max-width: 520px) {
  .brand { font-size: 15px; }
  .top nav a:not(.btn) { display: none; } /* «Ответы» есть в крошках под шапкой */
  .top .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .lead { padding: 14px 16px; font-size: 17px; }
  table { font-size: 14px; }
  th, td { padding: 9px 10px; }
  td { min-width: 0; }
}

/* Хлебные крошки */
.crumbs { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink-2); }

/* Статья */
article { padding-bottom: 8px; }
h1 { margin: 18px 0 10px; font-size: clamp(30px, 6vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; }
.meta { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.lead { margin: 0 0 28px; padding: 18px 22px; border-radius: 18px; background: var(--blue-50); color: var(--ink); font-size: 18.5px; line-height: 1.6; }
article h2 { margin: 40px 0 12px; font-size: clamp(23px, 4vw, 29px); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; }
article h3 { margin: 28px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; }
article p { margin: 0 0 16px; color: var(--ink-2); }
article b { color: var(--ink); }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; color: var(--ink-2); }
article li { margin: 6px 0; }
article li::marker { color: var(--blue); font-weight: 700; }
.note { padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); font-size: 15.5px; }
.table { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--soft); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td { color: var(--ink-2); min-width: 130px; }
.demo { margin: 28px 0 0; padding: 16px 20px; border: 1px dashed #b9cdf5; border-radius: 16px; color: var(--ink-2); }
.demo a { font-weight: 700; }

/* Связь */
.cta { margin: 44px 0 0; padding: 26px 24px; border-radius: 24px; background: var(--navy); color: #fff; }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 30px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.cta p { margin: 0 0 18px; color: #c9d3ea; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; } /* телефон: столбиком; компьютер: по два */
.ways a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; white-space: nowrap; border-radius: 14px; background: rgb(255 255 255 / 9%); color: #fff; font-weight: 700; text-decoration: none; transition: background-color 0.2s ease; }
.ways a:hover { background: rgb(255 255 255 / 16%); }
.ways img, .ways .ico { flex: none; width: 28px; height: 28px; border-radius: 8px; }
.ways .ico { display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 15px; }
.ways .ico.tg { background: #229ed9; }
.ways .ico svg { width: 17px; height: 17px; fill: #fff; }

/* Читайте также */
.related { margin: 36px 0 0; }
.related h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.related a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 600; text-decoration: none; }
.related a:hover { border-color: #b9cdf5; color: var(--blue); }

/* Оглавление раздела */
.hub-head h1 { margin-bottom: 14px; }
main > section:not(.cta):not(.related) h2 { margin: 40px 0 14px; font-size: clamp(22px, 4vw, 27px); font-weight: 800; letter-spacing: -0.02em; }
.cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cards a { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.cards a:hover { border-color: #b9cdf5; box-shadow: 0 12px 26px -18px rgb(15 30 66 / 35%); }
.cards b { display: block; color: var(--ink); font-size: 17px; line-height: 1.35; }
.cards span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Подвал */
.foot { margin-top: 56px; padding: 26px 0 34px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.foot a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
