/* СБРОС */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #12163a;
  color: #fff;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #0c64e0, #094ba8);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: none;
}
.btn-red {
  background: linear-gradient(to bottom, #e60000, #b80000);
}
.btn-blue {
  background: linear-gradient(to bottom, #0c64e0, #094ba8);
}

/* Основной контейнер */
.mainWrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1px; /* Добавляем отступ сверху, равный высоте хедера */
}

/* Шапка */
/* Общие стили для шапки */
.header {
  position: fixed; /* Хедер остается фиксированным */
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #0c194f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  height: 75px;
}

/* Основные стили для шапки */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  flex: 0 0 auto; /* Фиксированная ширина для логотипа */
}

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

.nav-menu {
  background-color: #0c1f68;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  position: relative; /* Убираем фиксированное позиционирование */
}

.nav-menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-menu a.active,
.nav-menu a:hover {
  color: #ffcc00;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    align-items: center;
  }

  .header-buttons a {
    font-size: 14px;
    padding: 8px 12px;
  }

  .nav-menu ul {
    flex-direction: row;
    gap: 10px;
  }

  .nav-menu a {
    font-size: 14px;
  }
}



body::before {
  content: "";
  display: block;
  height: 74px;
}

.subheader {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  background: #111e51;
}
.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  width: 110%;
  height: 100%;
  position: absolute;
  top:0; left:0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-content {
  position: absolute;
  left: 1%;
  bottom: 20%;
  max-width: 30%;
}
.slide-content h2 {
  font-size: 32px;
  margin-bottom: 10px;
}
.slide-content p {
  font-size: 20px;
  margin-bottom: 15px;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

@media (max-width: 768px) {
  .slide-content {
    display: none; /* Скрыть текст и кнопку */
  }
}

.mainContent {
  flex: 1;
  padding: 20px;
  background: #111e51;
}
.games-content {
  position: relative; 
  display: flex;
  gap: 20px;
}
.games-categories {
  flex: 1;
}

.games-categories-block {
  width: 100%;
  background-color: #0c1f68;
  padding: 10px 20px;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  border-bottom: 2px solid #0a1638;
  border-radius: 10px;
  overflow-x: auto; /* Добавляем горизонтальную прокрутку */
  white-space: nowrap; /* Запрещаем перенос строк */
}

.games-menu ul {
  display: inline-flex; /* Используем inline-flex вместо flex */
  list-style: none;
  gap: 10px; /* Отступы между элементами */
}

.games-menu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  transition: background 0.3s;
  border-radius: 8px;
  display: inline-block; /* Убедимся, что ссылки не растягиваются */
}

.games-menu a.active,
.games-menu a:hover {
  background: #0c64e0;
}


/* Мобильная адаптация */
@media (max-width: 768px) {
  .games-menu ul {
    justify-content: flex-start; /* Ссылки выравниваются влево */
  }
}

.all-games {
  margin: 20px 0;
  text-align: center;
}

.all-games > .btn.btn-blue {
  margin-top: 20px;
}

.recommended {
  position: relative;
  margin: 20px 0;
  padding: 15px;
  background: #0b1e4f;
  border: 2px solid #1f2f6f;
  border-radius: 8px;
  animation: shine 3s infinite; /* Анимация блеска */
}

@keyframes shine {
  0% {
    box-shadow: 0 0 5px #1f2f6f, 0 0 10px #1f2f6f, 0 0 15px #1f2f6f;
  }
  50% {
    box-shadow: 0 0 10px #3a4fb7, 0 0 20px #3a4fb7, 0 0 30px #3a4fb7;
  }
  100% {
    box-shadow: 0 0 5px #1f2f6f, 0 0 10px #1f2f6f, 0 0 15px #1f2f6f;
  }
}

.recommended h3 {
  margin-bottom: 10px;
}
.recommended .game-card {
  position: relative; /* Чтобы псевдоэлемент находился внутри карточки */
  background: linear-gradient(120deg, #1c2b5a, #273875);
  border: 1px solid #6b7296;
  transition: box-shadow 0.3s, transform 0.3s;
  overflow: hidden; /* Скрываем выходящие элементы */
}

.recommended .game-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 200%;
  height: 200%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  animation: light-glow 3s infinite;
  pointer-events: none; /* Блик не мешает кликам */
}

