:root {
  color-scheme: light;
  --ink: #1b2a3a;
  --muted: #5b6b7b;
  --brand: #1b3a57;
  --accent: #f39c4a;
  --bg: #f7f4f1;
  --card: #ffffff;
  --line: #e6e0d9;
  --shadow: 0 12px 30px rgba(27, 42, 58, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 0 0 64px;
}

.top-bar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--brand);
}

.brand span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
}

.menu-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
}

.menu-toggle:focus-visible,
.btn:focus-visible,
.cookie-actions button:focus-visible,
.cookie-modal button:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mobile-menu a {
  font-weight: 600;
}

.menu-open .mobile-menu {
  display: flex;
}

.menu-overlay {
  display: none;
}

.menu-open .menu-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 58, 0.35);
  z-index: 10;
}

main {
  padding: 48px 0 0;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 0 40px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 0;
}

.card-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 {
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
}

.price {
  font-weight: 700;
  color: var(--brand);
}

.split {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid var(--line);
}

.badge {
  align-self: flex-start;
  background: rgba(243, 156, 74, 0.15);
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial {
  background: var(--card);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial span {
  font-weight: 700;
  color: var(--brand);
}

.footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer .container {
  padding-bottom: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.95rem;
}

.footer small {
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 16px;
  width: min(620px, 92vw);
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 30;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions button {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.cookie-actions .secondary {
  background: transparent;
  color: var(--brand);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(27, 42, 58, 0.4);
  z-index: 40;
  padding: 24px;
}

.cookie-modal.open {
  display: flex;
}

.cookie-dialog {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  width: min(560px, 92vw);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.cookie-option button {
  align-self: flex-start;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-dialog .cookie-actions {
  justify-content: flex-end;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .mobile-menu,
  .menu-overlay {
    display: none !important;
  }

  nav ul {
    display: flex;
  }

  .card-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 240px;
  }

  .split {
    flex-direction: row;
    align-items: flex-start;
  }

  .split > div {
    flex: 1;
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 899px) {
  nav ul {
    display: none;
  }
}
