:root {
  --bg: #0C1E33;
  --surface: #162C46;
  --text: #FFFFFF;
  --muted: #8BA1B8;
  --primary: #EAB308;
  --secondary: #1E3A8A;
  --accent: #FACC15;
  --border: rgba(255,255,255,0.1);
  --font-display: "Trebuchet MS", "Segoe UI", Geneva, Verdana, sans-serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --grunge: grain;
  --raw: rough;
  --distressed: uneven;
  --texture: noise;
  --imperfect: asymmetric;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(30, 58, 138, 0.45) 0%, transparent 52%),
    radial-gradient(ellipse at 88% 18%, rgba(234, 179, 8, 0.12) 0%, transparent 40%),
    linear-gradient(165deg, #0C1E33 0%, #0a1830 40%, #122a44 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

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

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

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

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

@keyframes grunge {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}

@keyframes raw {
  0% {
    filter: none;
  }
  100% {
    filter: none;
  }
}

@keyframes distressed {
  from {
    transform: none;
  }
  to {
    transform: none;
  }
}

@keyframes texture {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes imperfect {
  from {
    letter-spacing: 0.02em;
  }
  to {
    letter-spacing: 0.02em;
  }
}

.grunge {
  position: relative;
  animation: grunge 12s linear infinite;
}

.raw {
  letter-spacing: 0.02em;
  animation: raw 14s linear infinite;
}

.distressed {
  filter: contrast(1.05);
  animation: distressed 16s linear infinite;
}

.texture {
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 3px
    );
  animation: texture 20s linear infinite;
}

.imperfect {
  transform: rotate(-0.3deg);
  animation: imperfect 18s linear infinite;
}

.disclosure-banner {
  background: #E8EEF5;
  color: #1a2a3a;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.45;
}

.disclosure-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  justify-content: center;
  text-align: left;
}

.disclosure-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #1E3A8A;
}

.site-header {
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: static;
  z-index: 40;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-left {
  justify-content: flex-end;
}

.nav-right {
  justify-content: flex-start;
}

.nav-left a,
.nav-right a,
.nav-drawer a {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-display);
}

.nav-left a:hover,
.nav-right a:hover,
.nav-drawer a:hover {
  color: var(--primary);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  justify-self: center;
}

.brand-lockup img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

.brand-name span {
  color: var(--primary);
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}

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

.burger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
}

.nav-backdrop.is-open {
  display: block;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg);
  z-index: 55;
  padding: 90px 28px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

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

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 20px 28px;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(234, 179, 8, 0.08), transparent 45%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 6px,
      rgba(255, 255, 255, 0.012) 6px,
      rgba(255, 255, 255, 0.012) 7px
    );
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.footer-brand .brand-name {
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 28px;
}

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

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

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

.footer-help a {
  display: inline-block;
}

.footer-help img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

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

.footer-au-disclosure {
  color: #6B8299;
  font-size: 11px;
  line-height: 1.55;
  max-width: 920px;
  margin-bottom: 16px;
}

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

#age-gate {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#age-gate.is-active {
  display: flex;
}

.age-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.age-modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--primary);
}

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

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

.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 20px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.btn-primary {
  background: var(--primary);
  color: #0C1E33;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  clip-path: none;
  border-radius: 2px;
}

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

#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  z-index: 150;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

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

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

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

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

.page-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.page-shell h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 18px;
  color: var(--primary);
  line-height: 1.15;
  transform: rotate(-0.4deg);
}

.page-shell h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--text);
}

.page-shell h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 20px 0 10px;
  color: var(--accent);
}

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

.page-shell ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.page-shell code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  font-size: 0.92em;
}

.contact-form {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form.is-hidden {
  display: none;
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}

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

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

.form-error {
  display: none;
  color: #f87171;
  font-size: 12px;
  margin-top: 6px;
}

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

#form-success {
  display: none;
  background: var(--surface);
  border: 1px solid var(--primary);
  padding: 24px;
  color: var(--text);
  margin-top: 28px;
}

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

.go-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.go-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 28px;
  max-width: 480px;
  width: 100%;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.go-ad {
  display: inline-block;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.go-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

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

.go-box h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

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

.go-compliance {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
}

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

.error-page h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 24px;
}

.decor-img {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

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

.topic-hero {
  padding: 48px 20px 32px;
  background:
    linear-gradient(135deg, rgba(22, 44, 70, 0.95), rgba(12, 30, 51, 0.9)),
    var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.topic-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0 12px,
    transparent 12px 22px,
    var(--secondary) 22px 34px,
    transparent 34px 44px
  );
  opacity: 0.55;
}

.topic-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.topic-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  max-width: 16ch;
  transform: rotate(-0.5deg);
}

.topic-hero p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 54ch;
}

.topic-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.topic-content p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.topic-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.topic-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 22px 0 10px;
  color: var(--accent);
}

.topic-content ul {
  padding-left: 22px;
  margin-bottom: 18px;
  color: var(--muted);
}

.topic-content li {
  margin-bottom: 8px;
}

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

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-lockup {
    justify-self: center;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .burger-btn {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 60;
  }

  .nav-inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  .brand-name {
    font-size: 0.88rem;
  }

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

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }

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

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

  .image-band {
    max-width: 100%;
    height: 140px;
  }

  .topic-rail .decor-wrap,
  .topic-content,
  .topic-split,
  .odds-hero-layout,
  .bonus-mosaic,
  .rugby-zigzag {
    max-width: 100%;
    overflow-x: hidden;
  }
}
