/*
 * Дизайн-система сайта. Чистый CSS, без сборки.
 * Основа: светлая тема + тёмная (переключатель, data-theme на <html>), акцент — лайм #d1fe17.
 * Сетка отступов кратна 4px, радиусы 8/12/16/24, шрифт Inter (SIL OFL, лежит в /fonts).
 * Брейкпоинты: 48rem (планшет), 80rem (десктоп).
 */

/* ---------- Шрифты ---------- */
@font-face {
    font-family: "Inter";
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Inter";
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
    --lime: #c4fb59;
    --lime-hover: #d3fd82;
    --lime-press: #a9de45;
    --brand-dark: #112023; /* тёмный цвет логотипа */

    /* светлая тема */
    --bg: #f5f6f7;
    --surface: #ffffff;
    --surface-2: #eef0f2;
    --text: #131416;
    --text-2: #5c626a;
    --border: #e1e4e8;
    --border-strong: #c9ced4;
    --link: #0256fe;
    --accent: var(--lime);
    --on-accent: #112023;
    --dark-block: #112023;
    --on-dark: #ffffff;
    --on-dark-2: #a8a8a8;
    --success: #1f9d55;
    --danger: #d92d20;
    --shadow: 0 1px 2px rgb(19 20 22 / 6%), 0 4px 16px rgb(19 20 22 / 6%);
    --check-bg: #eceef1;
    --check-border: #c3c8ce;
    --tip-bg: #112023;
    --tip-fg: #ffffff;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* отступы (4px) */
    --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem; --s-6: 1.5rem;
    --s-8: 2rem; --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem;

    --r-sm: 0.5rem; --r-md: 0.75rem; --r-lg: 1rem; --r-xl: 1.5rem; --r-full: 9999px;

    --container: 75rem; /* 1200px */
    --gutter: 1rem;
    --header-h: 4rem;
}

:root[data-theme="dark"] {
    --bg: #131416;
    --surface: #1c1e21;
    --surface-2: #23262a;
    --text: #ffffff;
    --text-2: #a8a8a8;
    --border: rgb(255 255 255 / 10%);
    --border-strong: rgb(255 255 255 / 20%);
    --link: #6ea0ff;
    --dark-block: #0b1517;
    --check-bg: #2e3238;
    --check-border: #4b525b;
    --tip-bg: #2b3036;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
}

@media (min-width: 48rem) { :root { --gutter: 1.5rem; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 1rem/1.5 var(--font); font-feature-settings: "cv11", "ss03";
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; /* подвал прижат к низу даже на коротких страницах */
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
:root[data-theme="dark"] :focus-visible { outline-color: var(--lime); }
h1, h2, h3, h4 { margin: 0 0 var(--s-4); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 var(--s-4); }
small, .small { font-size: 0.875rem; }
.muted { color: var(--text-2); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Раскладка ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-8); }
@media (min-width: 48rem) { .section { padding-block: var(--s-12); } }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.section__head h2 { margin: 0; }
.grid { display: grid; gap: var(--s-4); }
@media (min-width: 48rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 80rem) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid--tiles { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .grid--tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 80rem) { .grid--tiles { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: var(--s-4); }
.with-sidebar { display: grid; gap: var(--s-6); }
@media (min-width: 80rem) { .with-sidebar { grid-template-columns: 17.5rem 1fr; align-items: start; } }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: 2.75rem; padding: 0 var(--s-6); border: 0; border-radius: var(--r-full);
    font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
    background: var(--surface-2); color: var(--text); transition: background-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; background: var(--border); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--lime-hover); }
.btn--primary:active { background: var(--lime-press); }
.btn--dark { background: var(--text); color: var(--bg); }
.btn--dark:hover { background: var(--text); opacity: .88; }
.btn--lg { min-height: 3.25rem; padding: 0 var(--s-8); }
.btn--block { width: 100%; }

