/* Кейс Консалт — стили темы.
   Токены цвета: цветной режим по умолчанию, .is-wireframe переопределяет их серыми.
   Визуальный язык — docs/design/REFERENCES.md. */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/manrope-latin.woff2") format("woff2");
	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 {
	/* Палитра: фирменный #19BE7D — заливки и графика; для текста тот же зелёный
	   глубже (#0B7A52), потому что #19BE7D на белом даёт контраст 2,41.
	   Контрасты посчитаны 2026-09-16, см. docs/DECISIONS.md. */
	--bg: #f2f5f3;
	--surface: #ffffff;
	--surface-2: #e7efea;
	--ink: #0c1f19;
	--muted: #51635b;
	--line: #d8e3dc;
	--accent: #19be7d;
	--accent-ink: #06281b;
	--accent-soft: #dff4ea;
	--accent-text: #0b7a52;
	--deep: #0b3326;
	--on-deep: #eaf6f0;
	--star: #c97f14;
	--danger: #b42318; /* ошибки в формах: контраст 6,5 на белом */
	--icon-plate: #ffffff; /* = PLATE в scripts/slice-icons.py */
	/* Тёплый акцент только для заявки: белый текст — контраст 4,64:1. */
	--cta: #cf451f;
	--cta-hover: #b93616;
	--cta-pressed: #a93013;
	--cta-ink: #ffffff;
	--cta-focus: #9b2f14;
	--cta-shadow: rgba(153, 45, 17, .22);

	--font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--r-card: 28px;
	--r-inner: 18px;
	--r-pill: 999px;
	/* Кривые движения: встроенные ease слишком вялые для заметного движения.
	   Значения — из свода правил Emil Kowalski (animations.dev). */
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--gap: clamp(12px, 1.4vw, 20px);
	--pad-card: clamp(20px, 2.4vw, 36px);
	--section-gap: clamp(56px, 8vw, 112px);
}

