/* HONGTU AUTO — tokens from Tesla DESIGN.md (awesome-design-md / VoltAgent)
   Source: DESIGN.md · car-sales showroom: photography-first, monochrome + Electric Blue CTA
   Credit: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0 */

:root {
  /* Spacing — 8px base (Tesla) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 80px;
  --s-10: 96px;

  /* Surfaces */
  --bg: #ffffff;
  --surface: #ffffff;
  --raised: #f4f4f4;
  --ink: #171a20;
  --ink-2: #393c41;
  --ink-3: #5c5e62;
  --line: #eeeeee;
  --line-strong: #d0d1d2;
  --placeholder: #8e8e8e;

  /* Sole chromatic accent — Electric Blue CTAs only */
  --accent: #3e6ae1;
  --accent-ink: #ffffff;
  --accent-soft: rgba(62, 106, 225, 0.12);
  --accent-hover: #3457c4;

  /* Status (product estimates — kept quiet) */
  --ok: #171a20;
  --ok-bg: #f4f4f4;
  --warn: #5c5e62;
  --warn-bg: #f4f4f4;
  --route: #393c41;

  /* Type — Universal Sans fallbacks from Tesla DESIGN.md */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 4px;
  --r-md: 4px;
  --r-lg: 12px;

  /* Tesla: essentially no elevation */
  --shadow: none;
  --shadow-float: none;

  --ease: cubic-bezier(0.5, 0, 0, 0.75);
  --t-fast: 330ms;
  --t-menu: 330ms;

  --max: 1200px;
  --text-measure: 38rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: normal;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.skip:focus { top: var(--s-4); }

.container {
  width: min(var(--max), calc(100% - var(--s-6)));
  margin-inline: auto;
}
@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - var(--s-5))); }
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border-bottom: none;
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  width: min(var(--max), calc(100% - var(--s-6)));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-right: auto;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--t-fast) var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.header-social {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.header-social a {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.header-social a:hover {
  background: var(--raised);
  color: var(--ink);
  border-color: rgba(17, 24, 39, 0.16);
}
.header-social .icon-svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .header-social { display: none; }
  .header-manager { display: none; }
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: var(--r-md);
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--raised); color: var(--ink); }
.icon-btn:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-btn { display: none; }
.menu-btn svg { pointer-events: none; }

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) var(--s-5) var(--s-4);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-float);
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 48px; padding-inline: var(--s-2); }
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
}

/* ——— Buttons (Tesla: Electric Blue primary, white secondary, 4px radius) ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 40px;
  min-width: 160px;
  padding: 4px var(--s-4);
  border: 3px solid transparent;
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn:active { transform: none; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--raised);
  border-color: transparent;
  color: var(--ink-2);
}
.btn-secondary:hover { background: var(--line); }
.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  min-width: 0;
  padding-inline: var(--s-3);
  border-width: 0;
}
.btn-ghost:hover { color: var(--ink); text-decoration: underline; background: transparent; }
.btn-sm { min-height: 32px; min-width: 0; padding-inline: var(--s-4); font-size: 14px; }
.btn-block { width: 100%; min-width: 0; }

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--s-6);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: var(--s-7) 0 var(--s-8);
}
.hero-copy { max-width: var(--text-measure); }
.hero-kicker {
  margin: 0 0 var(--s-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  text-transform: none;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--ink);
  color: var(--ink);
}
.hero-lead {
  margin: var(--s-4) 0 var(--s-5);
  font-size: 14px;
  line-height: 1.43;
  color: var(--ink-2);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 0;
}
.hero-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--raised);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-float);
}
.hero-photo a {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-estimate {
  position: static;
  background: var(--raised);
  border: none;
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: none;
}
.hero-estimate-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.hero-estimate-head strong {
  font-size: 14px;
  font-weight: 500;
}
.hero-estimate-head span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--s-6) 0 var(--s-8);
    gap: var(--s-5);
  }
}

/* ——— Sections ——— */
.section {
  padding: var(--s-8) 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: var(--s-2) 0 0;
  max-width: var(--text-measure);
  color: var(--ink-2);
  font-size: 15px;
}
.section-head-stack { flex-direction: column; align-items: flex-start; }

.stock-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin: var(--s-5) 0 0;
}
.stock-stat {
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.stock-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stock-stat span {
  display: block;
  margin-top: var(--s-1);
  font-size: 13px;
  color: var(--ink-3);
}
.stock-stat .label {
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: var(--s-2);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.trust-item strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--s-1);
}
.trust-item span {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .trust-row { grid-template-columns: 1fr; gap: var(--s-4); }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ——— Vehicle cards ——— */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 960px) {
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vehicle-grid { grid-template-columns: 1fr; }
}


.catalog-skeleton {
  min-height: 360px;
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--raised) 25%, #e9e9e9 37%, var(--raised) 63%);
  background-size: 400% 100%;
  animation: catalog-shimmer 1.1s ease infinite;
}
@keyframes catalog-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.card-photo img {
  background: var(--raised);
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.vehicle-card:hover { background: var(--raised); }

.card-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--raised);
  overflow: hidden;
  text-decoration: none;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-photo .skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--raised) 0%, #e2e5ea 50%, var(--raised) 100%);
  background-size: 200% 100%;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
}
.card-vin {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.card-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}
.card-body h3 a {
  text-decoration: none;
}
.card-trim {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2) var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-specs li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-specs dt,
.card-specs .label {
  font-size: 12px;
  color: var(--ink-3);
}
.card-specs .value {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.card-actions {
  display: flex;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-2);
}

/* ——— Status badges ——— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-neutral { background: var(--raised); color: var(--ink-2); }
.badge-ok::before,
.badge-warn::before,
.badge-neutral::before { background: currentColor; }

.badge-date {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--ink-3);
  background: transparent;
  padding: 0;
}
.badge-date::before { display: none; }

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}

/* ——— Estimate table ——— */
.estimate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.estimate-table th,
.estimate-table td {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.estimate-table th { color: var(--ink-3); font-weight: 400; }
.estimate-table td:last-child,
.estimate-table th:last-child { text-align: right; }
.estimate-table tfoot td {
  border-bottom: 0;
  padding-top: var(--s-3);
  font-weight: 500;
  font-size: 14px;
}
.estimate-table .estimate-group th {
  padding-top: 18px;
  padding-bottom: 4px;
  border-bottom: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.estimate-table tr:first-child.estimate-group th { padding-top: 0; }
.estimate-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.estimate-table .estimate-sub th,
.estimate-table .estimate-sub td {
  font-weight: 500;
  color: var(--ink);
}
.estimate-table .estimate-missing td { color: var(--ink-3); }

/* ——— Filters ——— */
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
@media (max-width: 800px) {
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .filters { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field label {
  font-size: 12px;
  color: var(--ink-3);
}
.field input,
.field select {
  min-height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.field input:hover,
.field select:hover { border-color: rgba(17, 24, 39, 0.16); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-2);
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:hover,
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.empty-state {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.empty-state h3 {
  margin: 0 0 var(--s-2);
  font-size: 18px;
  font-weight: 500;
}
.empty-state p {
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
}

/* ——— Process / how ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.step h3 {
  margin: 0 0 var(--s-2);
  font-size: 16px;
  font-weight: 500;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (max-width: 700px) {
  .check-grid { grid-template-columns: 1fr; }
}
.check-item {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.check-item .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--raised);
  color: var(--ink-2);
}
.check-item h3 {
  margin: 0 0 var(--s-1);
  font-size: 15px;
  font-weight: 500;
}
.check-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) {
  .cost-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .cost-grid { grid-template-columns: 1fr; }
}
.cost-item {
  padding: var(--s-4);
  border-top: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cost-item h3 {
  margin: 0 0 var(--s-2);
  font-size: 15px;
  font-weight: 500;
}
.cost-item p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}

/* ——— Route signature (delivery status only) ——— */
.route-line {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--route);
}
.route-line .track {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--route));
  max-width: 120px;
  opacity: 0.7;
}

/* ——— Car detail ——— */
.page-hero {
  padding: var(--s-6) 0 var(--s-4);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  font-size: 13px;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-2);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--ink); }

.car-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: var(--s-5);
  align-items: start;
  padding-bottom: var(--s-8);
}
@media (max-width: 900px) {
  .car-layout { grid-template-columns: 1fr; }
}

