body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
            background: #0f0f0f;
            color: #fff;
        }
        

        header {
            background: #141414;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 2rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

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

        nav ul {
            list-style: none;
            display: flex;
            gap: 2rem;
            flex-direction: row;
            position: static;
            background: none;
            width: auto;
            padding: 0;
        }

        nav a {
            color: #fff;
            text-decoration: none;
            font-weight: 700;
            transition: color 0.3s;
        }

        nav a:hover {
            color: #2563eb;
        }

        .main-nav .burger {
            display: none;
        }

        h2 {
            font-size: 3rem;
            text-align: center;
            margin: 2rem 0 1rem;
            color: #0099ff;
        }

        .games-courses-wide,
.hero-wide,
.benefits-wide,
.reference-home-wide,
.cta-contact-wide {
    padding: 2rem 4vw;
    max-width: none;
    margin: 0;
    width: 100%; 
    box-sizing: border-box;
}

.wide-main {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;      
    box-sizing: border-box;
}

.benefits-grid-wide,
.reference-grid-wide,
.games-cards-wide {
    max-width: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

        .games-cards-wide {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); 
            gap: 2.5rem;
            justify-items: center;
        }

        .game-card {
            background: #000000;
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.3s;
            text-align: center;
            color: #fff;
        }

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

        .game-card img,
        .game-bg img {
            width: 100%;
            height: 260px; 
            object-fit: cover;
            max-width: 100%;
            display: block;
        }

        .game-title {
            background: none !important;
            color: #2563eb;
            border-radius: 0 !important;
            padding: 1.2rem 0 0.7rem 0;
            font-size: 2.3rem;
            text-decoration: none;
            display: block;
            margin-bottom: 1.4rem;
            box-shadow: none !important;
            word-break: break-word;
        }
        
.game-title a {
    text-decoration: none !important;
    color: inherit;
}

        .hero-wide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4vw;
    box-sizing: border-box;
    padding-bottom: 6rem;
}

