/* ============================================================
   VELART — премиальная тёмная тема
   Палитра: тёплый чёрный / слоновая кость / шампань-золото
   Шрифт: Mulish (роли задаются весом и регистром)
   ============================================================ */

:root {
	--bg:        #111114;
	--bg-raise:  #17171B;
	--bg-card:   #1B1B20;
	--ink:       #F2EFE9;
	--ink-soft:  #C9C5BC;
	--muted:     #9A968E;
	--gold:      #C7A46C;
	--gold-soft: rgba(199, 164, 108, .55);
	--line:      rgba(199, 164, 108, .18);
	--line-dim:  rgba(242, 239, 233, .08);
	--scrim:     linear-gradient(180deg, rgba(17,17,20,.25) 0%, rgba(17,17,20,.05) 40%, rgba(17,17,20,.88) 100%);

	--font-display: "Mulish", "Helvetica Neue", Arial, sans-serif;
	--font-body:    "Mulish", "Helvetica Neue", Arial, sans-serif;

	--radius: 12px;
	--wrap: 1240px;
	--gap:  clamp(20px, 3vw, 40px);
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }

/* ---------- Типографика ---------- */
h1, h2, h3, .display {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: .01em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.2vw, 50px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(17px, 2vw, 21px); }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 18px; margin: 0 0 .5em; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 62ch; }

.eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 18px;
}

/* ---------- Кнопки ---------- */
.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: 16px 34px;
	border: 1px solid var(--gold);
	color: var(--ink);
	background: transparent;
	cursor: pointer;
	transition: background .25s ease, color .25s ease;
}
.btn:hover { background: var(--gold); color: #15140F; }
.btn-solid { background: var(--gold); color: #15140F; }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-outline { border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); background: transparent; color: var(--gold); }

/* ---------- Шапка ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(17, 17, 20, .82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line-dim);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 48px);
	min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-mark {
	font-family: var(--font-display);
	font-size: 22px;
	letter-spacing: .22em;
	color: var(--ink);
}
.brand-sub {
	font-size: 10px;
	letter-spacing: .42em;
	text-transform: uppercase;
	color: var(--gold);
	margin-top: 3px;
}
.site-nav { margin-inline: auto; }
.nav-list { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav-list a {
	font-size: 13.5px;
	font-weight: 500;
	letter-spacing: .06em;
	color: var(--ink-soft);
	padding: 8px 2px;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--gold); }

.header-contact { display: flex; align-items: center; gap: 22px; }
.header-phone { font-weight: 600; font-size: 15px; white-space: nowrap; }
.header-cta { padding: 11px 22px; font-size: 11.5px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line-dim); padding: 18px clamp(18px, 4vw, 40px) 26px; }
.mobile-nav-list { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-nav-list a { display: block; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line-dim); }

@media (max-width: 1060px) {
	.site-nav, .header-contact { display: none; }
	.nav-toggle { display: block; margin-left: auto; }
}

/* ---------- Герой ---------- */
.hero {
	position: relative;
	min-height: clamp(520px, 88vh, 900px);
	display: flex;
	align-items: flex-end;
	isolation: isolate;
	overflow: hidden;
}
.hero-media, .hero-media img, .hero-media video {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after { content: ""; position: absolute; inset: 0; background: var(--scrim); z-index: -1; }
.hero-content { padding-block: clamp(48px, 8vh, 96px); max-width: 860px; }
.hero-content h1 { margin-bottom: 22px; font-size: clamp(30px, 4vw, 46px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* Компактный герой внутренних страниц */
.hero-inner { min-height: clamp(340px, 52vh, 560px); }

/* ---------- Секции ---------- */
.section { padding-block: clamp(60px, 9vw, 120px); }
.section-raise { background: var(--bg-raise); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-link {
	font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--gold); white-space: nowrap; padding-bottom: 6px;
	border-bottom: 1px solid var(--gold-soft);
}

.hr-gold { border: 0; height: 1px; background: var(--line); margin: 0; }

/* ---------- Карточки-сетки ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
	position: relative;
	display: block;
	background: var(--bg-card);
	border: 1px solid var(--line-dim);
	overflow: hidden;
	transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: var(--gold-soft); transform: translateY(-4px); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 24px 26px 28px; }
.card-title { font-family: var(--font-display); font-size: 21px; line-height: 1.3; margin: 0 0 10px; color: var(--ink); }
.card-text { font-size: 15px; color: var(--muted); margin: 0; }
.card-more {
	display: inline-block; margin-top: 18px;
	font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}

/* Крупная карточка-плитка с фоном */
.tile {
	position: relative; display: flex; flex-direction: column;
	overflow: hidden; isolation: isolate;
	background: var(--bg-card);
	border: 1px solid var(--line-dim);
	border-radius: var(--radius);
	transition: transform .35s ease, border-color .35s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--gold-soft); }
.tile img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s ease; }
.grid-2 .tile img { aspect-ratio: 16 / 10; }
.tile:hover img { transform: scale(1.04); }
.tile-body { padding: 20px 24px 24px; }
.tile-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(15px, 1.4vw, 18px); margin: 0 0 8px; color: var(--ink); }
.tile-text { font-size: 15px; color: var(--ink-soft); margin: 0; max-width: 46ch; }

/* ---------- Автомобили ---------- */
.car-card .card-body { display: flex; flex-direction: column; gap: 8px; }
.car-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.car-price {
	font-family: var(--font-display);
	font-size: 22px;
	color: var(--gold);
	font-variant-numeric: tabular-nums;
	margin-top: 6px;
}
.badge {
	position: absolute; top: 16px; left: 16px; z-index: 2;
	font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	background: rgba(17,17,20,.78); color: var(--gold);
	border: 1px solid var(--gold-soft);
	padding: 7px 12px;
	backdrop-filter: blur(6px);
}

/* Страница автомобиля */
.car-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .car-layout { grid-template-columns: 1fr; } }

.car-gallery { display: grid; gap: 14px; }
.car-gallery-main { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line-dim); }
.car-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.car-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.car-thumbs button { padding: 0; border: 1px solid var(--line-dim); background: none; cursor: pointer; aspect-ratio: 4/3; overflow: hidden; }
.car-thumbs button.is-active { border-color: var(--gold); }
.car-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 4px; border-bottom: 1px solid var(--line-dim); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 42%; }
.spec-table td { color: var(--ink); font-variant-numeric: tabular-nums; }

