/*
Theme Name: A/C Repair Center
Theme URI: https://acrccenter.ru/
Description: Тема сайта acrccenter.ru — центр ремонта автокондиционеров и автосервис. Структура и цены — из репозитория (structure.json).
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: acrc
*/

:root {
	--dark: #0a0c0f;
	--dark-2: #12161c;
	--dark-3: #1c232c;
	--accent: #00bbff;
	--accent-hover: #4dd0ff;
	--accent-ink: #0072ad;
	--on-accent: #04131c;
	--text: #14181d;
	--muted: #5b6673;
	--line: #e1e6ec;
	--bg: #ffffff;
	--bg-alt: #f2f5f8;
	--on-dark: #f1f4f7;
	--on-dark-muted: #a3adb9;
	--radius: 12px;
	--shadow: 0 6px 24px rgba(10, 20, 30, .08);
	--container: 1200px;
	--gutter: 16px;
	--header-row: 68px;  /* строка с логотипом и контактами */
	--nav-row: 48px;     /* строка меню на компьютере */
	--header-h: 68px;    /* вся шапка: от неё отсчитываются мобильное меню, мега-меню, якоря */
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-width: 768px) {
	:root { --gutter: 24px; --header-row: 76px; --header-h: 76px; }
}

@media (min-width: 1024px) {
	:root { --header-row: 68px; --header-h: calc(var(--header-row) + var(--nav-row) + 2px); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.6 var(--font);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
a:hover { color: var(--text); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(28px, 4.2vw, 46px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.narrow-left { max-width: 860px; }
.accent { color: var(--accent); }
.accent-ink { color: var(--accent-ink); font-weight: 600; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 2px solid transparent;
	font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase;
	text-decoration: none; line-height: 1.2; text-align: center; transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--on-dark); background: rgba(10, 12, 15, .35); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-dark { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline-dark:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.contact-buttons--compact .btn, .section .contact-buttons .btn-outline { border-color: var(--line); color: var(--text); background: #fff; }
.section .contact-buttons .btn-outline:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.section--dark .contact-buttons .btn-outline, .cta .contact-buttons .btn-outline { border-color: rgba(255, 255, 255, .55); color: var(--on-dark); background: transparent; }
@media (max-width: 767px) {
	.contact-buttons--compact { gap: 8px; }
	.contact-buttons--compact .btn { flex: 1 1 calc(50% - 8px); min-height: 40px; padding: 8px 10px; font-size: 11px; }
}
.contact-buttons--footer .btn-outline { min-height: 40px; font-size: 12px; padding: 8px 12px; }

/* ---------- Шапка ---------- */
/* Телефоны и планшеты (< 1024 px): одна строка — логотип, рейтинг Яндекса, телефон/звонок, бургер; меню — панелью.
   Компьютер (≥ 1024 px): две строки — логотип, рейтинг, телефон, кнопка; ниже меню с полными названиями разделов.
   Без backdrop-filter/transform/filter у шапки и меню: они делают элемент контейнером для position: fixed,
   и мобильное меню (и мега-меню) получают высоту шапки вместо высоты экрана. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 12, 15, .98); color: var(--on-dark); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header .container { max-width: 1400px; }
.site-header__inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-row); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; flex: none; }
.logo img { width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.logo__text { display: none; font-size: 12px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .03em; }
.logo:hover { color: var(--accent); }
.site-header__contacts { display: none; flex-direction: column; align-items: flex-end; margin-left: auto; line-height: 1.25; }
.site-header__phone { color: var(--on-dark); font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }
.site-header__phone:hover { color: var(--accent); }
.site-header__hours { color: var(--on-dark-muted); font-size: 12px; }
.site-header__cta { display: none; white-space: nowrap; }
.site-header__call { margin-left: auto; display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.burger { display: inline-flex; flex: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; background: var(--dark-3); }
.burger span { display: block; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Админ-панель WordPress (видна только вошедшим): шапка прилипает под ней, мобильное меню начинается под шапкой. */
@media (min-width: 601px) { .admin-bar { --adminbar: 46px; } }
@media (min-width: 783px) { .admin-bar { --adminbar: 32px; } }
.admin-bar .site-header { top: var(--adminbar, 0px); }
.admin-bar .main-nav { top: calc(var(--header-h) + var(--adminbar, 0px)); }

/* Рейтинг организации в Яндексе (виджет 150×50) — виден в шапке на любой ширине, сразу после логотипа.
   На экранах уже 360 px уменьшен до 126×42, чтобы рядом поместились кнопки звонка и меню. */
.ya-badge { flex: none; width: 150px; height: 50px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.ya-badge iframe { display: block; width: 150px; height: 50px; border: 0; }
@media (max-width: 359px) {
	.site-header__inner { gap: 6px; }
	.logo img { width: 40px; height: 40px; }
	.ya-badge { width: 126px; height: 42px; }
	.ya-badge iframe { transform: scale(.84); transform-origin: 0 0; }
	.site-header__call, .burger { width: 40px; height: 40px; }
	.burger { padding: 9px; }
}

/* Мобильное меню */
.main-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; background: var(--dark); overflow-y: auto; padding: 8px 0 32px; }
.main-nav.is-open { display: block; }
.main-nav__list { list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.main-nav__link { display: block; padding: 14px 48px 14px 0; color: var(--on-dark); font-weight: 700; text-decoration: none; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.main-nav__link:hover { color: var(--accent); }
.main-nav__toggle { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--on-dark); }
.main-nav__toggle::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.main-nav__toggle[aria-expanded="true"]::before { transform: rotate(-135deg); }
.dropdown { display: none; padding: 0 0 12px; }
.has-dropdown.is-open > .dropdown { display: block; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown a { display: block; padding: 7px 0; color: var(--on-dark-muted); text-decoration: none; font-size: 14px; line-height: 1.35; }
.dropdown a:hover { color: var(--accent); }
.dropdown__title { margin: 10px 0 2px; color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dropdown__sub { padding-left: 14px !important; }
.dropdown__sub a { font-size: 13px; padding: 5px 0; }
.main-nav__mobile-contacts { margin-top: 20px; color: var(--on-dark-muted); font-size: 14px; }
.main-nav__mobile-contacts .btn { margin-bottom: 12px; }

@media (min-width: 640px) {
	.site-header__inner { gap: 16px; }
	.site-header__contacts { display: flex; }
	.site-header__call { display: none; }
}

@media (min-width: 700px) {
	.logo__text { display: block; }
}

@media (min-width: 1024px) {
	.burger { display: none; }
	.site-header__cta { display: inline-flex; }
	.main-nav { display: block; position: static; inset: auto; background: none; overflow: visible; padding: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
	/* Пункты — на всю высоту строки меню: выпадающая панель начинается ровно под пунктом, без зазора. */
	.main-nav__list { position: relative; display: flex; align-items: stretch; justify-content: space-between; min-height: var(--nav-row); margin: 0 -10px; }
	.main-nav__item { display: flex; align-items: center; border: 0; }
	.main-nav__item.has-mega { position: static; } /* панель «Ремонт ходовой» — на ширину строки меню */
	.main-nav__link { padding: 13px 10px; font-size: 13px; white-space: nowrap; }
	.has-dropdown > .main-nav__link { padding-right: 24px; }
	.main-nav__toggle { position: static; flex: none; width: 18px; height: 18px; margin: 0 4px 0 -22px; padding: 0; pointer-events: none; }
	.main-nav__toggle::before { width: 7px; height: 7px; margin-top: 3px; }
	.main-nav__mobile-contacts { display: none; }
	.dropdown {
		position: absolute; top: 100%; left: -12px; z-index: 60;
		display: flex; gap: 28px; padding: 18px 22px; min-width: 300px;
		background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		/* Закрывается с задержкой — курсор успевает дойти до панели, даже если на миг вышел за пункт. */
		transition: opacity .15s ease .12s, transform .15s ease .12s, visibility 0s linear .27s;
	}
	.dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; } /* «мостик» над панелью */
	.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown, .has-dropdown.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.dropdown__col { min-width: 220px; max-width: 280px; }
	.dropdown--mega { left: 0; right: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 28px; }
	.dropdown--mega .dropdown__col { min-width: 0; max-width: none; }
	/* Заголовки колонок — по две строки высотой (часть переносится), колонка без заголовка — с таким же отступом:
	   пункты всех колонок начинаются на одной линии. */
	.dropdown--mega .dropdown__title { min-height: 32px; line-height: 16px; }
	.dropdown--mega .dropdown__col--untitled { padding-top: 44px; } /* 10 + 32 + 2 — как блок заголовка */
	.dropdown a { padding: 5px 0; }
}

/* Ноутбуки 1024–1279 px: полные названия разделов влезают в строку меню только чуть компактнее. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.main-nav__list { margin: 0 -7px; }
	.main-nav__link { padding: 13px 7px; font-size: 12px; letter-spacing: .02em; }
	.has-dropdown > .main-nav__link { padding-right: 21px; }
	.main-nav__toggle { margin-right: 3px; }
}

/* ---------- Первый экран главной ---------- */
.hero {
	position: relative; color: var(--on-dark); background: var(--dark) var(--hero-bg) center / cover no-repeat;
	padding: clamp(48px, 9vw, 120px) 0 clamp(48px, 8vw, 110px);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 6, 7, .92) 0%, rgba(6, 6, 7, .75) 55%, rgba(6, 6, 7, .45) 100%); }
.hero__inner { position: relative; }
.hero__kicker { color: var(--on-dark-muted); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.hero__title { font-size: clamp(32px, 6vw, 64px); font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 24px; color: inherit; }
.hero__list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; max-width: 640px; }
.hero__list li { position: relative; padding-left: 28px; font-weight: 700; text-transform: uppercase; font-size: clamp(13px, 1.6vw, 16px); letter-spacing: .02em; }
.hero__list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(0, 187, 255, .2); }
.contact-buttons--hero { margin-top: 28px; }

/* ---------- Шапка внутренних страниц ---------- */
.page-hero { background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--on-dark); padding: 28px 0 40px; }
.page-hero h1 { margin: 10px 0 12px; max-width: 900px; }
.page-hero__lead { color: var(--on-dark-muted); max-width: 760px; }
.page-hero__price { font-size: 18px; margin: 0; }
.page-hero__price strong { color: var(--accent); font-size: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; font-size: 13px; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Секции ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section__title { margin-bottom: 24px; }
.group-title { font-size: clamp(20px, 2.4vw, 26px); margin: 36px 0 16px; }
.group-title:first-child { margin-top: 0; }
.group-title a { color: inherit; text-decoration: none; }
.group-title a:hover { color: var(--accent-ink); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-more .icon { width: 18px; height: 18px; }

.content { font-size: 16px; }
.content > :last-child { margin-bottom: 0; }
.content h2 { margin-top: 1.4em; }
.content h3 { margin-top: 1.2em; }
.content--legal { font-size: 15px; }

/* ---------- Услуги на главной ---------- */
.home-service { display: grid; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.home-service:first-of-type { padding-top: 0; }
.home-service h3 { font-size: clamp(20px, 2.4vw, 26px); }
.home-service__works-title { font-weight: 700; margin-bottom: 10px; }
.home-all-services { margin-top: 36px; }
.home-all-services__other { margin-top: 16px; }
@media (min-width: 960px) {
	.home-service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
}

/* ---------- Карточки услуг ---------- */
.service-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.service-card a {
	display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px 18px 16px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.section--alt .service-card a { border-color: transparent; }
.service-card a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.service-card__title { font-weight: 700; line-height: 1.3; }
.service-card__price { color: var(--accent-ink); font-weight: 700; }
.service-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.service-cards--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.service-cards--compact .service-card a { padding: 14px 16px; }
.service-cards--compact .service-card__more { display: none; }

/* ---------- Прайс ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.price-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table__price { white-space: nowrap; text-align: right; font-weight: 700; color: var(--accent-ink); width: 1%; }
.price-table--full { margin-bottom: 8px; }
.price-table tr.is-sub td:first-child { padding-left: 34px; }
.price-table tr.is-detail td { font-size: 14px; color: var(--muted); background: var(--bg-alt); padding-top: 8px; padding-bottom: 8px; }
.price-table tr.is-detail td:first-child { padding-left: 34px; }
.price-table tr.is-detail .price-table__price { color: var(--muted); font-weight: 600; }
.price-block { margin-top: 32px; }
.price-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Раскладка с боковой карточкой ---------- */
.layout-sidebar { display: grid; gap: 28px; }
.side-card { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.side-card__price { font-size: 26px; font-weight: 800; color: var(--accent-ink); margin: 0; }
.side-card .contacts-list { margin-top: 6px; font-size: 14px; }
@media (min-width: 960px) {
	.layout-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
	.layout-sidebar__aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Контакты ---------- */
.contacts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contacts-list li { display: flex; gap: 10px; align-items: flex-start; }
.contacts-list .icon { margin-top: 3px; color: var(--accent-ink); }
.contacts-list small { color: var(--muted); }
.contacts-page, .home-contacts__grid { display: grid; gap: 28px; }
.contacts-page__brand { font-size: 18px; }
.map { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; background: #e4e9ef; box-shadow: 0 0 0 1px var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 960px) {
	.contacts-page, .home-contacts__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
	.map { min-height: 420px; }
}

/* ---------- Галереи ---------- */
.gallery { position: relative; }
.gallery__list { list-style: none; margin: 0; padding: 0; }
.gallery__item a { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.gallery__item a:hover img { transform: scale(1.04); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.gallery--carousel .gallery__list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.gallery--carousel .gallery__item { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
.gallery--grid .gallery__list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.home-denso .gallery__item img, .section--dark .gallery--grid .gallery__item img { aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
.gallery__nav {
	position: absolute; top: calc(50% - 26px); z-index: 2; width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: rgba(10, 12, 15, .75); color: #fff; font-size: 24px; line-height: 1; display: none;
}
.gallery__nav--prev { left: -8px; }
.gallery__nav--next { right: -8px; }
@media (hover: hover) and (min-width: 768px) { .gallery--carousel .gallery__nav { display: block; } }

/* ---------- Преимущества ---------- */
.advantages__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.advantages__list li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--bg-alt); font-weight: 600; line-height: 1.4; }
.advantages__list .icon { color: var(--on-accent); background: var(--accent); border-radius: 50%; padding: 4px; width: 28px; height: 28px; }

/* ---------- Блок с формой ---------- */
.cta { background: var(--dark); color: var(--on-dark); }
.cta__inner { display: grid; gap: 28px; }
.cta__text p { color: var(--on-dark-muted); }
.cta__phone a { color: var(--accent); font-weight: 700; font-size: 20px; text-decoration: none; white-space: nowrap; }
.cta__hours { display: flex; align-items: center; gap: 8px; }
.cta__form { background: #fff; color: var(--text); border-radius: var(--radius); padding: 22px; }
@media (min-width: 960px) {
	.cta__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
	.cta__form { padding: 28px; }
}

/* ---------- Отзывы, чипы ---------- */
.reviews__widget { position: relative; height: 760px; max-width: 760px; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.reviews__widget iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reviews__links { display: flex; flex-wrap: wrap; gap: 10px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); font-weight: 600; font-size: 14px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding: 48px 0 0; font-size: 14px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer__brand { grid-column: 1 / -1; display: grid; gap: 16px; }
.site-footer__title { color: var(--on-dark); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; margin-bottom: 10px; }
.site-footer__title a { color: var(--on-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .contacts-list .icon { color: var(--accent); }
.site-footer .contacts-list a { color: var(--on-dark); }
.site-footer .contacts-list small { color: var(--on-dark-muted); }
.logo--footer img { width: 56px; height: 56px; }
.logo--footer .logo__text { font-size: 14px; text-transform: none; }
.logo--footer small { font-weight: 500; color: var(--on-dark-muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.site-footer__bottom p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__bottom p:first-child { display: block; }
.site-footer__requisites { font-size: 12px; opacity: .8; }
@media (min-width: 1100px) {
	.site-footer__grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
	.site-footer__brand { grid-column: auto; }
}

/* ---------- Модальные окна и просмотр фото ---------- */
.modal { width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: calc(100dvh - 32px); border: 0; border-radius: var(--radius); padding: 28px 24px 24px; color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.modal::backdrop, .lightbox::backdrop { background: rgba(6, 8, 10, .75); }
.modal__title { font-size: 22px; font-weight: 800; margin: 0 32px 6px 0; }
.modal__text { color: var(--muted); font-size: 14px; }
.modal__close, .lightbox__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-alt); font-size: 26px; line-height: 1; color: var(--text); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: min(1400px, 92vw); max-height: 88dvh; width: auto; height: auto; border-radius: 8px; }
.lightbox__close { background: rgba(255, 255, 255, .9); z-index: 2; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); font-size: 28px; line-height: 1; z-index: 2; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Формы (Contact Form 7) ---------- */
.wpcf7 form { display: grid; gap: 12px; }
.acrc-form { display: grid; gap: 12px; }
.acrc-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.acrc-form input[type="text"], .acrc-form input[type="tel"], .acrc-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #cfd6de; border-radius: 10px; font: 400 16px/1.4 var(--font); color: var(--text); background: #fff;
}
.acrc-form textarea { min-height: 72px; resize: vertical; }
.acrc-form__optional { font-weight: 400; color: #8a94a1; white-space: nowrap; }
.acrc-form ::placeholder { color: #9aa3ad; }
.acrc-form input:focus, .acrc-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 187, 255, .25); }
.acrc-form .wpcf7-submit { width: 100%; min-height: 50px; font-family: var(--font); font-size: 15px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.acrc-form .wpcf7-submit:hover { background: var(--accent-hover); }
.acrc-form .wpcf7-submit:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7-not-valid-tip { font-size: 12px; color: #c62828; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.wpcf7-spinner { margin: 8px auto 0; display: block; }
/* В наших формах место под спиннер не держим — он нужен только на время отправки. */
.acrc-form .wpcf7-spinner { display: none; }
.wpcf7 form.submitting .acrc-form .wpcf7-spinner { display: block; margin-top: 0; }
.form-fallback { font-weight: 600; }
.form-fallback a { font-size: 20px; }

/* Чекбокс согласия на обработку ПДн (навык wp-privacy-consent-setup).
   CF7 ≥ 5.6 вешает на обёртку data-name вместо класса consent-pd — учитываем оба варианта. */
.wpcf7-form-control-wrap:is(.consent-pd, [data-name="consent-pd"]) { display: block !important; clear: both; width: 100%; margin: 10px 0 !important; padding: 0 !important; line-height: 1.3 !important; }
.wpcf7-form-control-wrap:is(.consent-pd, [data-name="consent-pd"]) .wpcf7-acceptance,
.wpcf7-form-control-wrap:is(.consent-pd, [data-name="consent-pd"]) .wpcf7-list-item { display: block !important; margin: 0 !important; padding: 0 !important; }
.wpcf7-form-control-wrap:is(.consent-pd, [data-name="consent-pd"]) label { display: flex !important; align-items: flex-start; gap: 6px; margin: 0 !important; cursor: pointer; }
.wpcf7-form-control-wrap:is(.consent-pd, [data-name="consent-pd"]) input[type="checkbox"] { width: 14px; height: 14px; flex-shrink: 0; margin: 2px 0 0 !important; }
.wpcf7-form-control-wrap:is(.consent-pd, [data-name="consent-pd"]) .wpcf7-list-item-label { color: #777; font-size: 12px !important; line-height: 1.3 !important; font-weight: 400; }
.wpcf7-form-control-wrap:is(.consent-pd, [data-name="consent-pd"]) .wpcf7-list-item-label a { text-decoration: underline; color: #555; }

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