





/* 1. СБРОС СТИЛЕЙ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Rubik', Arial, sans-serif;
    font-style: italic;
    font-weight: 300;
    background-color: #fff;
    color: #333;
    line-height: 1.5;
      
  
}



/* 2. ФОТО: Авто-размер и закругление */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    
}

/* 3. ШАПКА */
header {
   position: fixed;   /* Фиксируем сверху */
    top: 0;            /* Прижимаем вплотную к верху */          
    width: 100%;       /* Растягиваем на всю ширину экрана */
    background-color: #000000; /* Обязательно задай фон, иначе будет прозрачным */
    z-index: 1000;     /* Чтобы хедер был поверх всего контента */
    height: 60px;
   
   
}

.description-text  {
    margin-top: 10px;
    margin-bottom: 30px;    
    text-align: center;
    position: relative;
}

.header-inner {
    max-width: 1200px;     
    display: flex;
  justify-content: space-between;
   align-items: center;
    margin: 0 auto;
   
    
}


/* 1. Сбрасываем глобальное растягивание, если оно есть */
img {
    max-width: 100%;
    height: auto;
}

/* 2. Настраиваем логотип */
.logo-box img {
    width: 60px; /* Фиксируем ширину из вашего HTML */
    height: 60px;
    object-fit: contain; /* Чтобы картинка не деформировалась */
    display: block;
}




.burger-menu {
    display: none; /* Прячем на широком экране */
    flex-direction: column;
 justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
      gap: 4px;
       margin-right: 10px;
  
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff; /* Белые полоски */
    border-radius: 2px; 
    
}





.logo-box {
    width: 60px;
      margin-left: 10px;
}

.logo-box img {
    border-radius: 0; /* Логотип без закругления */
}




/* Сам блок меню */
.nav-menu {
    display: flex;
    flex: 1;              /* Заставляет меню занять всё свободное пространство */
    justify-content: flex-end; 
    align-items: center;  /* Центрирует вертикально */
    width: 100%;          /* На всякий случай, если flex:1 не сработает */
}

/* Список внутри */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
   
}

.nav-menu li {
    display: inline-block;
}

.nav-menu a {
    display: inline-block;
    color: #ffffff; 
    background-color: transparent;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    background-color: #ff9500;
    color: #000;
}







.language-switcher {
    position: relative;
    width: 80px;
    height: 60px;
    flex-shrink: 0;
}

.current-flag-box {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flag-main {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #333;
    transition: all 0.3s ease;
    display: block;
}

.current-flag-box:hover .flag-main {
    border-color: #DC143C;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
    transform: scale(1.05);
}

/* ВЫПАДАЮЩИЙ СПИСОК ФЛАГОВ */
.flags-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px;
    min-width: 100px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-switcher:hover .flags-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.flag-item {
    display: block;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.flag-item:last-child {
    margin-bottom: 0;
}

.flag-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #444;
    display: block;
    transition: all 0.3s ease;
}

.flag-item:hover {
    background: #2a2a2a;
}

.flag-item:hover img {
    border-color: #DC143C;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    transform: scale(1.1);
}








.lang-picker {
    background: #333;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
}

/* 4. ГЛАВНЫЙ КОНТЕЙНЕР */
  .container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 10px;
    position: relative;
    margin-top: 70px;
     justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center;     /* Центрируем по вертикали (на всякий случай) */
     }

/* Контейнер */
.hero-section {
    display: flex;
    align-items: flex-start; /* Текст вровень с верхом фото */
    gap: 20px;               /* Жестко 20px между ними */
}

.hero-section2 {
    display: flex;
    align-items: flex-start; /* Текст вровень с верхом фото */
    gap: 20px;               /* Жестко 20px между ними */
    margin-bottom: 30px;
      justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center;  
   
}

/* Блок с фото */
.hero-image {
   width: 100%;             /* Контейнер занимает всю ширину */
    display: flex;           /* Включаем гибкий контекст */
   justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center;   
         
}

/* Само фото */
.hero-image img {
  max-width: 100%;         /* Чтобы фото не вылезало за экран телефона */
    height: auto;            /* Сохраняем пропорции */
    display: block;          /* Убираем лишние зазоры внизу */
    border-radius: 8px;  
     justify-content: center; 
    align-items: center;     /* Скругляем углы для красоты */
}


.hero-content h1{
    margin: 10px;   
}



.hero-image1 {
    width: 100%;             /* Контейнер занимает всю ширину */
    display: flex;           /* Включаем гибкий контекст */
    justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center;     /* Центрируем по вертикали (на всякий случай) */
    margin: 40px 0;          /* ЖЕСТКИЙ ОТСТУП: 40px сверху и снизу */
    
}

.hero-image1 img {
    max-width: 100%;         /* Чтобы фото не вылезало за экран телефона */
    height: auto;            /* Сохраняем пропорции */
    display: block;          /* Убираем лишние зазоры внизу */
    border-radius: 8px;     /* Скругляем углы для красоты */
}

