* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Roboto", sans-serif; 
    font-optical-sizing: auto; 
    font-weight: 400; 
    font-style: normal;
}

:root {
	--red: #e60000;
	--blue: #002366;
	--white: #ffffff;
	--black: #1a1a1a;
}

.container {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
}

/* === ВЕРХ === */
.header-top {
	background-color: var(--white);
	width: 100%;
}

.header-top-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
}

.logo img {
	height: 40px;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

.btn {
	padding: 10px 22px;
	border-radius: 6px;
	text-decoration: none;
	color: var(--white);
	font-weight: bold;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.register {
	background-color: var(--red);
}

.login {
	background-color: var(--blue);
}

.lang-dropdown select {
    background-color: #c0c0c0;
	color: var(--black);
	font-weight: bold;
	border: none;
	border-radius: 6px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
}

.lang-dropdown select:hover {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-bottom {
	background-color: var(--red);
	width: 100%;
}

.nav-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 14px 0;
}

.nav-menu li {
	position: relative;
}

.nav-menu li a {
	color: var(--white);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	transition: color 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li.active a::after {
	content: "";
	position: absolute;
	bottom: -14px;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: var(--white);
	border-radius: 2px;
}


@media (max-width: 768px) {
	.container {
        padding: 0px 8px;
    }

	.header-top-inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 10px;
	}

	.logo {
		flex-shrink: 0;
	}

	.header-right {
		display: flex;
		align-items: center;
		gap: 10px;
	}

	.header-right .btn {
		padding: 8px 14px;
		font-size: 14px;
	}

	.lang-dropdown select {
		padding: 7px 10px;
		font-size: 14px;
		border-radius: 6px;
	}

	/* === НАВИГАЦИЯ — только 4 пункта, ровно по ширине === */
	.nav-menu {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		justify-items: center;
		padding: 12px 0;
	}

	.nav-menu li {
		display: flex;
		justify-content: center;
	}

	.nav-menu li:nth-child(n+5) {
		display: none;
	}

	.nav-menu a {
		font-size: 14px;
		text-align: center;
		padding: 6px;
	}
}

@media (max-width: 400px) {

    .container {
        padding: 0px 8px;
    }

	.header-top-inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 5px 0px;
	}

	.logo img {
		height: 30px;
	}

	.header-right {
		display: flex;
		align-items: center;
		gap: 6px;
	}

	.header-right .btn {
		padding: 6px 10px;
		font-size: 14px;
		border-radius: 4px;
	}

	.lang-dropdown select {
		padding: 6px 8px;
		font-size: 12px;
		border-radius: 4px;
		box-shadow: none;
	}
}

.slider {
	width: 100%;
	margin-top: 64px;
}

.container-slide {
	max-width: 1300px;
	margin: 0 auto;
    	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	border-radius: 2px; 
	overflow: hidden; 
}

.slider-wrapper {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.slider-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
}

.slide {
	min-width: 100%;
	height: 400px;
	position: relative;
	display: flex;
	align-items: center;
}

.slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4); /* Прозрачность затемнения */
	z-index: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide-content {
	position: absolute;
	left: 40px;
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	color: var(--white);
	text-align: left;
	padding: 40px 0;
	gap: 20px; /* расстояние между элементами */
    z-index: 2;
}

.slide-content span {
	display: block;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 10px;
}

.slide-content p {
	font-size: 15px;
	margin-bottom: 15px;
	line-height: 1.4;
}

.btn.cta {
	background-color: var(--red);
	color: var(--white);
	font-weight: 600;
	padding: 12px 24px;
	font-size: 15px;
	border-radius: 6px;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: all 0.3s ease;
	display: inline-block;
	border: none;
	cursor: pointer;
}

.btn.cta:hover {
	background-color: #cc0000;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ТОЧКИ */
.slider-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	border-radius: 20px;
	background-color: rgba(0, 0, 0, 0.3); /* ← фон под точками */
	z-index: 10;
}

.slider-dots .dot {
	width: 12px;
	height: 12px;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
	background-color: #fff;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
	.slide-content {
		left: 20px;
		right: 20px;
		padding: 20px 0;
		gap: 14px;
	}

	.slide-content span {
		font-size: 24px;
	}

	.slide-content p {
		font-size: 14px;
	}
}

