/* Локальные шрифты: Montserrat 400/500/600; Bona Nova 400 и Montserrat Italic 800 (FONT-1), кириллица и латиница. Лицензия SIL OFL 1.1, источник Google Fonts. Cormorant Infant не используется (файлы оставлены на диске). */
@font-face{font-family:'Bona Nova';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/bona-nova-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Bona Nova';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/bona-nova-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bona Nova Fallback';src:local('Georgia');size-adjust:97.8%;ascent-override:95.3%;descent-override:27.4%;line-gap-override:0%}
@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:url('../fonts/montserrat-italic-800-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Montserrat';font-style:italic;font-weight:800;font-display:swap;src:url('../fonts/montserrat-italic-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/montserrat-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* =========================================================
   Prive UI (T-31): шапка, меню, нижняя панель, шторка «Записаться»
   ========================================================= */
:root {
	--hdr: 60px;
	--bar: 56px;
	--ui-bg: #1b3026;
	--ui-text: #ebe5d7;
	--ui-accent: #ffeda9;
	--ui-line: rgba(255, 237, 169, 0.28);
	--ui-serif: 'Bona Nova', 'Bona Nova Fallback', Georgia, serif;
	--ui-sans: 'Montserrat', Arial, sans-serif;
}
@media (min-width: 900px) {
	:root { --hdr: 76px; }
}
html { scroll-padding-top: var(--hdr); }
[hidden] { display: none !important; }
body.is-locked { overflow: hidden; }
@media (max-width: 899px) {
	body { padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom)); }
}

/* Кнопки */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 20px;
	font: 500 14px/1 var(--ui-sans); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
	color: var(--ui-accent); background: transparent; border: 1px solid var(--ui-accent); border-radius: 0; cursor: pointer;
}
.btn--primary { color: var(--ui-bg); background: var(--ui-accent); }
.btn:hover { opacity: 0.88; }
.hdr :focus-visible, .tabbar :focus-visible, .sheet :focus-visible, .footer-book-btn:focus-visible {
	outline: 2px solid var(--ui-accent); outline-offset: 2px;
}

/* ---------- Шапка ---------- */
.hdr {
	position: sticky; top: 0; z-index: 1000; height: var(--hdr);
	color: var(--ui-text); font-family: var(--ui-sans);
}
/* Подложка с blur отдельно от .hdr: backdrop-filter на родителе ломает position:fixed у меню */
.hdr::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: rgba(27, 48, 38, 0.96);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--ui-line);
	transition: opacity 0.25s ease;
}
.hdr__inner {
	height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.hdr__menu-btn {
	justify-self: start; display: inline-flex; align-items: center; gap: 10px;
	min-height: 48px; min-width: 48px; padding: 0 4px; background: none; border: 0; color: inherit;
	font: 500 14px/1 var(--ui-sans); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
}
.hdr__burger, .hdr__burger::before, .hdr__burger::after {
	display: block; width: 20px; height: 2px; background: currentColor; content: ''; position: relative;
}
.hdr__burger::before { position: absolute; top: -6px; }
.hdr__burger::after { position: absolute; top: 6px; }
.hdr__logo { justify-self: center; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
.hdr__logo img { width: 44px; height: 44px; display: block; }
.hdr__tel-icon {
	justify-self: end; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; color: var(--ui-accent);
}
.hdr__tel, .hdr__book { display: none; }

/* Меню: один блок в DOM. До 899 px — полноэкранный диалог, от 900 px — строка в шапке */
.hdr__panel { display: none; }
.hdr__panel.is-open {
	position: fixed; inset: 0; z-index: 1100; display: flex; flex-direction: column;
	background: var(--ui-bg); padding: 0 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
}
.hdr__panel-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--hdr); border-bottom: 1px solid var(--ui-line); }
.hdr__panel-title { font: 400 26px/1 var(--ui-serif); font-variant-numeric: lining-nums; }
.hdr__close {
	min-height: 48px; min-width: 48px; padding: 0 4px; background: none; border: 0; color: var(--ui-accent);
	font: 500 14px/1 var(--ui-sans); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
}
.hdr__nav { flex: 1; padding: 12px 0; }
.hdr__list, .hdr__list ul { list-style: none; margin: 0; padding: 0; }
.hdr__list a {
	display: flex; align-items: center; min-height: 48px; color: var(--ui-text); text-decoration: none;
	font: 400 28px/1.1 var(--ui-serif); font-variant-numeric: lining-nums;
}
.hdr__list a[aria-current='page'] { color: var(--ui-accent); }
.hdr__list .sub-menu { padding-left: 16px; }
.hdr__list .sub-menu a { font: 500 14px/1.2 var(--ui-sans); letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.hdr__panel-bottom { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ui-line); }
.hdr__panel-tel { display: flex; align-items: center; justify-content: center; min-height: 48px; color: var(--ui-text); font: 500 16px/1 var(--ui-sans); text-decoration: none; }

@media (min-width: 900px) {
	.hdr__inner { display: flex; gap: 28px; padding: 0 40px; }
	.hdr__menu-btn, .hdr__tel-icon, .hdr__panel-top, .hdr__panel-bottom { display: none; }
	.hdr__logo { width: 56px; height: 56px; }
	.hdr__logo img { width: 52px; height: 52px; }
	.hdr__panel { display: block; flex: 1; position: static; background: none; padding: 0; overflow: visible; }
	.hdr__nav { padding: 0; }
	.hdr__list { display: flex; gap: 8px; justify-content: center; }
	.hdr__list > li { position: relative; }
	.hdr__list a { min-height: 48px; padding: 0 14px; font: 500 14px/1 var(--ui-sans); letter-spacing: 0.05em; text-transform: uppercase; }
	.hdr__list .sub-menu {
		display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px 0;
		background: var(--ui-bg); border: 1px solid var(--ui-line);
	}
	.hdr__list li:hover > .sub-menu, .hdr__list li:focus-within > .sub-menu { display: block; }
	.hdr__list .sub-menu a { padding: 0 16px; opacity: 1; }
	.hdr__tel { display: inline-flex; align-items: center; min-height: 48px; color: var(--ui-text); font: 500 15px/1 var(--ui-sans); text-decoration: none; white-space: nowrap; }
	.hdr__book { display: inline-flex; }
}

@media (min-width: 900px) and (max-width: 1199px) {
	.hdr__inner { gap: 8px; padding-inline: 16px; }
	.hdr__list { gap: 4px; }
	.hdr__list > li > a { padding-inline: 6px; font-size: 13px; }
}

/* Главная: поверх видео прозрачная; после прокрутки ~80 px — сплошная (.is-solid ставит prive-ui.js) */
.hdr--home { position: fixed; left: 0; right: 0; }
.hdr--home::before { opacity: 0; }
.hdr--home.is-solid::before { opacity: 1; }
.hdr--home + main .hero-wrapper { padding-top: var(--hdr); }

/* cookie-карточка (сниппет 9541, z-index 99999 в сниппете) лежит под меню (оно внутри контекста шапки, z=1000), нижней панелью и шторкой */
#prive-cc { z-index: 990 !important; }

/* ---------- Нижняя панель (до 899 px) ---------- */
.tabbar { display: none; }
@media (max-width: 899px) {
	.tabbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
		display: grid; grid-template-columns: 1fr 1fr 1.25fr;
		height: calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
		background: rgba(27, 48, 38, 0.98); border-top: 1px solid var(--ui-line);
	}
	.tabbar__item {
		display: flex; align-items: center; justify-content: center; min-height: var(--bar);
		color: var(--ui-text); background: none; border: 0; border-left: 1px solid var(--ui-line);
		font: 500 13px/1 var(--ui-sans); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; cursor: pointer;
	}
	.tabbar__item:first-child { border-left: 0; }
	.tabbar__item--accent { color: var(--ui-bg); background: var(--ui-accent); border-left-color: var(--ui-accent); font-weight: 600; }
	/* cookie-карточка (сниппет 9541) не перекрывает нижнюю панель */
	#prive-cc { bottom: calc(var(--bar) + 12px + env(safe-area-inset-bottom)) !important; right: 16px !important; }
}

