:root {
    --bg-main: #020b25;
    --bg-alt: #051440;
    --primary: #1d4ed8;
    --primary-light: #2563eb;
    --accent: #22c55e;
    --accent-yellow: #ffd84a;
    --cta-purple: #5b21ff;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --card-bg: #07102e;
    --border-soft: rgba(148, 163, 184, 0.4);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
    --transition-fast: 0.2s ease-out;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #041042 0, #020617 55%, #000000 100%);
    color: var(--text-main);
    min-height: 100vh;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  .page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
  }
  
/* HEADER (top navigation in HeapsOfWins style) */
.header {
  display: grid;
  grid-template-columns: 1.4fr auto 1.4fr;
  align-items: center;
  column-gap: 24px;
  padding: 14px 18px 10px;
  position: sticky;
  top: 10px;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-grid {
  width: 34px;
  height: 34px;
  /* display: grid; */
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 4px;
  cursor: pointer;
  background-color: transparent;
  border: none;
  display: none;
}

.menu-grid span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.nav-links a {
  color: var(--text-main);
  opacity: 0.75;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

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

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-logo img {
    max-height: 50px;
}
  
  

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.icon-search {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--text-main);
  position: relative;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  right: -6px;
  bottom: -1px;
  transform: rotate(45deg);
  }
  
  .btn {
    display: inline-block;
    line-height: 2.3em;
    background-image: linear-gradient(160deg, #c0c2cf 0%, #060d43 40%, #060d43 60%, #00968a 100%);
    background-repeat: no-repeat;
    background-size: 200% auto;
    transition: 0.5s;
    color: #fff;
    text-decoration: none;
    font-style: normal;
    font-size: 1 em;
    border: 1px solid white;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 100;
    padding: 0 1em;
    -webkit-transition: 0.5s;
  }


.btn-outline:hover,
.btn-light:hover {
    cursor: pointer;
    background-position: right center;
}

  .btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    color: #020412;
    box-shadow: 0 12px 30px rgba(25, 118, 210, 0.7);
  }
  
  .btn-primary:hover {
    cursor: pointer;
    background-position: right center;
  }
  
  .btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  
  .btn-ghost:hover {
    background: rgba(15, 24, 51, 0.9);
    transform: translateY(-1px);
  }
  
  /* LAYOUT WRAPPER */
  main {
    margin-top: 26px;
    display: flex;
    justify-content: center;
  }
  
  /* HERO LEFT */
  .hero-copy {
    padding: 22px 20px 20px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 0 0, rgba(33, 150, 243, 0.2), transparent 45%),
      linear-gradient(150deg, rgba(4, 10, 32, 0.96), rgba(4, 8, 24, 0.98));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
  }
  
  .hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
  }
  
  .hero-chip {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(100, 181, 246, 0.4);
    background: rgba(6, 15, 44, 0.9);
    color: var(--accent);
    display: inline-flex;
    gap: 6px;
    align-items: center;
  }
  
  .hero-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.9);
  }
  
  .hero-title {
    font-size: clamp(28px, 4vw, 34px);
    line-height: 1.15;
  }
  
  .hero-title span.highlight {
    background: linear-gradient(90deg, #64b5f6, #bbdefb);
    -webkit-background-clip: text;
    color: transparent;
  }
  
  .hero-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 430px;
  }
  
  .hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
  }
  
  .hero-security {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
  }
  
  .hero-security-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .badge-secure {
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(6, 19, 50, 0.9);
    border: 1px solid rgba(129, 199, 132, 0.6);
    font-size: 10px;
    color: #a5d6a7;
  }
  
  .badge-licensed {
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(6, 15, 39, 0.9);
    border: 1px solid rgba(144, 202, 249, 0.5);
    font-size: 10px;
    color: var(--accent);
  }
  
  .hero-float-chip {
    position: absolute;
    right: 18px;
    top: 16px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
  }
  
  .hero-float-chip strong {
    color: var(--accent);
  }
  
  /* HERO RIGHT: BONUS SLIDER */
  .hero-slider {
  margin-top: 24px;
  width: 100%;
  max-width: 1200px;
  border-radius: 24px;
  background: transparent;
  position: relative;
  }
  
  .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-inline: 4px;
  margin-bottom: 8px;
  }
  
  .slider-header span strong {
    color: var(--accent);
  }

