/*
 * AsfaltStroi 40 — блоки варианта C («Доверие и заявки»).
 *
 * Дополняет style.css: здесь только те блоки, которых в теме ещё нет.
 * Токены палитры объявлены глобально в style.css и здесь не повторяются.
 * Все селекторы с префиксом .asf-, чтобы не пересекаться со стилями темы
 * (.btn, .wrap, .section, .card, .step, .facts, .quote, .form-status,
 *  .field-error, .stars, .works и т. д.).
 *
 * Единственная локальная переменная — отступ для липких элементов под шапкой:
 * высота шапки берётся из style.css и в разных точках перелома разная.
 */

/* ============================================================
   0. Служебное
   ============================================================ */

/* Радиус крупных блоков. В текущем style.css токена --radius-lg нет
   (объявлены только --radius: 18px и остальные), поэтому значение задано
   числом через локальную переменную. Если в style.css появится --radius-lg,
   достаточно поменять значение здесь — все ссылки уже используют var(). */
.asf-wizard,
.asf-ba__viewport {
	--asf-radius-lg: 24px;
}

/* Скрытые шаги формы, кнопки навигации и honeypot.
   display задаём явно, чтобы правило не зависело от display самого элемента. */
.asf-wizard [hidden] { display: none !important; }

/* Ловушка для роботов: поле есть в разметке, но человек его не видит. */
.asf-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ============================================================
   1. Полоса доверия со счётчиками
   ============================================================ */
.asf-trust {
	--asf-sticky: 96px;
	background: var(--sand);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	margin-top: 52px;
}
.asf-trust__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.asf-trust__item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 24px 28px 24px 0;
}
.asf-trust__item + .asf-trust__item {
	border-left: 1px solid var(--line);
	padding-left: 28px;
}
.asf-trust__value {
	flex: 0 0 auto;
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -.04em;
	color: var(--accent-ink);
}
.asf-trust__text b {
	display: block;
	font-size: 16px;
	letter-spacing: -.02em;
}
.asf-trust__text span {
	font-size: 14px;
	color: var(--ink-soft);
}

/* -------- счётчики (вариант «цифры на графите») -------- */
.asf-counters {
	background: var(--graphite);
	color: #fff;
}
.asf-counters__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.asf-counter {
	padding: 26px 24px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .09);
}
.asf-counter__value {
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1;
	color: var(--accent);
	transition: opacity .28s ease;
}
.asf-counter__value.is-running { opacity: .72; }
.asf-counter__unit {
	font-size: .5em;
	margin-left: 4px;
}
.asf-counter__text {
	margin: 10px 0 0;
	font-size: 14px;
	color: #d9dcdd;
}

/* ============================================================
   2. Слайдер «до и после»
   ============================================================ */
.asf-ba__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
.asf-ba__tab {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.asf-ba__tab:hover { border-color: var(--ink); }
.asf-ba__tab[aria-selected="true"] {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--ink);
}
.asf-ba__viewport {
	position: relative;
	overflow: hidden;
	border-radius: var(--asf-radius-lg);
	background: var(--graphite);
	box-shadow: var(--shadow);
	aspect-ratio: 16 / 9;
	touch-action: pan-y;
	cursor: ew-resize;
}
.asf-ba__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}
.asf-ba__img--before { clip-path: inset(0 50% 0 0); }
.asf-ba__tag {
	position: absolute;
	top: 14px;
	z-index: 3;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
}
.asf-ba__tag--before {
	left: 14px;
	background: rgba(31, 34, 37, .82);
	color: #fff;
}
.asf-ba__tag--after {
	right: 14px;
	background: var(--accent);
	color: var(--ink);
}
.asf-ba__handle {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 3px;
	margin-left: -1.5px;
	background: #fff;
	z-index: 4;
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(20, 22, 24, .25);
}
.asf-ba__handle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(20, 22, 24, .28);
}
.asf-ba__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 10px;
	margin: -5px 0 0 -8px;
	z-index: 1;
	background: var(--ink);
	clip-path: polygon(0 50%, 28% 0, 28% 100%, 72% 100%, 72% 0, 100% 50%, 72% 100%, 72% 0, 28% 0, 28% 100%);
}
.asf-ba__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	z-index: 5;
	cursor: ew-resize;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}