/* T-43: на главной нижняя панель появляется, когда кнопка первого экрана ушла с экрана; cookie-карточка — у края или над панелью */
.hero__call { display: none; }
@media (min-width: 900px) {
	.hero__call { display: inline-flex; }
}
@media (max-width: 899px) {
	.hero__cta .btn--primary { width: 100%; }
	.tabbar { transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; }
	body.is-home-hero:not(.tabbar-on) .tabbar { opacity: 0; transform: translateY(100%); visibility: hidden; pointer-events: none; }
	#prive-cc { transition: bottom 0.25s ease; }
	body.is-home-hero:not(.tabbar-on) #prive-cc { bottom: calc(12px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- Шторка «Записаться» ---------- */
.sheet { position: fixed; inset: 0; z-index: 1200; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, 0.62); }
.sheet__panel {
	position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto;
	background: var(--ui-bg); color: var(--ui-text); border-top: 1px solid var(--ui-line);
	padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); font-family: var(--ui-sans); outline: none;
}
.sheet__close {
	position: absolute; top: 8px; right: 8px; min-height: 48px; min-width: 48px; padding: 0 8px;
	background: none; border: 0; color: var(--ui-accent); font: 500 14px/1 var(--ui-sans); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
}
.sheet__title { margin: 12px 0 16px; font: 400 30px/1.1 var(--ui-serif); font-variant-numeric: lining-nums; }
.sheet__sub { margin: 28px 0 12px; font: 400 22px/1.1 var(--ui-serif); font-variant-numeric: lining-nums; }
.ui-label { display: block; margin: 0 0 6px; font: 500 13px/1.2 var(--ui-sans); letter-spacing: 0.04em; }
.sheet__messengers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet__messengers .btn { padding: 0 8px; }
.sheet__tel { display: flex; width: 100%; box-sizing: border-box; margin-top: 8px; }
.sheet__addr, .sheet__hours, .sheet__done p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.sheet .phone-form__input { min-height: 48px; font-size: 16px; }
@media (min-width: 900px) {
	.sheet__panel { left: auto; top: 0; bottom: 0; width: 480px; max-height: none; border-top: 0; border-left: 1px solid var(--ui-line); padding: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
	.sheet__panel { animation: sheet-in 0.25s ease; }
	@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Кнопка «Записаться на осмотр» в подвале: открывает шторку записи */
.footer-book-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; margin: 16px 0; padding: 0 22px;
	background: var(--ui-accent); color: var(--ui-bg); border: 1px solid var(--ui-accent); border-radius: 0;
	font: 500 14px/1 var(--ui-sans); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
}
.footer-book-btn:hover { opacity: 0.85; }

/* Админ-панель WordPress (видна только залогиненным): шапка, меню и шторка не уходят под неё.
   --adm выставляет prive-ui.js по реальному положению #wpadminbar (панель fixed от 601 px, на ≤600 px прокручивается со страницей).
   Запасные значения — на случай без JS: 32 px, на ≤782 px 46 px, на ≤600 px 0. */
body.admin-bar .hdr { top: var(--adm, 32px); }
body.admin-bar .hdr__panel.is-open { top: var(--adm, 32px); }
body.admin-bar .sheet { top: var(--adm, 32px); }
@media (max-width: 782px) {
	body.admin-bar .hdr, body.admin-bar .hdr__panel.is-open, body.admin-bar .sheet { top: var(--adm, 46px); }
}
@media (max-width: 600px) {
	body.admin-bar .hdr, body.admin-bar .hdr__panel.is-open, body.admin-bar .sheet { top: var(--adm, 0px); }
}

/* =========================================================
   Первый экран главной с видео-фоном (T-42, раздел 3а документа 09)
   Шапка на главной — fixed и прозрачная поверх hero (T-31), поэтому hero начинается с верха страницы.
   ========================================================= */
.hero {
	position: relative; display: grid; align-items: end; box-sizing: border-box; overflow: hidden;
	min-height: calc(100svh - var(--bar)); max-height: 860px; padding-top: var(--hdr);
	background: var(--ui-bg); color: var(--ui-text);
}
@media (min-width: 900px) {
	.hero { min-height: min(100svh, 860px); align-items: center; }
}
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__poster, .hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.hero__video.is-playing { opacity: 1; }
/* телефон: затемнение сверху (под шапкой) и снизу (под текстом) */
.hero__shade {
	background: linear-gradient(180deg, rgba(20, 36, 28, 0.7) 0%, rgba(20, 36, 28, 0.15) 16%,
		rgba(20, 36, 28, 0.6) 34%, rgba(20, 36, 28, 0.9) 48%, rgba(20, 36, 28, 0.95) 68%, #1b3026 100%);
}
/* десктоп: затемнение слева под колонкой текста */
@media (min-width: 900px) {
	.hero__shade {
		background: linear-gradient(90deg, rgba(20, 36, 28, 0.94) 0%, rgba(20, 36, 28, 0.78) 40%, rgba(20, 36, 28, 0.25) 78%),
			linear-gradient(180deg, rgba(20, 36, 28, 0.6) 0%, transparent 18%, transparent 75%, #1b3026 100%);
	}
}
.hero__content { position: relative; display: grid; gap: 16px; padding: 0 20px 24px; font-family: var(--ui-sans); }
@media (min-width: 900px) {
	.hero__content { max-width: 620px; padding: 64px 56px; gap: 22px; }
}
.hero__eyebrow { margin: 0; font: 500 12px/1.4 var(--ui-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui-accent); }
.hero h1 {
	margin: 0; font: 400 34px/1.12 var(--ui-serif); font-variant-numeric: lining-nums; color: var(--ui-text); text-transform: none; letter-spacing: 0;
}
@media (min-width: 900px) {
	.hero h1 { font-size: 40px; line-height: 1.1; max-width: 300px; }
}
@media (min-width: 1200px) {
	.hero h1 { font-size: 44px; max-width: 340px; }
}
@media (min-width: 1440px) {
	.hero h1 { font-size: 52px; max-width: 400px; }
}
.hero__lead { margin: 0; font: 400 15px/1.5 var(--ui-sans); color: var(--ui-text); }
@media (min-width: 900px) {
	.hero__lead { font-size: 17px; }
}
.hero__cta { display: grid; gap: 12px; }
@media (min-width: 900px) {
	.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
}
.hero__facts { margin: 0; font: 400 13px/1.5 var(--ui-sans); color: var(--ui-text); opacity: 0.9; }
/* телефон (T-42, правка): видео — блок от верха экрана высотой 68svh, машина над H1; низ растворяется в #1b3026 */
@media (max-width: 899px) {
	.hero__media { bottom: auto; height: 68svh; min-height: 480px; overflow: hidden; background: var(--ui-bg); }
	.hero__media picture { display: block; }
	.hero__poster, .hero__video { position: absolute; left: 0; top: -36%; height: 125%; }
	.hero__shade {
		bottom: auto; height: 68svh; min-height: 480px;
		background: linear-gradient(180deg, rgba(20, 36, 28, 0.55) 0%, rgba(20, 36, 28, 0) 16%, rgba(20, 36, 28, 0) 52%,
			rgba(27, 48, 38, 0.3) 60%, rgba(27, 48, 38, 0.6) 68%, rgba(27, 48, 38, 0.8) 75%, rgba(27, 48, 38, 0.9) 81%,
			rgba(27, 48, 38, 0.97) 86%, #1b3026 90%, #1b3026 100%);
	}
	.hero h1 { font-size: 34px; line-height: 1.12; }
}
@media (prefers-reduced-motion: reduce) {
	.hero__video { display: none; }
}

/* =========================================================
   Главная ниже первого экрана и новый подвал (T-44)
   ========================================================= */
.hm-sec { padding: 72px 0 0; background: var(--ui-bg); color: var(--ui-text); font-family: var(--ui-sans); }
.hm-wrap { padding: 0 20px; }
.hm-eb, .pf-eb { margin: 0; font: 500 12px/1.4 var(--ui-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ui-accent); }
.hm-h2 { margin: 14px 0 0; font: 400 34px/1.05 var(--ui-serif); font-variant-numeric: lining-nums; color: var(--ui-text); text-transform: none; letter-spacing: 0; }
.hm-lead { margin: 16px 0 0; font: 400 16px/1.6 var(--ui-sans); color: rgba(235, 229, 215, 0.82); max-width: 620px; }
.hm-btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid rgba(235, 229, 215, 0.7); color: var(--ui-text); font: 600 13px/1 var(--ui-sans); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.hm-btn2:hover { background: rgba(235, 229, 215, 0.08); }
.hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
@media (min-width: 900px) {
	.hm-sec { padding-top: 112px; }
	.hm-wrap { padding: 0 80px; }
	.hm-h2 { font-size: 48px; }
}

/* Разделы: плитки встык на всю ширину */
.hm-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 32px auto 0; max-width: 1440px; }
.hm-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #14241c; color: var(--ui-text); text-decoration: none; }
.hm-tile__img, .hm-tile__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-tile__video { opacity: 0; transition: opacity 0.4s ease; }
.hm-tile__video.is-on { opacity: 1; }
.hm-tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 36, 28, 0) 35%, rgba(20, 36, 28, 0.92) 100%); }
.hm-tile__tx { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.hm-tile__nm { font: italic 800 13px/1.12 var(--ui-sans); text-transform: uppercase; letter-spacing: 0.02em; }
.hm-tile__ln { font-size: 12px; line-height: 1.4; color: rgba(235, 229, 215, 0.8); }
.hm-tile__pr { font-size: 12px; line-height: 1.4; color: var(--ui-accent); }
.hm-tile:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: -4px; }
/* TILES-9: при нечётном числе плиток последняя на телефоне на всю ширину, той же высоты */
@media (max-width: 899px) {
	.hm-tile:nth-child(odd):last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
	/* TILES-MOB-1 (12.11): на телефоне «Импорт авто» — последняя плитка; при нечётном числе плиток на всю ширину именно она */
	.hm-tile[data-hub="prigon"] { order: 1; }
	.hm-tiles:has(> .hm-tile[data-hub="prigon"]) > .hm-tile:nth-child(odd):last-child { grid-column: auto; aspect-ratio: 1 / 1; }
	.hm-tiles:has(> .hm-tile:nth-child(odd):last-child) > .hm-tile[data-hub="prigon"] { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
}
@media (min-width: 900px) {
	/* 6 дорожек, плитка на 2: неполный нижний ряд по центру, без пустых ячеек (TILES-9) */
	.hm-tiles { grid-template-columns: repeat(6, 1fr); margin-top: 40px; }
	.hm-tile { grid-column: span 2; }
	.hm-tile:nth-child(3n+1):nth-last-child(2) { grid-column: 2 / span 2; }
	.hm-tile:nth-child(3n+1):last-child { grid-column: 3 / span 2; }
	.hm-tile__tx { left: 24px; right: 24px; bottom: 22px; gap: 6px; }
	.hm-tile__nm { font-size: 21px; }
	.hm-tile__ln, .hm-tile__pr { font-size: 13px; }
}

/* Как проходит запись: двойная линия прорисовывается при прокрутке, шаги проявляются по мере её прохождения */
.hm-stepswrap { position: relative; margin-top: 36px; padding-left: 30px; }
.hm-steps__line { position: absolute; left: 0; top: 0; bottom: 0; width: 7px; }
.hm-steps__line i { position: absolute; top: 0; bottom: 0; width: 1px; background: #ebe5d7; transform-origin: top; }
.hm-steps__line i:first-child { left: 0; }
.hm-steps__line i:last-child { left: 5px; }
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hm-steps li { display: flex; flex-direction: column; gap: 8px; padding: 0 0 28px; }
.hm-steps li:last-child { padding-bottom: 0; }
.hm-steps__n { font: italic 800 36px/1 var(--ui-sans); color: var(--ui-accent); }
.hm-steps__t { font-weight: 600; font-size: 16px; }
.hm-steps__d { font-size: 14px; line-height: 1.55; color: rgba(235, 229, 215, 0.75); }
@media (min-width: 900px) {
	.hm-stepswrap { margin-top: 44px; padding: 20px 0 0; }
	.hm-steps__line { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 7px; }
	.hm-steps__line i { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; transform-origin: left; }
	.hm-steps__line i:last-child { top: 5px; left: 0; }
	.hm-steps { grid-template-columns: repeat(4, 1fr); }
	.hm-steps li { padding: 12px 28px 0 0; }
	.hm-steps__n { font-size: 40px; }
}
/* анимация включается скриптом (класс is-anim), один раз при входе блока в экран */
.hm-stepswrap.is-anim .hm-steps__line i { transform: scaleY(0); transition: transform 1.8s linear; }
.hm-stepswrap.is-anim .hm-steps li { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hm-stepswrap.is-in .hm-steps__line i { transform: none; }
.hm-stepswrap.is-in .hm-steps li { opacity: 1; transform: none; }
.hm-stepswrap.is-in .hm-steps li:nth-child(1) { transition-delay: 0.1s; }
.hm-stepswrap.is-in .hm-steps li:nth-child(2) { transition-delay: 0.55s; }
.hm-stepswrap.is-in .hm-steps li:nth-child(3) { transition-delay: 1s; }
.hm-stepswrap.is-in .hm-steps li:nth-child(4) { transition-delay: 1.45s; }
@media (min-width: 900px) {
	.hm-stepswrap.is-anim .hm-steps__line i { transform: scaleX(0); }
	.hm-stepswrap.is-in .hm-steps__line i { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hm-stepswrap.is-anim .hm-steps__line i, .hm-stepswrap.is-anim .hm-steps li { transform: none; opacity: 1; transition: none; }
}

/* Работы: три квадрата встык; на телефоне — лента */
.hm-works-sec .hm-head { margin-bottom: 0; }
.hm-cases { display: flex; gap: 0; margin-top: 32px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hm-cases::-webkit-scrollbar { display: none; }
.hm-case { position: relative; flex: 0 0 80vw; aspect-ratio: 1 / 1; overflow: hidden; scroll-snap-align: start; color: var(--ui-text); text-decoration: none; background: #14241c; }
.hm-case__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-case__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 36, 28, 0) 55%, rgba(20, 36, 28, 0.9) 100%); }
.hm-case__nm { position: absolute; left: 20px; right: 20px; bottom: 20px; font: 400 24px/1.1 var(--ui-serif); font-variant-numeric: lining-nums; }
.hm-case:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: -4px; }
@media (min-width: 900px) {
	.hm-cases { margin-top: 40px; overflow: visible; }
	.hm-case { flex: 1 1 0; }
	.hm-case__nm { left: 28px; right: 28px; bottom: 24px; font-size: 24px; }
}

/* О клубе */
.hm-about { display: grid; gap: 28px; align-items: center; }
.hm-about__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hm-about__tx { display: flex; flex-direction: column; gap: 4px; }
.hm-about__tx .hm-btn2 { margin-top: 24px; }
@media (min-width: 900px) {
	.hm-about { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* Отзывы */
.hm-rev2 { display: grid; gap: 20px; margin-top: 28px; padding: 24px 20px; background: #14241c; }
.hm-rev2__num { margin: 0; font: italic 800 52px/1 var(--ui-sans); color: var(--ui-text); }
.hm-rev2__num small { font: 400 18px/1 var(--ui-sans); color: rgba(235, 229, 215, 0.7); }
.hm-rev2__stars { margin: 6px 0 0; font-size: 26px; line-height: 1; letter-spacing: 0.1em; color: var(--ui-accent); }
.hm-rev2__cap, .hm-rev2__src { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: rgba(235, 229, 215, 0.7); }
.hm-rev2__src { font-size: 11px; margin-top: 10px; }
.hm-aspects { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.hm-aspects li { color: var(--ui-accent); font-weight: 600; }
.hm-aspects b { color: var(--ui-text); font-weight: 500; margin-right: 4px; }
.hm-revs { display: grid; gap: 16px; margin-top: 16px; }
.hm-revcard { margin: 0; padding: 24px 20px; background: #14241c; display: flex; flex-direction: column; gap: 12px; }
.hm-revcard__stars { margin: 0; color: var(--ui-accent); font-size: 18px; letter-spacing: 0.1em; line-height: 1; }
.hm-revcard__t { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(235, 229, 215, 0.92); }
.hm-revcard__a { font-size: 13px; color: rgba(235, 229, 215, 0.65); }
.hm-rev2__all { margin: 20px 0 0; }
.hm-rev2__all a { color: var(--ui-accent); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
@media (min-width: 900px) {
	.hm-rev2 { grid-template-columns: auto 1fr; gap: 56px; padding: 32px 40px; align-items: center; margin-top: 36px; }
	.hm-revs { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
	.hm-revcard { padding: 32px 36px; }
	.hm-revcard__t { font-size: 16px; }
}

/* Вопросы */
.hm-faq { margin-top: 32px; border-top: 1px solid rgba(235, 229, 215, 0.25); }
.hm-q { border-bottom: 1px solid rgba(235, 229, 215, 0.25); }
.hm-q summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-weight: 600; font-size: 16px; line-height: 1.35; cursor: pointer; list-style: none; }
.hm-q summary::-webkit-details-marker { display: none; }
.hm-q summary::after { content: '+'; flex: none; color: var(--ui-accent); font-size: 22px; line-height: 1; }
.hm-q[open] summary::after { content: '−'; }
.hm-q summary:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
.hm-q p { margin: 0 0 22px; max-width: 820px; font-size: 15px; line-height: 1.6; color: rgba(235, 229, 215, 0.82); }
.hm-q p a { color: var(--ui-accent); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (min-width: 900px) {
	.hm-q summary { font-size: 17px; }
}

/* Призыв */
.hm-cta { margin-top: 72px; padding: 64px 20px; background: #14241c; color: var(--ui-text); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; font-family: var(--ui-sans); }
.hm-cta .hm-h2 { margin: 0; font-size: 36px; }
.hm-cta p { margin: 0; font-size: 16px; color: rgba(235, 229, 215, 0.8); }
.hm-cta__btns { display: grid; gap: 12px; width: 100%; max-width: 360px; margin-top: 8px; }
@media (min-width: 900px) {
	.hm-cta { margin-top: 112px; padding: 96px 80px; }
	.hm-cta .hm-h2 { font-size: 56px; }
	.hm-cta__btns { display: flex; width: auto; max-width: none; gap: 14px; }
}

/* Полный логотип перед подвалом — один раз, на всю ширину, полоски до краёв */
.hm-logo { padding: 72px 0 0; background: var(--ui-bg); line-height: 0; }
.hm-logo img { display: block; width: 100%; height: auto; }
@media (min-width: 900px) { .hm-logo { padding-top: 120px; } }

/* Подвал: карта, карточка, колонки */
.pf-find { display: grid; gap: 28px; margin-top: 56px; padding: 0 20px; background: var(--ui-bg); color: var(--ui-text); font-family: var(--ui-sans); }
.pf-find__card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; background: #14241c; }
.pf-find__h { margin: 0; font: 400 34px/1.05 var(--ui-serif); font-variant-numeric: lining-nums; color: var(--ui-text); text-transform: none; letter-spacing: 0; }
.pf-find__addr, .pf-find__floor, .pf-find__hours, .pf-find__tel { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(235, 229, 215, 0.88); }
.pf-find__tel a { color: var(--ui-text); font-weight: 600; text-decoration: none; }
.pf-find__msg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.pf-find__msg .btn { padding: 0 8px; }
.pf-find__map { display: block; line-height: 0; background: #14241c; }
.pf-find__map img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 43%; }
.pf-find__btns { display: grid; gap: 10px; margin-top: 12px; }
.pf-find__btns .btn { white-space: nowrap; }
@media (min-width: 900px) {
	.pf-find { grid-template-columns: 1fr 1.35fr; gap: 56px; padding: 0 80px; align-items: start; margin-top: 96px; }
	.pf-find__card { padding: 44px 44px; position: sticky; top: 100px; }
	.pf-find__h { font-size: 44px; }
	.pf-find__map img { aspect-ratio: 2200 / 1500; }
	.pf-find__btns { display: flex; flex-wrap: wrap; gap: 12px; }
}
.pf { padding: 40px 20px 32px; background: var(--ui-bg); color: var(--ui-text); font-family: var(--ui-sans); }
.pf-cols { display: grid; gap: 32px; }
.pf-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.pf-col__t { font: 600 11px/1 var(--ui-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ui-accent); margin-bottom: 4px; }
.pf-col a { color: rgba(235, 229, 215, 0.85); text-decoration: none; }
.pf-col a:hover { color: var(--ui-accent); }
.pf-msg { display: flex; flex-wrap: wrap; gap: 16px; }
.pf-msg a { color: var(--ui-accent); }
.pf-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(235, 229, 215, 0.2); font-size: 12px; line-height: 1.6; color: rgba(235, 229, 215, 0.6); }
.pf-legal p { margin: 0 0 10px; }
.pf-legal__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pf-legal a { color: rgba(235, 229, 215, 0.75); }
@media (min-width: 900px) {
	.pf { padding: 56px 80px 40px; }
	.pf-cols { grid-template-columns: 1.2fr 1.6fr 1fr; gap: 40px; }
	.pf-col--sec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
	.pf-col--sec .pf-col__t { grid-column: span 2; }
}
/* телефон: нижняя панель не перекрывает подвал */
@media (max-width: 899px) { .pf { padding-bottom: 24px; } }

/* Кнопка отправки формы (раньше стиль лежал в <style> старого подвала) */
.phone-form__submit {
	width: 40px;
	height: 40px;
	background: url('../svg/buttom.svg') no-repeat center center;
	background-size: contain;
	border: none;
	cursor: pointer;
}

/* Калькулятор (T-45) */
.hm-calcwrap { display: grid; gap: 28px; }
.hm-calc { background: #14241c; padding: 24px 20px; display: grid; gap: 20px; align-content: start; }
.calc__form { display: grid; gap: 14px; }
.calc__field { display: grid; gap: 6px; }
.calc__field label { font: 500 13px/1.2 var(--ui-sans); letter-spacing: 0.04em; color: var(--ui-text); }
.calc__field select {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 14px; border-radius: 0;
	font: 400 16px/1.2 var(--ui-sans); color: var(--ui-bg); background: var(--ui-accent); border: 0;
}
.calc__field select:disabled { opacity: 0.55; }
.calc__field select:focus-visible { outline: 2px solid var(--ui-text); outline-offset: 2px; }
.calc__out { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(235, 229, 215, 0.2); }
.calc__out .btn { width: 100%; }
.calc__hint, .calc__note { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(235, 229, 215, 0.75); }
.calc__cls { margin: 0; font: 400 20px/1.2 var(--ui-serif); font-variant-numeric: lining-nums; }
.calc__price { margin: 0; display: grid; gap: 4px; }
.calc__svc { font-size: 14px; color: rgba(235, 229, 215, 0.8); }
.calc__price b { font: 400 34px/1.1 var(--ui-serif); font-variant-numeric: lining-nums; color: var(--ui-accent); }
.sheet__calc { margin: -6px 0 14px; padding: 10px 12px; font-size: 14px; line-height: 1.45; background: rgba(255, 237, 169, 0.1); border-left: 2px solid var(--ui-accent); }
@media (min-width: 900px) {
	.hm-calcwrap { grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
	.hm-calc { padding: 36px; gap: 24px; }
	.calc__form { grid-template-columns: 1fr 1fr; }
	.calc__field:last-child { grid-column: span 2; }
	.calc__out .btn { width: auto; justify-self: start; }
}
@media (max-width: 899px) {
	.hm-calc__intro .hm-lead { display: none; }
	.hm-calcwrap { gap: 16px; }
	.hm-calc { padding: 16px; gap: 14px; }
	.calc__form { gap: 10px; }
	.calc__field select { min-height: 44px; }
	.calc__out { padding-top: 14px; gap: 8px; }
	.calc__price b { font-size: 30px; }
}

/* T-49: кнопка первого экрана на телефоне — «Консьерж клуба»; крестик шторки */
.hero__t-m { display: none; }
@media (max-width: 899px) {
	.hero__t-d { display: none; }
	.hero__t-m { display: inline; }
}
.sheet__close {
	top: 26px; right: 12px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	font: 300 32px/1 var(--ui-sans); letter-spacing: 0; text-transform: none; z-index: 2;
}
.sheet__title { padding-right: 56px; }
@media (min-width: 900px) { .sheet__close { top: 38px; right: 24px; } }

/* =========================================================
   Форма шторки (CF7 353) — T-50
   ========================================================= */
.phone-form__label { display: none; }
#sheet .phone-form { display: flex; flex-direction: column; width: 100%; font-family: var(--ui-sans); }
#sheet .phone-form__wrapper { display: contents; }
#sheet .ui-label { display: block; order: 0; margin: 0 0 6px; font: 500 12px/1.2 var(--ui-sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ui-text); }
#sheet .wpcf7-form-control-wrap { display: block; width: 100%; margin: 0; }
#sheet .phone-form__input {
	display: block; box-sizing: border-box; width: 100%; max-width: none; height: 52px; min-height: 52px; margin: 0;
	padding: 0 16px; font: 500 16px/1.2 var(--ui-sans);
}
/* группы: подпись + поле; между группами 14px */
#sheet label[for^="phone-"] { margin-top: 14px; }
/* согласие */
#sheet .consent-check { order: 3; display: block; margin: 14px 0 0 !important; font-size: 13px !important; line-height: 1.35 !important; }
#sheet .consent-check .wpcf7-form-control-wrap, #sheet .consent-check .wpcf7-form-control, #sheet .consent-check .wpcf7-list-item { display: block; margin: 0; }
#sheet .consent-check label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
#sheet .consent-check input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0 0 0 2px; accent-color: var(--ui-accent); cursor: pointer; }
#sheet .consent-check a { color: var(--ui-accent); text-decoration: underline; text-underline-offset: 2px; }
/* кнопка */
#sheet .phone-form__submit {
	order: 4; position: static; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
	width: 100%; height: 52px; margin: 16px 0 0; padding: 0 16px; border: 0; border-radius: 0;
	background: var(--ui-accent); color: var(--ui-bg);
	font: 600 13px/1 var(--ui-sans); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
#sheet .phone-form__submit .phone-form__label { display: inline; }
#sheet .phone-form__submit:disabled { opacity: 0.5; cursor: not-allowed; }
#sheet form.submitting .phone-form__submit .phone-form__label { display: none; }
#sheet form.submitting .phone-form__submit::after { content: 'Отправляем…'; }
/* ответ, ошибки, reCAPTCHA */
#sheet .wpcf7-response-output { order: 5; margin: 12px 0 0 !important; padding: 0 !important; border: 0 !important; background: none !important; color: var(--ui-text) !important; font-size: 12px; line-height: 1.4; }
#sheet .wpcf7-response-output:empty { display: none; }
#sheet .wpcf7-not-valid-tip { display: block; margin: 4px 0 0; font-size: 12px; line-height: 1.3; color: #ffb4a8; }
/* «Или напишите нам» */
#sheet .sheet__more { margin-top: 32px; }
#sheet .sheet__sub { margin-top: 0; }

/* «Как добраться» в карточке «Как нас найти» (T-52) */
.pf-find__floor { margin-top: -8px !important; }
.pf-find__how { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: rgba(235, 229, 215, 0.88); }
.pf-find__how span { color: rgba(235, 229, 215, 0.6); }

/* Свежее из клуба (T-60) */
.hm-soc__h { margin-top: 0; }
.hm-soc__lead { margin-top: 16px; max-width: 460px; }
.hm-soc__wrap { margin-top: 28px; }
.hm-soc__row { display: flex; gap: 16px; margin: 0 -20px; padding: 0 20px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hm-soc__row::-webkit-scrollbar { display: none; }
.hm-soc__card { flex: 0 0 290px; scroll-snap-align: start; display: flex; flex-direction: column; background: #14241c; border: 1px solid rgba(235, 229, 215, 0.14); padding: 16px 16px 20px; }
.hm-soc__hd { display: flex; align-items: center; gap: 12px; }
.hm-soc__ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(235, 229, 215, 0.45); font: 600 13px/1 var(--ui-sans); letter-spacing: 0.06em; color: var(--ui-text); }
.hm-soc__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hm-soc__who b { font: 600 15px/1.25 var(--ui-sans); color: var(--ui-text); }
.hm-soc__who small { font-size: 12px; color: rgba(235, 229, 215, 0.62); }
.hm-soc__tag { margin-left: auto; font: 500 10px/1.3 var(--ui-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ui-accent); text-align: right; }
.hm-soc__img { position: relative; display: block; margin-top: 14px; aspect-ratio: 1 / 1; overflow: hidden; background: #0e1a14; line-height: 0; }
.hm-soc__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-soc__play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 1px solid rgba(235, 229, 215, 0.85); background: rgba(14, 26, 20, 0.62); }
.hm-soc__play::after { content: ''; position: absolute; left: 24px; top: 19px; border-left: 16px solid var(--ui-text); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.hm-soc__date { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: rgba(235, 229, 215, 0.62); }
.hm-soc__tx { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: rgba(235, 229, 215, 0.92); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-soc__cta { margin-top: auto; padding-top: 16px; font: 600 13px/1.2 var(--ui-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ui-accent); text-decoration: none; }
.hm-soc__cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.hm-soc__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.hm-soc__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(235, 229, 215, 0.28); }
.hm-soc__dots span.is-on { background: var(--ui-accent); }
.hm-soc__note { margin: 18px 0 0; font-size: 11px; line-height: 1.5; color: rgba(235, 229, 215, 0.55); }
@media (min-width: 900px) {
	.hm-soc__wrap { margin-top: 40px; }
	.hm-soc__card { flex-basis: 340px; }
}
@media (min-width: 1024px) {
	.hm-soc__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; overflow: visible; }
	.hm-soc__card { padding: 20px 20px 24px; }
	.hm-soc__dots { display: none; }
}

/* Шаблон «Услуга» v2 (T-35, пилот) */
.sv2 { background: var(--ui-bg); color: var(--ui-text); font-family: var(--ui-sans); overflow-x: clip; }
.sv2-hero { position: relative; overflow: hidden; background: #0e1a14; }
.sv2-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sv2-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 20, 0.78) 0%, rgba(14, 26, 20, 0.9) 100%); }
.sv2-hero__in { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 18px; padding-bottom: 24px; }
.sv2-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.4; color: rgba(235, 229, 215, 0.7); }
.sv2-crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.6; }
.sv2-crumbs a { color: inherit; text-decoration: none; }
.sv2-crumbs a:hover { text-decoration: underline; }
.sv2-h1 { margin: 0; font: 400 34px/1.05 var(--ui-serif); font-variant-numeric: lining-nums; color: var(--ui-text); text-transform: none; letter-spacing: 0; }
.sv2-answer { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(235, 229, 215, 0.9); max-width: 620px; }
.sv2-price { padding: 16px; background: rgba(20, 36, 28, 0.92); border: 1px solid rgba(235, 229, 215, 0.18); }
.sv2-price__rows { list-style: none; margin: 10px 0 0; padding: 0; }
.sv2-price__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(235, 229, 215, 0.14); font-size: 14px; line-height: 1.35; }
.sv2-price__rows b { flex: none; font: 400 17px/1.2 var(--ui-serif); font-variant-numeric: lining-nums; color: var(--ui-accent); white-space: nowrap; }
.sv2-price__term { margin: 10px 0 0; font-size: 13px; color: rgba(235, 229, 215, 0.9); }
.sv2-price__term span { color: rgba(235, 229, 215, 0.6); }
.sv2-price__note { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: rgba(235, 229, 215, 0.65); }
.sv2-btns { display: grid; gap: 10px; }
.sv2-narrow { max-width: none; }
.sv2-text p { margin: 14px 0 0; font-size: 16px; line-height: 1.65; color: rgba(235, 229, 215, 0.88); max-width: 820px; }
.sv2-text h2, .sv2-text h3 { margin: 28px 0 0; font: 400 24px/1.2 var(--ui-serif); font-variant-numeric: lining-nums; color: var(--ui-text); }
.sv2-text ul, .sv2-text ol { margin: 12px 0 0; padding-left: 22px; line-height: 1.65; color: rgba(235, 229, 215, 0.88); }
.sv2-photos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.sv2-photos::-webkit-scrollbar { display: none; }
.sv2-photos figure { flex: 0 0 78%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; overflow: hidden; background: #14241c; }
.sv2-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sv2-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.sv2-chips li { padding: 10px 16px; border: 1px solid rgba(235, 229, 215, 0.4); font-size: 14px; line-height: 1.3; }
.sv2-note { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: rgba(235, 229, 215, 0.7); max-width: 720px; }
.sv2-why { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.sv2-why li { display: flex; gap: 16px; align-items: baseline; padding: 20px; background: #14241c; font-size: 15px; line-height: 1.5; }
.sv2-why__n { flex: none; font: italic 800 28px/1 var(--ui-sans); color: var(--ui-accent); }
.sv2-proc { display: grid; gap: 28px; align-items: center; }
.sv2-proc__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sv2-long summary span { font-weight: 600; }
.sv2-long .sv2-text { padding-bottom: 22px; }
.sv2-rel { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.sv2-rel a { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: start; padding: 20px; background: #14241c; color: var(--ui-text); text-decoration: none; font: 400 22px/1.15 var(--ui-serif); font-variant-numeric: lining-nums; }
.sv2-rel a::after { content: '→'; grid-column: 2; grid-row: 1; color: var(--ui-accent); font-family: var(--ui-sans); }
.sv2-rel__d { grid-column: 1 / -1; font: 400 14px/1.5 var(--ui-sans); color: rgba(235, 229, 215, 0.75); display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sv2-rel a:hover { background: #1a2e24; }
.pf-find__intro { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(235, 229, 215, 0.88); }
@media (min-width: 900px) {
	.sv2-hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); column-gap: 64px; row-gap: 18px; align-content: center; padding-top: 28px; padding-bottom: 64px; min-height: 520px; }
	.sv2-hero__in > * { grid-column: 1; }
	.sv2-hero__in .sv2-price { grid-column: 2; grid-row: 1 / span 4; align-self: center; padding: 28px; }
	.sv2-h1 { font-size: 64px; }
	.sv2-answer { font-size: 18px; }
	.sv2-btns { grid-template-columns: auto auto; justify-content: start; gap: 14px; }
	.sv2-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; overflow: visible; }
	.sv2-photos figure { flex: none; }
	.sv2-why { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.sv2-why li { flex-direction: column; gap: 14px; padding: 28px; }
	.sv2-proc { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
	.sv2-rel { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.sv2-rel a { padding: 28px; font-size: 26px; }
}

.sv2-price__rows .sv2-price__extra span { color: rgba(235, 229, 215, 0.9); }

.sv2-ba { display: grid; gap: 14px; margin-top: 28px; }
.sv2-ba figure { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #14241c; }
.sv2-ba img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .sv2-ba { grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; } }
.sv2-ba figure:only-child { grid-column: 1 / -1; } /* одно фото — на всю ширину блока (AUDIT-1, /antihrom/) */

.sv2-proc__img img.is-portrait { aspect-ratio: 4 / 5; }
.sv2-proc--noimg { grid-template-columns: 1fr !important; max-width: 1040px; }
@media (min-width: 900px) {
	.sv2-photos.n-2 { grid-template-columns: repeat(2, 1fr); }
	.sv2-photos.n-1 { grid-template-columns: minmax(0, 640px); }
}

/* CASE-TAX: плашки услуг в кейсе и блок «Работы по услуге» */
a.ct-chip { display: inline-block; text-decoration: none; cursor: pointer; }
.subfilters-container.case span.ct-chip.subfilter-btn { cursor: default; }
.subfilters-container.case a.ct-chip.subfilter-btn:hover,
.subfilters-container.case a.ct-chip.subfilter-btn:focus-visible { background: var(--accent-yellow); border-color: var(--accent-yellow); color: var(--main-green); cursor: pointer; }
.subfilters-container.case a.ct-chip.subfilter-btn:focus-visible { outline: 2px solid var(--accent-yellow); outline-offset: 2px; }
.subfilters-container.case { display: flex; flex-wrap: wrap; gap: 8px; }
.subfilters-container.case .ct-chip { margin-bottom: 0; }
@media (min-width: 900px) {
	.hm-cases.n-4, .hm-cases.n-5, .hm-cases.n-6 { flex-wrap: wrap; }
	.hm-cases.n-4 .hm-case, .hm-cases.n-5 .hm-case, .hm-cases.n-6 .hm-case { flex: 0 0 33.3333%; }
}
/* CASE-TAX: плашка марки (контурная, отличается от плашек услуг) и два ряда фильтров на /our_cases/ */
.subfilters-container.case a.ct-brand.subfilter-btn { background: transparent; border-style: dashed; }
.cases-filters2 { overflow: visible; }
.cases-filters2 .subfilters-set { margin-bottom: 20px; }
.cases-filters2 .cf2-label { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.cases-filters2 .subfilters-container { display: flex; flex-wrap: wrap; gap: 8px; }
/* DA-1 п.1: форма записи на старом шаблоне (371 и кейсы): один столбец, поля 100 %, согласие отдельной строкой, кнопка с текстом */
.why_us_button .phone-form, .what_is_it-contact .phone-form { display: flex; flex-direction: column; width: 100%; max-width: 520px; margin: 0 auto; box-sizing: border-box; font-family: var(--ui-sans); }
.why_us_button .phone-form__wrapper, .what_is_it-contact .phone-form__wrapper { display: contents; }
.why_us_button .wpcf7-form-control-wrap, .what_is_it-contact .wpcf7-form-control-wrap { display: block; width: 100%; margin: 0; }
.why_us_button .ui-label, .what_is_it-contact .ui-label { display: block; margin: 14px 0 6px; font: 500 12px/1.2 var(--ui-sans); text-transform: uppercase; letter-spacing: 0.12em; }
.why_us_button .phone-form__input, .what_is_it-contact .phone-form__input { display: block; box-sizing: border-box; width: 100%; max-width: none; height: 52px; margin: 0; padding: 0 16px; font: 500 16px/1.2 var(--ui-sans); }
.why_us_button .consent-check, .what_is_it-contact .consent-check { order: 3; display: block; width: 100%; margin: 14px 0 0 !important; font-size: 13px !important; line-height: 1.35 !important; }
.why_us_button .consent-check .wpcf7-form-control, .why_us_button .consent-check .wpcf7-list-item, .what_is_it-contact .consent-check .wpcf7-form-control, .what_is_it-contact .consent-check .wpcf7-list-item { display: block; margin: 0; }
.why_us_button .consent-check label, .what_is_it-contact .consent-check label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.why_us_button .consent-check input[type="checkbox"], .what_is_it-contact .consent-check input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 0 0 0 2px; accent-color: var(--ui-accent); }
.why_us_button .consent-check a, .what_is_it-contact .consent-check a { color: var(--ui-accent); text-decoration: underline; text-underline-offset: 2px; }
.why_us_button .phone-form__submit, .what_is_it-contact .phone-form__submit { order: 4; position: static; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; height: 52px; margin: 16px 0 0; padding: 0 16px; border: 0; border-radius: 0; background: var(--ui-accent); color: var(--ui-bg); font: 600 13px/1 var(--ui-sans); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.why_us_button .phone-form__submit::before, .why_us_button .phone-form__submit::after, .what_is_it-contact .phone-form__submit::before, .what_is_it-contact .phone-form__submit::after { content: none; }
.why_us_button .phone-form__submit svg, .what_is_it-contact .phone-form__submit svg { display: none; }
.why_us_button .phone-form__submit .phone-form__label, .what_is_it-contact .phone-form__submit .phone-form__label { display: inline; }
.why_us_button .wpcf7-response-output, .what_is_it-contact .wpcf7-response-output { order: 5; margin: 12px 0 0; }
.why_us_button .wpcf7-not-valid-tip, .what_is_it-contact .wpcf7-not-valid-tip { display: block; margin: 4px 0 0; font-size: 12px; line-height: 1.3; color: #ffb4a8; }
/* DA-1 п.2: /about_us/ блок преимуществ — сетка 2×2 (на мобильном 1 колонка), обычный регистр */
.why_us--about .why_us-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; align-items: start; justify-content: stretch; max-width: 1040px; margin: 80px auto; }
.why_us--about .why_us-card { max-width: none; width: auto; }
.why_us--about .why_us-card-title h3 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 500; text-transform: none; overflow-wrap: break-word; }
@media (max-width: 700px) {
	.why_us--about .why_us-cards { grid-template-columns: minmax(0, 1fr); gap: 36px; margin: 40px 0; }
	.why_us--about .why_us-card-title h3 { font-size: 22px; }
	.why_us--about .what_is_it-title h2 { font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
}
/* DA-1b: /about_us/ — блок «Ещё работы» без закрепления, обычная прокрутка */
.pin-wrapper--static { height: auto; }
.pin-wrapper--static .pinned-section { position: relative !important; height: auto; }

/* =========================================================
   AUD-1: аудит Impeccable, этап 1 (главная и общий шаблон)
   ========================================================= */
/* skip-ссылка: первая в DOM, видна при фокусе */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10000; padding: 12px 18px; background: var(--ui-accent); color: var(--ui-bg); font: 600 14px/1 var(--ui-sans); text-decoration: none; }
.skip-link:focus { top: 12px; }
/* видимый фокус вместо outline: none (#FFEDA9 на #1b3026 = 11,98:1); программный фокус на блоках с tabindex=-1 без кольца */
html :focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 3px; }
html [tabindex="-1"]:focus-visible { outline: none; }
/* hero, десктоп: постер уходит в фон до того, как проявится видео (раньше 0,6 с кадры накладывались друг на друга — «призрак») */
.hero__media { background: var(--ui-bg); }
.hero__poster { transition: opacity 0.25s ease; }
.hero__media.has-video .hero__poster { opacity: 0; }
.hero__video { transition: opacity 0.35s ease 0.25s; }
@media (prefers-reduced-motion: reduce) { .hero__poster, .hero__video { transition: none; } }
/* контраст */
.hm-steps__d { color: var(--ui-text); }
.hm-soc__note { font-size: 12px; color: rgba(235, 229, 215, 0.7); }
@media (min-width: 900px) {
	.hdr__tel { padding: 0 12px; background: rgba(20, 36, 28, 0.72); }
}
/* размеры: подписи не мельче 12 px */
.hm-rev2__src { font-size: 12px; }
.pf-col__t { font-size: 12px; }
.hm-soc__tag { font-size: 12px; letter-spacing: 0.08em; }
/* цели касания ≥ 44 px (шрифт не меняем) */
.pf-col { gap: 2px; }
.pf-col > span:not(.pf-msg) { padding: 6px 0; }
.pf-col a, .pf-legal__links a { display: inline-flex; align-items: center; min-height: 44px; }
.pf-msg { gap: 4px 20px; }
.hm-soc__cta { display: flex; align-items: center; min-height: 44px; padding-top: 0; }
.hm-soc__tx { margin-bottom: 8px; }
/* FAQ: строка ≤ 75 знаков (56ch ≈ 72 знака Montserrat), основной текст 16 px */
.hm-q p, .hm-q summary span { max-width: 56ch; }
.hm-q p { font-size: 16px; }

/* FONT-2: заголовки остальных шаблонов — Bona Nova 400, обычный регистр (как на главной после FONT-1) */
h1, h2, h3, h4, h5, h6,
.title, .page-title, .usluga-pin-title, .record-title, .our-works__title, .service-title, .what_we_doing-card__title,
.about_us-video__title, .contact-form__title, .blog-card__title, .blog-archive__title, .blog-article__title,
.what_is_it-title, .what_we_doing-title, .why_us-card-title h3, .why_us-card-title h5,
.social-media-container h2, .pricelist h2, .faq h2, .why_us_what_give h2, .why_us_button h2, .what_is_it-contact h2,
.what_is_it-text h2, .politica h1, .why_us_what_give-item .text {
	font-family: var(--ui-serif); font-weight: 400; font-variant-numeric: lining-nums; text-transform: none; letter-spacing: 0; line-height: 1.1;
}
.usluga-img_content .page-title, .page-title.case, .why_us--about .why_us-card-title h3, body .blog-archive__title, body .blog-article__title {
	font-family: var(--ui-serif); font-weight: 400; font-variant-numeric: lining-nums; text-transform: none; letter-spacing: 0; line-height: 1.1;
}
h1, .page-title, .usluga-img_content .page-title, .page-title.case, .politica h1, body .blog-archive__title, body .blog-article__title { font-size: 34px; }
h2, .about_us-video__title, .contact-form__title, .social-media-container h2, .pricelist h2, .faq h2, .why_us_what_give h2, .why_us_button h2, .what_is_it-contact h2, .what_is_it-text h2, .usluga-pin-title, .our-works__title, .record-title { font-size: 34px; }
h3, .what_we_doing-card__title { font-size: 26px; }
@media (min-width: 900px) {
	h1, .page-title, .usluga-img_content .page-title, .page-title.case, .politica h1, body .blog-archive__title, body .blog-article__title { font-size: 52px; }
	h2, .about_us-video__title, .contact-form__title, .social-media-container h2, .pricelist h2, .faq h2, .why_us_what_give h2, .why_us_button h2, .what_is_it-contact h2, .what_is_it-text h2, .usluga-pin-title, .our-works__title, .record-title { font-size: 48px; }
	h3, .what_we_doing-card__title { font-size: 30px; }
}
.blog-article__content h2 { font-size: 28px; }
@media (min-width: 900px) {
	.blog-article__content h2 { font-size: 36px; }
}
/* FONT-2b: вопросы FAQ на старых страницах — как в v2 (.hm-q summary): Montserrat 600, 16px */
.faq-question { font-family: var(--ui-sans); font-weight: 600; font-size: 16px; line-height: 1.35; letter-spacing: normal; text-transform: none; font-variant-numeric: normal; }

/* DA-2: старый шаблон — первый экран и текст как на главной/v2 (поля 40 px — как у остальных секций старого шаблона).
   Область задаётся по разметке (у этих страниц у body нет классов шаблона):
   хаб услуги (single.php) — main с .usluga-img_content; /about_us/ — .about_us-video; /contacts/ — section.contacts.
   /uslugi/ (.sticky-scroll-wrapper) и /category/* (.what_we_doing) сюда не попадают. Откат: удалить блок DA-2. */
:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) > .uslugi-hero { margin-top: 0; }
:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) > .uslugi-hero > img,
:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) > .uslugi-hero > noscript,
:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) > .uslugi-hero .background-text { display: none; }
:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) .uslugi-hero_wrapper,
:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) .uslugi-hero_wrapper.var2 { padding: 24px 20px 20px; }
:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) .uslugi-hero .breadcrumbs { margin-bottom: 16px; }
:is(main:has(> .about_us-video), main:has(> section.contacts)) .uslugi-hero .page-title { margin: 0; text-align: left; }
@media (min-width: 900px) {
	:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) .uslugi-hero_wrapper,
	:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) .uslugi-hero_wrapper.var2 { padding: 40px 40px 24px; }
}
/* хаб: фото на первом экране, H1 слева внизу поверх затемнения, как в v2 */
main:has(> .usluga-img .usluga-img_content) > .usluga-img { margin-top: 0; padding: 0 20px; justify-content: flex-start; }
main:has(> .usluga-img .usluga-img_content) > .usluga-img img { height: 52vh; min-height: 360px; max-height: 520px; }
main:has(> .usluga-img .usluga-img_content) > .usluga-img::after { left: 20px; right: 20px; background: linear-gradient(180deg, rgba(20, 36, 28, 0.1) 30%, rgba(20, 36, 28, 0.88) 100%); }
main:has(> .usluga-img .usluga-img_content) .usluga-img_content { top: auto; bottom: 24px; left: 40px; right: 40px; width: auto; max-width: 720px; transform: none; text-align: left; }
main:has(> .usluga-img .usluga-img_content) .usluga-img_content .page-title { color: var(--ui-text); text-align: left; letter-spacing: 0; }
main:has(> .usluga-img .usluga-img_content) .usluga-img_content .hero-subtitle { margin: 12px 0 0; font-size: 16px !important; line-height: 1.5; color: var(--ui-text); opacity: 0.9; }
@media (min-width: 900px) {
	main:has(> .usluga-img .usluga-img_content) > .usluga-img { padding: 0 40px; }
	main:has(> .usluga-img .usluga-img_content) > .usluga-img img { height: 62vh; min-height: 420px; max-height: 600px; }
	main:has(> .usluga-img .usluga-img_content) > .usluga-img::after { left: 40px; right: 40px; background: linear-gradient(90deg, rgba(20, 36, 28, 0.88) 0%, rgba(20, 36, 28, 0.55) 45%, rgba(20, 36, 28, 0.1) 100%); }
	main:has(> .usluga-img .usluga-img_content) .usluga-img_content { bottom: 48px; left: 88px; right: auto; }
}
/* хаб: основной текст 16 px, влево; надписи и h2 тоже влево (как на главной) */
main:has(> .usluga-img .usluga-img_content) .what_is_it { padding: 0 20px; }
main:has(> .usluga-img .usluga-img_content) .what_is_it.usluga { padding-top: 64px; }
main:has(> .usluga-img .usluga-img_content) .text-mini { text-align: left; }
main:has(> .usluga-img .usluga-img_content) .what_is_it-title { margin: 12px 0 20px; max-width: 900px; text-align: left; }
main:has(> .usluga-img .usluga-img_content) .what_is_it-text { max-width: 760px; margin: 0; font-size: 16px; line-height: 1.6; text-align: left; }
@media (min-width: 900px) {
	main:has(> .usluga-img .usluga-img_content) .what_is_it { padding: 0 40px; }
	main:has(> .usluga-img .usluga-img_content) .what_is_it.usluga { padding-top: 96px; }
}
/* декоративные линии: размер до lazyload (1920×18), чтобы заглушка 1×1 не растягивалась в квадрат */
:is(main:has(> .usluga-img .usluga-img_content), main:has(> .about_us-video), main:has(> section.contacts)) img.our-works__line { height: auto; aspect-ratio: 1920 / 18; }
main:has(> .usluga-img .usluga-img_content) :is(.why_us_what_give, .why_us) > :is(h2, p) { text-align: left; }
main:has(> .usluga-img .usluga-img_content) :is(.why_us_what_give > p, .why_us > p.why_us-text, .faq-answer > div, .what_we_doing-card__text) { font-size: 16px; line-height: 1.6; }
main:has(> .usluga-img .usluga-img_content) .why_us_what_give > p.sale { font-size: 20px; }
main:has(> .about_us-video) .what_is_it-text { font-size: 16px; line-height: 1.6; text-align: left; }
main:has(> .about_us-video) .what_is_it-text p { text-align: left; }
/* DA-2 (2/2): хаб кейсов — /our_cases/ (main с .cases-section) и страница кейса (body.single-cases). */
:is(main:has(> .cases-section), .single-cases main) > .uslugi-hero { margin-top: 0; }
:is(main:has(> .cases-section), .single-cases main) > .uslugi-hero > img,
:is(main:has(> .cases-section), .single-cases main) > .uslugi-hero > noscript,
:is(main:has(> .cases-section), .single-cases main) > .uslugi-hero .background-text { display: none; }
:is(main:has(> .cases-section), .single-cases main) .uslugi-hero_wrapper { padding: 24px 20px 20px; }
:is(main:has(> .cases-section), .single-cases main) .uslugi-hero .breadcrumbs { margin-bottom: 16px; }
:is(main:has(> .cases-section), .single-cases main) .uslugi-hero .page-title { margin: 0; text-align: left; }
.single-cases .uslugi-hero .subfilter-block { margin-top: 16px; }
@media (min-width: 900px) {
	:is(main:has(> .cases-section), .single-cases main) .uslugi-hero_wrapper { padding: 40px 40px 24px; }
}
/* галерея кейса: одинаковые кадры 384×420 (на телефоне 78% ширины), одинаковые отступы */
.single-cases .gallery-case { gap: 12px; padding: 0 20px; scroll-padding-left: 20px; }
.single-cases .gallery-case .slide-case { flex: 0 0 auto; width: auto; }
.single-cases .gallery-case img, .single-cases .gallery-case .slide-case img { width: min(384px, 78vw); height: auto; aspect-ratio: 384 / 420; flex: none; object-fit: cover; }
@media (min-width: 900px) {
	.single-cases .gallery-case { padding: 0 40px; scroll-padding-left: 40px; }
}
/* текст кейса: 16 px, влево */
.single-cases .what_is_it .text-mini, .single-cases .what_is_it-title { text-align: left; }
.single-cases .what_is_it-title { margin: 12px 0 20px; max-width: 900px; }
.single-cases .what_is_it-text { max-width: 760px; margin: 0; font-size: 16px; line-height: 1.6; text-align: left; }
.single-cases .what_is_it-text p { text-align: left; }
:is(main:has(> .cases-section), .single-cases main) img.our-works__line { height: auto; aspect-ratio: 1920 / 18; }
/* список кейсов: резиновая сетка, кадры 4:3, край совпадает с заголовком */
main:has(> .cases-section) .cards-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; max-width: none; padding: 0 20px; justify-content: stretch; }
main:has(> .cases-section) .cases-page .card img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
	main:has(> .cases-section) .cards-grid { padding: 0 40px; }
}

/* FIX-UI-1 п.1: таблицы в статьях блога (≤768, включая ровно 768) и в раскрытых FAQ услуг прокручиваются внутри своего контейнера, страница не шире окна */
@media (max-width: 768px) {
	.blog-article__content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
	.blog-article__content th, .blog-article__content td { min-width: 150px; padding: 12px; }
	.blog-article__content figure.wp-block-table, .blog-article__content .article-table-wrap { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 768px) {
	.sv2-text table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; border-collapse: collapse; }
	.sv2-text th, .sv2-text td { padding: 8px 10px 8px 0; vertical-align: top; text-align: left; overflow-wrap: break-word; }
}

/* FIX-UI-1 п.2: последняя хлебная крошка (длинное название) переносится, а не обрезается справа */
.breadcrumbs span:last-child { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.sv2-crumbs li:last-child { min-width: 0; overflow-wrap: anywhere; }

/* FIX-UI-1 п.3: отступы заголовок → текст → абзац в текстовых блоках услуги и рубрики.
   Заголовок→текст 20px — как у .what_is_it-title соседнего блока «Что такое…»; абзац 14px и отступ над заголовком 28px — как в .sv2-text */
:is(.text_remont_skolov, .overlap-section) .what_is_it-text :is(h2, h3) { margin: 28px 0 20px; }
:is(.text_remont_skolov, .overlap-section) .what_is_it-text > :is(h2, h3):first-child,
:is(.text_remont_skolov, .overlap-section) .what_is_it-text > section:first-child > :is(h2, h3):first-child { margin-top: 0; }
:is(.text_remont_skolov, .overlap-section) .what_is_it-text :is(p, ul, ol) { margin: 0 0 14px; }
:is(.text_remont_skolov, .overlap-section) .what_is_it-text li + li { margin-top: 14px; }
:is(.text_remont_skolov, .overlap-section) .what_is_it-text :is(p, ul, ol):last-child { margin-bottom: 0; }

/* FIX-UI-1 п.5: cookie-плашка компактнее на телефоне/планшете: кнопки в одну строку, текст 12px, зона касания 44px */
@media (max-width: 768px) {
	#prive-cc #prive-cc__pad { padding: 10px 14px; }
	#prive-cc #prive-cc__main { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
	#prive-cc #prive-cc__main p { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.4; }
	#prive-cc #prive-cc__main .prive-cc__all { min-height: 44px; padding: 0 10px; font-size: 12px; }
	#prive-cc #prive-cc__main #prive-cc__open-settings { width: auto; min-height: 44px; margin: 0; padding: 0 8px; font-size: 12px; }
	#prive-cc #prive-cc__save { min-height: 44px; font-size: 12px; }
}

/* FIX-UI-1 п.6: зоны касания ≥ 44 px на телефоне/планшете. Ссылки без рамки — через padding с обратным margin (вид не меняется), чипы и кнопки с рамкой — min-height */
@media (max-width: 768px) {
	.sv2-crumbs a, .breadcrumbs a, .blog-article__breadcrumbs a, .blog-archive__breadcrumbs a { display: inline-block; padding: 16px 8px; margin: -16px -8px; }
	.pf-find__tel a { display: inline-block; padding: 14px 0; margin: -14px 0; }
	.pf-msg a { display: inline-block; padding: 14px 8px; margin: -14px -8px; }
	.hm-rev2__all a { display: inline-block; padding: 14px 0; margin: -14px 0; }
	.what_we_doing-card__button { padding: 16px 0; margin: -16px 0; }
	.our-works__all { padding-block: 14px; margin-block: -14px; }
	.subfilters-container .subfilter-btn { min-height: 44px; }
	.subfilters-container a.subfilter-btn { display: inline-flex; align-items: center; }
	nav.blog-category-nav a.blog-category-nav__link { min-height: 44px; }
	body .blog-pagination a, body .blog-pagination .current { min-width: 44px; height: 44px; }
}

/* FIX-UI-1 п.7: основной текст на телефоне не мельче 14px (сноски и источники остаются 12px) */
@media (max-width: 480px) {
	.sv2-price__note, .sv2-price__term, .sv2-narrow .hm-eb, .hm-btn2, .blog-card__meta, .hero__facts { font-size: 14px; }
}

/* FIX-UI-1 п.1 (дополнение): ссылки в тексте раскрытого FAQ переносятся, а не уходят за правый край (было white-space: nowrap) */
.sv2-text p a { white-space: normal; overflow-wrap: anywhere; }

/* FIX-UI-1 п.6 (дополнение): зона касания ≥ 44 px у телефона и «Написать» на /contacts/ и у разделителей крошек блога (разделитель не перекрывается ссылкой) */
@media (max-width: 768px) {
	.contact-form__contacts a { padding-block: 10px; margin-block: -10px; }
	.blog-article__breadcrumbs > span, .blog-archive__breadcrumbs > span { position: relative; z-index: 1; }
}

/* CONTACTS-1: пункт меню «Контакты» ведёт к блоку «Как нас найти» (#contacts в подвале).
   html уже прокручивает якоря с отступом var(--hdr) — 60 px на ≤899 и 76 px на ≥900 (высота sticky-шапки); +16 px воздуха над заголовком. */
#contacts { scroll-margin-top: 16px; }

/* CASES-GRID-1: /our_cases/ — сетка как в ленте Инстаграма: плитки на всю ширину, зазор 2 px, квадрат, подпись поверх фото.
   Старые правила style.css не удалены — перекрыты префиксом main:has(> .cases-section). Фильтры остаются с боковыми полями 20 / 40 px. */
main:has(> .cases-section) .cases-section { max-width: none; padding-left: 0; padding-right: 0; }
main:has(> .cases-section) #subfiltersWrapper { padding: 0 20px; }
main:has(> .cases-section) .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0; max-width: none; margin: 0; }
main:has(> .cases-section) .cases-page .card-link { display: block; position: relative; color: var(--ui-text); text-decoration: none; }
main:has(> .cases-section) .cases-page .card { position: relative; aspect-ratio: 1 / 1; overflow: hidden; margin: 0; border: 0; border-radius: 0; background: #14241c; }
main:has(> .cases-section) .cases-page .card img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: 0; }
main:has(> .cases-section) .cases-page .card-text {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 48px 14px 0;
	border-bottom: 12px solid transparent; /* нижний отступ рамкой: line-clamp режет по padding-box, 3-я строка не выглядывает */
	background: linear-gradient(to top, rgba(10, 18, 14, 0.85) 0%, rgba(10, 18, 14, 0.5) 55%, transparent 100%) border-box;
	color: var(--ui-text); font: 500 13px/1.3 var(--ui-sans); text-align: left;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
main:has(> .cases-section) .cases-page .card-link:focus-visible { outline: none; }
main:has(> .cases-section) .cases-page .card-link:focus-visible .card { outline: 2px solid var(--ui-accent); outline-offset: -4px; }
main:has(> .cases-section) .slider-nav { margin-top: 32px; padding: 0 20px; }
@media (hover: hover) {
	main:has(> .cases-section) .cases-page .card img { transition: transform 0.4s ease; }
	main:has(> .cases-section) .cases-page .card-link:hover .card img { transform: scale(1.04); }
	main:has(> .cases-section) .cases-page .card-link:hover .card-text { background: linear-gradient(to top, rgba(10, 18, 14, 0.92) 0%, rgba(10, 18, 14, 0.6) 55%, transparent 100%) border-box; }
}
@media (prefers-reduced-motion: reduce) {
	main:has(> .cases-section) .cases-page .card img { transition: none; }
}
@media (min-width: 700px) {
	main:has(> .cases-section) .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	main:has(> .cases-section) .cases-page .card-text { padding: 64px 18px 0; border-bottom-width: 16px; font-size: 15px; }
}
@media (min-width: 900px) {
	main:has(> .cases-section) #subfiltersWrapper { padding: 0 40px; }
	main:has(> .cases-section) .cards-grid { padding: 0; }
	main:has(> .cases-section) .slider-nav { padding: 0 40px; }
}
@media (min-width: 1200px) {
	main:has(> .cases-section) .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* PRIGON-PAGE: блоки страницы v2 (ACF sv2_blocks) и призыв из поля */
.sv2-text + .sv2-why, .sv2-text + .sv2-btns, .sv2-why + .sv2-btns { margin-top: 24px; }
.sv2-price__rows:only-child { margin-top: 0; }
.sv2-price__rows:only-child li:last-child { border-bottom: 0; }
.hm-cta .sv2-cta__h { max-width: 920px; font-size: 28px; line-height: 1.2; }
@media (min-width: 900px) {
	.hm-cta .sv2-cta__h { font-size: 40px; }
}

/* PRIGON-MAP: карта мира + вкладки стран (/prigon/). Высота карты и панели зарезервированы — без сдвига при загрузке */
.pm-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 3px; margin: -3px; }
.pm-tabs::-webkit-scrollbar { display: none; }
.pm-tab { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--ui-line); background: transparent; color: var(--ui-text); font: 500 13px/1 var(--ui-sans); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.pm-tab:hover { border-color: var(--ui-accent); }
.pm-tab[aria-selected="true"] { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-bg); }
.pm-tab:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }
.pm-map { margin: 20px -20px 0; aspect-ratio: 16 / 10; background: var(--ui-bg); overflow: hidden; }
.pm-svg { display: block; width: 100%; height: 100%; }
.pm-d { fill: none; stroke-linecap: round; stroke-width: 3.3; }
.pm-d--base { stroke: #28412f; }
.pm-d--r { stroke: #4a6d58; transition: stroke 0.4s ease; }
.pm-d--r[data-r="koreya"] { stroke-width: 4.6; } /* Южная Корея в 110m — 5 точек сетки */
.pm-svg[data-r="evropa"] .pm-d--r[data-r="evropa"], .pm-svg[data-r="yaponiya"] .pm-d--r[data-r="yaponiya"], .pm-svg[data-r="kitay"] .pm-d--r[data-r="kitay"],
.pm-svg[data-r="usa"] .pm-d--r[data-r="usa"], .pm-svg[data-r="koreya"] .pm-d--r[data-r="koreya"] { stroke: var(--ui-accent); }
.pm-arc { fill: none; stroke: var(--ui-accent); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.pm-arc.is-on { opacity: 1; animation: pm-draw 0.9s ease-out forwards; }
.pm-msk__dot { fill: var(--ui-accent); }
.pm-msk__pulse { fill: var(--ui-accent); transform-box: fill-box; transform-origin: center; animation: pm-pulse 2.2s ease-out infinite; }
.pm-msk__t { fill: var(--ui-text); font-family: var(--ui-sans); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pm-panels { margin-top: 28px; min-height: 330px; }
.pm-panel:not(.is-on) { display: none; }
.pm-panel.is-on { animation: pm-fade 0.2s ease; }
.pm-panel .sv2-btns { margin-top: 24px; }
@keyframes pm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pm-pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(4); opacity: 0; } }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 900px) {
	.pm-map { margin: 24px 0 0; aspect-ratio: 2 / 1; }
	.pm-panels { max-width: 820px; min-height: 250px; }
}
/* PRIGON-MAP-2COL: на мониторе карта и текст страны в один экран — карта слева, панель справа */
@media (min-width: 1100px) {
	.pm > .hm-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 48px; align-items: center; }
	.pm .pm-tabs { grid-column: 1 / -1; }
	.pm-map { aspect-ratio: 16 / 10; max-height: calc(100vh - 220px); max-height: calc(100svh - 220px); }
	.pm-panels { max-width: none; min-height: 0; margin-top: 24px; }
	.pm-panel .hm-h2 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-arc.is-on { animation: none; stroke-dashoffset: 0; }
	.pm-panel.is-on, .pm-msk__pulse { animation: none; }
	.pm-msk__pulse { opacity: 0; }
	.pm-d--r, .pm-tab { transition: none; }
}

