/*
Theme Name: Autodomvag Clean
Theme URI: https://autodomvag.ru
Author: Autodomvag Team
Description: Чистая тема автосервиса VAG: семантическая вёрстка, один CSS, адаптив из коробки.
Version: 1.0.0
Text Domain: adv
*/

/* ============================================================
   1. ТОКЕНЫ И СБРОС
   ============================================================ */
:root {
	--navy-950: #060d1f;
	--navy-900: #0a1628;
	--navy-800: #0f1c33;
	--navy-700: #16264a;
	--navy-line: rgba(96, 165, 250, .16);

	--blue-700: #1d4ed8;
	--blue-600: #2563eb;
	--blue-500: #3b82f6;
	--blue-400: #60a5fa;

	--text-hi:  #f8fafc;
	--text-mid: #94a3b8;
	--text-lo:  #64748b;
	--ink:      #0f1729;

	--bg-light: #f1f5f9;
	--card:     #ffffff;
	--border:   #e2e8f0;

	--grad-blue: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);

	--radius:    16px;
	--radius-sm: 11px;

	--font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--container: 1240px;
	--header-h:  84px;
	--mobbar-h:  62px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-hi);
	background: var(--navy-900);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

img, svg, iframe, video { max-width: 100%; height: auto; display: block; }
img { border: 0; }

a { color: var(--blue-400); text-decoration: none; }
a:hover { color: var(--blue-500); }

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

