*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --text: #2c2622;
  --muted: #6b6058;
  --brand: #8a5a3b;
  --brand-dark: #6f4630;
  --accent: #c7a27e;
  --line: #e3d8cc;
  --success: #2c6e49;
  --shadow: 0 10px 30px rgba(44, 38, 34, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: none;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--brand);
}

.menu-toggle {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 80%);
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 900;
}

.menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  padding: 64px 0 48px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-card {
  background: var(--surface);
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #f0e7de;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card .price {
  font-weight: 700;
  color: var(--brand);
}

.highlight {
  background: #f0e7de;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial span {
  font-weight: 600;
}

.footer {
  background: var(--text);
  color: #f8f4ef;
  padding: 40px 0;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.footer a {
  color: #f8f4ef;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0e7de;
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 92%);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 1100;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.cookie-modal.is-visible {
  display: flex;
}

.cookie-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.cookie-modal .modal-content {
  position: relative;
  background: var(--surface);
  width: min(620px, 92%);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}

.pref-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: #f6efe6;
  font-weight: 600;
}

.pref-toggle[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.legal-text {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 16px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .split {
    flex-direction: row;
    align-items: flex-start;
  }

  .split > * {
    flex: 1;
  }

  .grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .grid .card {
    flex: 1 1 calc(50% - 20px);
  }

  .testimonials {
    flex-direction: row;
  }

  .testimonial {
    flex: 1;
  }

  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero .container {
    flex-direction: row;
    align-items: center;
  }

  .hero-card {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .grid .card {
    flex: 1 1 calc(33.333% - 20px);
  }
}
