/*
Theme Name: Турбина
Description: Тема Турбина.com v4: фирменный красный, наклонные заголовки Rubik Italic как в логотипе, Geologica для текста. Главная «Красная полоса» с тремя путями подбора.
Version: 4.5.0
Requires PHP: 8.1
Text Domain: turbo
*/

/* ---------- Шрифты (с нашего хостинга) ---------- */
@font-face { font-family: "rubik"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("assets/fonts/rubik-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "rubik"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("assets/fonts/rubik-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-2199, U+2212; }
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/geologica-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/geologica-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-2199, U+2212; }

@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url("assets/fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20BD, U+2190-2199, U+2212; }

/* ---------- Токены ---------- */
:root {
	--red: #b5612f; --red-d: #7c3c18; --red-shadow: #3b1e10;
	--cream: #fff4e2; --sand: #f5eee2; --gold: #f6b332;
	--ink: #1d1f24; --muted: #5d636c; --line: #e7e2da; --bg: #faf8f5; --paper: #fff;
	--ok: #2f7d32;
	--f-display: "Unbounded", "Geologica", sans-serif;
	--f-text: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r: 14px; --r-lg: 20px;
	--shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -28px rgba(70,30,20,.38);
	--ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--f-text); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-d); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 3.4vw, 42px); }
