:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --primary: #334155;
  --secondary: #E2E8F0;
  --accent: #475569;
  --border: rgba(15,23,42,0.1);
  --max-w: 1100px;
  --font-pixel: "Courier New", Courier, "Lucida Console", Monaco, monospace;
  --font-ui: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --style-keywords: "retro" "arcade" "8-bit" "pixel" "chunky" "nostalgic" "glitch";
}

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

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

body {
  font-family: var(--font-ui);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, var(--bg) 0%, rgba(51, 65, 85, 0.07) 42%, var(--bg) 78%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(15, 23, 42, 0.025) 3px,
      rgba(15, 23, 42, 0.025) 4px
    );
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 10% 6%, rgba(71, 85, 105, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(51, 65, 85, 0.08) 0%, transparent 42%);
}

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

main {
  flex: 1 0 auto;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: 0.02em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border: 2px solid var(--primary);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.35);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

.disclosure-banner .disclosure-label {
  background: #FDE68A;
  color: var(--text);
  padding: 1px 6px;
  font-weight: 700;
}

.site-header {
  width: 100%;
  background: var(--surface);
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(15, 23, 42, 0.03) 2px,
    rgba(15, 23, 42, 0.03) 4px
  );
  animation: scanline 5s linear infinite;
  opacity: 0.7;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 2px 2px 0 rgba(15, 23, 42, 0.08);
}

.brand-lockup img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.age-badge-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.2);
}

.hero {
  padding: 48px 20px 56px;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 12% auto;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(51, 65, 85, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-cards {
  position: relative;
  max-width: 700px;
  width: 100%;
  min-height: 280px;
}

.hero-card-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 20px;
  background: var(--secondary);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.18);
  border: 2px solid var(--primary);
  z-index: 1;
  min-height: 100%;
}

.hero-card-back p {
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--font-pixel);
  padding-top: 8px;
  opacity: 1;
  visibility: visible;
}

.hero-card-front {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.22);
  border: 3px solid var(--primary);
  transform: translate(20px, 10px);
  overflow: hidden;
}

.hero-card-front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(15, 23, 42, 0.02) 3px,
    rgba(15, 23, 42, 0.02) 4px
  );
  animation: scanline 6s linear infinite;
}

.hero-card-front h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 14px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.hero-copy {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 10px;
  opacity: 1;
  visibility: visible;
  height: auto;
  overflow: visible;
  max-height: none;
  position: relative;
  z-index: 1;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 20px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.trust-row li {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-pixel);
  opacity: 1;
  visibility: visible;
  background: var(--secondary);
  padding: 8px 12px;
  border: 2px solid var(--primary);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.15);
}

.offers-section {
  padding: 40px 20px 72px;
  position: relative;
}

.offers-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.06), transparent);
  pointer-events: none;
}

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

.offers-section h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin-bottom: 12px;
}

.offers-lead {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
}

.offers-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.offer-card {
  position: relative;
  background: var(--surface);
  border: 3px solid var(--primary);
  border-radius: 12px;
  padding: 28px 22px 22px;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.2);
  overflow: hidden;
}

.offer-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  transform: translate(2px, 1px);
  opacity: 0.35;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-pixel);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.3);
  border: 2px solid var(--text);
}

.logo-box {
  width: 120px;
  height: 120px;
  margin: 8px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
}

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

.offer-card h3 {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.offer-rating {
  text-align: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  font-family: var(--font-pixel);
}

.stars {
  text-align: center;
  color: var(--accent);
  letter-spacing: 2px;
  margin: 4px 0 12px;
  font-size: 1.05rem;
}

.bonus-group {
  text-align: center;
  margin-bottom: 10px;
  max-width: 100%;
  overflow: hidden;
}

.bonus-text {
  font-weight: 700;
  color: var(--text);
  font-size: clamp(0.82rem, 2.6vw, 0.98rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
  hyphens: auto;
}

.bonus-terms {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.3;
}

.offer-feature {
  text-align: center;
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 10px;
  font-family: var(--font-pixel);
}

.offer-rg {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.4;
}

.offer-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-pixel);
  padding: 14px 18px;
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.offer-cta:hover {
  color: #FFFFFF;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.3);
}

.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 20px 32px;
  margin-top: auto;
  border-top: 4px solid var(--text);
  box-shadow: 0 -6px 0 rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.02) 3px,
    rgba(255, 255, 255, 0.02) 4px
  );
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

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

