@font-face { font-family: "Sora"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/assets/fonts/sora.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter.woff2) format("woff2"); }
:root {
  --ink: #0f172a; --ink-2: #1e293b; --ink-3: #334155; --red: #c8102e; --red-2: #a00d25; --bg: #f5f6f8; --card: #fff; --text: #0f172a; --muted: #64748b;
  --line: rgba(15, 23, 42, .1); --ok: #059669; --gold: #d4a017; --head: "Sora", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --wrap: 1200px; --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent;
  font: 600 .98rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-line { border-color: var(--line); background: var(--card); }
.btn-line:hover { border-color: var(--ink); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }
label.f { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
label.f small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 400 1rem var(--body); color: var(--text); }
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 16, 46, .12); }
.err { color: var(--red); font-size: .92rem; min-height: 1.3em; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; min-height: 20px; accent-color: var(--red); margin-top: 2px; flex: none; }

.demo-strip { background: var(--gold); color: var(--ink); font-size: .86rem; }
.demo-strip .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; padding: 7px 0; }
.demo-strip a { font-weight: 700; }
.top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { font: 700 1.2rem/1 var(--head); display: block; letter-spacing: -.01em; }
.brand small { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: rgba(255, 255, 255, .78); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.on { color: #fff; }
.top .btn { min-height: 42px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
.menu-btn .ic { width: 26px; height: 26px; }
.cmp-count { background: var(--red); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 7px; margin-left: 4px; }

.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, .4), rgba(15, 23, 42, .92)); }
.hero .wrap { position: relative; z-index: 1; padding: 86px 0 70px; display: grid; gap: 18px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.hero .lead { color: rgba(255, 255, 255, .82); font-size: 1.12rem; max-width: 56ch; }
.search-box { background: #fff; color: var(--text); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; margin-top: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.search-box .btn { min-height: 48px; }
.body-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.body-chips a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; text-decoration: none; font-size: .9rem; }
.body-chips a:hover { background: rgba(255, 255, 255, .2); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; color: rgba(255, 255, 255, .78); font-size: .92rem; margin-top: 6px; }
.hero-stats b { color: #fff; font-family: var(--head); font-size: 1.3rem; display: block; }

.sec { padding: 72px 0; }
.sec-white { background: #fff; border-block: 1px solid var(--line); }
.sec-dark { background: var(--ink); color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.sec-head > div { display: grid; gap: 10px; max-width: 640px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.sec-head p { color: var(--muted); }
.sec-dark .sec-head p { color: rgba(255, 255, 255, .72); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.car { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; position: relative; transition: box-shadow .15s, transform .15s; }
.car:hover { box-shadow: 0 14px 34px rgba(15, 23, 42, .12); transform: translateY(-2px); }
.car .pic { position: relative; aspect-ratio: 3 / 2; background: #e2e8f0; }
.car .pic img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.badge.res { background: var(--gold); color: var(--ink); }
.badge.sold { background: var(--ink); }
.car .info { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.car h3 { font-size: 1.05rem; }
.car .var { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car .specs { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .84rem; }
.car .price { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.car .price b { font: 700 1.25rem/1 var(--head); }
.car .price s { color: var(--muted); font-size: .85rem; }
.car .price small { color: var(--muted); font-size: .8rem; }
.cmp-btn { position: absolute; right: 10px; top: 10px; background: rgba(255, 255, 255, .92); border: 0; border-radius: 8px; padding: 5px 9px; font-size: .78rem; font-weight: 600; cursor: pointer; display: flex; gap: 5px; align-items: center; }
.cmp-btn.on { background: var(--ink); color: #fff; }
.cmp-btn input { pointer-events: none; width: 14px; min-height: 14px; margin: 0; accent-color: var(--red); }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why div { display: grid; gap: 8px; align-content: start; }
.why .ic { width: 34px; height: 34px; color: var(--red); }
.why h3 { font-size: 1.05rem; }
.why p { color: var(--muted); font-size: .94rem; }
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.band a { position: relative; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; min-height: 240px; display: grid; align-content: end; padding: 24px; background: var(--ink); }
.band a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .2s; }
.band a:hover img { opacity: .6; }
.band a > * { position: relative; }
.band h3 { font-size: 1.6rem; }
.band p { color: rgba(255, 255, 255, .85); max-width: 36ch; margin: 6px 0 14px; }
.try-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.try { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; }
.try p { color: rgba(255, 255, 255, .72); font-size: .94rem; }
.try code { background: rgba(255, 255, 255, .1); padding: 2px 6px; border-radius: 5px; font-size: .85rem; }
.try .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; }
.stars { color: var(--gold); letter-spacing: 2px; }
.visit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.visit > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; align-content: start; }
.visit h3 { font-size: 1.02rem; display: flex; gap: 8px; align-items: center; }
.visit h3 .ic { color: var(--red); }
.foot { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 34px 0; font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; }
.foot a { color: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: transform .25s; }
.toast.show { transform: translate(-50%, 0); }
.toast.bad { background: var(--red); }

/* listing page */
.page { padding: 28px 0 70px; }
.page-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.page-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.list-grid { display: grid; grid-template-columns: 270px 1fr; gap: 22px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; position: sticky; top: 86px; }
.filters h2 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.filters input, .filters select { min-height: 42px; }
.results .grid { grid-template-columns: repeat(2, 1fr); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.toolbar select { width: auto; min-height: 40px; }
.filters-btn { display: none; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--r); border: 1px dashed var(--line); }
.cmp-tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 12px 10px 16px; display: flex; gap: 14px; align-items: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); max-width: calc(100% - 24px); }
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .6); display: grid; place-items: center; padding: 16px; }
.overlay .box { background: #fff; border-radius: 18px; width: min(1000px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 20px; display: grid; gap: 14px; }
.overlay .box-head { display: flex; justify-content: space-between; align-items: center; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cmp-table th, .cmp-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table th { color: var(--muted); font-weight: 600; width: 140px; }
.cmp-table img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; }
.x-btn { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }

/* car page */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.car-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.gallery { display: grid; gap: 8px; }
.gallery .main { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; background: #e2e8f0; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; display: grid; place-items: center; }
.gallery .prev { left: 12px; } .gallery .next { right: 12px; }
.gallery .count { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 23, 42, .7); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 99px; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 2; background: #e2e8f0; }
.thumbs button.on { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 14px; }
.panel h2 { font-size: 1.2rem; }
.side { display: grid; gap: 16px; position: sticky; top: 86px; }
.title h1 { font-size: 1.6rem; }
.big-price { font: 700 2.1rem/1 var(--head); }
.big-price s { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.pm { color: var(--muted); }
.pm b { color: var(--text); }
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.specs-grid div { background: var(--bg); border-radius: 12px; padding: 12px; display: grid; gap: 2px; font-size: .82rem; color: var(--muted); }
.specs-grid b { color: var(--text); font-size: .98rem; }
.feat { columns: 2; gap: 20px; list-style: none; padding: 0; margin: 0; }
.feat li { display: flex; gap: 8px; align-items: center; padding: 4px 0; break-inside: avoid; }
.feat .ic { color: var(--ok); width: 17px; height: 17px; }
.tabs-row { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; }
.tabs-row button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--muted); font-size: .9rem; }
.tabs-row button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.calc { display: grid; gap: 10px; }
.calc output { font: 700 1.8rem/1 var(--head); }
.calc input[type=range] { min-height: 0; padding: 0; accent-color: var(--red); }
.ok-box { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 14px 0; }
.ok-box .ic { width: 48px; height: 48px; color: var(--ok); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 16px; }
.form-card h2 { font-size: 1.2rem; padding-top: 6px; border-top: 1px solid var(--line); }
.form-card h2:first-of-type { border: 0; padding: 0; }
.note { background: #fff8e6; border: 1px solid #f0d68a; border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; cursor: pointer; }
.photo-add { width: 84px; height: 84px; border-radius: 10px; border: 2px dashed var(--line); display: grid; place-items: center; cursor: pointer; color: var(--muted); background: #fff; }
.photo-add input { display: none; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }

@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr 1fr; }
  .car-grid, .form-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .search-box { grid-template-columns: 1fr 1fr; }
  .search-box .btn { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .list-grid { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; z-index: 70; border-radius: 18px 18px 0 0; max-height: 85dvh; overflow: auto; display: none; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
  .filters.open { display: grid; }
  .filters-btn { display: inline-flex; }
  .results .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .top .btn-red { display: none; }
  .menu-btn { display: block; }
  .top.open .nav { display: grid; position: absolute; top: 70px; left: 0; right: 0; background: var(--ink); padding: 10px 16px 18px; gap: 4px; }
  .top.open .nav a { padding: 10px 0; font-size: 1.05rem; }
  .hero .wrap { padding: 54px 0 46px; }
  .sec { padding: 54px 0; }
  .grid, .results .grid, .band, .try-grid, .reviews, .visit, .row2, .row3 { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .search-box { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .feat { columns: 1; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .panel, .form-card { padding: 18px; }
  .cmp-table th { width: 90px; }
}
.tbl-scroll { overflow-x: auto; }
.stack { min-width: 0; }