h2 { font-size: clamp(22px, 2.5vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Поля и кнопки ---------- */
input[type=text], input[type=search], input[type=tel], input:not([type]), select, textarea {
	font: inherit; width: 100%; min-height: 52px; border: 1.5px solid #d9d3c9; border-radius: 12px; padding: 0 16px; background: #fff; color: var(--ink);
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { padding: 12px 16px; min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(181,97,47,.15); }
input::placeholder, textarea::placeholder { color: #9a9fa6; }
select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d636c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
select:disabled { color: #a3a7ad; background-color: #f6f4f0; }

.btn, .tc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
	border: 0; border-radius: 12px; background: var(--red); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap;
	font: 700 15px/1 var(--f-display); letter-spacing: 0; box-shadow: 0 3px 0 var(--red-d);
	transition: transform .12s var(--ease), background .15s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover, .tc-btn:hover { background: #c06b37; color: #fff; }
.btn:active, .tc-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-d); }
.btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line:active { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--cream { background: var(--cream); color: var(--red-d); box-shadow: 0 3px 0 var(--red-shadow); }
.btn--cream:hover { background: #fff; color: var(--red-d); }
.btn--block { width: 100%; }
button:disabled { cursor: default; }

/* Турбина на кнопке: при отправке крыльчатка раскручивается, из сопла вырывается огонь */
.spool { display: inline-block; width: 40px; height: 25px; margin-left: -6px; color: var(--cream); --spool-hole: var(--red); flex: none; }
.spool svg { width: 100%; height: 100%; overflow: visible; display: block; }
.spool__flame { transform-box: view-box; transform-origin: 108px 64px; transform: scaleX(0); opacity: 0; }
.turbine__wheel { transform-box: view-box; transform-origin: 46px 42px; }
.is-spooling .turbine__wheel { animation: spool-spin .3s linear infinite; }
.is-spooling .spool__flame { opacity: 1; animation: spool-flame .16s ease-in-out infinite alternate; }
@keyframes spool-spin { to { transform: rotate(-360deg); } }
@keyframes spool-flame { from { transform: scale(.75, .85); } to { transform: scale(1.15, 1.05); } }
.btn--line .spool { color: var(--ink); --spool-hole: #fff; }
.btn--line:hover .spool { color: #fff; --spool-hole: var(--ink); }
.btn:hover .turbine__wheel, .tc-btn:hover .turbine__wheel { animation: spool-spin 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) { .turbine__wheel, .spool__flame { animation: none !important; } }

/* ---------- Шапка ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 36px; min-height: 76px; }
.logo { display: block; line-height: 0; flex: none; }
.logo svg { height: 40px; width: auto; overflow: visible; }
.main-nav { flex: 1; display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--ink); }
.main-nav__vin { display: none; }
.header-phone { text-align: right; line-height: 1.25; }
.header-phone__num { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone small { display: block; font-size: 12px; color: var(--muted); }
.header-cta { font: 800 16px var(--f-display); color: var(--red); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Главная: фон-пазл из фото ---------- */
/* Высота фона зависит от высоты экрана: три блока подбора с кнопками всегда видны без прокрутки */
.hero { position: relative; height: clamp(460px, calc(100vh - 250px), 700px); height: clamp(460px, calc(100svh - 250px), 700px); overflow: hidden; background: #fff; }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 44fr 14fr 14fr 28fr; grid-template-rows: 1fr 1fr; gap: 32px; background: #fff; }
.cell { position: relative; overflow: hidden; background: var(--sand); }
.cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease), filter 1.4s var(--ease); }
.c-chrome { grid-column: 1; grid-row: 1; } .c-chrome img { filter: blur(2px); object-position: 50% 40%; }
.c-exh { grid-column: 1; grid-row: 2; } .c-exh img { object-position: 40% 50%; }
.c-lamp { grid-column: 2; grid-row: 1; } .c-lamp img { object-position: 78% 45%; }
.c-wheel { grid-column: 3; grid-row: 1; container-type: size; }
/* Крутится только диск с лопатками (круг по центру крыльчатки), корпус вокруг остаётся на месте */
.c-wheel .rotor { position: absolute; inset: 0; clip-path: circle(44.5cqh at 50% 47.8%); }
.c-wheel .rotor img { transform-origin: 50% 47.8%; transition: none; }
.c-turbo { grid-column: 4; grid-row: 1; } .c-turbo img { object-position: 60% 55%; }
.c-car { grid-column: 2 / 5; grid-row: 2; } .c-car img { object-position: 50% 62%; }
.hero__veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(247,241,232,.55) 0%, rgba(247,241,232,.35) 30%, rgba(247,241,232,0) 50%); }
.hero__words { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: #fff; font-family: var(--f-display); font-weight: 900; }
.hero__words--narrow { display: none; }
/* Мягкий контур больших слов — только поверх фото (клип по фрагментам строится в front.js) */
.hero__outline text { fill: none; stroke: rgba(59,30,16,.42); stroke-width: 5; stroke-linejoin: round; }
/* Печать-гарантия: «небрежно шлёпнута» в левом верхнем углу и заходит на шапку */
.hero-stamp { position: absolute; z-index: 35; left: 22px; top: 54px; width: 142px; height: 142px; transform: rotate(-42deg); opacity: .94; pointer-events: none; }
.hero-stamp svg { display: block; width: 100%; height: 100%; }
@keyframes rotor-start { to { transform: rotate(-720deg); } }
@keyframes rotor-run { from { transform: rotate(-720deg); } to { transform: rotate(-1080deg); } }
/* «Запуск турбины» при наведении: крыльчатка раскручивается, детали оживают */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.hero:hover .c-wheel .rotor img { animation: rotor-start 1.4s cubic-bezier(.55,0,1,.45) forwards, rotor-run .32s linear 1.4s infinite; }
	.hero:hover .c-turbo img, .hero:hover .c-exh img { transform: scale(1.06); filter: saturate(1.25) brightness(1.05); }
}

.paths { position: relative; z-index: 2; margin-top: -128px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(60,20,10,.45); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); scroll-margin-top: 90px; }
.path { padding: 30px 28px; scroll-margin-top: 90px; }
.path + .path { border-left: 1px solid var(--line); }
.path__title { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.path__hint { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.path__row { display: grid; gap: 10px; }
.path__row input { min-width: 0; }
.path__car { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.path__car .btn { grid-column: 1 / -1; }
.path__row input:invalid:not(:placeholder-shown) { border-color: #e0a090; }

/* Окно «Куда перезвонить?» — второй шаг заявки по VIN */
.vin-dialog { width: min(480px, calc(100% - 32px)); border: 0; border-radius: var(--r-lg); padding: 30px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); color: var(--ink); }
.vin-dialog::backdrop { background: rgba(29,31,36,.55); }
.vin-dialog h2 { font-size: 26px; margin: 0 0 4px; padding-right: 30px; }
.vin-dialog__sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.vin-dialog__x { position: absolute; right: 14px; top: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: #999; cursor: pointer; }
.vin-dialog__x:hover { color: var(--ink); }
.vin-dialog__vin { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--cream); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
.vin-dialog__vin b { letter-spacing: .03em; }
.vin-dialog__vin button { border: 0; background: none; color: var(--red); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vin-dialog .tc-lead { grid-template-columns: 1fr 1fr; gap: 10px; }
.vin-dialog .tc-lead > * { grid-column: 1 / -1; }
.vin-dialog .tc-lead__field:nth-of-type(2), .vin-dialog .tc-lead__field:nth-of-type(3) { grid-column: auto; }
.vin-dialog .tc-lead__field:has(textarea) { display: none; }
.vin-dialog.is-prefilled .tc-lead__field:nth-of-type(1) { display: none; }
.vin-dialog .tc-lead__btnx { display: inline; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 22px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font: 700 16px/1.25 var(--f-display); }
.facts dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.section { padding: 72px 0 0; scroll-margin-top: 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin: 0; }
.more { font-weight: 700; color: var(--red); text-decoration: none; border-bottom: 2px solid currentColor; white-space: nowrap; }

.brands { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.brands a { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 10px 16px; text-decoration: none; color: var(--ink); transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.brands a:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.brands img { height: 44px; width: 72px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .85; transition: filter .2s, opacity .2s; }
.brands a:hover img { filter: none; opacity: 1; }
.brands__mono { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font: 900 22px var(--f-display); color: var(--red); }
.brands b { font-weight: 600; font-size: 15px; text-align: center; }
.brands span { font-size: 12px; color: var(--muted); margin-top: -4px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 28px 26px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.steps__n { display: block; font: 800 48px/1 var(--f-display); color: var(--red); margin-bottom: 12px; }
.steps b { display: block; font: 700 18px/1.25 var(--f-display); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.breadcrumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { padding: 18px 0 26px; }
.page-head h1 { margin: 0; }

.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 20px; }
.filters { display: grid; gap: 14px; position: sticky; top: 96px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.box__title { font-size: 18px; margin: 0 0 14px; }
.filters .box__title { font-size: 16.5px; }
.box__toggle { all: unset; display: block; cursor: default; }
.box__toggle span { display: none; }
.box--red { background: var(--red); border-color: var(--red); color: var(--cream); }
.box--red .box__title { color: var(--cream); }
.box--red p { color: #f6dcc6; font-size: 15px; margin: 0 0 14px; }
.funnel { display: grid; gap: 12px; }
.funnel__step label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.funnel__reset { font-size: 14px; text-align: center; }
.numsearch { display: grid; gap: 10px; }

.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.results-head__n { font: 700 16px var(--f-display); }
.results-head .muted { font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.card:hover { color: var(--ink); border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow); }
.card__img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--sand); }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card__img .turbine { width: 42%; color: #d9cdb8; --turbo-hole: var(--sand); }
.card__img .stock { position: absolute; left: 12px; top: 12px; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.card__sku { font: 800 16px/1.2 var(--f-display); letter-spacing: -.01em; }
.card__name { font-size: 14px; color: var(--muted); }
.card__meta { font-size: 14px; }
.card__price { margin-top: auto; padding-top: 10px; font: 700 15px var(--f-display); color: var(--red); }

.stock { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.3; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.stock--in_stock { color: var(--ok); box-shadow: inset 0 0 0 1px rgba(47,125,50,.35); }
.stock--none { text-decoration: line-through; }

.pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0 0; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

.lead-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--red); border-radius: var(--r-lg); padding: 32px; scroll-margin-top: 90px; }
.lead-box h2 { margin: 0 0 12px; }
.lead-box p { color: var(--muted); }

/* Страница марки */
.brand-head { display: flex; align-items: center; gap: 22px; padding: 22px 0 18px; }
.brand-head__logo { width: 84px; height: 84px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.brand-head__logo img { width: 60px; height: 60px; object-fit: contain; }
.brand-head h1 { margin: 0; }
.models { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.models a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.models a:hover { border-color: var(--ink); }
.models a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }

/* Карточка турбины */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; padding-top: 18px; }
.product__gallery { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.product__gallery > img, .product__stage > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; background: var(--sand); }
.product__thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.product__thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, opacity .15s; opacity: .75; }
.product__thumbs img:hover { opacity: 1; }
.product__thumbs img.is-active { border: 2px solid var(--red); opacity: 1; }
.product__stage { position: relative; touch-action: pan-y; user-select: none; }
.product__stage > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; background: var(--sand); transition: opacity .18s; -webkit-user-drag: none; }
.product__stage > img.is-fading { opacity: .25; }
.stage__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); box-shadow: 0 4px 14px -6px rgba(59,30,16,.45); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s, background .15s; }
.stage__nav svg { width: 22px; height: 22px; fill: none; stroke: var(--red-d); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stage__nav:hover { background: #fff; }
.stage__nav:focus-visible { opacity: 1; outline: 2px solid var(--red); outline-offset: 2px; }
.stage__nav--prev { left: 10px; } .stage__nav--next { right: 10px; }
.product__stage:hover .stage__nav { opacity: 1; }
.stage__count { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 20px; }
@media (hover: none) { .stage__nav { opacity: 1; width: 38px; height: 38px; } }
.product__noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 12px; background: var(--sand); border-radius: 12px; color: var(--muted); font-size: 14px; }
.product__noimg .turbine { width: 34%; color: #d9cdb8; --turbo-hole: var(--sand); }
.product__info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 30px; }
.product__info h1 { font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 6px; }
.product__sku { font: 800 18px var(--f-display); color: var(--red); }
.found { display: inline-block; margin: 14px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(47,125,50,.08); color: var(--ok); font-size: 14px; }
.rows { margin: 20px 0 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--muted); font-size: 14px; }
.rows dd { margin: 0; font-weight: 500; }
.fits { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.fits li { padding: 4px 10px; border-radius: 999px; background: var(--sand); font-size: 14px; font-weight: 600; }
.fits__more { display: inline-block; margin-top: 8px; font-size: 14px; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; align-items: center; margin-top: 22px; padding: 20px; background: var(--sand); border-radius: var(--r); }
.buy__price { font: 800 24px/1.1 var(--f-display); color: var(--red); }
.buy__note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.buy .btn { justify-self: end; }
.facts-line { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 14px; font-weight: 500; }
.facts-line li { display: flex; align-items: center; gap: 10px; }
.facts-line svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.table-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fit-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fit-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 16px; background: var(--sand); }
.fit-table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.note { margin-top: 14px; font-size: 14px; }
.crosses { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crosses li { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; letter-spacing: .02em; }
.crosses__more { display: none; margin-top: 12px; padding: 0; border: 0; background: none; font: 600 15px var(--f-text); color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* 404 */
.nf { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 40px 0 8px; }
.nf__art { display: flex; align-items: center; justify-content: center; gap: 6px; font: 800 clamp(96px, 13vw, 180px)/1 var(--f-display); color: var(--red); letter-spacing: -.04em; }
.nf__turbine { width: 1.15em; color: var(--ink); --turbo-hole: var(--bg); }
.nf__turbine .turbine__wheel { animation: spool-spin 6s linear infinite; }
.nf__body h1 { margin-bottom: 12px; }
.nf__body .muted { margin: 0 0 18px; max-width: 34em; }
.nf__body .numsearch { max-width: 520px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.content { max-width: 70ch; }
.content h2 { margin-top: 1.2em; }

/* ---------- Форма заявки (плагин) ---------- */
.tc-lead { display: grid; gap: 12px; }
.tc-lead__field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tc-lead__field > span, .tc-lead__field small { font-weight: 400; }
.tc-lead__hp { position: absolute; left: -9999px; }
.tc-lead__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.4; }
.tc-lead__consent input { width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.tc-lead__ok, .tc-lead__err { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.tc-lead__ok { background: rgba(47,125,50,.1); color: var(--ok); }
.tc-lead__err { background: rgba(181,97,47,.08); color: var(--red-d); }
.tc-lead .tc-btn { width: 100%; }

/* Заявка принята */
.tc-lead.is-done > :not(.tc-lead__ok) { display: none !important; }
.tc-lead.is-done .tc-lead__ok { grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 16px 22px; background: var(--cream); color: var(--ink); border-radius: var(--r); }
.done__turbine { display: block; width: 150px; height: 94px; color: var(--red); --spool-hole: var(--cream); margin-bottom: 6px; }
.done__turbine svg { width: 100%; height: 100%; overflow: visible; display: block; }
.done__turbine .turbine__wheel { animation: done-spin 2.4s cubic-bezier(.2,.6,.3,1) both; }
.done__turbine .spool__flame { opacity: 1; animation: done-flame 2.4s ease-out both; }
.done__title { font: 800 26px/1.1 var(--f-display); color: var(--red); }
.done__text { color: var(--muted); font-size: 16px; font-weight: 500; }
@keyframes done-spin { 0% { transform: rotate(0); } 70% { transform: rotate(-1440deg); } 100% { transform: rotate(-1520deg); } }
@keyframes done-flame {
	0% { transform: scale(0, .4); opacity: 0; }
	20% { transform: scale(1.25, 1.1); opacity: 1; }
	30% { transform: scale(.85, .9); } 40% { transform: scale(1.15, 1.05); } 50% { transform: scale(.9, .95); }
	65% { transform: scale(1.05, 1); } 100% { transform: scale(0, .5); opacity: 0; }
}
.vin-dialog.is-done h2, .vin-dialog.is-done .vin-dialog__sub, .vin-dialog.is-done .vin-dialog__vin { display: none; }
.vin-dialog.is-done .tc-lead__ok { margin-top: 10px; }
.done__close { display: none; margin-top: 14px; }
.vin-dialog.is-done .done__close { display: flex; }
@media (prefers-reduced-motion: reduce) { .done__turbine .turbine__wheel, .done__turbine .spool__flame { animation: none; } .done__turbine .spool__flame { opacity: 0; } }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 96px; background: var(--sand); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .logo svg { height: 30px; }
.site-footer .footer-brand p { color: var(--muted); margin: 16px 0 6px; max-width: 30em; }
.legal { font-size: 13px; }
.footer-h { font-size: 17px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--red); }
.footer-phone { display: inline-block; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.site-footer p { margin: 0 0 6px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid #e2d8c8; font-size: 13px; color: var(--muted); }
.mobile-bar { display: none; }

@media (min-width: 861px) { .product__gallery { position: sticky; top: 96px; } }

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1080px) {
	.paths { grid-template-columns: 1fr; }
	.path + .path { border-left: 0; border-top: 1px solid var(--line); }
	.path__car { grid-template-columns: 1fr 1fr 1fr; } .path__car .btn { grid-column: auto; }
	.brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.header-row { gap: 12px; min-height: 64px; justify-content: space-between; }
	.logo svg { height: 33px; }
	.nav-toggle { display: flex; }
	.header-phone, .header-cta { display: none; }
	.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 18px 30px -20px rgba(0,0,0,.25); }
	.main-nav.is-open { display: flex; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { display: block; padding: 14px 4px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
	.main-nav__vin { display: block; color: var(--red) !important; font-family: var(--f-display); font-weight: 800; border-bottom: 0 !important; }
	.catalog { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
	.filters { display: contents; }
	.box--car { order: 1; } .results { order: 2; } .box--num { order: 3; margin-top: 18px; } .box--vin { order: 4; }
	.js .box--car { padding: 0; }
	.js .box--car .box__title { margin: 0; }
	.js .box__toggle { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 48px 16px 18px; position: relative; cursor: pointer; }
	.js .box__toggle span { display: inline; font: 600 14px var(--f-text); color: var(--red); letter-spacing: 0; }
	.js .box__toggle::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; translate: 0 -70%; rotate: 45deg; transition: rotate .2s; }
	.js .box--car.is-open .box__toggle::after { rotate: 225deg; translate: 0 -20%; }
	.js .box--car .funnel { padding: 0 18px 18px; }
	.js .box--car:not(.is-open) .funnel { display: none; }
	.product__gallery { position: static; }
	.product { grid-template-columns: 1fr; }
	.lead-box { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.site-footer { padding-bottom: 96px; }
	.mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
	.mobile-bar .btn { min-height: 48px; padding: 0 12px; font-size: 16px; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.hero { height: auto; }
	.mosaic { position: relative; inset: auto; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 210px 120px 170px; gap: 12px; }
	.c-chrome { grid-column: 1 / 4; grid-row: 1; } .c-lamp { grid-column: 1; grid-row: 2; } .c-wheel { grid-column: 2; grid-row: 2; } .c-turbo { grid-column: 3; grid-row: 2; }
	.c-car { grid-column: 1 / 4; grid-row: 3; } .c-exh { display: none; }
	.hero__veil { background: linear-gradient(180deg, rgba(247,241,232,.5) 0, rgba(247,241,232,.25) 200px, rgba(247,241,232,0) 300px); }
	.hero__words--wide { display: none; } .hero__words--narrow { display: block; }
	.logo svg { height: 42px; }
	.hero-stamp { z-index: 40; width: 100px; height: 100px; left: min(218px, calc(100vw - 168px)); right: auto; top: 40px; transform: rotate(-45deg); }
	.paths { margin-top: -86px; }
	.path { padding: 22px 18px; }
	.path__car { grid-template-columns: 1fr 1fr; }
	.path__car .btn { grid-column: 1 / -1; }
	.vin-dialog { padding: 24px 18px; }
	.vin-dialog .tc-lead { grid-template-columns: 1fr; }
	.vin-dialog .tc-lead__field:nth-of-type(2), .vin-dialog .tc-lead__field:nth-of-type(3) { grid-column: 1 / -1; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts div { padding: 16px 12px 16px 0; border-left: 0; border-top: 1px solid var(--line); }
	.facts div:nth-child(-n+2) { border-top: 0; }
	.facts dt { font-size: 17px; }
	.section { padding-top: 52px; }
	.section-head { flex-wrap: wrap; }
	.brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.brands a { padding: 14px 6px 12px; }
	.brands img { height: 32px; width: 56px; }
	.brands b { font-size: 13px; overflow-wrap: anywhere; }
	.steps { grid-template-columns: 1fr; gap: 10px; }
	.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 18px; }
	.steps__n { font-size: 40px; grid-row: span 2; margin: 0; }
	.grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.card__body { padding: 12px 12px 14px; }
	.card__sku { font-size: 16px; }
	.card__price { font-size: 13px; }
	.crosses.is-collapsed li:nth-child(n+13) { display: none; }
	.crosses__more { display: inline-block; }
	.crosses li { padding: 6px 10px; font-size: 14px; }
	.nf { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
	.nf__art { font-size: 96px; }
	.nf__links .btn { flex: 1 1 100%; }
	.product__info { padding: 20px 18px; }
	.rows > div { grid-template-columns: 1fr; gap: 2px; }
	.buy { grid-template-columns: 1fr; }
	.buy .btn { justify-self: stretch; }
	.facts-line { grid-template-columns: 1fr; }
	.fit-table thead { display: none; }
	.fit-table, .fit-table tbody, .fit-table tr, .fit-table td { display: block; }
	.fit-table tr { padding: 12px 16px; border-top: 1px solid var(--line); }
	.fit-table td { padding: 2px 0; border: 0; }
	.fit-table td:nth-child(2)::before { content: "Годы: "; color: var(--muted); }
}
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }
