* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Jura", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	background-color: #0E1623;
	color: #fff;
    padding-top: 85px;
}

.container {
	max-width: 1300px;
	margin: 0 auto;
	padding:  20px;
}

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background: #0E1623;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.header-grid {
	display: grid;
	grid-template-columns: 0.2fr 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 16px 20px;
}

/* Логотип */
.logo-img {
	height: 50px;
}

/* Навигация */
.nav-menu ul {
	list-style: none;
	display: flex;
	gap: 30px;
}


.nav-menu ul li a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
	transition: color 0.3s;
}

.nav-menu ul li a:hover {
	color: #00C8FF;
}

.badge-new {
	font-size: 10px;
	padding: 2px 6px;
	border: 1px solid #00FFAA;
	border-radius: 9999px;
	color: #00FFAA;
	font-weight: bold;
	line-height: 1;
}

/* Кнопки */
.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.btn {
	padding: 8px 18px;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
	text-align: center;
}

.btn.register {
	background: linear-gradient(45deg, #8E44FF, #D32FFF);
	color: #fff;
}

.btn.login {
	background-color: #00C8FF;
	color: #0E1623;
}

.btn:hover {
	opacity: 0.9;
}

/* Язык */
.lang-select {
	background-color: #2E2E57;
	color: #fff;
	display: inline-grid;
	grid-auto-flow: column;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 9999px;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	text-decoration: none;
}

/* Бургер */
.burger {
	display: none;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
}

.burger span {
	width: 20px;
	height: 2px;
	background-color: white;
	transition: all 0.3s ease;
}

.site-header.active .burger span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.site-header.active .burger span:nth-child(2) {
	opacity: 0;
}
.site-header.active .burger span:nth-child(3) {
	transform: rotate(-45deg) translate(3px, -3px);
}

/* Мобильное меню */
.mobile-auth {
	display: grid;
	grid-template-columns: 1fr 1fr; /* две равные колонки */
	gap: 12px;
	padding: 16px 20px;
}

.mobile-btn {
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
	font-size: 16px;
}

.mobile-nav {
	display: none;
	flex-direction: column;
	align-items: center;
	background: rgba(14, 22, 35, 0.98);
	width: 100%;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	z-index: 999;
}

.mobile-nav ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 0;
}

.mobile-nav a {
	color: white;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
}

.site-header.active .mobile-nav {
	display: grid;
}

.site-header.active .mobile-auth {
	display: grid;
}

/* Медиа */
@media (max-width: 768px) {
	.header-grid {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: 
			"burger logo .";
	}

	.burger {
		display: flex;
		grid-area: burger;
	}

	.logo {
		grid-area: logo;
		justify-self: center;
        margin-right: 20px;        
	}

	.nav-menu,
	.header-actions {
		display: none !important;
	}

	.site-header.active .mobile-auth {
		display: grid;
	}

	.site-header.active .mobile-nav {
		display: grid;
	}
    
}

@media (min-width: 769px) {
	.mobile-auth {
		display: none !important;
	}
}

.slider {
	width: 100%;
}

.slider-wrapper {
	max-width: 1300px;
	margin: 0 auto;
	position: relative;
	overflow: hidden;
    padding: 0;
	background: #0E1623;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
	border-top: 2px solid #2E2E57;
	border-bottom: 2px solid #2E2E57;
}

.slides {
	display: flex;
	transition: transform 0.6s ease-in-out;
}

.slide {
	min-width: 100%;
	min-height: 400px;
	background-size: cover;
	background-position: center center;
    background-repeat: no-repeat;
	display: flex;
	align-items: center;
	padding: 40px 20px;
	position: relative;
}

.slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(14, 22, 35, 0.6);
	z-index: 1;
}

.slide-content {
	position: relative;
	z-index: 2;
	max-width: 500px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	color: white;
    margin-left: 40px;
}

.slide-title {
	font-size: 32px;
	font-weight: 700;
    font-style: bold;
	text-transform: uppercase;
	line-height: 1.2;
	display: block;
}

.slide-subtitle {
	font-size: 18px;
	display: block;
}

.cta-btn {
	background-color: #00C8FF;
	color: #0E1623;
	font-weight: 600;
	padding: 12px 28px;
	border-radius: 8px;
	text-decoration: none;
	width: fit-content;
	display: inline-block;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
}

