:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #64748b;
  --line: #d9e2ec;
  --green: #166534;
  --green-soft: #dcfce7;
  --blue: #1d4ed8;
  --amber: #b45309;
  --bg: #f7f8f5;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: white;
}
nav { display: flex; gap: 22px; color: var(--muted); font-size: 0.95rem; }
.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.primary { background: var(--green); color: white; box-shadow: 0 12px 22px rgba(22,101,52,.20); }
.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.ghost { background: var(--green-soft); color: var(--green); }
.text-button { border: 0; background: transparent; color: var(--blue); padding: 0; cursor: pointer; font-weight: 700; }

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(34px, 6vw, 86px);
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 76px) 52px;
  align-items: center;
}
.hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: .92;
  letter-spacing: 0;
  margin: 0 0 24px;
}
.lead { max-width: 640px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0; }
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}
.proof-strip span {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--muted);
}
.proof-strip strong { color: var(--ink); }
.hero-panel { display: grid; place-items: center; }
.phone-card {
  width: min(100%, 420px);
  border-radius: 34px;
  padding: 18px;
  background: #0f172a;
  box-shadow: var(--shadow);
  color: white;
}
.map-band {
  height: 260px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(135deg, #14532d, #1e3a8a);
  background-size: 42px 42px, 42px 42px, auto;
  position: relative;
}
.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fde68a;
  border: 4px solid white;
  box-shadow: 0 0 0 8px rgba(253,230,138,.25);
}
.p1 { left: 28%; top: 34%; }
.p2 { left: 60%; top: 52%; }
.p3 { left: 72%; top: 24%; }
.quick-card {
  margin-top: -44px;
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: white;
  color: var(--ink);
}
.quick-card img { width: 86px; height: 58px; object-fit: cover; border-radius: 14px; }
.quick-card span { display: block; color: var(--muted); font-size: .86rem; }
.quick-card b { color: var(--green); white-space: nowrap; }
.trust-note { color: #cbd5e1; padding: 16px 8px 2px; font-size: .92rem; }

.flow, .workspace, .detail-shell, .list-shell, .trust {
  margin: 0 clamp(16px, 4vw, 56px) 28px;
}
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.flow article, .workspace, .detail-shell, .list-shell, .trust {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15,23,42,.04);
}
.flow article { padding: 24px; }
.flow span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
}
h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.05; }
p { margin: 0; }
.flow p, .section-head p, .trust p, .trust li { color: var(--muted); }

.workspace, .list-shell, .detail-shell, .trust { padding: clamp(20px, 4vw, 34px); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.search { display: flex; gap: 8px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fbfcfd;
  color: var(--ink);
}
label { display: grid; gap: 7px; font-size: .9rem; font-weight: 700; color: #334155; }
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.vehicle-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: white;
}
.vehicle-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.vehicle-body { padding: 16px; display: grid; gap: 12px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.pill { background: #f1f5f9; border: 1px solid var(--line); padding: 5px 8px; border-radius: 999px; }
.price { color: var(--green); font-weight: 900; font-size: 1.35rem; }
.detail-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); gap: 24px; margin-top: 18px; }
.detail-card img { width: 100%; border-radius: 18px; background: #f1f5f9; }
.detail-side { display: grid; gap: 14px; align-content: start; }
.notice { border-left: 4px solid var(--amber); background: #fffbeb; padding: 14px; border-radius: 12px; color: #713f12; }

.auth-card, .wizard {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 18px;
}
.auth-card { grid-template-columns: 1fr 1fr auto; align-items: end; }
.auth-card p, #vehicle-message { grid-column: 1 / -1; color: var(--muted); }
.auth-state {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: .9rem;
}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.upload-box {
  border: 1px dashed #94a3b8;
  border-radius: 18px;
  background: #f8fafc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
}
.upload-box input { display: none; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-preview img { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.trust { display: grid; grid-template-columns: .8fr 1fr; gap: 24px; align-items: start; margin-bottom: 56px; }
.trust ul { margin: 0; padding-left: 20px; }

@media (max-width: 860px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .flow, .vehicle-grid, .form-grid, .trust, .detail-card { grid-template-columns: 1fr; }
  .section-head, .auth-card { display: grid; grid-template-columns: 1fr; }
  .search { width: 100%; }
  .topbar { padding-inline: 16px; }
}
