:root {
  --bg: #0D1B12;
  --surface: #14261A;
  --text: #ECFDF5;
  --muted: #A7F3D0;
  --primary: #22C55E;
  --secondary: #84CC16;
  --accent: #F59E0B;
  --border: rgba(236,253,245,0.12);
  --font-sans: "Trebuchet MS", "Segoe UI", Geneva, Verdana, sans-serif;
  --max: 1200px;
  --offer-bg: #1a1a1a;
  --offer-border: #2a2a2a;
  --offer-bonus: #ffd700;
  --offer-cta-bg: #22c55e;
  --offer-cta-text: #ffffff;
  --memphis: "memphis";
  --playful: "playful";
  --bold-patterns: "bold patterns";
  --asymmetric: "asymmetric";
  --geometric: "geometric";
  --retro-pop: "retro pop";
}

*,
*::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:
    linear-gradient(158deg, #0D1B12 0%, #12281A 42%, #0A1610 70%, #14261A 100%),
    radial-gradient(ellipse 60% 45% at 90% 8%, rgba(34, 197, 94, 0.14), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: var(--memphis) " " var(--playful) " " var(--bold-patterns) " " var(--asymmetric) " " var(--geometric) " " var(--retro-pop);
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 18px,
      rgba(132, 204, 22, 0.035) 18px,
      rgba(132, 204, 22, 0.035) 19px
    ),
    radial-gradient(circle at 8% 78%, rgba(245, 158, 11, 0.08), transparent 38%),
    radial-gradient(circle at 78% 42%, rgba(34, 197, 94, 0.06), transparent 32%);
  opacity: 0.95;
}

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

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

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

.disclosure-banner {
  width: 100%;
  background: var(--accent);
  color: #0D1B12;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
  line-height: 1.45;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: 4px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 900;
  margin: 0 16px 16px;
  max-width: 1200px;
  width: calc(100% - 32px);
  margin-left: auto;
  margin-right: auto;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.brand-lockup:hover {
  opacity: 0.85;
  color: var(--text);
}

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

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  padding: 6px 8px;
  opacity: 0.7;
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--text);
}

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

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

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

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

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

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 18, 0.97);
  z-index: 880;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 80px 24px 40px;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay a {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  padding: 10px 16px;
  opacity: 0.75;
}

.nav-overlay a:hover {
  opacity: 1;
  color: var(--primary);
}

.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 8px;
}

.memphis-squiggle {
  display: block;
  width: 72px;
  height: 10px;
  margin: 12px 0;
  background:
    radial-gradient(circle at 8px 5px, var(--accent) 3px, transparent 3.5px),
    radial-gradient(circle at 24px 5px, var(--primary) 3px, transparent 3.5px),
    radial-gradient(circle at 40px 5px, var(--secondary) 3px, transparent 3.5px),
    radial-gradient(circle at 56px 5px, var(--accent) 3px, transparent 3.5px);
}

.geometric-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.geometric-shapes .shape-circle {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  top: 12%;
  right: 8%;
  opacity: 0.35;
  animation: memphis-float 7s ease-in-out infinite;
}

.geometric-shapes .shape-tri {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 32px solid var(--secondary);
  bottom: 18%;
  left: 6%;
  opacity: 0.28;
  animation: memphis-float 9s ease-in-out infinite reverse;
}

.geometric-shapes .shape-sq {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--primary);
  top: 42%;
  right: 18%;
  opacity: 0.22;
  transform: rotate(18deg);
  animation: memphis-spin 14s linear infinite;
}

@keyframes memphis-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes memphis-spin {
  from { transform: rotate(18deg); }
  to { transform: rotate(378deg); }
}

@keyframes retro-pop-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.offers-section {
  padding: 64px 24px;
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(13, 27, 18, 0.88), rgba(20, 38, 26, 0.92)),
    url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 14px,
      rgba(245, 158, 11, 0.04) 14px,
      rgba(245, 158, 11, 0.04) 16px
    );
  pointer-events: none;
}

.offers-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

.offers-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.offers-intro p {
  color: var(--muted);
  font-size: 0.95rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.offer-card {
  background: var(--offer-bg);
  border: 1px solid var(--offer-border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: retro-pop-in 0.6s ease both;
}

.offer-card:nth-child(2) { animation-delay: 0.08s; }
.offer-card:nth-child(3) { animation-delay: 0.16s; }
.offer-card:nth-child(4) { animation-delay: 0.24s; }

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.offer-logo {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
  background: #0d0d0d;
  padding: 10px;
  box-sizing: border-box;
}

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

.offer-name {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.offer-bonus-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.offer-bonus {
  color: var(--offer-bonus);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.offer-terms {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0;
}

.offer-desc {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.45;
  text-align: center;
}

.offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--offer-cta-bg);
  color: var(--offer-cta-text);
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.offer-cta:hover {
  filter: brightness(1.08);
  color: var(--offer-cta-text);
  transform: scale(1.02);
}

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

.site-footer::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 10%;
  width: 60px;
  height: 60px;
  border: 4px solid rgba(132, 204, 22, 0.2);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-note {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 58ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

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

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

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

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

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

.footer-requisites {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-updated {
  font-size: 0.8rem;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.modal-box::before {
  content: "";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  transform: rotate(18deg);
  opacity: 0.35;
}

.modal-box h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.modal-box p {
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, background 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  filter: brightness(1.05);
  color: #0D1B12;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: none;
}

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

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

.cookie-inner p {
  flex: 1 1 280px;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

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

.info-cta {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 20px;
  background: var(--primary);
  color: #0D1B12;
  font-weight: 800;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.2s, background 0.2s;
}

.info-cta:hover {
  background: var(--secondary);
  color: #0D1B12;
  transform: translateY(-2px);
}

.redirect-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  gap: 16px;
}

.ad-label {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

.redirect-notes a {
  color: var(--secondary);
}

.error-page {
  max-width: 560px;
  margin: 64px auto;
  padding: 40px 24px;
  text-align: center;
  display: grid;
  gap: 16px;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--primary);
  letter-spacing: -0.04em;
}

@media (max-width: 900px) {
  .site-header {
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
    top: 0;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .offer-logo {
    width: 160px;
    height: 80px;
  }

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

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

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

  .hero-strip {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 375px) {
  .offer-logo {
    width: 140px;
    height: 70px;
  }

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

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

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

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

  .offer-card {
    min-width: 0;
    overflow: hidden;
  }

  .footer-badges img {
    max-width: 100%;
  }
}