.slider-nav button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #fff;
	font-size: 36px;
	cursor: pointer;
	z-index: 10;
	padding: 0 12px;
	line-height: 1;
}

.slider-nav .prev {
	left: 10px;
}

.slider-nav .next {
	right: 10px;
}

.slider-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 2;
}

.slider-dots .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: 0.3s;
}

.slider-dots .dot.active {
	background: #fff;
}

/* Адаптив */
@media (max-width: 768px) {
    body {
        padding-top: 145px;
    }

	.slide {
		min-height: 400px;
		background-size: cover;
        background-position: 47% 70%;
		justify-content: center;
		text-align: left; 
		padding: 40px 20px; 
	}

	.slide-content {
		margin-left: 0; 
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
		width: 100%;
	}

	.slide-title {
		font-size: 30px;
        
	}

	.slide-subtitle {
		font-size: 16px;
	}

	/* Скрыть стрелки */
	.slider-nav {
		display: none;
	}
}

.popular-games {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
  background: #0E1623;
  border-left: 1px solid #2E2E57;
  border-right: 1px solid #2E2E57;
  border-bottom: 1px solid #2E2E57;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.pop-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  
}

.section-title {
  font-size: 28px;
  font-weight: 700;
}

.see-more {
  color: #00C8FF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.see-more:hover {
  color: #FFD33D;
}

.games-carousel-wrapper {
  overflow-x: auto;
  padding: 20px 0;
}

.games-carousel {
  display: grid;
  grid-auto-flow: column;
  gap: 20px;
  padding: 0 20px;
}

.game-card {
  flex: 0 0 auto;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.game-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.game-btn {
  padding: 8px 14px;
  background: #00C8FF;
  color: #0E1623;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.game-btn.demo {
  background: transparent;
  border: 1px solid #00C8FF;
  color: #00C8FF;
}
.game-btn.play {
  background: #00C8FF;
  color: #0E1623;
}

.game-btns-mobile {
    display: none;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .game-overlay {
    display: none; /* убираем ховер-кнопки */
  }

  .game-card {
    width: 160px; /* подгоняем размер */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .game-btns-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
  }

  .game-btns-mobile .game-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
  }

  .game-btns-mobile .demo {
    background: transparent;
    border: 1px solid #00C8FF;
    color: #00C8FF;
  }

  .game-btns-mobile .play {
    background: #00C8FF;
    color: #0E1623;
  }
}

.games-carousel-wrapper::-webkit-scrollbar {
	height: 8px;
}

.games-carousel-wrapper::-webkit-scrollbar-track {
	background: #2E2E57; /* фиолетово-синий фон */
	border-radius: 4px;
}

.games-carousel-wrapper::-webkit-scrollbar-thumb {
	background: #00C8FF; /* бирюзово-голубой */
	border-radius: 4px;
}

.games-carousel-wrapper::-webkit-scrollbar-thumb:hover {
	background: #FFD33D; /* золотой при наведении */
}

.top-players-block {
  background: #0E1623;
  padding: 2% 0;
  color: #fff;
}

.top-players-block .container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-players-container {
  display: flex;
  flex-direction: column;
}

.top-players-main {
  display: grid;
  grid-template-columns: 1fr 1fr; /* две равные колонки */
  gap: 40px;
}

/* Левая часть */
.tp-winners {
  background: #1E2430;
  border-radius: 12px;
  padding: 24px;
}

.tp-header {
  margin-bottom: 16px;
}

.tp-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD33D;
}

.tp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tp-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tp-item:last-child {
  border-bottom: none;
}

.tp-name {
  color: #fff;
  font-weight: 600;
}

.tp-badge {
  color: #00C8FF;
  font-weight: bold;
}

