:root {
  --ink: #17202b;
  --muted: #5c6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --accent: #0f6fd6;
  --accent-dark: #0b57a4;
  --line: #dde5ec;
  --radius: 12px;
  --max: 860px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1 { font-size: clamp(26px, 5vw, 38px); line-height: 1.2; margin: 0.2em 0; }
h2 { font-size: clamp(20px, 3.6vw, 27px); line-height: 1.3; margin: 1.2em 0 0.6em; }
h3 { font-size: 18px; margin: 0 0 0.4em; }
p { margin: 0.6em 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); font-size: 14px; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 58px; }
.brand { font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .nav { display: none; } }

/* Кнопки */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  border: 0; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 17px; }

/* Секции */
section.sec { padding: 46px 0; }
section.sec-alt { background: var(--bg-alt); }
section.sec-cta { background: var(--accent); color: #fff; text-align: center; padding: 56px 0; }
section.sec-cta h2 { color: #fff; }
section.sec-cta .btn { background: #fff; color: var(--accent-dark); margin-top: 14px; }

/* Hero */
.hero { padding: 58px 0 50px; text-align: center; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 14px auto 24px; }
.hero .btn-lg { margin-top: 4px; }
.hero-note { margin-top: 14px; }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.sec-alt .card { background: var(--bg); }
.card h3 { margin-top: 0; }
.card a { color: var(--ink); }
.card a:hover { color: var(--accent); }
.card.quote p:first-child { font-size: 15.5px; }

/* Списки */
.checks { padding: 0; list-style: none; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* Таблица фактов */
.facts { width: 100%; border-collapse: collapse; margin: 14px 0; }
.facts th, .facts td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 40%; font-weight: 600; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; position: relative; padding-right: 30px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; color: var(--accent); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* Статьи */
.article h1 { margin-top: 10px; }
.article h2 { margin-top: 1.4em; }
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 4px; }
.crumbs span { color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.article table th, .article table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article img { max-width: 100%; }
.ctabox { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; margin: 34px 0; text-align: center; }
.ctabox h2 { margin-top: 0; }
.related { padding-left: 20px; }

/* Футер */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 34px 0; margin-top: 40px; font-size: 14px; }
.footer-brand { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.footer .muted { margin-top: 14px; }

/* Cookie-бар */
.cookiebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 20px; background: var(--ink); color: #fff; font-size: 14px;
}
