/* finbizinfo — светлый «дашборд»: доска со скруглением, карточки, пилюли.
   Три темы (data-theme на <html>): blue — синяя с голубым, green — зелёная, red — красная.
   Сначала телефон, потом шире (min-width). */

@font-face {
	font-family: "Inter";
	src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Inter";
	src: url("/assets/fonts/inter-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ темы */
:root,
[data-theme="blue"] {
	--brand: #1f3b70;          /* тёмный: активная пилюля, градиент главной карточки */
	--brand-2: #3d70ad;
	--accent: #3d9ad8;         /* основная кнопка, ссылки */
	--accent-ink: #1f6fae;
	--accent-soft: #e4f0fa;
	--accent-soft-2: #d3e6f6;
	--g1: #57b4e6;             /* шкалы и полосы: от … */
	--g2: #7fd0c8;             /* … до */
	--t1: #2f6fb8;             /* цвета серий графиков */
	--t2: #58b6e6;
	--t3: #5cc6a0;
	--t4: #f0a35b;
	--t5: #a3b1c6;
	--board-glow: rgba(87, 180, 230, .16);
}
[data-theme="green"] {
	--brand: #134e3a;
	--brand-2: #2b8a62;
	--accent: #1fa774;
	--accent-ink: #137a53;
	--accent-soft: #e2f4ec;
	--accent-soft-2: #cdebdd;
	--g1: #2fb985;
	--g2: #b5de6a;
	--t1: #1d7a56;
	--t2: #3fc08d;
	--t3: #a6d65f;
	--t4: #f0a35b;
	--t5: #a8b8af;
	--board-glow: rgba(63, 192, 141, .15);
}
[data-theme="red"] {
	--brand: #6d1527;
	--brand-2: #b3304a;
	--accent: #df4259;
	--accent-ink: #b52a41;
	--accent-soft: #fcebee;
	--accent-soft-2: #f8d6dc;
	--g1: #ef6f80;
	--g2: #f7b267;
	--t1: #b3304a;
	--t2: #ef7a8b;
	--t3: #f5ad5b;
	--t4: #6c8ebf;
	--t5: #c2aab0;
	--board-glow: rgba(239, 111, 128, .14);
}
:root {
	--bg: #e7ebf1;
	--board: #f4f7fb;
	--card: #ffffff;
	--line: #e2e8f0;
	--line-2: #edf1f6;
	--ink: #142033;
	--text: #2a374b;
	--muted: #687890;
	--muted-2: #8e9bb0;
	--chip: #eaf0f6;
	--good: #1f9d62;
	--good-soft: #e1f5ea;
	--bad: #d6455d;
	--bad-soft: #fde9ec;
	--warn: #b7791f;
	--warn-soft: #fdf3e1;
	--r-xl: 28px;
	--r-lg: 20px;
	--r-md: 14px;
	--r-sm: 10px;
	--shadow: 0 1px 2px rgba(20, 40, 80, .04), 0 6px 22px rgba(20, 40, 80, .05);
	--shadow-lg: 0 2px 6px rgba(20, 40, 80, .05), 0 18px 48px rgba(20, 40, 80, .10);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--pad: 16px;
	color-scheme: light;
}

/* ------------------------------------------------------------------ база */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.6 var(--font);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--brand); color: #fff; border-radius: 999px; }
.skip:focus { top: 12px; }
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.i--sm { width: 17px; height: 17px; }
.i--xs { width: 14px; height: 14px; }
.locked, .mega-open body { overflow: hidden; }
@media (min-width: 900px) { .mega-open body { overflow: auto; } }

/* ------------------------------------------------------------------ доска */
.board {
	min-height: 100vh;
	background:
		radial-gradient(1200px 500px at 85% -120px, var(--board-glow), transparent 70%),
		var(--board);
	padding: 0 var(--pad) 0;
	display: flex;
	flex-direction: column;
}
.main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px 0 40px; }
@media (min-width: 700px) { :root { --pad: 24px; } }
@media (min-width: 1100px) {
	body { padding: 22px; }
	.board { min-height: calc(100vh - 44px); border-radius: var(--r-xl); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 40px rgba(20, 40, 80, .06); padding: 0 36px; }
}

/* ------------------------------------------------------------------ шапка */
.top {
	position: relative;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1240px;
	width: 100%;
	margin: 0 auto;
	padding: 14px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 21px; letter-spacing: -.03em; text-decoration: none; flex: none; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 36px; height: 36px; display: block; }