/* PRIGON-ROUTE: этапы маршрутом. Без JS — все этапы видны; с JS — загораются, когда доезжает машина */
.pr-route { position: relative; margin-top: 32px; }
.pr-route__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pr-route__stop { position: relative; padding-left: 44px; font-size: 15px; line-height: 1.5; color: var(--ui-text); }
.pr-route__stop .sv2-why__n { display: block; margin-bottom: 6px; font-size: 24px; }
.pr-route__dot { position: absolute; left: 4px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ui-accent); border: 2px solid var(--ui-accent); box-sizing: border-box; transition: background 0.3s, border-color 0.3s; }
.pr-route__line { position: absolute; left: 10px; top: 13px; bottom: 40px; width: 2px; background: rgba(235, 229, 215, 0.16); }
.pr-route__fill { position: absolute; inset: 0; background: var(--ui-accent); transform-origin: 0 0; }
.pr-route__car { position: absolute; left: 0; top: 0; display: none; width: 44px; height: 24px; color: var(--ui-accent); pointer-events: none; will-change: transform; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)); }
.pr-route__car svg { display: block; }
.pr-route.is-js .pr-route__car { display: block; }
.pr-route.is-js .pr-route__stop .sv2-why__n, .pr-route.is-js .pr-route__t { opacity: 0.38; transition: opacity 0.35s; }
.pr-route.is-js .pr-route__dot { background: var(--ui-bg); border-color: rgba(235, 229, 215, 0.35); }
.pr-route.is-js .pr-route__stop.is-on .sv2-why__n, .pr-route.is-js .pr-route__stop.is-on .pr-route__t { opacity: 1; }
.pr-route.is-js .pr-route__stop.is-on .pr-route__dot { background: var(--ui-accent); border-color: var(--ui-accent); }
@media (min-width: 900px) {
	.pr-route { margin-top: 44px; }
	.pr-route__stops { grid-template-columns: repeat(var(--n, 6), 1fr); gap: 20px; }
	.pr-route__stop { padding: 48px 0 0; }
	.pr-route__dot { left: 0; top: 13px; }
	.pr-route__line { left: 7px; right: calc((100% - (var(--n, 6) - 1) * 20px) / var(--n, 6) - 7px); top: 19px; bottom: auto; width: auto; height: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.pr-route__dot, .pr-route.is-js .pr-route__t, .pr-route.is-js .pr-route__stop .sv2-why__n { transition: none; }
}

.case-collection .cases-section { padding-top: 0; }
.case-collection__services { padding: 0 20px; }
.case-collection__services { margin-top: 32px; }
.case-collection__services .hm-h2 { margin: 0 0 16px; }
.case-collection :is(.subfilter-btn, .hm-btn2), #subfiltersWrapper .subfilter-btn { min-height: 44px; }
.case-collection .hm-cta { margin-top: 40px; }
@media (min-width: 900px) {
	.case-collection__services { padding-inline: 40px; }
}
.case-collection__filter { margin: 16px 0 24px; }
.case-collection__brand { margin: 0 0 12px; }
.case-collection__filter summary { width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--ui-accent); }
.case-collection__filter .subfilters-container { margin-top: 8px; }
@media (max-width: 500px) {
	.case-collection__models .subfilter-btn { padding-inline: 12px; }
}

