/* ==========================================================================
   Lambretta Việt Nam — Landing page thu lead
   Tông: đen than + đỏ Lambretta #DB0812 (màu nhấn duy nhất)
   Chữ: Playfair Display (tiêu đề, số lớn) + Be Vietnam Pro (nội dung, UI)
   ========================================================================== */

:root {
  --bg: #0f0f10;
  --surface-0: #131315;
  --surface-1: #19191b;
  --surface-2: #212124;
  --ink: #f3f1ec;
  --ink-2: #d9d6cf;
  --muted: #9a978f;
  --line: #2a2a2d;
  --line-2: #38383c;

  --accent: #db0812;
  --accent-hover: #b8060f;
  --accent-deep: #75040a;
  --accent-soft: rgba(219, 8, 18, 0.14);
  --accent-grad: linear-gradient(135deg, #ee1a24, #b8060f);

  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-text: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.375rem;
  --text-xl: 1.875rem;
  --text-2xl: 2.5rem;
  --display: clamp(2.6rem, 5.2vw, 4.6rem);

  --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: 96px; --s-10: 128px;

  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px; --r-btn: 4px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --ring: 0 0 0 1px var(--line);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms; --dur: 260ms; --dur-slow: 640ms;

  --gutter: 16px;
  --container: 1200px;
  --header-h: 68px;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2 { font-family: var(--font-display); margin: 0; line-height: 1.08; letter-spacing: -0.005em; font-weight: 600; text-wrap: balance; }
h3, h4 { font-family: var(--font-text); margin: 0; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--s-8); }
@media (min-width: 900px) { .section { padding-block: var(--s-9); } }

.section-head { max-width: 840px; margin-bottom: var(--s-7); }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-bottom: var(--s-4); }
.section-head p { color: var(--muted); font-size: var(--text-base); max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-text);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--s-4);
  letter-spacing: 0.04em;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.section-head.center .kicker::after { content: ""; width: 26px; height: 1px; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-btn);
  font-family: var(--font-text); font-weight: 600; font-size: var(--text-sm); letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(219, 8, 18, 0.28); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg) translateX(-120%);
  transition: transform 700ms var(--ease-out);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 12px 32px rgba(219, 8, 18, 0.38); }
.btn-primary:hover::after { transform: skewX(-18deg) translateX(420%); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--ink); border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.32); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(15, 15, 16, 0.85), rgba(15, 15, 16, 0));
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.header.is-scrolled { background: rgba(15, 15, 16, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.logo { height: 30px; width: auto; }
.header-actions { display: flex; align-items: center; gap: var(--s-4); }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.header-phone svg { width: 18px; height: 18px; color: var(--accent); }
.header .btn { min-height: 44px; padding-inline: 20px; }
@media (min-width: 768px) { .header-phone { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: stretch;
  padding-top: var(--header-h);
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: -3%; z-index: -2; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%;
  transform: scale(1.1);
  animation: kenburns 9s var(--ease-out) forwards;
}
@keyframes kenburns { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(15, 15, 16, 0.98) 0%, rgba(15, 15, 16, 0.6) 32%, rgba(15, 15, 16, 0.1) 65%, rgba(15, 15, 16, 0.4) 100%),
    linear-gradient(90deg, rgba(15, 15, 16, 0.8) 0%, rgba(15, 15, 16, 0.35) 45%, rgba(15, 15, 16, 0) 70%);
}
@media (min-width: 1024px) {
  /* làm tối nhẹ mép phải để nhãn ảnh dễ đọc */
  .hero-shade::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(270deg, rgba(15, 15, 16, 0.55) 0%, rgba(15, 15, 16, 0) 32%);
  }
}

/* Lưới hero: chữ trái + nhãn ảnh phải, dải 4 mẫu xe kéo hết chiều ngang ở đáy */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr);
  align-content: end;
  padding-top: var(--s-9); padding-bottom: var(--s-7);
}
@media (min-width: 1024px) {
  /* 4 cột bằng nhau, không gap: chữ chiếm cột 1-3, khối G350 cột 4, dải giá dùng lại đúng 4 cột này
     nên vạch dọc của khối G350 trùng vạch phân cột thứ 4 của dải giá */
  .hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .hero-copy { grid-column: 1 / 4; padding-right: var(--s-6); }
  .hero-plate { grid-column: 4 / 5; }
}

.hero-copy { max-width: 780px; align-self: end; }
.hero-copy > * { opacity: 0; animation: rise var(--dur-slow) var(--ease-out) forwards; }
.hero-copy > :nth-child(1) { animation-delay: 120ms; }
.hero-copy > :nth-child(2) { animation-delay: 240ms; }
.hero-copy > :nth-child(3) { animation-delay: 360ms; }
.hero-copy > :nth-child(4) { animation-delay: 480ms; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 500; margin-bottom: var(--s-5); line-height: 1.06; letter-spacing: -0.01em; }
.hero-lead { font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--ink-2); max-width: 50ch; margin-bottom: var(--s-6); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); }
.hero-phone { font-size: var(--text-sm); color: var(--ink-2); }
.hero-phone strong { font-weight: 600; color: var(--ink); margin-left: 4px; }
.hero-phone:hover strong { color: var(--accent); }
/* Nhãn ảnh: mẫu xe đang xuất hiện trong ảnh hero (chỉ desktop) */
.hero-plate { display: none; }
@media (min-width: 1024px) {
  .hero-plate {
    display: block; align-self: end;
    padding-left: var(--s-5);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0; animation: rise var(--dur-slow) var(--ease-out) 560ms forwards;
  }
}
.hero-plate-name { margin: 0 0 var(--s-4); font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; color: var(--ink); }
.hero-plate-specs { margin: 0 0 var(--s-2); display: grid; gap: var(--s-2); }
.hero-plate-specs div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--text-sm); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: var(--s-2); }
.hero-plate-specs dt { color: var(--muted); }
.hero-plate-specs dd { margin: 0; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.hero-plate-link {
  /* cao bằng nút đỏ (52px) để chữ link cùng hàng ngang với nút "Nhận báo giá" */
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 52px;
  font-size: var(--text-sm); font-weight: 600; color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
.hero-plate-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.hero-plate-link:hover { color: var(--accent); }
.hero-plate-link:hover svg { transform: translateX(3px); }

/* Dải 4 mẫu xe + giá, kéo hết chiều ngang */
.hero-lineup {
  grid-column: 1 / -1; margin-top: var(--s-7);
  opacity: 0; animation: rise var(--dur-slow) var(--ease-out) 640ms forwards;
}
.hero-lineup-note { margin: 0 0 var(--s-3); font-size: var(--text-xs); color: var(--muted); }
.hero-lineup-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-lineup-list a {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--s-4) var(--s-4) var(--s-2) 0;
  margin-top: -1px; border-top: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.hl-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; color: var(--ink-2); transition: color var(--dur-fast) var(--ease-out); }
.hl-price { font-size: var(--text-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-lineup-list a:hover { border-top-color: var(--accent); }
.hero-lineup-list a:hover .hl-name { color: var(--ink); }
@media (min-width: 768px) {
  .hero-lineup-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-lineup-list a + a { padding-left: var(--s-5); border-left: 1px solid rgba(255, 255, 255, 0.14); }
  .hl-name { font-size: 1.5rem; }
}

.model { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- Form card ---------- */
.card-form {
  background: rgba(19, 19, 21, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
}
.card-form h3 { font-size: var(--text-lg); margin-bottom: var(--s-2); }
.card-form .form-sub { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--s-5); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-size: var(--text-xs); font-weight: 500; color: var(--ink-2); }
.input {
  width: 100%; min-height: 50px; padding: 0 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: #6f6d67; }
.input:hover { border-color: #4a4a4f; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: rgba(255, 255, 255, 0.06); }
textarea.input { min-height: 96px; padding-block: 12px; resize: vertical; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239a978f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
select.input option { background: #19191b; color: var(--ink); }
.field-error { display: none; color: #ff6b73; font-size: var(--text-xs); }
.field.has-error .field-error { display: block; }
.field.has-error .input { border-color: var(--accent); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-xs); color: var(--muted); margin: var(--s-2) 0 var(--s-5); line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; margin-bottom: var(--s-4); } .form-row .field { margin-bottom: 0; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-success { display: none; text-align: center; padding: var(--s-5) 0 var(--s-2); }
.form-success svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto var(--s-4); }
.form-success h4 { font-size: var(--text-lg); margin-bottom: var(--s-2); }
.form-success p { color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--s-5); }
form.is-done .form-body { display: none; }
form.is-done .form-success { display: block; animation: rise var(--dur-slow) var(--ease-out); }
.form-alert { display: none; margin-top: var(--s-3); font-size: var(--text-xs); color: #ff6b73; }
form.has-alert .form-alert { display: block; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-0); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(5, 1fr); } }
.trust-item { padding: var(--s-5) var(--s-4); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item:nth-child(2n) { border-right: 0; }
.trust-item:last-child { grid-column: span 2; border-right: 0; }
@media (min-width: 900px) {
  .trust-item { padding: var(--s-6) var(--s-5); border-bottom: 0; }
  .trust-item:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust-item:last-child { grid-column: auto; border-right: 0; }
}
.trust-item strong { display: block; font-family: var(--font-display); font-size: clamp(2.25rem, 3vw, 2.75rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; margin-bottom: 8px; font-variant-numeric: tabular-nums; color: var(--ink); }
.trust-item strong [data-count] { font: inherit; color: inherit; }
.trust-item strong small { font-size: 0.6em; color: var(--accent); vertical-align: top; margin-left: 2px; font-family: var(--font-text); font-weight: 500; }
.trust-item > span { color: var(--muted); font-size: var(--text-sm); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-4) 0; background: var(--surface-0);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: var(--s-6); padding-right: var(--s-6); font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--ink-2); white-space: nowrap; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Models ---------- */
.models-grid { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .models-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .models-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } }
/* Khi có 5 card (mẫu xe thứ 5): 3 cột từ 1100px, 5 cột từ 1400px với container nới 1320px.
   Subgrid vẫn khoá chiều cao từng hàng nên chữ các card cùng hàng thẳng nhau. */
@media (min-width: 1100px) { .models-grid:has(> .model:nth-child(5)) { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
@media (min-width: 1400px) {
  .container:has(> .models-grid > .model:nth-child(5)) { max-width: 1320px; }
  .models-grid:has(> .model:nth-child(5)) { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
  .models-grid:has(> .model:nth-child(5)) .model > :not(.model-media) { padding-inline: var(--s-4); }
  .models-grid:has(> .model:nth-child(5)) .model > .btn { margin-inline: var(--s-4); }
  .models-grid:has(> .model:nth-child(5)) .model-name { font-size: 1.3rem; }
  .models-grid:has(> .model:nth-child(5)) .model-price strong { font-size: 1.5rem; }
}

/* Card = 6 hàng (ảnh, tên, thông số, màu, giá, nút). Subgrid khoá chiều cao từng hàng
   theo card cao nhất trong cùng hàng lưới, nên chữ các card thẳng hàng nhau. */
.model {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  row-gap: var(--s-4);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
@supports not (grid-template-rows: subgrid) {
  .model { grid-template-rows: auto auto auto auto auto 1fr; }
}
.model > :not(.model-media) { padding-inline: var(--s-5); }
.model::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 480ms var(--ease-out); z-index: 2; }
.model:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.model:hover::before { transform: scaleX(1); }

.model-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1c1c1e; }
.model-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.model:hover .model-media img { transform: scale(1.05); }
.model-media.studio { background: linear-gradient(180deg, #d9d9d9, #f4f4f4); }
.model-tag { position: absolute; top: 14px; left: 14px; background: rgba(15, 15, 16, 0.78); backdrop-filter: blur(8px); color: var(--ink); font-size: var(--text-xs); font-weight: 500; padding: 6px 12px; border-radius: var(--r-btn); border: 1px solid rgba(255, 255, 255, 0.12); }
.model-tag.hot { background: var(--accent); border-color: transparent; }

.model-head { padding-top: var(--s-2); }
.model-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.model-tagline { color: var(--muted); font-style: italic; margin-top: 2px; font-family: var(--font-display); font-size: var(--text-sm); white-space: nowrap; }

.specs { margin: 0; display: grid; grid-template-rows: repeat(4, 54px); }
.specs > div { display: flex; flex-direction: column; justify-content: center; gap: 2px; border-top: 1px solid var(--line); min-width: 0; }
.specs > div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-weight: 300; font-size: var(--text-xs); line-height: 1.2; }
.specs dd { margin: 0; font-weight: 600; font-size: var(--text-sm); color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.swatches { display: flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--muted); height: 20px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); display: inline-block; flex: none; }
.swatches span { margin-left: 4px; }

.model-price { display: flex; flex-direction: column; gap: 2px; }
.model-price small { font-size: var(--text-xs); color: var(--muted); }
.model-price strong {
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.85vw, 1.95rem); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap;
}
.model-price strong span { font-family: var(--font-text); font-size: 0.8rem; font-weight: 500; color: var(--ink-2); margin-left: 6px; letter-spacing: 0.02em; }

.model > .btn { width: auto; justify-self: stretch; margin: 0 var(--s-5) var(--s-5); padding-inline: 0; }

.models-note { margin-top: var(--s-5); color: var(--muted); font-size: var(--text-xs); text-align: center; }

/* ---------- Promo (Đặc quyền kỷ niệm 1 năm) ---------- */
.promo { background: var(--surface-0); border-top: 1px solid var(--line); }
.promo .section-head p { color: var(--ink-2); }
.promo-tagline { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--ink); margin-bottom: var(--s-2); }
.promo-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1000px) { .promo-grid { grid-template-columns: 400px minmax(0, 1fr); gap: var(--s-8); } }
.promo-poster { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-1); box-shadow: var(--shadow-lg); aspect-ratio: 100 / 153; max-width: 400px; }
.promo-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.promo-list { display: grid; gap: var(--s-3); }
.perk {
  display: flex; gap: var(--s-4); align-items: flex-start;
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-5);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.perk:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-2px); }
.perk-icon { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(219, 8, 18, 0.25); }
.perk-icon svg { width: 22px; height: 22px; }
.perk-body { min-width: 0; }
.perk-no { display: block; font-size: var(--text-xs); color: var(--accent); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 4px; }
.perk h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; margin-bottom: 4px; }
.perk p { color: var(--ink-2); font-size: var(--text-sm); }
.perk-note { color: var(--muted); }
.promo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-3); }
.promo-cta p { color: var(--muted); font-size: var(--text-xs); max-width: 44ch; }
.promo-cta p a { color: var(--ink); font-weight: 500; }
.promo-cta p a:hover { color: var(--accent); }

