:root {
  --bg: #2E1065;
  --surface: #4C1D95;
  --text: #F5F3FF;
  --muted: #C4B5FD;
  --primary: #F472B6;
  --secondary: #5B21B6;
  --accent: #EC4899;
  --border: rgba(255, 255, 255, 0.12);
  --space-depth: deep-abyss;
  --nasa-precision: vector-lines;
  --telemetry-active: mission-control;
  --mission-control: scientific-panel;
  --scientific-data: mono-readout;
}

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

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(91, 33, 182, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #1a0533 0%, var(--bg) 40%, #1e0a42 100%);
  position: relative;
}

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

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary), transparent);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1001;
}

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

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

.disclosure-banner {
  width: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #3b0764 100%);
  color: var(--text);
  font-size: 11px;
  text-align: center;
  padding: 10px 16px;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  position: relative;
  z-index: 10;
  line-height: 1.5;
  font-family: "Consolas", "Courier New", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(30, 10, 66, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

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

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

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

.nav-links a {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Arial Narrow", "Segoe UI", sans-serif;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.burger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 4px;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: rgba(30, 10, 66, 0.98);
  z-index: 2000;
  padding: 80px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-right: 1px solid var(--border);
}

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

.mobile-drawer ul {
  list-style: none;
}

.mobile-drawer li {
  margin-bottom: 4px;
}

.mobile-drawer a {
  display: block;
  color: var(--text);
  padding: 12px 16px;
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-drawer a:hover,
.mobile-drawer a:focus {
  border-left-color: var(--accent);
  background: rgba(236, 72, 153, 0.08);
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1999;
}

.drawer-overlay.open {
  display: block;
}

.site-footer {
  background: rgba(20, 5, 45, 0.95);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  position: relative;
  z-index: 1;
  margin-top: auto;
  flex-shrink: 0;
}

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

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

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

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

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

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

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

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

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

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

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

.footer-disclosure {
  font-size: 11px;
  color: rgba(196, 181, 253, 0.7);
  line-height: 1.6;
  max-width: 900px;
}

.footer-copy {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

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

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

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 40px rgba(236, 72, 153, 0.15);
}

.modal-box h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-family: "Arial Narrow", sans-serif;
}

.modal-box p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

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

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 10, 66, 0.98);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 2500;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

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

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

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

main,
.page-content {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

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

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  font-family: "Arial Narrow", sans-serif;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--primary);
}

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

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

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

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

.contact-form {
  margin-top: 32px;
  padding: 28px;
  background: rgba(76, 29, 149, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: rgba(46, 16, 101, 0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

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

.contact-form .error-msg {
  color: #f87171;
  font-size: 13px;
  margin-top: -12px;
  margin-bottom: 12px;
  display: none;
}

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

.form-success {
  padding: 32px;
  text-align: center;
  background: rgba(76, 29, 149, 0.4);
  border: 1px solid var(--accent);
  border-radius: 8px;
  margin-top: 32px;
}

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

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

  .burger-btn {
    display: block;
  }

  .mobile-drawer {
    display: block;
  }
}