/* ---------- Шапка и подвал ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header__row { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }
.logo { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: var(--s-2); }
.logo img { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.logo:hover { text-decoration: none; }
.nav { display: none; gap: var(--s-1); margin-left: var(--s-4); }
.nav a { padding: var(--s-2) var(--s-3); border-radius: var(--r-full); color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
@media (min-width: 48rem) { .nav { display: flex; } }
.site-header__tools { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--r-full); background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 1.375rem; height: 1.375rem; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: block; }

.site-footer { margin-top: auto; /* см. main */ background: var(--dark-block); color: var(--on-dark); border-radius: var(--r-xl) var(--r-xl) 0 0; padding-block: var(--s-10) var(--s-8); }
.site-footer a { color: var(--on-dark); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-bottom: var(--s-6); }
.site-footer .muted { color: var(--on-dark-2); }

/* ---------- Герой ---------- */
.hero { background: var(--dark-block); color: var(--on-dark); border-radius: var(--r-xl); padding: var(--s-8) var(--s-6); margin-top: var(--s-4); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(closest-side, rgb(209 254 23 / 35%), transparent); pointer-events: none; }
.hero h1 { max-width: 40rem; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { color: var(--on-dark-2); max-width: 36rem; font-size: 1.125rem; }
@media (min-width: 48rem) { .hero { padding: var(--s-16) var(--s-12); } }

/* ---------- Карточки ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); }
.card--link { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.card--link:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.tile { display: flex; flex-direction: column; gap: var(--s-2); min-height: 7.5rem; justify-content: space-between; border-radius: var(--r-lg); padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; transition: background-color .15s, transform .15s; }
.tile:hover { background: var(--lime); color: var(--brand-dark); border-color: var(--lime); text-decoration: none; transform: translateY(-2px); }
.tile small { color: var(--text-2); font-weight: 400; }
.tile:hover small { color: var(--brand-dark); }

/* ---------- Бейджи и чипсы ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0.125rem var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); font-size: 0.75rem; font-weight: 600; line-height: 1.5; }
.badge--accent { background: var(--lime); color: var(--brand-dark); }
.badge--ad { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 var(--s-4); border-radius: var(--r-full); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--text); text-decoration: none; }
.chip[aria-current="true"], .chip--active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Карточка оффера ---------- */
.offers { display: grid; gap: var(--s-3); container-type: inline-size; }
.offers__legal { margin: 0 0 var(--s-2); }
.offer { display: grid; min-width: 0; gap: var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s-5); }
.offer__head { display: flex; align-items: center; gap: var(--s-4); }
.offer__logo { flex: none; width: 6rem; height: 3.5rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border); object-fit: contain; padding: 0.375rem 0.5rem; }
.offer__title { margin: 0; font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.01em; }
.offer__org { margin: 0; font-size: 0.8125rem; color: var(--text-2); }
.offer__badges { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.offer__facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); margin: 0; }
.offer__facts dt { font-size: 0.75rem; color: var(--text-2); }
.offer__facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.offer__cta { display: grid; gap: var(--s-2); align-content: center; }
.offer__erid { font-size: 0.75rem; color: var(--text-2); text-align: center; }
/* раскладка по ширине контейнера: на всю ширину — в одну строку, рядом с фильтрами — в две */
.offer__head { grid-area: head; } .offer__facts { grid-area: facts; } .offer__cta { grid-area: cta; }
.offer { grid-template-areas: "head" "facts" "cta"; }
@container (min-width: 36rem) {
    .offer { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head cta" "facts facts"; align-items: center; }
    .offer__cta { min-width: 11rem; }
}
@container (min-width: 64rem) {
    .offer { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; grid-template-areas: "head facts cta"; gap: var(--s-6); }
}
}

/* ---------- Предупреждения ---------- */
.notice { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: 0.8125rem; line-height: 1.5; }
.notice strong { color: var(--text); }

