/*
 * Тема «Ремонт». С версии 1.2 — «живая» подача: фото объектов, люди, разный ритм секций.
 * Цвета, шрифты и скругление приходят из «Настроек сайта» как CSS-переменные (см. inc/setup.php).
 */

:root {
	--c-bg: #F3F4F1;
	--c-surface: #FFFFFF;
	--c-text: #1F2A30;
	--c-muted: #5E6A70;
	--c-line: #D5DAD7;
	--c-accent: #1F4E8C;
	--c-accent-soft: #E3EBF5;
	--c-ok: #2E7D5B;
	--c-error: #B42318;
	--font-head: 'Geologica', system-ui, sans-serif;
	--font-body: 'Golos Text', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
	--r: 6px;
	--c-grid: color-mix(in srgb, var(--c-line) 50%, transparent);
	--c-accent-hover: color-mix(in srgb, var(--c-accent) 86%, #000);
	--shadow: 0 1px 2px rgb(31 42 48 / .06), 0 8px 24px rgb(31 42 48 / .08);
	--header-h: 64px;
	--wrap: 1240px;
	--gutter: 20px;
}

@media (min-width: 768px) {
	:root { --gutter: 32px; --header-h: 72px; }
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
	background: var(--c-bg);
}

html.is-locked { overflow: hidden; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern";
}
@media (min-width: 1024px) {
	body { font-size: 17px; }
}

/* Цифры в ценах, сроках, площадях — одной ширины */
.fact__value, .pcard__price, .service__meta, .ptable, .specs dd, .act__row dd, .acts__no strong,
.acts__term, .dim > span, .passport dd, .range__num, .quiz__range-value, .header__phone, .footer__phone,
.contacts__phone, .mmenu__phone, .stat__value, .gterm__value, .ocard__body dd { font-variant-numeric: tabular-nums lining-nums; }

@media (max-width: 767px) {
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection { background: var(--c-accent-soft); color: var(--c-text); }

.sr-only {
	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-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--c-accent);
	color: var(--c-surface);
	border-radius: var(--r);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 12px; }

.mono { font-family: var(--font-mono); }

.icon { width: 20px; height: 20px; flex: none; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Секции ---------- */

.section { padding-block: 56px; }
.section--tight { padding-block: 32px 56px; }
.section--surface { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.section--grid, .phead { background: var(--c-bg); }
.section--soft { background: var(--c-accent-soft); }
.section--dark {
	background: var(--c-text);
	color: var(--c-bg);
}
.section--accent {
	background: var(--c-accent);
	color: var(--c-surface);
}

@media (min-width: 1024px) {
	.section { padding-block: 96px; }
	.section--tight { padding-block: 40px 80px; }
}

.section__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 32px;
	max-width: 760px;
}
@media (min-width: 1024px) {
	.section__head { margin-bottom: 48px; }
	.section__head--split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: end;
		gap: 24px 64px;
		max-width: none;
	}
	.section__head--split .section__lead { padding-bottom: 6px; }
}
.section__head--row {
	max-width: none;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}
.section__head--row > div { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }

.section__title {
	font-family: var(--font-head);
	font-size: clamp(28px, 3.8vw, 48px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.section__lead {
	color: var(--c-muted);
	font-size: 17px;
	line-height: 1.6;
	max-width: 64ch;
	text-wrap: pretty;
}
.section--dark .section__lead { color: color-mix(in srgb, var(--c-bg) 72%, transparent); }
.section--accent .section__lead { color: color-mix(in srgb, var(--c-surface) 82%, transparent); }
.section--accent :focus-visible { outline-color: var(--c-surface); }
.section--accent .card :focus-visible { outline-color: var(--c-accent); }
.section__more { margin-top: 28px; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--c-muted);
	font-size: 15px;
	font-weight: 500;
}
.eyebrow .icon { color: var(--c-accent); }
.eyebrow .icon { width: 16px; height: 16px; }

.card {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r);
	padding: 24px;
	color: var(--c-text);
}

.cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	list-style: none;
}
.cards > li { display: flex; flex-direction: column; min-width: 0; }
.cards > li > * { flex: 1; }
@media (min-width: 640px) {
	.cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--r);
	background: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--c-accent); color: var(--c-surface); }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--secondary { background: var(--c-surface); border-color: var(--c-line); color: var(--c-text); }
.btn--secondary:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--text { min-height: 40px; padding: 8px 4px; color: var(--c-accent); text-decoration: underline; text-underline-offset: 4px; }
.btn--text:hover { color: var(--c-accent-hover); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.section--dark .btn--secondary { background: transparent; border-color: color-mix(in srgb, var(--c-bg) 35%, transparent); color: var(--c-bg); }

.btn__spinner { display: none; animation: spin .8s linear infinite; }
.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--c-accent);
	font-weight: 600;
	text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 1px solid var(--c-line);
	border-radius: var(--r);
	background: var(--c-surface);
	color: var(--c-text);
	text-decoration: none;
}
.icon-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ---------- Метки и печать ---------- */

.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	vertical-align: middle;
}
.tag .icon { width: 14px; height: 14px; }
.tag--hidden { background: var(--c-text); color: var(--c-bg); }
.tag--accent { background: var(--c-accent-soft); color: var(--c-accent); }

/* Отметка «Принято»: акт на первом экране, ответ после заявки, «Спасибо» */
.stamp {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 2px solid currentColor;
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}
.stamp .icon { width: 15px; height: 15px; stroke-width: 2.5; }
.stamp small { font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.stamp--ok { color: var(--c-ok); }
.stamp--sm { padding: 3px 8px; border-width: 1.5px; }
.stamp--lg { padding: 8px 14px; font-size: 15px; transform: rotate(-4deg); }
.stamp--lg .icon { width: 18px; height: 18px; }

/* Крупное значение (цифры в блоках «статистики», 404, итог квиза) */
.dim > span {
	display: inline-block;
	color: inherit;
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

/* ---------- Шапка ---------- */

.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-line);
	transition: box-shadow .2s, background-color .2s;
}
.header.is-scrolled { box-shadow: 0 6px 20px rgb(31 42 48 / .07); }
.has-header-over .header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}
.header__brand { display: flex; flex: none; align-items: center; gap: 14px; margin-right: auto; }
.messengers.header__messengers { flex-wrap: nowrap; gap: 6px; }
.header__desc {
	display: none;
	max-width: 160px;
	padding-left: 14px;
	border-left: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: 14px;
	line-height: 1.35;
}
.header__contact { display: none; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.header__phone { font-family: var(--font-head); font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--c-accent); }
.header__hours { color: var(--c-muted); font-size: 14px; white-space: nowrap; }
.header__messengers { display: none !important; }
.header__cta { display: none; }
.header__mobile { display: flex; gap: 8px; }

