/* XIE Motors — China–Africa vehicle export. */
:root {
  --ink: #0e1210;
  --ink-2: #141a16;
  --ink-3: #1b231e;
  --paper: #f4f0e7;
  --paper-2: #ebe4d7;
  --cream: #fbf8f1;
  --copper: #bd6638;
  --copper-2: #9f4f26;
  --copper-soft: #e8c7a8;
  --sage: #36594b;
  --sage-2: #274638;
  --muted: #6f6b60;
  --muted-dark: #a39d8f;
  --line: rgba(14, 18, 16, 0.16);
  --line-strong: rgba(14, 18, 16, 0.34);
  --line-dark: rgba(244, 240, 231, 0.16);
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --shadow: 0 22px 60px rgba(25, 22, 16, 0.12);
  --pad: clamp(18px, 4.2vw, 56px);
}

html { background: var(--paper); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--copper); color: #fff; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link { background: var(--ink); }

/* Language switch, skinned for the site header. */
.lang-switch {
  gap: 2px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.lang-switch button { padding: 3px 5px; opacity: 0.45; }
.lang-switch button.is-active { background: var(--ink); color: var(--paper); text-decoration: none; opacity: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn::after { content: "→"; font-size: 13px; font-weight: 400; }

.btn-primary {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-2);
  border-color: var(--copper-2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: inherit;
  border-color: var(--line-strong);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: currentColor; }

.hero .btn-outline,
.visits-section .btn-outline,
.contact-section .btn-outline {
  border-color: rgba(244, 240, 231, 0.38);
  color: var(--paper);
}

.hero .btn-outline:hover,
.visits-section .btn-outline:hover,
.contact-section .btn-outline:hover {
  background: rgba(244, 240, 231, 0.1);
  border-color: rgba(244, 240, 231, 0.72);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-dark:hover { background: var(--sage); border-color: var(--sage); }

.btn-small { min-height: 40px; padding: 0 15px; font-size: 9px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.text-link::after { content: "↗"; font-size: 12px; }
.text-link:hover { color: var(--copper); border-color: var(--copper); }

button.text-link {
  appearance: none;
  align-self: flex-start;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

button.text-link:hover { color: var(--copper); border-color: var(--copper); }

/* Utility bar */
.topbar {
  background: var(--ink);
  color: var(--muted-dark);
  border-bottom: 1px solid rgba(244, 240, 231, 0.08);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
}

.topbar-group { display: flex; align-items: center; gap: 22px; }
.topbar a { color: var(--paper); }
.topbar a:hover { color: var(--copper-soft); }
.topbar .dot { color: var(--sage); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 240, 231, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 12px 34px rgba(20, 18, 12, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: var(--copper-soft);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1; }
.brand-tag { font-size: 8px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  color: #4d4a42;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.25s ease;
}

.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn { min-height: 38px; padding: 0 14px; font-size: 8.5px; }
.header-actions .btn::after { display: none; }

.menu-toggle {
  display: none;
  appearance: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  content: "";
  position: relative;
  transition: transform 0.2s ease;
}

.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 26px 50px rgba(20, 18, 12, 0.14);
}

.mobile-menu.open { display: block; }

.mobile-menu-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 14px var(--pad) 20px;
}

.mobile-menu a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-menu .mobile-cta {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-bottom: 0;
}

.mobile-menu .btn { flex: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: clamp(620px, 88svh, 900px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0b0e0c;
  color: var(--paper);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 56%;
  filter: saturate(0.72) brightness(0.72) contrast(1.03);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 11, 9, 0.94) 0%, rgba(8, 11, 9, 0.72) 36%, rgba(8, 11, 9, 0.18) 68%, rgba(8, 11, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(8, 11, 9, 0.9) 0%, transparent 48%),
    linear-gradient(180deg, rgba(8, 11, 9, 0.6) 0%, transparent 28%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(100px, 16vh, 170px);
  padding-bottom: clamp(120px, 17vh, 180px);
}

.hero-copy { max-width: 800px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--copper-soft);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 7.2vw, 108px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 em { font-style: italic; color: var(--copper-soft); }

.hero-lead {
  max-width: 55ch;
  margin: 24px 0 0;
  color: rgba(244, 240, 231, 0.76);
  font-size: clamp(13.5px, 1.25vw, 16px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-note {
  margin: 18px 0 0;
  color: rgba(244, 240, 231, 0.48);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(32px, 5vh, 52px);
  padding-top: 22px;
  border-top: 1px solid rgba(244, 240, 231, 0.2);
}

.hero-stat { padding-right: 20px; border-right: 1px solid rgba(244, 240, 231, 0.14); }
.hero-stat:last-child { border-right: 0; }
.hero-stat b { display: block; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); font-weight: 400; line-height: 1; }
.hero-stat span { display: block; margin-top: 8px; color: rgba(244, 240, 231, 0.5); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; }

.hero-credit {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  bottom: 28px;
  color: rgba(244, 240, 231, 0.3);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* Search panel */
.search-wrap { position: relative; z-index: 5; margin-top: -58px; }

.search-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.2vw, 26px);
}

.search-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.search-panel-head p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); }
.search-panel-head span { color: var(--muted); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; }

.search-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) minmax(160px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.field label,
.calc-field label,
.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.calc-field select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder { color: #99948a; }

.field input:focus,
.field select:focus,
.calc-field select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(189, 102, 56, 0.12);
}

.search-grid .btn { min-height: 44px; }

/* Sections */
.section { padding: clamp(64px, 8.5vw, 120px) 0; scroll-margin-top: 96px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head-main { max-width: 800px; }

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.section-title em { font-style: italic; color: var(--copper); }
.section-lead { max-width: 58ch; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.section-aside {
  max-width: 38ch;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

/* Inventory */
.inventory { background: var(--paper); }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(140px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.filter-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filter-meta strong { color: var(--ink); font-weight: 700; }
.reset-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--copper);
  padding: 0;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.vehicle-card:hover {
  border-color: rgba(189, 102, 56, 0.45);
  box-shadow: 0 20px 44px rgba(25, 22, 16, 0.1);
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #ddd7ca;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.3s ease;
}

.vehicle-card:hover .card-media img { transform: scale(1.035); }

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: rgba(14, 18, 16, 0.82);
  color: #fff;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.chip-copper { background: var(--copper); }
.chip-cream { background: rgba(251, 248, 241, 0.9); color: var(--ink); }

.card-photos {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 7px;
  background: rgba(14, 18, 16, 0.72);
  color: #fff;
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(16px, 1.8vw, 22px); }

.car-brand {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-title-btn {
  appearance: none;
  align-self: flex-start;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
}

.card-title-btn:hover { color: var(--copper); }

.car-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.car-meta span + span::before { content: "·"; margin-right: 10px; color: var(--line-strong); }

.car-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.car-specs div { padding: 10px 10px 10px 0; border-right: 1px solid var(--line); }
.car-specs div:last-child { border-right: 0; padding-right: 0; }
.car-specs small { display: block; color: var(--muted); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.car-specs b { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; }

.car-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.price-label { display: block; color: var(--muted); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.price-value { display: block; margin-top: 2px; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 31px); line-height: 1; letter-spacing: -0.03em; }
.price-unit { font-family: var(--sans); font-size: 8px; letter-spacing: 0.08em; color: var(--muted); }

.card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.card-actions .btn { flex: 1; min-height: 40px; padding: 0 12px; font-size: 8px; }
.card-actions .btn::after { display: none; }
.card-actions .text-link { font-size: 8px; }

.stock-empty {
  padding: clamp(40px, 6vw, 80px);
  border: 1px dashed var(--line-strong);
  text-align: center;
  background: var(--cream);
}

.stock-empty h3 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.stock-empty p { max-width: 46ch; margin: 10px auto 18px; color: var(--muted); font-size: 12.5px; }

.inventory-note {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

/* Vehicle dialog */
.vehicle-modal {
  width: min(1060px, 94vw);
  max-width: 1060px;
  max-height: 92svh;
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
}

.vehicle-modal::backdrop {
  background: rgba(6, 9, 7, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.modal-open { overflow: hidden; }

.modal-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(14, 18, 16, 0.2);
  border-radius: 50%;
  background: rgba(251, 248, 241, 0.88);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.modal-close:hover { background: var(--ink); color: var(--paper); }

.modal-media { display: flex; flex-direction: column; background: #ddd7ca; }
.modal-main { position: relative; }
.modal-main img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.modal-media-note {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.modal-thumb {
  appearance: none;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 1px solid transparent;
  background: #ccc;
  overflow: hidden;
  cursor: pointer;
}

.modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumb.is-active { border-color: var(--copper); }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(10, 13, 11, 0.6);
  color: #fff;
  cursor: pointer;
}

.modal-nav.prev { left: 10px; }
.modal-nav.next { right: 10px; }

.modal-content { padding: clamp(24px, 3.4vw, 42px); }
.modal-brand { color: var(--muted); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.modal-title { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; line-height: 1; letter-spacing: -0.03em; }
.modal-price { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.modal-price b { font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -0.03em; }
.modal-price span { color: var(--muted); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.modal-desc { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 22px;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.modal-specs div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.modal-specs dt { color: var(--muted); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.modal-specs dd { margin: 2px 0 0; font-size: 11.5px; font-weight: 600; text-align: left; }

.modal-included { margin-top: 20px; padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.modal-included b { display: block; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.modal-included p { margin: 6px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; min-width: 150px; }

/* Calculator */
.calc-section {
  background:
    linear-gradient(rgba(244, 240, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 231, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 56px 56px;
  color: var(--paper);
}

.calc-section .eyebrow { color: var(--copper-soft); }
.calc-section .section-lead { color: rgba(244, 240, 231, 0.6); }

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.calc-controls {
  padding: clamp(20px, 2.8vw, 32px);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}

.calc-field { margin-bottom: 16px; }
.calc-field label { color: rgba(244, 240, 231, 0.55); }
.calc-field select { background: #f7f3e9; border-color: transparent; color: var(--ink); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.switch-row label { margin: 0; color: rgba(244, 240, 231, 0.78); font-size: 10px; letter-spacing: 0.02em; text-transform: none; font-weight: 400; }
.switch-row small { display: block; margin-top: 3px; color: rgba(244, 240, 231, 0.4); font-size: 8px; }

.switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
}

.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: rgba(244, 240, 231, 0.2); transition: background 0.2s ease; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); transition: transform 0.2s ease; }
.switch input:checked + span { background: var(--copper); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--copper-soft); outline-offset: 3px; }

.route-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  color: rgba(244, 240, 231, 0.5);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.route-note b { color: var(--paper); font-weight: 500; }

.calc-summary {
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(145deg, #1a221c, #121713);
  border: 1px solid var(--line-dark);
  position: relative;
}

.calc-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--copper);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 240, 231, 0.48);
}

.breakdown { margin: 4px 0 0; }

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 240, 231, 0.09);
  font-size: 11px;
}

.breakdown-row dt { color: rgba(244, 240, 231, 0.56); }
.breakdown-row dd { margin: 0; font-variant-numeric: tabular-nums; }
.breakdown-row.is-cif dt,
.breakdown-row.is-cif dd { color: var(--paper); font-weight: 600; }
.breakdown-row.is-total { margin-top: 8px; padding: 16px 0 4px; border-bottom: 0; }
.breakdown-row.is-total dt { color: var(--paper); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.breakdown-row.is-total dd { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); line-height: 1; color: var(--copper-soft); letter-spacing: -0.03em; }

.local-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(244, 240, 231, 0.05);
  border: 1px solid rgba(244, 240, 231, 0.1);
}

.local-total span { color: rgba(244, 240, 231, 0.5); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.local-total b { font-size: clamp(16px, 1.7vw, 22px); font-weight: 500; font-variant-numeric: tabular-nums; }

.calc-disc { margin: 16px 0 0; color: rgba(244, 240, 231, 0.4); font-size: 8.5px; line-height: 1.6; }
.calc-rates { margin: 5px 0 0; color: rgba(244, 240, 231, 0.28); font-size: 8px; }
.calc-summary .btn { width: 100%; margin-top: 18px; }

.calc-loading { color: rgba(244, 240, 231, 0.4); font-size: 11px; padding: 30px 0; }

/* Shipping */
.shipping-section { background: var(--paper); }

.routes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.route-card { padding: clamp(18px, 2.4vw, 28px); background: var(--cream); }
.route-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.9vw, 26px); font-weight: 400; }
.route-card p { min-height: 3.4em; margin: 8px 0 18px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.route-card .transit { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.route-card .transit b { color: var(--ink); }

.process-wrap { margin-top: clamp(38px, 5vw, 60px); }
.process-title { margin: 0 0 18px; font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.process-step { padding: 18px 18px 0 0; border-right: 1px solid var(--line); }
.process-step:last-child { border-right: 0; padding-right: 0; }
.process-step .no { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--copper); }
.process-step h3 { margin: 14px 0 6px; font-size: 12px; line-height: 1.3; }
.process-step p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

/* Visits */
.visits-section { background: var(--ink-2); color: var(--paper); }
.visits-section .section-lead { color: rgba(244, 240, 231, 0.58); }
.visits-section .section-aside { color: rgba(244, 240, 231, 0.42); }
.visits-section .eyebrow { color: var(--copper-soft); }

.visit-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: clamp(34px, 4.5vw, 54px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.visit-stat { padding: 22px 20px; border-right: 1px solid var(--line-dark); }
.visit-stat:first-child { padding-left: 0; }
.visit-stat:last-child { border-right: 0; }
.visit-stat b { display: block; font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: 1; }
.visit-stat span { display: block; margin-top: 7px; color: rgba(244, 240, 231, 0.46); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; }

.visits-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 54px); align-items: start; }
.visits-main h3, .testimonials h3 { margin: 0 0 14px; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 240, 231, 0.45); }

.visit-table { border-top: 1px solid rgba(244, 240, 231, 0.24); }
.visit-head, .visit-row { display: grid; grid-template-columns: 0.7fr 1.2fr 0.8fr 1.2fr 0.8fr; gap: 12px; align-items: center; }
.visit-head { padding: 9px 0; border-bottom: 1px solid var(--line-dark); color: rgba(244, 240, 231, 0.38); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.visit-row { padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 10.5px; line-height: 1.45; }
.visit-row .date { color: rgba(244, 240, 231, 0.5); font-variant-numeric: tabular-nums; white-space: nowrap; }
.visit-row .buyer { font-weight: 600; }
.visit-row .country { display: inline-flex; align-items: center; gap: 7px; color: rgba(244, 240, 231, 0.62); white-space: nowrap; }

.cc {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 16px;
  padding: 0 3px;
  border: 1px solid rgba(244, 240, 231, 0.24);
  color: rgba(244, 240, 231, 0.7);
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}
.visit-row .interest { color: rgba(244, 240, 231, 0.62); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--line-dark);
  color: rgba(244, 240, 231, 0.72);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status.completed::before { background: #8cb89a; }
.status.deposit::before { background: var(--copper-soft); }
.status.shipped::before { background: #9ec7d6; }
.status.negotiating::before { background: #d9c27a; }

.visit-note { margin: 14px 0 0; color: rgba(244, 240, 231, 0.32); font-size: 8px; }
.visits-main .btn { margin-top: 24px; }

.testimonials { display: flex; flex-direction: column; gap: 12px; }
.quote-card { padding: 18px; background: rgba(244, 240, 231, 0.045); border: 1px solid var(--line-dark); }
.quote-card p { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.55; color: rgba(244, 240, 231, 0.82); }
.quote-card footer { margin-top: 12px; color: rgba(244, 240, 231, 0.42); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }

/* About */
.about-section { background: var(--paper-2); }
.about-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.about-copy .section-title { max-width: 14ch; }
.about-copy .lead { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 24px); font-style: italic; color: var(--copper-2); }
.about-copy p.body { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.about-since { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value-card { min-height: 180px; padding: clamp(18px, 2.2vw, 26px); background: var(--cream); }
.value-card .no { color: var(--copper); font-family: var(--serif); font-size: 18px; font-style: italic; }
.value-card h3 { margin: 28px 0 8px; font-size: 12.5px; letter-spacing: -0.01em; }
.value-card p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.65; }

/* FAQ */
.faq-section { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--copper); font-family: var(--serif); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 30px 18px 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }

/* Contact */
.contact-section {
  background:
    radial-gradient(60% 100% at 90% 0%, rgba(189, 102, 56, 0.16), transparent 55%),
    var(--ink);
  color: var(--paper);
}
.contact-section .eyebrow { color: var(--copper-soft); }
.contact-section .section-lead { color: rgba(244, 240, 231, 0.58); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 72px); align-items: start; }

.contact-info h3 { margin: 30px 0 12px; font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(244, 240, 231, 0.42); }
.contact-block { padding: 14px 0; border-top: 1px solid var(--line-dark); }
.contact-block:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-block small { display: block; color: rgba(244, 240, 231, 0.4); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-block a, .contact-block p { display: block; margin: 5px 0 0; color: var(--paper); font-family: var(--serif); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.25; }
.contact-block a:hover { color: var(--copper-soft); }

.contact-form {
  padding: clamp(20px, 2.8vw, 32px);
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-field.full { grid-column: 1 / -1; }
.form-field textarea { min-height: 116px; padding: 11px 12px; resize: vertical; line-height: 1.6; }
.form-field select { appearance: auto; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.form-success { margin: 12px 0 0; padding: 10px 12px; background: rgba(54, 89, 75, 0.1); border-left: 2px solid var(--sage); color: var(--sage-2); font-size: 11px; line-height: 1.5; }
.contact-form .btn { width: 100%; margin-top: 14px; }

/* Footer */
.site-footer { background: #090c0a; color: rgba(244, 240, 231, 0.55); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 6vw, 70px) 0 34px; border-top: 1px solid var(--line-dark); }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-tag { color: rgba(244, 240, 231, 0.4); }
.footer-brand p { max-width: 38ch; margin: 16px 0 0; color: rgba(244, 240, 231, 0.42); font-size: 10.5px; line-height: 1.7; }
.footer-col h3 { margin: 0 0 12px; color: rgba(244, 240, 231, 0.4); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col a, .footer-col p { display: block; margin: 0 0 8px; color: rgba(244, 240, 231, 0.72); font-size: 10.5px; }
.footer-col a:hover { color: var(--copper-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 0 26px; border-top: 1px solid var(--line-dark); color: rgba(244, 240, 231, 0.3); font-size: 8px; line-height: 1.6; }
.footer-bottom p { margin: 0; max-width: 78ch; }

/* Utility */
.mt-0 { margin-top: 0; }
[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routes-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 0; }
  .process-step:nth-child(3) { border-right: 0; }
  .calc-layout, .visits-layout, .about-layout, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid .btn { grid-column: 1 / -1; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .filter-bar .reset { grid-column: 1 / -1; }
  .search-panel-head { margin-bottom: 12px; }
}

@media (max-width: 860px) {
  .topbar-group.center { display: none; }
  .header-inner { min-height: 66px; }
  .header-actions .btn { display: none; }
  .hero { min-height: 640px; }
  .hero-credit { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .hero-stat { padding-right: 0; border-right: 0; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-media { position: relative; }
  .modal-main img { aspect-ratio: 16 / 10; }
  .visit-head { display: none; }
  .visit-row { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 0; }
  .visit-row .buyer { grid-column: 1 / 2; }
  .visit-row .date { grid-column: 2 / 3; grid-row: 1; text-align: right; }
  .visit-row .country { grid-column: 1 / 2; }
  .visit-row .interest { grid-column: 1 / -1; color: rgba(244, 240, 231, 0.44); }
  .visit-row .status { grid-column: 2 / 3; grid-row: 2 / 4; justify-self: end; align-self: center; }
  .visit-stat { padding: 18px 14px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .topbar-inner { min-height: 30px; }
  .topbar-group.right { display: none; }
  .header-inner { min-height: 60px; gap: 10px; }
  .brand-mark { width: 30px; height: 30px; font-size: 15px; }
  .brand-name { font-size: 13px; }
  .brand-tag { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .lang-switch { padding: 3px 5px; }
  .menu-toggle { width: 36px; height: 36px; }
  .hero { min-height: 600px; }
  .hero-inner { padding-top: 90px; padding-bottom: 110px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-lead { font-size: 12.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { flex: none; width: 100%; min-height: 46px; }
  .hero-stats { margin-top: 26px; }
  .hero-stat b { font-size: 24px; }
  .hero-stat span { font-size: 7px; }
  .search-wrap { margin-top: -40px; }
  .search-panel { padding: 16px; }
  .search-grid { grid-template-columns: 1fr; }
  .search-panel-head span { display: none; }
  .section { padding: 52px 0; }
  .section-title { font-size: clamp(30px, 9vw, 42px); }
  .section-head { margin-bottom: 24px; }
  .filter-bar { grid-template-columns: 1fr; }
  .stock-grid { grid-template-columns: 1fr; }
  .car-specs div { padding-right: 8px; }
  .card-actions .btn { min-height: 42px; }
  .calc-controls, .calc-summary { padding: 18px; }
  .calc-field select { font-size: 11px; }
  .route-note { font-size: 8px; }
  .routes-grid { grid-template-columns: 1fr; }
  .route-card p { min-height: 0; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-step, .process-step:nth-child(3) { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .process-step h3 { margin-top: 6px; }
  .visit-stats { grid-template-columns: repeat(2, 1fr); }
  .visit-stat:nth-child(2) { border-right: 0; }
  .visit-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .visit-row .status { justify-self: start; grid-column: 1 / -1; grid-row: auto; }
  .visits-main .btn { width: 100%; }
  .about-layout { gap: 28px; }
  .value-card { min-height: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .mobile-menu .mobile-cta { flex-direction: column; }
  .mobile-menu .btn { flex: none; width: 100%; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
