/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #C1121F;
  --red-dark: #8B0000;
  --red-light: #FDECEC;
  --ink: #1A1A1A;
  --gray-700: #4A4A4A;
  --gray-500: #767676;
  --gray-200: #E6E6E6;
  --gray-100: #F5F5F5;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --container: 1180px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
svg { width: 100%; height: 100%; }

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head-center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.section-sub { color: var(--gray-500); margin-top: 10px; font-size: 1.02rem; }

section { padding: 88px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { background: var(--gray-100); color: var(--ink); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover;
}
.logo-text { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.03em; }
.logo-text strong { color: var(--red); font-weight: 800; }

.main-nav { display: flex; gap: 32px; }
.main-nav a { font-weight: 500; font-size: 0.94rem; color: var(--gray-700); position: relative; padding: 4px 0; }
.main-nav a:hover { color: var(--red); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; background: linear-gradient(180deg, var(--red-light) 0%, var(--white) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-badge strong { font-weight: 800; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 18px; }
.hero .accent { color: var(--red); }
.hero-copy > p { color: var(--gray-700); font-size: 1.08rem; max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.7rem; font-weight: 800; color: var(--red); }
.stat span { font-size: 0.85rem; color: var(--gray-500); }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-visual-card {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  color: var(--red);
}
.car-illustration { max-width: 320px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.about-lead { font-size: 1.15rem; color: var(--gray-700); }
.about-points { display: flex; flex-direction: column; gap: 22px; }
.point { padding-left: 18px; border-left: 3px solid var(--red); }
.point h3 { font-size: 1.05rem; margin-bottom: 4px; }
.point p { color: var(--gray-500); font-size: 0.95rem; }

/* ---------- Warranty ---------- */
.warranty { background: var(--gray-100); }
.warranty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.warranty-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.warranty-card:hover { transform: translateY(-4px); }
.warranty-icon {
  width: 52px; height: 52px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  margin-bottom: 18px;
}
.warranty-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.warranty-card p { color: var(--gray-700); font-size: 0.95rem; }
.warranty-note { margin-top: 28px; text-align: center; font-size: 0.85rem; color: var(--gray-500); }

/* ---------- Guarantee List ---------- */
.guarantee-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  counter-reset: none;
}
.guarantee-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 0.98rem; }
.guarantee-num {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
}

/* ---------- Refund Policy ---------- */
.refund-policy {
  margin-top: 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.refund-policy h3 { font-size: 1.1rem; margin-bottom: 14px; }
.refund-policy p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 10px; }
.refund-policy p:last-child { margin-bottom: 0; }
.refund-policy .highlight {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ---------- Cars / Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  background: var(--gray-100);
  padding: 22px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; }
.filter-field label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); }
.filter-field select {
  appearance: none;
  padding: 12px 36px 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234A4A4A" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 12px center;
  background-size: 16px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
}
.filter-field select:focus { outline: none; border-color: var(--red); }
#resetFilters { flex: 0 0 auto; }

.result-count { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 24px; }

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.car-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.car-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.car-thumb {
  aspect-ratio: 16/10;
  background: var(--red-light);
  color: var(--red);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.car-thumb-img { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.car-thumb .car-illustration { max-width: 140px; }
.car-photo-count {
  position: absolute;
  bottom: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.55);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}
.car-photo-count svg { width: 14px; height: 14px; flex: 0 0 14px; }
.car-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.45);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.car-thumb:hover .car-thumb-overlay,
.car-thumb:focus-visible .car-thumb-overlay { opacity: 1; }
.car-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.car-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-title { font-size: 1.05rem; font-weight: 700; }
.car-year { color: var(--gray-500); font-size: 0.88rem; }

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-700);
}
.car-specs span {
  background: var(--gray-100);
  padding: 5px 10px;
  border-radius: 999px;
}

.car-price { font-size: 1.15rem; font-weight: 800; color: var(--red); margin-top: 4px; }

.car-footer { padding: 0 20px 20px; margin-top: auto; }

.no-result { text-align: center; color: var(--gray-500); padding: 40px 0; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-list { margin: 30px 0 34px; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 9px;
}
.contact-list strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-list p, .contact-list a { color: var(--gray-500); font-size: 0.92rem; }
.contact-list a:hover { color: var(--red); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--gray-200); padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-mark { margin-bottom: 14px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 14px; color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 6px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding: 22px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.85rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.92); }
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 74vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
}
.lightbox-close {
  position: absolute;
  top: -46px; right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  padding: 4px 8px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: -10px; }
.lightbox-next { right: -10px; }
.lightbox-meta { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 0.9rem; }
.lightbox-counter { color: rgba(255,255,255,0.6); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .warranty-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }

  .site-header .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .car-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-actions .btn-sm { padding: 8px 14px; font-size: 0.8rem; }
  .guarantee-list { grid-template-columns: 1fr; padding: 26px 22px; }
  .refund-policy { padding: 26px 22px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { top: -40px; font-size: 1.6rem; }
}