.case-collection__service-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 4px;
	color: var(--ui-accent);
	text-underline-offset: 0.2em;
}
#brand-services, #zeekr-9x-podiums { scroll-margin-top: 80px; }
#zeekr-9x-podiums { margin-bottom: 32px; }
.zeekr-podiums-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.zeekr-podiums-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) {
	.zeekr-podiums-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#brand-services a { color: var(--ui-accent); text-underline-offset: 0.2em; }
#brand-services li + li { margin-top: 8px; }

#storage-order { scroll-margin-top: 100px; }
.storage-form, .bmw-vin-form { width: min(100%, 560px); text-align: left; }
.storage-fields, .bmw-vin-fields { display: grid; gap: 16px; }
.storage-fields > div > label, .bmw-vin-fields > div > label { display: block; margin-bottom: 6px; }
:is(.storage-fields, .bmw-vin-fields) input:is([type="text"], [type="tel"]) { box-sizing: border-box; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ui-line); background: var(--ui-bg); color: var(--ui-text); font: inherit; }
.storage-fields:not(:has(input[name="storage-tow"][value="Да"]:checked)) .storage-pickup { display: none; }
.storage-tow { min-width: 0; margin: 0; padding: 0; border: 0; }
.storage-tow legend { padding: 0; }
.storage-tow .wpcf7-list-item { margin: 0 8px 0 0; }
.storage-tow label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--ui-line); cursor: pointer; }
.storage-tow label:has(input:checked) { background: var(--ui-accent); color: var(--ui-bg); }
.storage-consent { font-size: 14px; }
.storage-consent .wpcf7-list-item { margin: 0; }
.storage-consent a { color: inherit; text-decoration: underline; }
:is(.storage-fields, .bmw-vin-fields) .btn { justify-self: start; }
:is(.storage-fields, .bmw-vin-fields) .btn:disabled { opacity: .63; }
:is(.storage-fields, .bmw-vin-fields) .wpcf7-not-valid-tip { color: #ffd2c6; }
:is(.storage-fields, .bmw-vin-fields) .wpcf7-response-output { margin: 0; }

#bmw-retrofit, #bmw-vin { scroll-margin-top: 80px; }
.bmw-retrofit { margin-bottom: 36px; }
.bmw-retrofit-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
	gap: 12px;
	margin: 24px 0;
}
.bmw-retrofit-card {
	display: block;
	padding: 20px;
	border: 1px solid rgba(233, 219, 192, 0.3);
	color: var(--ui-text);
	text-decoration: none;
}
.bmw-retrofit-card:hover, .bmw-retrofit-card:focus-visible { border-color: var(--ui-accent); }
.bmw-retrofit-card h3 { margin: 0 0 8px; color: var(--ui-accent); }
.bmw-retrofit-card p { margin: 0; line-height: 1.5; }
.bmw-retrofit-vin { padding-top: 24px; }
.bmw-retrofit-vin .hm-cta__btns { justify-content: flex-start; margin-top: 20px; }

.bmw-vin-form { margin-top: 20px; }