.car-description {
  margin: var(--s-6) 0 0;
}
.car-description h2 {
  margin: 0 0 var(--s-3);
  font-size: 22px;
  font-weight: 500;
}
.car-description-body {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.gallery-main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--raised);
  border: none;
  cursor: zoom-in;
}
.gallery-main:hover .gallery-zoom-hint,
.gallery-main:focus-visible .gallery-zoom-hint {
  opacity: 1;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.gallery-zoom-hint {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: rgba(23, 26, 32, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
  pointer-events: none;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.gallery-thumbs button {
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--raised);
  min-height: 44px;
  cursor: zoom-in;
}
.gallery-thumbs button[aria-current="true"] {
  border-color: var(--accent);
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  background: rgba(23, 26, 32, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.lightbox-close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: var(--s-4); }
.lightbox-next { right: var(--s-4); }
@media (max-width: 640px) {
  .gallery-zoom-hint { opacity: 1; }
}

.car-panel {
  position: sticky;
  top: 80px;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.car-panel h1 {
  margin: var(--s-3) 0 var(--s-2);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}
.car-panel .trim {
  margin: 0 0 var(--s-4);
  color: var(--ink-2);
  font-size: 14px;
}
.car-panel .price {
  font-size: 32px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-1);
}
.car-panel .price-note {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}
.car-panel .actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.specs-table {
  width: 100%;
  margin-top: var(--s-5);
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.specs-table th,
.specs-table td {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.specs-table th {
  color: var(--ink-3);
  width: 40%;
}

/* ——— Calculator ——— */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}
@media (max-width: 800px) {
  .calc-layout { grid-template-columns: 1fr; }
}
.calc-form,
.calc-result {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.calc-form .field { margin-bottom: var(--s-4); }
.calc-result h3 {
  margin: 0 0 var(--s-4);
  font-size: 18px;
  font-weight: 500;
}
.calc-note {
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--ink-3);
}

.msg {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md, 10px);
  font-size: 14px;
}
.msg-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ——— Contacts ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-5);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  min-height: 64px;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.contact-card:hover {
  border-color: rgba(17, 24, 39, 0.16);
  background: var(--raised);
}
.contact-card .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--raised);
  color: var(--ink-2);
  flex-shrink: 0;
}
.contact-card strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.contact-card span {
  font-size: 13px;
  color: var(--ink-3);
}

