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

:root {
  --bg: #212121;
  --surface: #2D2D2D;
  --text: #F5F5F5;
  --muted: #9E9E9E;
  --primary: #BDBDBD;
  --secondary: #616161;
  --accent: #80CBC4;
  --border: rgba(255, 255, 255, 0.05);
  --surface-dark: #1A1A1A;
  --surface-light: #383838;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-w: 1200px;
  --hero-light: #FAFAFA;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(128, 203, 196, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-dark) 0%, var(--bg) 40%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 48px,
    rgba(255, 255, 255, 0.012) 48px,
    rgba(255, 255, 255, 0.012) 49px
  );
  pointer-events: none;
  z-index: 0;
}

main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.disclosure-wrap {
  max-width: 1100px;
  margin: 8px auto;
  padding: 0 16px;
  position: relative;
  z-index: 10;
}

.disclosure-banner {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: var(--text);
  background: rgba(189, 189, 189, 0.05);
  border: 1px solid rgba(189, 189, 189, 0.1);
  border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--surface-dark) 0%, var(--surface-light) 100%);
  height: 60px;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

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

.nav-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-desktop a {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease, left 0.25s ease;
}

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

.nav-desktop a:hover::after {
  width: 100%;
  left: 0;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

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

.drawer-overlay.open {
  opacity: 1;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-light) 100%);
  z-index: 200;
  padding: 72px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer a {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer a::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease, left 0.25s ease;
}

.mobile-drawer a:hover::after {
  width: 100%;
  left: 0;
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
}

body.drawer-open {
  overflow: hidden;
}

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

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

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

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

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

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

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

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
}

.modal-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  padding: 14px 20px;
  background: var(--accent);
  color: var(--surface-dark);
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary:hover {
  background: #9DD4CE;
}

.btn-secondary {
  padding: 14px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 900;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 14px;
  color: var(--muted);
  min-width: 240px;
}

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

.page-hero {
  padding: 48px 24px 32px;
  background: var(--surface);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 640px;
}

.legal-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

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

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

.legal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 16px 0 8px;
}

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

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info h2 {
  margin-top: 24px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
}

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

.form-error {
  display: block;
  color: #EF5350;
  font-size: 13px;
  margin-top: 6px;
}

.form-error.hidden {
  display: none;
}

.form-success {
  display: none;
  background: rgba(128, 203, 196, 0.1);
  border: 1px solid var(--accent);
  padding: 28px;
  border-radius: 12px;
}

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

.redirect-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.redirect-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  max-width: 480px;
  text-align: center;
  border-radius: 12px;
}

.redirect-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 16px 0;
}

.redirect-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.ad-flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: var(--accent);
  color: var(--surface-dark);
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--secondary);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.redirect-meta {
  font-size: 12px !important;
}

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

.error-box h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.error-box p {
  color: var(--muted);
  margin: 16px 0 24px;
  font-size: 1.1rem;
}

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

  .burger-btn {
    display: flex;
  }

  .drawer-overlay,
  .mobile-drawer {
    display: block;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .reg-img-wrap,
  .foot-rail-img,
  .foot-mosaic-item,
  .anj-visual-bg,
  .live-page-hero {
    max-width: 100%;
    overflow: hidden;
  }

  .reg-img-wrap img,
  .foot-rail-img img,
  .foot-mosaic-item img {
    max-width: 100%;
    max-height: 240px;
  }

  .anj-visual-bg {
    max-height: 240px;
  }

  .live-page-hero {
    min-height: 200px;
    background-size: cover;
    background-position: center;
  }
}