/* ---------- Features (why) ---------- */
.why { background: var(--surface-0); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

/* Card = 4 hàng (khoảng trống ảnh, h3, p, nhãn). Subgrid khoá chiều cao từng hàng theo card cao nhất
   cùng hàng lưới, nên tiêu đề, đoạn mô tả và nhãn của 2 card cạnh nhau thẳng hàng. */
.feature {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: subgrid; grid-row: span 4; row-gap: 0;
  padding: var(--s-6);
  border: 1px solid var(--line);
  isolation: isolate;
}
@supports not (grid-template-rows: subgrid) {
  .feature { grid-template-rows: 1fr auto auto auto; }
}
.feature::before { content: ""; grid-row: 1; min-height: 150px; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--ease-out), filter 1200ms var(--ease-out); filter: saturate(0.85); }
.feature:hover img { transform: scale(1.04); filter: saturate(1); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15, 15, 16, 0.96) 0%, rgba(15, 15, 16, 0.55) 45%, rgba(15, 15, 16, 0.05) 100%); }
.feature-body { grid-row: 2 / span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; max-width: 560px; align-content: end; }
.feature-body h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: var(--s-3); line-height: 1.15; align-self: end; }
.feature-body p { color: var(--ink-2); font-size: var(--text-sm); align-self: start; }
.feature-body .applies { justify-self: start; align-self: end; margin-top: var(--s-3); font-size: var(--text-xs); color: var(--muted); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: var(--r-btn); }
@media (min-width: 800px) {
  .feature.wide { grid-column: span 2; }
  .feature.wide::before { min-height: 210px; }
  .feature.wide .feature-body { max-width: 640px; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; grid-auto-flow: dense; } }
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface-1); aspect-ratio: 1; }
@media (min-width: 800px) {
  .gallery figure { aspect-ratio: auto; }
  .gallery .tall { grid-row: span 2; }
  .gallery .wide { grid-column: span 2; }
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out), filter 600ms var(--ease-out); }
.gallery figure:hover img { transform: scale(1.05); filter: brightness(1.06); }

