* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f4f1;
  --ink: #1b1b1b;
  --muted: #5b5b5b;
  --accent: #7a2d2d;
  --accent-dark: #5a1f1f;
  --panel: #ffffff;
  --soft: #efe7df;
  --outline: #e2d8cf;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.page {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--panel);
  border-right: 1px solid var(--outline);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
}

.ad-label {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 8px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  display: inline-flex;
  width: fit-content;
  background: var(--soft);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav a {
  font-weight: 600;
  color: var(--ink);
}

.sidebar-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.sidebar-cta:hover,
.sidebar-cta:focus {
  background: var(--accent-dark);
}

.sidebar-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px 40px 60px;
}

.hero {
  display: flex;
  gap: 28px;
  background: var(--panel);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--outline);
}

.hero-media {
  flex: 1.1;
  min-height: 320px;
  background: var(--soft);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.hero-content h1 {
  font-size: 34px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--outline);
}

.section {
  display: flex;
  gap: 24px;
  background: var(--panel);
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--outline);
}

.section.reverse {
  flex-direction: row-reverse;
}

.section.alt {
  background: var(--soft);
}

.section .text {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section .media {
  flex: 0.9;
  background: var(--soft);
  border-radius: 16px;
  overflow: hidden;
}

.section .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.card {
  flex: 1 1 220px;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  font-weight: 600;
}

select,
input,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--outline);
  font-size: 15px;
  background: #fff;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-cta {
  font-weight: 600;
}

.split-band {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.split-band .panel {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

.sticky-cta:hover,
.sticky-cta:focus {
  background: var(--accent-dark);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--outline);
  padding-top: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.banner {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--soft);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--outline);
}

.banner img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--soft);
}

.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 16px;
  max-width: 320px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--outline);
  cursor: pointer;
  font-weight: 600;
}

.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
}

.cookie-reject {
  background: var(--soft);
  color: var(--ink);
}

.plain-page {
  max-width: 820px;
}

.plain-page h1 {
  margin-top: 0;
}

@media (max-width: 980px) {
  .page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .sidebar-cta {
    text-align: center;
  }

  .content {
    padding: 28px 22px 50px;
  }

  .hero,
  .section,
  .split-band {
    flex-direction: column;
  }

  .sticky-cta {
    right: 16px;
    bottom: 16px;
  }
}
