:root {
  --bg: #0D110E;
  --surface: #141B15;
  --text: #E6F0E9;
  --muted: #7A9482;
  --primary: #A3B18A;
  --secondary: #588157;
  --accent: #3A5A40;
  --border: rgba(163, 177, 138, 0.15);
  --warn: #C9A227;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --nav-h: 90px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

img:not(.offer-card__logo) {
  max-width: 100%;
  display: block;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.disclosure-bar {
  display: flex;
  width: 100%;
  align-items: stretch;
  min-height: 36px;
}

.disclosure-bar__icon {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warn);
  color: #1a1400;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.disclosure-bar__text {
  flex: 1;
  background: #E8EDE9;
  color: #2a332c;
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 14px;
  text-align: left;
}

.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.site-header {
  position: static;
  background: var(--bg);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
}

.header-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.burger-label {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  background: linear-gradient(180deg, #1a221c 0%, #111612 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.burger-label span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  padding-top: 10px;
}

.nav-desktop a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(165deg, #141B15 0%, #0D110E 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer a {
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.nav-check:checked ~ .nav-drawer {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.nav-check:checked ~ .drawer-overlay {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.nav-check:checked ~ .site-header .burger-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-check:checked ~ .site-header .burger-label span:nth-child(2) {
  opacity: 0;
}

.nav-check:checked ~ .site-header .burger-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  background: linear-gradient(180deg, #111812 0%, #0a0d0b 100%);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: auto;
  box-shadow: inset 0 1px 0 rgba(163, 177, 138, 0.08);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 24px;
  opacity: 0.9;
}

.footer-logo img {
  height: 32px;
  width: auto;
  margin: 0 auto;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 28px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.footer-legal a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-badges a:hover {
  opacity: 1;
}

.footer-badges img {
  height: 40px;
  width: auto;
}

.footer-au-disclosure {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 16px;
  text-align: center;
}

.footer-copy {
  font-size: 11px;
  color: rgba(122, 148, 130, 0.6);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: linear-gradient(180deg, #1a221c 0%, #141B15 100%);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  max-width: 560px;
}

.cookie-banner a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-accept {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(180deg, #6b9a68 0%, #588157 50%, #466846 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 3px 0 #2d442c, 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-accept:hover {
  color: #fff;
  transform: translateY(1px);
  box-shadow: 0 2px 0 #2d442c, 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cookie-banner:target {
  display: none;
}

.legal-page {
  padding: 48px 0 64px;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  background: linear-gradient(165deg, #171f18 0%, #141B15 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.legal-content h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--primary);
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.legal-content ul {
  margin: 0 0 14px 20px;
  color: var(--muted);
  font-size: 14px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.legal-content strong {
  color: var(--text);
}

.contact-form-wrap {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.contact-form-wrap h2 {
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: linear-gradient(180deg, #0a0d0b 0%, #111612 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-error {
  display: none;
  font-size: 12px;
  color: #d4a574;
  margin-top: 6px;
}

.form-field input[type="email"]:invalid:not(:placeholder-shown) + .field-error {
  display: block;
}

.contact-submit {
  display: inline-block;
  align-self: flex-start;
  padding: 12px 28px;
  background: linear-gradient(180deg, #b5c4a0 0%, #A3B18A 50%, #8a9a72 100%);
  color: #1a221c;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  box-shadow: 0 3px 0 #5a6b4e, 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease;
}

.contact-submit:hover {
  transform: translateY(1px);
}

.contact-form:invalid .contact-submit {
  pointer-events: none;
  opacity: 0.4;
  cursor: not-allowed;
}

#message-sent:target .contact-form {
  display: none;
}

.contact-success {
  display: none;
  padding: 24px;
  background: linear-gradient(135deg, rgba(88, 129, 87, 0.2) 0%, rgba(58, 90, 64, 0.15) 100%);
  border: 1px solid var(--secondary);
  border-radius: 10px;
  margin-top: 16px;
}

.contact-success p {
  color: var(--text);
  font-size: 15px;
  margin: 0;
}

#message-sent:target .contact-success {
  display: block;
}

.error-page {
  padding: 80px 24px;
  text-align: center;
}

.error-page h1 {
  font-size: 72px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.error-page p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 16px;
}

.error-home {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(180deg, #6b9a68 0%, #588157 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 3px 0 #2d442c, inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.error-home:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .burger-label {
    display: flex;
  }

  .header-logo-row {
    border-bottom: none;
    padding-bottom: 0;
  }

  .legal-content {
    padding: 28px 20px;
  }
}

.subpage-header .header-logo-row {
  border-bottom: none;
  padding-bottom: 0;
}