.form-card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.form-card h2 {
  margin: 0 0 var(--s-2);
  font-size: 22px;
  font-weight: 500;
}
.form-card .lead {
  margin: 0 0 var(--s-5);
  color: var(--ink-2);
  font-size: 14px;
}
.form-card .field { margin-bottom: var(--s-4); }
.form-card textarea {
  min-height: 96px;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  resize: vertical;
}
.form-check {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}
.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: var(--s-8);
  padding: var(--s-7) 0 var(--s-6);
  background: var(--raised);
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .brand { color: var(--ink); }
.site-footer p {
  margin: var(--s-3) 0 0;
  color: var(--ink-3);
  font-size: 14px;
  max-width: 28rem;
}
.footer-col h3 {
  margin: 0 0 var(--s-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.footer-col a {
  display: flex;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 14px;
  min-height: 36px;
  align-items: center;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

/* ——— Page title block ——— */
.page-title {
  padding: var(--s-7) 0 var(--s-5);
}
.page-title h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-title p {
  margin: var(--s-3) 0 0;
  max-width: var(--text-measure);
  color: var(--ink-2);
  font-size: 16px;
}

/* ——— Icons (lucide-like inline) ——— */
.icon-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ——— Skeletons ——— */
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.is-loading .skeleton {
  animation: shimmer 1.2s linear infinite;
}

/* ——— Reveal (LikeAvto-inspired, quieter) ——— */
@keyframes rv-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rv-word {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
@keyframes rv-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-16px);
}
[data-reveal="left"].is-in {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: translateY(12px) scale(0.98);
}
[data-reveal="scale"].is-in {
  transform: translateY(0) scale(1);
}

/* Hero headline: words rise from below (clip), stay inline */
.rv-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.rv-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 750ms var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}
[data-reveal].is-in .rv-line > span,
h1.is-in .rv-line > span {
  transform: translateY(0);
}
h1[data-reveal-words],
h1[data-words-ready] {
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
  }
  [data-reveal],
  .rv-line > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* FAQ / include / pay / track / deliveries */
.include-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 720px) {
  .include-grid { grid-template-columns: 1fr; }
}
.include-card {
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.include-card-muted { background: var(--raised); }
.include-card h2 {
  margin: 0 0 var(--s-4);
  font-size: 20px;
  font-weight: 500;
}
.plain-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.plain-list li + li { margin-top: var(--s-2); }

.faq-list { display: grid; gap: var(--s-3); max-width: 800px; }
.faq-item {
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--ink-3);
  font-weight: 400;
  padding-left: var(--s-3);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: var(--s-3) 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.pay-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.pay-timeline li {
  position: relative;
  padding: 0 0 var(--s-5) var(--s-5);
}
.pay-timeline li:last-child { padding-bottom: 0; }
.pay-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pay-timeline strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: var(--s-1);
}
.pay-timeline span {
  font-size: 14px;
  color: var(--ink-2);
}

.timing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 800px) {
  .timing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .timing-grid { grid-template-columns: 1fr; }
}
.timing-card {
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.timing-card strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.timing-card span {
  font-size: 13px;
  color: var(--ink-2);
}

.track-form.card-panel,
.card-panel {
  max-width: 520px;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.track-form .field { margin-bottom: var(--s-4); }
.track-form code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--raised);
  padding: 2px 6px;
  border-radius: 4px;
}
.track-head {
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.track-head h2 {
  margin: 0 0 var(--s-2);
  font-size: 22px;
  font-weight: 500;
}
.track-head p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  font-family: var(--mono);
}
.track-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.track-steps li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.track-steps li:last-child { border-bottom: 0; }
.track-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-family: var(--mono);
  background: var(--raised);
  color: var(--ink-3);
}
.track-steps li.is-done .track-dot {
  background: var(--ok-bg);
  color: var(--ok);
}
.track-steps li.is-current .track-dot {
  background: var(--accent-soft);
  color: var(--accent-ink);
  outline: 2px solid var(--accent);
}
.track-steps strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.track-steps .meta {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
@media (max-width: 960px) {
  .delivery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .delivery-grid { grid-template-columns: 1fr; }
}
.delivery-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.delivery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--raised);
}
.delivery-card .body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.delivery-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.delivery-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}
.delivery-card .city {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--mono);
}

.card-actions {
  flex-wrap: wrap;
}

/* CTA band before footer (PAN-inspired) */
.cta-band {
  padding: var(--s-7) 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.cta-band h2 {
  margin: 0 0 var(--s-2);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cta-band p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 36rem;
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .stock-stats { grid-template-columns: 1fr; }
}

/* Floating contact */
.contact-fab {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: flex-end;
}
.contact-fab a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition: background-color var(--t-fast) var(--ease);
}
.contact-fab a:hover { background: var(--accent-hover); }
.contact-fab a.wa { background: var(--ink); }
.contact-fab a.wa:hover { background: #2c3038; }
@media (max-width: 560px) {
  .contact-fab a span { display: none; }
  .contact-fab a { width: 48px; padding: 0; justify-content: center; }
}
