:root {
  --bg: #F0F2F5;
  --surface: #FFFFFF;
  --text: #1C1E21;
  --muted: #606770;
  --primary: #007AFF;
  --secondary: #4267B2;
  --accent: #31A24C;
  --border: rgba(0,0,0,0.06);
  --memphis: memphis;
  --playful: playful;
  --bold-patterns: bold patterns;
  --asymmetric: asymmetric;
  --geometric: geometric;
  --retro-pop: retro pop;
  --max-w: 1100px;
  --font: "Trebuchet MS", "Segoe UI", Geneva, Verdana, sans-serif;
  --font-display: "Arial Black", Impact, "Helvetica Neue", sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, var(--bg) 0%, #E4E8EE 42%, var(--bg) 100%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(0, 122, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(49, 162, 76, 0.1), transparent 50%);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body.memphis.playful.bold-patterns.asymmetric.geometric.retro-pop {
  --tone-memphis: var(--memphis);
  --tone-playful: var(--playful);
  --tone-patterns: var(--bold-patterns);
  --tone-asym: var(--asymmetric);
  --tone-geo: var(--geometric);
  --tone-retro: var(--retro-pop);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 14px,
      rgba(66, 103, 178, 0.05) 14px,
      rgba(66, 103, 178, 0.05) 16px
    ),
    radial-gradient(circle at 18% 22%, rgba(0, 122, 255, 0.14) 0 11px, transparent 12px),
    radial-gradient(circle at 82% 58%, rgba(49, 162, 76, 0.12) 0 9px, transparent 10px),
    radial-gradient(circle at 48% 12%, rgba(66, 103, 178, 0.1) 0 7px, transparent 8px),
    radial-gradient(circle at 70% 88%, rgba(0, 122, 255, 0.08) 0 13px, transparent 14px);
  background-size: auto, 160px 160px, 200px 200px, 130px 130px, 180px 180px;
  animation: memphis-drift 28s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  width: 72px;
  height: 72px;
  top: 22%;
  right: 5%;
  pointer-events: none;
  z-index: 0;
  border: 3px solid rgba(0, 122, 255, 0.35);
  border-radius: 40% 20% 55% 25%;
  transform: rotate(22deg);
  box-shadow:
    -38vw 28vh 0 -22px rgba(49, 162, 76, 0.22),
    -62vw 55vh 0 -18px rgba(66, 103, 178, 0.18),
    -12vw 68vh 0 -30px rgba(0, 122, 255, 0.16),
    8vw 42vh 0 -34px rgba(49, 162, 76, 0.12);
  animation: memphis-spin 40s linear infinite;
}

@keyframes memphis-drift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 80px 40px, 40px 20px, -30px 50px, 20px -15px, -25px 30px; }
}

@keyframes memphis-spin {
  0% { transform: rotate(22deg); }
  100% { transform: rotate(382deg); }
}

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

body.nav-open {
  overflow: hidden;
}

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

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

#offers .logo-placeholder img,
#offers .offer-logo {
  height: 100%;
  max-width: none;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.disclosure-banner {
  width: 100%;
  padding: 6px 16px;
  background: #E8EBEE;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.45;
  border: none;
  z-index: 30;
}

.disclosure-banner p {
  margin: 0 0 4px;
}

.disclosure-banner p:last-child {
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 56px;
  background: var(--text);
  box-shadow: 0 1px 0 0 var(--primary), 0 0 8px var(--primary);
}

.nav-inner {
  width: 100%;
  height: 56px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-lockup:hover {
  color: var(--primary);
}

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

.brand-lockup span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.28s ease;
}

.nav-links a:hover {
  color: var(--surface);
}

.nav-links a:hover::after {
  width: 100%;
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
}

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

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

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

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

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 30, 33, 0.55);
  z-index: 180;
}

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

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 48px 24px;
}

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

.mobile-nav a {
  color: var(--surface);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--surface);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 60px 24px;
  background: var(--text);
  color: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  left: -20%;
  top: 50%;
  width: 140%;
  height: 60px;
  background: var(--accent);
  opacity: 0.2;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--surface);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  animation: hero-pop 0.7s ease-out both;
}

.hero-sub {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  animation: hero-pop 0.7s ease-out 0.12s both;
}

@keyframes hero-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.offers-section {
  padding: 48px 16px 56px;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(240, 242, 245, 0.92), rgba(240, 242, 245, 0.88)),
    url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-inner {
  max-width: 480px;
  margin: 0 auto;
}