.asf-ba__range:focus-visible {
	opacity: 1;
	outline: 3px solid var(--accent);
	outline-offset: -6px;
	border-radius: var(--asf-radius-lg);
}
.asf-ba__hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-soft);
}
.asf-ba__caption {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--muted);
}
.asf-ba[data-asf-ba-empty="true"] { display: none; }

/* ============================================================
   3. Bento-сетки: плитки «почему мы» и сетка типов объектов
   ============================================================ */
.asf-bento {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(150px, auto);
	gap: 18px;
}
.asf-tile {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.asf-tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
	border-color: #d5d9d9;
}
.asf-tile h3 {
	font-size: 19px;
	letter-spacing: -.03em;
	margin: 0;
}
.asf-tile p {
	margin: 0;
	font-size: 15px;
	color: var(--ink-soft);
}
.asf-tile__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--sand);
	color: var(--graphite);
	display: grid;
	place-items: center;
}
.asf-tile__big {
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 900;
	letter-spacing: -.045em;
	line-height: 1;
}
.asf-tile__list {
	display: grid;
	gap: 9px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}
.asf-tile__list li {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 15px;
	color: var(--ink-soft);
}
.asf-tile--wide {
	grid-column: span 2;
	grid-row: span 2;
	justify-content: space-between;
	background: var(--graphite);
	border-color: var(--graphite);
	color: #fff;
}
.asf-tile--wide h3 {
	color: #fff;
	font-size: clamp(22px, 2.4vw, 30px);
	letter-spacing: -.04em;
}
.asf-tile--wide p {
	color: #d9dcdd;
	font-size: 16px;
	max-width: 44ch;
}
.asf-tile--wide .asf-tile__icon {
	background: rgba(255, 207, 0, .16);
	color: var(--accent);
	margin-bottom: 14px;
}
.asf-tile--accent {
	background: var(--accent);
	border-color: var(--accent);
	justify-content: center;
}
.asf-tile--accent h3,
.asf-tile--accent p,
.asf-tile--accent .asf-tile__big { color: var(--ink); }
.asf-tile--sand {
	background: var(--sand);
	border-color: var(--line);
}
.asf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}
.asf-chip {
	background: var(--sand);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-soft);
}
.asf-tile--wide .asf-chip {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .18);
	color: #e8eaeb;
}

/* -------- сетка типов объектов (для архива объектов) -------- */
.asf-types {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.asf-type {
	position: relative;
	display: block;
	min-height: 230px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--graphite);
	box-shadow: var(--shadow);
	transition: transform .25s ease;
}
.asf-type:hover { transform: translateY(-4px); }
.asf-type--wide { grid-column: span 2; min-height: 300px; }
.asf-type img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.asf-type:hover img { transform: scale(1.035); }
.asf-type__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 22, 24, .04) 32%, rgba(20, 22, 24, .82) 100%);
}
.asf-type__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 24px;
	color: #fff;
}
.asf-type__body h3 {
	margin: 0 0 10px;
	font-size: 22px;
	letter-spacing: -.03em;
	color: #fff;
}
.asf-type--wide .asf-type__body h3 { font-size: clamp(24px, 2.6vw, 32px); }
.asf-type__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.asf-type__stats span {
	background: var(--accent);
	color: var(--ink);
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 13px;
	font-weight: 800;
}
.asf-type__body p {
	margin: 0;
	font-size: 14px;
	color: #e2e5e6;
	max-width: 52ch;
}

/* ============================================================
   4. Таблица сравнения покрытий
   ============================================================ */
