* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Ubuntu", serif;
    font-weight: 400;
    font-style: normal;
    background-color: #f5f5f6;
}

.header {
    background: linear-gradient(to right, #b90000, #e64520);
    display: grid;
    grid-template-columns: 0.1fr 1fr 1fr 1fr;
    align-items: center;
    padding: 10px 20px;
    color: white;
    position: relative;
}

/* Бургер-меню (скрыт на десктопе) */
.burger-menu {
    display: flex; /* Скрыт по умолчанию */
    width: 25px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 4px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* Анимация превращения в крестик */
.burger-menu.open span:nth-child(1) {
    transform: translateY(9.5px) rotate(47deg);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
}
.burger-menu.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Навигация (по умолчанию видна) */
.main-nav {
    display: flex;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav ul a {
    text-decoration: none;
    color: white;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

.main-nav a:hover {
    color: #ffd700;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    width: 40px;
}

/* Кнопки */
.auth-buttons {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.register, .login {
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
}

.register {
    background: white;
    color: red;
}

.register:hover {
    background: #ffcccb;
}

.login {
    background: #f8f8f8;
    color: red;
}

.login:hover {
    background: #e0e0e0;
}

/* Медиа-запрос: делаем бургер активным только на мобильных устройствах */
@media (max-width: 768px) {
    .header {
        grid-template-columns: 0.1fr 1fr 1fr;
    }

    .burger-menu {
        display: flex; /* Показываем бургер только на мобильных */
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }

    /* Открытие меню */
    .main-nav.open {
        transform: translateY(0);
    }

    /* Список навигации теперь идет в колонку */
    .main-nav ul {
        list-style: none;
        width: 100%;
        text-align: center;
        padding: 0;
        display: flex;
        flex-direction: column; /* Переключаем на колонку */
        gap: 20px; /* Добавляем отступы между пунктами */
    }

    .main-nav li {
        font-size: 22px;
        font-weight: bold;
        color: white;
        padding: 15px 0;
        width: 100%;
        text-transform: uppercase;
        transition: color 0.3s, background 0.3s;
        border-radius: 5px;
    }

    /* Разделители */
    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Эффект при наведении */
    .main-nav li:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #ffd700;
        cursor: pointer;
    }

    /* Анимация появления */
    .main-nav li {
        opacity: 0;
        transform: translateY(-10px);
        animation: fadeIn 0.1s ease-in-out forwards;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Секция Hero */
.hero {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

/* Контейнер слайдера */
.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Индивидуальные слайды */
.slide {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease-in-out;
}

/* Активный слайд (показанный) */
.slide.active {
    opacity: 1;
}

/* Контент внутри слайда */
.slide-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 10px;
}

/* Заголовок */
.slide-content span {
    font-size: 32px;
    font-weight: bold;
    display: block;
}

/* Описание */
.slide-content p {
    font-size: 18px;
    margin-top: 10px;
}

/* Ссылки-кнопки */
.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    background: #ffd700;
    color: black;
    text-decoration: none;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #ffcc00;
}

.top-slots-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Заголовок секции */
.top-slots-header {
  margin-bottom: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  display: block;
  text-align: left;
}

/* Сетка карточек слотов */
.top-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 20px;
}

/* Карточка слота */
.slot-item {
  text-align: center;
}

/* Обёртка для изображения */
.slot-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Изображение слота */
.slot-image img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

/* Увеличение картинки при hover */
.slot-image:hover img {
  transform: scale(1.05);
}

/* Оверлей, появляющийся при наведении */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slot-image:hover .overlay {
  opacity: 1;
}

/* Кнопки */
.btn {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  margin: 5px;
  transition: background-color 0.3s;
}

.play-btn {
  background-color: #e74c3c;
}
.play-btn:hover {
  background-color: #c0392b;
}

.demo-btn {
  background-color: #2980b9;
}
.demo-btn:hover {
  background-color: #1f5e80;
}

/* Название слота (теперь в span) */
.slot-title {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  color: #333;
}

/* --- Адаптация под устройства --- */

/* Планшеты и крупные телефоны */
@media (max-width: 768px) {
  .top-slots {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .slot-title {
    font-size: 14px;
  }
  .btn {
    padding: 8px 14px;
  }
}

/* Мобильные устройства: 2 карточки в ряд */
@media (max-width: 480px) {
  .top-slots {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
    padding: 10px;
  }
  .section-title {
    font-size: 20px;
  }
  .slot-title {
    font-size: 13px;
  }
  .btn {
    padding: 6px 12px;
    font-size: 14px;
  }
}

.top-players-box {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center; 
  }

  .top-players-title {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
    text-align: center;
  }

  .top-players-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .top-players-box ul li {
    border-bottom: 1px solid #e74c3c;
    padding: 10px 0;
  }

  .top-players-box ul li:last-child {
    border-bottom: none;
  }

  .top-players-box ul li a {
    display: block;
    font-size: 18px;
    color: #333;
    text-decoration: none;
  }

  .top-players-box ul li a:hover {
    color: #e74c3c;
  }

  .official-site-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }

  .official-site-btn:hover {
    background-color: #c0392b;
  }

  /* Адаптивность для мобильных устройств */
  @media (max-width: 480px) {
    .top-players-box {
      padding: 15px;
    }
    .top-players-title {
      font-size: 20px;
    }
    .top-players-box ul li a {
      font-size: 16px;
    }
    .official-site-btn {
      font-size: 14px;
      padding: 10px 20px;
    }
  }
  
  .list-group-item {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 16px;
}

.main-content {
    width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }

  /* Заголовок h1 */
  .main-content h1 {
    font-size: 38px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  /* Подзаголовок h2 */
  .main-content h2 {
    font-size: 30px;
    color: #e74c3c;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
  }

  /* Стили для изображений */
  .main-content img {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 8px;
    border: 4px solid #e74c3c;
  }

  /* Абзацы */
  .main-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin: 20px 0;
  }

  /* Список и его элементы */
  .main-content ul, .main-content ol {
    margin: 20px 0;
    padding-left: 40px;
  }
  .main-content ul li, .main-content ol li {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
  }
  .main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background-color: #b71c1c; /* Общий фон таблицы (бордовый) */
    color: #fff;
  }
  .main-content table th,
  .main-content table td {
    border: 1px solid #c0392b;
    padding: 12px 16px;
    vertical-align: top;
  }
  .main-content table th {
    background-color: #c0392b;
    font-weight: bold;
    text-align: left;
    width: 220px;
  }

  /* Адаптивность для устройств с max-width: 768px */
  @media (max-width: 768px) {
    .main-content {
      width: 90%;
      padding: 30px;
    }
    .main-content h1 {
      font-size: 28px;
    }
    .main-content h2 {
      font-size: 22px;
    }
    .main-content p,
    .main-content ul li, .main-content ol li {
      font-size: 16px;
    }
    .main-content table th,
    .main-content table td {
      font-size: 16px;
      padding: 10px 12px;
    }
    .main-content table {
        width: 100%;
        max-width: 100%;
        border-collapse: collapse;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
  }

  /* Адаптивность для устройств с max-width: 480px */
  @media (max-width: 480px) {
    .main-content {
      width: 95%;
      padding: 20px;
    }
    .main-content h1 {
      font-size: 26px;
    }
    .main-content h2 {
      font-size: 22px;
    }
    .main-content p,
    .main-content ul li, .main-content ol li {
      font-size: 14px;
    }
    .main-content table th,
    .main-content table td {
      font-size: 14px;
      padding: 8px 10px;
    }
  }


  /* Заголовок в блоке отзывов */
  .main-content reviews-block h2 {
    font-size: 28px;
    color: #e74c3c;
    margin-bottom: 20px;
    text-align: left;
  }

  /* Каждый отзыв оформлен в <blockquote> */
  .main-content reviews-block blockquote {
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #fff;
    border-left: 4px solid #e74c3c;
    color: #555;
    font-style: italic;
  }

  /* Кнопка-ссылка "Залишити відгук" */
  .main-content reviews-block a:last-of-type {
    display: block;
    margin: 20px auto 0;
    padding: 12px 24px;
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  .main-content reviews-block a:hover {
    background-color: #c0392b;
  }

  /* --- Адаптивность --- */
  @media (max-width: 768px) {
    .main-content {
      width: 90%;
      padding: 30px;
    }
    .main-content reviews-block h2 {
      font-size: 24px;
    }
    .main-content reviews-block blockquote {
      margin: 15px 0;
      padding: 10px;
    }
    .main-content reviews-block a {
      margin-top: 15px;
      padding: 10px 20px;
    }
  }

  @media (max-width: 480px) {
    .main-content {
      width: 95%;
      padding: 20px;
    }
    .main-content reviews-block h2 {
      font-size: 20px;
    }
    .main-content reviews-block blockquote {
      font-size: 14px;
    }
    .main-content reviews-block a {
      font-size: 14px;
      padding: 8px 16px;
    }
  }

  .site-footer {
    background: linear-gradient(to right, #b90000, #e64520);
    color: #fff;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px 10px;
  }
  
.footer-section.logo img {
    max-width:500px;
    height: auto;
}
  
  .footer-section h3 {
    margin-bottom: 10px;
    color: #fff;
  }
  
  .footer-section p,
  .footer-section ul,
  .footer-section li,
  .footer-section a {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 8px;
  }
  
  .footer-section ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
  }
  
  .footer-section ul li a:hover {
    color: #222;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 20px;
    font-size: 13px;
  }
  
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      align-items: center;
    }
    .footer-section {
      margin: 20px 0;
      text-align: center;
    }
  }