/* Заголовки секций */
.sec { padding: 72px 0; }
.sec--light { background: var(--bg-light); color: var(--ink); }
.sec--light .sec-sub { color: var(--text-lo); }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sec-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 11px; font-weight: 700; letter-spacing: .22em;
	text-transform: uppercase; color: var(--blue-400);
	padding: 6px 14px; border: 1px solid var(--navy-line);
	border-radius: 30px; background: rgba(37, 99, 235, .1);
	margin-bottom: 14px;
}
.sec--light .sec-eyebrow { color: var(--blue-700); border-color: #dbeafe; background: #eff6ff; }
.sec-title {
	font-size: clamp(24px, 3.2vw, 38px); font-weight: 800;
	line-height: 1.15; letter-spacing: -.01em; margin-bottom: 12px;
}
.sec-sub { color: var(--text-mid); font-size: 15.5px; }

/* ============================================================
   2. КНОПКИ
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 24px;
	border-radius: var(--radius-sm); border: 0;
	font-family: var(--font); font-size: 14px; font-weight: 800;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, .35); }
.btn--primary:hover { transform: translateY(-2px); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid var(--navy-line); color: var(--text-hi); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sec--light .btn--ghost { border-color: #cbd5e1; color: var(--ink); }
.sec--light .btn--ghost:hover { background: #f8fafc; color: var(--ink); }
.btn--wa { background: #25d366; color: #06281a; }
.btn--wa:hover { color: #06281a; filter: brightness(1.05); }

/* ============================================================
   3. ШАПКА
   ============================================================ */
.topbar {
	background: var(--navy-950);
	border-bottom: 1px solid rgba(96, 165, 250, .1);
	font-size: 13px; color: var(--text-mid);
}
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: var(--text-mid); }
.topbar__item a, .topbar__item a:hover { color: var(--text-hi); }
.topbar__dot { color: rgba(148, 163, 184, .4); }
.topbar__soc { margin-left: auto; display: flex; gap: 8px; }
.topbar__soc a {
	display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center;
	border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--text-mid);
}
.topbar__soc a:hover { background: var(--blue-600); color: #fff; }
.topbar__soc svg { width: 13px; height: 13px; }

.header {
	position: sticky; top: 0; z-index: 1000;
	background: rgba(10, 22, 40, .96);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--navy-line);
}
.header__in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { color: #fff; }
.logo__mark {
	width: 44px; height: 44px; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center;
	border-radius: 12px; background: var(--grad-blue);
	box-shadow: 0 8px 18px rgba(37, 99, 235, .4);
}
.logo__mark svg { width: 26px; height: 26px; color: #fff; }
.logo__name {
	font-size: 21px; font-weight: 800; letter-spacing: .02em;
	line-height: 1.05; color: var(--text-hi);
}
.logo__name span { color: var(--blue-400); }
.logo__sub {
	font-size: 10px; font-weight: 700; letter-spacing: .24em;
	text-transform: uppercase; color: var(--text-mid); margin-top: 3px;
}

.header__phone { margin-left: auto; text-align: right; }
.header__phone-label { font-size: 10.5px; color: var(--text-mid); letter-spacing: .06em; text-transform: uppercase; }
.header__phone-num { font-size: 18px; font-weight: 800; color: var(--text-hi); line-height: 1.2; }
.header__phone-num a, .header__phone-num a:hover { color: var(--text-hi); }
.header__phone-extra { font-size: 12.5px; color: var(--text-mid); }
.header__phone-extra a { color: var(--text-mid); }
.header__phone-extra a:hover { color: var(--text-hi); }

/* Навигация */
.nav { background: var(--navy-800); border-bottom: 1px solid var(--navy-line); }
.nav__in { display: flex; align-items: center; gap: 4px; }
.nav__link {
	position: relative;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 13px 16px;
	font-size: 13.5px; font-weight: 700; color: var(--text-mid);
	border-radius: 0;
}
.nav__link:hover, .nav__link.is-active { color: #fff; background: rgba(37, 99, 235, .12); }
.nav__link svg { width: 10px; height: 10px; opacity: .7; }

.nav__dropdown {
	position: absolute; top: 100%; left: 0;
	min-width: 340px; padding: 8px;
	background: #fff; border-radius: 12px;
	box-shadow: 0 24px 60px rgba(2, 8, 20, .45);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 60;
}
.nav__item { position: relative; }
.nav__item:hover .nav__dropdown, .nav__item:focus-within .nav__dropdown {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dropdown a {
	display: block; padding: 9px 14px; border-radius: 8px;
	font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.nav__dropdown a:hover { background: #eff6ff; color: var(--blue-700); }

/* Бургер */
.burger {
	display: none;
	width: 44px; height: 44px; flex: 0 0 auto;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px;
	background: rgba(255, 255, 255, .07); border: 1px solid var(--navy-line);
	border-radius: 10px; cursor: pointer;
}
.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню (off-canvas) */
.mmenu {
	position: fixed; inset: 0; z-index: 2000;
	background: var(--navy-950);
	padding: calc(var(--header-h) + 16px) 20px 32px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .25s ease;
	visibility: hidden;
}
.mmenu.is-open { transform: translateX(0); visibility: visible; }
.mmenu__group { margin-bottom: 18px; }
.mmenu__group-title {
	font-size: 11px; font-weight: 700; letter-spacing: .2em;
	text-transform: uppercase; color: var(--text-lo); margin: 0 0 8px 14px;
}
.mmenu__link {
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px; width: 100%;
	padding: 13px 14px; border-radius: 10px;
	font-family: var(--font); font-size: 15.5px; font-weight: 700; line-height: 1.3;
	color: var(--text-hi); text-align: left; text-decoration: none;
	background: transparent; border: 0; cursor: pointer;
	-webkit-appearance: none; appearance: none;
}
.mmenu__link:hover { background: rgba(37, 99, 235, .14); color: #fff; }
.mmenu__link svg { width: 12px; height: 12px; opacity: .6; transition: transform .2s; }
.mmenu__sub { display: none; padding: 2px 0 6px 14px; }
.mmenu__sub.is-open { display: block; }
.mmenu__sub a {
	display: block; padding: 9px 14px; border-radius: 8px;
	font-size: 14px; color: var(--text-mid);
}
.mmenu__sub a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.mmenu__cta { display: grid; gap: 10px; margin-top: 24px; }

/* ============================================================
   4. HERO + АКЦИИ
   ============================================================ */
.hero {
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(37, 99, 235, .28), transparent 60%),
		radial-gradient(700px 380px at -10% 110%, rgba(37, 99, 235, .14), transparent 60%),
		linear-gradient(180deg, #0d1a35 0%, var(--navy-900) 100%);
	padding: 76px 0 64px;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }

.hero h1 {
	font-size: clamp(28px, 3.6vw, 44px); font-weight: 800;
	line-height: 1.12; letter-spacing: -.015em; margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--blue-400); }
.hero__text { color: var(--text-mid); font-size: 16.5px; max-width: 560px; margin-bottom: 28px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__note { font-size: 13px; color: var(--text-lo); }

/* Карточка акции */
.promo {
	position: relative; overflow: hidden;
	border-radius: var(--radius);
	background: linear-gradient(160deg, var(--navy-800), #0b1226 70%);
	border: 1px solid var(--navy-line);
	box-shadow: 0 30px 60px rgba(2, 8, 20, .5);
	min-height: 320px;
	display: flex; flex-direction: column; justify-content: center;
	padding: 36px 34px;
}
.promo::before {
	content: ""; position: absolute; inset: -40% -30% auto auto;
	width: 320px; height: 320px; border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 246, .35), transparent 65%);
	pointer-events: none;
}
.promo__badge {
	position: absolute; top: 20px; left: 20px;
	font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
	color: var(--blue-400);
}
.promo__title {
	font-size: clamp(20px, 2.2vw, 27px); font-weight: 800;
	line-height: 1.2; margin-bottom: 10px; max-width: 88%;
}
.promo__price {
	font-size: clamp(30px, 3vw, 42px); font-weight: 800;
	background: var(--grad-blue);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
	margin-bottom: 8px;
}
.promo__cond { color: var(--text-mid); font-size: 14px; max-width: 85%; }
.promo__dots { display: flex; gap: 7px; margin-top: 26px; }
.promo__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: rgba(148, 163, 184, .35); cursor: pointer;
	border: 0; padding: 0;
}
.promo__dot.is-active { background: var(--blue-500); width: 22px; border-radius: 5px; }

/* Полоса доверия */
.trust { border-top: 1px solid var(--navy-line); background: var(--navy-900); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0; }
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__num {
	font-size: 26px; font-weight: 800; color: var(--blue-400); line-height: 1;
	min-width: 64px;
}
.trust__text { font-size: 13px; color: var(--text-mid); line-height: 1.45; }

/* ============================================================
   5. О НАС (почему выбирают) + коллаж
   ============================================================ */
.about__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.about__lead { font-size: 17px; line-height: 1.65; margin-bottom: 26px; }
.about__feats { display: grid; gap: 16px; margin-bottom: 30px; }
.about__feat { display: flex; gap: 16px; align-items: flex-start; }
.about__feat-ic {
	flex: 0 0 auto; width: 46px; height: 46px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 12px; background: #eff6ff; color: var(--blue-600);
}
.about__feat-ic svg { width: 22px; height: 22px; }
.about__feat b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.about__feat p { font-size: 14px; color: var(--text-lo); }
.about__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.about__phone { font-size: 20px; font-weight: 800; color: var(--ink); }

.collage { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 14px; }
.collage__ph {
	position: relative; overflow: hidden; border-radius: 14px;
	background: var(--navy-800);
}
.collage__ph img { width: 100%; height: 100%; object-fit: cover; }
.collage__ph--tall { grid-row: span 2; }
.collage__cap {
	position: absolute; left: 10px; right: 10px; bottom: 10px;
	padding: 7px 12px; border-radius: 9px;
	background: rgba(6, 13, 31, .72);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	font-size: 12px; font-weight: 600; color: #e2e8f0;
}

/* ============================================================
   6. УСЛУГИ
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc {
	display: flex; flex-direction: column; gap: 12px;
	padding: 22px 20px;
	background: var(--navy-800); border: 1px solid var(--navy-line);
	border-radius: var(--radius);
	text-decoration: none; color: var(--text-hi);
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.svc:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, .45); background: #12203c; color: #fff; }
.svc__ic {
	width: 46px; height: 46px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(37, 99, 235, .16); color: var(--blue-400);
}
.svc__ic svg { width: 23px; height: 23px; }
.svc b { font-size: 15px; font-weight: 700; line-height: 1.35; }
.svc span { font-size: 12.5px; color: var(--text-mid); line-height: 1.45; }
.svc__more { margin-top: auto; font-size: 12.5px; font-weight: 700; color: var(--blue-400); }

/* ============================================================
   7. ПРИЧИНЫ И ПРЕИМУЩЕСТВА
   ============================================================ */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.reason {
	position: relative;
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 26px 26px 26px 30px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.reason__num {
	position: absolute; top: 18px; right: 22px;
	font-size: 40px; font-weight: 800; line-height: 1;
	color: #e2e8f0;
}
.reason b { display: block; font-size: 16.5px; color: var(--ink); margin-bottom: 8px; padding-right: 60px; }
.reason p { font-size: 14.5px; color: var(--text-lo); }

.advs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv-card {
	background: var(--navy-800); border: 1px solid var(--navy-line);
	border-radius: var(--radius); padding: 24px 22px;
}
.adv-card__ic {
	width: 48px; height: 48px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: var(--grad-blue); color: #fff;
	box-shadow: 0 10px 22px rgba(37, 99, 235, .35);
	margin-bottom: 14px;
}
.adv-card__ic svg { width: 24px; height: 24px; }
.adv-card b { display: block; font-size: 15.5px; margin-bottom: 7px; }
.adv-card p { font-size: 13.5px; color: var(--text-mid); }

/* ============================================================
   8. БРЕНДЫ
   ============================================================ */
.brands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.brand {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 22px 14px 18px;
	text-align: center; text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.brand:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }
.brand__img {
	height: 58px; display: flex; align-items: center; justify-content: center;
	margin-bottom: 12px;
}
.brand__img img { max-height: 58px; width: auto; object-fit: contain; }
.brand b { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.brand span { display: block; font-size: 11.5px; color: var(--text-lo); margin-top: 3px; }

/* ============================================================
   9. ВЫПОЛНЕННЫЕ РАБОТЫ (карусель)
   ============================================================ */
.works__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.works__title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; }
.works__rating {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 9px 16px; border-radius: 30px;
	background: rgba(255, 255, 255, .05); border: 1px solid var(--navy-line);
	font-size: 13.5px; font-weight: 700;
}
.works__stars { color: #fbbf24; letter-spacing: 2px; }
.works__rating a { color: var(--blue-400); font-weight: 600; }
.works__nav { display: flex; gap: 10px; }
.works__btn {
	width: 44px; height: 44px; border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line);
	color: #fff; cursor: pointer;
}
.works__btn:hover { background: var(--blue-600); border-color: var(--blue-600); }
.works__btn svg { width: 20px; height: 20px; }

.works__track {
	display: flex; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none;
	padding-bottom: 6px;
}
.works__track::-webkit-scrollbar { display: none; }
.works__item {
	flex: 0 0 340px; scroll-snap-align: start;
	border-radius: 14px; overflow: hidden;
	background: var(--navy-800); border: 1px solid var(--navy-line);
}
.works__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.works__cap { padding: 12px 16px; font-size: 13px; color: var(--text-mid); }

/* ============================================================
   10. ФОРМА ЗАПИСИ (CF7)
   ============================================================ */
.book { background: var(--bg-light); color: var(--ink); }
.book__card {
	max-width: 860px; margin: 0 auto;
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 44px 42px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .1);
}
.book__card .wpcf7-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.book__card .wpcf7-form > p,
.book__card .wpcf7-form > div,
.book__card .wpcf7-form .wpcf7-form-control-wrap { margin: 0; }

/* Нейтрализация legacy-разметки старой CF7-формы (Bootstrap-классы) */
.book__card .wpcf7-form .row,
.book__card .wpcf7-form [class*="col-sm"],
.book__card .wpcf7-form [class*="col-"],
.book__card .wpcf7-form .input-wrapper {
	display: block !important;
	float: none !important;
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	position: static !important;
	grid-column: auto;
	background: transparent !important;
	border: 0 !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%; box-sizing: border-box;
	padding: 13px 15px;
	font-family: var(--font); font-size: 16px;
	color: var(--ink);
	background: #fff;
	border: 1px solid #cbd5e1; border-radius: 10px;
	-webkit-appearance: none; appearance: none;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus {
	outline: 0; border-color: var(--blue-500);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.wpcf7-form textarea { min-height: 110px; resize: vertical; grid-column: 1 / -1; }
.wpcf7-form input::placeholder, .wpcf7-form textarea::placeholder { color: #94a3b8; }

.book__consent {
	display: flex; align-items: flex-start; gap: 10px;
	grid-column: 1 / -1;
	font-size: 13px; color: var(--text-lo); line-height: 1.5;
}
.book__consent input[type="checkbox"] {
	flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
	accent-color: var(--blue-600);
}
.book__consent a { color: var(--blue-700); text-decoration: underline; }
/* Согласие в разметке CF7 (label с чекбоксом) */
.book__card .wpcf7-acceptance,
.book__card .wpcf7-form .wpcf7-list-item,
.book__card .wpcf7-form-control-wrap.consent,
.book__card .wpcf7-form-control-wrap.consent label {
	display: flex !important;
	flex-direction: row !important;
	align-items: flex-start !important;
	gap: 10px !important;
	grid-column: 1 / -1;
	margin: 0 !important;
	font-size: 13px; color: var(--text-lo); line-height: 1.5;
}
.book__card .wpcf7-form input[type="checkbox"] {
	flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px;
	accent-color: var(--blue-600);
}

.wpcf7-form .wpcf7-submit {
	grid-column: 1 / -1; justify-self: start;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--grad-blue) !important;
	color: #fff !important; border: 0 !important;
	border-radius: var(--radius-sm) !important;
	padding: 14px 32px !important;
	font-family: var(--font); font-weight: 800 !important; font-size: 14.5px !important;
	box-shadow: 0 10px 22px rgba(37, 99, 235, .35) !important;
	cursor: pointer !important;
}
.wpcf7-form .wpcf7-submit:hover { transform: translateY(-2px); }
.wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 12px 0 0 !important;
	border-radius: 8px !important;
	padding: 10px 14px !important;
	font-size: 13.5px !important;
}
.wpcf7-validation-errors { border-color: #f59e0b !important; color: #b45309 !important; background: #fffbeb; }
.wpcf7-mail-sent-ok { border-color: #16a34a !important; color: #15803d !important; background: #f0fdf4; }
.wpcf7-form .ajax-loader { display: none !important; }
.wpcf7-form .wpcf7-display-none { display: none !important; }

/* На мобиле форма в одну колонку */
@media (max-width: 900px) {
	.book__card .wpcf7-form { grid-template-columns: 1fr; }
}

/* Скрыть служебные honeypot CF7 */
.wpcf7-form .wpcf7-display-none, .hide-robot { display: none !important; }

/* ============================================================
   11. ФУТЕР + КАРТА
   ============================================================ */
.footer { background: var(--navy-950); border-top: 1px solid var(--navy-line); }
.footer__map { position: relative; }
.footer__map iframe {
	width: 100%; height: 420px; border: 0; display: block;
}
.footer__map-badge {
	position: absolute; left: 24px; bottom: 24px;
	background: rgba(6, 13, 31, .88);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border: 1px solid var(--navy-line); border-radius: 12px;
	padding: 12px 18px;
}
.footer__map-badge b { display: block; font-size: 14px; }
.footer__map-badge span { font-size: 12.5px; color: var(--text-mid); }

.footer__cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; padding: 56px 0 40px; }
.footer__about { font-size: 14px; color: var(--text-mid); margin: 16px 0 20px; max-width: 380px; }
.footer__soc { display: flex; gap: 10px; }
.footer__soc a {
	width: 40px; height: 40px; border-radius: 11px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .06); border: 1px solid var(--navy-line);
	color: var(--text-hi);
}
.footer__soc a:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.footer__soc svg { width: 19px; height: 19px; }

.footer__title {
	font-size: 12px; font-weight: 800; letter-spacing: .18em;
	text-transform: uppercase; color: var(--text-lo); margin-bottom: 18px;
}
.footer__menu { display: grid; gap: 4px; }
.footer__menu a {
	display: inline-block; padding: 5px 0;
	font-size: 14px; color: var(--text-mid);
}
.footer__menu a:hover { color: #fff; }

.footer__contact { display: grid; gap: 12px; font-size: 14.5px; }
.footer__contact-item { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact-ic {
	flex: 0 0 auto; width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 10px; background: rgba(37, 99, 235, .14); color: var(--blue-400);
}
.footer__contact-ic svg { width: 17px; height: 17px; }
.footer__contact-item b { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-lo); }
.footer__contact-item a { color: var(--text-hi); font-weight: 700; }
.footer__contact-item a:hover { color: var(--blue-400); }

.footer__bottom {
	border-top: 1px solid rgba(96, 165, 250, .1);
	padding: 20px 0 26px;
	display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
	font-size: 12.5px; color: var(--text-lo);
}
.footer__bottom a { color: var(--text-mid); }
.footer__bottom a:hover { color: #fff; }
.footer__req { margin-left: auto; text-align: right; }

/* ============================================================
   12. MOBBAR + FAB
   ============================================================ */
.mobbar { display: none; }
.fab {
	position: fixed; right: 20px; bottom: 26px; z-index: 900;
	width: 46px; height: 46px; border-radius: 13px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--grad-blue); color: #fff;
	box-shadow: 0 14px 30px rgba(37, 99, 235, .45);
	cursor: pointer; border: 0;
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.fab.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fab svg { width: 20px; height: 20px; }

/* ============================================================
   13. СТРАНИЦЫ (page, single, контакты)
   ============================================================ */
.page-hero {
	background: linear-gradient(180deg, #0d1a35 0%, var(--navy-900) 100%);
	padding: 52px 0 40px; text-align: center;
}
.page-hero h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.page-hero p { color: var(--text-mid); max-width: 640px; margin: 10px auto 0; }

.page-content { background: var(--navy-900); padding: 40px 0 64px; }
.page-content .container { max-width: 900px; }
.entry-content { color: var(--text-mid); font-size: 15.5px; }
.entry-content h2, .entry-content h3 { color: var(--text-hi); margin: 26px 0 10px; }
.entry-content a { color: var(--blue-400); }
.entry-content img { border-radius: 12px; margin: 14px 0; }
.entry-content ul { list-style: disc; padding-left: 22px; }
.entry-content ol { list-style: decimal; padding-left: 22px; }
.entry-content blockquote {
	border-left: 3px solid var(--blue-500); margin: 16px 0;
	padding: 8px 18px; background: rgba(37, 99, 235, .07); border-radius: 0 10px 10px 0;
}

/* Контакты */
.cpc__in { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; }
.cpc-card {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 32px 30px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
	color: var(--ink);
}
.cpc-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.cpc-rows { display: flex; flex-direction: column; }
.cpc-row { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid #eef2f7; }
.cpc-row:first-child { border-top: 0; }
.cpc-ic {
	flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
	display: flex; align-items: center; justify-content: center;
	background: #eff6ff; color: var(--blue-600);
}
.cpc-ic svg { width: 20px; height: 20px; }
.cpc-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 3px; }
.cpc-val { font-size: 15px; font-weight: 700; color: var(--ink); }
.cpc-val a { color: var(--blue-700); }
.cpc-btns { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.cpc-map {
	border-radius: var(--radius); overflow: hidden;
	min-height: 480px; border: 1px solid var(--border);
	background: #e2e8f0;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.cpc-map iframe { width: 100%; height: 480px; border: 0; }

/* Мессенджеры — плитки */
.msgs__panel {
	max-width: 720px; margin: 0 auto;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 30px; padding: 30px 26px 22px;
	-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
	box-shadow: 0 24px 60px rgba(2, 8, 20, .5);
}
.msgs__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px 12px; justify-items: center; }
.msg-app { display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none; }
.msg-app__ic {
	width: 78px; height: 78px; border-radius: 22%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(180deg, #232329 0%, #0a0a0c 100%);
	box-shadow: 0 10px 22px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.msg-app__ic svg { width: 38px; height: 38px; }
.msg-app--wa .msg-app__ic { color: #25d366; }
.msg-app--tg .msg-app__ic { color: #fff; }
.msg-app--vk .msg-app__ic { color: #0077ff; }
.msg-app--call .msg-app__ic { color: #fff; }
.msg-app--max .msg-app__maxm {
	font-weight: 800; font-size: 40px; line-height: 1;
	background: linear-gradient(135deg, #00bfff 0%, #471aff 45%, #9500ff 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}
.msg-app__name { font-size: 12.5px; font-weight: 500; color: #f1f5f9; text-align: center; line-height: 1.25; }
.msg-app__handle { font-size: 10.5px; color: #8fa3bd; text-align: center; line-height: 1.3; }

/* ============================================================
   14. АДАПТИВ
   ============================================================ */
@media (max-width: 1080px) {
	.svc-grid { grid-template-columns: repeat(3, 1fr); }
	.advs { grid-template-columns: repeat(2, 1fr); }
	.brands { grid-template-columns: repeat(4, 1fr); }
	.msgs__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	:root { --header-h: 64px; }

	.topbar { display: none; }
	.nav { display: none; }
	.burger { display: flex; }
	/* CTA в шапке скрываем на мобиле: есть в mobbar и в мобильном меню */
	.header .btn--primary { display: none; }
	.header__in { gap: 12px; }
	.logo span:last-child { min-width: 0; }
	.header__phone-extra { display: none; }
	.header__phone-label { display: none; }
	.header__phone-num { font-size: 14.5px; }
	.header__phone-num a { white-space: nowrap; }

	.hero { padding: 44px 0 44px; }
	.hero__in { grid-template-columns: 1fr; gap: 30px; }
	.trust__in { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.about__in { grid-template-columns: 1fr; gap: 36px; }
	.reasons { grid-template-columns: 1fr; }
	.svc-grid { grid-template-columns: repeat(2, 1fr); }
	.brands { grid-template-columns: repeat(3, 1fr); }
	.cpc__in { grid-template-columns: 1fr; }

	.footer__cols { grid-template-columns: 1fr; gap: 32px; padding: 44px 0 32px; }
	.footer__map iframe { height: 320px; }
	.footer__req { margin-left: 0; text-align: left; }

	.book__card { padding: 30px 20px; }
	.book__grid { grid-template-columns: 1fr; }

	/* MOBBAR */
	.mobbar {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
		height: var(--mobbar-h);
		background: rgba(8, 16, 33, .97);
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		border-top: 1px solid var(--navy-line);
		padding-bottom: env(safe-area-inset-bottom, 0);
	}
	.mobbar__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		font-size: 10px; font-weight: 600; color: var(--text-mid);
		text-decoration: none; border: 0; background: none; cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.mobbar__item svg { width: 21px; height: 21px; color: var(--text-hi); }
	.mobbar__item--wa svg { color: #25d366; }
	.mobbar__item--tg svg { color: var(--blue-400); }
	.mobbar__item--cta svg { color: var(--blue-400); }
	.mobbar__maxm {
		font-weight: 800; font-size: 21px; line-height: 1;
		background: linear-gradient(135deg, #00bfff 0%, #471aff 45%, #9500ff 100%);
		-webkit-background-clip: text; background-clip: text;
		-webkit-text-fill-color: transparent; color: transparent;
	}

	body { padding-bottom: calc(var(--mobbar-h) + env(safe-area-inset-bottom, 0)); }
	.fab { bottom: calc(var(--mobbar-h) + env(safe-area-inset-bottom, 0) + 16px); right: 14px; }
	/* FAB не мешает вводу в форме */
	.fab.is-form-focus { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }

	html { scroll-padding-top: calc(var(--header-h) + 10px); }
}

@media (max-width: 560px) {
	.container { padding: 0 16px; }
	.sec { padding: 48px 0; }
	.svc-grid { grid-template-columns: 1fr; }
	.advs { grid-template-columns: 1fr; }
	.brands { grid-template-columns: repeat(2, 1fr); }
	.msgs__grid { grid-template-columns: repeat(3, 1fr); gap: 20px 8px; }
	.msg-app__ic { width: 64px; height: 64px; }
	.msg-app__ic svg { width: 31px; height: 31px; }
	.msg-app--max .msg-app__maxm { font-size: 33px; }
	.trust__in { grid-template-columns: 1fr; }
	.hero__btns .btn { flex: 1 1 100%; }
	.promo { min-height: 260px; padding: 28px 22px; }
	.works__item { flex-basis: 82%; }
	.cpc-map, .cpc-map iframe { min-height: 320px; height: 320px; }
	.collage { grid-auto-rows: 120px; gap: 10px; }
	.reason__num { font-size: 30px; top: 14px; right: 16px; }
	.logo__mark { width: 34px; height: 34px; border-radius: 10px; }
	.logo__mark svg { width: 20px; height: 20px; }
	.logo__name { font-size: 16px; }
	.logo__sub { font-size: 8.5px; letter-spacing: .18em; }
	.header__phone-num { font-size: 13px; }
	.burger { width: 40px; height: 40px; }
	.header__in { gap: 8px; }
}

/* Доступность: аккуратный focus */
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* Печать */
@media print {
	.topbar, .header, .nav, .mobbar, .fab, .mmenu { display: none !important; }
	body { background: #fff; color: #000; }
}