.asf-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.asf-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
}
.asf-table caption {
	padding: 18px 22px;
	text-align: left;
	font-size: 14px;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
}
.asf-table th,
.asf-table td {
	padding: 16px 22px;
	text-align: left;
	font-size: 15px;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}
.asf-table thead th {
	background: var(--sand);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--ink);
}
.asf-table thead th[data-asf-col="accent"] { color: var(--accent-ink); }
.asf-table tbody th {
	width: 24%;
	font-weight: 700;
	color: var(--ink);
}
.asf-table tbody tr:last-child th,
.asf-table tbody tr:last-child td { border-bottom: 0; }
.asf-table tbody tr:hover th,
.asf-table tbody tr:hover td { background: #fcfcfb; }
.asf-table td b { color: var(--accent-ink); }
.asf-hint {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--muted);
}

/* ============================================================
   5. Блок отзывов
   ============================================================ */
.asf-reviews {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.asf-review {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: 26px;
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	transition: transform .25s ease, box-shadow .25s ease;
}
.asf-review:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}
.asf-review blockquote {
	margin: 0;
	font-size: 16px;
	font-style: italic;
	color: var(--ink-soft);
}
.asf-review__meta {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	color: var(--ink);
}
.asf-review__note {
	margin: auto 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-soft);
}
.asf-stars {
	display: flex;
	gap: 3px;
	color: var(--accent);
}
.asf-reviews__note {
	margin: 18px 0 0;
	font-size: 13px;
	color: var(--muted);
}

/* ============================================================
   6. Аккордеон вопросов
   ============================================================ */
.asf-faq {
	display: grid;
	gap: 12px;
	max-width: 900px;
}
.asf-faq__item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.asf-faq__item.is-open {
	border-color: #d5d9d9;
	box-shadow: var(--shadow);
}
.asf-faq__q { margin: 0; }
.asf-faq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 24px;
	background: transparent;
	border: 0;
	text-align: left;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ink);
	cursor: pointer;
	transition: color .25s ease;
}
.asf-faq__btn:hover { color: var(--accent-ink); }
.asf-faq__icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sand);
	display: grid;
	place-items: center;
	transition: transform .25s ease, background-color .25s ease;
}
.asf-faq__btn[aria-expanded="true"] .asf-faq__icon {
	transform: rotate(45deg);
	background: var(--accent);
}
.asf-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .28s ease;
}
.asf-faq__panel[data-open="true"] { grid-template-rows: 1fr; }
.asf-faq__panel > div { overflow: hidden; }
.asf-faq__panel p {
	margin: 0;
	padding: 0 24px 22px;
	font-size: 15px;
	color: var(--ink-soft);
	max-width: 74ch;
}

/* ============================================================
   7. Форма заявки в три шага
   ============================================================ */
.asf-wizard {
	--asf-sticky: 96px;
	background: var(--white);
	/* Карточка светлая, а тёмная секция вокруг задаёт белый цвет текста.
	   Без явного цвета заголовки вариантов становятся белыми на белом. */
	color: var(--ink);
	border: 1px solid var(--line);
	border-radius: var(--asf-radius-lg);
	padding: 28px;
	box-shadow: var(--shadow);
}
/* То же для любых светлых карточек, попавших в тёмную секцию. */
.asf-dark-section .asf-wizard,
.asf-dark-section .asf-request,
.asf-dark-section .asf-calc { color: var(--ink); }
.asf-wizard__progress {
	position: sticky;
	top: var(--asf-sticky, 96px);
	z-index: 5;
	background: var(--white);
	padding-bottom: 16px;
}
.asf-wizard__bar {
	height: 4px;
	border-radius: 999px;
	background: var(--line);
	overflow: hidden;
}
.asf-wizard__fill {
	height: 100%;
	width: 33.33%;
	background: var(--accent);
	border-radius: 999px;
	transition: width .28s ease;
}
.asf-wizard__steps {
	display: flex;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.asf-wizard__steps li {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--muted);
}
.asf-wizard__dot {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--line);
	background: var(--white);
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 900;
	color: var(--muted);
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.asf-wizard__steps li[data-state="current"] { color: var(--ink); }
.asf-wizard__steps li[data-state="current"] .asf-wizard__dot {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--ink);
}
.asf-wizard__steps li[data-state="done"] { color: var(--ink-soft); }
.asf-wizard__steps li[data-state="done"] .asf-wizard__dot {
	border-color: var(--graphite);
	background: var(--graphite);
	color: #fff;
}
.asf-wizard__step {
	border: 0;
	margin: 22px 0 0;
	padding: 0;
}
.asf-wizard__step legend {
	padding: 0;
	margin-bottom: 4px;
	font-size: 19px;
	font-weight: 900;
	letter-spacing: -.03em;
}
.asf-wizard__hint {
	margin: 6px 0 16px;
	font-size: 14px;
	color: var(--ink-soft);
}

