* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #1b1f24;
  --muted: #5c6672;
  --paper: #f7f4f0;
  --sand: #ede7df;
  --sea: #dfe9f1;
  --accent: #1c5d8c;
  --accent-dark: #154362;
  --line: #d9d4cc;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

.page {
  display: flex;
  min-height: 100vh;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 260px;
  padding: 28px 22px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ad-label {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--sand);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.3;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-links a {
  padding: 6px 0;
  font-weight: 600;
}

.nav-cta {
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 32px 40px 60px;
}

.hero {
  min-height: 320px;
  border-radius: 24px;
  padding: 38px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 23, 29, 0.45);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.panel {
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel.muted {
  background: var(--sand);
}

.panel.contrast {
  background: var(--sea);
}

.panel.image-bg {
  color: #ffffff;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.panel.image-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(19, 25, 31, 0.55);
}

.panel.image-bg > * {
  position: relative;
  z-index: 1;
}

.split {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.split.reverse {
  flex-direction: row-reverse;
}

.split > div {
  flex: 1 1 280px;
}

.image-frame {
  background: #e2e1df;
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.card {
  flex: 1 1 220px;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card .price {
  font-weight: 700;
  color: var(--accent-dark);
}

.tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8rem;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
}

.footer {
  padding: 26px 40px 60px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
}

.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #ffffff;
  padding: 12px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.sticky-cta a {
  display: inline-flex;
}

#cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  width: min(360px, 90vw);
  display: none;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  z-index: 11;
}

#cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .side-nav {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  main {
    padding: 24px;
  }

  .footer {
    padding: 24px;
  }
}

body[data-page="home"] .hero {
  background-image: url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1400&q=80");
}

body[data-page="home"] .panel.image-bg {
  background-image: url("https://images.unsplash.com/photo-1487014679447-9f8336841d58?w=1400&q=80");
}
