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

html {
    overflow-x: hidden;
    width: 100%;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    color: #fff;
    padding: 0 150px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button, .btn, .tab-link, .nav-btn, .sidebar-link {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.main-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 60px 1fr;
    min-height: 100vh;
    background: #000;
    width: 100%;
    max-width: 100vw;
}

/* ===== HEADER ===== */
.header {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.back-btn {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #888;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: 400;
}

.back-btn:hover {
    background: #1a1a1a;
    border-color: #c9a961;
    color: #c9a961;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.nav-btn .nav-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn .nav-icon svg {
    display: block;
}

.nav-btn.active {
    background: transparent;
    color: #c9a961;
    border-color: #c9a961;
}

.bets-btn {
    border-color: #888;
    color: #ddd;
}

.bets-btn:hover:not(.active) {
    background: #1a1a1a;
    border-color: #aaa;
    color: #fff;
}

.bets-btn.active {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.nav-btn:hover:not(.active) {
    background: #1a1a1a;
    border-color: #c9a961;
    color: #c9a961;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-register {
    padding: 10px 30px;
    background: #f5f5f5;
    border: none;
    color: #000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
}

.btn-register:hover {
    background: #fff;
    color: #c9a961;
}

.btn-login {
    padding: 10px 30px;
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
}

.btn-login:hover {
    background: linear-gradient(135deg, #c9a961 0%, #b8985a 100%);
    color: #000;
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: #000;
    border-right: 1px solid #1a1a1a;
    padding: 15px 0;
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.sidebar-promo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 10px 8px;
}

.promo-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.25s;
    position: relative;
    text-decoration: none;
}

.promo-text {
    text-align: center;
    line-height: 1.3;
}

.bonus-btn {
    background: linear-gradient(135deg, #4a0808 0%, #6b0808 100%);
    border-color: #7a1010;
    color: #fff;
}

.bonus-btn:hover {
    background: linear-gradient(135deg, #5a0a0a 0%, #7b0a0a 100%);
    border-color: #c9a961;
    color: #c9a961;
}

.fortune-btn {
    background: #1a1a1a;
    border-color: #3a3a2a;
    color: #c9a961;
}

.fortune-btn:hover {
    background: #222;
    border-color: #c9a961;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: #aaa;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.2s;
    font-size: 14px;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.2px;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #c9a961;
}

.sidebar-link:hover .icon {
    color: #c9a961;
    filter: none;
    opacity: 1;
}

.sidebar-link.active {
    color: #c9a961;
    font-weight: 500;
    border-left-color: #c9a961;
}

.sidebar-link.active .icon {
    color: #c9a961;
    filter: none;
    opacity: 1;
}

.sidebar-link .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: #666;
    filter: grayscale(100%);
    opacity: 0.7;
}

.sidebar-link .text {
    flex: 1;
}

.sidebar-link.has-dropdown {
    justify-content: space-between;
}

.dropdown-arrow {
    font-size: 9px;
    color: #555;
    margin-left: auto;
    transition: all 0.2s;
}

.sidebar-link.has-dropdown:hover .dropdown-arrow {
    color: #888;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: #000;
    padding: 30px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-bottom: 40px;
}

.hero-banner {
    background-color: #1a1a1a;
    background-image: url('banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    padding: 55px 60px;
    position: relative;
    overflow: hidden;
    min-height: 270px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid rgba(220, 20, 60, 0.35);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.15);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: none;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 18px;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-hero {
    padding: 14px 38px;
    background: #dc143c;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
    text-transform: none;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.6);
    background: #c9a961;
    color: #000;
}


/* ===== GAMES TABS ===== */
.games-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 20px;
    background: rgba(30, 10, 10, 0.8);
    border-radius: 8px;
    min-height: 52px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.25);
    box-shadow: 
        0 0 15px rgba(220, 20, 60, 0.12), 
        0 0 25px rgba(239, 68, 68, 0.08),
        inset 0 1px 0 rgba(239, 68, 68, 0.1);
}

.tabs-left {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-left::-webkit-scrollbar {
    display: none;
}

.tabs-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tab-link {
    padding: 16px 18px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    position: relative;
    letter-spacing: 0.2px;
}

.tab-link.active {
    color: #ef4444;
    border-bottom-color: #ef4444;
}

.tab-link:hover {
    color: #ef4444;
}

.tab-scroll {
    padding: 16px 12px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    transition: all 0.3s;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

.tab-scroll:hover {
    color: #ef4444;
}

.tab-providers {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.tab-providers:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.provider-icon {
    font-size: 14px;
}

.tab-search,
.tab-favorite {
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tab-search svg {
    display: block;
}

.tab-search:hover,
.tab-favorite:hover {
    color: #ef4444;
}

/* ===== GAMES SECTION ===== */
.games-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
}

.games-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.2px;
}

.view-all {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.view-all:hover {
    background: #1a1a1a;
    border-color: #c9a961;
    color: #c9a961;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.golden-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

/* Скрываем карточки после 7-й на десктопе */
.golden-grid .game-card:nth-child(n+8) {
    display: none;
}

.games-grid .game-card:nth-child(n+8) {
    display: none;
}

.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #0a0a0a;
    aspect-ratio: 1/1;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.2s ease;
}

.game-card:hover .game-image {
    transform: scale(1.03);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.btn-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.95);
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    text-decoration: none;
}

.btn-play:hover {
    transform: scale(1.08);
    background: #c9a961;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.95) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-card:hover .game-info {
    opacity: 1;
}

.game-info h4 {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
}

.game-provider {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.card-badge.new {
    background: rgba(220, 20, 60, 0.9);
    color: #fff;
}

.card-badge.bonus {
    background: rgba(201, 169, 97, 0.9);
    color: #000;
}

/* ===== FAQ SECTION ===== */
.faq-section-content {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #1a1a1a;
}

.faq-content-container h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #c9a961;
}

.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-accordion-item {
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-accordion-item:hover {
    border-color: #c9a961;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 20px 25px;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #c9a961;
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(201, 169, 97, 0.05);
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    font-size: 24px;
    font-weight: 600;
    color: #c9a961;
    transition: transform 0.3s;
    margin-left: 15px;
}

.faq-accordion-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 25px;
}

.faq-accordion-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

/* ===== SEO CONTENT SECTION ===== */
.seo-content-section {
    background: #0a0a0a;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    border: 1px solid #1a1a1a;
}

.seo-container h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #c9a961;
    line-height: 1.3;
}

.seo-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #c9a961;
}

.seo-container h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #fff;
}

.seo-container p {
    font-size: 15px;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    -webkit-overflow-scrolling: touch;
}

.site-table {
    width: 100%;
    border-collapse: collapse;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    min-width: 500px;
}

.site-table thead {
    background: #1a1a1a;
}

.site-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #c9a961;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.site-table td {
    padding: 15px;
    border-top: 1px solid #1a1a1a;
    color: #ccc;
    font-size: 14px;
}