/* Выбор услуги радиокарточками */
.asf-choices { display: grid; gap: 10px; }
.asf-choice {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 16px;
	border: 2px solid var(--line);
	border-radius: 14px;
	cursor: pointer;
	transition: border-color .25s ease, background-color .25s ease;
}
.asf-choice:hover { border-color: #c9cece; }
.asf-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.asf-choice__box {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 2px solid var(--line);
	border-radius: 50%;
	display: grid;
	place-items: center;
}
.asf-choice__box::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: transparent;
}
.asf-choice__text b {
	display: block;
	font-size: 16px;
	letter-spacing: -.02em;
	color: var(--ink);
}
.asf-choice__text span {
	font-size: 13px;
	color: var(--ink-soft);
}
.asf-choice.is-checked {
	border-color: var(--accent);
	background: #fffdf3;
}
.asf-choice.is-checked .asf-choice__box { border-color: var(--accent); }
.asf-choice.is-checked .asf-choice__box::after { background: var(--accent); }
.asf-choice:focus-within {
	outline: 2px solid var(--accent-ink);
	outline-offset: 3px;
}

/* Поля */
.asf-field {
	display: grid;
	gap: 7px;
	margin-top: 16px;
}
.asf-field > label {
	font-size: 14px;
	font-weight: 800;
}
.asf-field__req { color: var(--accent-ink); }
.asf-field input[type="text"],
.asf-field input[type="tel"],
.asf-field input[type="number"],
.asf-field textarea,
.asf-field select {
	width: 100%;
	min-height: 50px;
	padding: 13px 15px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	color: var(--ink);
	font-size: 16px;
	transition: border-color .2s ease;
}
.asf-field textarea {
	min-height: 96px;
	resize: vertical;
}
.asf-field input:focus,
.asf-field textarea:focus,
.asf-field select:focus {
	outline: none;
	border-color: var(--accent);
}
.asf-field__hint {
	font-size: 13px;
	color: var(--ink-soft);
}
.asf-field__error {
	display: none;
	font-size: 13px;
	font-weight: 700;
	color: #a1140f;
}
.asf-field.is-invalid input,
.asf-field.is-invalid textarea,
.asf-field.is-invalid select {
	border-color: #c8281f;
	background: #fff8f7;
}
.asf-field.is-invalid .asf-field__error { display: block; }

/* Согласие на обработку данных */
.asf-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 20px;
	font-size: 14px;
	color: var(--ink-soft);
}
.asf-consent input[type="checkbox"] {
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	margin: 0;
	padding: 0;
	accent-color: var(--accent-ink);
}
.asf-consent a {
	color: var(--accent-ink);
	font-weight: 700;
	text-decoration: underline;
}
.asf-consent.is-invalid {
	outline: 2px solid #c8281f;
	outline-offset: 4px;
	border-radius: 8px;
}
.asf-consent__error {
	display: none;
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 700;
	color: #a1140f;
}
.asf-consent__error.is-visible { display: block; }