/* ---------- Хлебные крошки, пагинация, FAQ ---------- */
.breadcrumbs { display: flex; flex-wrap: nowrap; align-items: center; margin: var(--s-6) 0 var(--s-4); padding: 0; list-style: none; font-size: 0.875rem; color: var(--text-2); overflow-x: auto; scrollbar-width: none; }
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs li { flex: none; white-space: nowrap; }
.breadcrumbs li + li::before { content: "/"; margin: 0 var(--s-2); color: var(--border-strong); }
.breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs a { color: var(--text-2); }
.faq details { border-bottom: 1px solid var(--border); padding-block: var(--s-4); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--text-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: var(--s-3) 0 0; color: var(--text-2); }
.pager { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-8); flex-wrap: wrap; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: var(--s-3); border-radius: var(--r-full); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.pager .is-disabled { opacity: .35; }
.pager .is-gap { border-color: transparent; background: transparent; }
.pager [aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Статьи ---------- */
.post-card { display: flex; flex-direction: column; gap: var(--s-3); height: 100%; }
.post-card .badge { align-self: flex-start; }
.post-card h3 { margin: 0; }
.post-card p { margin: 0; color: var(--text-2); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; font-size: 0.8125rem; color: var(--text-2); }
.prose { max-width: 46rem; font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { margin-top: var(--s-10); font-size: 1.75rem; }
.prose h3 { margin-top: var(--s-8); }
.prose ul, .prose ol { padding-left: var(--s-6); margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose blockquote { margin: var(--s-6) 0; padding: var(--s-4) var(--s-5); border-left: 4px solid var(--lime); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-4); font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--border); }
.prose img { border-radius: var(--r-md); }
.byline { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: 0.875rem; color: var(--text-2); margin-bottom: var(--s-6); }

/* ---------- Таблица сравнения ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Баннер cookies ---------- */
.cookie { position: fixed; z-index: 100; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); max-width: 44rem; }
.cookie[hidden] { display: none; }
.cookie__text { margin: 0; font-size: 0.9375rem; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (min-width: 48rem) { .cookie { left: var(--s-6); right: auto; bottom: var(--s-6); grid-template-columns: 1fr auto; align-items: center; max-width: 52rem; } }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Формы и фильтры ---------- */
.field { display: grid; gap: var(--s-1); }
.field__label { font-size: 0.8125rem; color: var(--text-2); font-weight: 500; }
.input { width: 100%; min-height: 2.75rem; padding: 0 var(--s-3); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; }
.input:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
:root[data-theme="dark"] .input:focus-visible { outline-color: var(--lime); }
select.input { padding-right: var(--s-2); }
.check { display: flex; align-items: center; gap: var(--s-3); min-height: 2.75rem; cursor: pointer; font-weight: 500; }


/* ---------- Мобильное меню (выезжает справа) ---------- */
.burger { display: inline-grid; }
@media (min-width: 48rem) { .burger { display: none; } }
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s .25s; }
.drawer.is-open { visibility: visible; transition-delay: 0s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 55%); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(20rem, 88vw); display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-6); background: var(--surface); box-shadow: var(--shadow); overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 2.75rem; }
.drawer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.drawer__links a { display: block; padding: var(--s-3) var(--s-3); border-radius: var(--r-md); color: var(--text); text-decoration: none; font-size: 1.125rem; font-weight: 600; }
.drawer__links a:hover { background: var(--surface-2); }
.drawer__links--secondary { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.drawer__links--secondary a { font-size: 0.9375rem; font-weight: 500; color: var(--text-2); }
body.drawer-lock { overflow: hidden; }
@media (min-width: 48rem) { .drawer { display: none; } }

/* ---------- Панель фильтров и сортировки ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-6); }
.toolbar__sort { position: relative; }
.toolbar__btn { list-style: none; cursor: pointer; border: 1px solid var(--border-strong); background: var(--surface); }
.toolbar__btn::-webkit-details-marker { display: none; }
.toolbar__btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
details[open] > .toolbar__btn, .toolbar__btn[aria-expanded="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.toolbar__count { align-self: center; margin-left: auto; }
.filters { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: end; margin-bottom: var(--s-6); }
.js .filters:not(.is-open) { display: none; }
.filters__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.menu-pop { position: absolute; z-index: 20; top: calc(100% + var(--s-2)); left: 0; min-width: 15rem; margin: 0; padding: var(--s-2); list-style: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow); }
.menu-pop a { display: block; padding: var(--s-3); border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.menu-pop a:hover { background: var(--surface-2); }
.menu-pop a[aria-current="true"] { font-weight: 700; background: var(--lime); color: var(--brand-dark); }

/* ---------- Сравнение ---------- */
.check--small { min-height: 2rem; font-size: 0.875rem; font-weight: 500; justify-content: center; }
.compare-bar { position: fixed; z-index: 85; left: 50%; bottom: var(--s-4); transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--dark-block); color: var(--on-dark); border-radius: var(--r-full); box-shadow: var(--shadow); max-width: calc(100vw - 2rem); }
.compare-bar[hidden] { display: none; }
.compare-bar__text { font-size: 0.9375rem; white-space: nowrap; }
.compare-bar .btn { min-height: 2.5rem; padding-inline: var(--s-4); }
.compare-bar [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.compare th, .compare td { white-space: normal; min-width: 11rem; vertical-align: top; }
.compare thead th { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); }
.compare tbody th { position: sticky; left: 0; background: var(--surface); min-width: 8rem; }
.compare__title { display: block; margin-top: var(--s-2); font-weight: 700; }