.logo__s1 { stop-color: var(--brand); }
.logo__s2 { stop-color: var(--accent); }
.logo__line { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; align-items: center; }
.nav__li { display: flex; align-items: center; }
.nav__link {
	display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
	color: var(--ink); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s;
}
.nav__link:hover { background: rgba(20, 40, 80, .05); text-decoration: none; }
.nav__link.is-active { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px var(--brand); }
.nav__li--calcs .nav__link { padding-right: 10px; }
.nav__more {
	width: 30px; height: 30px; margin-left: -4px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
	display: inline-grid; place-items: center; cursor: pointer;
}
.nav__more:hover { background: rgba(20, 40, 80, .06); color: var(--ink); }
.nav__more[aria-expanded="true"] .i { transform: rotate(180deg); }
.top__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
	display: inline-grid; place-items: center; cursor: pointer; box-shadow: 0 1px 2px rgba(20, 40, 80, .05); flex: none;
}
.iconbtn:hover { border-color: var(--line); background: #fff; color: var(--accent-ink); }
.top__search { display: none; position: relative; align-items: center; }
.top__input {
	height: 42px; width: 100%; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card);
	padding: 0 48px 0 18px; font-size: 15px; outline: none; box-shadow: 0 1px 2px rgba(20, 40, 80, .05);
}
.top__input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.top__search .iconbtn, .mega__search .iconbtn { position: absolute; right: 2px; top: 1px; width: 40px; height: 40px; border: 0; box-shadow: none; background: transparent; }
.top__burger .i-close { display: none; }
.top__burger[aria-expanded="true"] .i-open { display: none; }
.top__burger[aria-expanded="true"] .i-close { display: block; }

@media (min-width: 900px) {
	.top { padding: 22px 0 16px; gap: 20px; }
	.nav { display: block; margin: 0 auto; background: rgba(255, 255, 255, .55); border: 1px solid rgba(20, 40, 80, .04); border-radius: 999px; }
	.top__tools { margin-left: 0; }
	.top__burger { display: none; }
	.top__search { display: flex; width: 190px; }
}
@media (min-width: 1240px) { .top__search { width: 230px; } }
.top__searchlink { display: none; }
/* 900–1199: меню и поле поиска не помещаются рядом — вместо поля кнопка поиска, пункты меню плотнее */
@media (min-width: 900px) and (max-width: 1199px) {
	.top__search { display: none; }
	.top__searchlink { display: inline-grid; }
	.nav__link { padding: 0 12px; font-size: 14.5px; }
	.top { gap: 12px; }
}

/* панель: меню на телефоне, все калькуляторы на компьютере */
.mega {
	position: fixed; inset: 70px 0 0 0; z-index: 40; overflow: auto; overscroll-behavior: contain;
	background: var(--board); padding: 8px var(--pad) 32px; border-top: 1px solid var(--line);
	animation: drop .16s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mega__inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 20px; }
