:root {
  --bg: #FAF3E0;
  --surface: #FFF7ED;
  --text: #3F2E1C;
  --muted: #7C6A58;
  --primary: #C2410C;
  --secondary: #CA8A04;
  --accent: #65A30D;
  --border: rgba(63, 46, 28, 0.12);
  --shadow-paper: 4px 4px 0 rgba(63, 46, 28, 0.18);
  --shadow-stack: 6px 6px 0 rgba(63, 46, 28, 0.12), 12px 12px 0 rgba(63, 46, 28, 0.06);
  --design-paper: paper;
  --design-shadows: shadows;
  --design-minimal: minimal;
  --design-analog: analog;
  --design-craft: craft;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-typewriter: "Courier New", Courier, monospace;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-serif);
  background: linear-gradient(165deg, var(--bg) 0%, #F5E6C8 45%, var(--surface) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(ellipse at 20% 30%, rgba(194, 65, 12, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(101, 163, 13, 0.05) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

.disclosure-banner {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
}

.error-main {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.error-code {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: var(--font-typewriter);
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.error-text {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 420px;
}

.error-home {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-paper);
}

.navbar-wrap {
  padding: 16px 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  height: 56px;
  background: #1a1208;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.navbar-logo img {
  display: block;
  width: 36px;
  height: 43px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-family: var(--font-typewriter);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.nav-links a:hover {
  opacity: 1;
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 8, 0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay a {
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  font-family: var(--font-typewriter);
  opacity: 0.85;
}

.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.site-footer {
  background: var(--surface);
  margin-top: auto;
  padding: 48px 24px 32px;
  box-shadow: var(--shadow-paper);
  position: relative;
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.4;
  border-radius: 2px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand img {
  width: 40px;
  height: 48px;
  object-fit: contain;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links-grid h4 {
  font-size: 0.75rem;
  font-family: var(--font-typewriter);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-links-grid ul {
  list-style: none;
}

.footer-links-grid li {
  margin-bottom: 6px;
}

.footer-links-grid a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  opacity: 0.85;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-badges a {
  display: block;
  transition: transform 0.2s;
}

.footer-badges a:hover {
  transform: translateY(-2px);
}

.footer-badges img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-company {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
}

.footer-disclosure {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-notice {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-updated {
  font-size: 0.75rem;
  font-family: var(--font-typewriter);
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

.age-overlay,
.cookie-banner {
  position: fixed;
  z-index: 1000;
}

.age-overlay {
  inset: 0;
  background: rgba(26, 18, 8, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.hidden {
  display: none;
}

.age-modal {
  background: var(--surface);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-stack);
  text-align: center;
  transform: rotate(-0.3deg);
}

.age-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.age-modal p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.age-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-buttons button {
  padding: 12px 28px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-paper);
  transition: transform 0.15s;
}

.age-buttons button:hover {
  transform: translateY(-1px);
}

.age-confirm {
  background: var(--primary);
  color: #fff;
}

.age-deny {
  background: var(--surface);
  color: var(--text);
}

.cookie-banner {
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1208;
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

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

.cookie-banner p {
  font-size: 0.85rem;
  max-width: 600px;
  line-height: 1.5;
  opacity: 0.9;
}

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

.cookie-actions button {
  padding: 10px 20px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  box-shadow: 2px 2px 0 rgba(255, 255, 255, 0.1);
}

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

.cookie-reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--text);
}

.legal-content ul {
  margin: 0 0 16px 24px;
}

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

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-paper);
  transform: rotate(0.2deg);
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
  font-family: var(--font-typewriter);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: none;
  background: var(--bg);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: inset 2px 2px 4px rgba(63, 46, 28, 0.08);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .form-error {
  color: var(--primary);
  font-size: 0.82rem;
  margin: -10px 0 12px;
  display: none;
}

.contact-form .form-error.visible {
  display: block;
}

.contact-form button[type="submit"] {
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-paper);
}

.form-success {
  padding: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-paper);
  text-align: center;
  margin-top: 32px;
}

.form-success h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .navbar-wrap {
    padding: 0;
  }

  .navbar {
    border-radius: 0;
    max-width: 100%;
  }

  .nav-links {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}
