/* === CSS RESET === */
* , *::before , *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #E6E6E6;
  line-height: 1.5;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

table {
  border-collapse: collapse;
  width: 100%;
}

main, header, footer {
  width: 100%;
  margin: 0; /* можно вообще опустить, если не переопределялось ранее */
  max-width: none; /* если раньше где-то был установлен max-width */
}


/* header */
/* === Header: Общий стиль === */
.header_top {
	background-color: #013d65;
    color: #f2f2f2;
	 padding: 10px;
	 font-size: 12px;
	 font-weight: 400;
	 text-transform:lowercase ;
}
.header {
  background-color: #014f84;
  padding: 10px;
  transition: border-radius 0.2s;
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  gap: 40px;
}
.header__logo img {
	  width: 130px; /* Ширина логотипа */
  height: auto; /* Автоматическая высота для сохранения пропорций */
}

/* === Навигация === */
.header__nav {
	font-weight: 600;
	color: #fff;
	text-transform: uppercase; 
}
.header__nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-direction: row;
}

.header__nav ul li {
  position: relative;
}

/* === Кнопки в шапке === */
.header_buttons {
  display: flex;
  gap: 10px;
  flex-direction: row;
  flex-wrap: nowrap;
}
.header_buttons img {
	  width: 120px; /* Ширина иконок */
  height: auto; /* Автоматическая высота для сохранения пропорций */
  background-color: #013d65;
  border-radius: 100px;
  padding: 5px;
}

/* === Горизонтальное меню (мобильное) === */
.scrollable-menu {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.scrollable-menu li {
  white-space: nowrap;
  flex-shrink: 0;
}

/* === Кастомная полоса прокрутки (Chrome/Safari) === */
.scrollable-menu::-webkit-scrollbar {
  height: 6px;
}

.scrollable-menu::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.scrollable-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* === Мобильная версия header === */
.header__container-mobile {
  display: flex;
  flex-direction: row;
  gap: 6px;
  background-color: #014f84;
   padding: 10px;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
}

.header_buttons-mobile,
.header__button-register,
.header__button-login {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
 
  flex-wrap: nowrap;
}
.header__container-mobile >
.header__logo {
	width: 30%;
}

.header__container-mobile >
.header_buttons-mobile {

}

/* === Media Queries === */
@media (max-width: 767px) {
  .header {
    display: none;
  }

  .scrollable-menu {
    padding-bottom: 5px; 
  }
}

@media (min-width: 768px) {
  .header_mobile {
    display: none;
  }
}
.layout-casino {
	margin-top: 0px;
}

/* main */
.layout {
  display: flex;
  width: 100%;
  height: auto;
  gap: 20px;
  margin-top: 20px;
}



.left, .right {
  width: 15%;
  /* background-color: #f0f0f0; */
  position: sticky;
  top: 40px;
}

.center {
  width: 70%;
  background-color: #ffffff;
  padding: 20px;
}
.center-casino {
	width: 100%;
	padding: 0 0px;
	background:#002E4C;
}


/* 🔽 На мобильных скрываем боковые и центр делаем на всю ширину */
@media (max-width: 768px) {
  .left,
  .right {
    display: none;
  }

  .center {
    width: 100%;
  }
}


/* left  */
.menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px;
}

.category {
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  flex: 1 1 300px;
  max-width: 400px;
}

.title {
  background: #005598;
  color: #fff;
  font-weight: bold;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.category a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.category a span {
  font-weight: bold;
  color: #333;
  margin-right: 5px;
}

.category a img {
  width: 18px;
  height: 18px;
  margin-left: auto;
}

.show-more {
  margin-top: 8px;
  font-size: 14px;
  text-align: center;
  color: #333;
  cursor: pointer;
}

/* 🔽 Адаптивность */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
  }

  .category {
    width: 100%;
    max-width: none;
  }
}


/* right */
.winnings-table {
  max-width: 600px;
  /* margin: 20px auto; */
  /* border: 1px solid #ccc; */
  font-family: sans-serif;
}

