* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 19, 35, 0.94);
  backdrop-filter: blur(14px);
}

.header-content {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.nav-header ul,
.side-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-header ul {
  display: flex;
  gap: 24px;
}

.nav-header a {
  color: var(--light-text);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-header a:hover {
  color: var(--primary-color);
}

.btn-container,
.mobile-actions {
  display: flex;
  gap: 10px;
}

.mobile-actions {
  display: none;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.btn-signup,
.btn-get-bonus,
.btn-promo {
  background: var(--primary-color);
  color: #102100;
}

.btn-login {
  border: 1px solid var(--border-color);
  background: var(--secondary-color);
  color: var(--light-text);
}

.side-panel-open {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--secondary-color);
  color: var(--light-text);
  font-size: 1.35rem;
  cursor: pointer;
}

.menu-toggle {
  flex: 0 0 auto;
}

.hero-section {
  position: relative;
  width: min(1300px, calc(100% - 40px));
  min-height: 500px;
  margin: 28px auto 18px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 12, 22, 0.96) 0%, rgba(3, 12, 22, 0.72) 42%, rgba(3, 12, 22, 0.08) 72%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 500px;
  max-width: 620px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 54px 0;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 560px;
  margin: 0 0 16px;
  color: var(--light-text);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.sub-title {
  margin: 0 0 16px;
  color: var(--gold-color);
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 1.15;
}

.hero-note {
  max-width: 520px;
  margin: 0 0 22px;
  color: #d7e6f1;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 24px;
}

.trust-strip span {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--dark-section-color);
  color: var(--light-text);
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

.section-block {
  padding: 66px 0;
}

.dark-section {
  background: var(--darker-section-color);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.info h2 {
  margin: 0 0 14px;
  color: var(--light-text);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted-text);
}

.info {
  display: grid;
  gap: 28px;
}

.info p {
  margin: 0 0 18px;
  color: #d7e6f1;
}

.lead {
  color: var(--light-text) !important;
  font-size: 1.12rem;
  line-height: 1.8;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 42px;
}

.fact {
  display: flex;
  min-height: 106px;
  flex-direction: column;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--dark-section-color);
}

.fact span {
  color: var(--muted-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact b {
  color: var(--light-text);
  font-size: 1rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 44px;
}

.game-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--dark-section-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card img {
  width: 100%;
  aspect-ratio: 34 / 46;
  object-fit: cover;
  background: #07101d;
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px;
}

.game-card-body span {
  color: var(--accent-color);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.game-card-body h3 {
  margin: 6px 0 12px;
  color: var(--light-text);
  font-size: 0.92rem;
  line-height: 1.25;
}

.game-card-body button,
.promotions-grid button {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  border: 0;
  border-radius: 8px;
  background: var(--primary-color);
  color: #102100;
  font-weight: 900;
  cursor: pointer;
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 44px;
}

.promo-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--panel-color), var(--dark-section-color));
  overflow: hidden;
}

.promo-card:nth-child(2n) {
  background: linear-gradient(145deg, #313b89, #192d59);
}

.promo-card .promo-badge {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--accent-color);
  font-size: 0.7rem;
  font-weight: 900;
}

.promo-card h3 {
  margin: 0 0 10px;
  color: var(--light-text);
  font-size: 1.35rem;
  line-height: 1.2;
}

.promo-card p {
  margin: 0 0 20px;
  color: #c5d8e7;
  font-size: 0.9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 42px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--dark-section-color);
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-color);
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted-text);
}

.content-figure {
  margin: 28px 0 44px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--dark-section-color);
  overflow: hidden;
}

.content-figure img {
  width: 100%;
  border-radius: 10px;
}

.content-figure figcaption {
  padding: 10px 8px 2px;
  color: var(--muted-text);
  font-size: 0.78rem;
  text-align: center;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}

.table-wrapper {
  margin: 24px 0 42px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--dark-section-color);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: #dceaf4;
  font-size: 0.86rem;
  text-align: left;
}

.data-table th {
  background: var(--secondary-color);
  color: var(--light-text);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 26px 0 42px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 20px 20px 20px 66px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--dark-section-color);
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: #102100;
  content: counter(steps);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 42px;
}

.faq-list details {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--dark-section-color);
  overflow: hidden;
}

.faq-list summary {
  padding: 18px 20px;
  color: var(--light-text);
  font-weight: 850;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted-text);
}

.responsible-panel,
.final-cta {
  margin: 36px 0;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--dark-section-color), #0c2138);
}

.responsible-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 30px;
  align-items: center;
}

.responsible-panel h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.2;
}

.responsible-panel p {
  margin: 0;
  color: var(--muted-text);
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.final-cta p {
  max-width: 720px;
  margin: 0 auto 22px;
  color: var(--muted-text);
}

footer {
  padding: 56px 0 22px;
  border-top: 1px solid var(--border-color);
  background: #030a12;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand img {
  width: auto;
  height: 52px;
  margin-bottom: 14px;
}

.footer-brand p,
.footer-small {
  color: var(--muted-text);
  font-size: 0.82rem;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--light-text);
  font-size: 0.95rem;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0 0 8px;
}

.footer-col a {
  color: var(--muted-text);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-small {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.side-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: min(320px, 88vw);
  height: 100%;
  padding: 26px;
  background: var(--darker-section-color);
  box-shadow: var(--box-shadow);
  transform: translateX(-105%);
  transition: transform 0.25s;
}

.side-panel.is-open {
  transform: translateX(0);
}

.side-panel > img {
  width: auto;
  height: 52px;
  margin: 16px 0 30px;
}

.side-panel li {
  margin-bottom: 8px;
}

.side-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--light-text);
  font-weight: 750;
  text-decoration: none;
}

.side-panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--light-text);
  font-size: 2rem;
  cursor: pointer;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

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

  .side-panel-open {
    display: inline-grid;
    place-items: center;
  }

  .games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .facts-grid,
  .promotions-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-content {
    min-height: 68px;
  }

  .logo img {
    height: 44px;
  }

  .btn-container {
    display: none;
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto 16px;
  }

  .hero-section {
    width: calc(100% - 28px);
    min-height: 440px;
    margin-top: 14px;
  }

  .hero-content {
    min-height: 440px;
    padding: 32px 0;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(3, 12, 22, 0.96), rgba(3, 12, 22, 0.67));
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-block {
    padding: 48px 0;
  }

  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 520px) {
  .facts-grid,
  .promotions-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-card-body {
    padding: 10px;
  }

  .game-card-body h3 {
    font-size: 0.82rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