.is-wireframe {
	--bg: #ededed;
	--surface: #ffffff;
	--surface-2: #e3e3e3;
	--ink: #151515;
	--muted: #5d5d5d;
	--line: #d6d6d6;
	--accent: #3a3a3a;
	--accent-ink: #ffffff;
	--accent-soft: #e0e0e0;
	--accent-text: #8a8a8a;
	--deep: #2a2a2a;
	--on-deep: #f2f2f2;
	--cta: #3a3a3a;
	--cta-hover: #292929;
	--cta-pressed: #151515;
	--cta-focus: #151515;
	--cta-shadow: rgba(0, 0, 0, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 500 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* На широких экранах полоса контента растёт: до 1320 px как было, дальше
   до 1720 px на мониторах от 1950 px. Длина строк не страдает — текстовые
   блоки отдельно ограничены по ch (.lede, .doc), растут только сетки. */
.wrap { width: 100%; max-width: clamp(1320px, 88vw, 1720px); margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Поле внутри не должно торчать своей шириной: оно обрезано, но проверки
   вёрстки видят его как элемент шире экрана и дают ложную тревогу. */
.visually-hidden input { width: 1px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* ---------- Типографика ---------- */
.display { font-size: clamp(40px, 6.2vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.h1 { font-size: clamp(30px, 4.2vw, 54px); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; }
.h2 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.lede { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.accent-line { display: block; color: var(--accent-text); }
.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Элементы ---------- */
.pill {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
	padding: 7px 12px; border-radius: var(--r-pill);
	background: var(--surface-2); color: var(--ink);
	font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.pill--dark { background: var(--deep); color: var(--on-deep); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill); border: 0;
	font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, background-color .15s ease;
}
/* На касании :hover залипает после нажатия — поднимаем кнопку только там,
   где есть настоящий курсор. Нажатие отзывается на любом устройстве. */
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--lg { min-height: 56px; font-size: 16px; }

.round-btn {
	display: inline-grid; place-items: center; flex: none;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--surface-2); color: var(--ink);
	transition: background-color .15s ease, transform .15s ease;
}

/* Один акцент для всех входов в заявку, включая круглые стрелки и кнопки
   без .btn--primary. Кнопки навигации и скачивания сохраняют свой цвет. */
:is([data-open-request], [data-demo-form] [type="submit"]) {
	background: var(--cta); color: var(--cta-ink);
	box-shadow: 0 3px 8px var(--cta-shadow), inset 0 1px 0 rgba(255, 255, 255, .16);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .16s ease, box-shadow .16s ease, transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	:is([data-open-request], [data-demo-form] [type="submit"]):not(:disabled):hover {
		background: var(--cta-hover); transform: translateY(-2px);
		box-shadow: 0 7px 16px var(--cta-shadow), inset 0 1px 0 rgba(255, 255, 255, .16);
	}
}
:is([data-open-request], [data-demo-form] [type="submit"]):not(:disabled):active {
	background: var(--cta-pressed); transform: translateY(1px) scale(.98);
	box-shadow: inset 0 2px 4px rgba(65, 17, 3, .2);
	transition-duration: .06s;
}
:is([data-open-request], [data-demo-form] [type="submit"]):focus-visible {
	outline: 3px solid var(--cta-focus); outline-offset: 3px;
}
:is([data-open-request], [data-demo-form] [type="submit"]):disabled {
	background: var(--surface-2); color: var(--muted);
	box-shadow: none; transform: none; cursor: wait;
}
@media (max-width: 640px) {
	:is([data-open-request], [data-demo-form] [type="submit"]).btn {
		max-width: 100%; white-space: normal; text-align: center; line-height: 1.4;
	}
	[data-open-request].btn:not(.btn--lg) { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	:is([data-open-request], [data-demo-form] [type="submit"]),
	:is([data-open-request], [data-demo-form] [type="submit"]):not(:disabled):is(:hover, :active) {
		transform: none;
	}
}
@media (hover: hover) and (pointer: fine) {
	.card--link:hover .round-btn { background: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
}

.card { min-width: 0; background: var(--surface); border-radius: var(--r-card); padding: var(--pad-card); }
.card--link { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card--media { padding: 0; overflow: hidden; }

.slot {
	position: relative; width: 100%; max-width: 100%;
	display: grid; place-content: center; gap: 6px; padding: 16px; text-align: center;
	border-radius: var(--r-inner);
	background:
		repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.035) 14px 15px),
		var(--surface-2);
	border: 1.5px dashed #bdbdbd;
	color: var(--muted);
}
.card--media > .slot { border-radius: inherit; height: 100%; }
.slot--filled { padding: 0; border: 0; background: var(--icon-plate); display: block; overflow: hidden; }
.slot--filled img { width: 100%; height: 100%; object-fit: contain; }
.slot__label { font-size: 13px; font-weight: 600; line-height: 1.35; max-width: 32ch; margin-inline: auto; }
.slot__slug { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

.seg {
	display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
	border-radius: var(--r-pill); background: var(--surface-2);
}
.seg button, .seg label {
	border: 0; background: transparent; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
	padding: 9px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--muted);
}
.seg label { position: relative; }
.seg label input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg [aria-pressed="true"], .seg [aria-checked="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--surface); }
.seg--wide { display: flex; }
.seg--wide > * { flex: 1 1 auto; text-align: center; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
	content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
	background: var(--accent-soft);
	box-shadow: inset 0 0 0 4px var(--accent-soft), inset 0 0 0 7px var(--accent);
}

.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field input, .field textarea {
	width: 100%; padding: 14px 16px; border-radius: 14px;
	border: 1.5px solid var(--line); background: var(--surface);
}
.field textarea { resize: vertical; }
.hint { font-size: 13px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; min-height: 44px; padding-block: 10px; }
.check input { width: 24px; height: 24px; margin-top: 0; accent-color: var(--accent); flex: none; }

.table-scroll {
	overflow-x: auto;
	background:
		linear-gradient(to right, var(--surface) 30%, transparent) left / 40px 100% no-repeat local,
		linear-gradient(to left, var(--surface) 30%, transparent) right / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.14), transparent) left / 16px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), transparent) right / 16px 100% no-repeat scroll;
}

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; color: var(--accent); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.brand__desc { font-size: 12px; color: var(--muted); }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: clamp(12px, 1.6vw, 24px); margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav__list a { text-decoration: none; }
.nav__list a:hover { color: var(--accent-text); }
.site-header__contact { display: grid; text-align: right; line-height: 1.2; }
.phone { font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours { font-size: 12px; color: var(--muted); }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; gap: 5px; }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.burger__panel { position: absolute; right: 0; top: 56px; width: min(86vw, 320px); background: var(--surface); border-radius: 22px; padding: 16px; display: grid; gap: 4px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.3); }
.burger__panel a:not(.btn) { padding: 10px 8px; text-decoration: none; font-weight: 600; }
.burger__panel .btn { margin-top: 8px; }
.wf-note { margin-block: 4px 12px; font-size: 13px; color: var(--muted); }

/* ---------- Секции ---------- */
.section { margin-top: var(--section-gap); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); justify-items: start; }

/* Первый экран */
.hero { margin-top: 8px; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.card--hero { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.hero__side { min-width: 0; grid-column: span 5; display: grid; gap: var(--gap); grid-template-rows: 1fr auto; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.stat { display: grid; gap: 6px; align-content: end; position: relative; }
.stat__icon { position: absolute; top: 12px; right: 12px; width: 72px; }
.stat__num { margin-top: 56px; font-size: clamp(32px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__text { color: var(--muted); font-size: 14px; line-height: 1.35; }

.triage { margin-top: auto; background: var(--surface-2); border-radius: var(--r-inner); padding: clamp(14px, 1.8vw, 22px); display: grid; gap: 14px; }
.triage__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.triage__q { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.triage .seg { background: var(--surface); }
/* Оба набора лежат в одной ячейке сетки, поэтому высота блока равна
   большему из них и при переключении «Бизнес / Частное лицо» ничего не
   прыгает. Скрытый набор остаётся в потоке, но не виден и не нажимается. */
.triage__sets { display: grid; }
.triage__sets > .chips { grid-area: 1 / 1; transition: opacity .2s ease; }
.chips[hidden] { display: flex !important; visibility: hidden; opacity: 0; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.chip {
	border: 1.5px solid transparent; background: var(--surface); cursor: pointer;
	padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; text-align: left;
}
.chip:hover { border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.chip { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s var(--ease-out); }
.chip:active { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
	.triage__answer.is-changed > div { animation: cc-answer .3s var(--ease-out); }
}
@keyframes cc-answer { from { opacity: 0; transform: translateY(10px); } }
/* Кнопка в своей колонке: раньше длинный ответ переносил её на новую строку,
   и блок подрастал на 60 px. Под текст ответа отведены две строки, чтобы
   короткий ответ не поднимал кнопку «Разобрать ситуацию». */
.triage__answer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.triage__answer > div { display: grid; gap: 2px; min-width: 0; }
.triage__answer strong { font-size: 17px; }
[data-answer-what] { display: block; line-height: 1.45; min-height: 2.9em; }

/* Развилка */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.split__item { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; }
.split__body { display: grid; gap: 12px; justify-items: start; }
.split__item .round-btn { position: absolute; right: 20px; top: 20px; }

/* Направления */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
/* Колонка с зазором: заголовок, описание и список больше не слипаются,
   а `margin-top: auto` у подвала наконец работает — в блочной раскладке он
   не действовал, и подвалы соседних карточек стояли на разной высоте. */
.dir { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.dir--lg, .dir--md { grid-column: span 3; }
.dir--lg .dir__icon { width: 104px; }
.dir__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.dir__top > * { min-width: 0; }
.dir__icon { width: 96px; flex: none; padding: 6px; }
.dir__icon .slot__label { font-size: 10px; }
.dir__icon .slot__slug { display: none; }
.dir .ticks { margin-top: 4px; }
.dir__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); }

/* Цены */
.legal-prices .tariff-table th[scope="row"] { white-space: normal; }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.compare { display: grid; gap: 18px; justify-items: start; }
.compare .table-scroll { width: 100%; }
/* Раньше здесь было две колонки: калькулятор и тарифная таблица рядом.
   Таблицу убрали (калькулятор делает то же самое), и прайс юруслуг остался
   висеть в половине ширины с пустотой справа. Теперь блоки идут в столбец
   на всю ширину — каждому есть что показать по горизонтали. */
.prices { display: grid; gap: var(--gap); align-items: start; }

/* minmax(0, 1fr): иначе самый широкий неразрывный элемент (кнопка с длинной
   надписью) распирает колонку шире карточки — на 360 px появлялась прокрутка. */
.calc { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.calc__result .btn { max-width: 100%; white-space: normal; text-align: center; }
.calc__row { display: grid; gap: 10px; }
.calc__inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.calc__result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px; border-radius: var(--r-inner); background: var(--deep); color: var(--on-deep); }
.calc__result .label, .calc__result .muted { color: color-mix(in srgb, var(--on-deep) 70%, transparent); }
.calc__result > div { display: grid; gap: 4px; }
.calc__sum { font-size: clamp(36px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tariffs { display: grid; gap: 16px; }
.tariff-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.tariff-table th, .tariff-table td { padding: 12px 8px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tariff-table thead th { border-top: 0; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.tariff-table th[scope="row"], .tariff-table thead th:first-child { text-align: left; padding-left: 0; }
.tariff-table th[scope="row"] small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Сравнение */
.compare__table { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare__table th, .compare__table td { text-align: left; padding: 16px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.compare__table thead th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 700; }
.compare__table tbody th { font-weight: 700; width: 24%; padding-left: 0; }
.compare__table td:last-child { background: var(--accent-soft); font-weight: 600; }
.compare__table thead th:last-child { background: var(--accent-soft); color: var(--ink); border-radius: 14px 14px 0 0; }
.compare__table tbody tr:last-child td:last-child { border-radius: 0 0 14px 14px; }
/* На телефоне сравнение не листается вбок: вторая колонка — «Кейс Консалт»,
   ради которой таблица и стоит, — пряталась за краем экрана. Критерий идёт
   строкой на всю ширину, под ним два варианта рядом: сравнение остаётся бок
   о бок. Роли в разметке сохраняют смысл таблицы для экранных дикторов. */
@media (max-width: 560px) {
	.compare__table, .compare__table thead, .compare__table tbody { display: block; min-width: 0; }
	.compare__table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
	/* Ряды разделены воздухом, а не линиями: граница от десктопной таблицы
	   оставалась над каждым пунктом и упиралась в зелёную плашку. */
	.compare__table tbody tr + tr { margin-top: 22px; }
	.compare__table th, .compare__table td { border-top: 0; }
	.compare__table thead tr { margin-bottom: 14px; }
	.compare__table thead th:first-child { display: none; }
	.compare__table thead th, .compare__table thead th:last-child {
		padding: 0 12px; background: none; border-radius: 0;
		font-size: 12px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3;
	}
	.compare__table thead th:last-child { color: var(--accent-text); }
	.compare__table tbody th { grid-column: 1 / -1; width: auto; padding: 0; font-size: 16px; }
	/* Обе стороны — плашки одной высоты: пары читаются как «было — стало». */
	.compare__table td { padding: 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; background: var(--bg); color: var(--muted); }
	.compare__table td:last-child, .compare__table tbody tr:last-child td:last-child { border-radius: 12px; color: var(--ink); }
	.compare .table-scroll { overflow: visible; background: none; }
	.compare__table th, .compare__table td { overflow-wrap: break-word; }
}
/* На 320–360 px длинные слова («Предварительный») не влезают в полколонки —
   только здесь разрешаем переносы. */
@media (max-width: 360px) {
	.compare__table td { padding: 10px; font-size: 13px; hyphens: auto; }
	.compare__table thead th, .compare__table thead th:last-child { padding-inline: 10px; }
}

/* Преимущества */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.benefit { display: grid; gap: 8px; align-content: start; justify-items: start; }
.benefit__num { font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 8px; }
.benefit--img { grid-column: span 2; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.step { display: grid; gap: 10px; align-content: start; }
.step__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.step__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); font-weight: 700; }
.step__icon { width: 88px; flex: none; }
.step__icon .slot__label { font-size: 10px; }
.step__icon .slot__slug { display: none; }

/* Частным лицам */
.private { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.private__text { display: grid; gap: 18px; justify-items: start; }
.ticks--2col { grid-template-columns: 1fr 1fr; column-gap: 24px; }

/* Команда */
.team-group { margin-bottom: var(--gap); }
.slot--photo { padding: 0; border: 0; background: var(--surface-2); overflow: hidden; display: block; }
.slot--photo img { width: 100%; height: 100%; object-fit: cover; }
.slot--photo-empty { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.05) 14px 15px), var(--surface-2); }
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.person { display: grid; gap: 8px; align-content: start; padding: 12px 12px 20px; }
.person > * { min-width: 0; }
.person p, .person .h3 { overflow-wrap: anywhere; }
.person .h3, .person p { padding-inline: 8px; }
.person__photo { margin-bottom: 8px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.review--placeholder { min-height: 200px; border: 1.5px dashed #c4c4c4; background: transparent; display: grid; gap: 10px; align-content: start; }

/* FAQ */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 64px); align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq__item { padding: 22px 24px; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-weight: 700; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { margin-top: 12px; }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--ink); border-radius: 2px; }
.faq__icon::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq__item[open] .faq__icon::after { transform: rotate(0); }

/* Заявка */
.request { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.request__intro { display: grid; gap: 18px; align-content: start; justify-items: start; }
.request__img { margin-top: 12px; }
.form { display: grid; gap: 16px; align-content: start; }
.check--consent a { color: var(--accent-text); }

/* Подвал */
.site-footer { margin-top: var(--section-gap); background: var(--deep); color: var(--on-deep); padding-block: clamp(40px, 6vw, 72px) 28px; }
.site-footer .muted, .site-footer .label, .site-footer .brand__desc { color: color-mix(in srgb, var(--on-deep) 62%, transparent); }
.site-footer .brand__mark { color: var(--accent); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__brand { display: grid; gap: 16px; align-content: start; }
.site-footer__col { display: grid; gap: 10px; align-content: start; }
.site-footer__col a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__col a:hover { text-decoration: underline; }
/* Строка в 190 знаков не читается: глаз не находит начало следующей.
   Держим её в пределах ~80 знаков, как и остальной текст на сайте. */
.site-footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--on-deep) 16%, transparent); display: grid; gap: 10px; font-size: 13px; }
.site-footer__legal p { max-width: 64ch; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Адаптив ---------- */
/* Меню сворачивается в бургер до 1280: с дескриптором «Центр бухгалтерских и
   юридических услуг» строка шапки на 1181–1279 не помещается и переносится. */
@media (max-width: 1279px) {
	.nav, .site-header__contact { display: none; }
	.burger { display: block; }
	.site-header__cta { margin-left: auto; }
}
@media (max-width: 1180px) {
	.team { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
	.prices, .compare-pair { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.card--hero, .hero__side { grid-column: 1 / -1; }
	.hero__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.hero__stats { grid-template-columns: 1fr; }
	.split, .prices, .faq, .request, .private, .compare-pair { grid-template-columns: 1fr; }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.dir, .dir--lg, .dir--md { grid-column: span 1; }
	.dir--lg { grid-column: 1 / -1; }
	.benefits, .steps { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.site-header__cta { display: none; }
	.burger { margin-left: auto; }
	.brand__desc { display: none; }
	.hero__side { grid-template-columns: 1fr; }
	.hero__stats { grid-template-columns: 1fr 1fr; }
	.split__item { grid-template-columns: 1fr; }
	.bento, .benefits, .steps, .reviews { grid-template-columns: 1fr; }
	.benefit--img { grid-column: auto; }
	.dir--lg { grid-column: auto; }
	.calc__inputs { grid-template-columns: 1fr 1fr; }
	.ticks--2col { grid-template-columns: 1fr; }
	.team { grid-template-columns: 1fr 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.triage__answer { grid-template-columns: 1fr; }
	.triage__answer .btn { width: 100%; }
	/* На узком экране самый длинный ответ занимает на строку больше. */
	[data-answer-what] { min-height: 4.35em; }
}

/* ---------- Внутренние страницы ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }

.service { display: grid; gap: var(--gap); }
.service__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.service__headtext { display: grid; gap: 18px; justify-items: start; }
.service__icon { max-width: 260px; margin-inline: auto; }
/* align-items: start обязателен: иначе ячейка без ссылки растягивается до
   высоты ячейки с ценой, и её значение уезжает вниз, не под свою подпись. */
.service__facts { display: flex; flex-wrap: wrap; align-items: start; gap: 12px 40px; }
.service__facts > div { display: grid; gap: 2px; align-content: start; }
.service__facts strong { font-size: 18px; }
.service__block { display: grid; gap: 16px; }
.service__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.service__text p { margin-bottom: 12px; }
.ticks--muted li::before { box-shadow: inset 0 0 0 4px var(--surface-2), inset 0 0 0 7px var(--muted); background: var(--surface-2); }
.service__expert { display: grid; grid-template-columns: 220px 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; }
.service__expert > div { display: grid; gap: 10px; justify-items: start; }
.service__expertphoto { border-radius: var(--r-inner); }

/* Колонки заданы шагами, а не auto-fit. auto-fit на широком экране давал
   пять карточек в ряд и одну сиротой во втором — шесть на пять не делится.
   1 / 2 / 3 колонки делят и шесть, и три без остатка. */
.hub { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: start; }
@media (min-width: 640px) { .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hub { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub > * { min-width: 0; }
/* Колонка, а не сетка: при `align-content: start` свободное место копилось
   в конце, и `margin-top: auto` у кнопки не срабатывал — кнопки «Подробнее»
   в ряду стояли на разной высоте. */
.hub__item { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hub__item > * { min-width: 0; max-width: 100%; }
/* break-word, а не anywhere: anywhere рвёт слово в любом месте, и заголовки
   выглядели как «Бухгалтерск/ое обслуживани/е». break-word переносит только
   то слово, которое целиком не помещается. */
.hub__item h2, .hub__item h3, .hub__item p { overflow-wrap: break-word; }
/* В карточке хаба заголовок не должен спорить с иконкой за ширину */
.hub__item h2 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; }
.hub .dir__icon { width: 72px; }
.hub__item h2 a { text-decoration: none; }
.hub__item h2 a:hover { color: var(--accent-text); }
.hub__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.hub__list a { text-decoration: none; border-bottom: 1px solid var(--line); display: block; padding-bottom: 8px; }
.hub__list a:hover { color: var(--accent-text); }
.hub__item .dir__top > div { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.hub__item--small { position: relative; padding-right: 76px; }
.hub__item--small .round-btn { position: absolute; right: 20px; top: 20px; }

@media (max-width: 860px) {
	.service__head, .service__cols, .service__expert { grid-template-columns: 1fr; }
	.service__icon { max-width: 200px; }
}

.faq-group { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.faq-group h2 a { text-decoration: none; }
.faq-group h2 a:hover { color: var(--accent-text); }
.doc { max-width: 72ch; }
.doc h2 { font-size: 24px; margin-top: 24px; }
.doc p { margin-bottom: 12px; }

/* ---------- Отзывы ---------- */
.reviews { grid-template-columns: 1fr; }
@media (min-width: 640px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1023px) {
	.reviews:not([data-review-list]) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Колонка, подпись прижата к низу: у соседних карточек разной длины
   имена авторов стоят на одной линии. */
.review { display: flex; flex-direction: column; gap: 14px; }
.review__who { margin-top: auto; }
.review__date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.review__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
.review.is-open .review__text { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.review__more {
	align-self: flex-start; margin-top: -6px; padding: 10px 0; min-height: 44px; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 700; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px;
}
.review__more[hidden] { display: none; }
.reviews > [hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.review.is-new { animation: cc-review-in .45s var(--ease-out) both; }
}
@keyframes cc-review-in { from { opacity: 0; transform: translateY(16px); } }

.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Сводка на странице всех отзывов: средняя и распределение оценок. */
.rsum { display: grid; gap: 20px 40px; align-items: center; margin-bottom: 24px; }
@media (min-width: 640px) { .rsum { grid-template-columns: auto minmax(0, 1fr); } }
.rsum__score { display: grid; gap: 6px; justify-items: start; }
.rsum__avg { font-size: clamp(48px, 7vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rsum__score .stars svg { width: 22px; height: 22px; }
.rsum__bars { display: grid; gap: 8px; width: 100%; }
.rsum__row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; }
.rsum__row dt { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.rsum__row dt svg { width: 14px; height: 14px; color: var(--star); }
.rsum__row dd { display: grid; grid-template-columns: minmax(0, 1fr) 3ch; align-items: center; gap: 12px; margin: 0; }
.rsum__bar { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rsum__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--star); }
.rsum__n { font-size: 14px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.rfilter { margin-bottom: 20px; }
.rfilter .chip { border-color: var(--line); min-height: 44px; }
.chip__n { font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; margin-left: 2px; }
.rmore { display: grid; justify-items: center; gap: 12px; margin-top: 28px; }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; display: block; }
.stars--muted { color: var(--line); }
.review__text { font-size: 16px; line-height: 1.55; }
.review__who { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.review__who strong { font-size: 15px; }
.review__source { font-size: 13px; color: var(--muted); }
.badge-demo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 5px 8px; border-radius: 6px; }
.reviews-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.rating-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.rating-summary .stars svg { width: 22px; height: 22px; }

/* Калькулятор и прайс: недоступная опция, группы в юридическом прайсе */
.check.is-disabled { opacity: .45; cursor: not-allowed; }
.tariff-table__group th { padding-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
/* Полей четыре, поэтому колонок может быть 1, 2 или 4 — иначе последнее
   остаётся в ряду одно. auto-fit давал на планшете 3 + 1, а на телефоне две
   колонки с переносом подписей и разной высотой полей. */
.calc__inputs { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 560px) { .calc__inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .calc__inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.price-list { list-style: none; margin: 0; padding: 0; display: grid; }
.price-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.price-list li:first-child { border-top: 0; padding-top: 0; }
.price-list strong { text-align: right; font-variant-numeric: tabular-nums; max-width: 55%; }
@media (max-width: 560px) { .price-list li { flex-direction: column; gap: 4px; } .price-list strong { text-align: left; max-width: none; } }

/* ---------- Налоговый календарь ---------- */
/* Три фильтра — три равные колонки. auto-fit давал на планшете две, и третий
   фильтр оставался в ряду один, с пустой половиной справа. */
.calfilter { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .calfilter { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.calfilter__group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.calfilter__group legend { padding: 0; }
/* Переключатель занимает всю колонку, доли равные: короткое «Все» иначе
   превращалось в тёмный кружок рядом с широкими соседями. */
/* Шире 420 px переключатель не растягиваем: на планшете в одну колонку
   кнопка «Все» иначе разъезжается на пол-экрана. */
.calfilter .seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; max-width: 420px; }
.calfilter .seg label { text-align: center; }

.calnav { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: thin; }
.calnav .chip { text-decoration: none; color: var(--muted); white-space: nowrap; flex: none; border-color: var(--line); }
.calnav .chip:hover { color: var(--ink); }
.calnav .chip--now { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

.calendar { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: start; }
.calmonth { display: grid; gap: 14px; align-content: start; scroll-margin-top: 92px; }
.calmonth__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill--now { background: var(--accent-soft); color: var(--accent-text); }
.calmonth__list { list-style: none; margin: 0; padding: 0; display: grid; }

.calitem { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.calmonth__list > .calitem:first-child { border-top: 0; padding-top: 0; }
.calitem__date {
	display: grid; justify-items: center; align-content: center; gap: 0;
	border-radius: var(--r-inner); background: var(--surface-2); padding: 8px 4px; height: fit-content;
}
.calitem__date b { font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calitem__date i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.calitem--pay .calitem__date { background: var(--accent-soft); color: var(--accent-ink); }
.calitem--pay .calitem__date i { color: var(--accent-text); }
.calitem__body { display: grid; gap: 4px; min-width: 0; }
.calitem__kind { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.calitem--pay .calitem__kind { color: var(--accent-text); }
.calitem__title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.calitem__note { font-size: 13px; color: var(--muted); line-height: 1.45; }
.calitem__base { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; }
.calitem__moved { color: var(--accent-text); font-weight: 600; }

.calfloat { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.calfloat__item { display: grid; gap: 8px; align-content: start; }
.calfloat__when { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
/* Пояснения к календарю — сплошной текст на всю ширину карточки давал
   строки по 148 знаков: глаз не находит начало следующей. */
.calnote { display: grid; gap: 14px; }
.calnote li { max-width: 64ch; }

.is-filtered-out { display: none; }
@media (max-width: 420px) {
	.calitem { grid-template-columns: 48px 1fr; gap: 10px; }
}

/* Готовая карточка в «Полезном» кликается целиком */
.hub__item--ready { position: relative; }
/* Ссылка заголовка растянута на всю карточку: нажимается любое место. */
.hub__item--ready :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.hub__item--ready:hover { box-shadow: 0 0 0 1.5px var(--line) inset; }

/* ---------- Хаб полезного ---------- */
/* Подзаголовок группы: «Работает сейчас» и «Готовим» — разные вещи, и
   карточка без ссылки не должна стоять вперемешку с рабочими.
   Отрицательного поля здесь быть не должно: заголовок заезжал под карточки. */
.tools__label { margin: 0 0 14px; }
.hub + .tools__label, .changes + .tools__label { margin-top: clamp(28px, 3vw, 44px); }
.tool__fact { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.tool__fact--soon { font-weight: 500; color: var(--muted); }
/* Кнопка прижата к низу — у карточек в ряду она на одной линии. */
.tool__go { margin-top: auto; }

/* ---------- Чек-листы ---------- */
.chk { display: grid; gap: var(--gap); }
.chk__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; position: sticky; top: 80px; z-index: 5; }
.chk__count { margin: 0; font-weight: 700; font-size: 17px; }
.chk__count span { color: var(--accent-text); }
.chk__group { display: grid; gap: 14px; }
.chk__list { list-style: none; margin: 0; padding: 0; display: grid; }
.chk__item { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.chk__list > .chk__item:first-child { border-top: 0; padding-top: 0; }
.chk__item input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); flex: none; }
.chk__item label { display: grid; gap: 4px; cursor: pointer; min-height: 24px; }
.chk__text { font-size: 15px; line-height: 1.45; }
.chk__hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.chk__item:has(input:checked) .chk__text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.chk[data-mode="risks"] .chk__item:has(input:checked) .chk__text { color: var(--ink); text-decoration: none; font-weight: 600; }
.chk__after { display: grid; gap: 14px; margin-top: var(--gap); }
/* Та же причина, что и в пояснениях к календарю: строка в 148 знаков
   не читается. Списки с текстом держим в пределах ~80 знаков. */
.chk__after li { max-width: 64ch; }
@media (max-width: 640px) { .chk__bar { position: static; } }

/* ---------- Окно заявки ---------- */
.modal {
	border: 0; padding: 0; margin: auto; color: var(--ink); background: var(--surface);
	width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
	border-radius: var(--r-card); box-shadow: 0 30px 80px rgba(6, 40, 27, .28);
	overflow: visible;
}
.modal::backdrop { background: rgba(6, 40, 27, .5); backdrop-filter: blur(3px); }
/* Окно — колонка: неподвижная полоса сверху и прокручиваемое содержимое под ней. */
.modal[open] { display: flex; flex-direction: column; }
/* Сам <dialog> получает фокус при открытии — рамка вокруг всего окна не нужна:
   фокус на полях и кнопках виден как обычно. */
.modal:focus, .modal:focus-visible { outline: none; }
.modal__bar {
	flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 14px 6px var(--pad-card);
}
.modal__body { padding: 6px var(--pad-card) var(--pad-card); display: grid; gap: 18px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.modal__head { display: grid; gap: 10px; justify-items: start; }
.modal__head .h2 { font-size: clamp(24px, 3vw, 30px); }
.modal__close {
	flex: none; width: 44px; height: 44px; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer;
}
.modal__close:hover { background: var(--accent-soft); color: var(--accent-text); }
.modal .form { gap: 14px; }

/* Что кнопка принесла с собой: расчёт или выбранный сценарий */
.form__context {
	background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--r-inner);
	padding: 14px 16px; font-size: 14px; line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
	.modal[open] { animation: modal-in .18s ease-out; }
	.modal[open]::backdrop { animation: fade-in .18s ease-out; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

/* Кнопки инструментов: сброс отметок и заявка с контекстом */
.chk__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.calfilter__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.calfilter__foot p { margin: 0; }

/* Пока открыто окно заявки — фон не прокручивается.
   overflow на одном <html> Chrome игнорирует, когда сверху модальный <dialog>,
   поэтому запираем и body; overscroll-behavior не даёт прокрутке формы
   «перетечь» на страницу, когда список полей закончился. */
html.has-modal body {
	position: fixed; left: 0; right: 0; width: 100%; overflow: hidden;
	padding-right: var(--scrollbar, 0px);
}
.modal__body { overscroll-behavior: contain; }

/* Четыре способа связи на узком экране не помещаются в строку: «MAX» уезжал
   на вторую строку один, а скруглённая подложка превращалась в каплю. */
@media (max-width: 460px) {
	.form .seg--wide { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-inner); }
	.form .seg--wide .seg__thumb { border-radius: calc(var(--r-inner) - 4px); }
}

/* Ошибка у поля — прямо под ним: сообщение внизу формы на телефоне
   оставалось за экраном, а подсвеченное поле — без объяснения. */
.field [aria-invalid="true"] { border-color: var(--danger); }
.check--consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.field__error { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--danger); }

/* ---------- Форма: телефон и почта рядом, вложения ---------- */
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 560px) { .form__pair { grid-template-columns: 1fr; } }

.files { display: block; cursor: pointer; }
.files input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.files__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
	padding: 12px 20px; border-radius: var(--r-pill);
	background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 15px;
}
.files__btn .i-arrow { transform: rotate(135deg); }
.files:hover .files__btn { background: var(--accent-soft); color: var(--accent-text); }
.files input:focus-visible + .files__btn { outline: 2px solid var(--accent); outline-offset: 2px; }

.files__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.files__list li {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px;
}
.files__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files__size { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.files__drop {
	flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
	background: transparent; color: var(--muted); font-size: 20px; line-height: 1;
}
.files__drop:hover { background: var(--surface); color: var(--ink); }
.files__skipped { background: transparent; padding: 4px 0; color: var(--accent-text); font-size: 13px; }

/* Карточка человека без фотографии: силуэт на спокойной плашке */
.slot--photo-person {
	display: grid; place-items: center; overflow: hidden;
	border-radius: var(--r-inner); background: var(--surface-2);
}
/* Тон силуэта: var(--line) сливался с плашкой и читался как брак вёрстки.
   Треть от приглушённого текста — видно, но не спорит с живыми портретами. */
.person-glyph { width: 44%; height: auto; fill: color-mix(in srgb, var(--muted) 34%, transparent); }

.slot--photo-icon {
	display: grid; place-items: center; overflow: hidden;
	border-radius: var(--r-inner); background: var(--surface-2);
}
/* У иконок белый фон, а не прозрачность: без умножения на плашке виден квадрат. */
.slot--photo-icon img { width: 56%; height: auto; mix-blend-mode: multiply; opacity: .8; }

/* Подпись разработчика в подвале */
.site-footer__author { font-size: 13px; color: color-mix(in srgb, var(--on-deep) 55%, transparent); }
.site-footer__author a { color: color-mix(in srgb, var(--on-deep) 80%, transparent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 30%, transparent); }
.site-footer__author a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Карточка направления кликается целиком и открывает заявку, «Подробнее» ведёт
   к услуге. Растянутый псевдоэлемент поверх карточки не подошёл: elementFromPoint
   его видит, а настоящие события мыши до кнопки не доходят — проверено, клик
   в середину карточки приходил на абзац. Поэтому клик ловит JS на самой карточке. */
.dir { position: relative; cursor: pointer; }
.dir__cta { border: 0; padding: 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
	.dir, .hub__item--ready { transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
	.dir:hover, .hub__item--ready:hover { transform: translateY(-4px); }
	.dir--core:hover, .hub__item--core:hover { box-shadow: 0 2px 4px rgba(6, 40, 27, .06), 0 30px 56px -28px rgba(6, 40, 27, .5); }
	.dir:not(.dir--core):hover { box-shadow: 0 16px 32px -22px rgba(6, 40, 27, .4); }
}
.dir__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dir__more {
	position: relative; z-index: 1; margin-left: auto; margin-right: 4px;
	font-size: 14px; font-weight: 600; color: var(--accent-text); text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--accent-text) 35%, transparent);
	padding-block: 10px;
}
.dir__more:hover { border-bottom-color: var(--accent-text); }
@media (max-width: 520px) {
	.dir__foot { flex-wrap: wrap; row-gap: 6px; }
	.dir__more { margin-left: 0; }
}

/* ---------- Страница услуги: новые блоки ---------- */
.service__pricelink { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-text) 35%, transparent); width: fit-content; }
.service__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.service__sla { font-size: 14px; color: var(--muted); }
.service__law { border-left: 3px solid var(--accent); }
.service__law p { max-width: 72ch; line-height: 1.6; }
.service__proof .ticks li { font-size: 15px; }

.rhythm { margin: 0; display: grid; gap: 0; }
.rhythm__row { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.rhythm__row:first-child { border-top: 0; padding-top: 0; }
.rhythm dt { font-weight: 700; font-size: 15px; }
.rhythm dd { margin: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .rhythm__row { grid-template-columns: 1fr; gap: 4px; } }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--gap); align-items: start; }
.case { display: grid; gap: 12px; align-content: start; }
.case p { margin: 0; display: grid; gap: 3px; font-size: 15px; line-height: 1.5; }
.case__result { padding-top: 12px; border-top: 1px solid var(--line); }
.case__result strong { color: var(--accent-text); font-size: 17px; }

/* Шагов на странице услуги три, а не четыре, как на главной */
.service .steps { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

/* «Что делаем» — подробности направления вместо отдельных страниц подуслуг */
/* Шаги колонок, а не auto-fit: на 1920 auto-fit давал пять карточек и одну
   сиротой. 1 / 2 / 3 делят и шесть, и три, и четыре без обрубков. */
.areas { display: grid; grid-template-columns: 1fr; gap: var(--gap); align-items: stretch; }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Нечётный последний в двухколоночном ряду занимает оба места, а не половину */
@media (min-width: 640px) and (max-width: 1023px) {
	.areas > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.area { display: grid; gap: 8px; align-content: start; }
.area p { font-size: 15px; line-height: 1.5; }
.hub__areas { width: 100%; font-size: 14px; }

/* ---------- Плавное появление при прокрутке ----------
   Класс cc-reveal ставится инлайновым скриптом в <head> до первой отрисовки.
   Без JS, при отключённых анимациях и в старом браузере класса нет — страница
   выводится обычным образом. Страховка от «вечно невидимого» контента:
   main.js снимает скрытие принудительно, если наблюдатель почему-то не сработал. */
.cc-reveal .reveal {
	opacity: 0;
	/* Только сдвиг, без масштаба: дробный scale на крупном блоке размывает
	   текст на время полёта и уменьшает области нажатия внутри него. */
	transform: translateY(32px);
	transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
	will-change: opacity, transform;
}
.cc-reveal .reveal.is-in { opacity: 1; transform: none; }
.cc-reveal .reveal.is-in { will-change: auto; }

/* Мягкое увеличение у крупных изображений — только на широких экранах */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
	.slot--photo img, .card--media img { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
	.card--media:hover img { transform: scale(1.02); }
}

/* ---------- Область нажатия ----------
   Пальцу нужно ~44 px. Расширяем область нажатия отрицательным полем, чтобы
   раскладка не поехала: визуально ничего не сдвигается, а промахнуться сложнее.
   Ссылки внутри предложений не трогаем — там это испортило бы текст. */
.crumbs a,
.faq-group h2 a,
.hub__item :is(h2, h3) a,
.site-footer__links a {
	display: inline-block;
	padding-block: 11px;
	margin-block: -11px;
}
.phone, .service__block a[href^="mailto:"], .site-header__contact a {
	display: inline-flex; align-items: center; min-height: 44px;
}
.site-footer .phone { min-height: 40px; }
/* Строка чек-листа: нажимается вся высота строки, а не только текст */
.chk__item label { padding-block: 12px; margin-block: -12px; }
.chk__item input { width: 26px; height: 26px; }
/* Пункты меню: высота строки 21 px мала даже для мыши. Шапка выше не станет —
   в ней и так около 76 px, ссылки просто займут доступную высоту. */
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; }

/* Якорное меню на длинной странице направления.
   На узком экране чипы переносятся, а не уезжают в горизонтальную прокрутку:
   спрятанный за краем пункт человек просто не найдёт. */
.jump { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; margin-bottom: calc(var(--gap) * -0.5); }
.jump .chip { text-decoration: none; color: var(--muted); white-space: nowrap; flex: none; border-color: var(--line); }
.jump .chip:hover { color: var(--accent-text); border-color: var(--accent); }
/* Отступ под липкой шапкой уже задан один раз: html { scroll-padding-top }.
   Дублировать его через scroll-margin значит увести заголовок вдвое ниже. */

/* ---------- Ключевые направления ----------
   Бухгалтерия и право — ядро услуг. Выделяем мягко: тёплая подложка, полоса
   фирменного цвета слева и метка. Кричащий цвет здесь не нужен — карточки и
   так идут первыми, а рядом стоят такие же живые направления. */
.pill--core { background: var(--accent); color: var(--accent-ink); }
/* Раньше карточка ядра была залита мятным целиком — два, а в каталоге и три
   таких прямоугольника рядом читались как зелёное поле. Заливки нет совсем:
   карточка белая, главенство даёт подъём над остальными, размер и зелёная
   метка. Заодно ушла мятная подложка под иконкой, из-за которой её
   приходилось гасить умножением. */
.dir--core, .hub__item--core {
	box-shadow: 0 1px 2px rgba(6, 40, 27, .05), 0 22px 44px -28px rgba(6, 40, 27, .45);
}
.dir--core .pill { background: var(--accent); color: var(--accent-ink); }

/* Карточки в ряду одной высоты: кнопка «Подробнее» прижата к низу,
   иначе низы съезжают и ряд выглядит рваным. */
.hub { align-items: stretch; }
.hub__item > .btn { margin-top: auto; }

/* «Другие направления» — три компактные карточки. Держим их в одном ряду
   уже с планшета: в две колонки третья оставалась бы одна. */
@media (min-width: 640px) { .hub--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Расшифровка под суммой калькулятора */
.calc__explain { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--on-deep) 70%, transparent); max-width: 52ch; }
.prices__note { margin-top: calc(var(--gap) * -0.4); max-width: 64ch; }

/* ---------- Калькулятор: вкладки, скрытые надбавки, разбор по строкам ---------- */
/* justify-self, а не align-self: в grid-родителе элемент растягивался на всю
   строку, и подложка вкладок тянулась через всю карточку. */
.calc__tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); justify-self: start; align-self: start; flex-wrap: wrap; }
.calc__tabs button {
	border: 0; background: transparent; cursor: pointer; font: inherit;
	min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill);
	font-weight: 600; font-size: 15px; color: var(--muted);
}
.calc__tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); }

/* ---------- Плавные переключения ----------
   Бегунок едет под активной кнопкой: подложку рисует он, сами кнопки
   остаются прозрачными. Размер и место считает JS — надписи разной длины,
   ровными долями их не разложить. */
.seg, .calc__tabs { position: relative; }
.seg > *, .calc__tabs > * { position: relative; z-index: 1; transition: color .2s ease; }
.seg__thumb {
	position: absolute; top: 0; left: 0; z-index: 0; border-radius: var(--r-pill);
	background: var(--ink); pointer-events: none;
	/* Высота в группе одинаковая — её меняем мгновенно, анимируем только то,
	   что действительно едет. Ширину приходится анимировать: кнопки разной
	   длины, а scaleX растянул бы скругление. */
	transition: transform .24s var(--ease-in-out), width .24s var(--ease-in-out);
}
/* Подложку кнопки отдаём бегунку только после того, как он посчитан: без JS
   активная вкладка должна оставаться закрашенной. */
.has-thumb > [aria-checked="true"], .has-thumb > [aria-selected="true"] { background: transparent; color: var(--surface); }

.opt, .stepper__btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
@media (prefers-reduced-motion: no-preference) {
	.calc__pane.is-enter-right { animation: cc-pane-right .28s var(--ease-out); }
	.calc__pane.is-enter-left { animation: cc-pane-left .28s var(--ease-out); }
	/* Сумма пересчитывается на каждое нажатие «+», поэтому движения здесь нет:
	   только короткая подмена, иначе цифра дёргается при быстрых нажатиях. */
	.calc__sum.is-changed { animation: cc-bump .16s var(--ease-out); }
	/* Лесенка играет, только когда меняется сам состав строк (см. main.js). */
	.calc__lines.is-changed li { animation: cc-line .22s var(--ease-out) both; }
	.calc__lines.is-changed li:nth-child(2) { animation-delay: .05s; }
	.calc__lines.is-changed li:nth-child(3) { animation-delay: .1s; }
	.calc__lines.is-changed li:nth-child(n+4) { animation-delay: .15s; }
}
@keyframes cc-pane-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes cc-pane-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes cc-bump { from { opacity: .45; } }
@keyframes cc-line { from { opacity: 0; transform: translateY(6px); } }
.calc__pane { display: grid; gap: 22px; }
.calc__pane[hidden] { display: none; }

/* Шаги калькулятора: номер + заголовок, между шагами волосяная линия.
   Раскладка по макету владельца (Загрузки/Калькулятор.html, 2026-09-20). */
.calc__step { display: grid; gap: 14px; }
.calc__step + .calc__step { border-top: 1px solid var(--line); padding-top: 22px; }
.calc__steptitle {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0;
	font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.calc__num {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft);
	color: var(--accent-text); font-size: 12px; letter-spacing: 0;
}
.calc__opt { font-weight: 500; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* Счётчик: набрать с клавиатуры можно, но на телефоне быстрее кнопками. */
.stepper { display: flex; align-items: center; gap: 6px; padding: 6px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); }
.stepper input {
	flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent;
	padding: 6px 4px 6px 10px; font: inherit; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: inherit;
}
/* Родные стрелки браузера рядом со своими кнопками — лишний шум. */
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.stepper__btn {
	flex: none; width: 44px; height: 44px; border: 0; border-radius: 11px; cursor: pointer;
	background: var(--surface-2); color: var(--ink); font: inherit; font-size: 20px; line-height: 1;
	display: inline-flex; align-items: center; justify-content: center;
}
@media (hover: hover) and (pointer: fine) { .stepper__btn:hover { background: var(--accent-soft); } }
.stepper__btn:active { transform: scale(.94); }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.field__label { font-size: 14px; font-weight: 700; }

/* Карточка-опция: название, процент и сколько это в рублях прямо сейчас. */
.opt {
	display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 56px;
	padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface);
}
.opt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.opt__body { display: grid; gap: 2px; min-width: 0; }
.opt__name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.opt__note { font-size: 12px; color: var(--muted); }
.opt__price { margin-left: auto; flex: none; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-text); white-space: nowrap; }
.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.opt--row .opt__name { flex: 1 1 auto; }
.opt--row .opt__price { color: var(--ink); }
.calc__extras { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .calc__extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .calc__extras { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Ведение первички — не отрасль, а объём работы, и надбавок нечётное число:
   широкая карточка в конце закрывает ряд вместо сироты. */
.opt--wide { grid-column: 1 / -1; }

/* Прайс юруслуг: бывшая таблица, теперь отмечаемые строки с итогом. */
.pricelist { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pricelist__group { margin: 10px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pricelist__group:first-child { margin-top: 0; }

/* На узком экране переключатели переносились по словам, и скруглённая
   подложка превращалась в каплю. Две колонки вместо переноса. */
@media (max-width: 560px) {
	.calc__tabs, .calc .seg--wide { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-inner); justify-self: stretch; }
	.calc__tabs .seg__thumb, .calc .seg--wide .seg__thumb { border-radius: calc(var(--r-inner) - 4px); }
	.calc__tabs button, .calc .seg--wide > * { padding-inline: 10px; font-size: 14px; text-align: center; }
}

.calc__lines { list-style: none; margin: 14px 0 0; padding: 14px 0 0; display: grid; gap: 8px; border-top: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent); }
.calc__lines li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; line-height: 1.4; color: color-mix(in srgb, var(--on-deep) 78%, transparent); }
.calc__lines b { flex: none; font-variant-numeric: tabular-nums; color: var(--on-deep); }
.calc__lawnote { max-width: 68ch; }
/* Текстовое значение вместо суммы набирается спокойнее цифры */
.calc__sum--text { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.01em; }

/* Тень сверху на общем фото — как на старом сайте (там градиент лежал под
   белым текстом): от 70 % затемнения у верхнего края к 25 % внизу. */
.slot--shade { position: relative; }
.slot--shade::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
	background: linear-gradient(rgba(30, 34, 40, .7), rgba(30, 34, 40, .25));
}

/* ---------- Калькулятор налогового режима ---------- */
.regime__grid { display: grid; gap: 12px 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .regime__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.regime input[data-money], .regime input[type="number"], .regime select {
	width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
	background: var(--surface); font: inherit; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; color: inherit; min-height: 52px;
}
.regime select { font-size: 16px; font-weight: 600; }
.regime .seg--wide { max-width: 420px; }
.regime__priority { align-self: end; }
/* Шаг «Патент» у ООО не прячем, а гасим: иначе форма прыгает при переключении. */
[data-patent-step].is-off { opacity: .45; }
[data-patent-step].is-off input { cursor: not-allowed; }

/* Четыре режима — четыре равные карточки; две колонки на планшете, одна на телефоне. */
.regime__results { display: grid; gap: 24px 12px; grid-template-columns: 1fr; padding-top: 14px; }
@media (min-width: 640px) { .regime__results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .regime__results { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.regime__card {
	display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-inner);
	border: 1.5px solid var(--line); background: var(--surface); transition: border-color .2s ease, background-color .2s ease;
}
.regime__card.is-best { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.regime__card.is-off { background: var(--bg); }
.regime__card { position: relative; }
/* Название режима бывает в одну строку и в две — держим место под две,
   чтобы суммы в ряду стояли на одной высоте. */
.regime__head { min-height: 2.6em; }
.regime__badge { position: absolute; top: -12px; left: 16px; box-shadow: 0 0 0 3px var(--surface); }
.regime__name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.regime__total { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.regime__total span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.regime__rows { margin: 0; display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.regime__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.regime__rows dt { color: var(--muted); }
.regime__rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.regime__note, .regime__why { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.regime__why { max-width: 32ch; }
.regime__verdict { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.regime__srctitle { margin-top: 8px; }
.regime__sources li { max-width: 64ch; }

/* ---------- Что меняется с 1-го числа ---------- */
.changes { display: grid; gap: 12px; }
.tools__label + .changes { margin-bottom: 8px; }
.change { display: grid; gap: 10px 28px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .change { grid-template-columns: 180px minmax(0, 1fr); } }
.change__date { margin: 0; font-size: 15px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.change__body { display: grid; gap: 10px; min-width: 0; }
.change__body .h3 { margin: 0; }
.change__rows { margin: 0; display: grid; gap: 8px; }
.change__rows div { display: grid; gap: 2px 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .change__rows div { grid-template-columns: 150px minmax(0, 1fr); } }
.change__rows dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.change__rows dd { margin: 0; max-width: 64ch; line-height: 1.5; }
.change__src { margin: 0; font-size: 13px; color: var(--muted); }
.change__src a, .change__rows a { color: var(--accent-text); }
.tpl__cta { margin-top: var(--gap); }
.tpl__sheets { margin-bottom: var(--gap); }

/* ---------- Баннер согласия на cookie ----------
   Показывается, только если подключена Метрика и выбор ещё не сделан. */
.cookie {
	position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	max-width: 720px; margin-inline: auto; display: grid; gap: 12px 20px; align-items: center;
	padding: 16px 18px; border-radius: var(--r-inner); background: var(--surface);
	box-shadow: 0 18px 50px -12px rgba(6, 40, 27, .35), 0 0 0 1px var(--line);
}
.cookie[hidden] { display: none; }
@media (min-width: 720px) { .cookie { grid-template-columns: minmax(0, 1fr) auto; } }
.cookie__text { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie__text a { color: var(--accent-text); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie__actions .btn { min-height: 44px; padding-block: 10px; }
.cookie__decline { background: var(--surface-2); color: var(--ink); }

/* ---------- Реквизиты: название — значение ---------- */
.reqs { margin: 0; display: grid; }
.reqs__row { display: grid; grid-template-columns: 1fr; gap: 2px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.reqs__row:first-child { border-top: 0; padding-top: 0; }
.reqs dt { font-size: 13px; font-weight: 700; color: var(--muted); }
/* Длинные номера (счёт, ОГРН) переносятся, а не растягивают страницу. */
.reqs dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (min-width: 720px) {
	.reqs__row { grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); }
	.reqs dt { font-size: 15px; font-weight: 600; color: var(--ink); }
}
