:root {
  --ink: #15202e;
  --ink-2: #44505f;
  --ink-3: #7a8594;
  --line: #e4e2dc;
  --bg: #f6f5f1;
  --card: #ffffff;
  --accent: #e8611a;
  --accent-ink: #ffffff;
  --accent-soft: #fdeee4;
  --ok: #1f8a4c;
  --ok-soft: #e3f4ea;
  --warn: #b7791f;
  --warn-soft: #fbf1dc;
  --err: #c0392b;
  --err-soft: #fbe6e3;
  --info-soft: #e7eef9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 32, 46, .06), 0 4px 16px rgba(21, 32, 46, .06);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.demo-bar { background: var(--ink); color: #dfe5ee; font-size: 13px; text-align: center; padding: 6px 16px; }
.demo-bar a { color: #ffb98f; }
header.site { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.logo span { background: var(--accent); color: #fff; border-radius: 8px; padding: 1px 7px; }
nav.main { display: flex; gap: 20px; font-size: 15px; }
nav.main a { text-decoration: none; color: var(--ink-2); }
nav.main a:hover, nav.main a.on { color: var(--ink); }
header.site .spacer { flex: 1; }

.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; }
.hero p { color: var(--ink-2); font-size: 18px; margin: 0 0 24px; max-width: 640px; }

.searchbar { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; }
@media (max-width: 860px) { .searchbar { grid-template-columns: 1fr 1fr; } }

label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { min-height: 90px; resize: vertical; }
.btn { font: inherit; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: var(--ink); }
.btn.block { width: 100%; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 36px 0 14px; }
.section-title h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.car { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .12s; }
.car:hover { transform: translateY(-2px); }
.car .pic { background: linear-gradient(180deg, #eef1f5, #f8f8f6); aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center; position: relative; }
.car .pic img { width: 92%; }
.car .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.car .ver { color: var(--ink-3); font-size: 13px; margin-top: -4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; background: #f1f0eb; color: var(--ink-2); border-radius: 999px; padding: 2px 9px; }
.price { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: auto; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--ink); color: #fff; }
.badge.reserved { background: var(--warn); }
.badge.sold { background: var(--err); }

.layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin: 24px 0 48px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.filters { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 12px; align-self: start; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.filters legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.check input { width: auto; }

.vehicle { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin: 24px 0; }
@media (max-width: 900px) { .vehicle { grid-template-columns: 1fr; } }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.gallery { background: linear-gradient(180deg, #eef1f5, #fafaf8); border-radius: var(--radius); padding: 24px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.specs div { background: #f7f6f2; border-radius: 10px; padding: 8px 12px; }
.specs dt { font-size: 12px; color: var(--ink-3); }
.specs dd { margin: 0; font-weight: 600; }
.opts { columns: 2; padding-left: 18px; margin: 0; }
@media (max-width: 600px) { .opts { columns: 1; } }
.sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.bigprice { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 14px; background: none; border: 0; padding: 8px 10px; cursor: pointer; color: var(--ink-3); border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.tabpane { display: none; }
.tabpane.on { display: block; }
form.stack { display: flex; flex-direction: column; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.alert { border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.alert.ok { background: var(--ok-soft); color: #145c33; }
.alert.err { background: var(--err-soft); color: #8a2a20; }
.alert.warn { background: var(--warn-soft); color: #7a5214; }
.alert.info { background: var(--info-soft); color: #23426e; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
pre { background: #10161f; color: #e6edf3; padding: 14px; border-radius: 10px; overflow-x: auto; }
code.k { background: #f1f0eb; padding: 1px 6px; border-radius: 6px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-3); font-size: 14px; margin-top: 40px; }
footer.site .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 9px; }
.pill.on { background: var(--ok-soft); color: var(--ok); }
.pill.off { background: #eceae4; color: var(--ink-3); }
.bank { max-width: 440px; margin: 40px auto; }
.bank .code { font-size: 36px; letter-spacing: .3em; font-weight: 800; text-align: center; background: #f7f6f2; border-radius: 12px; padding: 12px; }

/* "For AI assistants" block: in the DOM for agents (HTML-to-text extractors, headless innerText,
   accessibility tree), invisible to people browsing. Visually hidden, not display:none, which
   extractors and innerText would drop. */
.agent-hints { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: normal; border: 0; }
form.inline { display: inline; margin: 0; }
.btn.small { font-size: 13px; padding: 5px 10px; }
.confirm-url { display: block; word-break: break-all; font-size: 13px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