.hero-image2 {
    width: 100%;             /* Контейнер занимает всю ширину */
    display: flex;           /* Включаем гибкий контекст */
    justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center;     /* Центрируем по вертикали (на всякий случай) */
    margin: 40px 0;   
    
}


.table-container {
    margin: 20px 0; /* Убрал auto, чтобы не центрировать насильно, если не нужно */
    width: 100%;
    max-width: fit-content; /* Контейнер подстраивается под ширину таблицы */
    min-width: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
    font-family: sans-serif;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pirots-table {
    /* Таблица НЕ растягивается на 100%, а занимает место по контенту */
    width: auto; 
    min-width: 100%; /* Но на мобилках займет всю ширину */
    border-collapse: collapse;
}

/* Настройки всех ячеек */
.pirots-table th, 
.pirots-table td {
    padding: 12px 20px;
    text-align: left;
    /* Это заставляет колонки сжиматься максимально плотно к тексту */
    width: 1%; 
    white-space: nowrap; /* Чтобы текст не прыгал на новую строку */
}

/* Первый столбец (Параметры) */
.pirots-table td:first-child {
    font-weight: bold;
    background-color: #f9f9f9;
    color: #000000;
    border-right: 1px solid #eee;
}

/* Второй столбец (Значения) - растягиваем только его, если нужно заполнить место */
.pirots-table td:last-child {
    width: auto; 
    color: #333;
}

/* ШАПКА */
.pirots-table thead {
    background-color: #000000;
}

.pirots-table th {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Линии и зебра */
.pirots-table td {
    border-bottom: 1px solid #eee;
}

.pirots-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.pirots-table tbody tr:hover {
    background-color: #f1f1f1;
}



.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.button-container a {
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 100%;
    padding: 16px 20px;
    text-align: center;
    background: #DC143C;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    box-sizing: border-box;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    
   
    font-size: clamp(12px, 2vw, 16px);  
    line-height: 1.3;
    white-space: normal;     /* Разрешаем перенос */
    overflow-wrap: break-word;
    hyphens: auto;
}

.button-container a:hover {
    background: #DC143C;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 34, 34, 0.4);
}

/* Базовый стиль кнопок */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    font-family: 'Arial', sans-serif;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
    box-sizing: border-box;
    background-color: #DC143C;
    color: #ffffff;
    border: 2px solid #DC143C;
    
    /* ГЛАВНОЕ - текст сжимается */
    font-size: clamp(13px, 2.5vw, 16px);
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
}

.btn:hover {
    background-color: #DC143C;
    border-color: #DC143C;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.5);
}

.btn-bonus {
    background-color: #DC143C;
    border-color: #DC143C;
}

.btn-bonus:hover {
    background-color:#DC143C;
    border-color: #DC143C;
}



.games-grid {
  display: grid;
 grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

.game-card {
  display: flex;
  flex-direction: column; /* Контент в столбик: сначала картинка, потом текст */
  text-decoration: none;
  background: #222; /* Цвет подложки под текстом */
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid #333;
}

/* Контейнер картинки: делаем его вытянутым вверх */
.game-img-container {
  position: relative;
  width: 100%;
  height: 280px; /* ИЗМЕНЕНИЕ: Увеличил высоту, чтобы была вытянутой вверх */
  overflow: hidden;
}

.game-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

/* Затемнение при наведении */
.game-img-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

/* Блок с названием снизу */
.game-info {
  padding: 15px;
  text-align: center;
}

.game-info h3 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Иконка Play (как в прошлый раз) */
.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 50px; height: 50px;
  background: #ffcc00;
  border-radius: 50%;
  display: flex; justify-content: center; align-items: center;
  color: #000; font-size: 20px;
  opacity: 0; z-index: 3;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- ЭФФЕКТЫ --- */

.game-card:hover {
  transform: translateY(-5px); /* Вся карточка чуть всплывает */
}

.game-card:hover .game-img-container::after {
  background: rgba(0, 0, 0, 0.8); /* Картинка становится темной */
}

.game-card:hover .game-image {
  transform: scale(1.1);
}

.game-card:hover .play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-card:hover .game-info h3 {
  color: #ffcc00; /* Название игры подсвечивается */
}



.ms-box {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 20px 0;
  text-align: left;
}

.ms-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Имя и 'автор' в одну линию */
.ms-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: bold;
}

.ms-tag {
  color: #28a745;
  font-size: 14px;
  font-weight: 400;
  text-transform: lowercase;
}

.ms-text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  color: #333;
}

.ms-date {
  font-size: 12px;
  color: #888;
}



/* Заголовок секции */
.faq-title {
  text-align: center;
  font-size: 28px;
  margin: 40px 0 20px;
  font-family: sans-serif;
}

/* Общий контейнер */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 2px solid #eee;
}

.faq-item {
  border-bottom: 2px solid #eee;
}

/* Прячем чекбокс */
.faq-input {
  display: none;
}

/* Вопрос и область клика */
.faq-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  user-select: none;
}

.faq-label dt {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  color: #222;
}