/* ---------- Showrooms ---------- */
.showrooms { background: var(--surface-0); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.city { font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); font-weight: 500; color: var(--ink-2); margin: var(--s-6) 0 var(--s-4); display: flex; align-items: center; gap: 16px; }
.city::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.showroom-grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .showroom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .showroom-grid { grid-template-columns: repeat(4, 1fr); } }
.showroom {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-5); display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.showroom:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--surface-2); }
.showroom h4 { font-size: var(--text-base); font-weight: 600; }
.showroom p { color: var(--muted); font-size: var(--text-sm); flex: 1; }
.showroom a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 500; color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease-out); width: fit-content; }
.showroom a:hover { background-size: 100% 1px; }
.showroom a svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Final CTA / full form ---------- */
.lead { position: relative; isolation: isolate; overflow: hidden; }
.lead-bg { position: absolute; inset: 0; z-index: -2; }
.lead-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: 0.55; }
.lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(15, 15, 16, 0.96), rgba(15, 15, 16, 0.8) 50%, rgba(15, 15, 16, 0.55)); }
.lead-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1000px) { .lead-grid { grid-template-columns: 1fr 520px; gap: var(--s-9); } }
.lead-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: var(--s-4); }
.lead-copy h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.lead-copy p { color: var(--ink-2); max-width: 52ch; margin-bottom: var(--s-5); }
.lead-steps { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-3); }
.lead-steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); font-size: var(--text-sm); }
.lead-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-size: var(--text-sm); display: grid; place-items: center; }
.lead-phone { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); }
.lead-phone svg { width: 26px; height: 26px; color: var(--accent); }
.lead-phone small { display: block; font-family: var(--font-text); font-weight: 300; font-size: var(--text-xs); color: var(--muted); letter-spacing: 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 calc(var(--s-7) + 72px); color: var(--muted); font-size: var(--text-sm); }
@media (min-width: 768px) { .footer { padding-bottom: var(--s-7); } }
.footer-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .logo { height: 26px; margin-bottom: var(--s-4); }
.footer h4 { color: var(--ink); font-size: var(--text-sm); margin-bottom: var(--s-3); }
.footer p + p { margin-top: 6px; }
.footer a:hover { color: var(--ink); }
.social { display: flex; gap: 10px; margin-top: var(--s-3); }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.social a:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--text-xs); }

/* ---------- Mobile sticky bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 15, 16, 0.9); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease-out);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar .btn { min-height: 48px; padding-inline: 14px; }
@media (min-width: 768px) { .sticky-bar { display: none; } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
[data-reveal-stagger].in > * { opacity: 1; transform: none; }
[data-reveal-stagger].in > :nth-child(2) { transition-delay: 70ms; }
[data-reveal-stagger].in > :nth-child(3) { transition-delay: 140ms; }
[data-reveal-stagger].in > :nth-child(4) { transition-delay: 210ms; }
[data-reveal-stagger].in > :nth-child(5) { transition-delay: 280ms; }
[data-reveal-stagger].in > :nth-child(6) { transition-delay: 350ms; }
[data-reveal-stagger].in > :nth-child(7) { transition-delay: 420ms; }
[data-reveal-stagger].in > :nth-child(8) { transition-delay: 490ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .hero-copy > *, .hero-plate, .hero-lineup { opacity: 1; animation: none; }
  .hero-media img { transform: none; animation: none; }
  .ticker-track { animation: none; }
}
