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

:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #c53030;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #f7fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --max-width: 1140px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

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

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.badge {
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}

/* ===== Hero / Gallery ===== */
.hero {
  background: #0f172a;
  padding: 30px 0 40px;
}

.gallery-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.75);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumbnails img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.thumbnails img.active,
.thumbnails img:hover {
  opacity: 1;
  border-color: white;
}

/* ===== Main Content ===== */
.main {
  padding: 50px 0 70px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
}

h1 span {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-light);
}

.intro {
  font-size: 1.1rem;
  margin-bottom: 28px;
  color: var(--text);
}

.price-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
  box-shadow: var(--shadow);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.price-note {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.95rem;
}

h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 32px 0 14px;
}

.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.features li {
  position: relative;
  padding-left: 22px;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #38a169;
  font-weight: 700;
}

/* ===== Sidebar ===== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.contact-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-card > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

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

.contact-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.info-card h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.info-card ul {
  list-style: none;
}

.info-card li {
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.info-card li:last-child {
  border-bottom: none;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 28px 0;
  text-align: center;
  font-size: 0.95rem;
}

.footer .small {
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.75;
}

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

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

  h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 600px) {
  .carousel {
    aspect-ratio: 4 / 3;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}