@keyframes light-glow {
  0% {
    left: -150%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 150%;
  }
}


.recommended .game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.5);
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}
.game-card {
  background: #1c2b5a;
  border-radius: 4px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}
.game-card img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 5px;
}
.game-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.game-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.jackpot-block {
  position: relative; /* Для анимации псевдоэлементов */
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(120deg, #1e285b, #141e47);
  border: 3px solid #3a4fb7;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(58, 79, 183, 0.5);
  overflow: hidden;
}

.jackpot-block h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.jackpot-amount {
  font-size: 60px;
  font-weight: bold;
  color: #fff700;
  text-shadow: 0 0 15px rgba(255, 247, 0, 1), 0 0 30px rgba(255, 247, 0, 0.8);
  animation: jackpot-flicker 1.5s infinite alternate; /* Эффект мерцания */
}

/* Анимация мерцания суммы */
@keyframes jackpot-flicker {
  0% {
    text-shadow: 0 0 15px rgba(255, 247, 0, 1), 0 0 30px rgba(255, 247, 0, 0.8);
  }
  100% {
    text-shadow: 0 0 10px rgba(255, 247, 0, 0.8), 0 0 20px rgba(255, 247, 0, 0.6);
  }
}

/* Пульсирующее свечение вокруг карточки */
.jackpot-block::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(116, 132, 223, 0.2), transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 3s infinite;
  pointer-events: none; /* Чтобы эффект не мешал кликам */
}

@keyframes glow-pulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
}

.jackpot-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  pointer-events: none;
}



.collections {
  background: #0f1b4d;
  padding: 20px;
  text-align: center;
}
.collections-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 15px;
  margin: 20px 0;
}
.collection-item {
  background: #1c2b5a;
  border-radius: 4px;
  padding: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.collection-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}
.collection-item img {
  max-width: 100%;
  margin-bottom: 5px;
}

.description-section {
  background-color: #0c194f;
  padding: 30px 20px;
}

.description-section h1,
.description-section h2,
.description-section h3,
.description-section h4 {
  color: #ffffff; /* Белый текст для заголовков */
  margin-bottom: 15px;
  margin-top: 15px;
}

.description-section h1 {
  font-size: 32px;
  font-weight: bold;
}

.description-section h2 {
  font-size: 24px;
  font-weight: bold;
}

.description-section h3 {
  font-size: 20px;
  font-weight: bold;
}

.description-section h4 {
  font-size: 18px;
  font-weight: bold;
}

.description-section p {
  color: #e0e0e0; /* Светло-серый текст */
  line-height: 1.6;
}

.description-section b {
  font-weight: bold;
  color: #ffffff; /* Белый жирный текст */
}

.description-section i {
  font-style: italic;
  color: #dcdcdc; /* Светло-серый курсив */
}

.description-section ul,
.description-section ol {
  margin: 20px 0;
  padding-left: 40px;
  color: #e0e0e0; /* Светло-серый текст списка */
}

.description-section ul li,
.description-section ol li {
  margin-bottom: 10px; /* Расстояние между элементами списка */
}

.description-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.description-section table th,
.description-section table td {
  border: 1px solid #ffffff; /* Белые границы */
  color: #ffffff; /* Белый текст */
  text-align: center; /* Текст по центру */
  padding: 10px 15px; /* Отступы внутри ячеек */
  word-wrap: break-word; /* Перенос слов */
  white-space: normal; /* Разрешаем перенос текста */
}

.description-section table th {
  background-color: #1e2d60; /* Цвет для главной строки */
  font-weight: bold;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .description-section table {
    display: block; /* Превращаем таблицу в блок */
    overflow-x: auto; /* Добавляем горизонтальную прокрутку */
    white-space: nowrap; /* Сохраняем строки без переносов */
  }

  table th,
  table td {
    white-space: nowrap; /* Не разрываем текст внутри ячеек */
    font-size: 12px; /* Уменьшаем шрифт для мобильных */
    padding: 8px; /* Уменьшаем отступы */
  }
}