@media (min-width: 768px) {
	.header__contact { display: flex; }
	.header__cta { display: inline-flex; }
	.header__mobile .icon-btn[href] { display: none; }
}
@media (min-width: 1100px) {
	.header__mobile { display: none; }
}
@media (min-width: 1400px) {
	.header__messengers { display: flex !important; }
}
@media (min-width: 1560px) {
	.header__desc { display: block; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
	.header__hours { display: none; }
	.nav__link { padding-inline: 9px; font-size: 14.5px; }
	.header__cta { padding-inline: 16px; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; min-width: 0; }
.logo__ph {
	flex: none;
	padding: 6px 8px;
	border: 1px dashed var(--c-muted);
	border-radius: 4px;
	color: var(--c-muted);
	font-family: var(--font-mono);
	font-size: 10.5px;
	line-height: 1;
}
.logo__name { font-family: var(--font-head); font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Основное меню */
.nav { display: none; }
@media (min-width: 1100px) {
	.nav { display: block; }
}
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; }
.nav__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 40px;
	padding: 8px 12px;
	border: 0;
	border-radius: var(--r);
	background: none;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: var(--c-accent-soft); color: var(--c-accent); }
.nav__item.is-active > .nav__link { color: var(--c-accent); }
.nav__chev { width: 16px; height: 16px; transition: transform .2s; }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.nav__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 10;
	min-width: 360px;
	padding: 8px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: calc(var(--r) + 2px);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nav__panel::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav__item.is-open .nav__panel { opacity: 1; visibility: visible; transform: none; }
.nav__sub { display: flex; flex-direction: column; list-style: none; }
.nav__sublink {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: var(--r);
	text-decoration: none;
}
.nav__sublink:hover, .nav__sublink.is-active { background: var(--c-bg); }
.nav__subtitle { font-weight: 600; }
.nav__sublink:hover .nav__subtitle { color: var(--c-accent); }
.nav__caption { color: var(--c-muted); font-size: 13.5px; }
.nav__all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--c-line); }
.nav__all a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; color: var(--c-accent); font-weight: 600; text-decoration: none; border-radius: var(--r); }
.nav__all a:hover { background: var(--c-accent-soft); }
.nav__all .icon { width: 18px; height: 18px; }

/* Мобильное меню */
.mmenu {
	width: min(420px, 100%);
	max-width: 100%;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: var(--c-surface);
	color: var(--c-text);
	animation: drawer-in .22s ease-out;
}
.mmenu.is-closing { animation: drawer-out .16s ease-in forwards; }
.mmenu::backdrop { background: rgb(31 42 48 / .5); }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.mmenu__inner { display: flex; flex-direction: column; gap: 20px; min-height: 100%; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mnav { display: flex; flex-direction: column; list-style: none; border-top: 1px solid var(--c-line); }
.mnav__item { border-bottom: 1px solid var(--c-line); }
.mnav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 12px 0;
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
	list-style: none;
	cursor: pointer;
}
.mnav__link::-webkit-details-marker { display: none; }
.mnav__link[aria-current] { color: var(--c-accent); }
.mnav details[open] > .mnav__link .icon { transform: rotate(180deg); }
.mnav__link .icon { transition: transform .2s; }
.mnav__sub { display: flex; flex-direction: column; gap: 2px; padding: 0 0 14px; list-style: none; }
.mnav__sub a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r); background: var(--c-bg); text-decoration: none; }
.mnav__sub a[aria-current] span { color: var(--c-accent); }
.mnav__sub span { font-weight: 600; }
.mnav__sub small { color: var(--c-muted); font-size: 13.5px; }
.mmenu__contact { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.mmenu__phone { font-family: var(--font-head); font-size: 24px; font-weight: 600; text-decoration: none; }
.mmenu__hours { margin-top: -8px; color: var(--c-muted); font-size: 14px; }

/* ---------- Мессенджеры ---------- */

.messengers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.messenger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 40px; height: 40px;
	border: 1px solid var(--c-line);
	border-radius: var(--r);
	background: var(--c-surface);
	color: var(--c-text);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}
.messenger:hover { border-color: var(--c-accent); color: var(--c-accent); }
.messenger .icon { width: 18px; height: 18px; }
.messengers--labels .messenger { width: auto; padding: 0 14px; }
.messengers--big { flex-direction: column; }
.messengers--big .messenger { width: 100%; height: 56px; justify-content: flex-start; padding: 0 18px; font-size: 16px; }
.messengers--big .messenger .icon { width: 22px; height: 22px; }
.section--dark .messenger, .footer .messenger { background: transparent; border-color: color-mix(in srgb, var(--c-bg) 28%, transparent); color: var(--c-bg); }
.section--dark .messenger:hover, .footer .messenger:hover { border-color: var(--c-bg); color: var(--c-bg); }
.section--accent .messenger { background: transparent; border-color: color-mix(in srgb, var(--c-surface) 40%, transparent); color: var(--c-surface); }
.section--accent .messenger:hover { border-color: var(--c-surface); color: var(--c-surface); }
.section--dark .card .messenger, .section--accent .card .messenger { background: var(--c-surface); border-color: var(--c-line); color: var(--c-text); }

/* ---------- Хлебные крошки и заголовок страницы ---------- */

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	list-style: none;
	color: var(--c-muted);
	font-size: 14px;
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--c-line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--c-accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--c-text); }

.hero-crumbs { padding-top: 16px; }