/* Правая часть (джекпоты) */
.tp-jackpots {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jackpot-card {
  background: #1E2430;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.jackpot-label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 8px;
}

.jackpot-amt {
  font-size: 28px;
  font-weight: 700;
  color: #FFD33D;
}

/* Акценты для разных джекпотов */
.jackpot-card.gold {
  border-left: 4px solid #FFD33D;
}
.jackpot-card.silver {
  border-left: 4px solid #00C8FF;
}
.jackpot-card.bronze {
  border-left: 4px solid #8E44FF;
}

/* Нижняя ссылка */
.top-players-footer {
  margin-top: 30px;
  text-align: center;
}

.see-more {
  color: #00C8FF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.see-more:hover {
  color: #FFD33D;
}

/* Адаптив */
@media (max-width: 768px) {
  .top-players-main {
    grid-template-columns: 1fr; /* один столбец */
  }
  .tp-jackpots {
    flex-direction: column;
  }
}

.main-content {
	max-width: 1300px;
	margin: 60px auto;
	padding: 0 20px;
	color: #fff;
	font-family: "Jura", sans-serif;
}

.main-content h1 {
	font-size: 42px;
	font-weight: 700;
	margin-bottom: 24px;
	color: #FFD33D;
}

.main-content h2 {
	font-size: 32px;
	font-weight: 600;
	margin-top: 40px;
	margin-bottom: 16px;
	color: #00C8FF;
}

.main-content h3 {
	font-size: 26px;
	font-weight: 500;
	margin-top: 30px;
	margin-bottom: 12px;
	color: #8E44FF;
}

.main-content p {
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 16px;
	color: #ccc;
}

.main-content img {
    display: block;
    margin: 0 auto;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 6px 16px rgba(0,0,0,0.4);
	margin-bottom: 24px;
}

.main-content ul,
.main-content ol {
	margin-left: 20px;
	margin-bottom: 20px;
	padding-left: 20px;
}

.main-content ul li::marker {
	color: #FFD33D;
}

.main-content ol li::marker {
	color: #00C8FF;
}

.main-content li {
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.main-content {
		padding: 0 16px;
		margin: 40px auto;
	}

	.main-content h1 {
		font-size: 28px;
		margin-bottom: 20px;
		text-align: center;
	}

	.main-content h2 {
		font-size: 24px;
		text-align: center;
		margin-top: 30px;
	}

	.main-content h3 {
		font-size: 20px;
		text-align: center;
		margin-top: 25px;
	}

	.main-content p {
		font-size: 16px;
		text-align: justify;
	}

	.main-content img {
		margin: 20px auto;
		display: block;
		width: 100%;
		border-radius: 10px;
	}

	.main-content ul,
	.main-content ol {
		padding-left: 16px;
	}

	.main-content li {
		font-size: 15px;
	}
}

main > div {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  background: #1E2136;
  margin-bottom: 20px;
}

/* таблица */
main table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
  table-layout: auto;
  color: #fff;
}

/* заголовки */
main thead {
  background: linear-gradient(45deg, #8E44FF, #D32FFF);
}

main th,
main td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  min-width: 180px;
}

/* скроллбар */
main > div::-webkit-scrollbar {
  height: 8px;
}
main > div::-webkit-scrollbar-thumb {
  background: #8E44FF;
  border-radius: 10px;
}
main > div::-webkit-scrollbar-track {
  background: #2E2E57;
}

/* адаптив */
@media (max-width: 768px) {
  main {
    padding: 0 16px;
    margin: 40px auto;
  }

  main h2 {
    font-size: 24px;
    text-align: center;
  }

  main table {
    font-size: 14px;
    min-width: 600px;
  }

  main th,
  main td {
    padding: 10px 16px;
  }
}

footer {
  color: #fff;
  font-size: 14px;
}

footer > div:first-child {
  background-color: #161e2d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  flex-wrap: wrap;
}

footer > div img {
height: 30px;
}

footer > div:first-child {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: #161e2d;
  padding: 12px 20px;
}

footer > div:first-child a img {
  justify-self: start;
}

footer nav {
  grid-column: 2;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

footer nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer nav a:hover {
  color: #00C8FF;
}

footer > div:last-child {
  background-color: #0e1118;
  text-align: center;
  padding: 12px 20px;
  position: relative;
}

footer > div:last-child p {
  margin: 0;
  color: #999;
}

footer > div:last-child span {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: #1d1f2a;
  color: #aaa;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid #444;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  footer > div:first-child {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
    justify-items: center;
  }

  footer nav {
    grid-column: 1;
    justify-content: center;
  }

  footer > div:last-child {
    padding-bottom: 15px;
  }

  footer > div:last-child span {
    position: static;
    transform: none;
    margin: 12px auto 0;
  }

    footer > div:first-child a img {
    justify-self: center;
  }
}