/* ---------- Блок «Как мы выбираем» ---------- */
.methodology__card { padding: var(--s-6); }
.methodology__list { margin: 0 0 var(--s-4); padding-left: var(--s-5); display: grid; gap: var(--s-3); }

/* ---------- Чекбоксы ---------- */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; display: inline-grid; place-content: center; width: 1.25rem; height: 1.25rem; margin: 0; border: 1.5px solid var(--check-border); border-radius: 0.375rem; background: var(--check-bg); cursor: pointer; transition: background-color .15s, border-color .15s; }
input[type="checkbox"]:hover:not(:disabled) { border-color: var(--text-2); }
input[type="checkbox"]:checked { background: var(--lime); border-color: var(--lime); }
input[type="checkbox"]:checked::after { content: ""; width: 0.3125rem; height: 0.625rem; margin-top: -0.125rem; border: solid var(--brand-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Подсказки (tooltip) ---------- */
.hint { display: inline-grid; place-items: center; width: 1rem; height: 1rem; margin-left: var(--s-1); padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: help; vertical-align: middle; transition: color .15s; }
.hint svg { width: 100%; height: 100%; }
.hint:hover, .hint:focus-visible { color: var(--text); }
[data-tooltip]:not(.hint) { text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: help; }
.tooltip { position: fixed; z-index: 200; left: 0; top: 0; width: max-content; max-width: min(22rem, calc(100vw - 1rem)); padding: var(--s-4); border-radius: var(--r-md); background: var(--tip-bg); color: var(--tip-fg); box-shadow: var(--shadow); font-size: 0.8125rem; line-height: 1.5; pointer-events: none; }
.tooltip[hidden] { display: none; }
.tooltip::after { content: ""; position: absolute; left: var(--arrow-x, 50%); width: 0.75rem; height: 0.75rem; margin-left: -0.375rem; background: inherit; transform: rotate(45deg); }
.tooltip[data-side="top"]::after { bottom: -0.3125rem; }
.tooltip[data-side="bottom"]::after { top: -0.3125rem; }
.tooltip__title { margin-bottom: var(--s-2); font-size: 0.9375rem; font-weight: 700; }

/* ---------- Иконки и технические данные под заголовком ---------- */
.icon { width: 1rem; height: 1rem; flex: none; }
.byline { align-items: center; }
.byline > span, .post-card__meta { display: inline-flex; align-items: center; gap: var(--s-2); }
.byline .icon, .post-card__meta .icon { color: var(--text-2); }

.offer__logo--fallback { display: inline-grid; place-items: center; flex: none; border-radius: var(--r-md); background: var(--lime); color: var(--brand-dark); font-weight: 800; font-size: 1.375rem; }

/* Страницы ошибок */
.error-page { text-align: center; padding: var(--s-16) 0; max-width: 34rem; margin-inline: auto; }
.error-page__code { font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; line-height: 1; margin: 0; color: var(--accent); }
.error-page__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }

/* Каркас: main растягивается, подвал внизу экрана. Отступ между контентом и подвалом задаёт main. */
body > main { flex: 1 0 auto; width: 100%; padding-bottom: var(--s-16); }
.section--tight { padding-block: var(--s-4); }
.usp { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); list-style: none; margin: var(--s-6) 0 0; padding: 0; font-size: 0.9375rem; color: var(--on-dark); position: relative; z-index: 1; }
.usp li::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: var(--s-2); border-radius: 50%; background: var(--lime); }

/* Баннеры категорий на главной */
.banners { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .banners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .banners { grid-template-columns: repeat(3, 1fr); } }
.banner { --b-bg: var(--lime); --b-fg: var(--brand-dark); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); min-height: 11.5rem; padding: var(--s-6); border-radius: var(--r-xl); background: var(--b-bg); color: var(--b-fg); text-decoration: none; transition: transform .2s, box-shadow .2s; isolation: isolate; }
.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.banner__count { padding: 0.125rem var(--s-3); border-radius: var(--r-full); background: rgb(255 255 255 / 55%); font-size: 0.75rem; font-weight: 600; }
.banner__title { font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; max-width: 14rem; }
.banner__text { font-size: 0.9375rem; line-height: 1.4; max-width: 15rem; opacity: .85; }
.banner__go { margin-top: auto; display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; }
.banner__go svg { width: 1.125rem; height: 1.125rem; transition: transform .2s; }
.banner:hover .banner__go svg { transform: translateX(4px); }
.banner__art { position: absolute; z-index: -1; right: -1.5rem; bottom: -1.5rem; width: 10.5rem; height: 10.5rem; opacity: .22; transform: rotate(-12deg); }
.banner::before { content: ""; position: absolute; z-index: -1; right: -3rem; top: -3rem; width: 11rem; height: 11rem; border-radius: 50%; background: rgb(255 255 255 / 35%); }
.banner--dark { --b-bg: var(--dark-block); --b-fg: #fff; }
.banner--dark .banner__count { background: rgb(255 255 255 / 14%); }
.banner--dark .banner__art { color: var(--lime); opacity: .5; }
.banner--dark::before { background: radial-gradient(closest-side, rgb(196 251 89 / 28%), transparent); }
.banner--violet { --b-bg: #dcd6ff; --b-fg: #1d1640; }
.banner--peach { --b-bg: #ffd9c2; --b-fg: #3a1d0c; }
.banner--sky { --b-bg: #cfe6ff; --b-fg: #0d2542; }
.banner--mint { --b-bg: #c6f0dc; --b-fg: #0c2c20; }
:root[data-theme="dark"] .banner--violet { --b-bg: #2d2658; --b-fg: #efeaff; }
:root[data-theme="dark"] .banner--peach { --b-bg: #4a2a1a; --b-fg: #ffe8da; }
:root[data-theme="dark"] .banner--sky { --b-bg: #1b3350; --b-fg: #e3f0ff; }
:root[data-theme="dark"] .banner--mint { --b-bg: #17382b; --b-fg: #def7ea; }
:root[data-theme="dark"] .banner--lime { --b-fg: var(--brand-dark); }
:root[data-theme="dark"] .banner:not(.banner--dark):not(.banner--lime) .banner__count { background: rgb(255 255 255 / 12%); }

/* Рекламная карточка предложения (рядом со статьёй и на главной) */
.promo { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.promo__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.promo__ad { font-size: 0.75rem; color: var(--text-2); }
.promo__head { display: flex; align-items: center; gap: var(--s-3); }
.promo__title { margin: 0; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.01em; }
.promo__facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: 0; }
.promo__facts dt { font-size: 0.75rem; color: var(--text-2); }
.promo__facts dd { margin: 0; font-weight: 600; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.promo__btn { width: 100%; }
.promo__legal { margin: 0; font-size: 0.75rem; color: var(--text-2); text-align: center; overflow-wrap: anywhere; }
.promo__more { font-size: 0.875rem; text-align: center; }

/* Статья + колонка рекламы справа (на мобильных колонка идёт под статьёй) */
.article-layout { display: grid; gap: var(--s-8); }
.article-aside { display: grid; gap: var(--s-4); align-content: start; }
@media (min-width: 64rem) {
    .article-layout--aside { grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--s-10); align-items: start; }
    .article-aside { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}
.promo__btn { margin-top: auto; }
/* последний баннер, если он один в своём ряду, растягиваем на всю строку */
@media (min-width: 40rem) { .banners > .banner:last-child:nth-child(2n+1) { grid-column: 1 / -1; min-height: 9rem; } }
@media (min-width: 64rem) { .banners > .banner:last-child:nth-child(2n+1) { grid-column: auto; min-height: 11.5rem; } .banners > .banner:last-child:nth-child(3n+1) { grid-column: 1 / -1; min-height: 9rem; } .banners > .banner:last-child:nth-child(3n+1) .banner__title { max-width: 28rem; } }

/* Кнопка «Оформить» + «i» */
.offer__buttons, .promo__buttons { display: flex; align-items: center; gap: var(--s-2); }
.offer__buttons .btn, .promo__buttons .btn { flex: 1; }
.info-btn { flex: none; border: 1px solid var(--border-strong); background: var(--surface); }
.info-btn:hover { background: var(--surface-2); border-color: var(--text); }

/* Окно с подробностями оффера (нативный <dialog>, по центру) */
.odialog { width: min(36rem, calc(100vw - 2rem)); max-height: min(44rem, calc(100dvh - 2rem)); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgb(0 0 0 / 35%); overflow: hidden; }
.odialog[open] { display: flex; flex-direction: column; animation: odialog-in .18s ease-out; }
.odialog::backdrop { background: rgb(8 16 18 / 62%); backdrop-filter: blur(3px); }
@keyframes odialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .odialog[open] { animation: none; } }
.odialog__head { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--border); }
.odialog__head > div { flex: 1; min-width: 0; }
.odialog__ad { margin: 0; font-size: 0.75rem; color: var(--text-2); }
.odialog__title { margin: 0; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
.odialog__close { flex: none; align-self: flex-start; margin: calc(var(--s-2) * -1) calc(var(--s-2) * -1) 0 0; }
.odialog__body { padding: var(--s-4) var(--s-5); overflow-y: auto; }
.odialog__body h4 { margin: var(--s-5) 0 var(--s-2); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.odialog__body > .badge + h4, .odialog__body > h4:first-child { margin-top: var(--s-3); }
.odialog__list { margin: 0; }
.odialog__list > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: 1px solid var(--border); }
.odialog__list dt { color: var(--text-2); font-size: 0.9375rem; }
.odialog__list dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.odialog__foot { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px solid var(--border); background: var(--surface); }
.odialog__foot p { margin: 0; }

/* Карточка в тексте статьи: только на мобильных (на десктопе есть колонка справа) */
.article-inline-promo { margin: var(--s-6) 0; max-width: 46rem; }
@media (min-width: 64rem) { .article-inline-promo { display: none; } }
@media (max-width: 63.99rem) { .article-aside .promo:first-child { display: none; } }

/* Правки: кнопка «i» светло-серая; вкладки в окне; отступ у пояснения к ПСК */
.promo__buttons { margin-top: auto; }
.info-btn { color: var(--text-2); border-color: var(--border); background: var(--surface-2); }
.info-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.odialog__tabs { display: flex; gap: var(--s-1); padding: var(--s-3) var(--s-5) 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.odialog__tab { flex: none; padding: var(--s-2) var(--s-3); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--text-2); font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.odialog__tab:hover { color: var(--text); }
.odialog__tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--lime); }
:root:not([data-theme="dark"]) .odialog__tab[aria-selected="true"] { border-bottom-color: var(--brand-dark); }
.odialog__panel[hidden] { display: none; }
.odialog__note { margin: var(--s-5) 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-2); }
.odialog__head .badge { margin-top: var(--s-1); }
.odialog__extra { margin: var(--s-4) 0 0; padding-left: var(--s-5); }
.odialog__extra li { margin-bottom: var(--s-2); }