.phead { padding-block: 24px 40px; border-bottom: 1px solid var(--c-line); }
.phead__title {
	margin-top: 20px;
	font-family: var(--font-head);
	font-size: clamp(30px, 4.6vw, 54px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
	max-width: 22ch;
}
.phead__lead { margin-top: 14px; color: var(--c-muted); font-size: 18px; line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
@media (min-width: 1024px) {
	.phead { padding-block: 28px 56px; }
}

/* ---------- Первый экран ---------- */

.hero { padding-block: 24px 56px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 1024px) {
	.hero { padding-block: 40px 96px; }
	.hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
}
.hero__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero__title {
	max-width: 15ch;
	font-family: var(--font-head);
	font-size: clamp(34px, 5vw, 62px);
	font-weight: 700;
	line-height: 1.03;
	letter-spacing: -0.03em;
	text-wrap: balance;
}
.hero__lead { max-width: 50ch; color: var(--c-muted); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
@media (min-width: 768px) { .hero__lead { font-size: 19px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 479px) {
	.hero__actions { width: 100%; }
	.hero__actions .btn { width: 100%; }
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 24px;
	width: 100%;
	max-width: 600px;
	margin-top: 12px;
	padding-top: 22px;
	border-top: 1px solid var(--c-line);
}
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.fact__label { color: var(--c-muted); font-size: 14px; line-height: 1.35; }
.fact__value { font-family: var(--font-head); font-size: clamp(19px, 2.1vw, 26px); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
@media (max-width: 479px) {
	.facts { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 12px; }
	.fact__value { font-size: 17px; white-space: nowrap; }
	.fact__label { font-size: 13px; }
}

/* Фото объекта */
.hero__media { position: relative; }
.hero__photo { border-radius: calc(var(--r) * 2); }
@media (max-width: 1023px) {
	.hero__photo { aspect-ratio: 4 / 3 !important; }
}

/* Акт приёмки: лежит на фото как подпись к реальному объекту */
.act {
	position: relative;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r);
	box-shadow: var(--shadow);
	font-size: 14px;
	line-height: 1.4;
}
.act__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--c-line);
}
.act__doc { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
@media (min-width: 640px) { .act__doc { white-space: nowrap; } }
.act__doc .icon { width: 18px; height: 18px; color: var(--c-accent); }
.act .stamp { transform: rotate(-4deg); }
.act__rows { display: flex; flex-direction: column; padding: 4px 18px 8px; }
.act__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--c-line);
}
.act__row:last-child { border-bottom: 0; }
.act__row dt { color: var(--c-muted); }
.act__row dd { font-weight: 600; text-align: right; }

.act--note { margin: -40px 12px 0; }
@media (min-width: 640px) {
	.act--note { position: absolute; left: 20px; bottom: -32px; width: min(400px, 80%); margin: 0; }
}
@media (min-width: 1024px) {
	.act--note { left: -56px; bottom: -40px; }
}
@media (max-width: 639px) {
	.act--note .act__row:nth-child(n+4) { display: none; }
	.act--note .act__row:nth-child(3) { border-bottom: 0; }
}
@media (max-width: 479px) {
	.act__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.act__row dd { text-align: left; }
}

.hero__quiz { padding: 24px; box-shadow: var(--shadow); }
.hero__quiz-title { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.hero__quiz-title .icon { color: var(--c-accent); }

/* ---------- Фото ---------- */

.photo {
	position: relative;
	overflow: hidden;
	border-radius: var(--r);
	background: var(--c-line);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	background-color: color-mix(in srgb, var(--c-line) 60%, var(--c-bg));
	background-image: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--c-muted) 10%, transparent) 10px 11px);
	color: var(--c-muted);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}
.photo__ph .icon { width: 28px; height: 28px; opacity: .7; }
.photo > .tag { position: absolute; top: 12px; left: 12px; z-index: 1; }

/* ---------- Направления (карточки услуг с фото) ---------- */

.services {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	list-style: none;
}
.service { display: flex; min-width: 0; }
.service__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}
.service__photo { border-radius: var(--r); }
.service__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding-top: 16px; }
.service__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.service__link:hover .service__title { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.service__text { color: var(--c-muted); font-size: 15px; line-height: 1.5; }
.service__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; font-size: 15px; }
.service__price { font-weight: 600; }
.service__term { color: var(--c-muted); }
.service--big .service__title { font-size: clamp(22px, 2.2vw, 28px); }
.service--big .service__text { font-size: 16px; max-width: 46ch; }

/* Телефон: первые две — крупно с фото, остальные — строками с миниатюрой */
@media (max-width: 639px) {
	.service--big { margin-bottom: 28px; }
	.service:not(.service--big):not(.service--biz) .service__link {
		flex-direction: row;
		gap: 16px;
		padding: 16px 0;
		border-top: 1px solid var(--c-line);
	}
	.service:not(.service--big):not(.service--biz) .service__photo { flex: none; width: 104px; aspect-ratio: 1 / 1 !important; }
	.service:not(.service--big):not(.service--biz) .service__body { padding-top: 0; }
}
@media (min-width: 640px) {
	.services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (min-width: 1024px) {
	.services { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
	.service--big { grid-column: span 2; }
}

/* «Для бизнеса» — широкая тёмная карточка с фото */
.service--biz { grid-column: 1 / -1; margin-top: 24px; }
@media (min-width: 640px) { .service--biz { margin-top: 0; } }
.service--biz .service__link {
	overflow: hidden;
	background: var(--c-text);
	border-radius: calc(var(--r) * 2);
	color: var(--c-bg);
}
.service--biz .service__photo { order: -1; border-radius: 0; }
.service--biz .service__body { gap: 12px; padding: 24px; }
.service--biz .service__title { font-size: clamp(24px, 2.6vw, 32px); }
.service--biz .service__text { max-width: 52ch; color: color-mix(in srgb, var(--c-bg) 75%, transparent); font-size: 16px; }
.service--biz .service__link:hover .service__title { color: var(--c-bg); }
.service__points { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; font-size: 15px; }
.service__points span { display: flex; gap: 10px; }
.service__points .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-accent-soft); }
.service__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-weight: 600; }
.service__go .icon { width: 18px; height: 18px; }
@media (min-width: 768px) {
	.service--biz .service__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.service--biz .service__photo { order: 0; aspect-ratio: auto !important; height: 100%; min-height: 300px; }
	.service--biz .service__body { padding: 40px; }
}

/* ---------- Страхи ---------- */

.fears { display: grid; gap: 28px; }
.fears__intro { display: flex; flex-direction: column; gap: 32px; }
.fears__photo { display: none; border-radius: calc(var(--r) * 2); }
.fears__list { display: flex; flex-direction: column; list-style: none; }
.fears__item { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-top: 1px solid var(--c-line); }
.fears__item:last-child { padding-bottom: 0; }
.fears__fear { font-family: var(--font-head); font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.fears__solution { max-width: 60ch; }
.fears__proof { display: flex; align-items: flex-start; gap: 8px; color: var(--c-ok); font-size: 14px; font-weight: 600; }
.fears__proof .icon { width: 17px; height: 17px; margin-top: 1px; }
@media (min-width: 1024px) {
	.fears { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 88px; align-items: start; }
	.fears__intro { position: sticky; top: calc(var(--header-h) + 32px); }
	.fears__photo { display: block; }
	.fears__item { padding: 28px 0; }
	.fears__item:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- Этапы: номер и описание в одной карточке ---------- */

.acts { display: grid; gap: 16px; list-style: none; }
.acts__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: calc(var(--r) * 2);
}
.section:not(.section--surface) .acts__item { background: var(--c-surface); }
.acts__head { display: flex; align-items: center; gap: 14px; }
.acts__no {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-surface);
	font-family: var(--font-head);
	font-size: 19px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums lining-nums;
}
.acts__heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acts__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.acts__term { display: inline-flex; align-items: center; gap: 6px; color: var(--c-muted); font-size: 14px; }
.acts__term .icon { width: 15px; height: 15px; }
/* Описание висит на линии от номера — видно, к какому этапу оно относится */
.acts__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-left: 21px;
	padding-left: 35px;
	border-left: 2px solid color-mix(in srgb, var(--c-accent) 28%, transparent);
}
.acts__text { color: var(--c-muted); font-size: 15px; line-height: 1.5; }
.acts__doc { display: flex; align-items: flex-start; gap: 8px; margin-top: auto; font-size: 14px; font-weight: 600; }
.acts__doc .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--c-accent); }
.acts__photo .photo { border-radius: var(--r); }
@media (max-width: 479px) {
	.acts__item { padding: 16px; }
	.acts__body { padding-left: 25px; }
}