/* Кнопки и статус */
.asf-wizard__nav {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}
.asf-wizard__nav .btn { flex: 1; }
.asf-form-status {
	display: none;
	margin: 20px 0 0;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--sand);
	font-size: 15px;
	font-weight: 700;
}
.asf-form-status.is-visible { display: block; }
.asf-form-status.is-ok {
	background: #fffbe8;
	border-color: var(--accent);
	color: var(--ink);
}
.asf-form-status.is-error {
	background: #fff5f3;
	border-color: #e8b3ab;
	color: #a1140f;
}
.asf-wizard__note {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--ink-soft);
}

/* ============================================================
   8. Кнопки мессенджеров
   ============================================================ */
.asf-messengers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}
.asf-messenger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 9px 15px;
	border: 2px solid var(--line);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 800;
	color: var(--ink);
	transition: border-color .25s ease, background-color .25s ease;
}
.asf-messenger:hover {
	border-color: var(--accent);
	background: #fffdf3;
}
.asf-messenger svg { flex: 0 0 auto; }

/* ============================================================
   9. Заглушка «образец блока» (отзывы и подобное)
   ============================================================ */
.asf-placeholder-note {
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-soft);
}

/* ============================================================
   9.1 Сайдбар контентных страниц
   Основной текст в левой колонке (не шире читаемой строки) и колонка
   карточек справа. Подключается в page.php и single.php. На главной,
   на странице 404 и на юридических страницах сайдбара нет.
   ============================================================ */
.asf-layout {
	display: grid;
	grid-template-columns: minmax(0, 780px) minmax(280px, 320px);
	column-gap: 40px;
	/* Колонки разведены по краям, чтобы строка текста не растягивалась */
	justify-content: space-between;
	align-items: start;
}
/* Страница без сайдбара: обычный блок, ширина текста как была (780px из style.css) */
.asf-layout--single { display: block; }

.asf-side {
	display: grid;
	gap: 14px;
	/* Без align-self grid растягивает колонку по высоте и липкость не работает */
	align-self: start;
}

/*
 * Липкая колонка. Включается только там, где карточки заведомо помещаются
 * в экран целиком: на низких экранах прилипший сайдбар обрезался бы снизу,
 * и до последней карточки нельзя было бы добраться прокруткой страницы.
 */
@media (min-width: 1025px) and (min-height: 860px) {
	.asf-side {
		position: sticky;
		top: 96px;
	}
}

.asf-side__card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
}
.asf-side__card--accent {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-text);
}
.asf-side__title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 900;
	letter-spacing: -.02em;
}
.asf-side__text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
}
.asf-side__phone {
	margin: 12px 0 0;
	font-size: 19px;
	font-weight: 900;
	letter-spacing: -.02em;
}
.asf-side__phone a { display: block; }
.asf-side__phone a:hover { text-decoration: underline; }

/*
 * Кнопка акцентом на акцентной заливке была бы не видна.
 * Инвертируем её через готовые токены контраста темы, поэтому
 * кнопка остаётся читаемой при любом выбранном цвете акцента.
 */
.asf-side__card--accent .btn {
	background: var(--accent-text);
	color: var(--accent);
}
.asf-side__card--accent .btn:hover {
	background: var(--accent-dark);
	color: var(--accent-text);
}

.asf-side__list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.asf-side__list li {
	position: relative;
	padding-left: 23px;
	font-size: 14px;
	line-height: 1.42;
}
/* Маркер-галочка как в полосе доверия на первом экране (.proofline) */
.asf-side__list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 900;
	color: var(--accent-ink);
}

