/* ============================================================
   RUSAVTO71 — тёмный премиальный стиль
   ============================================================ */
:root {
  --bg: #07080a;
  --bg-2: #0d0f12;
  --surface: #111317;
  --surface-2: #171a1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f1ee;
  --muted: #8b9099;
  --accent: #ff5a1f;
  --accent-2: #ff8a3d;
  --accent-glow: rgba(255, 90, 31, 0.45);
  --ok: #3ddc84;
  --warn: #ffc23d;
  --bad: #ff4d4d;
  --r: 18px;
  --r-sm: 12px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #000; }
.mono { font-family: var(--f-mono); letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.accent-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 50%, #ffd0a8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[hidden] { display: none !important; }

/* зерно и свечение курсора */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(3%,-6%); } 60% { transform: translate(-7%,2%); } 80% { transform: translate(6%,5%); } }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.07), transparent 60%);
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 600 12px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.h1 { font: 700 clamp(40px, 6.5vw, 96px)/0.98 var(--f-display); letter-spacing: -0.035em; margin: 0 0 20px; }
.h2 { font: 700 clamp(30px, 4.4vw, 64px)/1.02 var(--f-display); letter-spacing: -0.03em; margin: 0; }

/* ---------- кнопки ---------- */
.btn {
  --bh: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 14px/1 var(--f-body); letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s, color 0.25s;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--accent); color: #0b0b0b; box-shadow: 0 10px 40px -10px var(--accent-glow); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn-primary:hover { box-shadow: 0 16px 60px -10px var(--accent-glow); background: #ff6a33; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.07); }