/* Сетка (главная, услуги, бизнес) */
@media (min-width: 768px) {
	.acts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1100px) {
	.acts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Список с фото (страница «Как мы работаем») */
.acts--photos .acts__doc { margin-top: 2px; }
@media (min-width: 768px) {
	.acts--photos .acts__item { display: grid; grid-template-columns: minmax(0, 1fr) 240px; grid-template-rows: auto 1fr; gap: 12px 32px; padding: 24px; }
	.acts--photos .acts__photo { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1100px) {
	.acts--photos .acts__item { grid-template-columns: minmax(0, 1fr) 280px; }
}

/* ---------- Пакеты и таблица цен ---------- */

.pcard {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	padding: 24px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r);
}
.pcard--hl { border: 2px solid var(--c-accent); box-shadow: var(--shadow); padding: 23px; }
.pcard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.2; }
.pcard__text { color: var(--c-muted); font-size: 15px; }
.pcard__price { font-family: var(--font-head); font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.pcard__from, .pcard__unit { color: var(--c-muted); font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.pcard .checklist { padding-top: 16px; border-top: 1px dashed var(--c-line); }
.pcard .btn { margin-top: auto; }

.specs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px dashed var(--c-line);
}
.specs > div { display: flex; flex-direction: column; gap: 2px; }
.specs dt { color: var(--c-muted); font-size: 13.5px; }
.specs dd { font-size: 16px; font-weight: 600; }
.specs--col { flex-direction: column; gap: 8px; margin-top: 0; padding-top: 0; border-top: 0; }
.specs--col > div { flex-direction: row; justify-content: space-between; gap: 12px; }
.specs--col dd { text-align: right; }

.checklist { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.checklist li { display: flex; gap: 10px; line-height: 1.45; }
.checklist .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-ok); stroke-width: 2.2; }
@media (min-width: 640px) {
	.checklist--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
}

.numlist { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; counter-reset: num; }
.numlist li { display: grid; grid-template-columns: 32px 1fr; gap: 8px; counter-increment: num; }
.numlist li::before { content: counter(num); color: var(--c-accent); font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.5; }

.table-wrap { overflow-x: auto; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); }
.ptable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.ptable th, .ptable td { padding: 12px 18px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.ptable thead th { background: var(--c-bg); color: var(--c-muted); font-size: 14px; font-weight: 600; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:not(.ptable__group):hover td { background: color-mix(in srgb, var(--c-accent-soft) 50%, transparent); }
.ptable .num { text-align: right; font-weight: 600; white-space: nowrap; }
.ptable__group th { background: var(--c-accent-soft); color: var(--c-accent); font-family: var(--font-head); font-size: 15px; font-weight: 600; }
.note { display: flex; gap: 8px; margin-top: 16px; color: var(--c-muted); font-size: 14px; }
.note .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--c-accent); }

.factors { display: grid; gap: 32px; }
.factors .section__title { margin-bottom: 24px; }
.factors__fixed { padding: 28px; }
.factors__title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.factors__title .icon { color: var(--c-ok); }
@media (min-width: 1024px) { .factors { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.terms-table { display: flex; flex-direction: column; border-bottom: 1px solid var(--c-line); }
.terms-table__row { display: grid; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--c-line); }
.terms-table__row dt { font-weight: 600; }
.terms-table__row dd { color: var(--c-muted); }
.terms-table--compact .terms-table__row { padding: 12px 0; }
@media (min-width: 768px) {
	.terms-table__row { grid-template-columns: 280px minmax(0, 1fr); }
	.terms-table--compact .terms-table__row { grid-template-columns: 220px minmax(0, 1fr); }
}
.requisites dd { color: var(--c-text); font-size: 14px; }

/* ---------- Цены: вертикальные таблицы ---------- */

.ptables { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; list-style: none; }
.ptab {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: calc(var(--r) * 2);
}
/* Строки соседних таблиц выровнены по высоте */
@supports (grid-template-rows: subgrid) {
	.ptab { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
}
.ptab__head { padding: 22px 24px; background: var(--c-bg); }
.ptab__badge {
	display: inline-block;
	margin-bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--c-surface);
	color: var(--c-accent);
	font-size: 13px;
	font-weight: 700;
}
.ptab__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.ptab__text { margin-top: 6px; color: var(--c-muted); font-size: 14.5px; line-height: 1.45; }
.ptab__cell { display: flex; flex-direction: column; gap: 4px; padding: 14px 24px; border-top: 1px solid var(--c-line); }
.ptab__label { color: var(--c-muted); font-size: 13.5px; }
.ptab__value { font-size: 15.5px; font-weight: 600; }
.ptab__price { padding-block: 18px; }
.ptab__sum { font-family: var(--font-head); font-size: clamp(30px, 2.8vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.ptab__from, .ptab__unit { color: var(--c-muted); font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.ptab__list { gap: 8px; margin-top: 4px; font-size: 15px; }
.ptab__action { justify-content: flex-end; padding-block: 18px 22px; }
.ptab--hl { border: 2px solid var(--c-accent); box-shadow: var(--shadow); }
.ptab--hl .ptab__head { background: var(--c-accent); color: var(--c-surface); }
.ptab--hl .ptab__text { color: color-mix(in srgb, var(--c-surface) 82%, transparent); }
@media (min-width: 640px) {
	.ptables--n2, .ptables--n3, .ptables--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.ptables--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1100px) {
	.ptables--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ptables--n4 .ptab__cell, .ptables--n4 .ptab__head { padding-inline: 20px; }
}

/* ---------- Гарантия и документы ---------- */

.guarantee { display: grid; gap: 32px; }
@media (min-width: 1024px) { .guarantee { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px 80px; align-items: end; } }
.guarantee__text { display: flex; flex-direction: column; gap: 16px; }
.gterms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 560px) { .gterms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .gterms { grid-column: 1 / -1; gap: 40px; margin-top: 16px; } }
.gterm { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.gterm__label { color: var(--c-muted); font-size: 14px; line-height: 1.4; }
.gterm__value { font-family: var(--font-head); font-size: clamp(30px, 5.4vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 559px) {
	.gterm { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 16px; padding-top: 14px; }
	.gterm__value { min-width: 150px; }
}
.section--dark .gterm { border-top-color: color-mix(in srgb, var(--c-bg) 22%, transparent); }
.section--dark .gterm__label { color: color-mix(in srgb, var(--c-bg) 72%, transparent); }

.docs { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.doc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 16px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r);
}
.doc__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: var(--r); background: var(--c-accent-soft); color: var(--c-accent); }
.doc__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 160px; }
.doc__title { font-weight: 600; }
.doc__note { color: var(--c-muted); font-size: 14px; }
.section--dark .doc { background: color-mix(in srgb, var(--c-bg) 6%, transparent); border-color: color-mix(in srgb, var(--c-bg) 18%, transparent); }
.section--dark .doc__icon { background: color-mix(in srgb, var(--c-bg) 12%, transparent); color: var(--c-bg); }
.section--dark .doc__note { color: color-mix(in srgb, var(--c-bg) 70%, transparent); }

/* ---------- Люди ---------- */

.person {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r);
}
.person__photo { border-radius: 0; }
.person__body { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.person__name { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.person__role { color: var(--c-muted); font-size: 14px; }
.person__exp { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--c-accent); font-size: 14px; font-weight: 600; }
.person__exp .icon { width: 15px; height: 15px; }

/* Команда: крупный портрет, цитата и подпись — без рамок карточки */
.team.cards { gap: 40px 32px; }
.team .person { gap: 20px; overflow: visible; background: none; border: 0; border-radius: 0; }
.team .person__photo { border-radius: calc(var(--r) * 2); }
.team .person__body { flex: 1; gap: 20px; padding: 0; }
.person__quote { font-family: var(--font-head); font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; text-wrap: pretty; }
.cards--4 .person__quote { font-size: 17px; }
.person__sign { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-line); }
.team .person__exp { margin-top: 4px; }
@media (max-width: 639px) {
	.team .person__photo { aspect-ratio: 1 / 1 !important; }
}
@media (min-width: 640px) {
	.team .person--row { flex-direction: row; gap: 28px; }
	.team .person--row .person__photo { flex: none; width: 44%; align-self: flex-start; }
	.team .person--row .person__body { padding-block: 4px; }
}
@media (min-width: 1100px) {
	.team .person--row .person__quote { font-size: 22px; }
}

/* ---------- Отзывы ---------- */

.rcard {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	padding: 28px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: calc(var(--r) * 2);
}
.rcard > .photo { margin: -28px -28px 4px; border-radius: calc(var(--r) * 2) calc(var(--r) * 2) 0 0; }
.rcard__source {
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--c-accent-soft);
	color: var(--c-accent);
	font-size: 13px;
	font-weight: 600;
}
.rcard__source a { color: inherit; text-decoration: none; }
.rcard__source a:hover { text-decoration: underline; }
.rcard__text { flex: 1; font-size: 16px; line-height: 1.6; }
.rcard__text p::before { content: "«"; }
.rcard__text p::after { content: "»"; }
.rcard__foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.rcard__avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c-accent);
	color: var(--c-surface);
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}
.rcard__who { display: flex; flex-direction: column; min-width: 0; }
.rcard__name { font-weight: 600; }
.rcard__meta { color: var(--c-muted); font-size: 14px; }

/* ---------- Карусель (объекты, отзывы) ---------- */

.section__tools, .section__head--row > .section__tools { display: flex; flex-direction: row; align-items: center; gap: 12px 24px; }
.carousel__nav { display: flex; gap: 8px; }
.carousel__nav .icon-btn { border-radius: 50%; }
.carousel__nav .icon-btn:disabled { opacity: .4; cursor: default; border-color: var(--c-line); color: var(--c-muted); }
.carousel__track {
	--n: 1.15;
	--gap: 16px;
	display: flex;
	gap: var(--gap);
	margin-inline: calc(-1 * var(--gutter));
	padding: 2px var(--gutter) 6px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; }
.carousel__item { display: flex; flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); min-width: 0; scroll-snap-align: start; }
.carousel__item > * { flex: 1; }
@media (min-width: 640px) {
	.carousel__track { --n: 2; --gap: 20px; }
}
@media (min-width: 1024px) {
	.carousel__track { --n: 3; --gap: 24px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
}

/* ---------- Вопросы ---------- */

.faq { display: grid; gap: 8px; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; align-items: start; } }
.faq__list { border-bottom: 1px solid var(--c-line); }
.faq__ask { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 4px; color: var(--c-muted); }
@media (max-width: 1023px) { .faq__ask { margin-top: 8px; } }
.faq__item { border-top: 1px solid var(--c-line); }
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--c-accent); }
.faq__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--c-line); border-radius: 50%; transition: transform .2s, background-color .2s; }
.faq__icon .icon { width: 16px; height: 16px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--c-accent); border-color: var(--c-accent); color: var(--c-surface); }
.faq__a { max-width: 68ch; padding: 0 48px 22px 0; color: var(--c-muted); }
.faq__a p + p { margin-top: .8em; }

/* ---------- Квиз ---------- */

.calc { display: grid; gap: 32px; }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; } }
.calc__intro { display: flex; flex-direction: column; gap: 14px; }
.calc__box { padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 479px) { .calc__box { padding: 20px; } }

.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.quiz__count { color: var(--c-muted); font-size: 14px; white-space: nowrap; }
.quiz__progress { display: flex; flex: 1; gap: 4px; max-width: 280px; list-style: none; }
.quiz__progress li { flex: 1; height: 4px; border-radius: 2px; background: var(--c-line); transition: background-color .2s; }
.quiz__progress li.is-done { background: var(--c-accent); }
.quiz.is-finished .quiz__top { display: none; }
.quiz__step { display: flex; flex-direction: column; animation: step-in .22s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateX(8px); } }
.quiz__q { margin-bottom: 6px; font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.25; text-wrap: balance; }
.quiz__hint { margin-bottom: 18px; color: var(--c-muted); font-size: 14px; }
.quiz__q + .quiz__options, .quiz__q + .range { margin-top: 12px; }
.quiz__options { display: grid; gap: 10px; }
@media (min-width: 560px) { .quiz__options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 12px 16px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r);
	cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.opt:hover { border-color: var(--c-accent); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark { position: relative; flex: none; width: 20px; height: 20px; border: 1.5px solid var(--c-muted); border-radius: 50%; transition: border-color .15s; }
.opt__mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-accent); transform: scale(0); transition: transform .15s; }
.opt__label { font-size: 15px; font-weight: 500; line-height: 1.35; }
.opt:has(input:checked) { border-color: var(--c-accent); background: var(--c-accent-soft); }
.opt input:checked + .opt__mark { border-color: var(--c-accent); }
.opt input:checked + .opt__mark::after { transform: scale(1); }
.opt:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.range { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 8px 0; }
.range__slider {
	--fill: 30%;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.range__slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c-accent) var(--fill), var(--c-line) var(--fill)); }