.slider-title {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.slider-subtitle {
  font-size: 12px;
}
  
  /* CSS-only slider using radio buttons */
  .slider {
    position: relative;
    overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.5), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(255, 216, 74, 0.7), transparent 55%),
    linear-gradient(120deg, #0b1747, #0d225d 40%, #1e3a8a 80%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  min-height: 220px;
  padding: 22px 26px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
  }
  
  .slider input[type="radio"] {
    display: none;
  }

  .slider-arrows {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 10px;
    z-index: 5;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #f9fafb;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
  }

  .slider-arrow:hover {
    background: rgba(30, 64, 175, 0.95);
  }
  
  .slide {
    position: absolute;
    inset: 0;
  padding: 24px 26px;
    opacity: 0;
  transform: translateX(24px);
    transition: opacity 0.45s var(--transition-fast), transform 0.45s var(--transition-fast);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px;
  z-index: 1;
  }

  /* Показ нужных стрелок в зависимости от активного слайда */
  #bonus-1:checked ~ .slider-arrows .left-to-3,
  #bonus-1:checked ~ .slider-arrows .right-to-2 {
    display: flex;
  }

  #bonus-2:checked ~ .slider-arrows .left-to-1,
  #bonus-2:checked ~ .slider-arrows .right-to-3 {
    display: flex;
  }

  #bonus-3:checked ~ .slider-arrows .left-to-2,
  #bonus-3:checked ~ .slider-arrows .right-to-1 {
    display: flex;
  }
  
  .slide-title {
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  }
  
  .slide-sub {
  font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  
  .slide-perk-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
  }
  
  .slide-perk {
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(13, 71, 161, 0.9);
    border: 1px solid rgba(100, 181, 246, 0.7);
    color: #e3f2fd;
  }
  
  .slide-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  }
  
  .slide-cta small {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 160px;
  }
  
  /* Attach each slide to a radio */
  #bonus-1:checked ~ .slides .slide:nth-child(1),
  #bonus-2:checked ~ .slides .slide:nth-child(2),
  #bonus-3:checked ~ .slides .slide:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    position: relative;
  }
  
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
  }
  
  .slider-dots label {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
  }
  
  #bonus-1:checked ~ .slider-dots label[for="bonus-1"],
  #bonus-2:checked ~ .slider-dots label[for="bonus-2"],
  #bonus-3:checked ~ .slider-dots label[for="bonus-3"] {
    background: linear-gradient(135deg, #64b5f6, #bbdefb);
    transform: translateY(-1px);
    width: 18px;
  }
  
  /* GAMES GRID */
  .games-section {
    margin-top: 28px;
    padding: 20px 18px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(4, 11, 34, 0.98), rgba(5, 13, 32, 0.98));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  
  .section-header-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .section-header-title h2 {
    font-size: 18px;
  }
  
  .section-header-title span {
    font-size: 12px;
    color: var(--text-muted);
  }
  
  .games-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }
  
  @media (max-width: 1024px) {
    .games-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
  @media (max-width: 640px) {
    .games-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  
  .game-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 0, rgba(100, 181, 246, 0.4), transparent 55%),
      linear-gradient(145deg, #030712, #020617);
    border: 1px solid rgba(148, 163, 184, 0.3);
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 10px 9px;
    cursor: pointer;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out,
      background-position 0.18s ease-out;
    background-size: 200% 200%;
    background-position: 0% 0%;
  }
  
  .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    border-color: rgba(129, 212, 250, 0.85);
    background-position: 80% 80%;
  }
  
  .game-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 7px;
    border-radius: var(--radius-pill);
    font-size: 9px;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-muted);
  }
  
  .game-payout {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 7px;
    border-radius: var(--radius-pill);
    font-size: 9px;
    background: rgba(2, 6, 23, 0.9);
    border: 1px solid rgba(129, 199, 132, 0.7);
    color: #a5d6a7;
  }
  
  .game-name {
    font-size: 13px;
    font-weight: 600;
  }
  
  .game-meta {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
  }
  
  .game-rtp {
    font-size: 10px;
    color: #cfd8dc;
    margin-top: 2px;
  }
  
  /* FOOTER */
  footer {
    margin-top: 26px;
    padding: 18px 18px 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, rgba(4, 10, 27, 0.98), rgba(3, 7, 20, 1));
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    font-size: 11px;
    color: var(--text-muted);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
    align-items: center;
  }
  
  .footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .footer-left strong {
    color: var(--text-main);
  }
  
  .payments-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
  }
  
  .payments-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-right: 4px;
  }
  
  .payment-pill {
    min-width: 64px;
    padding: 5px 8px;
    border-radius: 10px;
    background: rgba(7, 16, 40, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #e3f2fd;
  }
  
  .payment-pill.visa {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
  }
  
  .payment-pill.mc {
    background: radial-gradient(circle at 25% 50%, #ffb300, transparent 50%),
      radial-gradient(circle at 75% 50%, #e53935, transparent 50%),
      linear-gradient(135deg, #111827, #020617);
  }
  
  .payment-pill.paypal {
    background: linear-gradient(135deg, #0d47a1, #64b5f6);
    color: #e3f2fd;
  }
  
  .payment-pill.skrill {
    background: linear-gradient(135deg, #4a148c, #7b1fa2);
  }
  
  .payment-pill.crypto {
    background: linear-gradient(135deg, #ffb300, #f57c00);
    color: #111827;
  }
  
  /* RESPONSIVE */
  @media (max-width: 980px) {
    main {
      flex-direction: column;
    }

    .header {
      column-gap: 10px;
      padding-inline: 10px;
    }

    .header-right {
      gap: 6px;
    }

    .header-right .btn-light,
    .header-right .btn-outline {
      padding-inline: 14px;
      font-size: 12px;
    }
  }
  
  @media (max-width: 720px) {
    .page {
      padding-inline: 14px;
    }

    .header {
      display: flex;
      flex-wrap: wrap;
      row-gap: 8px;
      padding-inline: 14px;
      border-radius: 18px;
    }

    .nav-links {
      display: none; 
      flex-direction: column;
      position: absolute;
      top: 100%; 
      left: 0;
      right: 0;
      background: var(--bg-main);
      padding: 20px;
      border: 1px solid var(--border-soft);
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      box-shadow: var(--shadow-soft);
      z-index: 10;
      gap: 20px;
      backdrop-filter: blur(20px);
    }

    .nav-links.is-open {
      display: flex;
      animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .menu-grid {
      display: grid;
    }

    .menu-grid.active span {
      border-color: var(--text-main);
      background-color: var(--text-main);
    }

    .header-left {
      gap: 10px;
      flex: 0 0 auto;
    }

    .header-logo {
      justify-content: flex-start;
      flex: 1 1 auto;
    }

    .header-right .btn-light,
    .header-right .btn-outline {
      padding: 6px 12px;
      font-size: 11px;
    }
  }
  
  @media (max-width: 560px) {
    .header {
      display: grid;
      row-gap: 8px;
      justify-content: space-between;
    }

    .header-left {
      justify-content: space-between;
      width: 100%;
    }

    .header-logo {
      justify-content: center;
      width: 100%;
    }

    .header-right {
      justify-content: space-between;
      width: 100%;
    }

    .header-right .btn-light,
    .header-right .btn-outline {
      flex: 1;
      text-align: center;
    }

    .slider,
    .slide {
      padding: 10px 0;
    }

    .btn {
      line-height: 1.5em;
      font-size: 10px;
      border-radius: 12px;
      padding: 0 1em
    }

    footer {
      grid-template-columns: 1fr;
    }
  
    .payments-row {
      justify-content: flex-start;
    }
  }