* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom, #1a1c2c, #2d3448);
  color: #e6e6fa;
  line-height: 1.8;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  background: linear-gradient(90deg, #2e3a59, #4a6fa5);
  padding: 1.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo img {
  height: 70px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: end;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-link {
  color: #e6e6fa;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
  color: #7fb3ff;
  transform: translateY(-2px);
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 7px;
}

.burger-line {
  width: 34px;
  height: 5px;
  background: #e6e6fa;
  transition: all 0.3s ease;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #34c759;
  color: #fff;
}

.btn-primary:hover {
  background: #2ba644;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: #4a6fa5;
  color: #e6e6fa;
}

.btn-secondary:hover {
  background: #3a5a8a;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.hero {
  background: url("images/hero-bg.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 160px 24px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.7)
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.2rem;
  margin-bottom: 2rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  animation: fadeIn 1.2s ease-in;
}

.hero p {
  font-size: 1.9rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-bg {
  display: none;
}

.games,
.tournaments,
.providers,
.bonuses,
.why-play,
.features,
.community,
.upcoming,
.tips,
.faq,
.demo-game,
.testimonials,
.register,
.disclaimer {
  padding: 7rem 0;
  background: linear-gradient(to bottom, #2d3448, #1a1c2c);
}

h2 {
  font-size: 3.2rem;
  text-align: center;
  margin: 4rem 0 2.5rem;
  color: #e6e6fa;
  animation: slideIn 1s ease;
}

h3 {
  font-size: 1.9rem;
  margin: 1.2rem 0;
  color: #7fb3ff;
}

p {
  font-size: 1.2rem;
  color: #d4d4d8;
}

.game-grid,
.provider-grid,
.bonus-grid,
.testimonial-grid,
.feature-grid,
.community-grid,
.upcoming-grid,
.tips-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 3.5rem;
}

.game-card,
.provider-card,
.bonus-card,
.testimonial-card,
.feature-card,
.community-card,
.upcoming-card,
.tips-card,
.faq-card {
  background: #2e3a59;
  border-radius: 14px;
  padding: 2.2rem;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover,
.provider-card:hover,
.bonus-card:hover,
.testimonial-card:hover,
.feature-card:hover,
.community-card:hover,
.upcoming-card:hover,
.tips-card:hover,
.faq-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.game-img,
.provider-img,
.bonus-img,
.testimonial-img,
.feature-img,
.community-img,
.upcoming-img,
.tips-img,
.faq-img,
.section-img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 1.8rem;
  transition: transform 0.3s ease;
}

.game-img:hover,
.provider-img:hover,
.bonus-img:hover,
.testimonial-img:hover,
.feature-img:hover,
.community-img:hover,
.upcoming-img:hover,
.tips-img:hover,
.faq-img:hover {
  transform: scale(1.06);
}

.section-img {
  display: block;
  margin: 2rem auto;
  max-width: 90%;
}

.tournament-info {
  background: #2e3a59;
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  margin-top: 3rem;
}

.comparison-table {
  margin-top: 3.5rem;
  overflow-x: auto;
  padding: 1.5rem;
}

.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table-content {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: #2e3a59;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.comparison-table-content th,
.comparison-table-content td {
  padding: 1.3rem;
  text-align: left;
  border-bottom: 1px solid #4a5568;
}

.comparison-table-content th {
  background: #2e3a59;
  color: #e6e6fa;
  font-weight: 600;
}

.comparison-table-content td {
  font-size: 1.1rem;
  color: #d4d4d8;
}

.slot-game {
  text-align: center;
}

.slot-canvas {
  border: 5px solid #2e3a59;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  background: #1a1c2c;
}

.controls {
  text-align: center;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bet-input {
  width: 120px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #e6e6fa;
  color: #2e3a59;
  font-size: 1.1rem;
}

.balance-display {
  font-size: 1.2rem;
  color: #d4d4d8;
  margin: 0;
}

.disclaimer {
  font-style: italic;
  color: #7fb3ff;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
}

.testimonial-card .rating {
  color: #ffd700;
  font-size: 1.3rem;
  margin-top: 1.2rem;
}

.register-form {
  max-width: 550px;
  margin: 2.5rem auto;
  display: grid;
  gap: 1.2rem;
}

.form-label {
  font-size: 1.2rem;
  color: #e6e6fa;
}

.form-input,
.form-select {
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: #e6e6fa;
  color: #2e3a59;
  font-size: 1.1rem;
}

.disclaimer-list {
  list-style: none;
  padding: 0;
  color: #d4d4d8;
}

.disclaimer-list li {
  margin: 0.8rem 0;
}

.footer {
  background: #2e3a59;
  color: #e6e6fa;
  padding: 4rem 0;
  text-align: center;
}

.footer-logo {
  height: 65px;
  margin-bottom: 2rem;
}

.footer-nav {
  margin: 2rem 0;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.footer-link {
  color: #7fb3ff;
  text-decoration: none;
  font-size: 1.1rem;
}

.footer-link:hover {
  color: #e6e6fa;
}

.footer-copy {
  margin-top: 2rem;
  font-size: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .nav-list {
    gap: 20px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.6rem;
  }

  .game-grid,
  .provider-grid,
  .bonus-grid,
  .testimonial-grid,
  .feature-grid,
  .community-grid,
  .upcoming-grid,
  .tips-grid,
  .faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-nav .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: #2e3a59;
    padding: 2.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  }

  .main-nav .nav-list.active {
    display: flex;
  }

  .burger-menu {
    display: flex;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }

  .game-grid,
  .provider-grid,
  .bonus-grid,
  .testimonial-grid,
  .feature-grid,
  .community-grid,
  .upcoming-grid,
  .tips-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }

  .bet-input {
    width: 100px;
  }
}