.range__slider::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c-accent) var(--fill), var(--c-line) var(--fill)); }
.range__slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border: 3px solid var(--c-surface); border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent), 0 2px 6px rgb(0 0 0 / .2); }
.range__slider::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid var(--c-surface); border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.range__num { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 52px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-surface); font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.range__num:focus-within { border-color: var(--c-accent); }
.range__num input { width: 64px; border: 0; background: none; font: inherit; text-align: right; -moz-appearance: textfield; }
.range__num input:focus { outline: none; }
.range__num input::-webkit-inner-spin-button, .range__num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.range__num span:last-child { color: var(--c-muted); font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.range__scale { grid-column: 1; display: flex; justify-content: space-between; margin-top: -6px; color: var(--c-muted); font-size: 13.5px; }

.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.quiz__nav [data-quiz-next], .quiz__nav [data-quiz-submit] { margin-left: auto; }
@media (max-width: 479px) {
	.quiz__nav .btn { flex: 1; }
}
.quiz__step--contact { gap: 16px; }
.quiz__step--contact .quiz__hint { margin-bottom: 0; }
.quiz__range { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 20px; border-radius: var(--r); background: var(--c-accent-soft); }
.quiz__range-title { color: var(--c-accent); font-size: 14px; font-weight: 700; }
.quiz__range-value > span { font-size: clamp(22px, 3vw, 30px); }
.quiz__range-note { color: var(--c-muted); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; }
.chips__label { flex-basis: 100%; color: var(--c-muted); font-size: 14px; font-weight: 600; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, a.chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 6px 16px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-surface);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
.chip span:hover, a.chip:hover { border-color: var(--c-accent); }
.chip input:checked + span, a.chip.is-active { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg); }
.chip input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Формы ---------- */

.form { position: relative; }
.form__body { display: flex; flex-direction: column; gap: 16px; }
.form__grid { display: grid; gap: 14px; }
@media (min-width: 560px) {
	.form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.field--wide { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; }
.field__opt { color: var(--c-muted); font-size: 14px; font-weight: 400; }
.field__input {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--c-line);
	border-radius: var(--r);
	background: var(--c-surface);
	color: var(--c-text);
	font-size: 16px;
	transition: border-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: color-mix(in srgb, var(--c-muted) 70%, transparent); }
.field__input:hover { border-color: color-mix(in srgb, var(--c-muted) 60%, var(--c-line)); }
.field__input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
textarea.field__input { min-height: 100px; resize: vertical; }
.field__select { position: relative; }
.field__select select { padding-right: 42px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.field__select .icon { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; color: var(--c-muted); transform: translateY(-50%); pointer-events: none; }
.field__hint { color: var(--c-muted); font-size: 14px; }
.field__error { color: var(--c-error); font-size: 14px; font-weight: 500; }
.field.is-invalid .field__input { border-color: var(--c-error); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-error) 15%, transparent); }