.footer-desc {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-rg-line {
  font-size: 0.85rem;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #FFFFFF;
  font-size: 0.88rem;
  font-family: var(--font-pixel);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
}

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

.footer-copy {
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.back-to-top {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.9rem;
  font-family: var(--font-pixel);
  margin-bottom: 16px;
}

.footer-requisites {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.fi-disclosure {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

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

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

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

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

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

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

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-form label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-pixel);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--primary);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.12);
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
}

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

.contact-form button {
  margin-top: 8px;
  background: var(--primary);
  color: #FFFFFF;
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.3);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-pixel);
  cursor: pointer;
}

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

.form-error {
  display: none;
  color: #B42318;
  font-size: 0.85rem;
}

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

.form-success {
  display: none;
  margin-top: 24px;
  padding: 20px;
  background: var(--secondary);
  border: 2px solid var(--primary);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.15);
  color: var(--text);
  font-weight: 600;
}

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

.error-page {
  text-align: center;
  padding: 80px 20px;
  max-width: 560px;
  margin: 0 auto;
}

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

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

.error-page a {
  display: inline-block;
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 22px;
  font-weight: 700;
  font-family: var(--font-pixel);
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.3);
}

.error-page a:hover {
  color: #FFFFFF;
}

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

.go-page h1 {
  margin: 20px 0 10px;
  font-size: 1.4rem;
}

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

.go-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--secondary);
  border-top-color: var(--primary);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.2);
  animation: spin-chunky 0.8s linear infinite;
}

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

#AD {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: var(--font-pixel);
}

.go-notes {
  margin-top: 24px;
  font-size: 0.85rem;
}

.go-notes a {
  color: var(--primary);
  text-decoration: underline;
}

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

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

.age-dialog {
  background: var(--surface);
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 3px solid var(--primary);
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.4);
  position: relative;
  overflow: hidden;
}

.age-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(15, 23, 42, 0.04) 2px,
    rgba(15, 23, 42, 0.04) 4px
  );
  animation: scanline 4s linear infinite;
}

.age-title {
  font-family: var(--font-pixel);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  position: relative;
}

.age-dialog p {
  color: var(--muted);
  margin-bottom: 20px;
  position: relative;
}

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

.btn-confirm,
.btn-decline {
  border: 2px solid var(--primary);
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-pixel);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.3);
}

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

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

.age-blocked {
  display: none;
  color: var(--text);
  font-weight: 700;
  position: relative;
}

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

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 3px solid var(--primary);
  padding: 18px 20px;
  box-shadow: 0 -6px 0 rgba(15, 23, 42, 0.15);
}

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

.cookie-banner p {
  max-width: var(--max-w);
  margin: 0 auto 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

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

.cookie-actions button {
  border: 2px solid var(--primary);
  padding: 10px 16px;
  font-weight: 700;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.25);
}

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

.cookie-actions .reject {
  background: var(--secondary);
  color: var(--text);
}

@keyframes scanline {
  0% {
    transform: translateY(-6%);
  }
  100% {
    transform: translateY(6%);
  }
}

.retro-arcade-frame {
  border: 3px solid var(--primary);
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.25);
}

.pixel-border {
  border-style: solid;
  border-width: 3px;
  image-rendering: pixelated;
}

.chunky-shadow {
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.28);
}

.nostalgic-scan {
  position: relative;
  overflow: hidden;
}

.nostalgic-scan::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(15, 23, 42, 0.03) 2px,
    rgba(15, 23, 42, 0.03) 4px
  );
}

.glitch-img:hover img {
  animation: glitch-shift 0.35s steps(2) 1;
}

@keyframes glitch-shift {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-2px, 1px);
  }
  66% {
    transform: translate(2px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.look-8-bit {
  image-rendering: pixelated;
}

@media (max-width: 700px) {
  .hero-cards {
    min-height: 0;
  }

  .hero-card-back {
    display: none;
  }

  .hero-card-front {
    transform: none;
  }

  .logo-box {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

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

  .bonus-text {
    font-size: 0.84rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .trust-row li {
    font-size: 0.8rem;
  }

  .hero,
  .offers-section,
  .footer-inner {
    overflow-x: hidden;
    max-width: 100%;
  }

  .footer-badges img {
    height: 36px;
    max-width: calc(100vw - 48px);
  }
}
