:root {
  --cream: #edf7ef;
  --dark: #0f3327;
  --accent: #2f9e44;
  --warm: #65c18c;
  --text: #21362e;
  --light-gray: #d5e8dc;
  --leaf: #0f6b3f;
  --mint: #f7fbf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--mint);
  line-height: 1.7;
}

a { color: var(--leaf); font-weight: 700; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(237,247,239,0.96);
  border-bottom: 1px solid rgba(15,107,63,0.12);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  font-size: 24px;
  text-decoration: none;
}

.topnav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.topnav a {
  color: #48645a;
  text-decoration: none;
  font-size: 14px;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff !important;
}

.guide-hero {
  padding: 82px clamp(22px, 6vw, 96px) 72px;
  background:
    linear-gradient(90deg, rgba(15,51,39,0.94), rgba(15,51,39,0.76)),
    url('pac.png') center/cover;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid rgba(101,193,140,0.38);
  border-radius: 999px;
  color: var(--warm);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.guide-hero h1 {
  max-width: 920px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  margin-bottom: 24px;
}

.guide-hero p {
  max-width: 760px;
  color: rgba(255,255,255,0.76);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
}

.guide-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px;
}

.content-section {
  margin-bottom: 42px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--light-gray);
}

.content-section:last-child { border-bottom: 0; }

.content-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.content-section h3 {
  color: var(--dark);
  font-size: 21px;
  margin: 24px 0 8px;
}

.content-section p,
.content-section li {
  color: #4a6358;
  font-size: 16px;
}

.content-section ul,
.content-section ol {
  padding-left: 22px;
  margin: 14px 0;
}

.summary-grid,
.guide-cards,
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.info-card,
.guide-card,
.check-card {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 20px;
}

.info-card strong,
.guide-card strong,
.check-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
}

.guide-card {
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  border-color: rgba(47,158,68,0.48);
  box-shadow: 0 16px 38px rgba(15,51,39,0.08);
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  margin: 20px 0;
}

.responsive-table th,
.responsive-table td {
  text-align: left;
  vertical-align: top;
  padding: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.responsive-table th {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
}

.responsive-table td {
  color: #4a6358;
}

.note {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #fff;
  color: #3c574b;
  margin: 22px 0;
}

.guide-image {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--light-gray);
  box-shadow: 0 18px 42px rgba(15,51,39,0.08);
}

.guide-image img {
  width: 100%;
  display: block;
}

.guide-image.wide img {
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
}

.rge-visual {
  max-width: 240px;
  padding: 18px;
}

.rge-visual img {
  height: auto;
  object-fit: contain;
}

.install-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.install-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--light-gray);
  box-shadow: 0 16px 34px rgba(15,51,39,0.08);
  display: block;
}

.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar-box {
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
}

.sidebar-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.sidebar-box p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
}

.sidebar-links {
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 20px;
}

.sidebar-links strong {
  display: block;
  margin-bottom: 12px;
  color: var(--dark);
}

.sidebar-links a {
  display: block;
  padding: 9px 0;
  color: #48645a;
  text-decoration: none;
  border-bottom: 1px solid rgba(213,232,220,0.65);
}

.sources {
  font-size: 14px;
}

.sources li {
  margin-bottom: 8px;
}

.bottom-cta {
  padding: 70px 24px;
  text-align: center;
  background: var(--dark);
  color: #fff;
}

.bottom-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 14px;
}

.bottom-cta p {
  max-width: 700px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,0.72);
}

footer {
  background: #09271d;
  color: rgba(255,255,255,0.62);
  text-align: center;
  padding: 32px 20px;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.footer-logo-card {
  width: 168px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
}

.footer-logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

footer a {
  color: rgba(255,255,255,0.78);
  margin: 0 8px;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(247,251,248,0.98);
  border: 1px solid rgba(15,107,63,0.18);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15,51,39,0.22);
  color: var(--dark);
}

.cookie-banner p {
  margin: 0;
  color: #3c574b;
  font-size: 14px;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--leaf);
  font-weight: 700;
  text-decoration: none;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  min-width: 108px;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.cookie-decline {
  background: #e3efe8;
  color: var(--dark);
}

.cookie-accept {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 920px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .summary-grid,
  .guide-cards,
  .check-grid,
  .install-gallery {
    grid-template-columns: 1fr;
  }

  .responsive-table {
    display: block;
    overflow-x: auto;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    width: 100%;
  }
}