.check { display: flex; align-items: flex-start; gap: 10px; color: var(--c-muted); font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { display: flex; flex: none; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--c-muted); border-radius: 4px; background: var(--c-surface); transition: background-color .15s, border-color .15s; }
.check__box .icon { width: 14px; height: 14px; color: var(--c-surface); stroke-width: 3; opacity: 0; }
.check input:checked + .check__box { background: var(--c-accent); border-color: var(--c-accent); }
.check input:checked + .check__box .icon { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.check a { color: var(--c-accent); }
.field.is-invalid .check__box { border-color: var(--c-error); }

.file { position: relative; display: block; cursor: pointer; }
.file__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file__btn { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px dashed var(--c-muted); border-radius: var(--r); background: var(--c-bg); color: var(--c-muted); font-size: 14px; transition: border-color .15s, color .15s; }
.file:hover .file__btn { border-color: var(--c-accent); color: var(--c-accent); }
.file__input:focus-visible + .file__btn { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.form__status { color: var(--c-muted); font-size: 14px; }
.form__status:empty { display: none; }
.form__result { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.form__result:focus { outline: none; }
.form__result-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.form__result--error .form__result-title .icon { color: var(--c-error); }
.form__result-text { color: var(--c-muted); }
.form__result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form__result .stamp { transform: rotate(-4deg); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Рядом с формой */
.faside { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.faside__person { display: flex; align-items: center; gap: 14px; }
.faside__photo { width: 64px; flex: none; border-radius: 50%; }
.faside__name { font-weight: 600; }
.faside__role { color: var(--c-muted); font-size: 14px; }
.section--dark .faside__role { color: color-mix(in srgb, var(--c-bg) 65%, transparent); }
.section--accent .faside__role { color: color-mix(in srgb, var(--c-surface) 78%, transparent); }
.faside__promise, .faside__price { display: flex; gap: 10px; font-size: 15px; }
.faside__promise .icon, .faside__price .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-accent); }
.section--dark .faside__promise .icon, .section--dark .faside__price .icon,
.section--accent .faside__promise .icon, .section--accent .faside__price .icon { color: var(--c-accent-soft); }
.faside__write { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; }
.faside--compact { margin-top: 0; padding: 20px; border-radius: var(--r); background: var(--c-bg); }

.final { display: grid; gap: 32px; }
@media (min-width: 1024px) { .final { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.final__intro { display: flex; flex-direction: column; gap: 14px; }
.final__form { padding: 28px; }
@media (max-width: 479px) { .final__form { padding: 20px; } }

/* ---------- Окна ---------- */

.modal {
	width: min(640px, calc(100% - 24px));
	max-width: none;
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	border-radius: calc(var(--r) + 4px);
	background: var(--c-surface);
	color: var(--c-text);
	box-shadow: 0 24px 64px rgb(31 42 48 / .25);
	overflow: auto;
	overscroll-behavior: contain;
	animation: modal-in .2s ease-out;
}
.modal.is-closing { animation: modal-out .16s ease-in forwards; }
.modal::backdrop { background: rgb(31 42 48 / .55); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal__box { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.25; }
.modal__close { flex: none; margin: -6px -6px 0 0; border-color: transparent; }
.modal__text { color: var(--c-muted); }
.modal--quiz { width: min(720px, calc(100% - 24px)); }
.modal--form { width: min(880px, calc(100% - 24px)); }
.modal--sm { width: min(460px, calc(100% - 24px)); }
.modal__split { display: grid; gap: 20px; }
@media (min-width: 768px) {
	.modal__box { padding: 32px; }
	.modal__split { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
}
@media (max-width: 767px) {
	.modal--sheet, .modal--quiz, .modal--form {
		width: 100%;
		max-height: 92dvh;
		margin: auto 0 0;
		border-radius: 14px 14px 0 0;
		animation-name: sheet-in;
	}
	.modal--sheet.is-closing, .modal--quiz.is-closing, .modal--form.is-closing { animation-name: sheet-out; }
	.modal--sheet .modal__box, .modal--quiz .modal__box, .modal--form .modal__box { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

/* ---------- Нижняя панель, cookie, тост ---------- */

.mbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 40;
	display: grid;
	grid-template-columns: 1fr 1fr 1.3fr;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	background: var(--c-surface);
	border-top: 1px solid var(--c-line);
	box-shadow: 0 -6px 20px rgb(31 42 48 / .06);
	transform: translateY(110%);
	transition: transform .25s ease;
}
.mbar.is-visible { transform: none; }
.mbar__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 54px;
	border: 1px solid var(--c-line);
	border-radius: var(--r);
	background: var(--c-surface);
	color: var(--c-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.mbar__btn--primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-surface); }
@media (min-width: 768px) { .mbar { display: none; } }

.cookie {
	position: fixed;
	left: 12px; right: 12px;
	bottom: calc(84px + env(safe-area-inset-bottom));
	z-index: 45;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 520px;
	padding: 14px 16px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r);
	box-shadow: var(--shadow);
	font-size: 14px;
	line-height: 1.45;
}
.cookie a { color: var(--c-accent); }
.cookie .btn { flex: none; }
@media (min-width: 768px) { .cookie { left: 24px; bottom: 24px; } }

.toast {
	position: fixed;
	left: 50%;
	bottom: calc(96px + env(safe-area-inset-bottom));
	z-index: 60;
	max-width: calc(100% - 32px);
	padding: 12px 18px;
	border-radius: var(--r);
	background: var(--c-text);
	color: var(--c-bg);
	font-size: 14px;
	font-weight: 500;
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .toast { bottom: 32px; } }

/* ---------- Подвал ---------- */

.footer { padding-block: 56px 28px; background: var(--c-text); color: var(--c-bg); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .logo { color: var(--c-bg); }
.footer .logo__ph { border-color: color-mix(in srgb, var(--c-bg) 50%, transparent); color: color-mix(in srgb, var(--c-bg) 70%, transparent); }
.footer__top { display: grid; gap: 40px; }
.footer__about { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer__about p { color: color-mix(in srgb, var(--c-bg) 70%, transparent); font-size: 14px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; list-style: none; font-size: 15px; }
.footer__heading { margin-bottom: 14px; color: color-mix(in srgb, var(--c-bg) 62%, transparent); font-size: 14px; font-weight: 600; }
.footer__contacts { display: flex; flex-direction: column; gap: 8px; font-style: normal; font-size: 15px; }
.footer__contacts > span { color: color-mix(in srgb, var(--c-bg) 70%, transparent); }
.footer__contacts .messengers { margin-top: 8px; }
.footer__phone { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid color-mix(in srgb, var(--c-bg) 16%, transparent);
	color: color-mix(in srgb, var(--c-bg) 55%, transparent);
	font-size: 14px;
}
.footer__req { font-size: 13.5px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; }
@media (min-width: 768px) {
	.footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
	.footer__bottom { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

/* ---------- Блоки страниц услуг и бизнеса ---------- */

/* «Кому подходит»: компактная плашка */
.section--compact { padding-block: 40px; }
@media (min-width: 1024px) { .section--compact { padding-block: 56px; } }
.whom { display: grid; gap: 20px; padding: 24px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: calc(var(--r) * 2); }
.whom__title { font-family: var(--font-head); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.whom__list { display: grid; gap: 18px; list-style: none; }
.whom__item { display: flex; gap: 14px; }
.whom__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); }
.whom__icon .icon { width: 22px; height: 22px; }
.whom__name { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.3; }
.whom__text { margin-top: 4px; color: var(--c-muted); font-size: 14.5px; line-height: 1.5; }
@media (min-width: 768px) {
	.whom__list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
}
@media (min-width: 1024px) {
	.whom { grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 40px; padding: 32px 36px; }
	.whom__list > li + li { padding-left: 24px; border-left: 1px solid var(--c-line); }
}

.included { display: grid; gap: 28px; list-style: none; }
.included__col { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--c-accent); }
.included__no { color: var(--c-accent); font-size: 14px; font-weight: 700; }
.included__title { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.included .checklist { font-size: 15px; }
@media (min-width: 768px) { .included { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1100px) { .included { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.feature { display: flex; flex-direction: column; height: 100%; }
.feature > .photo { border-radius: var(--r); }
.feature__body { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
.feature__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.feature__text { display: flex; gap: 8px; color: var(--c-muted); font-size: 15px; }
.feature__text .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-accent); }

.stats { display: grid; gap: 24px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 32px; } }
.stat { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--c-line); }
.stat__title { font-weight: 600; }
.stat__value > span { font-size: clamp(32px, 4vw, 52px); }
.stat__text { color: var(--c-muted); font-size: 15px; }
.stats--inline { margin-top: 12px; }
.stats--inline .stat { flex-direction: column-reverse; justify-content: flex-end; }

.works { margin-top: 48px; }
.works__title { margin-bottom: 18px; font-family: var(--font-head); font-size: 19px; font-weight: 600; }

.ocard { height: 100%; }
.ocard__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.ocard__link > .photo { border-radius: var(--r); }
.ocard__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding-top: 16px; }
.ocard__type { color: var(--c-muted); font-size: 14px; }
.ocard__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.ocard__link:hover .ocard__title { color: var(--c-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ocard__text { color: var(--c-muted); font-size: 15px; }
.ocard .specs { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-line); }
.ocard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--c-accent); font-weight: 600; }
.ocard__more .icon { width: 18px; height: 18px; }


/* ---------- О компании, партнёры, как работаем ---------- */

.story { display: grid; gap: 36px; }
@media (min-width: 1024px) { .story { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; } }
.story__text { display: flex; flex-direction: column; gap: 20px; }

.prose { font-size: 17px; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.25; }
.prose h3 { margin-top: 1.5em; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--c-accent); }
.prose--page { max-width: 780px; margin-inline: 0; }

.principles { display: grid; gap: 0 48px; list-style: none; }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--c-line); }
.principle__icon { display: none; }
.principle__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.principle__text { margin-top: 6px; color: var(--c-muted); font-size: 15px; }

.steps { display: grid; gap: 16px; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps__item { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--c-bg); border-top: 2px solid var(--c-accent); border-radius: 0 0 var(--r) var(--r); font-weight: 500; }
.steps__no { color: var(--c-accent); font-size: 14px; font-weight: 600; }

.curator { display: grid; gap: 32px; }
@media (min-width: 1024px) { .curator { grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); gap: 64px; align-items: center; } }
.curator__text { display: flex; flex-direction: column; gap: 18px; }
.curator__card { padding: 0; max-width: 340px; }

/* ---------- Контакты ---------- */

.contacts { display: grid; gap: 20px; }
@media (min-width: 1024px) { .contacts { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; } }
.contacts__info { display: flex; flex-direction: column; gap: 28px; padding: 28px; }
.contacts__list { display: flex; flex-direction: column; gap: 20px; }
.contacts__list > div { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 1px dashed var(--c-line); }
.contacts__list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.contacts__list dt { color: var(--c-muted); font-size: 14px; }
.contacts__list dd { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.contacts__phone { font-family: var(--font-head); font-size: 28px; font-weight: 600; text-decoration: none; }
.contacts__phone:hover { color: var(--c-accent); }
.contacts__muted { color: var(--c-muted); font-size: 14px; }
.contacts__map { position: relative; min-height: 380px; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-line); }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Спасибо, 404 ---------- */

.thanks__inner, .nf__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 760px; }
.thanks__inner .phead__title, .nf__inner .phead__title { margin-top: 8px; }
.thanks__inner .phead__lead, .nf__inner .phead__lead { margin-top: 0; }
.timeline { display: flex; flex-direction: column; width: 100%; margin-top: 12px; list-style: none; border-left: 2px solid var(--c-accent); }
.timeline__item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 24px 28px; }
.timeline__item:last-child { padding-bottom: 4px; }
.timeline__item::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border: 2px solid var(--c-accent); border-radius: 50%; background: var(--c-bg); }
.timeline__time { color: var(--c-accent); font-size: 14px; font-weight: 600; }
.timeline__text { font-size: 17px; }
.thanks__links { display: flex; flex-direction: column; gap: 14px; width: 100%; margin-top: 16px; }
.thanks__subtitle { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.linklist { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.linklist__item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); font-weight: 500; text-decoration: none; transition: border-color .15s; }
.linklist__item:hover { border-color: var(--c-accent); }
.linklist__item span { flex: 1; }
.linklist__item .icon:first-child { color: var(--c-accent); }
.linklist__item .icon:last-child { color: var(--c-muted); width: 18px; height: 18px; }
.thanks__write { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; color: var(--c-muted); font-size: 15px; }

