/* CSS переменные (как в примере) */
:root {
    --primary-color: #035507;
    --primary-hover: #024405;
    --header-bg: #161c24;
    --body-bg: #182330;
    --text-color: #fff;
    --border-radius: 5px;
    --transition: all 0.3s ease;
}

/* Базовые стили */
* {
    box-sizing: border-box;
    font-family: Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

body {
    max-width: 1300px;
    margin: 0 auto;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    background-color: #182330;
    color: #fff;
    padding-top: 130px;
    overflow-x: hidden; /* Убираем горизонтальный скролл */
}

.conteiner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    width: 100%; /* Добавляем для адаптивности */
}

/* Header стили */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #161c24;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    padding: 10px 0;
    z-index: 1000;
    text-align: center;
}

.header_conatiner {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 90px;
}

.header_logo img {
    height: 41px;
    width: 100%;
    object-fit: contain;
    max-width: 200px; /* Ограничиваем размер логотипа */
}

.header_button {
    display: flex;
    gap: 20px;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
        font-size: 14px;
        overflow-x: hidden;
    }
    
    .conteiner {
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .header_button {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .header_logo img {
        height: 50px !important;
        max-width: 150px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 150px;
        font-size: 13px;
    }
    
    .conteiner {
        padding: 8px;
    }
    
    .header_button {
        gap: 5px;
        /* width: 100%; */
        justify-content: center;
    }
    
    .header_logo img {
        height: 50px !important;
        max-width: 120px !important;
    }
}

/* Меню навигации */
.site-menu {
    background: #1a2128;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    margin-top: 60px;
}

.site-menu .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.menu-list li a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.menu-list li a:hover,
.menu-list li a.active {
    color: #fff;
    background: #035507;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .menu-list {
        gap: 15px;
        justify-content: center;
    }
    
    .menu-list li a {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .menu-list {
        gap: 8px;
        padding: 0 5px;
    }
    
    .menu-list li a {
        font-size: 12px;
        padding: 5px 8px;
    }
}

/* Кнопки (с использованием CSS переменных) */
.btn {
    border: 1px solid var(--primary-color);
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Эффект блеска для кнопок (взято с примера) */
.btn.shine-button::after {
    content: '';
    top: 0;
    transform: translateX(100%);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    animation: 2s infinite slide;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 768px) {
    .btn {
        width: fit-content;
        text-align: center;
        padding: 8px 15px;
        font-size: 14px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .btn {
        padding: 5px 10px;
        font-size: 11px;
        width: 100%;
        margin: 2px 0;
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px #035507; }
    50% { box-shadow: 0 0 20px #035507; }
    100% { box-shadow: 0 0 5px #035507; }
}

.glowing {
    animation: glow 1.5s infinite alternate;
}

.button_1 {
    background-color: #035507;
}

.button_2 {
    background-color: transparent;
}

.button_2:hover {
    background-color: #035507;
}

/* Заголовки */
h1 {
    font-size: 50px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    word-wrap: break-word; /* Переносим длинные слова */
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
        line-height: 1.3;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 22px;
        line-height: 1.2;
        padding: 0 5px;
    }
}

h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    h2 {
        font-size: 24px;
        margin-top: 10px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 20px;
        padding: 0 5px;
    }
}

/* Главный контент */
.main_conteiner {
    position: relative;
    margin-top: 40px;
    width: 100%;
    overflow-x: hidden;
}

.main_text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    word-wrap: break-word;
}

main img {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    height: auto;
}

.main p {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .main_conteiner {
        margin-top: 20px;
    }
    
    .main_text {
        gap: 15px;
        padding: 0 5px;
    }
    
    .main p {
        font-size: 13px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .main p {
        font-size: 12px;
    }
}

.photo {
    margin: 0 auto;
    width: 70%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 40px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .photo {
        width: 90%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .photo {
        width: 95%;
        margin-bottom: 15px;
    }
}

.main h1 {
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .main h1 {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .main h1 {
        margin-bottom: 20px;
    }
}

/* Popup */
.popup {
    width: 470px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #161c24;
    color: #fff;
    border-radius: 20px;
    padding: 20px 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .popup {
        width: 95%;
        padding: 6px;
        gap: 10px;
        border-radius: 10px;
    }
}

.popup_block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .popup_block {
        display: flex;
        justify-content: space-around;
    }
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .476);
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 6px;
}

@media (max-width: 768px) {
    .popup-close {
        font-size: 16px;
        right: 6px;
        top: 3px;
    }
}

.block_txt {
    width: 40%;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.block_txt span {
    font-size: 35px;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .block_txt span {
        font-size: 24px;
    }
}

.block_txt p {
    color: #fff;
    font-size: 18px;
}

@media (max-width: 768px) {
    .block_txt p {
        font-size: 14px;
    }
}

.block_btn {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 768px) {
    .block_btn {
        font-size: 14px;
    }
}

/* Вспомогательные классы */
.float-start {
    float: left!important;
}

.badge {
    line-height: 1rem;
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .375rem;
}

.rounded-pill {
    border-radius: 50rem!important;
}

.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: #6c757d!important;
}

.text-light {
    --bs-text-opacity: 1;
    color: #fff!important;
}

.p-2 {
    padding: .5rem!important;
}

.float-end {
    float: right!important;
}

img, svg {
    vertical-align: middle;
}

img {
    max-width: 100%;
    height: auto;
}

/* Скроллируемое меню для игр */
.scrollmenu {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    height: fit-content;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.scrollmenu::-webkit-scrollbar,
.submenu ul::-webkit-scrollbar {
    display: none;
}

.scroll-card {
    float: none;
    display: inline-block;
    margin: 3px;
    cursor: pointer;
}

.scroll-card img {
    width: 160px;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    transition: .5s ease;
}

@media (max-width: 768px) {
    .scrollmenu {
        padding: 5px 0;
    }
    
    .scroll-card {
        margin: 2px;
    }
    
    .scroll-card img {
        width: 120px;
        height: 165px;
    }
}

@media (max-width: 480px) {
    .scroll-card {
        margin: 1px;
    }
    
    .scroll-card img {
        width: 100px;
        height: 138px;
    }
}

.text-center {
    text-align: center!important;
}

.scroll-card:hover img {
    opacity: .5;
}

.h3, h3 {
    font-size: calc(1.3rem + .6vw);
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    text-align: center;
}

@media (min-width: 1200px) {
    .h3, h3 {
        font-size: 1.75rem;
    }
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

/* Footer */
footer {
    background: #161c24;
    padding: 40px 0;
    margin-top: 60px;
    border-radius: 25px 25px 0 0;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-top {
    margin-bottom: 30px;
}

.footer-logo {
    margin-bottom: 10px;
}

.footer-logo img {
    height: 50px;
}

.footer-buttons .btn {
    padding: 8px 20px;
    font-size: 14px;
    margin-top: 10px;
}

.footer-links {
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.footer-links-column h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 10px;
}

.footer-links-column ul li {
    margin-bottom: 10px;
    display: inline-block;
}

.footer-links-column ul li a {
    display: inline-block;
    padding: 5px 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #a0a0a0;
    font-size: 12px;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-buttons {
        flex-direction: column;
        width: 100%;
    }
}


/* Навигационное меню */
.navigation {
	position: fixed;
	top: 60px; /* Под header */
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(10px);
	z-index: 999;
	padding: 10px 0;
	margin-top: 20px;
}
.nav_conteiner {
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
}
.nav-link {
	color: #ffffff;
	padding: 8px 16px;
	border-radius: 5px;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid transparent;
}
.nav-link:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: #035507;
}
.nav-link.active {
	background-color: #035507;
	border-color: #035507;
}

@media (max-width: 768px) {
	body {
		padding-top: 140px; /* Больше места для мобильной навигации */
	}
	.header_button {
		gap: 8px;
	}
	.nav_conteiner {
		gap: 10px;
		padding: 10px;
	}
	.nav-link {
		font-size: 12px;
		padding: 6px 10px;
	}
}


/* Платежные системы (улучшенная версия на основе примера) */
.payment-methods-wrapper {
    margin-bottom: 25px;
    margin-top: 25px;
}

.payment-methods-wrapper__title {
    display: block;
    font-size: 22px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.payment-methods {
    padding: 5px 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.payment-methods ul {
    display: flex;
    padding-left: 0;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    width: 100%;
    gap: 15px;
}

.payment-methods ul li {
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.payment-methods ul li i {
    background-image: url("/images/sprite-payment-systems.svg");
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.payment-methods ul li:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .payment-methods-wrapper__title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .payment-methods ul {
        gap: 10px;
    }
    
    .payment-methods ul li {
        padding: 3px;
        min-height: 35px;
    }
    
    .payment-methods ul li i {
        transform: scale(0.8);
    }
}

@media (max-width: 480px) {
    .payment-methods-wrapper {
        margin-bottom: 20px;
        margin-top: 20px;
    }
    
    .payment-methods-wrapper__title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .payment-methods ul {
        gap: 5px;
    }
    
    .payment-methods ul li {
        padding: 2px;
        min-height: 30px;
    }
    
    .payment-methods ul li i {
        transform: scale(0.6);
    }
}

/* Спрайты платежных систем */
.payment-methods ul li:first-child i{background-position:-1114px 0;height:60px;width:85px}
/* .payment-methods ul li:first-child:hover i{background-position:-838px -1039px;height:60px;width:85px} */
.payment-methods ul li:nth-child(2) i{background-position:-379px -1039px;height:60px;width:88px}
/* .payment-methods ul li:nth-child(2):hover i{background-position:-286px -1039px;height:60px;width:88px} */
.payment-methods ul li:nth-child(3) i{background-position:-907px -974px;height:60px;width:92px}
/* .payment-methods ul li:nth-child(3):hover i{background-position:-1004px -974px;height:60px;width:92px} */
.payment-methods ul li:nth-child(4) i{background-position:-205px -974px;height:60px;width:97px}
/* .payment-methods ul li:nth-child(4):hover i{background-position:-103px -974px;height:60px;width:97px} */
.payment-methods ul li:nth-child(5) i{background-position:-447px -519px;height:60px;width:142px}
/* .payment-methods ul li:nth-child(5):hover i{background-position:-294px -584px;height:60px;width:142px} */
.payment-methods ul li:nth-child(6) i{background-position:-656px -1039px;height:60px;width:86px}
/* .payment-methods ul li:nth-child(6):hover i{background-position:-747px -1039px;height:60px;width:86px} */
.payment-methods ul li:nth-child(7) i{background-position:0 -714px;height:60px;width:129px}
/* .payment-methods ul li:nth-child(7):hover i{background-position:-268px -714px;height:60px;width:129px} */
.payment-methods ul li:nth-child(8) i{background-position:-234px -844px;height:60px;width:111px}
/* .payment-methods ul li:nth-child(8):hover i{background-position:-350px -844px;height:60px;width:111px} */

/* Дополнительные медиа-запросы для очень маленьких экранов */
@media (max-width: 360px) {
    body {
        padding-top: 160px;
        font-size: 12px;
    }
    
    .conteiner {
        padding: 5px;
    }
    
    .header_button {
        flex-direction: column;
        gap: 3px;
    }
    
    .header_logo img {
        height: 25px !important;
        max-width: 100px !important;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 11px;
        width: 100%;
        margin: 2px 0;
    }
    
    h1 {
        font-size: 18px;
        line-height: 1.1;
    }
    
    h2 {
        font-size: 16px;
    }
    
    .main p {
        font-size: 11px;
    }
    
    .nav-link {
        font-size: 11px;
        padding: 4px 6px;
    }
    
    .nav_conteiner {
        gap: 5px;
        padding: 5px;
    }
    
    .scroll-card img {
        width: 80px;
        height: 110px;
    }
    
    .photo {
        width: 98%;
        margin-bottom: 10px;
    }
    
    .popup {
        width: 98%;
        padding: 10px;
    }
    
    .block_txt span {
        font-size: 20px;
    }
    
    .block_txt p {
        font-size: 12px;
    }
    
    .block_btn {
        font-size: 12px;
    }
    
    .payment-methods ul li i {
        transform: scale(0.5);
    }
    
    footer {
        padding: 20px 0;
        margin-top: 40px;
    }
    
    .footer-bottom p {
        font-size: 10px;
    }
}

/* Универсальные правила адаптивности (упрощенный подход как в примере) */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    body, .conteiner, .main_conteiner, .main_text {
        overflow-x: hidden;
        width: 100%;
    }
    
    img {
        max-width: 100% ;
        height: auto;
        
    }
    
    /* Улучшенная читаемость */
    p, div, span, h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Плавные переходы для всех интерактивных элементов */
    .btn, .nav-link, .scroll-card, .payment-methods ul li i {
        transition: var(--transition);
    }
}

@media (max-width: 504px) {
    body {
        padding-top: 165px !important;
    }
}