:root {
  --bg: #0f1216;
  --panel: #181d23;
  --text: #e8ebef;
  --muted: #9aa4b0;
  --accent: #ff5a1f;
  --accent-2: #ff8a3d;
  --line: #262d36;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(15,18,22,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: .5px; }
.logo span { color: var(--accent); }
nav ul { display: flex; gap: 26px; list-style: none; }
nav a { color: var(--muted); font-weight: 500; transition: color .2s; }
nav a:hover, nav a.active { color: var(--text); }
nav a.active { border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.phone { font-weight: 700; color: var(--accent-2); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 1.8rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; border: 0; cursor: pointer; font-size: 1rem; transition: transform .15s, background .2s; }
.btn:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); background: transparent; }

/* Hero */
.hero { padding: 110px 0 90px; background: radial-gradient(900px 400px at 80% 0%, rgba(255,90,31,.22), transparent), linear-gradient(180deg, #14181e, var(--bg)); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 22px 0 34px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.page-head { padding: 70px 0 40px; background: linear-gradient(180deg, #14181e, var(--bg)); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { color: var(--muted); margin-top: 8px; }

/* Sections */
section { padding: 70px 0; }
.title { font-size: 1.9rem; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 36px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.price { display: inline-block; margin-top: 14px; color: var(--accent-2); font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stats b { display: block; font-size: 2.6rem; color: var(--accent); }
.stats span { color: var(--muted); }

.cta { background: linear-gradient(120deg, var(--accent), #c93a00); border-radius: var(--radius); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 1.7rem; }
.cta .btn { background: #fff; color: #111; }

/* News */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-card time { color: var(--accent-2); font-size: .85rem; font-weight: 600; }
.tag { align-self: flex-start; font-size: .75rem; padding: 3px 10px; border-radius: 99px; background: rgba(255,90,31,.15); color: var(--accent-2); }

/* Services table */
.service-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-row h3 { font-size: 1.1rem; }
.service-row p { color: var(--muted); font-size: .93rem; grid-column: 1; }
.service-row .price { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; white-space: nowrap; }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li b { display: block; color: var(--muted); font-size: .85rem; font-weight: 500; }
form { display: grid; gap: 14px; }
input, textarea, select { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 30px; }
.map iframe { width: 100%; height: 340px; border: 0; filter: invert(.9) hue-rotate(180deg); }
.note { color: #5fd38d; font-weight: 600; display: none; }

footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: .9rem; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 800px) {
  nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; padding: 10px 16px; }
  nav li a { display: block; padding: 12px 0; }
  .burger { display: block; }
  .phone { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { padding: 30px 22px; }
}

/* Products */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { padding: 9px 18px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: inherit; transition: .2s; }
.chip:hover, .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.product { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product .pic { height: 160px; display: grid; place-items: center; font-size: 4rem; background: linear-gradient(135deg, #1d242c, #11151a); }
.product .body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .brand { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; }
.product .bottom { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.product .price { margin: 0; font-size: 1.15rem; }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.hidden { display: none !important; }

/* Booking */
.tabs { display: flex; gap: 10px; margin-bottom: 26px; }
.tab-panel { display: none; max-width: 640px; }
.tab-panel.active { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: .85rem; color: var(--muted); display: grid; gap: 6px; }
.stars { display: flex; gap: 6px; font-size: 1.8rem; cursor: pointer; color: var(--line); }
.stars span.on { color: var(--accent-2); }
@media (max-width: 800px) { .row2 { grid-template-columns: 1fr; } }

/* Product page */
.crumbs { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.crumbs a:hover { color: var(--accent-2); }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.gallery .main { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(135deg,#1d242c,#11151a); border: 1px solid var(--line); display: grid; place-items: center; font-size: 8rem; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; }
.thumbs img.on, .thumbs img:hover { border-color: var(--accent); }
.pdp h1 { font-size: 1.9rem; line-height: 1.2; margin: 6px 0 14px; }
.pdp .big-price { font-size: 2rem; font-weight: 800; color: var(--accent-2); }
.pdp .old { color: var(--muted); text-decoration: line-through; margin-left: 10px; font-size: 1.1rem; }
.stock { display: inline-block; margin: 12px 0; font-size: .9rem; color: #5fd38d; }
.stock.no { color: #ff7a7a; }
.attrs { width: 100%; border-collapse: collapse; margin: 22px 0; }
.attrs td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.attrs td:first-child { color: var(--muted); width: 45%; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.product .pic { position: relative; overflow: hidden; }
.product .pic img { width: 100%; height: 100%; object-fit: cover; }
.product h3 a:hover { color: var(--accent-2); }
.desc { color: var(--muted); max-width: 760px; }
@media (max-width: 800px) { .pdp { grid-template-columns: 1fr; } }

/* Language switcher */
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { padding: 5px 9px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang a.on { background: var(--accent); color: #fff; }
.price { white-space: normal; }
@media (max-width: 800px) { .nav { gap: 10px; } .logo { margin-right: auto; } }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 36px; width: auto; }
.logo b { font-weight: 800; letter-spacing: 2px; font-size: 1.15rem; }

/* Hero logo / footer brand */
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-logo { width: 100%; max-width: 380px; height: auto; justify-self: center; filter: drop-shadow(0 10px 40px rgba(255,90,31,.18)); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 800px) { .hero-in { grid-template-columns: 1fr; } .hero-logo { max-width: 240px; justify-self: start; order: -1; } }

/* Header: крупный щит без надписи */
.nav { height: 80px; }
.logo img { height: 56px; }
nav { }
@media (max-width: 800px) { .nav { height: 72px; } .logo img { height: 48px; } nav { top: 72px; } }

/* Hero: фон-фото с логотипом справа */
.hero {
  background:
    linear-gradient(90deg, rgba(15,18,22,.92) 0%, rgba(15,18,22,.55) 42%, rgba(15,18,22,0) 70%),
    linear-gradient(180deg, rgba(15,18,22,0) 70%, var(--bg) 100%),
    url(hero-bg.jpg) 100% center / cover no-repeat, #0a0a0a;
  min-height: 560px; display: flex; align-items: center;
}
.hero .container { width: min(1120px, 100% - 32px); }
.hero-in { grid-template-columns: 1fr; }
@media (max-width: 800px) {
  .hero { min-height: 0; padding: 70px 0 60px; background-position: 100% center;
    background-image: linear-gradient(180deg, rgba(15,18,22,.78), rgba(15,18,22,.9)), url(hero-bg.jpg); }
}
@media (min-width: 801px) {
  .hero h1 { font-size: clamp(2rem, 3.6vw, 3.3rem); max-width: 600px; }
  .hero p { max-width: 480px; }
}

.qty { color: #5fd38d; font-weight: 600; display: block; margin-top: 6px; }
.qty.no { color: #ff7a7a; }

/* ===================== ДИЗАЙН-СЛОЙ: премиум-тёмная тема ===================== */
:root { --font-head: "Exo 2", "Segoe UI", system-ui, sans-serif; --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --red: #d9111f; }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .btn, .chip, .stats b, .price, .big-price, .logo b, .eyebrow, .price-chip, .brand-chip { font-family: var(--font-head); }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.01em; }
.title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-top: 12px; }
.sub { margin-top: -4px; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 18px; padding: 6px 14px; border: 1px solid rgba(255,138,61,.35); border-radius: 99px; background: rgba(255,90,31,.08); }
section.alt { background: linear-gradient(180deg, #151a20 0%, #11151a 100%); border-block: 1px solid var(--line); }
section.tight { padding: 10px 0 50px; }

/* карбон-фон для шапок страниц */
.carbon { position: relative; isolation: isolate; overflow: hidden; }
.page-head.carbon { background-color: #0f1216; background-image: none; }
.carbon::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .28;
  background:
    linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px, linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0,
    linear-gradient(27deg, #222 5px, transparent 5px) 0 10px, linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
    linear-gradient(90deg, #1b1b1b 10px, transparent 10px), linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
  background-color: #131313; background-size: 20px 20px; }
.carbon::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(800px 320px at 88% -20%, rgba(255,90,31,.30), transparent 70%), radial-gradient(500px 260px at 0% 110%, rgba(255,138,61,.10), transparent 70%), linear-gradient(180deg, rgba(15,18,22,.2), var(--bg)); }
.page-head { padding: 80px 0 56px; }
.page-head h1 { font-weight: 800; letter-spacing: -.015em; }
.page-head .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.page-head .lead, .page-head p { max-width: 720px; }
.price-chip { display: inline-block; margin-top: 18px !important; padding: 8px 18px; border-radius: 10px; background: rgba(255,90,31,.12); border: 1px solid rgba(255,138,61,.4); color: var(--accent-2) !important; font-weight: 700; }

/* шапка */
header { transition: background .3s, box-shadow .3s; }
header.scrolled { background: rgba(10,12,15,.97); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
nav a { font-weight: 600; font-size: .95rem; }

/* hero: подсветка и мягкое «дыхание» */
.hero { position: relative; isolation: isolate; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: 8%; top: 10%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.20), transparent 65%); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
.hero h1 { font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }

/* кнопки */
.btn { position: relative; overflow: hidden; font-weight: 700; letter-spacing: .02em; }
.btn:not(.ghost) { box-shadow: 0 8px 26px rgba(255,90,31,.30); }
.btn::after { content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn:hover::after { left: 150%; }

/* карточки: стекло + подсветка под курсором */
.card { position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.01)), var(--panel); border: 1px solid rgba(255,255,255,.07); }
.card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,138,61,.16), transparent 45%); }
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-5px); border-color: rgba(255,138,61,.6); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
a.card { color: inherit; display: block; }
.svc .icon { font-size: 2.2rem; margin-bottom: 14px; filter: drop-shadow(0 4px 12px rgba(255,90,31,.35)); }
.svc .price { font-size: 1rem; }
.card.check { padding: 18px 22px 18px 52px; }
.card.check::after { content: "✔"; position: absolute; left: 20px; top: 16px; color: var(--accent-2); font-weight: 800; }
.card.check p { color: var(--text); font-weight: 500; }

/* полоса марок + бегущая строка */
.strip { padding: 34px 0 30px; border-block: 1px solid var(--line); background: linear-gradient(180deg, #11151a, #0f1216); }
.strip-title { text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 22px; font-family: var(--font-head); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .half { display: flex; gap: 48px; padding-right: 48px; }
@keyframes scroll { to { transform: translateX(-50%); } }
.brand-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 64px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-chip img { width: 34px; height: 34px; filter: invert(1) opacity(.65); transition: filter .3s, transform .3s; }
.brand-chip:hover img { filter: invert(1) opacity(1) drop-shadow(0 0 10px rgba(255,138,61,.7)); transform: scale(1.15); }
.brand-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 22px 12px; margin-top: 18px; }

/* баннер Motul */
.motul { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; padding: 38px 44px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(115deg, #6d060f 0%, #b30d1b 48%, #e0212d 100%); box-shadow: 0 24px 60px rgba(200,16,30,.25); transition: transform .3s, box-shadow .3s; }
.motul::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 26px); }
.motul:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(200,16,30,.4); }
.motul-drop { position: absolute; right: 22%; top: -10px; width: 180px; opacity: .9; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(14px) rotate(4deg); } }
.motul-text { position: relative; display: grid; gap: 4px; }
.motul-kicker { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.motul-name { font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: .04em; line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.motul .btn { position: relative; background: #fff; color: #a30b16; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.motul.sm { padding: 24px 32px; }
.motul.sm .motul-name { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.motul-img img { width: 100%; border-radius: var(--radius); display: block; }

/* статистика */
.stats b { font-weight: 800; background: linear-gradient(180deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(2.2rem, 4vw, 3rem); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(255,138,61,.5); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding-bottom: 18px; }
.seo { max-width: 860px; }
.seo p { color: var(--muted); margin-bottom: 14px; }
.seo a { color: var(--accent-2); border-bottom: 1px dashed rgba(255,138,61,.5); }

/* CTA с движущимся градиентом */
.cta { background: linear-gradient(120deg, var(--accent), #c93a00, var(--accent-2), var(--accent)); background-size: 300% 300%; animation: flow 10s ease infinite; box-shadow: 0 24px 60px rgba(255,90,31,.25); }
@keyframes flow { 0%, 100% { background-position: 0 50%; } 50% { background-position: 100% 50%; } }

/* тюнинг */
.sub-label { color: var(--muted); font-size: .9rem; align-self: center; margin-right: 4px; }
.filters.sub { padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.tuning-banner { margin-bottom: 26px; padding: 28px 32px; border-radius: var(--radius); border: 1px solid rgba(255,138,61,.35); background: linear-gradient(120deg, rgba(255,90,31,.12), rgba(255,255,255,.02)); }
.tuning-banner h3 { font-size: 1.4rem; margin-bottom: 8px; }
.tuning-banner p { color: var(--muted); max-width: 760px; margin-bottom: 16px; }

/* footer */
footer { padding: 0; background: #0b0d10; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 54px 0 34px; }
.foot-grid h4 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--accent-2); }
.foot-grid p { margin: 10px 0 0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 0 30px; border-top: 1px solid var(--line); }
.foot-bottom .tm { max-width: 560px; font-size: .78rem; opacity: .7; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } .motul { padding: 28px 24px; } .motul-drop { right: 6%; width: 120px; } }

/* появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero::after, .cta, .motul-drop { animation: none; }
  html { scroll-behavior: auto; }
}

/* Motul: официальный логотип */
.motul-logo { height: clamp(46px, 6vw, 64px); width: auto; display: block; margin: 4px 0 6px; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); }
.motul.sm .motul-logo { height: clamp(36px, 4.5vw, 46px); }

/* ===== Каталог запчастей ===== */
.parts-filter { width: 100%; max-width: 520px; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; margin-bottom: 18px; }
.parts-filter.big { max-width: 720px; padding: 16px 20px; font-size: 1.05rem; border-color: rgba(255,138,61,.45); }
.parts-filter:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.18); }
.part-results { display: grid; gap: 8px; max-width: 720px; }
.part-hit { display: grid; grid-template-columns: 170px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: border-color .2s, transform .2s; }
.part-hit:hover { border-color: var(--accent); transform: translateX(4px); }
.part-hit b { font-family: var(--font-head); color: var(--accent-2); }
.part-hit span { color: var(--muted); font-size: .92rem; }
.part-hit em { font-style: normal; font-size: .85rem; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.parts-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.parts-table th { text-align: left; padding: 14px 16px; background: #151a20; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; position: sticky; top: 0; }
.parts-table td { padding: 12px 16px; border-top: 1px solid var(--line); }
.parts-table tbody tr:hover { background: rgba(255,138,61,.06); }
.parts-table .num a { font-family: var(--font-head); font-weight: 700; color: var(--accent-2); }
.parts-table .pr { white-space: nowrap; font-weight: 600; }
.qty-ok { color: #5fd38d; font-weight: 600; }
.qty-no { color: var(--muted); }
.parts-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 34px; border-radius: var(--radius); border: 1px solid rgba(255,138,61,.35); background: linear-gradient(120deg, rgba(255,90,31,.14), rgba(255,255,255,.02)); transition: transform .3s, border-color .3s; }
.parts-banner:hover { transform: translateY(-3px); border-color: var(--accent); }
.parts-banner h3 { font-size: 1.5rem; margin: 6px 0 4px; }
.parts-banner p { color: var(--muted); }
a.chip { display: inline-block; text-decoration: none; }
@media (max-width: 800px) { .part-hit { grid-template-columns: 1fr; gap: 4px; } }

/* ===== Корзина ===== */
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; font-size: 1.15rem; transition: border-color .2s; }
.cart-link:hover { border-color: var(--accent); }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 .72rem/20px var(--font-head); text-align: center; }
.cart-count[hidden] { display: none; }
.product .bottom { flex-wrap: wrap; gap: 10px; }
.product .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.add-cart.added { background: #2e9e5b; box-shadow: none; }
.btn.add-cart.icon { padding: 8px 12px; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.buy-row .btn { font-size: 1rem; padding: 14px 24px; }
.cart-td { width: 1%; white-space: nowrap; }
.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto auto 32px; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 12px; }
.cart-pic { width: 84px; height: 66px; border-radius: 8px; overflow: hidden; background: #11151a; display: grid; place-items: center; font-size: 1.8rem; }
.cart-pic img { width: 100%; height: 100%; object-fit: contain; }
.cart-name { font-weight: 600; }
.cart-name:hover { color: var(--accent-2); }
.cart-price { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button, .cart-rm { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: 1.1rem; }
.cart-qty button:hover, .cart-rm:hover { border-color: var(--accent); }
.cart-line { font-weight: 700; min-width: 120px; text-align: right; font-family: var(--font-head); color: var(--accent-2); }
.cart-summary { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: grid; gap: 14px; }
.cart-summary fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.cart-summary legend { padding: 0 6px; color: var(--muted); font-size: .85rem; }
.cart-summary label.radio { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .95rem; }
.cart-summary label.radio input { width: auto; }
.sum-row { display: flex; justify-content: space-between; font-size: 1.15rem; }
.sum-row b { color: var(--accent-2); font-family: var(--font-head); }
#np-fields { display: grid; gap: 8px; }
#np-fields[hidden], [hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg.err { color: #ff7a7a; }
.cart-empty { text-align: center; padding: 60px 0; }
.cart-empty h2 { margin-bottom: 18px; }
#fallback-text { font-size: .85rem; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } .cart-summary { position: static; } .cart-row { grid-template-columns: 70px 1fr auto; } .cart-qty { grid-column: 2; } .cart-line { grid-column: 3; grid-row: 1; min-width: 0; } .cart-rm { grid-column: 3; grid-row: 2; } }

.qty.ask, .stock.ask { color: var(--accent-2); }
.datasheet { margin: 14px 0 6px; }
.datasheet a { color: var(--accent-2); border-bottom: 1px dashed rgba(255,138,61,.5); }

/* Motul: две кнопки */
.motul-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.motul .btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.75); color: #fff; box-shadow: none; }
.motul .btn.ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.motul:hover { transform: none; }
.motul-custom .motul-img { width: 100%; border-radius: var(--radius); display: block; }
.motul-custom .motul-actions { margin-top: 14px; }
.req-note { color: var(--muted); font-size: .8rem; }
input[name=vin] { text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-head); }
input[name=vin]:invalid:not(:placeholder-shown) { border-color: #ff7a7a; }
.star { color: #ff5a5a; font-weight: 700; }
.req-legend { color: var(--muted); font-size: .85rem; margin: 2px 0 -4px; }

/* Новая почта */
.np-field { position: relative; }
.np-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; border: 1px solid var(--accent); border-radius: 10px; background: #141920; box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.np-item { display: grid; gap: 2px; width: 100%; text-align: left; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.np-item:last-child { border-bottom: 0; }
.np-item:hover, .np-item:focus { background: rgba(255,138,61,.12); outline: 0; }
.np-item b { font-weight: 600; font-size: .92rem; }
.np-item small { color: var(--muted); font-size: .8rem; }
.np-tag { justify-self: start; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }
.np-tag.post { color: #6cc4ff; }
.np-note { padding: 12px 14px; color: var(--muted); font-size: .9rem; }
#np-hint.err { color: #ffb36b; }
#np-branch:disabled { opacity: .55; cursor: not-allowed; }

/* ===================== МОБИЛЬНАЯ ВЕРСИЯ КАК ПРИЛОЖЕНИЕ ===================== */
.tabbar, .sheet, .sheet-backdrop { display: none; }
@media (max-width: 800px) {
  :root { --tab-h: 64px; }
  html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 6px); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
  header { padding-top: env(safe-area-inset-top); }
  .cart-link { display: none !important; }
  .burger { width: 46px; height: 46px; border-radius: 12px; }
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
  .hero { padding: 52px 0 40px; min-height: 0; }
  .hero .actions .btn, .page-head .actions .btn, .buy-row .btn { flex: 1 1 100%; }
  section { padding: 42px 0; }
  .page-head { padding: 48px 0 28px; }
  .product .bottom .btns { width: 100%; }
  .product .btns .btn { flex: 1; }
  .parts-table { min-width: 520px; }
  .table-wrap { margin-inline: -4px; }

  /* нижняя панель */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 40; border-bottom: 0;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(12,15,19,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); transition: transform .25s; }
  body.kbd .tabbar { transform: translateY(110%); }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border: 0; background: none; color: var(--muted);
    font: 600 .68rem/1 var(--font-head); cursor: pointer; position: relative; text-decoration: none; min-width: 0; }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab i { position: relative; font-style: normal; font-size: 1.32rem; line-height: 1; transition: transform .2s; }
  .tab:active i { transform: scale(.88); }
  .tab.on { color: var(--accent-2); }
  .tab.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tab-main { justify-content: flex-end; padding-bottom: 9px; color: var(--text); }
  .tab-main i { display: grid; place-items: center; width: 54px; height: 54px; margin-top: -30px; margin-bottom: 4px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 22px rgba(255,90,31,.5), 0 0 0 5px rgba(12,15,19,.94); font-size: 1.45rem; }
  .tab-main.on::before { display: none; }
  .tab .cart-count { top: -7px; right: -11px; }

  /* окно «Связаться» */
  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.62); opacity: 0; transition: opacity .25s; }
  .sheet-backdrop.open { opacity: 1; }
  .sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 90vh; overflow: auto; overscroll-behavior: contain;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #151a21; border-top: 1px solid rgba(255,138,61,.45);
    transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .sheet.open { transform: none; }
  .sheet-handle { width: 44px; height: 4px; border-radius: 2px; background: #2c343e; margin: 0 auto 14px; }
  .sheet h3 { font-size: 1.25rem; }
  .sheet-hours { color: var(--muted); font-size: .85rem; margin: 2px 0 14px; }
  .sheet-list { display: grid; gap: 8px; }
  .sheet-item { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); }
  .sheet-item:active { border-color: var(--accent); background: rgba(255,138,61,.1); }
  .sheet-item i { font-style: normal; font-size: 1.5rem; width: 32px; text-align: center; }
  .sheet-item b { display: block; font-family: var(--font-head); }
  .sheet-item small { color: var(--muted); }
  .sheet-close { margin-top: 10px; width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: transparent; color: var(--muted); font: 600 1rem var(--font-head); cursor: pointer; }
}
body.sheet-open { overflow: hidden; }
@media (min-width: 801px) { .tabbar, .sheet, .sheet-backdrop { display: none !important; } }

/* Бутылки и упаковки — картинка целиком, без обрезки */
.product .pic.contain { height: 220px; background: radial-gradient(ellipse at 50% 40%, #232b34, #11151a 70%); }
.product .pic img.contain { object-fit: contain; padding: 12px; }
.gallery .main.contain { aspect-ratio: 1 / 1; position: relative; background: radial-gradient(ellipse at 50% 40%, #232b34, #11151a 70%); }
.gallery .main img.contain { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.thumbs img.contain { object-fit: contain; background: #11151a; padding: 3px; }
.vin-status { font-size: .86rem; color: var(--muted); margin: -6px 0 0; min-height: 1.2em; }
.vin-status.ok { color: #5fd38d; }
.vin-status.warn { color: #ffb36b; }

/* Автомобили: карточки фиксированной ширины (одна машина не растягивается на всю страницу) */
.cars-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 400px)); }
.product.car .pic { height: 240px; }

/* Тематические фото в шапках разделов (серые тона) */
.page-head.photo { background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 300px; display: flex; align-items: center; }
.page-head.photo > .container { width: min(1120px, 100% - 32px); }
.page-head.photo::before { opacity: 0; }
.page-head.photo::after { background: linear-gradient(90deg, rgba(15,18,22,.93) 0%, rgba(15,18,22,.72) 42%, rgba(15,18,22,.3) 100%), linear-gradient(180deg, rgba(15,18,22,.15) 55%, var(--bg) 100%); }
.tuning-banner { background: linear-gradient(90deg, rgba(15,18,22,.94) 0%, rgba(15,18,22,.62) 70%, rgba(15,18,22,.45) 100%), url(images/sections/tuning.webp) center / cover; }
@media (max-width: 800px) { .page-head.photo { min-height: 240px; } .page-head.photo::after { background: linear-gradient(180deg, rgba(15,18,22,.78), rgba(15,18,22,.86) 60%, var(--bg)); } }

/* ===== Instagram ===== */
.insta-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.insta-head .btn { display: inline-flex; align-items: center; gap: 10px; }
.ig-ico { flex: none; }
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.insta-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #11151a; border: 1px solid var(--line); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s; filter: saturate(.92); }
.insta-tile:hover img { transform: scale(1.07); filter: saturate(1.05) brightness(.7); }
.insta-badge { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; }
.insta-cap { position: absolute; inset: auto 0 0 0; padding: 26px 10px 9px; font-size: .74rem; line-height: 1.3; color: #fff; opacity: 0; transition: opacity .3s;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta-tile:hover .insta-cap, .insta-tile:focus-visible .insta-cap { opacity: 1; }
@media (max-width: 1000px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .insta-head { flex-direction: column; align-items: flex-start; } .insta-head .btn { width: 100%; } .insta-cap { display: none; } }
