* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Montserrat", sans-serif;
	font-weight: 400;
	background: #000;
	color: #fff;
}

.site-header {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(15, 11, 54, 0.85); 
	backdrop-filter: blur(8px);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 10px;
	padding-bottom: 10px;
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1300px;
	padding: 10px 20px;
}

.logo img {
	height: 60px;
}

.nav-menu {
	display: flex;
	gap: 25px;
}

.nav-menu a {
	color: #ffd946;
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-menu a:hover {
	color: #f92b68;
}

.auth-buttons {
	display: flex;
	gap: 15px;
}

.btn {
	padding: 10px 25px;
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	transition: all 0.3s ease;
}

.btn-login {
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.btn-login:hover {
	background: rgba(255, 255, 255, 0.2);
}

.btn-register {
	background: #f92b68;
	color: #fff;
	border: none;
}

.btn-register:hover {
	background: #e61f5d;
}

.burger {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 25px;
	height: 18px;
	cursor: pointer;
}

.burger span {
	display: block;
	height: 3px;
	background: #ffd946;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
	opacity: 0;
}

.burger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-auth {
	display: none;
	flex-direction: column;
	width: 100%;
	max-width: 300px;
	gap: 10px;
	margin-top: 10px;
	padding: 0 20px;
}

.mobile-auth .btn {
	width: 100%;
	padding: 12px 20px;
	box-sizing: border-box;
}


.mobile-nav {
	width: 100%;
	background: rgba(15, 11, 54, 0.85);
	backdrop-filter: blur(8px); 
	-webkit-backdrop-filter: blur(8px); 
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.mobile-nav.active {
	max-height: 500px;
}

.mobile-menu {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 0;
	gap: 15px;
	background: rgba(15, 11, 54, 0.85); 
}

.mobile-menu a {
	color: #ffd946;
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.mobile-menu a:hover {
	color: #f92b68;
}

.burger {
    display: none;
}


@media (max-width: 768px) {

    .site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px 15px 10px; 

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 5px 10px;
    }

    .nav-menu {
        display: none;
    }

    .auth-buttons {
        display: none;
    }

    .burger {
        display: flex;
    }

    .logo {
        margin: 0 auto;
    }

    .logo img {
        height: 60px; 
        margin-right: 24px;
    }

    .mobile-auth {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 10px;
        padding: 0 15px;
        margin-top: 12px;
        box-sizing: border-box;
    }

    .mobile-auth .btn {
        flex: 1;
        padding: 14px 0;
        font-size: 16px;
        font-weight: 700;
        text-align: center;
        border-radius: 9999px;
        box-sizing: border-box;
    }

    .mobile-menu a {
        font-size: 20px;
        padding: 10px 0;
    }
}
}

.slider-section {
    max-width: 1300px;
    width: 100%;
    background: #0f0b36;
    margin: 100px auto 0 auto;
    height: 400px;
}

.swiper {
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.swiper-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 11, 54, 0.6);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    justify-content: center;
    align-items: flex-start; 
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffd946;
    text-transform: uppercase;
}

.slide-text {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
}

.cta-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #f92b68;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    transition: background 0.3s ease;
    max-width: fit-content;
}

.cta-btn:hover {
    background: #e61f5d;
}

@media (max-width: 768px) {
    .slider-section {
        margin-top: 160px;
    }

    .swiper-slide {
        justify-content: flex-start; 
        padding-left: 20px;
        padding-right: 20px;
        text-align: left;
    }

    .slide-content {
        align-items: flex-start;
        padding: 0;
    }

    .slide-title {
        font-size: 24px;
    }

    .slide-text {
        font-size: 15px;
        max-width: 100%;
    }

    .cta-btn {
        font-size: 14px;
        padding: 12px 30px;
    }
}

.top-games {
    max-width: 1300px;
    margin: 0px auto;
    padding: 20px;
    background: #0f0b36;
    border-radius: 1px;
}

.top-games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.top-games-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffd946;
    text-transform: uppercase;
}

.top-games-link {
    font-size: 14px;
    color: #00b2f5;
    text-decoration: none;
    font-weight: 600;
}

.top-games-link:hover {
    text-decoration: underline;
}

.top-games-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 120px); /* 2 строки */
    grid-auto-columns: 120px;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scroll-padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #f92b68 #0f0b36; /* ползунок и фон скролла */
}

.top-games-grid::-webkit-scrollbar {
    height: 8px; /* высота горизонтального скролла */
}

.top-games-grid::-webkit-scrollbar-track {
    background: #0f0b36; /* фон трека */
}

.top-games-grid::-webkit-scrollbar-thumb {
    background-color: #f92b68; /* цвет ползунка */
    border-radius: 4px;
}

.game-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #f92b68;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
}

.game-item:hover .game-overlay {
    opacity: 1;
}

.game-buttons-mobile {
    display: none;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    background: rgba(15, 11, 54, 0.8); /* прозрачный фон из твоей палитры */
}

