:root {
  color-scheme: light;
  --bg: #f5f2ed;
  --ink: #1b1b1b;
  --muted: #5b5b5b;
  --dark: #0f1a1d;
  --accent: #2f5d62;
  --accent-2: #b86f52;
  --surface: #ffffff;
  --soft: #e8e2d9;
  --line: #d3ccc2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--dark);
  color: #f6f2ec;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ad-label {
  font-size: 0.85rem;
  color: #f6d7c8;
  line-height: 1.4;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav a:hover,
.nav a:focus {
  background: rgba(255, 255, 255, 0.18);
}

.sidebar-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-header {
  padding: 32px 40px 16px;
}

.page-header h1 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.15;
}

.page-header p {
  margin: 12px 0 0;
  max-width: 620px;
  color: var(--muted);
}

.section {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.layered::before {
  content: "";
  position: absolute;
  inset: 14px 20px auto 20px;
  height: 100%;
  background: var(--soft);
  z-index: 0;
  border-radius: 24px;
}

.section.layered > * {
  position: relative;
  z-index: 1;
}

.split {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
}

.split.reverse {
  flex-direction: row-reverse;
}

.split > div {
  flex: 1 1 320px;
}

.hero {
  background-image: url("https://images.unsplash.com/photo-1489515217757-5fd1be406fef?w=1400&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 70px 40px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 29, 0.65);
}

.hero-content {
  position: relative;
  max-width: 640px;
  z-index: 1;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: 2.8rem;
}

.hero-content p {
  margin: 0 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.btn.alt {
  background: var(--accent-2);
}

.btn.light {
  background: #ffffff;
  color: var(--dark);
}

.btn:hover,
.btn:focus {
  opacity: 0.9;
}

.image-frame {
  background: #d9d3ca;
  border-radius: 18px;
  overflow: hidden;
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 240px;
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price {
  font-weight: 700;
  color: var(--accent-2);
}

.highlight {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.9rem;
}

.form-block {
  background: var(--surface);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-block label {
  font-weight: 600;
}

.form-block input,
.form-block select,
.form-block textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
}

.form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-row > div {
  flex: 1 1 220px;
}

.sticky-cta {
  position: sticky;
  top: 18px;
  align-self: flex-start;
  background: var(--dark);
  color: #fff;
  padding: 18px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer {
  padding: 32px 40px 48px;
  background: var(--dark);
  color: #f3efe8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer a {
  color: #f3efe8;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  max-width: 360px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 5;
}

.cookie-banner.show {
  display: flex;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.page-hero {
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 60px 40px;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 29, 0.6);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.soft-panel {
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
}

.soft-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 93, 98, 0.7);
}

.soft-panel > * {
  position: relative;
  z-index: 1;
}

.about-hero {
  background-image: url("https://images.unsplash.com/photo-1455587734955-081b22074882?w=1400&q=80");
}

.services-hero {
  background-image: url("https://images.unsplash.com/photo-1501594907352-04cda38ebc29?w=1400&q=80");
}

.contact-hero {
  background-image: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1400&q=80");
}

.soft-panel {
  background-image: url("https://images.unsplash.com/photo-1479839672679-a46483c0e7c8?w=1400&q=80");
}

@media (max-width: 980px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-header,
  .section,
  .footer,
  .hero,
  .page-hero {
    padding: 28px 24px;
  }

  .hero-content h1,
  .page-header h1 {
    font-size: 2.1rem;
  }
}