.mega__nav { display: grid; gap: 4px; }
.mega__sect { display: block; padding: 12px 16px; border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.mega__sect.is-active { background: var(--brand); color: #fff; }
.mega__search { position: relative; margin-top: 8px; }
.mega__groups { display: grid; gap: 14px; grid-template-columns: 1fr; }
.mega__group { background: var(--card); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.mega__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: none; }
.mega__title .i { color: var(--accent); }
.mega__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__group a { display: block; padding: 6px 0; color: var(--ink); font-weight: 500; font-size: 15px; }
.mega__group a:hover { color: var(--accent-ink); }
@media (min-width: 600px) { .mega__groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
	.mega {
		position: absolute; inset: auto 0 auto 0; top: calc(100% - 4px); padding: 18px; border: 1px solid var(--line-2);
		border-radius: var(--r-lg); background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-lg); max-height: calc(100vh - 140px);
	}
	.mega__nav { display: none; }
	.mega__groups { grid-template-columns: repeat(3, 1fr); }
	.mega__group { box-shadow: none; background: var(--board); }
}

/* ------------------------------------------------------------------ крошки */
.crumbs { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs span { color: var(--text); }

/* ------------------------------------------------------------------ кнопки, чипы, бейджи */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
	border-radius: 999px; border: 1px solid transparent; background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px;
	cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
.btn--primary:hover { background: var(--accent-ink); }
.btn--light { background: var(--card); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(20, 40, 80, .05); }
.btn--light:hover { border-color: var(--line); }
.btn--soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn--soft:hover { background: var(--accent-soft-2); }
.btn--ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--muted-2); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.is-done { background: var(--good-soft); color: var(--good); }
.btn.is-fail { background: var(--bad-soft); color: var(--bad); }

.chip {
	display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
	font-size: 13px; font-weight: 600; color: var(--ink); background: var(--chip); white-space: nowrap;
}
.chip--soft { background: var(--accent-soft); color: var(--accent-ink); }
a.chip:hover { text-decoration: none; background: var(--accent-soft-2); }

.badge {
	display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px;
	background: var(--chip); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.badge--good { background: var(--good-soft); color: var(--good); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--glass { background: rgba(255, 255, 255, .18); color: #fff; }
.badge--big { height: 32px; padding: 0 14px; font-size: 14px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ карточки */
.card {
	background: var(--card); border-radius: var(--r-lg); border: 1px solid rgba(20, 40, 80, .05);
	box-shadow: var(--shadow); padding: 18px;
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 28px; }
.card__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.card--text { padding: 22px 18px; }
@media (min-width: 700px) { .card { padding: 22px; } .card--text { padding: 34px 40px; } }
.empty { text-align: center; color: var(--muted); padding: 32px; }

/* ------------------------------------------------------------------ заголовки страниц */
.hero, .phead { display: flex; flex-direction: column; gap: 16px; margin: 6px 0 22px; }
.hero__title, .phead__title { font-size: clamp(28px, 6.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.phead__title { font-size: clamp(26px, 5.4vw, 38px); }
.hero__lead, .phead__lead { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 760px; }
.phead__kicker { display: block; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.phead__text .chip { margin-bottom: 12px; }
.hero__actions, .phead__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (min-width: 900px) {
	.hero, .phead { flex-direction: row; align-items: flex-end; justify-content: space-between; margin: 10px 0 28px; }
	.hero__text { max-width: 760px; }
	.phead--calc { align-items: flex-end; }
}

/* ------------------------------------------------------------------ главная: дашборд */
.dash { display: grid; gap: 14px; margin-bottom: 34px; }
@media (min-width: 700px) { .dash { grid-template-columns: 1fr 1fr; } .dash > .kpi--main { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .dash { grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; } .dash > .kpi--main { grid-column: auto; } }
.dash__card { display: flex; flex-direction: column; }
.dash__note { margin-top: auto; padding-top: 12px; color: var(--muted); font-size: 14px; }
.dash__note b { color: var(--ink); }
.toplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toplist a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.toplist a:hover { background: var(--board); text-decoration: none; }
.toplist__n { width: 22px; color: var(--muted-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.toplist__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick__item { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--board); border: 1px solid var(--line-2); color: var(--ink); font-weight: 500; font-size: 14px; }
.quick__item .i { color: var(--accent); }
.quick__item:hover { background: var(--accent-soft); text-decoration: none; }

/* ------------------------------------------------------------------ KPI (как «Total Sales») */
.kpi {
	background: var(--card); border-radius: var(--r-lg); border: 1px solid rgba(20, 40, 80, .05); box-shadow: var(--shadow);
	padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
.kpi__label { font-size: 14px; font-weight: 500; color: var(--muted); }
.kpi__row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.kpi__val { font-size: clamp(17px, 4.8vw, 22px); font-weight: 600; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: break-word; }
.kpi__sub { font-size: 13px; color: var(--muted); }
.kpi--main {
	position: relative; overflow: hidden; color: #fff; border: 0; padding: 22px;
	background:
		radial-gradient(420px 220px at 105% 120%, rgba(255, 255, 255, .22), transparent 60%),
		radial-gradient(300px 160px at -10% -30%, rgba(255, 255, 255, .10), transparent 60%),
		linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
	box-shadow: 0 18px 40px -18px var(--brand);
}
.kpi--main .kpi__label { color: rgba(255, 255, 255, .86); font-size: 17px; }
.kpi--main .kpi__val { color: #fff; font-size: clamp(30px, 8vw, 42px); font-weight: 600; }
.kpi--main .kpi__sub { color: rgba(255, 255, 255, .78); font-size: 14px; }
.kpi--main .badge { background: rgba(255, 255, 255, .18); color: #fff; }
.kpi--link { text-decoration: none; transition: transform .15s; }
.kpi--link:hover { text-decoration: none; transform: translateY(-2px); }
.kpi--link .kpi__label { padding-right: 48px; }
.kpi__go {
	position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .2);
	transition: background .15s, color .15s, transform .15s;
}
.kpi__go .i { width: 20px; height: 20px; }
.kpi--link:hover .kpi__go { background: #fff; color: var(--brand); transform: translate(2px, -2px); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpis > .kpi:only-child, .kpi--text { grid-column: 1 / -1; }
.kpi--text .kpi__val { font-size: 16px; font-weight: 500; line-height: 1.45; letter-spacing: 0; }
@media (min-width: 560px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }

/* ------------------------------------------------------------------ разделы и сетки */
.sect { margin: 34px 0 0; }
.sect__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sect__title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 600; }
.sect__icon { width: 34px; height: 34px; border-radius: 11px; background: var(--card); box-shadow: var(--shadow); color: var(--accent); display: grid; place-items: center; flex: none; }
.sect__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; white-space: nowrap; }

.cgrid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cgrid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.ccard {
	position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--r-lg);
	background: var(--card); border: 1px solid rgba(20, 40, 80, .05); box-shadow: var(--shadow); color: var(--ink);
	transition: transform .15s, box-shadow .15s;
}
.ccard:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ccard__icon { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent-soft); }
.ccard:hover .ccard__icon { background: var(--brand); color: #fff; }
.ccard__body { display: grid; gap: 3px; min-width: 0; padding-right: 18px; }
.ccard__title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.ccard__desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.ccard__go { position: absolute; right: 14px; top: 16px; width: 16px; height: 16px; color: var(--muted-2); }
@media (min-width: 1000px) {
	.ccard { flex-direction: column; padding: 18px; }
	.ccard__body { padding-right: 0; }
}

.agrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .agrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .agrid { grid-template-columns: repeat(3, 1fr); gap: 18px; } .agrid--4 { grid-template-columns: repeat(4, 1fr); } }
.acard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(20, 40, 80, .05); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.acard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.acard__img { display: block; aspect-ratio: 2 / 1; background: var(--accent-soft); overflow: hidden; }
.acard__img img, .acard__img picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.acard__noimg {
	display: grid; place-items: center; height: 100%; color: var(--accent);
	background: radial-gradient(240px 120px at 85% 10%, var(--accent-soft-2), transparent 70%), linear-gradient(135deg, var(--accent-soft), var(--board));
}
.acard__noimg .i { width: 40px; height: 40px; opacity: .55; }
.acard__img:has(.acard__noimg) { aspect-ratio: 3 / 1; }
.acard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.acard__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.acard__title a { color: var(--ink); }
.acard__title a::after { content: ""; position: absolute; inset: 0; }
.acard { position: relative; }
.acard__text { color: var(--muted); font-size: 14.5px; }
.acard__meta { margin-top: auto; color: var(--muted-2); font-size: 13px; }
@media (min-width: 1000px) {
	.acard--big { grid-column: span 2; flex-direction: row; }
	.acard--big .acard__img { aspect-ratio: auto; flex: 1.2; min-height: 260px; }
	.acard--big .acard__body { flex: 1; padding: 24px; }
	.acard--big .acard__title { font-size: 22px; }
}

.catgrid { display: grid; gap: 14px; }
@media (min-width: 800px) { .catgrid { grid-template-columns: repeat(3, 1fr); } }
.catcard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); color: var(--text); }
.catcard:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.catcard__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.catcard__name { font-size: 18px; font-weight: 600; color: var(--ink); }
.catcard__desc { color: var(--muted); font-size: 14px; flex: 1; }

/* ------------------------------------------------------------------ фильтр каталога */
.filters { display: flex; flex-direction: column; gap: 12px; padding: 12px; margin-bottom: 6px; position: sticky; top: 8px; z-index: 5; }
@media (min-width: 900px) { .filters { flex-direction: row; align-items: center; justify-content: space-between; } }
.filters__search { position: relative; display: flex; align-items: center; flex: none; }
.filters__search .i { position: absolute; left: 14px; color: var(--muted); }
.filters__search input { height: 40px; width: 100%; border-radius: 999px; border: 1px solid var(--line); background: var(--board); padding: 0 16px 0 40px; outline: none; }
.filters__search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
@media (min-width: 900px) { .filters__search input { width: 240px; } }

/* ------------------------------------------------------------------ пилюли-переключатели (как «2h · 3h · A Week») */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: -2px; padding: 2px; }
.seg--scroll::-webkit-scrollbar { display: none; }
.seg__btn, .seg__item span {
	display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 999px; border: 0;
	background: var(--chip); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
	transition: background .15s, color .15s;
}
.seg__btn:hover, .seg__item:hover span { background: var(--accent-soft-2); }
.seg__btn.is-on, .seg__item input:checked + span { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px var(--brand); }
.seg__item { position: relative; display: inline-flex; }
.seg__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ калькулятор */
.calc { margin: 0 0 22px; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 960px) {
	.calc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
	.calc__res { position: sticky; top: 14px; }
}
.calc__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.calc__res { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.peek {
	position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border: 0; border-radius: 18px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 14px 30px -10px var(--brand); cursor: pointer; text-align: left;
	animation: drop .16s ease-out;
}
.peek__label { font-size: 13px; opacity: .85; }
.peek__val { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 960px) { .peek { display: none !important; } }
.calc__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: -4px; }
.calc__share { display: flex; justify-content: flex-end; }
.calc__note { padding: 12px 14px; border-radius: 14px; font-size: 14px; background: var(--accent-soft); color: var(--accent-ink); }
.calc__note--warn { background: var(--warn-soft); color: var(--warn); }
.calc__note--bad { background: var(--bad-soft); color: var(--bad); }
.calc__note--good { background: var(--good-soft); color: var(--good); }
.calc__note--info { background: var(--accent-soft); color: var(--accent-ink); }
.calc:not(.is-ready) .calc__res output { color: var(--muted-2); }

.fgroup { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.fgroup + .fgroup { padding-top: 14px; border-top: 1px solid var(--line-2); }
.fgroup__title { padding: 0; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.f-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
.f-row:not(:has(> :not([hidden]))) { display: none; }
@media (min-width: 420px) { .f-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.f { display: grid; gap: 7px; min-width: 0; align-content: start; }
.f__label { font-size: 14px; font-weight: 500; color: var(--text); }
.f__box {
	position: relative; display: flex; align-items: center; min-height: 50px; border-radius: 14px; border: 1px solid var(--line);
	background: var(--board); transition: border-color .15s, box-shadow .15s, background .15s;
}
.f__box:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.f__input {
	flex: 1 1 auto; width: 100%; min-width: 0; height: 48px; border: 0; background: transparent; padding: 0 14px; outline: none;
	font-size: 17px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none;
}
.f__input::placeholder { color: var(--muted-2); font-weight: 400; }
input[type="date"].f__input { font-size: 16px; min-width: 0; }
.f__box--select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
select.f__input { padding-right: 38px; cursor: pointer; font-size: 16px; }
.f__pre, .f__suf { padding: 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; flex: none; }
.f__pre { padding-right: 0; }
.f__suf { padding-left: 4px; }
.f__hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.f__err { font-size: 13px; color: var(--bad); font-weight: 500; }
.f.is-err .f__box { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.f--wide { grid-column: 1 / -1; }
.f--seg .seg { gap: 6px; }

/* ползунок */
.f__range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: -2px 0 0; cursor: pointer; }
.f__range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--g1), var(--g2)); opacity: .9; }
.f__range::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--g1), var(--g2)); }
.f__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 6px rgba(20, 40, 80, .2); }
.f__range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }

/* переключатель */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--text); min-height: 32px; }
.switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: var(--line); flex: none; transition: background .15s; }
.switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 40, 80, .25); transition: transform .18s; }
.switch__input:checked + .switch__track { background: var(--accent); }
.switch__input:checked + .switch__track::after { transform: translateX(18px); }
.switch__input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* список строк (частичные оплаты, расходы) */
.rep { display: grid; gap: 10px; }
.rep__rows { display: grid; gap: 10px; }
.rep__rows:empty { display: none; }
.rep__row { position: relative; display: grid; gap: 8px; grid-template-columns: 1fr 1fr; padding: 12px 44px 12px 12px; border-radius: 14px; background: var(--board); border: 1px solid var(--line-2); }
.rep__cell { display: grid; gap: 4px; min-width: 0; }
.rep__cell--text { grid-column: 1 / -1; }
.rep__label { font-size: 12px; color: var(--muted); font-weight: 500; }
.rep__row .f__box { min-height: 42px; background: #fff; border-radius: 11px; }
.rep__row .f__input { height: 40px; font-size: 15px; padding: 0 10px; }
.rep__row .f__suf { padding: 0 10px 0 2px; font-size: 14px; }
.rep__del { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.rep__del:hover { background: var(--bad-soft); color: var(--bad); }
.rep__add { justify-self: start; }
@media (min-width: 560px) { .rep__row { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); } .rep__cell--text { grid-column: auto; } }

/* графики */
.cchart__box { position: relative; min-height: 200px; }
.ch { display: block; width: 100%; height: auto; overflow: visible; }
.ch--donut { max-width: 230px; margin: 0 auto; }
.ch--gauge { max-width: 320px; margin: 0 auto; }
.ch-grid { stroke: var(--line-2); stroke-width: 1; }
.ch-zero { stroke: var(--line); stroke-width: 1.2; }
.ch-ax, .ch-t { fill: var(--muted-2); font-size: 11.5px; font-family: var(--font); }
.ch-bar { fill: var(--t1); }
.ch-bar.tone1 { fill: var(--t1); } .ch-bar.tone2 { fill: var(--t2); } .ch-bar.tone3 { fill: var(--t3); } .ch-bar.tone4 { fill: var(--t4); } .ch-bar.tone5 { fill: var(--t5); }
.ch-bar.is-neg { fill: var(--bad); opacity: .75; }
.ch-bar.is-hi { fill: var(--t3); }
.ch-pill { fill: #fff; stroke: var(--line); }
.ch-pill-t { fill: var(--good); font-size: 11px; font-weight: 600; font-family: var(--font); }
.ch-pill.is-neg + .ch-pill-t { fill: var(--bad); }
.ch-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ch-line.tone1 { stroke: var(--t1); } .ch-line.tone2 { stroke: var(--t2); } .ch-line.tone3 { stroke: var(--t3); } .ch-line.tone4 { stroke: var(--t4); } .ch-line.tone5 { stroke: var(--t5); }
.ch-line.is-dash { stroke-dasharray: 6 6; }
.ch-area { opacity: .14; }
.ch-area.tone1 { fill: var(--t1); } .ch-area.tone2 { fill: var(--t2); } .ch-area.tone3 { fill: var(--t3); } .ch-area.tone4 { fill: var(--t4); }
.ch-dot { fill: #fff; stroke-width: 2; }
.ch-dot.tone1 { stroke: var(--t1); } .ch-dot.tone2 { stroke: var(--t2); } .ch-dot.tone3 { stroke: var(--t3); } .ch-dot.tone4 { stroke: var(--t4); }
.ch-seg.tone1 { fill: var(--t1); } .ch-seg.tone2 { fill: var(--t2); } .ch-seg.tone3 { fill: var(--t3); } .ch-seg.tone4 { fill: var(--t4); } .ch-seg.tone5 { fill: var(--t5); }
.ch-track { stroke: var(--line-2); }
.ch-center { fill: var(--ink); font-size: 19px; font-weight: 600; font-family: var(--font); }
.ch-center-sub { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.ch-gseg { fill: var(--line-2); }
.ch-gseg.is-on.g0 { fill: var(--g1); } .ch-gseg.is-on.g1 { fill: color-mix(in srgb, var(--g1) 75%, var(--g2)); } .ch-gseg.is-on.g2 { fill: color-mix(in srgb, var(--g1) 50%, var(--g2)); }
.ch-gseg.is-on.g3 { fill: color-mix(in srgb, var(--g1) 25%, var(--g2)); } .ch-gseg.is-on.g4 { fill: var(--g2); }
.ch-gval { fill: var(--ink); font-size: 40px; font-weight: 600; font-family: var(--font); letter-spacing: -.02em; }
.ch-cursor { stroke: var(--muted-2); stroke-dasharray: 3 4; }
.ch-tip { position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; z-index: 2; display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(20, 32, 51, .92); color: #fff; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow-lg); }
.ch-tip span { display: flex; align-items: center; gap: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; color: var(--text); }
.legend:empty { display: none; }
.legend__item { display: inline-flex; align-items: center; gap: 7px; }
.legend__item b { font-weight: 600; color: var(--ink); }
.legend__pct { color: var(--muted); }
.legend__dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; background: var(--t1); }
.legend__dot.tone1 { background: var(--t1); } .legend__dot.tone2 { background: var(--t2); } .legend__dot.tone3 { background: var(--t3); } .legend__dot.tone4 { background: var(--t4); } .legend__dot.tone5 { background: var(--t5); }

/* полоса прогресса (как «Checking totally») */
.prog { height: 30px; border-radius: 10px; background: var(--line-2); overflow: hidden; }
.prog > i {
	display: block; height: 100%; width: 0; border-radius: 10px; transition: width .3s ease;
	background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--g1), var(--accent));
}
.prog--good > i { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px), linear-gradient(90deg, #7fd6b5, var(--good)); }
.prog--bad > i { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 8px, transparent 8px 16px), linear-gradient(90deg, #f39aa8, var(--bad)); }
.prog-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.prog-row b { color: var(--ink); font-weight: 600; }

/* таблицы */
.ctable__wrap, .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl thead th { position: sticky; top: 0; background: var(--card); color: var(--muted); font-weight: 500; font-size: 13px; }
.tbl .num { text-align: right; }
.tbl tbody tr:hover { background: var(--board); }
.tbl tfoot th, .tbl tfoot td { font-weight: 600; color: var(--ink); border-bottom: 0; border-top: 2px solid var(--line); }
.tbl tr.is-mark td, .tbl tr.is-mark th { background: var(--accent-soft); }
.tbl tr.is-good td { color: var(--good); }
.tbl tr.is-bad td { color: var(--bad); }
.tbl-more { margin-top: 12px; }
.tbl--prose { white-space: normal; font-variant-numeric: normal; }
.tbl--prose th, .tbl--prose td { white-space: normal; vertical-align: top; }
.tbl--prose thead th { background: var(--board); color: var(--ink); font-weight: 600; }
.t-center { text-align: center !important; } .t-right { text-align: right !important; }

/* блок, который рисует калькулятор сам */
.cbox [data-box]:empty { display: none; }
.stat-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stat-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.stat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-list b { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

/* ------------------------------------------------------------------ страница калькулятора */
.cpage__text { margin-top: 6px; }
.prose.cpage__intro { margin: -6px 0 20px; max-width: 880px; color: var(--muted); font-size: 16px; }
.cpage .phead__lead { font-size: 16px; }

/* ------------------------------------------------------------------ статья */
.post { margin-bottom: 10px; }
.post__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 880px; margin: 4px 0 22px; }
.post__title { font-size: clamp(27px, 5.6vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.12; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post__cover { margin: 0 0 22px; border-radius: var(--r-lg); overflow: hidden; max-width: 880px; aspect-ratio: 2 / 1; background: var(--accent-soft); box-shadow: var(--shadow); }
.post__cover img, .post__cover picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.post__grid { display: grid; gap: 22px; }
.post__main { min-width: 0; max-width: 880px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 18px; }
@media (min-width: 700px) { .post__main { padding: 36px 44px; } }
@media (min-width: 1100px) {
	.post--toc .post__grid { grid-template-columns: minmax(0, 880px) 1fr; }
	.post__aside { position: sticky; top: 16px; align-self: start; }
	.post--toc .toc--inline { display: none; }
}
.post__aside { display: none; }
@media (min-width: 1100px) { .post__aside { display: block; } }
.post__foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); }

.toc--inline { margin: 0 0 22px; border-radius: 14px; background: var(--board); border: 1px solid var(--line-2); }
.toc--inline summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.toc--inline summary::-webkit-details-marker { display: none; }
.toc__n { margin-left: auto; color: var(--muted); font-weight: 500; }
.toc--inline .toc__list { padding: 0 16px 14px 34px; }
.toc__title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.toc__list { margin: 0; padding: 0 0 0 18px; display: grid; gap: 7px; font-size: 14px; }
.toc__list a { color: var(--muted); }
.toc__list a:hover, .toc__list a.is-cur { color: var(--accent-ink); }
.toc__list a.is-cur { font-weight: 600; }

.share { display: flex; align-items: center; gap: 8px; }
.share__label { font-size: 14px; color: var(--muted); margin-right: 2px; }
.share__btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; }
.share__btn:hover { color: var(--accent-ink); border-color: var(--line); text-decoration: none; }
.share__btn .i { width: 18px; height: 18px; }
.share__btn.is-done { background: var(--good-soft); color: var(--good); }
.phead__tools .share__label { display: none; }

/* ------------------------------------------------------------------ текст статьи */
.prose { font-size: 17px; line-height: 1.72; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 25px; margin-top: 1.9em; line-height: 1.25; }
.prose h3 { font-size: 20px; margin-top: 1.6em; line-height: 1.3; }
.prose h4 { font-size: 17px; margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose .anchor { display: none; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 16px 20px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); border-left: 4px solid var(--accent); }
.prose blockquote > * + * { margin-top: .6em; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--chip); font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose pre.code { padding: 16px; border-radius: 14px; background: #142033; color: #e6edf6; overflow-x: auto; font-size: 14px; }
.prose pre.code code { background: transparent; padding: 0; }
.prose .fig { margin: 1.6em 0; }
.prose .fig img { border-radius: 14px; display: block; cursor: zoom-in; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose .tbl-wrap { border: 1px solid var(--line-2); border-radius: 14px; margin-left: 0; margin-right: 0; padding: 0; }
.prose .tbl { font-size: 15px; }
.prose .tbl th, .prose .tbl td { padding: 11px 14px; }
.prose .tbl tbody tr:last-child td { border-bottom: 0; }
.formula {
	display: grid; gap: 8px; padding: 18px 20px; border-radius: 16px; background: var(--board); border: 1px solid var(--line-2);
	font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; overflow-x: auto;
}
.formula__line strong { color: var(--accent-ink); }
.prose .faq-q {
	font-size: 17px; margin-top: 1.1em; padding: 16px 18px 0; border-radius: 16px 16px 0 0; background: var(--board);
}
.prose .faq-q + p, .prose .faq-q + ul, .prose .faq-q + ol { margin-top: 0; padding: 8px 18px 16px; border-radius: 0 0 16px 16px; background: var(--board); }
.prose .faq-q + ul, .prose .faq-q + ol { padding-left: 38px; }

/* ------------------------------------------------------------------ пагинация, поиск, 404 */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.pager__nums { display: flex; gap: 6px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 500; }
.pager a:hover { text-decoration: none; background: var(--accent-soft); }
.pager .is-cur { background: var(--brand); color: #fff; }
.pager__gap { background: transparent !important; box-shadow: none !important; }
.bigsearch { display: flex; gap: 10px; padding: 10px; margin-bottom: 8px; }
.bigsearch input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; padding: 0 10px; font-size: 17px; outline: none; }
.e404 { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 12px; }
.e404__code { font-size: 72px; font-weight: 700; letter-spacing: -.04em; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* ------------------------------------------------------------------ подвал */
.foot { max-width: 1240px; width: 100%; margin: 0 auto; padding: 30px 0 26px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot__grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1.6fr; gap: 40px; } }
.foot__about p { margin-top: 12px; max-width: 360px; }
.logo--foot { font-size: 18px; }
.foot__col { display: flex; flex-direction: column; gap: 8px; }
.foot__col--wide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: start; }
.foot__col--wide .foot__title { grid-column: 1 / -1; }
.foot__title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); font-weight: 600; margin-bottom: 2px; }
.foot a { color: var(--text); }
.foot a:hover { color: var(--accent-ink); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13px; }

/* ------------------------------------------------------------------ увеличение картинок */
.zoom { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15, 24, 40, .82); cursor: zoom-out; }
.zoom img { max-height: 92vh; border-radius: 12px; }

/* ------------------------------------------------------------------ печать: только расчёт и текст */
@media print {
	body { background: #fff; padding: 0; }
	.board { background: #fff; box-shadow: none; padding: 0; }
	.top, .foot, .crumbs, .sect, .calc__form, .calc__share, .card__tools, .phead__tools, .tbl-more, .skip, .filters { display: none !important; }
	.calc__grid { display: block; }
	.card, .kpi { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
	.kpi--main { color: #000; background: #fff; border: 2px solid #000; }
	.kpi--main .kpi__val, .kpi--main .kpi__label, .kpi--main .kpi__sub { color: #000; }
	.kpi__go { display: none; }
	.tbl th, .tbl td { padding: 4px 6px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
