:root {
  --dd-green: #5f8500;
  --dd-green-dark: #3f5c00;
  --dd-anthracite: #3f3f3f;
  --dd-text: #252525;
  --dd-muted: #6b6b6b;
  --dd-bg: #ffffff;
  --dd-soft: #f5f7f2;
  --dd-border: #e0e5dc;
  --dd-shadow: 0 20px 60px rgba(20, 30, 10, .12);
  --dd-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dd-text);
  background: var(--dd-bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dd-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  background: var(--dd-green);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; left: -9999px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--dd-border);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dd-anthracite);
}

.mainnav,
.mainnav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mainnav li { list-style: none; }
.mainnav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--dd-anthracite);
  font-weight: 700;
}
.mainnav a:hover,
.mainnav .current > a,
.mainnav .active > a {
  background: var(--dd-soft);
  color: var(--dd-green-dark);
  text-decoration: none;
}
.header-right { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--dd-border);
  border-radius: 12px;
  background: #fff;
  padding: 9px;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--dd-anthracite);
}

.breadcrumbs-wrap {
  border-bottom: 1px solid var(--dd-border);
  background: var(--dd-soft);
  padding: 12px 0;
}

.module-section { padding: 56px 0; }
.module-section.muted,
.muted { background: var(--dd-soft); }
.main { padding: 56px 0; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.content-grid.has-left { grid-template-columns: 280px 1fr; }
.content-grid.has-right { grid-template-columns: 1fr 280px; }
.content-grid.has-left.has-right { grid-template-columns: 240px 1fr 240px; }

.main-component,
.sidebar,
.content-top,
.content-bottom {
  min-width: 0;
}
.sidebar {
  background: var(--dd-soft);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  padding: 22px;
}
.content-top { margin-bottom: 28px; }
.content-bottom { margin-top: 28px; }

.btn,
button,
input[type="submit"] {
  font: inherit;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.btn.primary {
  background: var(--dd-green);
  color: #fff;
}
.btn.primary:hover {
  background: var(--dd-green-dark);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--dd-border);
  background: var(--dd-anthracite);
  color: #fff;
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; }

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
}
.cookie-banner p { margin: 6px 0 0; color: var(--dd-muted); }
.cookie-banner button {
  border: 0;
  border-radius: 999px;
  background: var(--dd-green);
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-banner button:hover { background: var(--dd-green-dark); }

.error-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
  background: var(--dd-soft);
}
.error-box {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  padding: 42px;
  box-shadow: var(--dd-shadow);
}
.error-logo { width: 250px; margin-bottom: 26px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--dd-green-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}

@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .nav-toggle { display: inline-block; }
  .mainnav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--dd-border);
  }
  .mainnav.open { display: flex; }
  .mainnav ul { flex-direction: column; align-items: stretch; width: 100%; }
  .mainnav a { width: 100%; justify-content: center; }
  .header-right { display: none; }
  .content-grid,
  .content-grid.has-left,
  .content-grid.has-right,
  .content-grid.has-left.has-right { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1160px); }
  .brand img { max-width: 220px; }
  .module-section,
  .main { padding: 40px 0; }
  .error-box { padding: 28px; }
}