@media (max-width: 768px) {
    .top-games-grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto); /* 2 строки */
        grid-auto-columns: 120px;
        gap: 15px;
        overflow-x: auto; /* горизонтальный скролл */
        overflow-y: hidden;
        padding-bottom: 10px;
        scrollbar-width: thin;
        scrollbar-color: #f92b68 #0f0b36;
    }

    .top-games-grid::-webkit-scrollbar {
        height: 8px;
    }

    .top-games-grid::-webkit-scrollbar-track {
        background: #0f0b36;
    }

    .top-games-grid::-webkit-scrollbar-thumb {
        background-color: #f92b68;
        border-radius: 4px;
    }

    .game-item {
        width: 120px;
        height: auto; 
        flex-direction: column;
    }

    .game-item img {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

    .game-overlay {
        display: none;
    }

    .game-buttons-mobile {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        margin-top: 8px;
        background: rgba(15, 11, 54, 0.8);
        border-radius: 8px;
    }

    .game-buttons-mobile .game-btn {
        flex: 1;
        text-align: center;
        padding: 8px 0;
        font-size: 14px;
    }
}

main {
    max-width: 1300px;
    margin: 0px auto;
    padding: 40px;
    background: #0f0b36;
    border-radius: 1px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

main h1 {
    font-size: 32px;
    color: #ffd946;
    margin-bottom: 20px;
}

main h2 {
    font-size: 28px;
    color: #f92b68;
    margin: 30px 0 15px;
}

main h3 {
    font-size: 24px;
    color: #00b2f5;
    margin: 25px 0 10px;
}

main p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

main img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px auto;
    display: block;
}

main ul,
main ol {
    margin: 15px 0 15px 20px;
    padding-left: 20px;
}

main li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    main {
        padding: 20px;
        margin: 0px auto;
    }

    main h1 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    main h2 {
        font-size: 20px;
        margin: 24px 0 12px;
    }

    main h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }

    main p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    main img {
        margin: 12px 0;
        border-radius: 6px;
    }

    main ul,
    main ol {
        margin: 12px 0 12px 16px;
        padding-left: 16px;
    }

    main li {
        font-size: 15px;
        margin-bottom: 8px;
    }
}

main table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
}

main thead {
    background-color: #2c0b4e;
}

main thead th {
    padding: 14px 16px;
    text-align: left;
    color: #ffd946;
    font-weight: 700;
    border-bottom: 2px solid #f92b68;
}

main tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

main tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05); /* зебра */
}

main tbody td {
    padding: 12px 16px;
    color: #fff;
}

@media (max-width: 768px) {
    main table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 8px;
        scrollbar-width: thin;
        scrollbar-color: #f92b68 #0f0b36;
        box-sizing: border-box; /* вот это важно */
        padding-bottom: 8px; /* чтобы не прилипал контент */
        margin-bottom: 20px;
    }

    main table::-webkit-scrollbar {
        height: 8px;
    }

    main table::-webkit-scrollbar-track {
        background: #0f0b36;
    }

    main table::-webkit-scrollbar-thumb {
        background-color: #f92b68;
        border-radius: 4px;
    }

    main thead th,
    main tbody td {
        padding: 10px 12px;
        font-size: 14px;
    }
}

main section {
    background: #0f0b36;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

main section h2 {
    font-size: 28px;
    color: #ffd946;
    margin-bottom: 20px;
}

main section div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 15px 0;
    transition: all 0.3s ease;
    position: relative;
}

main section div p:first-child {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    position: relative;
    padding-right: 30px;
}

main section div p:first-child::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    color: #f92b68;
    transition: transform 0.3s ease;
}

main section div.open p:first-child::after {
    content: "−";
    transform: rotate(0deg);
}

main section div p:nth-child(2) {
    font-size: 15px;
    line-height: 1.5;
    color: #ccc;
    margin: 10px 0 0 0;
    display: none;
}

main section div.open p:nth-child(2) {
    display: block;
}

@media (max-width: 768px) {
    main section {
        padding: 20px;
        margin: 20px 0;
    }

    main section h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    main section div p:first-child {
        font-size: 15px;
    }

    main section div p:nth-child(2) {
        font-size: 14px;
    }
}

.site-footer {
    background: #0f0b36;
    color: #fff;
    padding: 50px 20px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.site-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto 30px;
}

.site-footer .footer-column img {
    display: block;
    max-width: 160px;
    margin-bottom: 12px;
}

.site-footer .footer-column .footer-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #f92b68;
    margin-bottom: 12px;
}

.site-footer .footer-column p {
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.5;
}

.site-footer .footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-column ul li {
    margin-bottom: 8px;
}

.site-footer .footer-column ul li a {
    color: #00b2f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer .footer-column ul li a:hover {
    color: #ffd946;
}

.site-footer .footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 14px;
    color: #888;
}

@media (max-width: 768px) {
    .site-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .site-footer .footer-column img {
        margin: 0 auto 12px;
    }
}

html {
    scrollbar-width: thin;
    scrollbar-color: #f92b68 #0f0b36; /* цвет ползунка и трека */
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: #0f0b36;
}

html::-webkit-scrollbar-thumb {
    background-color: #f92b68;
    border-radius: 4px;
}