/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #fee600;
    --primary-hover: #e6cf00;
    --secondary-color: #1a1427;
    --secondary-light: #29233a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --bg-dark: #120f1a;
    --rose-button: rgba(236, 72, 153, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Убедимся, что изображения не выходят за пределы контейнера */
img {
    max-width: 100%;
    height: auto;
}

.app-container-g {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    max-width: 100%;
}

/* ===== BUTTONS ===== */
.btn-w {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    white-space: nowrap;
}

.btn-w:hover {
    transform: translateY(-1px);
}

.btn-w:active {
    transform: translateY(1px);
}

.btn-primary-a {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary-a:hover {
    background-color: var(--primary-hover);
}

.btn-outlin-m {
    background-color: var(--secondary-light);
    color: var(--text-color);
}

.btn-outlin-m:hover {
    background-color: #342c47;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* ===== SIDEBAR ===== */
.sidebar-i {
    width: 18rem;
    background-color: var(--secondary-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 30;
    display: none;
}

.sidebar-content-y {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    height: 100%;
}

.logo-container-x {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-i {
    width: 180px;
    height: auto;
}

.nav-group-u {
    margin-bottom: 0.75rem;
}

.nav-item-y {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-item-y:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-icon-m {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    font-size: 1.5rem;
}

.nav-label-v {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-separa-q {
    height: 1px;
    background-color: rgba(107, 114, 128, 0.3);
    margin: 0.75rem 0;
}

.nav-dropdown-header-p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.6rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-dropdown-header-p:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item-inner-l {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chevro-down-e-v {
    border: solid white;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.nav-dropdown-a.active-z .chevro-down-e-v {
    transform: rotate(-135deg);
}

.nav-dropdown-content-w {
    display: none;
    margin-top: 0.25rem;
}

.nav-dropdown-a.active-z .nav-dropdown-content-w {
    display: block;
}

.nav-subite-h {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0 0.5rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.nav-subite-h:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-subico-h {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    font-size: 1.25rem;
}

.nav-sublab-l {
    font-size: 1rem;
    font-weight: normal;
}

.grid-icon-p {
    display: grid;
    grid-template: repeat(2, 1fr) / repeat(2, 1fr);
    gap: 2px;
    width: 1rem;
    height: 1rem;
}

.grid-icon-p::before,
.grid-icon-p::after {
    content: "";
    grid-column: 1;
    background: purple;
    border-radius: 2px;
}

.grid-icon-p::before {
    grid-row: 1;
}

.grid-icon-p::after {
    grid-row: 2;
}

.slots-icon-v {
    background: linear-gradient(to bottom, #d53f8c, #7e22ce);
    border-radius: 4px;
    color: #f0e68c;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.live-icon-j {
    background: linear-gradient(to bottom, #4a5568, #1a202c);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-icon-j::after {
    content: "";
    width: 1rem;
    height: 0.5rem;
    background: white;
    border-radius: 2px;
    position: relative;
}

.live-icon-j::before {
    content: "";
    position: absolute;
    width: 0.25rem;
    height: 0.75rem;
    background: black;
    border-radius: 0 0 2px 2px;
    z-index: 1;
}

.sidebar-footer-s {
    margin-top: auto;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.casino-time-d-g {
    background-color: var(--secondary-light);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.instal-app-btn-h {
    background: linear-gradient(to right, var(--primary-color), #fd7e14);
    color: #000;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.langua-select-g {
    background-color: var(--secondary-light);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.langua-select-inner-b {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suppor-btn-b {
    background-color: var(--secondary-light);
    border-radius: 9999px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.suppor-btn-b:hover {
    background-color: #342c47;
}

/* ===== MAIN CONTENT ===== */
.main-content-z {
    flex: 1;
    margin-left: 0;
    padding-bottom: 4rem; /* Space for mobile footer */
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл в контенте */
    max-width: 100%; /* Ограничиваем максимальную ширину */
    box-sizing: border-box; /* Учитываем padding в общей ширине */
}

/* ===== DESKTOP BANNER ===== */
.desktop-banner-k {
    max-width: 100%;
    overflow: hidden;
}

/* ===== HEADER ===== */
.header-t {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    z-index: 20;
    border-bottom: 1px solid rgba(107, 114, 128, 0.4);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.header-left-e {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.mobile-menu-btn-g {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 0.5rem;
}

.mobile-logo-x {
    display: block;
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.mobile-logo-x img {
    max-height: 36px;
    width: auto;
}

.search-container-b {
    display: none;
    flex: 1;
    max-width: 20rem;
}

.search-input-wrapper-v {
    position: relative;
    width: 100%;
}

.search-icon-o {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.search-input-i {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 3rem;
    height: 3rem;
    background-color: var(--bg-dark);
    border: none;
    border-radius: 9999px;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
}

.header-right-x {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== HERO SECTION ===== */
.hero-section-o {
    margin-top: 4rem; /* Account for header height */
    padding: 1rem;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-banner, .desktop-banner-k {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    max-width: 100%;
}

.hero-img-c-a {
    width: 100%;
    height: auto;
    object-fit: contain; /* Изменено с cover на contain, чтобы баннер помещался полностью */
    max-height: 400px; /* Ограничиваем максимальную высоту, чтобы баннер не был слишком большим */
    max-width: 100%;
    display: block; /* Убираем дополнительные отступы у изображения */
    margin: 0 auto; /* Центрируем изображение */
}

/* Mobile banner */
.mobile-hero-banner-s {
    display: none;
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(to right, #4a1a71, #29233a); /* Изменен цвет с голубого на фиолетовый */
    padding: 20px;
    color: white;
    text-align: center;
}

.mobile-banner-content-x {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.mobile-banner-title-m {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.mobile-banner-subtit-m {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: var(--primary-color); /* Используем желтый цвет для подзаголовка */
}

.mobile-banner-steps-p {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.mobile-banner-step-u {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number-j-s {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color); /* Используем основной цвет темы */
    color: #1a1427; /* Темный цвет для текста цифр */
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 5px;
}

.step-text-d-p {
    font-size: 14px;
}

.step-separa-a-f {
    width: 30px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

.mobile-banner-btn-p {
    background-color: var(--primary-color);
    color: #1a1427;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-banner-btn-p:hover {
    background-color: var(--primary-hover);
}

/* ===== GAME CATEGORIES ===== */
.game-catego-section-q {
    padding: 1rem;
    margin-top: 1.5rem;
}

.catego-tabs-b {
    display: flex;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0.25rem;
    background-color: var(--secondary-color);
    border: 1px solid #2d2d2d;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    max-width: 100%;
    -webkit-overflow-scrolling: touch; /* Улучшаем скролл на iOS */
}

.catego-tabs-b::-webkit-scrollbar {
    display: none;
}

.catego-tab-e {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    flex: none;
}

.catego-tab-e.active-z {
    background-color: var(--secondary-light);
    transform: scale(1.05);
}

.catego-icon-r {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catego-icon-r img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s;
}

.catego-tab-e.active-z .catego-icon-r img {
    transform: rotate(12deg);
}

/* ===== GAMES SECTION ===== */
.games-section-o {
    padding: 1rem;
    margin-top: 1.5rem;
}

.section-title-r {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.games-grid-s {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.game-card-a {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s;
}

.game-card-a:hover {
    transform: translateY(-2px);
}

.game-img-container-o {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.game-img-a {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.game-card-a:hover .game-img-a {
    transform: scale(1.1);
}

.hot-label-x {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #e53e3e;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 2;
}

.play-btn-overla-h {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.game-card-a:hover .play-btn-overla-h {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.4);
}

.play-btn-v {
    width: 4rem;
    height: 4rem;
    background-color: var(--rose-button);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transform: translateY(1rem);
    transition: transform 0.3s, scale 0.3s;
}

.game-card-a:hover .play-btn-v {
    transform: translateY(0);
}

.game-card-a:hover .play-btn-v:hover {
    transform: scale(1.1);
}

.game-info-l {
    background-color: var(--secondary-color);
    padding: 0.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.game-title-d {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provid-p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== EXPLORE ALL GAMES ===== */
.explor-all-games-x {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
}

.explor-content-s h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
}

.explor-content-s p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer-f {
    background-color: var(--secondary-color);
    padding: 2rem 1rem 6rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(107, 114, 128, 0.4);
    display: none;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-content-n {
    max-width: 75rem;
    margin: 0 auto;
}

.paymen-method-c-p {
    margin-bottom: 2rem;
}

.paymen-method-c-p h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.paymen-icons-y {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.paymen-icon-y {
    width: 4rem;
    height: 2.5rem;
    background-color: var(--secondary-light);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.paymen-icon-y img, 
.paymen-icon-y svg {
    max-width: 100%;
    max-height: 100%;
}

.bitcoi-r-j svg {
    height: 1.5rem;
}

.footer-separator {
    height: 1px;
    background-color: rgba(107, 114, 128, 0.3);
    margin: 1.5rem 0;
}

.footer-bottom-n {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-brand-q {
    max-width: 32rem;
}

.footer-logo-e {
    height: 2rem;
    width: auto;
    margin-bottom: 1rem;
}

.footer-descri-b {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links-r {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.footer-links-r a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links-r a:hover {
    color: var(--text-color);
}

.footer-discla-k {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.respon-icons-q {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.respon-icon-z {
    width: 1.5rem;
    height: 1.5rem;
}

.respon-icon-z svg {
    width: 100%;
    height: 100%;
}

/* ===== MOBILE FOOTER ===== */
.mobile-footer-f {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    border-top: 1px solid #2d2d2d;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    z-index: 50;
    width: 100%;
    max-width: 100%;
}

.mobile-footer-item-m {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    position: relative;
}

.mobile-footer-item-m i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-footer-item-m span {
    font-size: 0.75rem;
}

.mobile-footer-item-m.active-z {
    color: var(--primary-color);
}

.mobile-footer-item-m.active-z::before {
    content: '';
    position: absolute;
    inset: -0.25rem;
    background-color: var(--secondary-light);
    border-radius: 9999px;
    z-index: -1;
}

/* ===== LOADER ===== */
.loader-y-b {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    width: 3rem;
    height: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 767px) {
    /* Мобильные стили */
    body {
        padding-right: 0; /* Убираем отступ справа, который может вызывать скролл */
    }
    
    .hero-section-o {
        padding: 1rem 1rem 0; /* Уменьшаем отступы */
    }
    
    .desktop-banner-k {
        display: none;
    }
    
    .mobile-hero-banner-s {
        display: block;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .game-catego-section-q {
        display: none;
    }
    
    .games-section-o {
        padding: 0.5rem;
    }
    
    .games-grid-s {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .game-card-a {
        margin-bottom: 0.5rem;
    }
    
    .mobile-logo-x {
        display: block;
    }
    
    /* Уменьшаем размер логотипа на мобильных устройствах */
    .mobile-logo-x img {
        max-height: 36px;
        width: auto;
    }
}

@media (min-width: 768px) {
    /* Десктопные стили */
    .sidebar-i {
        display: block;
        width: 18rem;
        max-width: 18rem;
    }
    
    .main-content-z {
        margin-left: 18rem;
        max-width: calc(100% - 18rem);
        overflow-x: hidden;
    }
    
    .header-t {
        left: 18rem;
        max-width: calc(100% - 18rem);
        width: calc(100% - 18rem);
    }
    
    .mobile-menu-btn-g,
    .mobile-logo-x {
        display: none;
    }
    
    .search-container-b {
        display: flex;
    }
    
    .mobile-footer-f {
        display: none;
    }
    
    .desktop-banner-k {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    .mobile-hero-banner-s {
        display: none;
    }
    
    .game-catego-section-q {
        display: block;
    }
    
    .games-grid-s {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-f {
        display: block;
        padding-bottom: 2rem;
    }
    
    .footer-bottom-n {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .games-grid-s {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .hero-banner {
        height: auto;
    }
}

@media (min-width: 1280px) {
    .games-grid-s {
        grid-template-columns: repeat(6, 1fr);
    }
} 