:root {
  --text: #1c1c1c;
  --muted: #5f6368;
  --light-bg: #f2f2f2;
  --border: #e5e5e5;
  --radius: 8px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
.logo img { height: 44px; width: auto; }
.distributor { font-size: 14px; font-weight: 500; }

/* ---------- Generic carousel ---------- */
.carousel { position: relative; overflow: hidden; --per-view: 1; --gap: 0px; }
.carousel .track {
  display: flex;
  gap: var(--gap);
  transition: transform 0.6s ease;
}
.carousel .slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  position: relative;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.8);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}
.arrow:hover { background: #000; }
.arrow.prev { left: 12px; }
.arrow.next { right: 12px; }
.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 0;
}
.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #c4c4c4;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.dots button.active { background: #1c1c1c; }

/* ---------- Hero ---------- */
.hero .slide { height: clamp(260px, 48vw, 640px); }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-text {
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  padding: 0 16px;
}
.hero-text h1, .hero-text h2 { font-size: clamp(26px, 4vw, 48px); font-weight: 700; line-height: 1.15; }
.hero-text p { font-size: clamp(13px, 1.4vw, 18px); opacity: 0.9; }
.hero .arrow { background: rgba(255, 255, 255, 0.35); width: 34px; height: 34px; font-size: 22px; }
.hero .arrow:hover { background: rgba(255, 255, 255, 0.6); }
.hero .dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  padding: 0;
}
.hero .dots button { background: rgba(255, 255, 255, 0.55); }
.hero .dots button.active { background: #fff; width: 24px; border-radius: 4px; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 28px 16px 0; }

/* Model cards */
.models { --per-view: 2; --gap: 14px; }
.model-card {
  height: clamp(220px, 30vw, 380px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #222;
}
.model-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.model-card:hover img { transform: scale(1.04); }
.model-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 45%);
}
.tag {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.model-info {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #fff;
  z-index: 2;
}
.model-info h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; }
.model-info p { font-size: 14px; opacity: 0.9; }
.price-note { font-size: 12px; color: var(--muted); text-align: center; padding-top: 8px; }

/* Purchase options */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 0 0 0 22px;
  min-height: 120px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.option-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
.option-card h3 { font-size: 22px; font-weight: 500; }
.option-card p { font-size: 13px; color: var(--muted); }
.option-card img {
  width: 40%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

/* Service cards */
.services { --per-view: 2; --gap: 22px; }
.service-card {
  height: clamp(220px, 30vw, 380px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #222;
}
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover img { transform: scale(1.04); }
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%);
}
.service-card h3 {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  z-index: 2;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  padding-top: 36px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.gallery img.contain { object-fit: contain; background: #fff; }

/* About */
.about { max-width: 1000px; padding-top: 48px; font-size: 14px; color: #3c4043; }
.about h2, .about h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.about h2 { margin-top: 0; }
.about h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 12px 0 6px; }
.about p { margin-bottom: 12px; }
.about ul { list-style: none; padding-left: 16px; margin-bottom: 14px; }
.about li { margin-bottom: 6px; }
.about strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 24px 24px;
}
.footer-logo { height: 70px; width: auto; margin-bottom: 36px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header { padding: 10px 16px; }
  .logo img { height: 36px; }
  .distributor { font-size: 12px; }
  .models, .services { --per-view: 1; }
  .options { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .footer-bottom { flex-direction: column; }
}