.asf-side__links {
	margin: 0;
	padding: 0;
	list-style: none;
}
.asf-side__links a {
	display: block;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	font-weight: 700;
	transition: color .2s ease;
}
.asf-side__links li:last-child a {
	padding-bottom: 0;
	border-bottom: 0;
}
.asf-side__links a::after {
	content: "→";
	float: right;
	color: var(--accent-ink);
	opacity: 0;
	transition: opacity .2s ease;
}
.asf-side__links a:hover { color: var(--accent-ink); }
.asf-side__links a:hover::after { opacity: 1; }

.asf-side__hours {
	display: grid;
	gap: 2px;
	margin: 0;
	font-size: 15px;
}
.asf-side__hours span {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
}
.asf-side__hours b { font-weight: 800; }

/* В узкой колонке кнопки мессенджеров встают в столбик на всю ширину */
.asf-side .asf-messengers {
	display: grid;
	margin-top: 14px;
}
.asf-side .asf-messenger { justify-content: flex-start; }

/* ============================================================
   10. Адаптив
   ============================================================ */
@media (max-width: 1024px) {
	/* Сайдбар скрывается: текст занимает всю ширину экрана */
	.asf-layout { display: block; }
	.asf-side { display: none; }

	.asf-trust { --asf-sticky: 88px; }

	.asf-bento { grid-template-columns: repeat(2, 1fr); }
	.asf-tile--wide { grid-column: span 2; grid-row: auto; }

	.asf-counters__grid { grid-template-columns: repeat(2, 1fr); }

	.asf-types { grid-template-columns: 1fr 1fr; }
	.asf-type--wide { grid-column: span 2; min-height: 320px; }

	.asf-reviews { grid-template-columns: repeat(2, 1fr); }
	.asf-reviews > :last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
	.asf-trust { --asf-sticky: 78px; margin-top: 40px; }
	.asf-trust__grid { grid-template-columns: 1fr; }
	.asf-trust__item { padding: 18px 0; }
	.asf-trust__item + .asf-trust__item {
		border-left: 0;
		border-top: 1px solid var(--line);
		padding-left: 0;
	}

	.asf-ba__viewport { aspect-ratio: 4 / 3; }
	.asf-ba__handle::before { width: 40px; height: 40px; margin: -20px 0 0 -20px; }

	.asf-wizard { padding: 22px 20px; }
	.asf-wizard__steps li { font-size: 11px; }
	.asf-reviews { grid-template-columns: 1fr; }
	.asf-reviews > :last-child { grid-column: span 1; }
	.asf-type--wide { min-height: 260px; }
}

@media (max-width: 520px) {
	.asf-trust { --asf-sticky: 74px; }

	.asf-counters__grid { grid-template-columns: 1fr; }
	.asf-bento { grid-template-columns: 1fr; }
	.asf-tile--wide { grid-column: span 1; }

	.asf-types { grid-template-columns: 1fr; }
	.asf-type,
	.asf-type--wide { grid-column: span 1; min-height: 240px; }

	.asf-ba__tab { width: 100%; }

	.asf-wizard { padding: 20px 16px; }
	.asf-wizard__steps li { justify-content: center; }
	.asf-wizard__steps li span:last-child { display: none; }
	.asf-wizard__nav { flex-direction: column-reverse; }
	.asf-faq__btn { padding: 17px 18px; font-size: 16px; }
	.asf-faq__panel p { padding: 0 18px 18px; }
}

/* ============================================================
   11. Уважение к настройке «уменьшить движение»
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.asf-tile,
	.asf-type,
	.asf-type img,
	.asf-review,
	.asf-faq__btn,
	.asf-faq__icon,
	.asf-faq__panel,
	.asf-choice,
	.asf-wizard__fill,
	.asf-wizard__dot,
	.asf-counter__value,
	.asf-messenger,
	.asf-ba__tab {
		transition: none !important;
	}
	.asf-tile:hover,
	.asf-type:hover,
	.asf-review:hover { transform: none; }
	.asf-type:hover img { transform: none; }
}