.description-section img {
  max-width: 100%; /* Картинки не выходят за пределы контейнера */
  height: auto; /* Автоматическая высота для сохранения пропорций */
  margin: 20px auto; /* Горизонтальное центрирование + отступы сверху и снизу */
  display: block; /* Чтобы применилось центрирование через margin */
}

.description-section a {
  color: #f51818;
  text-decoration: none;
  font-weight: 600;
  padding: 5px;
  transition: color 0.2s;
}
.description-section a.active, 
.description-section a:hover {
  color: #ffcc00;
}

/* Основной контейнер FAQ */
.faq-section {
  margin: 40px auto;
  padding: 20px 30px;
  max-width: 800px;
  background: linear-gradient(145deg, #0b1e4f, #141e47);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  color: #fff;
}

/* Заголовок секции */
.faq-section h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Каждый элемент FAQ */
.faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #6b7296;
  background: #1e285b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Вопрос (кнопка) */
.faq-question {
  width: 100%;
  background: linear-gradient(120deg, #273875, #1e285b);
  color: #fff;
  border: none;
  font-size: 18px;
  text-align: left;
  padding: 15px 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, padding 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(120deg, #3a4fb7, #273875);
  padding-left: 25px; /* Эффект отступа при наведении */
}

/* Ответ (скрытый блок) */
.faq-answer {
  display: none; /* Скрыто по умолчанию */
  padding: 15px 20px;
  background: linear-gradient(120deg, #1c2b5a, #141e47);
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  border-top: 1px solid #6b7296;
  animation: fadeIn 0.3s ease forwards;
}

/* Плавное появление ответа */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Иконки для вопросов */
.faq-question::after {
  content: '\002B'; /* Плюс */
  font-size: 20px;
  float: right;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '\2212'; /* Минус */
  transform: rotate(180deg); /* Анимация поворота */
}



.footer {
  background-color: #0c0f39;
  padding: 20px 0;
  color: #fff;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Добавлено для мобильной адаптации */
  gap: 10px; /* Добавлено для отступов между элементами */
}

.footer-payments {
  list-style: none;
  display: flex;
  flex-wrap: wrap; /* Позволяем логотипам переноситься на новую строку */
  gap: 10px;
  justify-content: center; /* Центрируем логотипы */
}

.footer-payments li img {
  height: 30px;
}

.locale-select {
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  gap: 20px;
  text-align: center;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap; /* Позволяем ссылкам переноситься */
  justify-content: center;
  list-style: none;
  gap: 10px; /* Уменьшен разрыв между ссылками */
  padding: 10px 0;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 5px;
  transition: color 0.2s;
}

.footer-nav a.active, 
.footer-nav a:hover {
  color: #ffcc00;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  text-align: center;
}

.footer-icons img {
  height: 40px;
  margin-left: 10px;
}

.locale-select .locale-flag img {
  width: 24px;
  height: 24px;
  object-fit: cover;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column; /* Элементы идут друг под другом */
    text-align: center; /* Центрируем содержимое */
  }

  .footer-payments {
    justify-content: center; /* Центрируем логотипы */
  }

  .footer-payments li img {
    height: 24px; /* Уменьшаем размер логотипов */
  }

  .footer-nav ul {
    flex-direction: column; /* Ссылки в столбик */
    gap: 5px; /* Уменьшаем расстояние между ссылками */
    text-align: center;
  }

  .footer-nav a {
    font-size: 14px; /* Уменьшаем шрифт ссылок */
  }

  .locale-select {
    justify-content: center; /* Центрируем выбор языка */
  }
}


.buttonUp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0c64e0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.buttonUp:hover {
  opacity: 1;
}

@media (max-width: 992px) {
  .games-content {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    order: 2;
  }
  .games-categories {
    order: 1;
  }
  .subheader {
    height: 300px;
  }
  .slide-content {
    max-width: 80%;
  }
}
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 10px;
  }
  .nav ul {
    flex-direction: column;
  }
  .footer-top {
    flex-direction: column;
    gap: 10px;
  }
  .footer-info {
    gap: 10px;
    padding: 10px;
  }
}
