:root {
  --bg: #09090B;
  --surface: #18181B;
  --text: #FAFAFA;
  --muted: #71717A;
  --primary: #22C55E;
  --secondary: #27272A;
  --accent: #4ADE80;
  --border: rgba(34,197,94,0.3);
  --government: 1;
  --public-service: 1;
  --official: 1;
  --accessible: 1;
  --ui-style: government public service official accessible;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, rgba(34, 197, 94, 0.08) 0%, transparent 42%),
    radial-gradient(ellipse at 80% 10%, rgba(74, 222, 128, 0.06) 0%, transparent 55%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(250, 250, 250, 0.015) 3px,
    rgba(250, 250, 250, 0.015) 4px
  );
  pointer-events: none;
  z-index: 0;
}

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

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--primary);
  text-underline-offset: 2px;
}

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

.disclosure-banner {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
  color: var(--muted);
  background: var(--text);
}

.disclosure-banner .disclosure-label {
  background: var(--accent);
  color: var(--bg);
  padding: 1px 6px;
  font-weight: 700;
  margin-right: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(255, 255, 255, 0.02) 1px,
    rgba(255, 255, 255, 0.02) 2px
  );
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

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

.burger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  width: 40px;
  height: 36px;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 32px;
  gap: 18px;
}

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

.mobile-nav a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
}

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  width: 40px;
  height: 36px;
  cursor: pointer;
  font-size: 20px;
}

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

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

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.footer-logo img {
  height: 36px;
  margin-bottom: 12px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-badges a,
.footer-badges span {
  display: inline-block;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  padding: 24px 0;
}

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

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

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

.footer-disclosure {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 920px;
}

.age-gate,
.cookie-banner {
  display: none;
  position: fixed;
  z-index: 300;
}

.age-gate.active,
.cookie-banner.active {
  display: flex;
  animation: fade-in 0.28s ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.age-gate {
  inset: 0;
  background: rgba(9, 9, 11, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}

.age-gate-box h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.age-gate-box p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.age-actions,
.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  font-weight: 600;
}

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

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
}

.cookie-banner {
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.page-hero {
  padding: 48px 24px 32px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, transparent 100%),
    var(--bg);
}

.page-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

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

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.legal-content h1 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}

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

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

.legal-content p,
.legal-content li {
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 15px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

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

.contact-form {
  margin-top: 28px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-size: 14px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  border-radius: 4px;
}

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

.form-error {
  display: none;
  color: #f87171;
  font-size: 13px;
}

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

.form-success {
  display: none;
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 6px;
  color: var(--accent);
  margin-top: 20px;
}

.form-success.visible {
  display: block;
}

.decorative-img {
  max-width: 500px;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.decorative-wrap {
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

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

  .burger-btn {
    display: block;
  }
}

@media (max-width: 375px) {
  .decorative-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .decorative-img {
    max-width: 100%;
    width: 100%;
    max-height: 180px;
  }

  .footer-badges img {
    max-width: 100%;
    height: auto;
  }
}

@media print {
  .site-header,
  .burger-btn,
  .mobile-nav,
  .age-gate,
  .cookie-banner,
  .disclosure-banner {
    position: static;
  }

  body {
    background: #fff;
    color: #000;
  }

  .site-footer {
    border-top: 1px solid #000;
  }
}