.offers-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.offers-intro {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.info-section {
  padding: 48px 20px;
  position: relative;
}

.info-section:nth-child(odd) {
  background: rgba(255, 255, 255, 0.55);
}

.info-section:nth-child(even) {
  background: transparent;
}

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

.info-section h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.info-section p {
  color: var(--text);
  margin-bottom: 12px;
}

.info-section ul,
.info-section ol {
  margin: 12px 0 12px 1.2rem;
  color: var(--text);
}

.info-section li {
  margin-bottom: 6px;
}

.topic-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--surface) !important;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 4px 16px 4px 16px;
  box-shadow: 4px 4px 0 rgba(66, 103, 178, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(49, 162, 76, 0.35);
  color: var(--surface) !important;
}

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

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px 4px 18px 8px;
  border: 3px solid rgba(0, 122, 255, 0.25);
}

.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 20px 28px;
  margin-top: auto;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--surface);
  margin-bottom: 18px;
}

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

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

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

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

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

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

.footer-rg,
.last-updated,
.footer-requisites,
.ca-disclosure {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.ca-disclosure {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.age-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 30, 33, 0.82);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.age-dialog {
  background: var(--surface);
  color: var(--text);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  border-radius: 8px 24px 8px 24px;
  border: 3px solid var(--primary);
  box-shadow: 8px 8px 0 rgba(66, 103, 178, 0.35);
  text-align: center;
}

.age-dialog h2 {
  margin-bottom: 10px;
}

.age-dialog p {
  color: var(--muted);
  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 {
  cursor: pointer;
  border: none;
  font-family: var(--font);
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 6px;
}

.btn-confirm {
  background: var(--primary);
  color: var(--surface);
}

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

.age-blocked {
  display: none;
  color: var(--muted);
  margin-top: 12px;
}

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

.cookie-banner {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 250;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--text);
  padding: 18px 20px;
  border-radius: 12px;
  border: 2px solid rgba(0, 122, 255, 0.25);
  box-shadow: 0 12px 40px rgba(28, 30, 33, 0.18);
}

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

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

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

.cookie-actions .accept {
  background: var(--primary);
  color: var(--surface);
}

.cookie-actions .reject {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.go-page h1 {
  margin: 16px 0 10px;
}

.go-page #AD {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.go-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(0, 122, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 12px auto;
}

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

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

.page-hero {
  background: var(--text);
  color: var(--surface);
  padding: 36px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 40%;
  width: 120%;
  height: 36px;
  background: var(--accent);
  opacity: 0.2;
  transform: rotate(45deg);
}

.page-hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.8);
}

.page-kicker {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--surface) !important;
  margin-bottom: 6px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.page-content h1 {
  margin-bottom: 16px;
}

.page-content h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.page-content p,
.page-content li {
  color: var(--muted);
  margin-bottom: 10px;
}

.page-content ul {
  margin: 10px 0 14px 1.2rem;
}

.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  padding: 22px;
  border-radius: 8px 20px 8px 20px;
  border: 2px solid var(--border);
  box-shadow: 6px 6px 0 rgba(0, 122, 255, 0.12);
}

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

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

.contact-form input.error,
.contact-form textarea.error {
  border-color: #c0392b;
}

.email-error {
  display: none;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 4px;
}

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

.contact-form button {
  background: var(--primary);
  color: var(--surface);
  align-self: flex-start;
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: 18px;
  background: rgba(49, 162, 76, 0.12);
  border: 2px solid var(--accent);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
}

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

.not-found {
  text-align: center;
  padding: 64px 20px;
}

.not-found a {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  background: var(--primary);
  color: var(--surface) !important;
  font-weight: 800;
  border-radius: 8px;
}

.squiggle {
  display: inline-block;
  width: 48px;
  height: 10px;
  margin: 0 6px;
  background:
    radial-gradient(circle at 5px 5px, var(--primary) 3px, transparent 4px) 0 0 / 12px 10px repeat-x,
    radial-gradient(circle at 5px 5px, var(--accent) 3px, transparent 4px) 6px 0 / 12px 10px repeat-x;
  vertical-align: middle;
}

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

  .burger-btn {
    display: flex;
  }

  .nav-inner {
    padding: 0 20px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 220px;
    padding: 32px 16px;
  }

  .hero::before {
    height: 34px;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

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

  .decor-img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }

  .band-visual,
  .sub-band {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    background-size: cover;
    background-position: center;
  }

  .info-section,
  .page-content,
  .offers-section {
    overflow-x: hidden;
  }
}