/* Тонкая стрелка-шеврон */
.faq-label::after {
  content: '';
  width: 10px;
  height: 10px;
  /* МЕНЯЕМ ЗДЕСЬ: ставим серый цвет вместо зеленого */
  border-right: 2px solid #888; 
  border-bottom: 2px solid #888; 
  
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Ответ (скрыт по умолчанию) */
.faq-content {
  display: none;
}

.faq-content dd {
  margin: 0;
  padding: 0 20px 20px;
  color: #555;
  line-height: 1.6;
  font-size: 16px;
}

/* Работа аккордеона */
.faq-input:checked + .faq-label::after {
  transform: rotate(-135deg); /* Поворот стрелки вверх */
}

.faq-input:checked ~ .faq-content {
  display: block; /* Показываем ответ */
}

/* Ховер эффект для удобства */
.faq-label:hover {
  background-color: #fafafa;
}




/* 7. БАННЕР */
.banner-box {
    text-align: center;
    margin-top: 40px;
}

.banner-img img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}




/* Основной блок футера */
.footer-black-static {
    background-color: #000000;
    padding: 50px 0 30px 0;
    width: 100%;
    font-family: Arial, sans-serif;
    color: #ffffff;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Настройка ряда провайдеров */
.providers-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

/* Контейнер для каждого фото */
.p-item {
    flex: 1;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Сами фотографии */
.p-item img {
   
    object-fit: contain;
    border-radius: 0;
    border: none;
    background: transparent; 
    display: inline-block;
}

/* Линия-разделитель */
.footer-line {
    height: 1px;
    background-color: #1a1a1a;
    margin-bottom: 30px;
}

/* Нижняя панель */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}






.footer-pages {
    display: flex;
    gap: 20px;
     justify-content: center;
}

.footer-pages a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-pages a:hover {
    color: #fff;
}

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .providers-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}




@media (max-width: 1000px) {
.hero-section {
        flex-direction: column;
        text-align: center;
    }








@media (max-width: 1000px) {
   .games-grid {
  display: grid;
 grid-template-columns: repeat(3, 1fr);
  gap: 20px; 
  margin: 30px auto;
  padding: 0 15px;
}



.burger-menu {
    display: none; /* Прячем на широком экране */
    flex-direction: column;
 justify-content: center;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
      gap: 4px;
       margin-right: 10px;
  
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff; /* Белые полоски */
    border-radius: 2px; 
    
}



@media (max-width: 700px) {
   .games-grid {
  display: grid;
 grid-template-columns: repeat(1, 1fr);
  gap: 20px; 
  margin: 30px auto;
  padding: 0 15px;
}
 .ms-box {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin: 20px 0;
  text-align: left;
  flex-direction: column; /* Элементы встают друг под друга */
    align-items: center;
}


 
@media (max-width: 1200px) {

header {
   position: fixed;   /* Фиксируем сверху */
    top: 0;            /* Прижимаем вплотную к верху */          
    width: 100%;       /* Растягиваем на всю ширину экрана */
    background-color: #000000; /* Обязательно задай фон, иначе будет прозрачным */
    z-index: 1000;     /* Чтобы хедер был поверх всего контента */
    height: 60px;
   
}
  
    .nav-container {
        display: none;
    }
    
    .container {
    max-width: 1000px;
    margin: 10px auto;
    padding: 0 10px;
    position: relative;
    margin-top: 70px;
     }
    

  
    
@media (max-width: 700px) {
    
    .burger-menu {
        display: flex;
    }


   
     .nav-menu {
        position: fixed;
        top: 60px;
        right: 0;
        width: 75%;
        max-width: 300px;
        background-color: #000;
        padding: 20px 0;
        display: flex;
        flex: 1;              /* Заставляет меню занять всё свободное пространство */
        justify-content: center; 
        align-items: center;  /* Центрирует вертикально */
        width: 100%;          /     
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 0 10px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
  

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #333;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 18px 25px;
        text-align: left;
    }
    
 .language-switcher {
    position: fixed;
    top: 60px;
    right: 0;
    width: 75%;
    max-width: 300px;
    background: #000; /* ← вернул фон */
    padding: 25px 25px;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-top: 215px; /* ← уменьшил щель */
    border-radius: 0 0 0 10px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

    
    .nav-menu.active ~ .language-switcher {
        opacity: 1;
        visibility: visible;
    }
    
    .current-flag-box {
        display: none !important;
    }
    
    /* ФЛАГИ ГОРИЗОНТАЛЬНО */
    .flags-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        display: flex !important;
        gap: 15px;
        align-items: flex-start;
    }
    
 .flag-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* ← все начинаются сверху */
    padding: 0 !important;
    border: none !important;
    text-decoration: none;
    gap: 5px; /* ← расстояние до текста */
}

.flag-item img {
    width: 50px !important;
    height: 33px !important;
    border: 2px solid #555;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block !important; /* ← убирает отступы */
    margin: 0 !important; /* ← без отступов */
    object-fit: cover !important; /* ← одинаковый размер */
    vertical-align: top !important; /* ← выравнивание */
}
  
}

