:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --primary: #2563EB;
  --secondary: #CBD5E1;
  --accent: #3B82F6;
  --border: rgba(15, 23, 42, 0.08);
  --nav-bg: #0F172A;
  --nav-text: #F8FAFC;
  --max-w: 1200px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

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

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

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

.disclosure-banner {
  width: 100%;
  background: var(--bg);
  padding: 8px 16px;
  text-align: center;
}

.disclosure-banner p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__logo img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--nav-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--secondary);
  transform: scale(1.05);
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  padding: 8px;
}

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

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

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

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

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  color: var(--nav-text);
  font-size: 1.5rem;
  font-weight: 500;
  padding: 12px 24px;
  transition: transform 0.15s ease;
}

.mobile-nav a:hover {
  transform: scale(1.05);
  color: var(--secondary);
}

.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/images/decorative/decor_1.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 24px;
  max-width: 800px;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.offers-section {
  background-image: url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
  padding: 64px 24px;
}

.offers-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.offers-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

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

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.offer-card {
  background: #fff;
  color: #1e293b;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.offer-card__logo-wrap {
  width: 140px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.offer-card__bonus-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offer-card__bonus {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.offer-card__terms {
  font-size: 0.75rem;
  color: #64748b;
}

.offer-card__desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

.offer-card__btn {
  display: inline-block;
  text-align: center;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  transition: background 0.2s ease;
}

.offer-card__btn:hover {
  background: #1d4ed8;
  color: #fff;
}

.info-section {
  padding: 56px 24px;
  border-bottom: 1px solid var(--border);
}

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

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

.info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.info-text {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.layout-split-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.layout-split-reverse .info-visual {
  order: -1;
}

.info-visual {
  display: flex;
  justify-content: center;
}

.info-visual img {
  max-width: 500px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.layout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.layout-highlight {
  border-left: 4px solid var(--primary);
  padding-left: 24px;
}

.layout-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  border-radius: 4px;
}

.stat-box strong {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-box span {
  font-size: 0.8rem;
  color: var(--muted);
}

.layout-columns {
  columns: 2;
  column-gap: 40px;
}

.layout-columns .info-title {
  column-span: all;
}

.layout-banner {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 40px;
  border-radius: 4px;
}

.layout-banner .info-title {
  color: var(--nav-text);
}

.layout-banner .info-text {
  color: var(--secondary);
}

.layout-checklist ul {
  list-style: none;
  margin-top: 16px;
}

.layout-checklist li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.layout-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.layout-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.info-aside {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 4px;
}

.info-aside dt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  margin-top: 12px;
}

.info-aside dt:first-child {
  margin-top: 0;
}

.info-aside dd {
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: 0;
}

.layout-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.layout-tags span {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 4px;
  color: var(--muted);
}

.layout-quote {
  border-top: 3px solid var(--primary);
  padding-top: 24px;
}

.layout-bg-image {
  position: relative;
  min-height: 200px;
  background-image: url("/images/decorative/decor_4.webp");
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  padding: 32px;
  display: flex;
  align-items: flex-end;
}

.layout-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 4px;
}

.layout-bg-image .info-text {
  position: relative;
  z-index: 1;
  color: #fff;
}

.layout-bg-image .info-title {
  position: relative;
  z-index: 1;
  color: #fff;
}

.site-footer {
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 48px 24px 32px;
  flex-shrink: 0;
  margin-top: auto;
}

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

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

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

.footer-links a:hover {
  color: #fff;
}

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

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

.footer-disclosure {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-notice {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-notice p {
  margin-bottom: 8px;
}

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

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

.modal-box {
  background: var(--surface);
  border-radius: 4px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  border: 1px solid var(--border);
}

.modal-box h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.modal-box p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

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

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

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.1);
}

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

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

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

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

.cookie-panel {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cookie-panel.visible {
  display: block;
}

.cookie-panel p {
  font-size: 0.85rem;
  margin-bottom: 12px;
}

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

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

.legal-page p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-page ul {
  margin: 0 0 16px 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.contact-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
}

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

.email-error {
  display: none;
  color: #dc2626;
  font-size: 0.85rem;
}

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

.contact-success {
  display: none;
  background: var(--bg);
  border: 1px solid var(--primary);
  border-radius: 4px;
  padding: 20px;
  margin-top: 24px;
}

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

.contact-success p {
  color: var(--text);
  margin: 0;
}

.subpage-header {
  background: var(--nav-bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 16px 24px;
}

.subpage-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.subpage-header__inner img {
  height: 36px;
  width: auto;
}

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

.error-page h1 {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 16px;
}

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

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

.go-ad {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 24px;
}

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

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

.go-page h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

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

.go-compliance {
  max-width: 480px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.go-compliance p {
  margin-bottom: 8px;
}

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

  .burger-btn {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .mobile-nav {
    display: flex;
  }

  .layout-split,
  .layout-split-reverse,
  .layout-panel {
    grid-template-columns: 1fr;
  }

  .layout-split-reverse .info-visual {
    order: 0;
  }

  .layout-columns {
    columns: 1;
  }

  .layout-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 250px;
    background-attachment: scroll;
    overflow: hidden;
  }

  .offer-card__logo-wrap {
    width: 140px;
    height: 64px;
  }

  .offer-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .offer-card__bonus {
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .info-visual {
    overflow: hidden;
    max-width: 100%;
  }

  .info-visual img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .layout-bg-image {
    overflow: hidden;
    max-width: 100%;
  }

  .hero {
    overflow: hidden;
  }
}

@media print {
  .site-header,
  .burger-btn,
  .mobile-nav,
  .nav-overlay,
  .modal-overlay,
  .cookie-banner,
  .disclosure-banner {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .info-section {
    break-inside: avoid;
  }
}