.car-aside { position: sticky; top: 100px; background: var(--bg-card); border: 1px solid var(--line-dim); padding: clamp(24px, 3vw, 36px); }
.car-aside .car-price { font-size: clamp(26px, 3vw, 34px); margin: 4px 0 18px; }
.car-aside .btn { width: 100%; text-align: center; margin-top: 10px; }
.car-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.car-badges .badge { position: static; }

.car-specs-list { margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-soft); }
.car-specs-list li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line-dim); position: relative; }
.car-specs-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Контент записи ---------- */
.entry { max-width: 820px; }
.entry h2, .entry h3 { margin-top: 1.6em; }
.entry h2:first-child { margin-top: 0; }
.entry img { margin: 28px 0; border: 1px solid var(--line-dim); }
.entry ul { padding-left: 22px; color: var(--ink-soft); }
.entry li { margin-bottom: 8px; }
.entry li::marker { color: var(--gold); }
.entry a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); }
.entry blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); color: var(--ink-soft); font-style: italic; }

.wp-block-gallery, .gallery-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.wp-block-gallery figure, .gallery-grid figure { margin: 0; }
.wp-block-gallery img, .gallery-grid img { margin: 0 !important; width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 700px) { .wp-block-gallery, .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Преимущества ---------- */
.feature { border-top: 1px solid var(--line); padding-top: 24px; }
.feature h3 { font-size: 20px; margin: 0 0 10px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- CTA-полоса ---------- */
.cta-band {
	background: var(--bg-raise);
	border-block: 1px solid var(--line);
	text-align: center;
}
.cta-band .wrap { max-width: 780px; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin-inline: 8px; color: var(--gold-soft); }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raise); margin-top: clamp(60px, 9vw, 120px); }
.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: clamp(30px, 5vw, 70px);
	padding-block: clamp(48px, 6vw, 80px);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 34ch; }
.footer-label { font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-nav-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.footer-nav-list a { display: block; padding: 7px 0; font-size: 15px; color: var(--ink-soft); }
.footer-contacts p { color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.footer-phone { display: block; font-family: var(--font-display); font-size: 22px; margin-bottom: 14px; color: var(--ink); }
.footer-social { display: flex; gap: 18px; margin-top: 18px; }
.footer-social a { font-size: 13.5px; letter-spacing: .06em; color: var(--gold); border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; }
.footer-bottom { border-top: 1px solid var(--line-dim); padding-block: 22px; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Пагинация, навигация архивов ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.pagination .page-numbers {
	min-width: 46px; padding: 12px 14px; text-align: center;
	border: 1px solid var(--line-dim); font-size: 14px; font-variant-numeric: tabular-nums;
}
.pagination .page-numbers.current { border-color: var(--gold); color: var(--gold); }

/* ---------- Новости ---------- */
.post-date { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.news-card .post-date { margin-bottom: 10px; display: block; }

/* ---------- Форма-заглушка контактов ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line-dim); }
.contact-list .label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.contact-list a { font-size: 19px; }
.map-frame { width: 100%; height: 100%; min-height: 420px; border: 1px solid var(--line-dim); }
@media (max-width: 860px) { .map-frame { height: auto; aspect-ratio: 4/3; min-height: 0; } }

/* ---------- Reveal-анимация ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Читаемость поверх фото героя */
.hero-content { text-shadow: 0 1px 18px rgba(17,17,20,.55); }
.hero-content .eyebrow { text-shadow: 0 1px 10px rgba(17,17,20,.85); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px;
	background: linear-gradient(180deg, rgba(17,17,20,.55), transparent); z-index: -1; }

/* ============================================================
   LIQUID GLASS + АНИМАЦИИ ВОВЛЕЧЕНИЯ
   ============================================================ */

:root {
	--glass-bg: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035) 45%, rgba(255,255,255,.07));
	--glass-border: rgba(255,255,255,.16);
	--glass-edge-top: rgba(255,255,255,.28);
	--glass-shadow: 0 18px 46px -18px rgba(0,0,0,.65), inset 0 1px 0 var(--glass-edge-top), inset 0 -1px 0 rgba(0,0,0,.28);
	--glass-radius: 16px;
}

/* Базовая стеклянная поверхность */
.glass {
	position: relative;
	background: var(--glass-bg);
	backdrop-filter: blur(22px) saturate(1.55);
	-webkit-backdrop-filter: blur(22px) saturate(1.55);
	border: 1px solid var(--glass-border);
	border-radius: var(--glass-radius);
	box-shadow: var(--glass-shadow);
}

/* ---------- Шапка: стекло вместо плоской плашки ---------- */
.site-header {
	background: linear-gradient(180deg, rgba(23,23,27,.62), rgba(17,17,20,.42));
	backdrop-filter: blur(26px) saturate(1.6);
	-webkit-backdrop-filter: blur(26px) saturate(1.6);
	border-bottom: 1px solid rgba(255,255,255,.10);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
	transition: background .4s ease, min-height .3s ease;
}
.site-header.is-scrolled { background: linear-gradient(180deg, rgba(17,17,20,.88), rgba(17,17,20,.72)); }
.site-header.is-scrolled .header-inner { min-height: 62px; }
.header-inner { transition: min-height .3s ease; }

/* ---------- Кнопки: стеклянный корпус + пробегающий блик ---------- */
.btn { position: relative; overflow: hidden; border-radius: 12px; }
.btn-outline, .header-cta {
	background: var(--glass-bg);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	border-color: var(--glass-border);
	box-shadow: inset 0 1px 0 var(--glass-edge-top);
}
.btn::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: -70%;
	width: 45%; transform: skewX(-22deg);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
	transition: left .7s ease; pointer-events: none;
}
.btn:hover::after { left: 125%; }
.btn-solid { box-shadow: 0 10px 30px -12px rgba(199,164,108,.55), inset 0 1px 0 rgba(255,255,255,.4); }

/* ---------- Бейджи и подписи плиток ---------- */
.badge {
	background: var(--glass-bg);
	backdrop-filter: blur(14px) saturate(1.5);
	-webkit-backdrop-filter: blur(14px) saturate(1.5);
	border: 1px solid var(--glass-border);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 var(--glass-edge-top);
}


/* ---------- Карточка-сайдбар авто ---------- */
.car-aside {
	background: var(--glass-bg);
	backdrop-filter: blur(24px) saturate(1.5);
	-webkit-backdrop-filter: blur(24px) saturate(1.5);
	border: 1px solid var(--glass-border);
	border-radius: var(--glass-radius);
	box-shadow: var(--glass-shadow);
}

/* ---------- Мобильное меню: стеклянная панель ---------- */
.mobile-nav {
	position: fixed; inset: 0; top: 0; z-index: 60;
	display: flex; flex-direction: column; justify-content: flex-start;
	padding-top: 110px;
	background: linear-gradient(160deg, rgba(23,23,27,.78), rgba(17,17,20,.66));
	backdrop-filter: blur(30px) saturate(1.6);
	-webkit-backdrop-filter: blur(30px) saturate(1.6);
	border: 0;
	opacity: 0; pointer-events: none;
	transition: opacity .35s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav[hidden] { display: flex; }        /* показ управляется opacity */
.mobile-nav-list a {
	border-bottom: 1px solid rgba(255,255,255,.10);
	font-size: 21px; font-family: var(--font-display); padding: 16px 0;
}
.mobile-nav .header-phone { margin-top: 20px; font-size: 19px; color: var(--gold); }
.mobile-nav-list li, .mobile-nav .header-phone {
	opacity: 0; transform: translateY(18px);
	transition: opacity .45s ease, transform .45s ease;
}
.mobile-nav.open .mobile-nav-list li, .mobile-nav.open .header-phone { opacity: 1; transform: none; }
.mobile-nav.open .mobile-nav-list li:nth-child(1) { transition-delay: .05s }
.mobile-nav.open .mobile-nav-list li:nth-child(2) { transition-delay: .10s }
.mobile-nav.open .mobile-nav-list li:nth-child(3) { transition-delay: .15s }
.mobile-nav.open .mobile-nav-list li:nth-child(4) { transition-delay: .20s }
.mobile-nav.open .mobile-nav-list li:nth-child(5) { transition-delay: .25s }
.mobile-nav.open .mobile-nav-list li:nth-child(6) { transition-delay: .30s }
.mobile-nav.open .header-phone { transition-delay: .38s }
.nav-toggle { position: relative; z-index: 70; }

/* ---------- Вход героя: последовательное появление ---------- */
@keyframes heroUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-media img { animation: heroZoom 2.6s cubic-bezier(.22,.7,.3,1) both; will-change: transform; }
.hero-content > * { animation: heroUp .9s cubic-bezier(.22,.7,.3,1) both; }
.hero-content .eyebrow { animation-delay: .15s }
.hero-content h1      { animation-delay: .30s }
.hero-content .lead   { animation-delay: .50s }
.hero-content .hero-actions { animation-delay: .68s }

/* Лёгкий параллакс героя (двигается из JS) */
.hero-media { will-change: transform; }

/* ---------- Каскад появления карточек ---------- */
.grid > .reveal:nth-child(1) { transition-delay: 0s }
.grid > .reveal:nth-child(2) { transition-delay: .09s }
.grid > .reveal:nth-child(3) { transition-delay: .18s }
.grid > .reveal:nth-child(4) { transition-delay: .27s }
.grid > .reveal:nth-child(5) { transition-delay: .36s }
.grid > .reveal:nth-child(6) { transition-delay: .45s }

/* Цифры-акценты в «почему мы» */
.feature { transition: border-color .4s ease; }
.feature:hover { border-color: var(--gold); }

/* Секционная золотая линия-акцент, «наливается» при появлении */
.section-head-row, .section-head { position: relative; }
.reveal.is-visible .eyebrow::after,
.section-head.reveal.is-visible::before { }

@media (prefers-reduced-motion: reduce) {
	.hero-media img, .hero-content > * { animation: none !important; }
	.mobile-nav, .mobile-nav-list li, .mobile-nav .header-phone { transition: none !important; }
}

/* Подписи плиток: не длиннее трёх строк */
.tile-text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Меню-панель вне шапки: свои отступы, крестик остаётся кликабельным */
.mobile-nav { padding: 110px 0 40px; z-index: 45; }
.mobile-nav .wrap { width: 100%; }
.site-header { z-index: 50; }

/* ---------- Форма заявки ---------- */
.lead-form { max-width: 720px; margin-inline: auto; padding: clamp(24px, 4vw, 40px); text-align: left; }
.lead-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 22px; }
.lead-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .lead-fields { grid-template-columns: 1fr; } }
.lead-form label span {
	display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .18em;
	text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.lead-form label em { color: var(--gold); font-style: normal; }
.lead-form input[type="text"], .lead-form input[type="tel"] {
	width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
	background: rgba(17,17,20,.45); border: 1px solid var(--line-dim); border-radius: 10px;
	transition: border-color .25s ease;
}
.lead-form input:focus { outline: none; border-color: var(--gold); }
.lead-form input::placeholder { color: rgba(154,150,142,.6); }
.lead-form .btn { width: 100%; text-align: center; }
.lead-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.lead-status { margin: 12px 0 0; text-align: center; font-size: 15px; min-height: 1.4em; }
.lead-status.ok { color: #9BC7A8; }
.lead-status.err { color: #E08A7A; }
.lead-form.is-sent .lead-fields, .lead-form.is-sent .btn, .lead-form.is-sent .lead-note { display: none; }
.cta-band .lead-form { margin-top: 34px; }

/* ---------- Плавающие кнопки связи ---------- */
.float-contacts {
	position: fixed; right: 18px; bottom: 18px; z-index: 40;
	display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%;
	font-size: 13px; font-weight: 700; letter-spacing: .04em;
	background: var(--glass-bg);
	backdrop-filter: blur(16px) saturate(1.5);
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	border: 1px solid var(--glass-border);
	box-shadow: var(--glass-shadow);
	color: var(--gold);
	transition: transform .25s ease, background .25s ease;
}
.float-btn:hover { transform: translateY(-3px); color: var(--gold); }
.float-btn-phone { background: var(--gold); color: #15140F; font-size: 20px; }
.float-btn-phone:hover { color: #15140F; }

/* Форма в сайдбаре авто — компактнее */
.car-aside .lead-form { padding: 18px; }
.car-aside .lead-fields { grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.car-aside .lead-note { display: none; }

/* ---------- Выравнивание плиток: единая геометрия плашек ---------- */
.tile-body { display: flex; flex-direction: column; flex: 1; }
.tile-title {
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
	overflow: hidden;
}
.tile-text {
	-webkit-line-clamp: 2;
	margin-top: 6px;
}
/* в сетке услуг подписи нет — плашки одинаковые за счёт клампа заголовка */
@media (max-width: 620px) {
	.tile img, .grid-2 .tile img { aspect-ratio: 3 / 2; }
}

/* ---------- Страница проекта: мозаика фото + сворачиваемый текст ---------- */
.project-gallery .wp-block-gallery, .project-gallery .gallery-grid {
	grid-template-columns: repeat(4, 1fr); margin: 0;
}
.project-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.project-gallery img { aspect-ratio: 4/3; height: 100%; cursor: zoom-in; transition: filter .3s ease; }
.project-gallery img:hover { filter: brightness(1.08); }
@media (max-width: 700px) {
	.project-gallery .wp-block-gallery, .project-gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-entry > p:first-of-type { font-size: 19px; color: var(--ink-soft); }
.project-entry { overflow: hidden; position: relative; transition: max-height .8s cubic-bezier(.4,.6,.2,1); }
.entry.is-collapsed { max-height: 340px; }
.project-entry::after {
	opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.entry.is-collapsed::after {
	opacity: 1;
}
.entry.is-collapsed::after, .project-entry::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
	background: linear-gradient(180deg, transparent, var(--bg));
}
.entry-toggle { margin-top: 18px; }

/* Лайтбокс */
.velart-lightbox { border: 0; padding: 0; background: rgba(10,10,12,.92); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.velart-lightbox::backdrop { background: rgba(10,10,12,.92); }
.velart-lightbox img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }

/* Плашка цены проекта */
.project-price-bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; flex-wrap: wrap; padding: 22px 28px;
}
.project-price-bar .car-price { font-size: clamp(24px, 3vw, 32px); }

/* Состав проекта — золотые пункты */
.project-options { columns: 2; column-gap: 40px; list-style: none; padding-left: 0 !important; }
.project-options li { break-inside: avoid; padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--line-dim); }
.project-options li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 14px; }
@media (max-width: 620px) { .project-options { columns: 1; } }

/* Плашки: компактные, по содержимому, все прижаты к низу */
.tile-body { padding: 18px 22px; }
.tile-text { -webkit-line-clamp: 2; }

/* Карточки авто: единая геометрия */
.card { display: flex; flex-direction: column; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.car-card .card-title { min-height: 2.7em; }
.car-card .car-meta {
	min-height: 1.7em; overflow: hidden;
	display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.car-card .car-price { margin-top: auto; padding-top: 12px; }
@media (max-width: 620px) { .car-card .card-title { min-height: 0; } }

/* ---------- Выпадающие подменю ---------- */
.nav-list > li { position: relative; }
.nav-list .sub-menu {
	position: absolute; top: calc(100% + 14px); left: -24px; z-index: 60;
	min-width: 300px; padding: 20px 8px; margin: 0; list-style: none;
	background: linear-gradient(165deg, rgba(30,29,34,.94), rgba(17,17,20,.90));
	backdrop-filter: blur(28px) saturate(1.6);
	-webkit-backdrop-filter: blur(28px) saturate(1.6);
	border: 1px solid var(--glass-border);
	border-radius: 18px;
	box-shadow: 0 30px 70px -20px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.16);
	opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
	transform-origin: top left;
	transition: opacity .3s cubic-bezier(.22,.7,.3,1), transform .3s cubic-bezier(.22,.7,.3,1), visibility .3s;
}
/* золотая кромка сверху */
.nav-list .sub-menu::before {
	content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* «Услуги»: две колонки при 7+ пунктах */
.nav-list > li:has(.sub-menu li:nth-child(7)) > .sub-menu {
	min-width: 560px;
}
.nav-list > li:has(.sub-menu li:nth-child(7)) > .sub-menu {
	display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px;
}
.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: none;
}
.nav-list > li::after { /* мостик под курсор */
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
}
.nav-list .sub-menu li {
	opacity: 0; transform: translateY(8px);
	transition: opacity .35s ease, transform .35s ease;
}
.nav-list > li:hover > .sub-menu li,
.nav-list > li:focus-within > .sub-menu li { opacity: 1; transform: none; }
.nav-list .sub-menu li:nth-child(1) { transition-delay: .03s }
.nav-list .sub-menu li:nth-child(2) { transition-delay: .06s }
.nav-list .sub-menu li:nth-child(3) { transition-delay: .09s }
.nav-list .sub-menu li:nth-child(4) { transition-delay: .12s }
.nav-list .sub-menu li:nth-child(5) { transition-delay: .15s }
.nav-list .sub-menu li:nth-child(6) { transition-delay: .18s }
.nav-list .sub-menu li:nth-child(7) { transition-delay: .21s }
.nav-list .sub-menu li:nth-child(8) { transition-delay: .24s }
.nav-list .sub-menu a {
	position: relative;
	display: block; padding: 12px 22px 12px 40px;
	font-size: 14.5px; color: var(--ink-soft);
	white-space: nowrap; border-radius: 10px;
	transition: color .22s ease, background .22s ease, padding-left .22s ease;
}
.nav-list .sub-menu a::before {
	content: "◆"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%) scale(.6);
	font-size: 9px; color: var(--gold); opacity: 0;
	transition: opacity .22s ease, transform .22s ease;
}
.nav-list .sub-menu a:hover {
	color: var(--ink); background: rgba(199,164,108,.08); padding-left: 44px;
}
.nav-list .sub-menu a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }

/* мобильное меню: подпункты с отступом */
.mobile-nav-list .sub-menu { list-style: none; margin: 0; padding: 0 0 6px 18px; }
.mobile-nav-list .sub-menu a { font-size: 15px; font-family: var(--font-body); padding: 9px 0; color: var(--muted); border-bottom: 0; }

/* ---------- Фильтры типов проектов ---------- */
.cat-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(26px, 4vw, 44px); }
.cat-filter {
	padding: 11px 20px; font-size: 13px; font-weight: 600; letter-spacing: .1em;
	text-transform: uppercase; cursor: pointer;
	background: var(--glass-bg); color: var(--ink-soft);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--line-dim); border-radius: 999px;
	transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.cat-filter:hover { color: var(--gold); border-color: var(--gold-soft); }
.cat-filter.is-active { background: var(--gold); color: #15140F; border-color: var(--gold); }
.grid .tile.is-hidden { display: none; }

/* Баннер согласия на cookies */
.cookie-note {
	position: fixed; left: 18px; bottom: 18px; z-index: 55;
	max-width: 440px; padding: 20px 22px;
	display: flex; flex-direction: column; gap: 12px;
}
.cookie-note p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.cookie-note a { color: var(--gold); }
.cookie-note .btn { padding: 11px 20px; font-size: 12px; align-self: flex-start; }
@media (max-width: 620px) { .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ============================================================
   АНИМАЦИИ: кнопки, лайтбокс, фильтры, миниатюры
   ============================================================ */

/* Кнопки: подъём при наведении, нажатие пружинит */
.btn {
	transition: background .25s ease, color .25s ease,
		transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); }
.btn-solid:hover { box-shadow: 0 14px 34px -10px rgba(199,164,108,.6), inset 0 1px 0 rgba(255,255,255,.4); }

/* Фильтры-чипы */
.cat-filter { transition: color .25s ease, border-color .25s ease, background .25s ease, transform .18s cubic-bezier(.34,1.56,.64,1); }
.cat-filter:hover { transform: translateY(-2px); }
.cat-filter:active { transform: scale(.94); }

/* Появление карточек после фильтрации */
@keyframes tilePop {
	from { opacity: 0; transform: translateY(16px) scale(.97); }
	to   { opacity: 1; transform: none; }
}
.grid .tile.pop { animation: tilePop .5s cubic-bezier(.22,.7,.3,1) both; }

/* Лайтбокс: наплыв кадра и затемнения */
@keyframes lbIn {
	from { opacity: 0; transform: scale(.92); }
	to   { opacity: 1; transform: none; }
}
@keyframes lbBackdrop { from { opacity: 0; } to { opacity: 1; } }
.velart-lightbox[open]::backdrop { animation: lbBackdrop .3s ease both; }
.velart-lightbox.closing img { transition: opacity .22s ease, transform .22s ease; opacity: 0; transform: scale(.95); }

/* Миниатюры галереи авто */
.car-thumbs button { transition: border-color .25s ease, transform .2s ease; }
.car-thumbs button:hover { transform: translateY(-3px); }
.car-gallery-main img { transition: opacity .35s ease; }

/* Плавающие кнопки: нажатие */
.float-btn:active { transform: scale(.92); }

/* Ссылки-стрелки секций */
.section-link { transition: color .25s ease, letter-spacing .3s ease; }
.section-link:hover { letter-spacing: .22em; }

/* Поля форм: мягкое свечение фокуса */
.lead-form input[type="text"], .lead-form input[type="tel"] {
	transition: border-color .25s ease, box-shadow .3s ease;
}
.lead-form input:focus { box-shadow: 0 0 0 4px rgba(199,164,108,.14); }

@media (prefers-reduced-motion: reduce) {
	.btn, .cat-filter, .car-thumbs button, .float-btn, .section-link { transition: none !important; transform: none !important; }
	.grid .tile.pop, .velart-lightbox[open] img, .velart-lightbox[open]::backdrop { animation: none !important; }
}

/* hidden сильнее display:flex — иначе плашка куки не закрывается */
.cookie-note[hidden] { display: none !important; }

/* ---------- Цифры ателье ---------- */
.stats-band { padding-block: clamp(40px, 6vw, 80px); border-block: 1px solid var(--line); }
.stat { text-align: left; }
.stat-num, .stat-plus {
	font-family: var(--font-display);
	font-size: clamp(40px, 5vw, 64px);
	color: var(--gold); line-height: 1;
	font-variant-numeric: tabular-nums;
}
.stat-label { margin: 10px 0 0; font-size: 15px; color: var(--muted); max-width: 24ch; }

/* ---------- Отзывы ---------- */
.reviews-rating {
	display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap;
	padding: clamp(22px, 3vw, 34px);
	margin-bottom: 26px;
}
.reviews-score { display: flex; align-items: baseline; gap: 16px; }
.reviews-num { font-family: var(--font-display); font-size: clamp(44px, 5vw, 60px); color: var(--ink); line-height: 1; }
.reviews-stars { color: var(--gold); font-size: clamp(20px, 2.4vw, 26px); letter-spacing: .18em; }
.reviews-note { margin: 0; color: var(--muted); font-size: 15.5px; flex: 1; }
.reviews-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reviews-actions .btn { padding: 13px 24px; font-size: 12px; }
.reviews-widget { min-height: 60px; }
@media (max-width: 700px) { .reviews-rating { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* Мобильное меню: прокрутка и компактные подпункты */
.mobile-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 60px; }
.mobile-nav-list > li > a { padding: 13px 0; font-size: 19px; }
.mobile-nav-list .sub-menu { padding: 2px 0 8px 16px; }
.mobile-nav-list .sub-menu a { padding: 7px 0; font-size: 14.5px; }
.mobile-nav .header-phone { margin-top: 14px; }

/* ---------- Страница «Медиа» ---------- */
.media-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.media-socials .btn { padding: 12px 22px; font-size: 12px; }

.video-card {
	display: block; width: 100%; text-align: left; padding: 0;
	background: none; border: 0; cursor: pointer; color: var(--ink);
	font: inherit;
}
.video-thumb {
	position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
	border: 1px solid var(--line-dim); border-radius: 14px; background: var(--bg-card);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); filter: brightness(1.1); }
.video-play {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	z-index: 1; /* свой контекст: круг уходит под треугольник */
	font-size: 0; color: transparent; /* шрифтовый глиф прячем — рисуем SVG */
}
.video-play::before {
	content: ""; position: absolute; width: 68px; height: 68px; border-radius: 50%;
	z-index: -1;
	background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
	transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.video-play::after {
	content: ""; width: 0; height: 0; margin-left: 5px;
	border-style: solid; border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent var(--gold);
	transition: border-left-color .3s ease, transform .3s ease;
}
.video-card:hover .video-play::before { transform: scale(1.12); background: var(--gold); }
.video-card:hover .video-play::after { border-left-color: #15140F; transform: scale(1.06); }
.video-title {
	display: block; margin-top: 14px; font-family: var(--font-display); font-size: 17px;
	line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tg-card { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .3s ease, border-color .3s ease; }
.tg-card:hover { transform: translateY(-4px); border-color: var(--gold-soft); color: var(--ink); }
.tg-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.tg-photo img { width: 100%; height: 100%; object-fit: cover; }
.tg-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.tg-text { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.tg-card .card-more { margin-top: auto; }

/* Пункты меню в одну строку */
.nav-list a { white-space: nowrap; }

/* Свёрнутые пункты длинных списков */
.project-entry li.li-hidden { display: none; }
@keyframes liPop { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.project-entry li.li-pop { animation: liPop .35s ease both; }
.list-toggle {
	margin: 6px 0 18px; padding: 10px 20px;
	font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
	color: var(--gold); background: none; cursor: pointer;
	border: 1px solid var(--line); border-radius: 999px;
	transition: border-color .25s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
}
.list-toggle:hover { border-color: var(--gold); transform: translateY(-2px); }
.list-toggle:active { transform: scale(.95); }

/* ---------- Лайтбокс-карусель ---------- */
.velart-lightbox .lb-stage { margin: 0; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; }
.velart-lightbox .lb-stage img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; cursor: zoom-out; }
.lb-nav {
	position: fixed; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 58px; height: 58px; border-radius: 50%;
	font: 300 30px/1 var(--font-body); color: var(--ink); cursor: pointer;
	background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
	transition: background .25s ease, color .25s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
	display: flex; align-items: center; justify-content: center; padding-bottom: 4px;
}
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-nav:hover { background: var(--gold); color: #15140F; transform: translateY(-50%) scale(1.08); }
.lb-nav:active { transform: translateY(-50%) scale(.94); }
.lb-close {
	position: fixed; top: 20px; right: 22px; z-index: 2;
	width: 46px; height: 46px; border-radius: 50%;
	font: 400 17px/1 var(--font-body); color: var(--ink); cursor: pointer;
	background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--glass-border);
	transition: background .25s ease, color .25s ease, transform .2s ease;
}
.lb-close:hover { background: var(--gold); color: #15140F; transform: rotate(90deg); }
.lb-counter {
	position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
	padding: 9px 18px; border-radius: 999px;
	font: 600 13px/1 var(--font-body); letter-spacing: .12em; color: var(--ink-soft);
	background: var(--glass-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--glass-border);
	font-variant-numeric: tabular-nums;
}
@media (max-width: 620px) {
	.lb-nav { width: 46px; height: 46px; }
	.lb-prev { left: 10px; } .lb-next { right: 10px; }
}

/* Карусель: пульс счётчика и появление кадра при открытии */
@keyframes counterTick { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.12); } 100% { transform: translateX(-50%) scale(1); } }
.lb-counter.tick { animation: counterTick .35s ease; }
.velart-lightbox[open] .lb-nav { animation: lbIn .45s cubic-bezier(.22,.7,.3,1) both; }

/* Крошки: семантический список */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--gold-soft); }

/* Баннер cookies: полоса снизу, ничего не перекрывает */
.cookie-note {
	left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0;
	flex-direction: row; align-items: center; justify-content: center; gap: 20px;
	padding: 14px clamp(16px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom));
	border-left: 0; border-right: 0; border-bottom: 0;
}
.cookie-note p { max-width: 60ch; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-note .btn { align-self: center; }
@media (max-width: 700px) {
	.cookie-note { flex-direction: column; gap: 10px; text-align: center; }
	.float-contacts { bottom: 150px; }
}

/* Чекбокс согласия */
.lead-consent {
	display: flex; gap: 10px; align-items: flex-start;
	font-size: 13.5px; color: var(--muted); margin-bottom: 16px; cursor: pointer;
}
.lead-consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.lead-consent a { color: var(--gold); }

/* Телефон в мобильной шапке */
.header-phone-mobile { display: none; color: var(--gold); padding: 10px; }
@media (max-width: 1060px) {
	.header-phone-mobile { display: block; margin-left: auto; }
	.nav-toggle { margin-left: 0; }
}

/* Плавающие кнопки: svg по центру */
.float-btn svg { display: block; }

/* E6: резерв высоты под виджет отзывов */
.reviews-widget { min-height: 84px; }

/* E1: плотнее скрим в зоне текста героя */
.hero::after { background: linear-gradient(180deg, rgba(17,17,20,.35) 0%, rgba(17,17,20,.25) 40%, rgba(17,17,20,.93) 100%); }

.footer-requisites { color: var(--muted); opacity: .75; font-size: 12.5px; }

/* Самолётик Telegram асимметричен — визуально центрируем */
.float-btn[href*="t.me"] svg { transform: translate(-2px, 1px); }

/* Таблица цен в тексте услуги */
.wp-block-table { margin: 0 0 28px; overflow-x: auto; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th { text-align: left; font-weight: 600; color: var(--ink); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.entry td { padding: 12px 14px; border-bottom: 1px solid var(--line-dim); color: var(--ink-soft); vertical-align: top; }
.entry td:last-child, .entry th:last-child { text-align: right; }
.entry td:last-child { white-space: nowrap; color: var(--gold); }

/* Галереи услуг: клик открывает лайтбокс */
.entry .wp-block-gallery img { cursor: zoom-in; transition: filter .3s ease; }
.entry .wp-block-gallery img:hover { filter: brightness(1.08); }

/* Карточка услуги */
.aside-note { font-size: 13px; color: var(--muted); margin: -8px 0 14px; line-height: 1.5; }
.car-aside .car-specs-list { margin-top: 20px; }

.car-aside .car-price--text { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.25; margin-bottom: 12px; }

/* Вопросы и ответы */
.faq-list { max-width: 820px; }
.faq-item { border-top: 1px solid var(--line-dim); }
.faq-item:last-child { border-bottom: 1px solid var(--line-dim); }
.faq-item summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 20px 44px 20px 0;
	font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 20px); color: var(--ink);
	transition: color .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+"; position: absolute; right: 6px; top: 50%;
	transform: translateY(-50%); color: var(--gold);
	font: 300 26px/1 var(--font-body);
	transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-item > p { margin: 0; padding: 0 44px 22px 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* Ссылки-марки под проектами */
.marka-links { margin-top: clamp(48px, 7vw, 90px); }
.marka-links h2 { margin-bottom: 20px; }
a.cat-filter { text-decoration: none; display: inline-block; }

/* Карточки отзывов */
.reviews-grid { margin-top: 26px; }
.review-card { margin: 0; padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.review-card .reviews-stars { font-size: 15px; letter-spacing: .22em; }
.review-card blockquote { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); flex: 1; }
.review-card figcaption strong { display: block; color: var(--ink); font-size: 15px; }
.review-card figcaption span { font-size: 13px; color: var(--muted); }

/* Квиз */
.quiz { max-width: 760px; margin-inline: auto; padding: clamp(26px, 3.4vw, 40px); text-align: left; position: relative; }
.quiz-progress { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.quiz-step { display: none; }
.quiz-step.is-active { display: block; animation: quizIn .35s ease both; }
@keyframes quizIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-q { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); margin: 0 0 18px; }
.quiz-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-opt {
	padding: 12px 20px; font: 500 14px/1 var(--font-body); color: var(--ink);
	background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
	transition: border-color .25s ease, background .25s ease, transform .18s cubic-bezier(.34,1.56,.64,1);
}
.quiz-opt:hover { border-color: var(--gold); transform: translateY(-2px); }
.quiz-opt:active { transform: scale(.96); }
.quiz-summary { color: var(--gold); font-size: 14px; margin: -6px 0 16px; letter-spacing: .04em; }
.quiz-back { margin-top: 18px; background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 4px 0; }
.quiz-back:hover { color: var(--gold); }
.quiz .lead-form { padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { .quiz-step.is-active { animation: none; } }

/* Палитра материалов */
.swatch-groups { display: grid; gap: 30px; }
.swatch-group h3 { font-size: 17px; margin: 0 0 14px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.swatch { background: none; border: 0; padding: 0; cursor: pointer; text-align: center; width: 86px; }
.swatch-dot {
	display: block; width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--sw) 82%, #fff 18%), var(--sw) 62%);
	border: 1px solid var(--line); box-shadow: inset 0 -6px 12px rgba(0,0,0,.35);
	transition: transform .22s cubic-bezier(.34,1.56,.64,1), border-color .22s ease, box-shadow .22s ease;
}
.swatch:hover .swatch-dot { transform: scale(1.12); border-color: var(--gold); }
.swatch.is-picked .swatch-dot { border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(199,164,108,.18), inset 0 -6px 12px rgba(0,0,0,.35); }
.swatch-name { font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.swatch.is-picked .swatch-name { color: var(--gold); }
.swatch-picked { color: var(--ink-soft); font-size: 14px; margin: 4px 0 0; }
.swatch-picked strong { color: var(--gold); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .swatch-dot { transition: none; } }

/* Типографика Mulish: акценты весом и регистром (референс karad) */
h1, h2, h3 { font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.car-price, .reviews-num, .stat-num, .quiz-q { font-weight: 800; }
.brand-mark { font-weight: 800; letter-spacing: .3em; }
.video-title, .faq-item summary { font-weight: 600; }
.eyebrow { font-weight: 300; }
.lead { font-weight: 300; }


/* Кнопка «наверх» */
.to-top { border: 1px solid var(--glass-border); cursor: pointer; }
.to-top[hidden] { display: none; }
.to-top { opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease, background .25s ease; }
.to-top.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Фантомная надпись бренда за заголовками секций (референс karad) */
.site-main { overflow-x: clip; }
.section-head-row::before, .section-head::before {
	content: 'VELART';
	position: absolute; left: -3px; top: -0.58em;
	font: 800 clamp(58px, 8.5vw, 120px)/1 var(--font-display);
	letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
	color: transparent; -webkit-text-stroke: 1px var(--ghost-stroke, rgba(242, 239, 233, .055));
	pointer-events: none; z-index: 0;
}
.section-head-row > *, .section-head > * { position: relative; z-index: 1; }

.brand-sub { white-space: nowrap; }
.brand-mark { white-space: nowrap; }


/* ============================================================
   БОЛЬШИЕ ЭКРАНЫ (27″+): шире сетка, мягкое масштабирование
   ============================================================ */
@media (min-width: 1800px) { :root { --wrap: 1440px; } }
@media (min-width: 2200px) {
	body { zoom: 1.12; }
	.hero { min-height: clamp(520px, 78vh, 1150px); }
}
@media (min-width: 3000px) { body { zoom: 1.28; } }

/* ============================================================
   СВЕТЛАЯ ТЕМА
   ============================================================ */
:root[data-theme="light"] {
	--bg:        #F2F0EA;
	--bg-raise:  #E9E6DE;
	--bg-card:   #FCFBF8;
	--ink:       #1C1B1E;
	--ink-soft:  #45423C;
	--muted:     #78746C;
	--gold:      #A4803F;
	--gold-soft: rgba(164, 128, 63, .6);
	--line:      rgba(164, 128, 63, .35);
	--line-dim:  rgba(28, 27, 30, .12);
	--ghost-stroke: rgba(28, 27, 30, .07);
	--glass-bg: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.55) 45%, rgba(255,255,255,.75));
	--glass-border: rgba(28, 27, 30, .14);
	--glass-edge-top: rgba(255,255,255,.9);
	--glass-shadow: 0 18px 40px -20px rgba(28,27,30,.35), inset 0 1px 0 var(--glass-edge-top);
}
/* Элементы поверх фотографий остаются тёмными в обеих темах */
:root[data-theme="light"] .hero-content {
	--ink: #F2EFE9; --ink-soft: #C9C5BC; --muted: #C9C5BC;
	color: #F2EFE9;
}
:root[data-theme="light"] .hero-content h1,
:root[data-theme="light"] .hero-content .lead { color: #F2EFE9; }
:root[data-theme="light"] .hero-content .eyebrow { color: #E4C88C; }
:root[data-theme="light"] .stats-band { background: var(--bg-raise); }
:root[data-theme="light"] .site-header { background: rgba(242, 240, 234, .82); }
:root[data-theme="light"] .mobile-nav { background: rgba(242, 240, 234, .96); }

/* Переключатель темы */
.theme-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: none; border: 1px solid var(--line); color: var(--muted);
	cursor: pointer; transition: color .25s ease, border-color .25s ease, transform .2s ease;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); transform: rotate(12deg); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   ПАРТНЁРЫ
   ============================================================ */
.partners-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 48px); }
.partners-strip img {
	height: clamp(30px, 3.4vw, 46px); width: auto; max-width: 150px; object-fit: contain;
	filter: grayscale(1); opacity: .65;
	transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
:root[data-theme="light"] .partners-strip img { filter: grayscale(1); opacity: .75; }
.partners-strip a:hover img, .partners-strip img:hover { filter: grayscale(0); opacity: 1; transform: translateY(-3px); }
:root[data-theme="light"] .partners-strip a:hover img { filter: none; opacity: 1; }
.partner-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); }
.partner-card img { height: 44px; width: auto; max-width: 170px; object-fit: contain; align-self: flex-start;
	filter: grayscale(1); opacity: .85; }
:root[data-theme="light"] .partner-card img { filter: none; }
.partner-card h2 { font-size: 16px; margin: 0; }
.partner-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* Единый мягкий радиус */
.card, .video-thumb, .tg-card, .car-gallery-main, .car-gallery-main img,
.project-gallery img, .entry .wp-block-gallery img, .car-thumbs button, .car-thumbs img,
.partners-strip img, .spec-table, .reviews-rating { border-radius: var(--radius); overflow: hidden; }
.card { border: 1px solid var(--line-dim); }
.stats-band .stat, .faq-item { border-radius: 0; }

/* light-fixes v2: поля форм, дропдаун, стеклянные панели */
:root[data-theme="light"] .lead-form input[type="text"],
:root[data-theme="light"] .lead-form input[type="tel"] {
	background: rgba(28, 27, 30, .05);
	border-color: rgba(28, 27, 30, .16);
}
:root[data-theme="light"] .lead-form input::placeholder { color: rgba(28, 27, 30, .35); }
:root[data-theme="light"] .nav-list .sub-menu {
	background: linear-gradient(165deg, rgba(252, 251, 248, .97), rgba(242, 240, 234, .94));
	box-shadow: 0 30px 70px -28px rgba(28, 27, 30, .35), inset 0 1px 0 rgba(255, 255, 255, .9);
}
:root[data-theme="light"] .cookie-note {
	background: rgba(252, 251, 248, .95);
	border-top: 1px solid var(--line-dim);
}
:root[data-theme="light"] .velart-lightbox,
:root[data-theme="light"] .velart-lightbox::backdrop { background: rgba(24, 23, 26, .93); }

/* Версии логотипов по теме */
.logo-light { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
:root[data-theme="light"] .logo-dark { display: none; }

/* light gold buttons: белый текст, пока фон золотой; на ховер-инверсии — тёмный */
:root[data-theme="light"] .btn-solid,
:root[data-theme="light"] .float-btn-phone,
:root[data-theme="light"] .float-btn-phone:hover,
:root[data-theme="light"] .cat-filter.is-active { color: #FCFBF8; }
:root[data-theme="light"] .btn-solid:hover { color: var(--ink); }

/* light hero-inner scrim: фото-шапки внутренних страниц остаются затемнёнными */
:root[data-theme="light"] .hero-inner::after {
	background: linear-gradient(180deg, rgba(17,17,20,.5) 0%, rgba(17,17,20,.32) 45%, rgba(17,17,20,.72) 100%);
}
:root[data-theme="light"] a.btn-solid { color: #FCFBF8; }
:root[data-theme="light"] a.btn-solid:hover { color: var(--ink); }

/* header compact v2: ровное меню при узких вьюпортах */
.header-contact { gap: 14px; }
.header-cta { padding: 12px 22px; }
.header-phone { font-size: 14px; white-space: nowrap; }
@media (max-width: 1180px) {
	.brand-sub { display: none; }
	.header-cta { display: none; }
}

/* Видеофон героя (десктоп) */
.hero-video {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; z-index: -2; pointer-events: none;
	object-fit: cover;
}
