/* === 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: #171818;
  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 */
}
.center-home {
	width: 100%;
}


/* header */
/* === Header: Общий стиль === */
.header_top {
	background-color: #0D243A;
    color: #f2f2f2;
	 padding: 10px;
	 font-size: 12px;
	 font-weight: 400;
	 text-transform:lowercase ;
	 display: flex;
	 justify-content: space-between;
	 align-items: center;
}
.header {
  background-color: #314557;
  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: 400;
	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;
  /* width: 20%; */
}

/* === Горизонтальное меню (мобильное) === */
.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: #314557	;
   padding: 10px;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	overflow: hidden;
}

.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 {
	width: 60%;
}

/* === 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: 20%;
  /* background-color: #f0f0f0; */
  position: sticky;
  top: 40px;
}

.center {
  width: 80%;
  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%;
  }
}


.categories-section {
  width: 100%;
  padding: 20px;
  background: #111;
}

.categories-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

/* Карточка-ссылка */
.category-card {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
  color: #fff;
}

.category-card:hover {
  transform: scale(1.03);
}

.category-card span {
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px black;
}

/* 👉 Для телефонов: ровно 2 в ряд */
@media (max-width: 768px) {
  .categories-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    height: 140px;
  }

  .category-card span {
    font-size: 13px;
    padding: 5px 10px;
  }
}

.upcoming-matches {
  background: #111;
  padding: 15px 20px;
  color: #fff;
  font-family: sans-serif;
}

.upcoming-matches h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: bold;
}

.match-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-icon {
  background: #2b2b2b;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}

.match-icon:hover {
  background: #444;
}

.match-icon.active {
  background: #aaa53c;
}

.match-icon img {
  width: 22px;
  height: 22px;
}

.match-icon .count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #444;
  color: #fff;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 50%;
  font-weight: bold;
}


/* сутеук */
.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 {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%; /* можно задать ограничение */
  object-fit: contain; /* гарантирует сохранение пропорций */
}

.center-sport {
	width: 75%;
}
@media (max-width: 767px) {
   .center-sport {
	width: 100%;
}}

.menu-list {
  background: #1c1c1c;
  border-radius: 8px;
  font-family: sans-serif;
  overflow: hidden;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #2c2c2c;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

.menu-item:hover {
  background: #2c2c2c;
}

.menu-item .emoji {
  margin-right: 10px;
  font-size: 16px;
}

.menu-item .label {
  flex: 1;
}

.menu-item .arrow {
  font-size: 16px;
  color: #aaa;
}

.menu-item .count {
  font-size: 13px;
  color: #bbb;
  margin-right: 8px;
}

.menu-item.active {
  background: #2e2e2e;
}

.menu-item.active .arrow.up {
  background: #0a3;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.live-matches {
  font-family: sans-serif;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  max-width: 400px;
  width: 100%;
}

.sport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a2a2a;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
}

.sport-header .emoji {
  margin-right: 5px;
}

.league-header {
  display: block;
  background: #2c2c2c;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: bold;
  margin-top: 12px;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
}

.league-header:hover {
  background: #333;
}

.match-row {
  display: block;
  background: #2a2a2a;
  margin-top: 5px;
  padding: 8px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s;
}

.match-row:hover {
  background: #333;
}

.teams {
  font-size: 13px;
  margin-bottom: 6px;
}

.odds {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.odds span {
  background: #444;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 400;
    display: flex;
    font-size: 10px;
}
.left-live {
	width: 20%;
	font-size: 14px;
}
@media (max-width: 767px) {
    .left-live{
        display: none;
}}

.sidebar {
  width: 240px;
  background: #1c1c1c;
  color: #fff;
  font-family: sans-serif;
  padding: 10px;
  border-radius: 6px;
}

.sidebar h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.team-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.team-icons a {
  width: 24px;
  height: 24px;
  background: #2c2c2c;
  color: #ccc;
  text-align: center;
  line-height: 24px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
}

.match-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
    background: url('../img/live/soccer-live.png') center center / cover no-repeat;

  margin-bottom: 6px;
}

.match-header a {
  text-decoration: none;
  color: #ddd;
}

.score {
  font-weight: bold;
  color: #fff;
}

.field-preview {
  background: #2a2a2a;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.search-box {
  display: flex;
  margin-bottom: 10px;
}

.search-box input {
  flex: 1;
  padding: 5px;
  font-size: 13px;
  border: none;
  border-radius: 4px 0 0 4px;
  background: #2c2c2c;
  color: white;
}

.search-box button {
  padding: 5px 10px;
  border: none;
  background: #444;
  color: white;
  border-radius: 0 4px 4px 0;
}

.betslip-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.betslip-tabs a {
  flex: 1;
  text-align: center;
  padding: 6px;
  background: #2c2c2c;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
}

.betslip-tabs .active {
  background: #f5c518;
  color: #000;
}

.settings {
  font-size: 13px;
  margin-bottom: 10px;
  color: #ccc;
}

