/* АвтоСчёт — дизайн-система «Приборная панель». Единственный CSS-файл проекта. */

:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --text: #1A1D23;
  --text-muted: #5C6470;
  --accent: #F5A623;
  --accent-hover: #E0961B;
  --accent-soft: #FDF3E0;
  --primary: #1E3A5F;
  --ok: #1E8E3E;
  --danger: #C5221F;
  --line: #E4E7EC;
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 3px rgb(16 24 40 / .08);
  --shadow-lift: 0 8px 24px rgb(16 24 40 / .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 0; }
img, svg { max-width: 100%; }
a { color: var(--primary); }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
h2 { font-size: 22px; line-height: 1.3; margin: 32px 0 12px; font-weight: 700; }
h3 { font-size: 18px; margin: 24px 0 8px; font-weight: 700; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 720px; }

@media (min-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .section { padding: 48px 0; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-s); border: none; cursor: pointer;
  font: 700 16px var(--font); text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-accent { background: var(--accent); color: #1A1D23; box-shadow: 0 2px 8px rgb(245 166 35 / .35); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgb(245 166 35 / .45); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn:active { transform: translateY(0); }

/* ---------- Шапка ---------- */
.site-header {
  background: var(--primary); color: #fff;
  position: relative; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { font-weight: 800; font-size: 20px; color: #fff; letter-spacing: .2px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: rgb(255 255 255 / .85); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: var(--radius-s); transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgb(255 255 255 / .1); color: #fff; }
@media (max-width: 640px) { .nav-extra { display: none; } }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding-top: 12px; font-size: 14px; color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "→"; margin: 0 6px; color: var(--line); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Хиро с прибором ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 24px; padding: 40px 16px; align-items: center; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-gauge { max-width: 420px; margin: 0 auto; }
.page-cover { margin: 16px 0 24px; max-width: 720px; }
.page-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: contain;
  vertical-align: middle;
  border-radius: var(--radius);
  background: #16293F;
  display: block;
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.2fr 1fr; padding: 56px 16px; }
}

/* Анимация прибора: дуга «прогревается», стрелка выезжает с перелётом */
.gauge-arc {
  stroke-dasharray: 472;
  stroke-dashoffset: 472;
  animation: gauge-warmup 1.6s cubic-bezier(.25,.8,.35,1) .2s forwards;
}
@keyframes gauge-warmup {
  to { stroke-dashoffset: 160; }
}
.gauge-needle {
  transform-origin: 180px 200px;
  transform: rotate(-84deg);
  animation: needle-sweep 1.8s cubic-bezier(.34,1.35,.5,1) .2s forwards;
}
@keyframes needle-sweep {
  0% { transform: rotate(-84deg); }
  70% { transform: rotate(64deg); }
  85% { transform: rotate(52deg); }
  100% { transform: rotate(57deg); }
}
.odometer-digits { animation: odo-flicker 1.2s steps(6) .4s both; }
@keyframes odo-flicker {
  0% { opacity: 0; }
  60% { opacity: .5; }
  100% { opacity: 1; }
}

/* ---------- Карточки и плитки ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.section-title { margin-top: 0; }

.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .calc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.calc-tile {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 16px; text-decoration: none; color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative; overflow: hidden;
}
.calc-tile::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--accent); opacity: 0; transition: opacity .18s ease;
}
.calc-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.calc-tile:hover::after { opacity: 1; }
.calc-tile-icon { width: 44px; height: 44px; color: var(--primary); }
.calc-tile-icon .ico { width: 44px; height: 44px; }
.ico-a { stroke: var(--accent); transition: filter .18s ease; }
.calc-tile:hover .ico-a { filter: drop-shadow(0 0 5px rgb(245 166 35 / .8)); }
.calc-tile-name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.calc-tile-benefit { font-size: 13.5px; color: var(--text-muted); }

.cat-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.cat-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.cat-card-name { font-weight: 700; color: var(--primary); }
.cat-card-desc { font-size: 14px; color: var(--text-muted); }

.article-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .article-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.article-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.article-card-title { font-weight: 700; line-height: 1.35; }
.article-card time { font-size: 13px; color: var(--text-muted); }
.badge {
  align-self: flex-start; font-size: 12.5px; font-weight: 700;
  background: var(--accent-soft); color: #8a5a00; padding: 3px 10px; border-radius: 99px;
}

.article-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.article-row {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.article-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.article-row-title { font-weight: 700; }
.article-row-desc { font-size: 14px; color: var(--text-muted); }
.article-row time { font-size: 13px; color: var(--text-muted); }

.pagination { display: flex; gap: 8px; margin-top: 24px; }
.pagination a, .page-current {
  min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-s); text-decoration: none;
}
.pagination a { background: var(--surface); box-shadow: var(--shadow); }
.page-current { background: var(--primary); color: #fff; font-weight: 700; }

/* ---------- Страница калькулятора ---------- */
.calc-page { padding-top: 16px; padding-bottom: 48px; }
.trust-line { color: var(--text-muted); font-size: 15px; margin: -4px 0 20px; }

.calc-widget { display: grid; gap: 16px; margin-bottom: 32px; }
@media (min-width: 900px) {
  .calc-widget { grid-template-columns: 55% 1fr; align-items: start; }
  .calc-result { position: sticky; top: 16px; }
}

.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1.3fr 0.9fr; }
}
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.45; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.input-unit { position: relative; }
.input-unit input { padding-right: 108px; }
.unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  pointer-events: none; line-height: 1; white-space: nowrap;
}
input[type="number"], input[type="email"], input[type="text"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  font: 400 16px var(--font); color: var(--text); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(245 166 35 / .25);
}
.calc-form :disabled { opacity: .55; cursor: not-allowed; }
input[type="number"] {
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.field-check { display: flex; align-items: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--accent); }
.btn-calc { width: 100%; margin-top: 4px; }

