:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #0f1a20;
  --text-muted: #5a6870;
  --border: #e6e4de;
  --accent: #0f1a20;
  --accent-hover: #1f2d36;
  --brand: #b8946a;
  --brand-hover: #9e7c55;
  --success: #3a7d44;
  --danger: #b84a2e;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 32, 0.04);
  --shadow-md: 0 4px 20px rgba(15, 26, 32, 0.08);
  --max-width: 1280px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  font-family: var(--font-sans);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-switcher {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 28px 8px 14px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.2s ease;
}

.currency-switcher:hover,
.currency-switcher:focus {
  border-color: var(--text);
  outline: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 26, 32, 0.06);
}

.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--brand);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.2);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 640px;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 560px;
}

.section-link {
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

/* Car grid */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.car-card {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.car-media {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
  background: #ebe8e1;
}

.car-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.car-card:hover .car-media img {
  transform: scale(1.04);
}

.car-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.car-badge.featured {
  background: var(--brand);
  color: white;
}

.car-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.car-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.car-brand {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.car-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.car-price {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  white-space: nowrap;
}

.car-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.car-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.car-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.car-location {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.car-arrow {
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.car-card:hover .car-arrow {
  transform: translateX(4px);
}

/* Brand strip */
.brand-strip {
  background: var(--text);
  color: var(--bg);
  padding: 56px 0;
}

.brand-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.brand-list span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.brand-list span:hover {
  opacity: 1;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}

.feature {
  padding-top: 24px;
  border-top: 2px solid var(--text);
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--brand);
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* CTA banner */
.cta-banner {
  background: var(--text);
  color: var(--bg);
  padding: 96px 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  max-width: 720px;
  margin: 0 auto 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-banner p {
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  background: var(--bg);
  color: var(--text);
}

.cta-banner .btn-primary:hover {
  background: var(--brand);
  color: white;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: var(--bg);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 247, 0.5);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(250, 250, 247, 0.8);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--bg);
}

.footer-tagline {
  color: rgba(250, 250, 247, 0.6);
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.9375rem;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 250, 247, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: rgba(250, 250, 247, 0.5);
}

/* Inventory filters */
.inventory-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) auto;
  gap: 12px;
  padding: 24px 0;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-field select,
.filter-field input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
}

.filter-field select:focus,
.filter-field input:focus {
  outline: none;
  border-color: var(--text);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}

/* Detail page */
.detail-hero {
  padding-top: 40px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-main {
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: #ebe8e1;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-thumb {
  aspect-ratio: 16/11;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: #ebe8e1;
  transition: border-color 0.2s;
}

.gallery-thumb.active {
  border-color: var(--text);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-aside {
  position: sticky;
  top: 96px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.detail-brand {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.detail-price {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--brand);
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.spec-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.spec-item .value {
  font-weight: 600;
  font-size: 0.9375rem;
}

.seller-box {
  background: #f4f2ec;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.seller-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.seller-type {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  transition: all 0.2s;
}

.contact-btn:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

.contact-btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-btn .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}

.contact-btn .value {
  font-weight: 500;
}

.detail-body {
  margin-top: 64px;
}

.detail-section {
  margin-bottom: 64px;
}

.detail-section h3 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.detail-desc {
  color: var(--text-muted);
  max-width: 760px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.specs-grid > div {
  background: var(--surface);
  padding: 20px 24px;
}

.specs-grid .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.specs-grid .value {
  font-weight: 600;
  font-size: 1rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.features-list li {
  list-style: none;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.features-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* Info / notice banner */
.notice {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #fff8ea;
  border: 1px solid #e8d9a8;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  margin: 24px 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.notice .notice-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.notice strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  margin-bottom: 2px;
  color: var(--text);
}
.notice p {
  margin: 0;
  color: var(--text-muted);
}
.notice a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--text);
  white-space: nowrap;
  margin-left: 4px;
}

.price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -6px;
  margin-bottom: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Generic page header */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.content-section {
  padding: 40px 0 80px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.prose p {
  margin-bottom: 20px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--text);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px;
}

.contact-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-info .item {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.contact-info .item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info .item .value {
  font-weight: 500;
  font-size: 1.0625rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-aside {
    position: static;
  }

  .hero { padding: 48px 0 72px; }

  section { padding: 56px 0; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-cta .btn:not(.mobile-toggle) {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-num { font-size: 1.5rem; }
}
