/* =============== Reset =============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =============== Base =============== */
body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
}

/* =============== Header =============== */
.site-header {
  position: relative;
  background-color: #ff494a;
  border-bottom: 2px solid #621c1d;
  background-image: url('../images/bg_header.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 1rem 20px;
  z-index: 10;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}
.logo img {
  height: 60px;
  margin-bottom: -30px; /* выступает над героем */
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}
.nav .btn {
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #fff;
  background: #fff;
  color: #000;
  box-shadow: 2px 2px 0 #621c1d;
}
.nav .btn.join {
  background-color: #e0f752;
  border-color: #b6c244;
}
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
  .logo img {
    margin-bottom: 0;
  }

}

/* =============== Hero =============== */
.hero {
  position: relative;
  background: url('../images/hero.png') left center/130% auto no-repeat;
  display: flex; align-items: center;
  min-height: 75vh;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px; /* высоту регулировать под ваш экран */
  background: linear-gradient(
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.6) 50%,
    #000 100%
  );
  pointer-events: none;
  z-index: 5; /* чуть выше фона, но ниже текста */
}

.hero::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative; z-index: 1;
  width: 40vw; left: 10vw;
}
.subtitle {
  font-size: 1.25rem;
  color: #e0f752;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ==== Play-Button ==== */
.btn-play {
  display: inline-block;
  background-color: #e0f752;
  color: #000;
  border: 2px solid #b6c244;
/*  border-radius: 8px;*/
  padding: 1rem 2.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  animation: pulse 1.8s ease-in-out infinite;
}
.btn-play__main {
  display: block;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
}
.btn-play__sub {
  display: block;
  font-size: .875rem;
  color: #333;
  margin-top: .25rem;
}
.btn-play:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.05); }
}

/* адаптив Hero */
@media (max-width: 768px) {
  .hero-content {
    width: 90vw; left: 5vw; text-align: center;
  }

}

/* =============== Games Section =============== */
.games {
  padding: 2rem 20px;
  text-align: center;
}
.games h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.games hr {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
  width: 90%;
  margin: 0 auto 1.5rem;
}

.games-gallery {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
   -webkit-overflow-scrolling: touch;

  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;
}

.games-gallery::-webkit-scrollbar {
  display: none;                 /* Chrome/Safari */
}

.games-gallery a {
  /* flex-basis так, чтобы 8 элементов + 7 gaps заняли ровно 100% ширины */
  flex: 0 0 calc((100% - 7rem) / 8);
}

.games-gallery a img {
  width: 100%;    /* картинка растянется на всю ширину своего flex-элемента */
  height: auto;
  display: block;
}


/* =============== Providers Row =============== */
.providers-gallery {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.providers-gallery img {
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #621c1d;
  border-radius: 4px;
  height: 40px;
}

/* =============== Feature Banners =============== */
.features {
  padding: 2rem 20px;
  text-align: center;
}
.features .banner img {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 0 auto 1rem;
}
.feature-text {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
  font-size: 1.1rem;
}
.small {
  font-size: 0.8rem!important;
}
.big {
  display: block;
  margin:0 auto;
  max-width: 400px;
}

/* =============== No-Purchase Block =============== */
.no-purchase {
  background-color: #111;       /* off-black фон */
  padding: 2rem 1rem;
}

.no-purchase__inner {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #222;       /* чуть светлее, чтобы был виден прямоугольник */
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-align: center;
}

.no-purchase__title {
  color: #FFA500;               /* оранжевый текст */
  font-size: 1.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.no-purchase__text {
  color: #FFF;                  /* остальной текст — белый */
  font-size: 1rem;
  line-height: 1.4;
}

.site-footer {
  background: #000;
  color: #ccc;
  padding: 3rem 1rem;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.footer-text {
  margin: 1rem auto;
  line-height: 1.4;
  max-width: 900px;
}

.footer-text.disclaimer {
  color: #999;
  font-size: 0.85rem;
}

.footer-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
}

.footer-badges img {
  height: 50px;
}

.footer-text.affiliation {
  color: #aaa;
  font-size: 0.85rem;
  margin-top: 2rem;
}

.footer-text.copyright {
  color: #fff;
  font-weight: bold;
  
}

/* Кнопки T&C и Privacy */
.footer-legal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-legal-buttons .btn.legal {
  padding: 0.5rem 1.5rem;
  background: #222;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s;
}

.footer-legal-buttons .btn.legal:hover {
  background: #333;
}
.legal {
  margin: 5rem;
} 

/* Адаптив */
@media (max-width: 600px) {
  .footer-text, 
  .footer-text.disclaimer,
  .footer-text.affiliation {
    padding: 0 1rem;
    font-size: 0.8rem;
  }
  .footer-badges {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .footer-legal-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
   .games-gallery a {
    flex: 0 0 50%; /* по 2 в экран */
    padding: 0 0.5rem;
  }

  .games-gallery a img {
    width: 90%; /* чуть меньше, чтобы оставался отступ */
    margin: 0 auto;
  }
}