:root {
  --bg: #0D0208;
  --surface: #210B16;
  --text: #FAE6FA;
  --muted: #D482A3;
  --primary: #FF3864;
  --secondary: #FFB8DE;
  --accent: #2DE2E2;
  --border: rgba(255, 56, 100, 0.2);
  --tactical-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", monospace;
  --tactical-condensed: "Arial Narrow", "Helvetica Neue Condensed", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--tactical-condensed);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image:
    linear-gradient(135deg, rgba(45, 226, 226, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(255, 56, 100, 0.08), transparent 55%),
    linear-gradient(180deg, #0D0208 0%, #150610 50%, #0D0208 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(45, 226, 226, 0.03) 39px,
      rgba(45, 226, 226, 0.03) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255, 56, 100, 0.025) 39px,
      rgba(255, 56, 100, 0.025) 40px
    );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(13, 40, 24, 0.35) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

main,
.legal-page,
.page-404,
.rtp-wrap {
  flex: 1 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--tactical-condensed);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.disclosure-bar {
  width: 100%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.45;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  height: 44px;
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 32px;
  gap: 16px;
}

.navbar__logo img {
  max-height: 20px;
  width: auto;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar__links::-webkit-scrollbar {
  display: none;
}

.navbar__link {
  position: relative;
  font-size: 12px;
  font-family: var(--tactical-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  padding-bottom: 6px;
}

.navbar__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.2s ease;
}

.navbar__link:hover {
  color: var(--secondary);
}

.navbar__link:hover::after {
  transform: translateX(-50%) scale(1);
}

.navbar__burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.navbar__sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 2, 8, 0.75);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar__sheet-overlay.is-visible {
  display: block;
  opacity: 1;
}

.navbar__sheet {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  padding: 24px 32px 40px;
  z-index: 301;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  max-height: 70vh;
  overflow-y: auto;
}

.navbar__sheet.is-open {
  transform: translateY(0);
}

.navbar__sheet-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.navbar__sheet-link {
  display: block;
  font-family: var(--tactical-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.navbar__sheet-link:hover {
  color: var(--accent);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
  margin-top: auto;
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 56, 100, 0.06), transparent);
  pointer-events: none;
}

.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 {
  max-height: 24px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
}

.footer-nav a {
  font-size: 12px;
  font-family: var(--tactical-mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badges img {
  height: 44px;
  width: auto;
}

.footer-requisites {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 11px;
  font-family: var(--tactical-mono);
  color: rgba(212, 130, 163, 0.6);
  letter-spacing: 0.06em;
}

.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(13, 2, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.is-hidden {
  display: none;
}

.age-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.age-modal__label {
  font-family: var(--tactical-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.age-modal h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.age-modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.age-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--tactical-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #e62e56;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
  max-width: 640px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legal-page {
  padding: 48px 32px 64px;
}

.legal-page__inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(24px, 4vw, 32px);
  margin-bottom: 24px;
  color: var(--text);
}

.legal-page h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--secondary);
}

.legal-page h3 {
  font-size: 15px;
  margin: 20px 0 8px;
  color: var(--accent);
}

.legal-page p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
}

.legal-page ul {
  margin: 0 0 16px 20px;
  color: var(--muted);
}

.legal-page li {
  margin-bottom: 8px;
  font-size: 15px;
}

.contact-form {
  margin-top: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-form label {
  display: block;
  font-family: var(--tactical-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  display: none;
  font-size: 13px;
  color: var(--primary);
  margin: -10px 0 12px;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(45, 226, 226, 0.08);
  border: 1px solid rgba(45, 226, 226, 0.25);
  color: var(--text);
  font-size: 15px;
}

.form-success.is-visible {
  display: block;
}

.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
}

.page-404 h1 {
  font-size: clamp(48px, 10vw, 96px);
  color: var(--primary);
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 16px;
}

@media (max-width: 900px) {
  .navbar__links {
    display: none;
  }

  .navbar__burger {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar__sheet {
    display: block;
  }
}

@media (max-width: 600px) {
  .navbar__inner {
    padding: 0 16px;
  }

  .site-footer {
    padding: 32px 16px 24px;
  }

  .legal-page {
    padding: 32px 16px 48px;
  }

  .cookie-banner {
    padding: 16px;
  }
}