.betslip-empty {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-bottom: 10px;
}

.auth-warning {
  background: #333;
  padding: 8px;
  font-size: 12px;
  color: #ffcc00;
  text-align: center;
  border-radius: 4px;
  margin-bottom: 10px;
}

.auth-warning a {
  color: #fff;
  text-decoration: underline;
}

.amount-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.amount-buttons button {
  flex: 1;
  margin: 0 3px;
  padding: 6px 0;
  background: #444;
  border: none;
  color: white;
  border-radius: 4px;
  font-size: 14px;
}

.bet-now {
  width: 100%;
  background: #555;
  color: #aaa;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: not-allowed;
}

.match-wrapper {
  font-family: sans-serif;
  color: #fff;
  background: #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  max-width: 1000px;
  margin: auto;
}

.match-bg {
  padding: 20px;
  position: relative;
}

.match-info {
  text-align: center;
  backdrop-filter: brightness(0.8);
}

.league a {
  color: #ccc;
  font-size: 14px;
  text-decoration: none;
}

.teams div {
  font-size: 16px;
  margin-top: 10px;
}

.teams a {
  color: #fff;
  text-decoration: none;
}

.score {
  font-size: 20px;
  margin-top: 10px;
}

.score span {
  display: block;
  font-size: 12px;
  color: #ddd;
}

.time {
  font-weight: bold;
  color: #0ff;
}

.actions {
  margin-top: 10px;
  font-size: 20px;
}

.actions a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
}

.phase-box {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #278a78;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.phase-box .minute {
  background: #12695d;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 4px;
}

.match-stats {
  background: #2a2a2a;
  padding: 10px;
  font-size: 13px;
  text-align: center;
}

.team-names {
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 12px;
  margin-bottom: 8px;
}

.stats-icons {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 6px;
}

.stats-values {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.stats-values div {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}



@media (max-width: 767px) {
   .sidebar-right {
		display: none;

}}

.betting-markets {
  font-family: sans-serif;
  color: #fff;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 10px;
  max-width: 1000px;
  margin: auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tabs a {
  text-decoration: none;
  padding: 6px 12px;
  background: #2a2a2a;
  border-radius: 4px;
  font-size: 13px;
  color: #ccc;
}

.tabs .active {
  background: #ffd700;
  color: #000;
  font-weight: bold;
}

.market-block {
  margin-bottom: 15px;
  background: #2b2b2b;
  padding: 10px;
  border-radius: 4px;
}

.market-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.market-title a {
  text-decoration: none;
  color: #999;
  margin-left: 5px;
}

.market-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.market-options a {
  display: flex;
  justify-content: space-between;
  background: #3a3a3a;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
}

.market-options b {
  color: #ffd700;
}

.market-options.two-col {
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.market-options.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.esports-banner {
  position: relative;
  background: url('../img/home/content_1271_72b4e9be2f026c69455657c944bbb9c7 (1).webp') center center / cover no-repeat;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 30px;
  color: #fff;
  border-radius: 8px;
}

.overlay h1 {
  font-size: 42px;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #00ffff, #fff, #ff0077);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.overlay p {
  font-size: 16px;
  margin-bottom: 20px;
}

.btn {
  text-decoration: none;
  background: #ff0077;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #ff3399;
}

.prize-card {
  background: #222;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-family: sans-serif;
  box-shadow: 0 0 10px #0006;
  text-align: center;
}

.prize-image {
  position: relative;
}

.prize-image img {
  width: 100%;
  height: auto;
  display: block;
}

.live-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff0;
  color: #000;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 2px;
}

.prize-body {
  padding: 20px;
}

.prize-body h4 {
  margin: 10px 0 5px;
  color: #bbb;
  font-size: 14px;
  letter-spacing: 1px;
}

.amount {
  font-size: 26px;
  color: #ffd700;
  font-weight: bold;
  margin-bottom: 10px;
}

.ends-label {
  color: #ff5555;
  margin: 5px 0 10px;
  font-weight: bold;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.countdown div {
  text-align: center;
}

.countdown span {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  display: block;
}

.countdown small {
  font-size: 11px;
  color: #bbb;
}

.join-button {
  display: inline-block;
  background: #ffd700;
  color: #000;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.join-button:hover {
  background: #ffea00;
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.info-card {
  background: #1e1e1e;
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  font-family: sans-serif;
  text-align: left;
}

.info-card h4 {
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: #ccc;
}

.info-card p {
  margin: 5px 0;
  font-size: 13px;
}

.info-card .green {
  color: #40ff40;
}

.info-card .red {
  color: #ff4444;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.game-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  transition: 0.3s;
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.game-card:hover {
  transform: scale(1.03);
}

.center-promotions {
	width: 100%;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 на ПК */
  gap: 12px;
  padding: 10px;
}

.bonus-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.bonus-grid a:hover {
  transform: scale(1.03);
}

.bonus-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* 📱 2 в ряд на мобиле */
@media (max-width: 768px) {
  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
