/* Стили SEO-страниц (bmw/, zapchasti/). Генерируются data/seo.py */
:root {
  --bg: #0b0d10; --bg2: #12151a; --card: #171b21; --line: #262c35;
  --text: #eef1f5; --muted: #9aa3ae; --blue: #2f7df6; --blue-d: #1c4f9c; --red: #e2333b; --sky: #59b4ef;
  --wa: #25d366; --ok: #3ccf7a; --warn: #f0b429; --radius: 14px;
  --head: 'Unbounded', system-ui, sans-serif; --body: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--sky); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4.4vw, 42px); }
h2 { font-size: clamp(20px, 2.8vw, 28px); margin-top: 8px; }
h3 { font: 700 15px/1.3 var(--body); margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
section { margin: 48px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 700 15px/1 var(--body); text-decoration: none; color: #fff; }
.btn-wa { background: var(--wa); color: #06260f; }
.btn-wa:hover { background: #3ae07a; }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.top { position: sticky; top: 0; z-index: 20; background: rgba(11,13,16,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo-mark { display: flex; gap: 3px; transform: skewX(-18deg); }
.logo-mark i { width: 5px; height: 22px; border-radius: 1px; }
.logo-mark i:nth-child(1) { background: var(--sky); } .logo-mark i:nth-child(2) { background: var(--blue-d); } .logo-mark i:nth-child(3) { background: var(--red); }
.logo-text { font: 800 17px/1 var(--head); }
.logo-text b { font-weight: 700; color: var(--muted); margin-left: 6px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }

.crumbs { margin: 20px 0 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--text); }

.page-head { margin: 28px 0 8px; max-width: 760px; }
.lead { color: #c8cfd8; font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card, .donor { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card:hover { border-color: #3a4350; }
.card-img { aspect-ratio: 4/3; background: #000; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 140px; color: var(--muted); font-size: 13px; background: var(--bg2); }
.noimg.big { min-height: 300px; border-radius: var(--radius); }
.badge { position: absolute; left: 10px; top: 10px; font: 800 11px/1 var(--body); text-transform: uppercase; padding: 6px 8px; border-radius: 6px; }
.badge.ok { background: var(--ok); color: #05210f; }
.badge.stock { background: var(--warn); color: #2a1d00; }
.badge.sold { background: rgba(0,0,0,.72); color: #fff; }
.card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-b p { margin: 0; color: var(--muted); font-size: 14px; }
.sub { color: var(--muted); font-size: 13px; font-weight: 600; }
.price { font: 800 17px/1.1 var(--head); margin-top: auto; padding-top: 6px; }
.price.big { font-size: 30px; margin: 4px 0 8px; padding: 0; }
.card.is-sold img { filter: grayscale(.5) brightness(.75); }
.card.is-sold .price { font: 700 14px var(--body); color: var(--muted); }

.item { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; margin: 16px 0 32px; }
.item > * { min-width: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: #000; }
.gallery a:first-child img { aspect-ratio: auto; max-height: 560px; object-fit: contain; }
.info { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.info h1 { font-size: clamp(22px, 3vw, 30px); }
.status { font-weight: 700; }
.status.ok { color: var(--ok); } .status.stock { color: var(--warn); } .status.sold { color: var(--muted); }
.fits { margin: 0; color: var(--muted); }
.desc { white-space: pre-line; color: #c8cfd8; }
.params { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.chips, .models { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; }
.model { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); display: grid; gap: 2px; min-width: 200px; }
.model:hover { border-color: var(--blue); }
.model span { color: var(--muted); font-size: 13px; font-weight: 600; }

.ask { background: linear-gradient(135deg, #14233d 0%, var(--bg2) 60%); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.ask p { color: #c8cfd8; max-width: 640px; }

.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }

@media (max-width: 860px) {
  .nav { display: none; }
  .top .btn-sm { margin-left: auto; }
  .item { grid-template-columns: 1fr; gap: 20px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ask { padding: 20px; }
}