.btn-danger { background: transparent; border-color: rgba(255,77,77,0.4); color: var(--bad); }
.btn-danger:hover { background: rgba(255,77,77,0.1); }
.btn-sm { --bh: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { --bh: 56px; padding: 0 30px; font-size: 15px; }
.btn-xl { --bh: 64px; padding: 0 36px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; pointer-events: none; }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,132,0.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* ---------- навигация ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
  transition: background 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 8, 10, 0.72); backdrop-filter: blur(18px) saturate(1.4); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 6px 24px -6px var(--accent-glow);
}
.logo-mark svg { width: 26px; height: 26px; fill: none; stroke: #0b0b0b; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-text { display: flex; flex-direction: column; font: 800 17px/1 var(--f-display); letter-spacing: 0.02em; }
.logo-text small { font: 600 10px/1.4 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #cfd2d8; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.btn-call { background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--text); --bh: 44px; }
.btn-call:hover { border-color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform 0.3s var(--ease), top 0.3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(7,8,10,0.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 90px var(--pad) 40px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.mobile-menu a:not(.btn) { font: 700 34px/1.3 var(--f-display); letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 24px; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 480vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.scene-ready #scene { opacity: 1; }
.no-webgl .hero-sticky { background: radial-gradient(ellipse at 70% 60%, rgba(255,90,31,0.25), transparent 60%), var(--bg); }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 50%, transparent 55%, rgba(7,8,10,0.85) 100%),
    linear-gradient(to bottom, rgba(7,8,10,0.6), transparent 18%, transparent 80%, var(--bg));
}
.hero-copy {
  position: absolute; left: var(--pad); top: 50%; translate: 0 -46%; z-index: 3;
  max-width: min(820px, 50vw);
}
.hero-eyebrow { color: #cfd2d8; letter-spacing: 0.12em; }
.hero-eyebrow::before { display: none; }
/* шрифт привязан к ширине колонки (50vw, максимум 820px): самое длинное слово «РАЗБИРАЕМ» ≈ 8.3em */
.hero-title { font: 900 clamp(36px, 5.2vw, 92px)/0.92 var(--f-display); letter-spacing: -0.045em; margin: 0 0 28px; text-transform: uppercase; }
/* строки обрезаются только по вертикали (для анимации появления), по горизонтали — никогда */
.hero-title .line { display: block; overflow: hidden; overflow: visible clip; padding-bottom: 0.04em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.loaded .hero-title .line > span { transform: none; }
.hero-title .line:nth-child(2) > span { transition-delay: 0.08s; }
.hero-title .line:nth-child(3) > span { transition-delay: 0.16s; }
.hero-title .line:nth-child(4) > span { transition-delay: 0.24s; }
.hero-sub { font-size: clamp(15px, 1.25vw, 18px); color: #b9bdc5; max-width: 470px; margin: 0 0 34px; opacity: 0; transform: translateY(20px); transition: 1s var(--ease) 0.5s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transform: translateY(20px); transition: 1s var(--ease) 0.65s; }
.loaded .hero-sub, .loaded .hero-actions { opacity: 1; transform: none; }

/* подсказка под разобранной машиной */
.explode-hint {
  position: absolute; left: 50%; top: 96px; translate: -50% 0; z-index: 3; opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(10, 11, 14, 0.7); border: 1px solid var(--line-2);
  font: 600 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #cfd2d8; white-space: nowrap;
}

.model-loader { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.page-home .model-loader { left: 66%; }
.model-loader-ring { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.9s linear infinite; margin-bottom: 8px; box-shadow: 0 0 40px -10px var(--accent-glow); }
.model-loader b { font: 800 22px var(--f-display); }
.model-loader small { font: 600 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) { .page-home .model-loader { left: 50%; top: 35%; } }
/* ---------- лёгкий режим героя (медленный интернет): диск, шестерни, искры — только SVG + CSS ---------- */
.hero-lite .hero { height: 100vh; height: 100svh; }
.hero-lite #scene, .hero-lite .scene-labels, .hero-lite .scene-chips, .hero-lite .hero-hud, .hero-lite .scroll-hint, .hero-lite .explode-hint { display: none; }
.hero-lite .hero-vignette { background: linear-gradient(90deg, rgba(7,8,10,0.92) 0%, rgba(7,8,10,0.55) 32%, transparent 58%), linear-gradient(to bottom, rgba(7,8,10,0.5), transparent 20%, transparent 78%, var(--bg)); }
.lite { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lw-svg { position: absolute; right: -3%; top: 50%; height: min(80%, 800px); width: auto; translate: 0 -48%; overflow: visible; }
.lw-glow { position: absolute; right: 0; top: 50%; width: min(70vw, 900px); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,31,0.28), rgba(255,90,31,0.08) 45%, transparent 68%); animation: lwPulse 5s ease-in-out infinite; }
@keyframes lwPulse { 50% { opacity: 0.6; scale: 0.94; } }
/* линии прорисовываются при появлении */
.lite-wheel .ln { fill: none; stroke: #c9ced6; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) calc(var(--i, 0) * 25ms); }
.lite-wheel.on .ln { stroke-dashoffset: 0; }
.lite-wheel .ln.thin { stroke: #6f757f; stroke-width: 1; }
.lite-wheel .ln.acc { stroke: var(--accent); fill: var(--accent); fill-opacity: 0.25; }
.lite-wheel .gear-body { fill: #121418; fill-opacity: 0; stroke: #5d636d; transition: stroke-dashoffset 2s var(--ease), fill-opacity 1s 1.2s; }
.lite-wheel.on .gear-body { fill-opacity: 1; }
.lite-wheel .tire { fill: url(#lwTire); opacity: 0; transition: opacity 1.2s 0.4s; }
.lite-wheel.on .tire { opacity: 1; }
.lite-wheel .ln.tread { stroke: #2e3238; stroke-width: 9; stroke-dasharray: 0.012 0.008; stroke-dashoffset: 0; }
.lite-wheel .ln.rim-o { stroke: #b9bec7; stroke-width: 16; }
.lite-wheel .ln.spoke { stroke: #dfe3e9; stroke-width: 11; stroke-linecap: round; }
.lite-wheel .ln.hub { fill: #23262c; stroke: #c9ced6; }
.lite-wheel .ln.nut { fill: #8a9099; stroke: none; }
.lite-wheel .ln.disc { fill: #2a2d33; fill-opacity: 0; stroke: #8b919b; stroke-width: 2; transition: stroke-dashoffset 2s var(--ease), fill-opacity 1s 0.8s; }
.lite-wheel.on .ln.disc { fill-opacity: 1; }
.lite-wheel .drill { fill: #0d0e10; }
.lite-wheel .caliper { fill: url(#lwCal); opacity: 0; transition: opacity 0.8s 1.4s; filter: drop-shadow(0 0 10px rgba(255,90,31,0.6)); }
.lite-wheel.on .caliper { opacity: 1; }
/* вращение: диск колеса, шестерни (сцеплены — скорости по числу зубьев) */
.lw-rim, .lw-disc, .lite-wheel .tread { animation: lwSpin 14s linear infinite; }
.lw-gear.g-a { animation: lwSpin 32s linear infinite; }
.lw-gear.g-b { animation: lwSpin 20s linear infinite reverse; }
.lw-gear.g-c { animation: lwSpin 26s linear infinite reverse; }
@keyframes lwSpin { to { transform: rotate(360deg); } }
/* искры поднимаются вверх */
.lw-sparks { position: absolute; right: 0; top: 0; bottom: 0; width: 60%; }
.lw-sparks i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: #ffb38f; box-shadow: 0 0 8px 2px rgba(255,90,31,0.7);
  opacity: 0; animation: lwSpark var(--d) linear var(--w) infinite; }
@keyframes lwSpark { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: 1; } 80% { opacity: 0.8; } 100% { opacity: 0; transform: translate(var(--dx), -95vh); } }
@media (max-width: 820px) {
  .lw-svg { right: 50%; translate: 50% 0; top: 8%; height: 42%; }
  .lw-glow { right: 50%; translate: 50% 0; top: 2%; width: 110vw; }
  .lw-sparks { width: 100%; }
  .hero-lite .hero-vignette { background: linear-gradient(to bottom, rgba(7,8,10,0.4), transparent 14%, transparent 42%, rgba(7,8,10,0.85) 58%, var(--bg) 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .lw-rim, .lw-disc, .lite-wheel .tread, .lw-gear, .lw-glow { animation: none; }
  .lw-sparks { display: none; }
}
.scene-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.scene-label i { font-size: 0; font-style: normal; }
/* телефон: на деталях номера, разделы — сеткой кнопок под машиной */
.scene-labels.compact .scene-label s, .scene-labels.compact .scene-label span { display: none; }
.scene-labels.compact .scene-label i { width: 18px; height: 18px; font: 700 10px/18px var(--f-mono); color: #0b0b0b; text-align: center; letter-spacing: 0; }
.scene-labels.compact .scene-label.on i { background: #3ddc84; }
.scene-chips { position: absolute; left: 12px; right: 12px; bottom: 40px; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; visibility: hidden; pointer-events: none; }
.scene-chip { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px 6px 7px; border-radius: 10px; background: rgba(10,11,14,0.82); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  font: 600 10px/1.25 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #e8e6e3; -webkit-tap-highlight-color: transparent; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.scene-chip em { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #0b0b0b; display: grid; place-items: center; font: 700 10px var(--f-mono); font-style: normal; letter-spacing: 0; box-shadow: 0 0 10px rgba(255,90,31,0.5); }
.scene-chip:active { background: #3ddc84; border-color: #3ddc84; color: #0b0b0b; }
.scene-chip:active em { background: #0b0b0b; color: #3ddc84; }
.scene-label {
  position: absolute; left: 0; top: 0; display: block; width: 0; height: 0;
  font: 600 11px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; will-change: transform, opacity; color: var(--text); cursor: pointer; pointer-events: none;
}
.scene-label i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,31,0.2), 0 0 18px var(--accent); translate: -50% -50%; }
.scene-label s { position: absolute; left: 0; top: 0; height: 1px; margin-top: -0.5px; background: linear-gradient(90deg, var(--accent), rgba(255,90,31,0.45)); transform-origin: 0 50%; }
.scene-label span { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 8px; background: rgba(10,11,14,0.75); border: 1px solid var(--line-2); backdrop-filter: blur(8px); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease); }
.scene-label b { font-weight: 600; color: var(--accent); transition: transform 0.25s var(--ease), color 0.2s; }
.scene-labels .scene-label span, .scene-labels .scene-label s, .scene-labels .scene-label i { transition: opacity 0.2s, background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease); }
.scene-labels.has-on .scene-label:not(.on) span { opacity: 0.35; }
.scene-labels.has-on .scene-label:not(.on) s, .scene-labels.has-on .scene-label:not(.on) i { opacity: 0.3; }
/* выбранный узел — мягкий зелёный, как подсветка деталей в 3D */
.scene-labels .scene-label.on s { height: 2px; margin-top: -1px; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.scene-labels .scene-label.on span { background: #3ddc84; border-color: #3ddc84; color: #0b0b0b; }
.scene-labels .scene-label.on b { color: #0b0b0b; transform: translateX(3px); }
.scene-labels .scene-label.on i { background: #3ddc84; box-shadow: 0 0 0 6px rgba(61,220,132,0.3), 0 0 24px #3ddc84; }
.scene-label:hover span, .scene-label:focus-visible span { background: var(--accent); border-color: var(--accent); color: #0b0b0b; transform: translateY(-2px); }
.scene-label:hover b, .scene-label:focus-visible b { color: #0b0b0b; transform: translateX(3px); }
.scene-label:hover i { box-shadow: 0 0 0 6px rgba(255,90,31,0.3), 0 0 24px var(--accent); }

.hero-hud {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; z-index: 3;
  display: flex; align-items: center; gap: 24px;
  font: 600 11px/1.3 var(--f-mono); letter-spacing: 0.16em;
}
.hud-item { display: none; } /* внизу героя — только полоска прогресса разборки/сборки */
.hud-item b { font-size: 14px; color: var(--text); }
.hud-right { text-align: right; align-items: flex-end; }
.hud-progress { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.hud-bar { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--accent); }
.scroll-hint { position: absolute; left: 50%; bottom: 80px; translate: -50% 0; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 11px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mouse { width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 14px; position: relative; }
.mouse span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- бегущая строка ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; background: var(--bg-2); position: relative; z-index: 1; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; align-items: center; }
.marquee span { font: 700 clamp(22px, 2.6vw, 38px)/1 var(--f-display); letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.35); text-transform: uppercase; transition: color 0.3s; }
.marquee span:hover { color: var(--text); }
.marquee i { color: var(--accent); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.section { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 140px) var(--pad) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 0; margin-top: clamp(70px, 10vw, 140px); max-width: calc(var(--max) - 2 * var(--pad)); }
.stat { background: var(--bg); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; gap: 8px; }
.stat b { font: 800 clamp(36px, 4.2vw, 64px)/1 var(--f-display); letter-spacing: -0.04em; }
.stat:first-child b { color: var(--accent); }
.stat span { color: var(--muted); font-size: 14px; }

/* категории */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  position: relative; aspect-ratio: 1.15; border-radius: var(--r); padding: 24px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.3s, opacity 1s var(--ease);
  transform-style: preserve-3d;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,90,31,0.18), transparent 50%);
}
.cat-card:hover { border-color: rgba(255,90,31,0.45); }
.cat-card:hover::before { opacity: 1; }
.cat-icon { position: absolute; top: 22px; left: 22px; width: 54px; height: 54px; color: var(--accent); transition: transform 0.5s var(--ease); }
.cat-card:hover .cat-icon { transform: scale(1.12) rotate(-6deg); }
[data-icon] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat-name { font: 700 clamp(17px, 1.5vw, 22px)/1.1 var(--f-display); letter-spacing: -0.02em; position: relative; }
.cat-arrow { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: 0.4s var(--ease); }
.cat-card:hover .cat-arrow { background: var(--accent); color: #000; border-color: var(--accent); transform: rotate(45deg); }
.cat-index { position: absolute; right: 18px; bottom: 12px; font: 900 64px/1 var(--f-display); color: rgba(255,255,255,0.03); letter-spacing: -0.05em; }

/* карточки деталей */
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.part-card {
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s;
}
.part-card:hover { border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,90,31,0.15); }
.part-card.shown { animation: cardIn 0.8s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px); } }
.part-card.skeleton { min-height: 400px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }
.part-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); display: block; }
.part-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.part-card:hover .part-media img { transform: scale(1.06); }
.part-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,90,31,0.14), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,0.025) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,0.025) 23px 24px),
    var(--bg-2);
  color: var(--accent);
}
.part-ph span { width: 30%; max-width: 90px; aspect-ratio: 1; transition: transform 0.6s var(--ease); }
.part-card:hover .part-ph span { transform: scale(1.1); }
.part-ph em { font: 600 12px var(--f-mono); font-style: normal; color: var(--muted); letter-spacing: 0.1em; }
.badge { position: absolute; top: 14px; left: 14px; padding: 6px 11px; border-radius: 999px; font: 700 11px/1 var(--f-body); letter-spacing: 0.04em; backdrop-filter: blur(10px); text-transform: uppercase; }
.badge-available { background: rgba(61,220,132,0.14); color: var(--ok); border: 1px solid rgba(61,220,132,0.3); }
.badge-reserved { background: rgba(255,194,61,0.14); color: var(--warn); border: 1px solid rgba(255,194,61,0.3); }
.badge-sold { background: rgba(255,255,255,0.08); color: var(--muted); border: 1px solid var(--line-2); }
.photo-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(0,0,0,0.6); font-size: 11px; font-weight: 700; }
.part-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.part-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.part-title { font: 700 17px/1.25 var(--f-body); letter-spacing: -0.01em; margin-top: 2px; }
.part-title:hover { color: var(--accent); }
.part-car { font-size: 14px; color: #b9bdc5; }
.part-oem { font-size: 12px; color: var(--muted); }
.part-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.part-price { font: 800 19px/1 var(--f-display); letter-spacing: -0.02em; }

/* как заказать */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.how-step { position: relative; padding: clamp(28px, 3vw, 44px); border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); overflow: hidden; }
.how-step::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--accent); transition: width 1.2s var(--ease) calc(var(--d, 0ms) + 300ms); }
.how-step.in::after { width: 100%; }
.how-num { font: 900 72px/1 var(--f-display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,90,31,0.6); }
.how-step h3 { font: 700 24px/1.15 var(--f-display); letter-spacing: -0.02em; margin: 24px 0 10px; }
.how-step p { color: var(--muted); margin: 0; }

/* большой CTA */
.big-cta { padding-bottom: clamp(70px, 10vw, 140px); }
.big-cta-inner {
  position: relative; border-radius: calc(var(--r) * 1.6); padding: clamp(40px, 7vw, 100px) clamp(24px, 6vw, 80px); overflow: hidden; text-align: center;
  background: radial-gradient(ellipse at 50% 120%, rgba(255,90,31,0.45), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line);
}
.big-cta-inner::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,0.03) 79px 80px); mask: linear-gradient(transparent, #000); }
.big-cta-inner > * { position: relative; }
.big-cta-inner .muted { max-width: 520px; margin: 0 auto 36px; font-size: 18px; }

/* ---------- футер ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(60px, 8vw, 110px) var(--pad) 30px; margin-top: clamp(60px, 8vw, 120px); }
.page-home .footer { margin-top: 0; }
.footer-cta { max-width: var(--max); margin: 0 auto 70px; }
.footer-phone { display: inline-block; font: 800 clamp(36px, 7vw, 110px)/1 var(--f-display); letter-spacing: -0.045em; margin-bottom: 16px; transition: color 0.3s; }
.footer-phone:hover { color: var(--accent); }
.footer-cta .muted { max-width: 540px; font-size: 17px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 40px 0; border-top: 1px solid var(--line); }
.footer-grid p { margin: 0 0 4px; }
.footer-label { font: 600 11px var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px !important; }
.footer-social { display: flex; gap: 14px; }
.footer-social a, .footer-grid a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- модалка заказа ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,4,6,0.7); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.4s; }
.modal-card {
  position: relative; width: min(460px, 100%); padding: 40px 32px 30px; border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, #16191e, #0e1013); border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,0.9), 0 0 80px -30px var(--accent-glow);
  opacity: 0; transform: translateY(30px) scale(0.96); transition: 0.5s var(--ease);
}
.modal.open { pointer-events: auto; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; font-size: 22px; line-height: 1; color: var(--muted); }
.modal-x:hover { color: #fff; border-color: #fff; }
.modal-ring { position: relative; width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center; }
.modal-ring svg { width: 34px; height: 34px; fill: #0b0b0b; position: relative; z-index: 2; }
.modal-ring::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 40px var(--accent-glow); z-index: 1; }
.modal-ring span { position: absolute; inset: 14px; border-radius: 50%; border: 1px solid var(--accent); animation: ringOut 2.4s var(--ease) infinite; }
.modal-ring span:nth-child(2) { animation-delay: 0.8s; } .modal-ring span:nth-child(3) { animation-delay: 1.6s; }
@keyframes ringOut { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
.modal-card .eyebrow { justify-content: center; }
.modal-card .eyebrow::before { display: none; }
.modal-card h3 { font: 700 28px/1.1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 16px; }
.order-part { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); margin-bottom: 16px; text-align: left; }
.order-part-name { font-weight: 700; margin-bottom: 6px; }
.order-part-code { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-part-code b { font-family: var(--f-mono); color: var(--accent); font-size: 16px; }
.copy-btn { border: 1px solid var(--line-2); background: transparent; border-radius: 8px; padding: 3px 9px; font-size: 12px; font-weight: 600; color: var(--muted); font-family: var(--f-body); }
.copy-btn:hover { color: #fff; border-color: #fff; }
.modal-text { font-size: 15px; margin: 0 0 22px; }
.modal-card .btn-xl { width: 100%; font-family: var(--f-display); font-size: 19px; letter-spacing: -0.01em; }
.modal-hours { font-size: 13px; margin: 12px 0 0; }
.modal-alt { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.modal-alt:empty { display: none; }

/* ---------- страницы: каталог ---------- */
.page-hero { position: relative; padding: clamp(130px, 16vw, 200px) var(--pad) 40px; max-width: var(--max); margin: 0 auto; }
.page-hero .muted { font-size: 18px; max-width: 560px; }
.page-hero-bg { position: absolute; inset: 0 0 -200px; pointer-events: none; overflow: hidden; z-index: -1; }
.page-hero-bg span { position: absolute; border-radius: 50%; filter: blur(80px); }
.page-hero-bg span:first-child { width: 520px; height: 520px; right: -100px; top: -120px; background: rgba(255,90,31,0.22); animation: float 12s ease-in-out infinite; }
.page-hero-bg span:last-child { width: 380px; height: 380px; right: 30%; top: 60px; background: rgba(74,125,255,0.10); animation: float 14s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-40px, 40px) scale(1.1); } }
.catalog { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.filters { position: sticky; top: 76px; z-index: 20; display: flex; gap: 12px; padding: 12px; margin: 0 -12px; border-radius: calc(var(--r) + 4px); background: rgba(7,8,10,0.8); backdrop-filter: blur(16px); }
.filter-row { display: flex; gap: 12px; }
.search { flex: 1; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 18px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; height: 54px; padding: 0 20px 0 50px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,31,0.15); }
.select {
  height: 54px; padding: 0 42px 0 18px; border-radius: 16px; border: 1px solid var(--line-2); background-color: var(--surface); outline: none; font-weight: 600; font-size: 14px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: 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' stroke='%238b9099' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.select:focus { border-color: var(--accent); }
.select option { background: var(--surface); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 600; font-size: 14px; color: #cfd2d8; transition: 0.25s; }
.chip span { width: 18px; height: 18px; color: var(--accent); }
.chip:hover { border-color: rgba(255,255,255,0.35); color: #fff; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #0b0b0b; }
.chip.active span { color: #0b0b0b; }
.catalog-info { padding: 10px 0 16px; font-size: 14px; min-height: 46px; }
.empty { text-align: center; padding: 60px 20px; }
.empty > span { display: block; width: 80px; height: 80px; margin: 0 auto 10px; color: var(--accent); opacity: 0.7; }
.empty h3 { font: 700 26px var(--f-display); margin: 0 0 8px; }
.empty .muted { margin: 0 0 24px; }
.more-wrap { display: flex; justify-content: center; padding: 36px 0 0; }

/* ---------- страница детали ---------- */
.part-page { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 12vw, 140px) var(--pad) 0; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--accent); font-family: var(--f-mono); }
.part-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.gallery { position: sticky; top: 100px; }
.gallery-main { position: relative; aspect-ratio: 4/3; border-radius: calc(var(--r) + 4px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); cursor: zoom-in; }
.gallery-main img.active { opacity: 1; transform: none; }
.gallery-main.zoom img { object-fit: contain; background: #000; cursor: zoom-out; }
.part-ph-big span { width: 22%; max-width: 140px; }
.gal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(7,8,10,0.6); backdrop-filter: blur(10px); font-size: 26px; line-height: 1; z-index: 2; transition: 0.25s; }
.gal-nav:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.gal-prev { left: 14px; } .gal-next { right: 14px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: none; width: 84px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--surface); opacity: 0.55; transition: 0.25s; }
.gallery-thumbs button.active { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.part-h1 { font: 700 clamp(30px, 3.4vw, 50px)/1.05 var(--f-display); letter-spacing: -0.03em; margin: 0 0 12px; }
.part-car-big { font-size: 18px; color: #b9bdc5; margin: 0 0 28px; }
.price-box { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 14px; }
.price-box span { display: block; font-size: 13px; margin-bottom: 6px; }
.price-big { font: 800 clamp(30px, 3vw, 42px)/1 var(--f-display); letter-spacing: -0.03em; }
.code-box { text-align: right; }
.code-box b { font-size: 20px; color: var(--accent); }
.order-note { text-align: center; font-size: 14px; margin: 12px 0 30px; }
.sold-box { padding: 18px 20px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.specs { margin: 0 0 30px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-word; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-available { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.status-reserved { background: var(--warn); }
.status-sold { background: var(--muted); }
.part-desc h3 { font: 700 18px var(--f-display); margin: 0 0 10px; }
.part-desc p { color: #c3c7ce; white-space: pre-line; margin: 0 0 24px; }
.notfound { text-align: center; min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.notfound .eyebrow::before { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .btn-call { margin-left: auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .btn-call .btn-call-num { display: none; }
  .btn-call { width: 44px; padding: 0; }
  .btn-call::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat; }
  .btn-call .pulse-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; }
  .hero { height: 300vh; }
  .hero-copy { top: auto; bottom: 52px; translate: none; max-width: none; right: var(--pad); }
  .hero-title { font-size: clamp(38px, 11vw, 64px); margin-bottom: 18px; }
  .hero-sub { font-size: 15px; margin-bottom: 22px; }
  .hero-actions .btn { --bh: 50px; padding: 0 20px; flex: 1; }
  .scene-label { font-size: 9.5px; letter-spacing: 0.08em; gap: 5px; }
  .scene-label span { padding: 7px 8px; gap: 5px; }
  .scene-label i { width: 7px; height: 7px; }
  .explode-hint { top: 82px; font-size: 9.5px; letter-spacing: 0.08em; padding: 8px 12px; }
  .scroll-hint { display: none; }
  .hero-hud { bottom: 20px; }
  .hud-item { min-width: 80px; }
  .stats { grid-template-columns: 1fr 1fr; margin-left: var(--pad); margin-right: var(--pad); }
  .how-grid { grid-template-columns: 1fr; }
  .part-layout { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .filters { flex-direction: column; top: 68px; }
  .filter-row .select { flex: 1; min-width: 0; }
}
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 16px; aspect-ratio: 1; }
  .cat-icon { width: 40px; height: 40px; top: 16px; left: 16px; }
  .cat-arrow { width: 32px; height: 32px; top: 14px; right: 14px; }
  .cat-name { font-size: 15px; }
  .parts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text small { display: none; }
  .modal-card { padding: 34px 20px 22px; }
}
/* телефоны: кнопки с номером и номер в футере не вылезают за край */
@media (max-width: 820px) {
  .big-cta-inner { padding-left: 20px; padding-right: 20px; }
  .big-cta .btn-xl, .modal-card .btn-xl { width: 100%; padding: 0 14px; font-size: clamp(13px, 4vw, 17px); }
  .modal-card .btn-xl svg { flex: none; }
  /* номер в одну строку: ширина текста ≈ 12 × размер шрифта, подгоняем под ширину экрана */
  .footer-phone { white-space: nowrap; font-size: min(calc((100vw - 2 * var(--pad)) / 12.4), 64px); letter-spacing: -0.04em; }
}

/* телефоны и планшеты: убираем дорогие эффекты, которые перерисовываются каждый кадр */
@media (max-width: 820px), (pointer: coarse) and (hover: none) {
  .grain { display: none; }                         /* анимированный шум поверх всей страницы */
  .nav.scrolled { backdrop-filter: none; background: rgba(7, 8, 10, 0.94); }
  .btn-ghost, .scene-label span, .gal-nav { backdrop-filter: none; }
  /* без затемнения по краям — разобранная машина занимает всю ширину; снизу лёгкая подложка под текст этапа */
  .hero-vignette, .hero-lite .hero-vignette { background: linear-gradient(to bottom, transparent 58%, rgba(7, 8, 10, 0.55) 80%, var(--bg) 100%); }
  .page-hero-bg span { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; }
}
