/* Страницы сайта поверх дизайн-системы (public/assets/system.css). Только токены системы. */

/* ---------- главная ---------- */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.cat-card { display: grid; align-content: space-between; gap: var(--s-6); min-height: 132px; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); text-decoration: none; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.cat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.cat-card__name { font-size: var(--t-card); line-height: 1.3; font-weight: 500; }
.cat-card__note { font-size: var(--t-small); color: var(--muted); }
.cat-grid--sm .cat-card { min-height: 104px; }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.facts-list li { padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-body); line-height: 1.6; }
.facts-list b { font-weight: 500; }
.steps { list-style: none; margin: 0 0 var(--s-7); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); counter-reset: st; }
.steps li { counter-increment: st; display: grid; align-content: start; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(st); font-family: var(--font-mono); font-size: var(--t-small); color: var(--muted); }
.steps h3 { margin: 0; font-size: var(--t-card); font-weight: 500; line-height: 1.3; }
.steps p { margin: 0; font-size: var(--t-body); line-height: 1.6; }
.faq--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); }
.menu-calc { display: grid; align-content: center; gap: var(--s-1); padding: var(--s-5); background: var(--p-accent); color: var(--p-accent-ink); min-height: 140px; }
.menu-calc span, .menu-calc small { font-size: var(--t-small); }
.menu-calc b { font-family: var(--font-display); font-weight: 400; font-size: 36px; letter-spacing: -0.03em; }

/* ---------- калькулятор ---------- */
.calc { display: grid; gap: var(--s-5); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--p-surface); }
.calc__title { margin: 0; font-size: var(--t-card); font-weight: 500; }
.calc__field { display: grid; gap: var(--s-2); }
.calc__field label { font-size: var(--t-small); color: var(--muted); }
.calc__row { display: grid; grid-template-columns: 1fr 112px; align-items: center; gap: var(--s-4); }
.calc__row output { font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; }
.calc input[type="range"] { width: 100%; height: 44px; accent-color: var(--p-ink); background: transparent; }
.calc__result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.calc__result div { display: grid; gap: var(--s-1); }
.calc__result dt { font-size: var(--t-small); color: var(--muted); }
.calc__result dd { margin: 0; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc__result div:first-child dd { box-shadow: inset 0 -8px 0 var(--p-accent); justify-self: start; }
.calc__note { margin: 0; font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.calc--compact { padding: var(--s-5); gap: var(--s-4); }
.calc--compact .calc__result dd { font-size: 22px; }

/* ---------- внутренние страницы ---------- */
.doc { padding-top: calc(var(--nav) + var(--s-6)); padding-bottom: var(--s-9); }
.crumbs ol { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.doc-head { margin-bottom: var(--s-8); row-gap: var(--s-6); }
.doc-head h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: clamp(34px, 3.2vw + 12px, 56px); line-height: 1.06; margin: 0; max-width: 20ch; }
.doc-lead { margin: 0; max-width: 56ch; }
.doc-meta { margin: 0; font-size: var(--t-small); color: var(--muted); }
.doc-meta a { color: inherit; }
.doc-notice { margin: 0; max-width: 72ch; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--p-ink); background: var(--p-surface); font-size: var(--t-body); line-height: 1.6; }
.doc-block { margin-bottom: var(--s-8); }
.doc-block h2, .doc-faq > h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.025em; font-size: clamp(26px, 1.4vw + 18px, 36px); line-height: 1.15; margin: 0 0 var(--s-5); }
.doc-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-8); align-items: start; }
.doc-main { min-width: 0; max-width: 720px; }
.doc-aside { padding-top: var(--s-2); }
.doc-aside ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; }
.doc-aside li a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--t-body); }
.doc-aside li a:hover { text-decoration: underline; }
.doc-faq { margin-top: var(--s-8); }

.prose { font-size: 17px; line-height: 1.7; color: var(--ink); }
.prose > * { margin: 0 0 var(--s-4); }
.prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -0.025em; font-size: clamp(26px, 1.4vw + 18px, 34px); line-height: 1.18; margin: var(--s-8) 0 var(--s-4); }
.prose h3 { font-size: 21px; font-weight: 500; line-height: 1.3; margin: var(--s-6) 0 var(--s-3); }
.prose h4 { font-size: 18px; font-weight: 500; margin: var(--s-5) 0 var(--s-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: var(--s-2); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 500; }
.prose blockquote { margin: var(--s-6) 0; padding-left: var(--s-5); border-left: 3px solid var(--p-accent); }
.prose__img img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.table-wrap { overflow-x: auto; margin: var(--s-5) 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--p-surface); font-weight: 500; }
.table-wrap tbody th { font-weight: 500; }
.table-wrap tr:last-child > * { border-bottom: 0; }

/* списки */
.link-grid, .city-list, .post-list { list-style: none; margin: 0; padding: 0; }
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--s-5); }
.link-grid a, .city-list a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.link-grid a:hover, .city-list a:hover { text-decoration: underline; }
.city-list { columns: 4 240px; column-gap: var(--s-6); }
.city-list li { break-inside: avoid; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.tabs a { display: inline-flex; align-items: center; height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--t-small); }
.tabs a[aria-current="page"] { background: var(--p-ink); color: var(--p-bg); border-color: var(--p-ink); }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.post-card { display: grid; align-content: start; gap: var(--s-2); height: 100%; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.post-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.post-card__date { font-size: var(--t-label); color: var(--muted); }
.post-card__title { font-size: var(--t-card); font-weight: 500; line-height: 1.3; }
.post-card__ex { font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.pager { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.pager span[aria-current] { background: var(--p-ink); color: var(--p-bg); }

/* подвал внутренних страниц: обычной высоты */
.footer--inner { padding-block: var(--s-9) var(--s-7); }
.footer__risk { margin: var(--s-7) 0 0; max-width: 90ch; font-size: var(--t-small); line-height: 1.6; color: var(--muted); }

@media (max-width: 1023px) {
	.cat-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.doc-body { grid-template-columns: 1fr; }
	.doc-head > [class*="span-"] { grid-column: 1 / -1; }
	.post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.faq--cols { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
	.cat-grid, .steps, .post-list, .link-grid { grid-template-columns: 1fr; }
	.cat-grid { gap: var(--s-3); }
	.cat-card { min-height: 0; gap: var(--s-2); padding: var(--s-4); }
	.calc__result { grid-template-columns: 1fr 1fr; }
	.calc__result dd { font-size: 22px; }
	.calc__row { grid-template-columns: 1fr 96px; }
	.prose { font-size: 16px; }
}

/* ---------- окно подбора в первом экране (по мотивам assets/layout/demo.css, светлое) ---------- */
.hero--centred .hero__window { background: linear-gradient(180deg, #e9fff3 0%, #c9f7de 55%, #a1ffcb 100%); }
.d-win { background: #fff; color: #1d1f21; border-radius: 12px; overflow: hidden; font: 400 14px/1.45 var(--font-text); box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 30px 60px -32px rgb(20 60 40 / .45); text-align: left; }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #5d6268; }
.d-win__bar b { font-weight: 500; color: #1d1f21; } .d-win__bar .sp { flex: 1; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe2; }
.d-win__body { display: grid; grid-template-columns: 250px 1fr; min-height: 300px; }
.inbox { border-right: 1px solid rgb(0 0 0 / .07); padding: 10px; display: grid; align-content: start; gap: 2px; }
.inbox .q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: #f3f3f3; display: flex; align-items: center; padding: 0 10px; color: #686868; font-size: 13px; }
.inbox .t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
.inbox .t.is-on { background: #f3f3f3; }
.inbox .t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--font-text); font-style: normal; color: #232323; }
.inbox .t b { font-weight: 500; } .inbox .t time { color: #686868; font-size: 13px; }
.inbox .t span { grid-column: 2 / -1; color: #686868; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo { display: grid; min-width: 0; align-content: start; }
.d-chat { display: grid; gap: 8px; align-content: start; padding: 14px 18px; }
.d-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.d-msg--me { justify-self: end; background: #232323; color: #fff; border-bottom-right-radius: 6px; }
.d-msg--me small { display: none; }
.d-msg--bot { background: #f3f3f3; color: #232323; border-bottom-left-radius: 6px; }
.d-msg small { display: inline; margin-left: 8px; font-size: 13px; color: #686868; white-space: nowrap; }
.d-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #686868; }
.d-tool::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #3bbf7a; border-right-color: transparent; }
.acts { display: flex; gap: 8px; } .acts span { height: 30px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: #232323; color: #fff; }
.acts span + span { background: #f3f3f3; color: #232323; }
@media (max-width: 639px) { .d-win__body { grid-template-columns: 1fr; } .inbox { display: none; } .d-chat { font-size: 13px; padding: 12px 14px; } .d-tool, .d-msg small { display: none; } .d-win__bar .sp ~ span { display: none; } }

/* правки по скриншотам */
.calc__result dd { white-space: nowrap; font-size: clamp(20px, 1vw + 12px, 28px); }
.calc--compact .calc__result dd { font-size: clamp(18px, .6vw + 12px, 22px); }
.cat-card { align-content: start; grid-template-rows: 1fr auto; }
.cat-card__name { font-size: 18px; }
@media (max-width: 639px) { #podbor, #kalkulyator { --hm: 2; } }

/* =====================================================================
   v2: ярче и конверсионнее (по запросу владельца: больше цвета, офферы выше, текст блоками)
   ===================================================================== */
:root { --mint: #a1ffcb; --mint-soft: #e6fff1; --lemon: #ffe08a; --lemon-soft: #fff7d6; --sky: #b9d7ff; --sky-soft: #eaf3ff; --peach: #ffc2a8; --peach-soft: #fff0e8; --ink-deep: #14261c; }

/* главная: плитки категорий в цвете */
.cat-grid li:nth-child(6n+1) .cat-card { background: var(--mint-soft); border-color: transparent; }
.cat-grid li:nth-child(6n+2) .cat-card { background: var(--lemon-soft); border-color: transparent; }
.cat-grid li:nth-child(6n+3) .cat-card { background: var(--sky-soft); border-color: transparent; }
.cat-grid li:nth-child(6n+4) .cat-card { background: var(--peach-soft); border-color: transparent; }
.cat-grid li:nth-child(6n+5) .cat-card { background: #f0fbe0; border-color: transparent; }
.cat-grid li:nth-child(6n+6) .cat-card { background: #eef7f9; border-color: transparent; }
.cat-card { position: relative; }
.cat-card::after { content: "→"; position: absolute; right: var(--s-5); bottom: var(--s-5); font-size: 20px; transition: transform var(--dur) var(--ease); }
.cat-card:hover::after { transform: translateX(4px); }
.cat-card:hover { border-color: var(--ink) !important; }

/* главная: калькулятор на тёмной полосе */
#kalkulyator { background: var(--ink-deep); color: #fff; --ink: #fff; --muted: #b9c9bf; --line: rgb(255 255 255 / .14); }
#kalkulyator .section-head p, #kalkulyator .facts-list li { color: #e8f3ec; }
#kalkulyator .facts-list b { color: var(--mint); }
#kalkulyator .calc { background: #fff; color: #232323; --ink: #232323; --muted: #555; --line: rgb(0 0 0 / .1); border: 0; }
.calc input[type="range"] { accent-color: #1f8f57; }
.calc__result div:first-child dd { box-shadow: inset 0 -10px 0 var(--mint); }
#voprosy { background: var(--mint-soft); }

/* текст стал контрастнее (проверка taste: 7:1 для читаемого текста) */
.hero--centred .hero__lead { color: #3d3d3d; }
.calc__note { color: #4a4a4a; }

/* посадочные: шапка, доверие, кнопки */
.doc-head .btn-row { margin-top: var(--s-2); }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.trust li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--mint-soft); font-size: var(--t-small); }
.trust li::before { content: "✓"; color: #1f8f57; font-weight: 600; }
.doc-head h1 { max-width: 22ch; }

/* офферы */
.offers { margin: 0 0 var(--s-8); padding: var(--s-7); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--mint-soft), #fff 70%); border: 1px solid #d6f5e3; }
.offers__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.offers__head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em; font-size: clamp(24px, 1.2vw + 16px, 32px); line-height: 1.15; }
.offers__sub { margin: 0; color: #4a4a4a; font-size: var(--t-small); }
.offers__demo { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--lemon-soft); font-size: var(--t-small); justify-self: start; }
.offers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.offer { display: grid; grid-template-columns: minmax(200px, 1.2fr) 3fr auto; align-items: center; gap: var(--s-5); padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--tint); border-radius: var(--r-md); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.offer:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgb(20 60 40 / .35); }
.offer__id { display: flex; align-items: center; gap: var(--s-3); }
.offer__logo { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--tint); font-weight: 600; font-size: 20px; overflow: hidden; }
.offer__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.offer__name { display: block; font-weight: 500; font-size: 18px; color: var(--ink); text-decoration: none; }
.offer__name:hover { text-decoration: underline; }
.offer__badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--mint); font-size: 13px; font-weight: 500; }
.offer__terms { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.offer__terms dt { font-size: 13px; color: #5a5a5a; }
.offer__terms dd { margin: 2px 0 0; font-weight: 500; font-size: 16px; white-space: nowrap; }
.offer__cta { display: grid; justify-items: center; gap: 4px; }
.offer__btn { background: #1f8f57; color: #fff; height: 48px; padding-inline: var(--s-6); white-space: nowrap; }
.offer__btn:hover { background: #18774a; }
.offer__payout { font-size: 13px; color: #5a5a5a; }
.offer__legal { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #5a5a5a; }

/* содержание */
.toc { margin: 0 0 var(--s-6); padding: var(--s-5); border-radius: var(--r-lg); background: var(--p-surface); }
.toc ol { margin: var(--s-3) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.3; }
.toc a::before { content: counter(toc); font-family: var(--font-mono); font-size: 12px; color: #5a5a5a; }
.toc a:hover { border-color: var(--ink); }

/* смысловые блоки */
.blk { padding: var(--s-6) var(--s-6) var(--s-4); margin: 0 0 var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; scroll-margin-top: calc(var(--nav) + 16px); }
.blk > h2:first-of-type { margin-top: 0; }
.blk__label { margin: 0 0 var(--s-2) !important; display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.blk--intro { border: 0; padding: 0; }
.blk--cost { background: var(--mint-soft); border-color: #c9f2db; }
.blk--cost .blk__label { background: var(--mint); }
.blk--risk { background: var(--peach-soft); border-color: #ffd9c7; }
.blk--risk .blk__label { background: var(--peach); }
.blk--steps { background: var(--sky-soft); border-color: #d3e5ff; }
.blk--steps .blk__label { background: var(--sky); }
/* списки: чек-лист и шаги-карточки */
.prose ul { list-style: none; padding-left: 0; display: grid; gap: var(--s-2); }
.prose ul > li { position: relative; padding: 10px 14px 10px 40px; margin: 0; border-radius: 10px; background: rgb(0 0 0 / .03); }
.prose ul > li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 4px #1f8f57; }
.blk--risk .prose ul > li::before, .blk--risk ul > li::before { background: var(--peach); box-shadow: inset 0 0 0 4px #d9622b; }
.prose ol { list-style: none; padding-left: 0; counter-reset: st; display: grid; gap: var(--s-3); }
.prose ol > li { counter-increment: st; position: relative; padding: var(--s-4) var(--s-4) var(--s-4) 64px; margin: 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.prose ol > li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; }
.prose strong { font-weight: 600; background: linear-gradient(transparent 62%, rgb(161 255 203 / .7) 0); }
.blk .table-wrap { background: #fff; }

/* FAQ раскрывающимся списком */
.qa { display: grid; gap: var(--s-2); }
.qa__item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.qa__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-5); font-weight: 500; font-size: 17px; }
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary::after { content: "+"; font-size: 24px; line-height: 1; transition: transform var(--dur) var(--ease); }
.qa__item[open] summary::after { transform: rotate(45deg); }
.qa__item p { margin: 0; padding: 0 var(--s-5) var(--s-5); font-size: 16px; line-height: 1.65; }
.doc-faq { padding: var(--s-6); border-radius: var(--r-lg); background: var(--lemon-soft); }
.doc-faq > h2 { margin-top: 0; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); background: var(--ink-deep); color: #fff; }
.cta-band p { margin: 0; max-width: 52ch; line-height: 1.5; }
.cta-band .btn--primary { background: var(--mint); color: #14261c; }
.doc-aside { position: sticky; top: calc(var(--nav) + 24px); }

@media (max-width: 1023px) {
	.offer { grid-template-columns: 1fr; gap: var(--s-3); }
	.offer__terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.offer__cta { justify-items: stretch; }
	.doc-aside { position: static; }
}
@media (max-width: 639px) {
	.offers { padding: var(--s-4); margin-inline: calc(-1 * var(--s-2)); }
	.blk { padding: var(--s-5) var(--s-4) var(--s-3); }
	.doc-faq { padding: var(--s-4); }
	.prose ol > li { padding-left: 56px; }
	.toc ol { display: grid; }
}
/* две колонки только на десктопе: без медиазапроса это правило перебивало одноколоночную сетку на телефоне (22.11) */
@media (min-width: 1024px) {
	.doc-body { grid-template-columns: minmax(0, 840px) 260px; justify-content: space-between; }
}
.doc-main { max-width: 840px; }
.section--offers .offers { margin: 0; }

/* =====================  v3: иконки, визуалы, одна кнопка  ===================== */
/* одна основная кнопка на всём сайте: зелёная (белый текст 5:1) */
:root { --p-action: #17784a; --p-action-ink: #ffffff; --p-inv-action: #17784a; --p-inv-action-ink: #ffffff; }
.offer__btn { background: var(--action); color: var(--action-ink); }
.offer__btn:hover { background: color-mix(in oklab, var(--action) 86%, #000); }
.cta-band .btn--primary { background: var(--p-action); color: #fff; }

/* категории с иконками */
.cat-card { grid-template-rows: auto 1fr auto; gap: var(--s-3); }
.cat-card__ic { display: grid; place-items: center; width: 100%; height: 88px; border-radius: calc(var(--r-lg) - 4px); background: rgb(255 255 255 / .7); color: #17784a; }
.cat-grid li:nth-child(6n+2) .cat-card__ic { color: #a26a00; }
.cat-grid li:nth-child(6n+3) .cat-card__ic { color: #1d5fbf; }
.cat-grid li:nth-child(6n+4) .cat-card__ic { color: #c2501f; }
.cat-grid li:nth-child(6n+5) .cat-card__ic { color: #4f7a12; }
.cat-grid li:nth-child(6n+6) .cat-card__ic { color: #1f6f80; }
.cat-card__ic .ic { width: 40px; height: 40px; transition: transform var(--dur) var(--ease); }
.cat-card:hover .cat-card__ic .ic { transform: scale(1.08); }
.cat-card::after { display: none; }
@media (max-width: 639px) { .cat-card { grid-template-columns: 56px 1fr; grid-template-rows: auto auto; } .cat-card__ic { grid-row: 1 / span 2; height: 56px; } }

/* шаги с иконками + окно реестра */
.steps--col { grid-template-columns: 1fr; gap: var(--s-4); margin: 0; }
.steps--col li { grid-template-columns: 48px 1fr; gap: var(--s-4); padding-top: var(--s-4); }
.steps--col li::before { display: none; }
.steps__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--mint-soft); color: #17784a; }
.steps--col h3 { margin: 0 0 4px; }
.reg-ui { border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #eaf3ff, #e6fff1); padding: var(--s-5); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.reg-ui__bar { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #44505c; margin-bottom: var(--s-4); }
.reg-ui__bar .d-win__dots i { background: #c9d4df; }
.reg-ui__search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgb(0 0 0 / .05); font-size: 16px; color: #232323; }
.reg-ui__search .ic { color: #686868; }
.reg-ui__card { margin-top: var(--s-3); padding: var(--s-5); border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -28px rgb(20 50 80 / .45); display: grid; gap: var(--s-3); }
.reg-ui__name { margin: 0; font-size: 18px; font-weight: 500; }
.reg-ui__ok { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--mint); font-size: 13px; font-weight: 500; color: #14261c; }
.reg-ui__card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); }
.reg-ui__card dt { font-size: 13px; color: #555; }
.reg-ui__card dd { margin: 2px 0 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.reg-ui__foot { margin: var(--s-3) 0 0; font-size: 13px; color: #44505c; }

/* график в калькуляторе */
.calc__chart { display: grid; gap: var(--s-2); }
.calc__bar { display: flex; height: 40px; border-radius: 10px; overflow: hidden; background: #f0f0f0; font-size: 13px; font-weight: 500; }
.calc__bar span { display: flex; align-items: center; padding: 0 10px; min-width: 0; white-space: nowrap; overflow: hidden; transition: flex-grow .35s var(--ease); }
.calc__bar-sum { background: #cfe9da; color: #14261c; }
.calc__bar-over { background: #17784a; color: #fff; }
.calc__bar-cap { background: repeating-linear-gradient(135deg, #f3f3f3 0 6px, #e6e6e6 6px 12px); }
.calc__legend { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: 13px; color: #4a4a4a; }
.calc__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.i-sum { background: #cfe9da; } .i-over { background: #17784a; } .i-cap { background: #e6e6e6; }

/* FAQ на главной в две колонки по линиям сетки */
.qa--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
@media (max-width: 1023px) { .qa--cols { grid-template-columns: 1fr; } }

/* офферы на главной без вложенной плашки */
.section--offers .offers { background: none; border: 0; padding: 0; }
.section--offers .offers__head h2 { font-size: var(--t-h2); line-height: 1.05; letter-spacing: var(--display-tracking); }
.offer__payout, .offer__terms dt, .offer__legal { color: #4a4a4a; }
.offer__name { display: inline-flex; align-items: center; min-height: 44px; }

/* подвал: слово целиком */
/* строка с призывом никогда не сжимается меньше содержимого: иначе слово налезает на ссылки */
footer.closing > .wrap { grid-template-rows: auto auto; }
footer.closing .closing__cta { min-height: auto; }
.close--word .close__word { margin-top: var(--s-6); font-size: clamp(56px, 12vw, 176px); line-height: 1; padding-top: .06em; overflow: clip; max-width: 100%; }
footer.closing .closing__links { position: relative; z-index: 1; }

/* шапка на узком телефоне */
@media (max-width: 400px) { .nav__actions { display: none; } }
.offer { grid-template-columns: 40px minmax(200px, 1.2fr) 3fr auto; }
.offer__rank { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--p-surface); font-weight: 600; font-size: 17px; }
.offer:nth-child(1) .offer__rank { background: #ffd54a; } .offer:nth-child(2) .offer__rank { background: #dfe6ec; } .offer:nth-child(3) .offer__rank { background: #f1c9a5; }
.offer__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.offer__score { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fff4cc; color: #6b4b00; font-size: 13px; font-weight: 600; }
.offer__badge { margin-top: 0; }
@media (max-width: 1023px) { .offer { grid-template-columns: 40px 1fr; } .offer__terms, .offer__cta, .offer__legal { grid-column: 1 / -1; } }
.law-ui { padding: var(--s-5); border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px #c9f2db; }
.law-ui__title { margin: 0 0 var(--s-4); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.law-ui ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.law-ui li { display: grid; gap: 2px; padding: var(--s-4); border-radius: 12px; background: var(--mint-soft); }
.law-ui b { font-family: var(--font-display); font-weight: 400; font-size: 32px; letter-spacing: -0.03em; color: #14261c; }
.law-ui span { font-size: 14px; color: #3d3d3d; }
@media (max-width: 400px) { .nav__bar { gap: var(--s-4); } }
@media (max-width: 639px) { .reg-ui__card dl { grid-template-columns: 1fr; } }
.mfo-score { margin: 0; display: flex; align-items: center; gap: 8px; color: #3d3d3d; }

/* /rf/: алфавитный указатель городов */
.abc { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--s-6) 0 var(--s-7); position: sticky; top: 64px; z-index: 5; padding: 8px 0; background: var(--bg, #fff); }
.abc a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 10px; background: var(--p-surface, #eef7f1); color: var(--ink); font-weight: 600; text-decoration: none; }
.abc a:hover { background: #a1ffcb; }
.city-abc { display: grid; gap: var(--s-7); }
.city-abc__group { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-5); align-items: start; scroll-margin-top: 140px; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.city-abc__letter { margin: 0; font-size: 48px; line-height: 1; color: #17784a; }
.city-abc .city-list { columns: 4 200px; }
@media (max-width: 639px) { .city-abc__group { grid-template-columns: 1fr; gap: var(--s-3); } .city-abc__letter { font-size: 36px; } .abc { top: 56px; } }

/* шапка посадочной: ровные отступы между заголовком, лидом, кнопками, плашками и строкой «Обновлено» */
.doc-head > .stack-4 { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.doc-head > .stack-4 > * { margin: 0; }
.doc-head > .stack-4 > .btn-row { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; }
.doc-head > .stack-4 > .trust { margin-top: 4px; }
.doc-head > .stack-4 > .doc-meta { margin-top: -4px; }
/* заголовок и лид на /rf/ и разделах */
header.doc-head.stack-4 > h1 + .t-lead { margin-top: 16px; }

/* секции растут под содержимое: жёсткая высота «ровно экран» из кита давала наложение заголовков */
main > :is(section, .section), main > :is(.hero, .section--hero), footer.closing {
  height: auto !important; min-height: calc(var(--h, 1) * 100svh);
}
main > :is(section, .section) { overflow: visible; }
main > .hero { min-height: 100svh; overflow: visible; }

/* поиск: лупа в шапке и страница результатов */
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav-search { position: relative; }
.nav-search__toggle { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: var(--ink); }
.nav-search__toggle::-webkit-details-marker { display: none; }
.nav-search__toggle:hover, .nav-search[open] .nav-search__toggle { background: var(--mint-soft, #e8f8ef); }
.nav-search__form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: flex; gap: 8px; width: min(420px, calc(100vw - 32px)); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.nav-search__form input, .search-form__input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
.nav-search__form input:focus, .search-form__input:focus { outline: 2px solid #17784a; outline-offset: 1px; }
.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form__input { height: 52px; font-size: 17px; }
.search-results { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; gap: 4px; max-width: 820px; }
.search-result { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.search-result__type { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.search-result__title { font-size: 19px; font-weight: 600; color: var(--ink); }
.search-result__snippet { margin: 0; color: #4a4a4a; }
.search-result__snippet mark { background: #c9f7dc; color: inherit; padding: 0 2px; border-radius: 3px; }
.search-empty { margin: 0 0 var(--s-6); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 400px) { .nav__actions { display: flex; } .nav__actions > .btn { display: none; } }

/* ===== плотнее (16.11.2026): секции по высоте содержимого, меньше воздуха и ширины ===== */
:root {
  --padt: 64px; --padb: 56px;
  --s-7: 40px; --s-8: 48px; --s-9: 64px;
  --t-h2: clamp(26px, 1.2vw + 18px, 38px);
  --t-lead: 18px;
}
@media (max-width: 639px) { :root { --padt: 44px; --padb: 40px; --s-7: 32px; --s-8: 36px; } }
.wrap { max-width: 1200px; }
main > :is(section, .section), footer.closing { min-height: 0 !important; }
main > .hero { min-height: min(760px, 100svh) !important; }
main > :is(section, .section) > :is(.wrap, .container) { height: auto; }
.doc-head { margin-bottom: var(--s-7); }
.doc { padding-bottom: var(--s-8); }
.section-head, .section-head--split { margin-bottom: var(--s-6); }
main h2 { margin-bottom: .5em; }
.doc-block { margin-bottom: var(--s-7); }

/* большая кнопка «весь рейтинг» и «Взять займ» в калькуляторе */
.offers__all { display: flex; justify-content: center; width: 100%; margin-top: var(--s-5); min-height: 60px; font-size: 18px; }
.calc__cta { display: flex; justify-content: center; width: 100%; margin-top: var(--s-4); }

/* ===== меню ===== */
.nav__links { gap: 0; }
.nav__link { white-space: nowrap; }
.menu-col a { padding: 6px 0; }
.menu-col a[aria-current="page"] { color: #17784a; }
.menu-all { color: #17784a !important; }
.nav__menu { padding: var(--s-6) 0 var(--s-7); }
.menu-brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.menu-brands a { display: flex !important; align-items: center; gap: 10px; padding: 10px 12px !important; border: 1px solid var(--line); border-radius: 12px; }
.menu-brands a:hover { border-color: #17784a; }
.menu-brands img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; flex: none; }
.menu-brands span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-brands small { color: #6b4b00; font-size: 13px; }
.nav-msearch { display: none; }
@media (max-width: 1279px) { .nav__item--top:nth-of-type(n+5) { display: none; } }
@media (max-width: 1023px) {
  .nav__actions { display: flex; margin-left: auto; }
  .nav__actions .nav-search { display: none; }
  .nav__cta { min-height: 40px; padding: 0 14px; font-size: 14px; }
  .nav__toggle { margin-left: 8px; }
  .nav.is-open .nav-msearch { display: block; padding: 12px 0; }
  .nav.is-open .nav-msearch input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
  .nav.is-open .nav__item--top { display: grid !important; }
  .menu-brands { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) { .nav__cta { display: none; } }

/* строка подборок под шапкой посадочной */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-6); }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 15px; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: #17784a; color: #17784a; }
.chip[aria-current="page"] { background: #17784a; border-color: #17784a; color: #fff; }
@media (max-width: 639px) { .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } }
@media (max-width: 1023px) { .nav__bar > .nav__toggle { margin-left: auto; } .nav__bar > .nav__actions + .nav__toggle { margin-left: 8px; } }
@media (max-width: 400px) { .nav__bar > .nav__actions { display: none; } .nav__bar > .nav__toggle { margin-left: auto !important; } }
.section-intro { margin-top: var(--s-7); color: #3d3d3d; } .section-intro p { margin: 0 0 12px; }
.mfo-tabs { margin: 0 0 var(--s-5); }
.menu-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: var(--s-4); margin-top: var(--s-3); border-top: 1px solid var(--line); }
.menu-strip .t-label { color: var(--muted); margin: 0 4px 0 12px; } .menu-strip .t-label:first-child { margin-left: 0; }
.menu-strip .chip { height: 32px; font-size: 14px; }
@media (max-width: 1023px) { .menu-strip .t-label { width: 100%; margin: 8px 0 0; } }

/* ===== подсказки поиска (22.11.2026, public/suggest.js) ===== */
.has-suggest { position: relative; }
.nav-search__form.has-suggest { position: absolute; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); max-height: min(60vh, 420px); overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.suggest li[aria-selected="true"] a, .suggest a:hover { background: var(--mint-soft, #e8f8ef); }
.suggest__kind { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.suggest__title { font-size: 16px; line-height: 1.3; }
.suggest__all a { font-size: 15px; color: #17784a; font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.suggest__empty { padding: 10px 12px; color: var(--muted); font-size: 15px; }

/* ===== карточки МФО на телефоне (22.11.2026): номер — бейдж в углу, логотип и название во всю ширину ===== */
.offer__logo img { object-fit: cover; border-radius: inherit; }
@media (max-width: 1023px) {
	.offer { grid-template-columns: 1fr; position: relative; padding: var(--s-4); }
	.offer__rank { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; font-size: 14px; }
	.offer__id { padding-right: 40px; }
	.offer__logo { width: 52px; height: 52px; border-radius: 14px; }
	.offer__name { min-height: 0; font-size: 19px; margin-bottom: 4px; }
}
/* длинные подписи кнопок («Оформить заявку в Целевые финансы») переносятся, а не вылезают за экран (22.11.2026) */
@media (max-width: 639px) {
	.btn-row .btn { white-space: normal; max-width: 100%; height: auto; min-height: 48px; padding-block: 12px; line-height: 1.25; text-align: center; }
}

/* ── 22.11 (2): шапка МФО с логотипом, мобильные правки ── */
.mfo-hero { display: flex; align-items: flex-start; gap: 20px; }
.mfo-hero__logo { flex: none; width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line); background: #fff; object-fit: cover; }
.mfo-hero__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mfo-hero__text h1 { margin: 0; }
.mfo-score { flex-wrap: wrap; row-gap: 4px; font-size: var(--t-small); line-height: 1.4; }
.mfo-score .offer__score { flex: none; }
.calc[id] { scroll-margin-top: 88px; }
.abc a { scroll-snap-align: start; }
@media (max-width: 639px) {
	.mfo-hero { gap: 14px; }
	.mfo-hero__logo { width: 52px; height: 52px; border-radius: 14px; margin-top: 4px; }
	.mfo-hero__text { gap: 10px; }
	.mfo-hero__text h1 { font-size: 30px; line-height: 1.1; }
	.mfo-score { font-size: 14px; color: var(--muted, #6b6b6b); }
	.mfo-score .offer__score { padding: 2px 8px; font-size: 13px; }
	.doc-head > .stack-4, header.doc-head.stack-4 { gap: 16px; }
	.doc-head .btn-row { flex-direction: column; gap: 10px; }
	.doc-head .btn-row .btn { width: 100%; justify-content: center; }
	.mfo-tabs { gap: 8px; }
	.mfo-tabs a { height: 38px; padding: 0 14px; font-size: 14px; }
	.trust { gap: 6px; }
	.trust li { height: 28px; font-size: 13px; padding: 0 10px; }
	/* алфавит городов — одна строка с горизонтальной прокруткой */
	.abc { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; gap: 4px; margin: var(--s-4) calc(-1 * var(--gut, 24px)) var(--s-5); padding: 8px var(--gut, 24px); box-shadow: 0 1px 0 var(--line); }
	.abc::-webkit-scrollbar { display: none; }
	.abc a { flex: none; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 8px; font-size: 15px; }
	.city-abc__group { scroll-margin-top: 120px; }
	/* плашка над H1 на главной: одна строка без дубля кнопки */
	.hero .pill { height: auto; min-height: 36px; padding: 6px 14px; font-size: 13px; }
	.hero .pill .muted { display: none; }
}
