:root { --bg: #F6F5F2; --card: #FFFFFF; --ink: #1B1D21; --muted: #6B6F78; --line: #E3E1DB; --accent: #1F4FD8;
  --ok: #1E8E4E; --wa: #128C4B; --sold: #3A3D44; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body.has-bar { padding-bottom: 84px; }
a { color: var(--accent); text-decoration: none; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 800; }
.pill { font-size: 14px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--bg); white-space: nowrap; }
main { padding: 16px; max-width: 760px; margin: 0 auto; }
h1 { margin: 4px 0 12px; font-size: 24px; letter-spacing: -0.01em; }
h1 .count { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }
h2 { margin: 22px 0 8px; font-size: 17px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.filters label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.filters label:last-child { grid-column: 1 / -1; }
select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; color: var(--ink); }
.cars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.car { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); }
.shot { position: relative; display: block; aspect-ratio: 4 / 3; background: #C9CED6; }
.shot.s0 { background: linear-gradient(135deg, #8E9AAF 0%, #CBC0D3 100%); }
.shot.s1 { background: linear-gradient(135deg, #A3B18A 0%, #DAD7CD 100%); }
.shot.s2 { background: linear-gradient(135deg, #C9ADA7 0%, #F2E9E4 100%); }
.shot.s3 { background: linear-gradient(135deg, #9A8C98 0%, #C9ADA7 100%); }
.shot::after { content: ""; position: absolute; inset: 34% 22% 26%; border-radius: 40% 40% 14% 14% / 60% 60% 20% 20%; background: rgba(255,255,255,.35); }
.shot .n { position: absolute; right: 10px; bottom: 10px; z-index: 1; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.shot .tag { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: #F4B740; color: #1B1D21; }
.shot .tag.dark { background: var(--sold); color: #fff; }
.car.sold .shot { filter: grayscale(.7); }
.car.sold .price { color: var(--muted); text-decoration: line-through; }
.info { padding: 12px 14px 14px; }
.info h2 { margin: 0; font-size: 18px; }
.info h2 small, .title small { font-weight: 500; color: var(--muted); font-size: .8em; }
.facts { margin: 4px 0 8px; color: var(--muted); font-size: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.price { font-size: 22px; letter-spacing: -0.01em; }
.price.big { font-size: 30px; }
.place { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.eco { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 7px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; }
/* наклейка DGT: 0 — синяя, ECO — зелёно-синяя, C — зелёная, B — жёлтая */
.eco.l-c { background: #2E9E4F; }
.gallery { margin: -16px -16px 14px; }
.shot.big { aspect-ratio: 4 / 3; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px 4px 0; }
.thumbs .shot { aspect-ratio: 4 / 3; border-radius: 6px; }
.thumbs .more { display: grid; place-items: center; border-radius: 6px; background: #E3E1DB; color: var(--muted); font-weight: 700; font-size: 14px; }
.title { margin: 0 0 6px; font-size: 24px; }
.lead { align-items: baseline; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--muted); }
.spec { margin: 16px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.spec div:first-child { border-top: 0; }
.spec dt { color: var(--muted); font-size: 14px; }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.text { margin: 0; }
.where { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.where p { margin: 2px 0; }
footer { padding: 18px 16px 26px; text-align: center; font-size: 13px; color: var(--muted); }
footer p { margin: 3px 0; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 16px;
  background: rgba(246,245,242,.96); border-top: 1px solid var(--line); }
.btn { display: grid; place-items: center; height: 50px; border-radius: 14px; font-weight: 700; font-size: 17px; }
.btn.call { background: var(--card); border: 1.5px solid var(--ink); color: var(--ink); }
.btn.wa { background: var(--wa); color: #fff; }
.eco.l-zero { background: #1F6FD8; }
.eco.l-eco { background: linear-gradient(90deg, #2E9E4F 50%, #1F6FD8 50%); border-radius: 15px; }
.eco.l-b { background: #E0B400; color: #1B1D21; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.bar.one { grid-template-columns: 1fr; }
.text { white-space: pre-line; }
/* настоящие фото: карточка списка и лента на странице машины (листается пальцем, без скриптов) */
.shot.has-photo { background: #E3E1DB; }
.shot.has-photo::after { display: none; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; -webkit-overflow-scrolling: touch; }
.gallery.strip figure { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; background: #E3E1DB; }
.gallery.strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery.strip figcaption { position: absolute; right: 10px; bottom: 10px; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
@media (min-width: 760px) { .gallery.strip figure { flex-basis: 70%; } }
