:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --primary: #2563EB;
  --secondary: #16A34A;
  --accent: #F97316;
  --border: rgba(15,23,42,0.12);
  --max: 1200px;
  --font-pixel: "Courier New", Courier, "Lucida Console", Monaco, monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arcade: arcade;
  --neon: neon;
  --kw-80s: 80s;
  --gaming: gaming;
  --vibrant: vibrant;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 8%, rgba(249, 115, 22, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, #e8eef7 42%, var(--bg) 100%);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: var(--arcade) " " var(--neon) " " var(--kw-80s) " " var(--gaming) " " var(--vibrant);
  position: fixed;
  inset: 0;
  font-size: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(15, 23, 42, 0.035) 39px,
      rgba(15, 23, 42, 0.035) 40px
    );
}

body::after {
  content: "";
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -18%;
  height: 42%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.09;
  background-image: repeating-conic-gradient(
    var(--text) 0% 25%,
    var(--surface) 0% 50%
  );
  background-size: 36px 36px;
  transform: perspective(240px) rotateX(56deg);
  transform-origin: center bottom;
}

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

main {
  flex: 1 0 auto;
}

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

#offers .logo-placeholder img,
#offers .offer-logo {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

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

h1,
h2,
h3 {
  font-family: var(--font-pixel);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 rgba(37, 99, 235, 0.18);
}

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

.disclosure-banner p {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 4px;
}

.disclosure-wave {
  display: block;
  width: 100%;
  height: 14px;
  position: absolute;
  left: 0;
  bottom: -1px;
}

.disclosure-wave path {
  fill: var(--text);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
}

.nav-marquee {
  height: 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(248, 250, 252, 0.12);
}

.nav-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 32s linear infinite;
}

.nav-marquee-text {
  font-size: 10px;
  line-height: 20px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 1.5rem;
}

@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.nav-main {
  height: 56px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  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(--bg);
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-pixel);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px 6px;
  justify-content: flex-end;
  align-items: center;
}

.nav-links a {
  color: var(--bg);
  text-decoration: none;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(248, 250, 252, 0.35);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  box-shadow: 3px 3px 0 rgba(37, 99, 235, 0.7);
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--bg);
}

.nav-overlay {
  display: none;
}

.nav-overlay.is-open {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  z-index: 400;
  background: var(--text);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 72px 24px 24px;
  box-shadow: -8px 0 0 var(--primary);
}

.nav-overlay-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 1px solid rgba(248, 250, 252, 0.25);
  color: var(--bg);
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  line-height: 1;
}

.nav-overlay a {
  color: var(--bg);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 4px;
}

.nav-overlay a:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.nav-open {
  overflow: hidden;
}

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

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}

.site-footer {
  background: var(--text);
  color: rgba(248, 250, 252, 0.78);
  padding: 40px 24px 28px;
  margin-top: auto;
  border-top: 4px solid var(--primary);
  box-shadow: 0 -8px 0 rgba(249, 115, 22, 0.35);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bg);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  font-style: italic;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}

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

.footer-badges img {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-note,
.footer-risk {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.72);
  margin-bottom: 12px;
  max-width: 76ch;
}

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

.footer-updated {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.62);
  margin-bottom: 12px;
}

.footer-requisites {
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.62);
}

.age-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.age-dialog {
  background: var(--surface);
  border: 3px solid var(--primary);
  box-shadow:
    6px 6px 0 var(--text),
    0 0 18px rgba(37, 99, 235, 0.55),
    0 0 28px rgba(22, 163, 74, 0.35);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
}

.age-dialog h2 {
  margin-bottom: 10px;
  color: var(--text);
}

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

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

.btn-confirm,
.btn-decline,
.cookie-actions button,
.contact-form button {
  font-family: var(--font-sans);
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  border: none;
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-confirm {
  background: var(--primary);
  color: var(--surface);
  box-shadow: 4px 4px 0 var(--text);
}

.btn-confirm:hover {
  transform: translate(2px, -2px);
  clip-path: polygon(0 6%, 10% 0, 100% 8%, 94% 100%, 6% 92%);
}

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

.age-blocked {
  display: none;
  color: var(--accent);
  font-weight: 600;
}

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

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--text);
  color: var(--bg);
  padding: 16px 24px;
  border-top: 3px solid var(--accent);
  box-shadow: 0 -6px 0 var(--primary);
}

.cookie-banner.active {
  display: block;
}

.cookie-banner p {
  font-size: 0.85rem;
  max-width: var(--max);
  margin: 0 auto 12px;
  color: rgba(248, 250, 252, 0.82);
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-actions {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .accept {
  background: var(--primary);
  color: var(--surface);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--accent);
}

.cookie-actions .reject {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(248, 250, 252, 0.3);
}

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

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

.go-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.55);
}

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

.go-notes {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 42ch;
}

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

.legal-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.legal-shell {
  background: var(--surface);
  border: 3px solid var(--primary);
  box-shadow: 8px 8px 0 var(--text);
  padding: 28px 24px;
}

.legal-page h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
}

.legal-page h3 {
  font-size: 1.02rem;
  margin: 16px 0 8px;
}

.legal-page p,
.legal-page li {
  margin-bottom: 10px;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  max-width: 480px;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-sans);
  padding: 10px 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
}

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

.contact-form button {
  background: var(--primary);
  color: var(--surface);
  font-weight: 700;
  align-self: flex-start;
  box-shadow: 4px 4px 0 var(--text);
}

.contact-form button:hover {
  transform: translate(2px, -2px);
}

.form-error {
  display: none;
  color: var(--accent);
  font-size: 0.85rem;
}

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

.form-success {
  display: none;
  background: var(--surface);
  border: 3px solid var(--secondary);
  padding: 18px;
  margin-top: 16px;
  color: var(--text);
  box-shadow: 6px 6px 0 var(--text);
}

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

.page-404 {
  text-align: center;
  padding: 64px 24px;
  border: 3px solid var(--primary);
  margin: 32px auto;
  max-width: 640px;
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--text);
}

.page-404 h1 {
  margin-bottom: 12px;
}

.page-404 a {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 20px;
  background: var(--primary);
  color: var(--surface);
  text-decoration: none;
  font-weight: 700;
  font-style: italic;
  box-shadow: 4px 4px 0 var(--text);
}

.decor-img {
  max-width: 500px;
  max-height: 320px;
  width: 100%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--primary);
  box-shadow:
    8px 8px 0 var(--text),
    0 0 16px rgba(37, 99, 235, 0.35);
}

.decor-frame {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 767px) {
  .decor-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 220px;
    box-shadow: 4px 4px 0 var(--text);
  }

  .legal-shell {
    box-shadow: 4px 4px 0 var(--text);
    padding: 20px 16px;
  }
}

@media (max-width: 375px) {
  .decor-frame,
  .decor-img {
    max-width: 100%;
    overflow: hidden;
  }

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