.site-table tbody tr:hover {
    background: #0a0a0a;
}

/* ===== REVIEWS ===== */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.review-item {
    background: #000;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.review-item:hover {
    border-color: #c9a961;
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1a1a1a;
}

.review-author {
    font-weight: 600;
    color: #c9a961;
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: #888;
}

.review-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin: 0;
}

/* ===== FOOTER ===== */
footer {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 50px 30px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #c9a961;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.footer-section ul li a:hover {
    color: #c9a961;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid #1a1a1a;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: #c9a961;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 13px;
    line-height: 1.6;
    color: #888;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1800px) {
    body {
        padding: 0 200px;
    }
    
    .golden-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 12px;
    }
    
    .games-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1799px) and (min-width: 1400px) {
    body {
        padding: 0 120px;
    }
    
    .games-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 11px;
    }
    
    .golden-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 11px;
    }
}

@media (max-width: 1399px) and (min-width: 1200px) {
    body {
        padding: 0 80px;
    }
    
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    
    .golden-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
}

@media (max-width: 1199px) and (min-width: 1025px) {
    body {
        padding: 0 60px;
    }
    
    .main-container {
        grid-template-columns: 220px 1fr;
    }
    
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    
    .golden-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    body {
        padding: 0;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr;
    }
    
    /* Показываем кнопку меню на планшетах */
    .back-btn {
        display: flex;
        font-size: 20px;
        z-index: 101;
        position: relative;
    }
    
    /* Скрываем меню под баннером на планшетах */
    .games-tabs {
        display: none;
    }
    
    /* Адаптивность таблиц на планшетах */
    .table-wrapper {
        margin: 25px -30px 25px 0;
        padding: 0 30px 0 0;
        overflow-x: auto;
    }
    
    .site-table {
        min-width: 100%;
        font-size: 13px;
    }
    
    .site-table th {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .site-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    /* SEO контент на планшетах */
    .seo-content-section {
        padding: 35px 25px;
    }
    
    .seo-container h1 {
        font-size: 30px;
    }
    
    .seo-container h2 {
        font-size: 24px;
    }
    
    .seo-container p {
        font-size: 14px;
    }
    
    .sidebar {
        position: fixed;
        left: -280px;
        top: 60px;
        width: 280px;
        height: calc(100vh - 60px);
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
        background: #000;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    /* Планшеты: 2 ряда по 4 карточки = 8 карточек */
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .golden-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    /* Показываем 8-ю карточку обратно на планшетах */
    .games-grid .game-card:nth-child(8),
    .golden-grid .game-card:nth-child(8) {
        display: block;
    }
    
    /* Скрываем карточки после 8-й на планшетах */
    .games-grid .game-card:nth-child(n+9) {
        display: none;
    }
    
    /* Для golden-grid показываем только 8 карточек на планшетах */
    .golden-grid .game-card:nth-child(n+9) {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .games-tabs {
        padding: 0 15px;
    }
    
    .tab-link {
        padding: 14px 14px;
        font-size: 13px;
    }
    
    .tab-providers span {
        display: none;
    }
    
    .tab-providers {
        padding: 8px 12px;
    }
}

@media (max-width: 767px) {
    body {
        padding: 0;
    }
    
    .header {
        padding: 0 15px;
        height: 56px;
    }
    
    .header-left {
        gap: 8px;
    }
    
    /* Скрываем меню под баннером на мобильных */
    .games-tabs {
        display: none;
    }
    
    /* Адаптивность таблиц на мобильных */
    .table-wrapper {
        margin: 20px -15px;
        padding: 0 15px;
        overflow-x: auto;
    }
    
    .site-table {
        min-width: 100%;
        font-size: 12px;
    }
    
    .site-table th {
        padding: 10px 8px;
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    
    .site-table td {
        padding: 10px 8px;
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Показываем кнопку меню на мобильных */
    .back-btn {
        display: flex !important;
        width: 34px;
        height: 34px;
        font-size: 18px;
        z-index: 101;
        position: relative;
    }
    
    .logo img {
        height: 32px;
    }
    
    .nav-btn {
        padding: 7px 16px;
        font-size: 13px;
    }
    
    .nav-btn .nav-icon {
        font-size: 14px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .btn-login,
    .btn-register {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-container {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 56px 1fr;
    }
    
    /* Sidebar на мобильных */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 56px;
        width: 280px;
        height: calc(100vh - 56px);
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
        background: #000;
        border-right: 1px solid #1a1a1a;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        top: 56px;
        height: calc(100vh - 56px);
    }
    
    .hero-banner {
        padding: 40px 30px;
        min-height: 220px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-image {
        display: none;
    }
    
    .section-header {
        margin-bottom: 18px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .games-count {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    .view-all {
        padding: 7px 16px;
        font-size: 12px;
    }
    
    /* Мобильные: 2 ряда по 3 карточки = 6 карточек */
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .golden-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    /* Скрываем карточки после 6-й на мобильных (начиная с 7-й) */
    .games-grid .game-card:nth-child(n+7) {
        display: none;
    }
    
    .golden-grid .game-card:nth-child(n+7) {
        display: none;
    }
    
    /* SEO контент на мобильных */
    .seo-content-section {
        padding: 30px 20px;
    }
    
    .seo-container h1 {
        font-size: 26px;
    }
    
    .seo-container h2 {
        font-size: 22px;
        margin: 30px 0 15px;
    }
    
    .seo-container h3 {
        font-size: 18px;
    }
    
    .seo-container p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    footer {
        padding: 40px 20px 20px;
    }
    
    .footer-section h3 {
        font-size: 15px;
    }
    
    .footer-section ul li a {
        font-size: 13px;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .review-item {
        padding: 15px;
    }
    
    .review-item p {
        font-size: 13px;
    }
    
    .btn-play {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .game-info h4 {
        font-size: 11px;
    }
    
    .game-provider {
        font-size: 9px;
    }
    
    .games-tabs {
        padding: 0 12px;
        min-height: 48px;
    }
    
    .tab-link {
        padding: 12px 12px;
        font-size: 12px;
    }
    
    .tab-scroll {
        padding: 12px 10px;
        font-size: 18px;
    }
    
    .tab-providers {
        padding: 6px 10px;
    }
    
    .provider-icon {
        font-size: 16px;
    }
    
    .tab-search,
    .tab-favorite {
        padding: 6px 8px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .main-container {
        width: 100%;
        grid-template-columns: 1fr;
        grid-template-rows: 52px 1fr;
    }
    
    .header {
        height: 52px;
    }
    
    .header-left {
        gap: 6px;
    }
    
    /* Скрываем меню под баннером на маленьких мобильных */
    .games-tabs {
        display: none;
    }
    
    /* Адаптивность таблиц на маленьких мобильных */
    .table-wrapper {
        margin: 15px -10px;
        padding: 0 10px;
    }
    
    .site-table {
        min-width: 100%;
        font-size: 11px;
    }
    
    .site-table th {
        padding: 8px 6px;
        font-size: 10px;
        letter-spacing: 0.2px;
    }
    
    .site-table td {
        padding: 8px 6px;
        font-size: 11px;
        line-height: 1.3;
    }
    
    .logo img {
        height: 28px;
    }
    
    /* Показываем кнопку меню на маленьких мобильных */
    .back-btn {
        display: flex !important;
        width: 30px;
        height: 30px;
        font-size: 16px;
        z-index: 101;
        position: relative;
    }
    
    .nav-btn {
        display: none;
    }
    
    /* Sidebar на маленьких мобильных */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 52px;
        width: 280px;
        height: calc(100vh - 52px);
        z-index: 100;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
        background: #000;
        border-right: 1px solid #1a1a1a;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        top: 52px;
        height: calc(100vh - 52px);
    }
    
    .btn-login,
    .btn-register {
        padding: 7px 16px;
        font-size: 12px;
    }
    
    .main-content {
        padding: 15px 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Мобильные маленькие: тоже 2 ряда по 3 = 6 карточек */
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .golden-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    /* Скрываем карточки после 6-й на маленьких мобильных */
    .games-grid .game-card:nth-child(n+7) {
        display: none;
    }
    
    .golden-grid .game-card:nth-child(n+7) {
        display: none;
    }
    
    .section-header {
        margin-bottom: 16px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
    
    .section-title {
        gap: 8px;
    }
    
    .games-count {
        padding: 2px 8px;
        font-size: 11px;
    }
    
    .view-all {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    /* SEO контент на маленьких мобильных */
    .seo-content-section {
        padding: 25px 15px;
    }
    
    .seo-container {
        padding: 0;
    }
    
    .seo-container h1 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .seo-container h2 {
        font-size: 18px;
        margin: 25px 0 12px;
    }
    
    .seo-container h3 {
        font-size: 16px;
    }
    
    .seo-container p {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .faq-content-container h2 {
        font-size: 20px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 15px 20px;
    }
    
    .faq-answer p {
        font-size: 13px;
    }
    
    .games-tabs {
        padding: 0 10px;
        min-height: 46px;
        gap: 10px;
    }
    
    .tab-link {
        padding: 10px 10px;
        font-size: 11px;
    }
    
    .tab-scroll {
        padding: 10px 8px;
        font-size: 16px;
    }
    
    .tab-providers {
        padding: 5px 8px;
    }
    
    .provider-icon {
        font-size: 14px;
    }
    
    .tab-search,
    .tab-favorite {
        padding: 5px 6px;
        font-size: 16px;
    }
    
    footer {
        padding: 30px 15px 15px;
    }
    
    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-section ul li {
        margin-bottom: 10px;
    }
    
    .footer-section ul li a {
        font-size: 12px;
    }
}

