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

:root {
  --bg: #0D0A00;
  --surface: #1A1500;
  --text: #FFCC00;
  --muted: #B38F00;
  --primary: #FFB300;
  --secondary: #332600;
  --accent: #FFD966;
  --border: rgba(255,204,0,0.2);
  --max-w: 1200px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 179, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 217, 102, 0.1), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, #140f00 40%, var(--surface) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

main {
  flex: 1 0 auto;
  width: 100%;
}

body.age-locked,
body.nav-open {
  overflow: hidden;
}

.ai {
  text-shadow: 0 0 12px rgba(255, 217, 102, 0.45);
}

.future {
  letter-spacing: 0.04em;
}

.assistant {
  border: 1px solid var(--border);
  background: rgba(26, 21, 0, 0.72);
  box-shadow: 0 0 24px rgba(255, 179, 0, 0.12);
}

.smart {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.adaptive {
  backdrop-filter: blur(12px);
}

.disclosure-banner {
  width: 100%;
  background: #FFF8E1;
  border-top: 3px solid var(--primary);
  border-bottom: none;
  padding: 10px 16px;
  text-align: center;
  z-index: 30;
}

.disclosure-banner p {
  margin: 0 auto;
  max-width: var(--max-w);
  font-size: 12px;
  font-weight: 500;
  color: #332600;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-lockup img {
  display: block;
  width: 36px;
  height: 35px;
  object-fit: contain;
}

.brand-lockup span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 217, 102, 0.35);
  animation: ai-shimmer 4s ease infinite, future-drift 6s ease infinite;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

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

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1101;
  background: rgba(15, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px transparent;
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.floating-panel {
  background: rgba(26, 21, 0, 0.78);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(255, 179, 0, 0.08);
  padding: 24px;
}

.chat-bubble {
  background: rgba(51, 38, 0, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  animation: smart-fade 0.8s ease both;
}

@keyframes smart-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes adaptive-glow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 217, 102, 0.35);
  }
}

@keyframes assistant-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.015);
  }
}

@keyframes ai-shimmer {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes future-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

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

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

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 360px;
}

.footer-links h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 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 {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.footer-se-disclosure {
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.footer-se-disclosure p {
  margin-bottom: 10px;
}

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

.footer-bottom {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.85;
}

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

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 16px;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255, 217, 102, 0.25);
}

.legal-page h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--primary);
}

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

.legal-page ul {
  padding-left: 1.25rem;
  margin-bottom: 12px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

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

.contact-form input,
.contact-form textarea {
  background: rgba(13, 10, 0, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

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

.contact-form button {
  align-self: flex-start;
  background: var(--primary);
  color: #1A1500;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 16px rgba(255, 179, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(255, 217, 102, 0.4);
}

.form-error {
  display: none;
  color: #FF6B6B;
  font-size: 0.8125rem;
}

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

.form-success {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(51, 38, 0, 0.5);
  color: var(--text);
}

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

.age-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(8, 6, 0, 0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-overlay.active {
  display: flex;
}

.age-dialog {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 0 40px rgba(255, 179, 0, 0.2);
  animation: assistant-pulse 3s ease infinite;
}

.age-dialog h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.age-dialog p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

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

.btn-confirm,
.btn-decline,
.btn-cookie {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-confirm {
  background: var(--primary);
  color: #1A1500;
  box-shadow: 0 0 14px rgba(255, 179, 0, 0.35);
}

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

.age-blocked {
  display: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.age-blocked.visible {
  display: block;
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 4000;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(26, 21, 0, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 179, 0, 0.12);
  display: none;
}

.cookie-banner.active {
  display: block;
  animation: smart-fade 0.45s ease both;
}

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.accept {
  background: var(--primary);
  color: #1A1500;
}

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

.go-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 14px;
}

.go-page #AD {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.go-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 204, 0, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.go-page h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}

.go-page p {
  color: var(--muted);
  max-width: 420px;
}

.go-notes {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.go-notes a {
  color: var(--accent);
}

.error-page {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
  gap: 12px;
}

.error-page h1 {
  font-size: 2rem;
  color: var(--accent);
}

.error-page a {
  color: var(--primary);
  margin-top: 12px;
}

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

.deco-wrap img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

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

  .burger {
    display: flex;
  }

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

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

  .deco-wrap img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    object-position: center;
  }

  .info-section,
  .offers-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .info-inner,
  .floating-panel {
    max-width: 100%;
    overflow: hidden;
  }
}