/* Панель результата — «прибор» */
.calc-result { text-align: left; }
.result-label { font-size: 14px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.result-total {
  font-size: 40px; font-weight: 800; line-height: 1.15;
  font-variant-numeric: tabular-nums; color: var(--text);
  margin: 6px 0 10px; word-break: break-word;
}
.result-total.pulse { animation: result-pulse .5s ease; }
@keyframes result-pulse {
  0% { text-shadow: 0 0 0 rgb(245 166 35 / 0); }
  40% { text-shadow: 0 0 18px rgb(245 166 35 / .85); color: #b97c0a; }
  100% { text-shadow: 0 0 0 rgb(245 166 35 / 0); }
}
.result-gauge { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.result-gauge-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #FFC85C);
  box-shadow: 0 0 8px rgb(245 166 35 / .6);
  transition: width .6s cubic-bezier(.25,.8,.35,1);
}
.result-breakdown table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.result-breakdown td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.result-breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.result-breakdown tr.total-row td { font-weight: 800; border-bottom: none; }
.result-breakdown .val-danger { color: var(--danger); }
.result-breakdown .val-ok { color: var(--ok); }
.btn-copy { width: 100%; margin-top: 16px; }
.btn-copy.copied { border-color: var(--ok); color: var(--ok); }
.result-note { font-size: 13px; color: var(--text-muted); margin: 12px 0 0; }

/* График платежей (кредит) */
.schedule-details { margin-top: 16px; }
.schedule-details summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.schedule-details table { width: 100%; margin-top: 8px; font-size: 14px; border-collapse: collapse; }
.schedule-details th, .schedule-details td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.schedule-details th:last-child, .schedule-details td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Липкая панель результата (мобильный) */
.sticky-result {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--primary); color: #fff;
  box-shadow: 0 -4px 16px rgb(16 24 40 / .25);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-result-btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: none; border: none; color: #fff; cursor: pointer;
  padding: 14px 20px; font: 400 15px var(--font);
}
.sticky-result-value {
  margin-left: auto; font-size: 22px; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.sticky-result-chevron { width: 10px; height: 10px; border-right: 2px solid #fff; border-top: 2px solid #fff; transform: rotate(-45deg); opacity: .7; }
@media (min-width: 900px) { .sticky-result { display: none !important; } }

/* ---------- Контент, таблицы, FAQ ---------- */
.calc-seo, .article-content { max-width: 720px; font-size: 17px; line-height: 1.65; }
.article-content p, .calc-seo p { margin: 0 0 16px; }
.calc-seo ul, .calc-seo ol, .article-content ul, .article-content ol { padding-left: 24px; }

.calc-seo table, .article-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px;
  background: var(--surface); border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow);
}
.calc-seo th, .article-content th {
  background: var(--bg); text-align: left; padding: 10px 14px; font-size: 14px; border-bottom: 2px solid var(--line);
}
.calc-seo td, .article-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.calc-seo tbody tr:nth-child(even), .article-content tbody tr:nth-child(even) { background: #FBFBFD; }

@media (max-width: 640px) {
  .calc-seo table, .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

.faq-block { max-width: 720px; margin-top: 40px; }
.faq-item {
  background: var(--surface); border-radius: var(--radius-s); box-shadow: var(--shadow);
  margin-bottom: 10px; padding: 0 18px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; position: relative; padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 4px; top: 22px;
  width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 26px; }
.faq-item p { margin: 0 0 16px; color: var(--text-muted); }

.related-block { margin-top: 40px; }

/* ---------- Статья ---------- */
.article-layout { display: grid; gap: 24px; padding: 16px 16px 48px; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 220px minmax(0, 720px) 1fr; }
}
.toc-sidebar { display: none; }
@media (min-width: 1024px) {
  .toc-sidebar { display: block; }
  .toc { position: sticky; top: 16px; padding: 16px; font-size: 14px; }
}
.toc-title { font-weight: 700; margin-bottom: 8px; }
.toc ol, .toc-mobile ol { margin: 0; padding-left: 18px; }
.toc a, .toc-mobile a { text-decoration: none; color: var(--text-muted); }
.toc a:hover, .toc-mobile a:hover { color: var(--primary); }
.toc-mobile { background: var(--surface); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 0 16px; margin: 16px 0; }
.toc-mobile summary { padding: 13px 0; font-weight: 600; cursor: pointer; }
@media (min-width: 1024px) { .toc-mobile { display: none; } }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.author { display: inline-flex; gap: 8px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--primary); }

.editors { display: grid; gap: 16px; margin: 24px 0; }
.editor-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.editor-card h3 { margin: 0 0 2px; font-size: 20px; }
.editor-role { margin: 0 0 8px; color: var(--text-muted); font-size: 14.5px; }
.editor-card p:last-child { margin: 0; }
.editor-photo { width: 96px; height: 96px; border-radius: 50%; background: var(--primary); }
.contact-mail { font-weight: 700; font-size: 18px; }
.footer-mail { margin: 8px 0 0; }
.footer-mail a { color: var(--accent); text-decoration: none; }
.footer-legal { margin: 8px 0 0; font-size: 13px; }
.footer-legal a { color: rgb(255 255 255 / .75); }
@media (max-width: 640px) {
  .editor-card { grid-template-columns: 72px 1fr; }
  .editor-photo { width: 72px; height: 72px; }
}

.calc-callout {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  background: var(--surface); border-left: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin: 32px 0; max-width: 720px;
}
.calc-callout-icon { width: 44px; height: 44px; color: var(--primary); flex: none; }
.calc-callout p { margin: 4px 0 0; color: var(--text-muted); font-size: 14.5px; }
.calc-callout .btn { margin-left: auto; }

/* Рекламные контейнеры: до апрува РСЯ полностью схлопнуты */
.ad-slot { display: none; }

/* ---------- Форма вопроса ---------- */
.question-block { max-width: 720px; margin-top: 40px; }
.question-block h2 { margin-top: 0; }
.form-status { font-size: 14.5px; min-height: 20px; margin: 10px 0 0; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--danger); }

