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

:root {
  --bg: #020403;
  --surface: #04100A;
  --text: #D1FAE5;
  --muted: #6EE7B7;
  --primary: #22C55E;
  --secondary: #16A34A;
  --accent: #A7F3D0;
  --border: rgba(209, 250, 229, 0.14);
  --nav-left-bg: #061912;
  --nav-right-bg: #020806;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.disclosure {
  max-width: fit-content;
  margin: 8px auto;
  padding: 5px 18px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(167, 243, 208, 0.15);
  border: 1px solid rgba(167, 243, 208, 0.3);
  border-radius: 4px;
  text-align: center;
  line-height: 1.5;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  height: 60px;
  width: 100%;
}

.navbar-half {
  flex: 1;
  display: flex;
  align-items: center;
}

.navbar-left {
  background: var(--nav-left-bg);
  justify-content: flex-start;
}

.navbar-right {
  background: var(--nav-right-bg);
  justify-content: flex-end;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar-left .navbar-inner {
  justify-content: flex-start;
}

.navbar-right .navbar-inner {
  justify-content: flex-end;
  gap: 8px;
}

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

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

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

.nav-links a {
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.burger-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  padding: 4px;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-drawer {
  display: contents;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

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

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

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

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

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

.footer-badge img {
  height: 40px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-badge:hover img {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.cookie-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

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

.cookie-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-btn-accept {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.cookie-btn-accept:hover {
  background: var(--secondary);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text);
}

.cookie-btn-reject:hover {
  background: rgba(209, 250, 229, 0.06);
}

.cookie-check:checked ~ .cookie-banner {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.legal-page main {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--text);
}

.legal-page h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--accent);
}

.legal-page h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 24px 0 8px;
}

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

.legal-page ul {
  margin: 0 0 16px 24px;
  color: var(--muted);
  font-size: 15px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page strong {
  color: var(--text);
  font-weight: 500;
}

.contact-page main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.contact-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.contact-intro {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.contact-email-line {
  margin-bottom: 32px;
  font-size: 15px;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
}

.contact-form label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-form .field {
  margin-bottom: 24px;
}

.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

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

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

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

.contact-submit {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.contact-submit:hover {
  background: var(--secondary);
}

.contact-success {
  display: none;
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 40px 32px;
  text-align: center;
}

.contact-success h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--primary);
}

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

body:has(#contact-success:target) .contact-form-wrap {
  display: none;
}

#contact-success:target {
  display: block;
}

.page-404 main {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.page-404 h1 {
  font-family: var(--serif);
  font-size: 6rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

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

.btn-home {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-home:hover {
  background: var(--primary);
  color: var(--bg);
}

@media (max-width: 900px) {
  .navbar-left,
  .navbar-right {
    background: var(--nav-right-bg);
  }

  .navbar-right {
    border-left: none;
  }

  .navbar {
    flex-direction: column;
    height: auto;
  }

  .navbar-half {
    width: 100%;
  }

  .navbar-left {
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-right {
    position: relative;
  }

  .navbar-right .navbar-inner {
    justify-content: flex-end;
    height: 0;
    overflow: visible;
    padding: 0 24px;
  }

  .burger-label {
    display: flex;
    position: absolute;
    right: 24px;
    top: -44px;
    z-index: 110;
  }

  .nav-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--nav-right-bg);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 105;
    padding-top: 80px;
  }

  .nav-toggle:checked ~ .navbar .nav-drawer {
    transform: translateX(0);
  }

  .nav-toggle:checked ~ .navbar .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .navbar .burger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .navbar .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    width: 100%;
  }

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

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