.winnings-table .title {
  background: #005598;
  color: white;
  font-weight: bold;
  padding: 10px;
  font-size: 16px;
}

.winnings-table table {
  width: 100%;
  border-collapse: collapse;
}

.winnings-table th,
.winnings-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
  font-size: 12px;
}

.winnings-table th {
  background-color: #e8e8e8;
}

/* 🔽 Адаптивность */
@media (max-width: 600px) {
  .winnings-table table,
  .winnings-table thead,
  .winnings-table tbody,
  .winnings-table th,
  .winnings-table td,
  .winnings-table tr {
    display: block;
  }

  .winnings-table thead {
    display: none;
  }

  .winnings-table td {
    position: relative;
    padding-left: 50%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #ddd;
  }

  .winnings-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 8px;
    font-weight: bold;
    white-space: nowrap;
  }

  /* Добавим data-label через JavaScript (если нужно автоматически) */
}

/* сутеук */
.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;

}

.slide {
  position: relative;
  min-width: 100%;
  overflow: hidden;
}

.slide img {
  width: 100%;
  display: block;
  height: 330px;
  object-fit: fill;
  object-position: center;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #00000088;
  border: none;
  font-size: 2em;
  color: white;
  cursor: pointer;
  z-index: 10;
}

.nav.prev {
  left: 10px;
}

.nav.next {
  right: 10px;
}

.dots {
  position: absolute;
  right: 10px;
  top: 10px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #005598;
}

.matches-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0;
  /* background: #e9f0f5; */
      justify-content: space-between;
}

.match-card {
  flex: 0 0 32.33%;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  min-width: 260px;
}

.match-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 10px;
}

.teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.team {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.team img {
  width: 24px;
  height: 16px;
  object-fit: contain;
}

.vs {
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

.result-label {
  text-align: center;
  font-size: 13px;
  margin: 8px 0 4px;
  color: #555;
}

.odds {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.odd {
    flex: 1;
    background: #f3f3f3;
    margin: 0 4px;
    padding: 5px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    flex-direction: row;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
	 align-items: center;
}

.odd span {
  display: block;
  font-size: 14px;
  font-weight: normal;
  margin-top: 3px;
}

/* Scrollbar for desktop */
.matches-slider::-webkit-scrollbar {
  height: 6px;
}
.matches-slider::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

/* footer  */
.footer {
  background-color: #043f66;
  color: #fff;
  font-family: sans-serif;
  padding: 30px 10px;
  margin-top: 30px;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  border-bottom: 1px solid #0c5a8a;
  padding-bottom: 20px;
}

.footer-col {
  flex: 1 1 auto;
  margin: 10px 20px;
}

.footer-col h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #ccc;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-middle {
  text-align: center;
  margin: 20px 0;
  display: flex
;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.footer-middle .logo {
  width: 100px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #bbb;
  margin-top: 20px;
}

.footer-bottom a {
  color: #88c4ff;
}

.footer-icons {
  margin-top: 20px;
      display: flex;
    justify-content: center;
}

.footer-icons img {
  height: 30px;
  margin: 0 10px;
  vertical-align: middle;
}

/* Адаптивность */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-icons img {
    margin: 10px;
  }
}
.slider-container-casino {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-casino {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* height: 458px; */
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 458px;
  background: #000; /* для проверки */
}

@media (max-width: 767px) {
    .slide {
      height: 130px;
}}

.slide img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

/* game */
/* === ПК: 2 ряда по 6 === */
.game-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.layout-casino {
	color: #fff;
}
.text_container {
	padding: 20px;
}

.text-casino table{
	background: #012339;
}
.text-casino table tbody tr:nth-child(even) {
	background: #012339;
}
.text-casino thead th {
	background: #012339;
	color: #fff;
}
.center-casino.faq-full {
	padding: 20px;
}
.center-casino>.review-scroll {
	margin: 0 20px 40px 20px;
}

.center-casino>.review-scroll>.review {
	color: #000;
}

.game-card {
  background: #003b5e;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s;
}
.game-section {
	padding: 20px ;
	color: #fff;
}
.section-header {
	
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.game-card img {
  width: 100%;
  height: 250px;
  display: block;
  border-radius: 4px 4px 0 0;
}
@media (max-width: 767px) {
   .game-card img {
  width: 100%;
  height: 180px;
  display: block;
  border-radius: 4px 4px 0 0;
}}

.game-card p {
  padding: 8px;
  font-size: 14px;
  margin: 0;
}

/* === Контейнер === */
.game-wrapper {
  overflow-x: visible;
  padding-bottom: 0;
}

/* === МОБИЛЬНЫЕ: 1 ряд с прокруткой, по 2 карточки в строке === */
@media (max-width: 768px) {
  .game-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .game-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: max-content;
  }

  .game-card {
    flex: 0 0 calc(50vw - 20px); /* 2 карточки на экран */
    max-width: calc(50vw - 20px);
    min-width: 150px;
  }
}

.providers-section {
  background: #002c48;
  color: #fff;
  padding: 30px 20px;
  font-family: sans-serif;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.section-subtitle {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}

/* Обёртка прокрутки */
.providers-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Контейнер карточек */
.providers-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

/* Карточка */
.provider-card {
  background: #0a3d5c;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.provider-card img {
  width: 100%;
  height: auto;
  display: block;
  padding: 20px;
  box-sizing: border-box;
}

.provider-footer {
  background: #d5d5d5;
  color: #002c48;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.provider-footer .arrow {
  background: #002c48;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 📱 Адаптация под мобильные */
@media (max-width: 768px) {
  .providers-track {
    display: flex;
    gap: 10px;
    width: max-content;
  }

  .provider-card {
    flex: 0 0 70vw;
    min-width: 200px;
  }
}


/* live */
.center-live {
	width: 83%;
}

@media (max-width: 767px) {
 .center-live {
	width: 100%;
}}

/* === Верхняя панель видов спорта === */
.sports-bar {
  background: #004c87;
  padding: 10px;
  overflow-x: auto;
}

.sports-scroll {
  display: flex;
  gap: 15px;
  white-space: nowrap;
}

.sport-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: white;
  min-width: 60px;
}

.sport-item img {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
}

.sport-item .count {
  font-weight: bold;
  font-size: 11px;
}

/* === Фильтры === */
.filter-bar {
  background: #178841;
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  gap: 10px;
}

.filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.filter-left img {
  width: 20px;
  height: 20px;
}

.filter-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.dropdown {
  background: #0e6a31;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.settings button {
  background: #083;
  border: none;
  color: white;
  padding: 4px 6px;
  margin-left: 3px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

/* === Адаптация === */
@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
  }

  .filter-options::-webkit-scrollbar {
    display: none;
  }
}


.match-box {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px;
  font-family: sans-serif;
}

.match-header {
  background: #178841;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.match-header img {
  width: 20px;
  height: 14px;
  object-fit: cover;
}

/* Счёт + таймер */
.match-info {
  margin-top: 10px;
}

.team-scores {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score {
  background: #005598;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
}

.time {
  font-size: 12px;
  color: #555;
}

/* Коэффициенты */
.odds-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-top: 10px;
  padding-bottom: 5px;
}

.odds-box {
  flex: 0 0 auto;
  background: #f4f4f4;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

.odds-box span {
  display: block;
  font-size: 11px;
  color: #666;
}

/* Иконки изменения коэффициента */
.odds-box.up::after {
  content: "▲";
  color: green;
  margin-left: 4px;
}

.odds-box.down::after {
  content: "▼";
  color: red;
  margin-left: 4px;
}

/* Скрыть скролл на WebKit */
.odds-scroll::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .odds-scroll {
    flex-wrap: wrap;
    overflow: visible;
    gap: 15px;
  }

  .odds-box {
    min-width: unset;
    flex: 1 0 120px;
  }
}