.game-wrapper {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

.game-section {
    max-width: 1300px;
    margin: 0 auto;
	padding: 30px 0;
	background-color: var(--white);
	box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	margin-top: -12px;
	z-index: 2;
	position: relative;
}

.game-wrapper {
	max-width: 1300px;
	margin: 0 auto;
	padding: 0 20px;
}

.game-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.search-wrapper {
	position: relative;
	flex: 1;
}

.search-input {
	width: 100%;
	padding: 12px 36px 12px 36px;
	font-size: 15px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.search-icon,
.clear-icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.search-icon {
	left: 10px;
	pointer-events: none;
}

.clear-icon {
	right: 10px;
	cursor: pointer;
}

.dropdowns {
	display: flex;
	gap: 10px;
}

.dropdown-btn {
	display: inline-block;
	padding: 10px 16px;
	background-color: var(--blue);
	color: var(--white);
	text-decoration: none;
	border-radius: 1px;
	font-weight: bold;
	transition: background 0.3s ease;
}

.game-tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin-bottom: 25px;
}

.game-tabs {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	background-color: #edf0f3;
	border-radius: 1px;
}

.tab {
	flex: 1;
    white-space: nowrap;
	text-align: center;
	padding: 12px 14px;
	font-size: 15px;
	font-weight: 500;
	color: var(--black);
	text-decoration: none;
	background-color: transparent;
	border: none;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
}


.tab.active {
	background-color: var(--blue);
	color: var(--white);
	font-weight: bold;
}

.tab:not(:last-child) {
	border-right: 1px solid #d6dce2;
}

.game-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}

.game-card {
	display: block;
	border-radius: 1px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
}

.game-card:hover {
	transform: translateY(-4px);
}

.game-card img {
	width: 100%;
	display: block;
	height: auto;
	object-fit: cover;
}

/* Адаптация */
@media (max-width: 768px) {
	.game-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.search-input {
		width: 100%;
	}

	.dropdown-btn {
		width: 100%;
		text-align: center;
	}

    .game-tabs {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 1px;
		background-color: #d6dce2;
	}

	.tab {
		background-color: #edf0f3;
		font-size: 14px;
		padding: 10px 12px;
		border-right: none;
	}

	.tab.active {
		background-color: var(--blue);
		color: var(--white);
	}

        .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .game-card {
       
        border-radius: 1px;
    }

    .game-card img {
        height: 100%;
        object-fit: cover;
    }
}

main.content {
    max-width: 1300px;
    margin: 0px auto;
    padding: 30px 24px;
    background-color: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-radius: 1px;
    color: var(--black);
    line-height: 1.6;
}

main h1 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

main h2 {
    font-size: 26px;
    font-weight: 600;
    margin: 30px 0 15px;
}

main h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 25px 0 10px;
}

main p {
    font-size: 16px;
    margin-bottom: 18px;
}

main img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

main ul,
main ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

main ul li,
main ol li {
    margin-bottom: 8px;
    font-size: 15px;
}

main > div {
    overflow-x: auto;
    margin-bottom: 20px;
}

main table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

main table th,
main table td {
    padding: 12px 16px;
    border: 1px solid #ccc;
    font-size: 14px;
    text-align: left;
}

@media (max-width: 768px) {
    main.content {
        padding: 20px 15px;
    }

    main h1 {
        font-size: 24px;
    }

    main h2 {
        font-size: 20px;
    }

    main h3 {
        font-size: 18px;
    }

    main p {
        font-size: 15px;
    }

    main ul li,
    main ol li {
        font-size: 14px;
    }

    main table {
        min-width: 600px;
    }

    main > div {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.site-footer {
	background-color: #1a1e28;
	color: #d1d5e0;
	padding: 40px 20px;
	font-family: "Roboto", sans-serif;
}

.footer-wrapper {
	max-width: 1300px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.footer-left {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.footer-logo {
	height: 60px;
}

.footer-lang {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.footer-lang .lang {
	background: #1a1e28;
	border: 1px solid #2c3242;
	color: #fff;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.3s ease;
}

.footer-lang .lang:hover,
.footer-lang .lang.active {
	background-color: var(--blue);
}

.footer-lang button {
	background: #222733;
	border: 1px solid #2c3242;
	color: #fff;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s ease;
	font-size: 13px;
}

.footer-lang button.active,
.footer-lang button:hover {
	background-color: var(--blue);
}

.footer-columns {
	flex: 4 1 900px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-col ul li {
	margin-bottom: 10px;
}

.footer-col ul li a {
	color: #d1d5e0;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s ease;
}

.footer-col ul li a:hover {
	color: var(--red);
}

.footer-title {
	display: block;
	font-size: 16px;
	color: #b0b3c6;
	margin-bottom: 14px;
	font-weight: 700;
}

.footer-badges {
	width: 100px;
	margin-top: 10px;
}

.tg-icon {
	margin-right: 6px;
	color: #36b556;
}

@media (max-width: 768px) {
	.footer-wrapper {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-columns {
		grid-template-columns: 1fr;
		width: 100%;
		gap: 30px;
	}
}