* {
  box-sizing: border-box;
}

:root {
  --bg: #0f1418;
  --panel: #171d22;
  --panel-light: #1f262d;
  --accent: #f2b94b;
  --accent-dark: #d39a2e;
  --text: #f5f7fa;
  --muted: #b7c0c8;
  --line: #2a333b;
  --fallback: #222a31;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Tahoma", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--text);
  text-decoration: none;
}

img.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--panel);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ad-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--panel-light);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  background: var(--accent);
  color: #111417;
}

.sidebar-cta {
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #11161a;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-cta p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #121417;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.secondary:hover,
.btn.secondary:focus {
  background: #0f151b;
}

.main {
  flex: 1;
  padding: 28px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  min-height: 320px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  background-color: var(--fallback);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 20, 24, 0.9), rgba(15, 20, 24, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.section {
  background: var(--panel);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--line);
}

.section.alt {
  background: #11161a;
}

.split {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.split.reverse {
  flex-direction: row-reverse;
}

.split .text,
.split .media-frame {
  flex: 1;
}

.media-frame {
  background: var(--fallback);
  border-radius: 18px;
  overflow: hidden;
  min-height: 220px;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.card {
  flex: 1 1 220px;
  background: var(--panel-light);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
}

.card img {
  width: 100%;
  height: 160px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.pill {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0b1014;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--line);
}

.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0f151b;
  color: var(--text);
  flex: 1 1 220px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

.form-message {
  margin: 0;
  font-size: 13px;
  color: var(--accent);
}

.sticky-cta {
  position: sticky;
  bottom: 12px;
  background: var(--panel-light);
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
}

.footer {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-banner {
  position: fixed;
  bottom: 18px;
  right: 18px;
  max-width: 320px;
  background: #0f151b;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
}

.cookie-banner.show {
  display: flex;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .btn {
  flex: 1;
  padding: 8px 10px;
}

.small-hero {
  min-height: 200px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.hero-index {
  background-image: url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1400&q=80");
}

.section-bg-oil {
  background-image: url("https://images.unsplash.com/photo-1517520287167-4bbf64a00d66?w=1400&q=80");
  background-size: cover;
  background-position: center;
  background-color: #10161b;
  background-blend-mode: multiply;
}

@media (max-width: 980px) {
  .page {
    flex-direction: column;
  }

  .sidebar {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .split,
  .split.reverse {
    flex-direction: column;
  }

  .sticky-cta {
    position: static;
  }
}