.hero-wide-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

        .btn-main {
            display: inline-block;
            background: #2563eb;
            color: #fff;
            padding: 0.75rem 1.5rem;
            margin-top: 1rem;
            font-weight: 700;
            border-radius: 8px;
            text-decoration: none;
            transition: background 0.3s;
        }

        .btn-main:hover {
            background: #1e40af;
        }

        .benefits-grid-wide {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
        }

        .benefit-card {
            background: #1a1a1a;
            border-radius: 12px;
            padding: 1.5rem;
            text-align: center;
        }

        .benefit-card img {
            width: 60px;
            margin-bottom: 1rem;
        }

        .reference-grid-wide {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        blockquote {
            background: #1a1a1a;
            border-left: 4px solid #2563eb;
            padding: 1.5rem;
            border-radius: 12px;
        }

        footer {
            background: #0d0d0d;
            text-align: center;
            padding: 1rem;
            margin-top: 2rem;
            font-size: 0.9rem;
        }

.mode-toggle {
    background: none;
    border: none;
    color: #00ffcc;
    font-size: 1.7rem;
    cursor: pointer;
    margin-left: 1.5rem;
    transition: color 0.3s;
    outline: none;
    position: relative;
    z-index: 1100;
}
.mode-toggle:hover {
    color: #fff700;
}

body.light-mode {
    background: #f6f6f6;
    color: #181818;
}
body.light-mode header,
body.light-mode nav ul,
body.light-mode .benefit-card,
body.light-mode blockquote {
    background: #fff;
    color: #181818;
}
body.light-mode .btn-main {
    background: #2563eb;
    color: #fff;
}
body.light-mode .btn-main:hover {
    background: #1e40af;
}
body.light-mode h2 {
    color: #0099ff;
}
body.light-mode .game-title {
    color: #0099ff;
}
body.light-mode .game-card {
    background: #f0f0f0;
    color: #181818;
}
body.light-mode footer {
    background: #eaeaea;
    color: #181818;
}
body.light-mode nav a {
    color: #181818;
}
body.light-mode nav a:hover {
    color: #2563eb;
}

body.light-mode .site-footer {
    background: #f6f6f8;
    color: #222;
}

body.light-mode .footer-links h4,
body.light-mode .footer-contact h4 {
    color: #e63946;
}

body.light-mode .footer-links ul li a {
    color: #222;
}

body.light-mode .footer-links ul li a:hover {
    color: #e63946;
}

body.light-mode .footer-contact ul li i {
    color: #e63946;
}

body.light-mode .footer-social a {
    color: #222;
}

body.light-mode .footer-social a:hover {
    color: #e63946;
}

body.light-mode .footer-bottom {
    border-top: 1px solid #ddd;
    color: #666;
}

        @media (max-width: 768px) {
            nav ul {
                flex-direction: column;
                display: none;
                background: #141414;
                position: absolute;
                top: 80px;
                right: 20px;
                width: 200px;
                border-radius: 8px;
                padding: 1rem;
                gap: 1rem;
                z-index: 2000;
            }
            nav ul.open {
        display: flex !important;
    }
            .main-nav .burger {
                display: block;
                background: none;
                border: none;
                cursor: pointer;
                z-index: 2100;
                position: absolute;
                top: 24px;
                right: 1rem; 
            }
            .mode-toggle {
        position: absolute;
        top: 24px;
        right: 3.5rem; 
        margin-left: 0;
    }

            .main-nav .burger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 6px 0;
    background: #2563eb; 
    border-radius: 2px;
    transition: background 0.3s;
}

            .burger span {
                display: block;
                height: 3px;
                background: white;
                margin: 6px 0;
            }
        }

        .games-cards-wide .game-card {
    text-decoration: none !important;
}
.games-cards-wide .game-card * {
    text-decoration: none !important;
}
.games-cards-wide .game-card {
    background: none !important;
}
body.light-mode .games-cards-wide .game-card {
    background: none !important;
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s, transform 0.7s;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

        @media (max-width: 900px) {
    .games-cards-wide {
        grid-template-columns: 1fr;
    }
    .game-card img,
    .game-bg img {
        height: 180px;
    }
    .game-title {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .games-cards-wide {
        gap: 1.2rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .game-card {
        padding-bottom: 0.5rem;
    }
    .game-card img,
    .game-bg img {
        width: 100%;
        height: 180px;     
        object-fit: cover;
        border-radius: 16px;
        display: block;
        max-width: 100%;
    }
}

.hero-wide-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .hero-wide-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-wide-image img {
        max-width: 220px;
        height: auto;
    }
}

.cta-contact-wide {
    text-align: center;
}

.cta-contact-wide h2,
.cta-contact-wide p {
    font-size: 2rem; 
    margin-bottom: 1rem;
}

.cta-contact-wide p {
    font-size: 1.3rem; 
}

.site-footer {
    background: #181a1b;
    color: #fff;
    padding: 40px 0 0 0;
    font-size: 1rem;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    gap: 40px;
}

.footer-about {
    flex: 1 1 250px;
    min-width: 220px;
}

.footer-logo {
    width: 120px;
    margin-bottom: 15px;
}

.footer-links,
.footer-contact {
    flex: 1 1 180px;
    min-width: 180px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ff4655;
    letter-spacing: 1px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-contact ul li i {
    margin-right: 8px;
    color: #ff4655;
}

.footer-social {
    margin-top: 12px;
}

.footer-social a {
    color: #fff;
    font-size: 1.4rem;
    margin-right: 14px;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #ff4655;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 30px;
    padding: 18px 0 10px 0;
    text-align: center;
    font-size: 1rem;
    color: #aaa;
}

.hero-wide-text h2 {
    font-size: 2.7rem;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 900;
    margin-bottom: 1.2rem;
}

.hero-wide-text p {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-wide-text .btn-main {
    font-size: 1.35rem;
    padding: 1.1rem 2.7rem;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 10px;
    }
    .footer-about,
    .footer-links,
    .footer-contact {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 15px auto;
    }
}

.game-desc {
    display: block;
    font-size: 1.05rem;
    color: #ffffff;
    margin: 0 1.2rem 1.2rem 1.2rem;
    text-align: center;
    min-height: 48px;
}
body.light-mode .game-desc {
    color: #000000;
}