.nf { padding-block: 72px 96px; }
.nf__code > .dim > span { color: var(--c-accent); font-size: clamp(72px, 12vw, 140px); line-height: 1; }

/* ---------- Каталог ---------- */

.filters { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.filters__label { min-width: 120px; color: var(--c-muted); font-size: 14px; font-weight: 600; }

.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; list-style: none; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-surface); font-size: 15px; font-weight: 600; text-decoration: none; }
.pager a.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pager .current { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-surface); }
.pager .dots { border: 0; background: none; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 24px; text-align: center; }
.empty__icon { width: 40px; height: 40px; color: var(--c-muted); }
.empty__text { max-width: 52ch; color: var(--c-muted); }

.masonry { align-items: start; }

.postlist { display: flex; flex-direction: column; list-style: none; border-bottom: 1px solid var(--c-line); }
.postlist__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--c-line); text-decoration: none; }
.postlist__date { grid-column: 1; color: var(--c-muted); font-size: 14px; }
.postlist__title { grid-column: 1; font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.postlist__link .icon { grid-column: 2; grid-row: 1 / 3; color: var(--c-accent); }
.postlist__link:hover .postlist__title { color: var(--c-accent); }

/* ---------- Страница объекта ---------- */

.phead--object { padding-bottom: 48px; }
.phead--object .phead__title { font-size: clamp(28px, 3.8vw, 46px); max-width: none; }
.ohead { display: grid; gap: 32px; margin-top: 4px; }
@media (min-width: 1024px) { .ohead { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; } }
.ohead__text { display: flex; flex-direction: column; }
.ohead__photo .photo { box-shadow: var(--shadow); }
.passport {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 28px;
	overflow: hidden;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r);
}
.passport__row { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.passport__row:nth-child(odd) { border-right: 1px solid var(--c-line); }
.passport__row:last-child, .passport__row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.passport dt { color: var(--c-muted); font-size: 13.5px; }
.passport dd { font-weight: 600; }

.otask { display: grid; gap: 40px; }
@media (min-width: 1024px) { .otask { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.otask__task, .otask__found { display: flex; flex-direction: column; gap: 20px; }
.findings { display: flex; flex-direction: column; gap: 12px; list-style: none; }
.finding { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r); }
.finding__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.finding__title .icon { color: var(--c-accent); width: 18px; height: 18px; }
.finding__text { display: flex; gap: 8px; color: var(--c-muted); font-size: 15px; }
.finding__text .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-ok); }

.ostages { display: grid; gap: 20px; list-style: none; }
@media (min-width: 640px) { .ostages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ostages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ostage { display: flex; flex-direction: column; }
.ostage > .photo { border-radius: var(--r); }
.ostage__body { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.ostage__no { color: var(--c-accent); font-size: 14px; font-weight: 600; }
.ostage__title { font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.3; }
.ostage__text { color: var(--c-muted); font-size: 14.5px; }

.compare { position: relative; overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); touch-action: pan-y; }
.compare .photo { border-radius: 0; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before .photo { height: 100%; }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--c-surface); pointer-events: none; }
.compare__label { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 4px 10px; border-radius: 3px; background: var(--c-text); color: var(--c-bg); font-size: 14px; font-weight: 600; }
.compare__label--after { left: auto; right: 14px; background: var(--c-surface); color: var(--c-text); }
.compare__handle { position: absolute; top: 50%; left: var(--pos); z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-surface); color: var(--c-accent); box-shadow: var(--shadow); transform: translate(-50%, -50%); pointer-events: none; }
.compare__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare__range:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.oresult { display: grid; gap: 32px; }
@media (min-width: 1024px) { .oresult { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; } }
.oresult__main { display: flex; flex-direction: column; gap: 24px; }
.oresult__text { font-family: var(--font-head); font-size: clamp(19px, 1.8vw, 22px); font-weight: 500; line-height: 1.45; letter-spacing: -0.005em; text-wrap: pretty; }
.oresult__text p + p { margin-top: .6em; }
.oresult__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	background: var(--c-line);
	border: 1px solid var(--c-line);
	border-radius: calc(var(--r) * 2);
}
.oresult__stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 16px 20px; background: var(--c-bg); }
.oresult__stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.oresult__stat dt { color: var(--c-muted); font-size: 14px; }
.oresult__stat dd { font-family: var(--font-head); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.oresult__ok { display: flex; align-items: center; gap: 10px; color: var(--c-ok); font-size: 15px; font-weight: 600; }
.oresult__ok .icon { width: 20px; height: 20px; }
.oresult__card { overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: calc(var(--r) * 2); box-shadow: var(--shadow); }
.oresult__card .photo { border-radius: 0; }
.oresult__review { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 28px; }
.oresult__quote { font-family: var(--font-head); font-size: clamp(18px, 1.7vw, 21px); font-weight: 500; line-height: 1.45; }
.oresult__author { display: flex; align-items: center; gap: 12px; font-weight: 600; }

/* ---------- Движение ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Печать ---------- */

@media print {
	.header, .footer, .mbar, .cookie, .toast, dialog, .final__form, .hero__actions { display: none !important; }
	body { padding: 0; background: #fff; }
	.section--dark { background: #fff; color: #000; }
}