/* ---------- Гараж и кабинет ---------- */
.garage-page { padding-top: 16px; padding-bottom: 48px; }
.garage-layout { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) {
  .garage-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.garage-list { margin: 0; padding-left: 20px; }
.garage-list li { margin-bottom: 10px; }
.auth-card { max-width: 480px; }
.garage-layout .auth-card { max-width: none; }
.auth-switch { margin: 16px 0 0; font-size: 14.5px; }
.muted { color: var(--text-muted); font-size: 14.5px; }

.garage-cta {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.garage-cta-title { font-weight: 700; margin: 0 0 4px; }
.garage-cta-text { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; }
.garage-cta .btn { width: 100%; }

.cabinet-head {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: flex-start; margin-bottom: 24px;
}
.cabinet-head .lead { margin-bottom: 0; }
.car-grid { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
.car-card h2 { margin-top: 0; }
.car-meta, .car-tax { margin: 0 0 8px; }
.car-tax strong { font-variant-numeric: tabular-nums; font-size: 22px; }
.deadline-list { list-style: none; margin: 12px 0; padding: 0; font-size: 14.5px; }
.deadline-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.deadline-list span:last-child { font-variant-numeric: tabular-nums; color: var(--text-muted); white-space: nowrap; }
.car-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
.car-edit { margin-top: 12px; }
.car-edit summary { cursor: pointer; font-weight: 600; color: var(--primary); }
.car-form { margin-top: 12px; }
.add-car-card { margin-bottom: 24px; }
.danger-card h2 { margin-top: 0; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--primary); color: rgb(255 255 255 / .85); margin-top: 48px; }
.footer-inner { display: grid; gap: 24px; padding: 40px 16px 24px; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h3 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: rgb(255 255 255 / .8); text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.logo-footer .logo-text { font-size: 18px; }
.footer-tagline { font-size: 14px; margin-top: 8px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .15); padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: rgb(255 255 255 / .6); }

/* ---------- Эксит Яндекс Бонус ---------- */
.bonus-exit {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 440px;
  width: calc(100% - 32px);
}
.bonus-exit::backdrop { background: rgb(26 29 35 / .55); }
.bonus-exit-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.bonus-exit-head {
  background: var(--primary);
  color: #fff;
  padding: 20px 48px 16px 24px;
  position: relative;
}
.bonus-exit-kicker { margin: 0; font-size: 13px; color: rgb(255 255 255 / .7); }
.bonus-exit-sum {
  margin: 4px 0 8px;
  color: var(--accent);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bonus-exit-title { margin: 0; font-size: 20px; font-weight: 700; color: #fff; line-height: 1.3; }
.bonus-exit-x {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  border: none; background: transparent;
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.bonus-exit-x:hover { color: var(--accent); }
.bonus-exit-body { padding: 20px 24px 24px; }
.bonus-exit-lead { margin: 0 0 16px; color: var(--text-muted); }
.bonus-exit-list {
  margin: 0 0 12px; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.bonus-exit-list li {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-s);
  border-left: 4px solid var(--accent);
}
.bonus-exit-list strong { font-variant-numeric: tabular-nums; }
.bonus-exit-extra { margin: 0 0 16px; font-size: 14px; color: var(--text-muted); }
.bonus-exit-cta { width: 100%; text-decoration: none; }
.bonus-exit-note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Лендинг Яндекс Бонус /yad/ ---------- */
.yad-hero {
  background: var(--primary);
  color: #fff;
  padding: 24px 0 32px;
}
.yad-hero-inner { max-width: 720px; }
.yad-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .7);
}
.yad-hero h1 { color: #fff; margin-bottom: 12px; }
.yad-lead {
  margin: 0 0 16px;
  font-size: 18px;
  color: rgb(255 255 255 / .82);
  max-width: 36em;
}
.yad-sum {
  margin: 0 0 20px;
  color: var(--ok);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.yad-cta {
  width: 100%;
  max-width: 420px;
  text-decoration: none;
}
.yad-section { padding: 32px 0 8px; }
.yad-section h2 { margin-top: 0; }
.yad-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .yad-hero { padding: 40px 0 48px; }
  .yad-sum { font-size: 72px; }
  .yad-grid { grid-template-columns: repeat(3, 1fr); }
}
.yad-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border-left: 4px solid var(--accent);
}
.yad-card-sum {
  margin: 0 0 8px;
  color: var(--ok);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.yad-card h3 { margin: 0 0 8px; font-size: 18px; }
.yad-card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.yad-extra { margin: 16px 0 0; color: var(--text-muted); }
.yad-extra strong { color: var(--ok); font-variant-numeric: tabular-nums; }
.yad-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}
.yad-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
}
.yad-step-n {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yad-steps h3 { margin: 0 0 4px; font-size: 17px; }
.yad-steps p { margin: 0; color: var(--text-muted); }
.yad-section .page-cover { max-width: 100%; }
.yad-bottom { padding-bottom: 48px; max-width: 720px; }
.yad-note { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }

/* ---------- Доступность и движение ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .gauge-arc { stroke-dashoffset: 160; }
  .gauge-needle { transform: rotate(57deg); }
  .odometer-digits { opacity: 1; }
}
