:root {
    --dark-bg: #121212;
    --dark-secondary: #1a1a1a;
    --dark-footer: #000;
    --primary-yellow: #FFC107;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-yellow);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.top-bar {
    background-color: yellow;
    color: black;
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
}

header.main-header {
    background-color: var(--dark-bg);
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-primary);
}

.play-now-btn {
    background-color: #222;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    border: 1px solid #444;
}

main {

}

.hero-section {
    color: white;
    padding: 100px 20px;
    text-align: center;
    background-image: url('krasnaa-igra-v-kazino-za-pokernym-stolom.jpg');
    background-size: cover;
    background-position: center center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-section p {
    font-size: 22px;
    margin: 15px 0 30px 0;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

.hero-btn {
    background-color: var(--primary-yellow);
    color: #000;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s;
    display: inline-block;
}

.hero-btn:hover {
    transform: scale(1.05);
}


.game-showcase {
    padding: 60px 20px;
    background-color: var(--dark-secondary);
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title .stars {
    color: var(--primary-yellow);
    font-size: 24px;
    margin: 0 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.game-card img {
    width: 100%;
    height: 100%;
    max-width: 80%;
    padding: 20px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.card-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.card-play-btn {
    display: block;
    background-color: var(--primary-yellow);
    color: #000;
    text-align: center;
    padding: 12px;
    max-width: 300px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.card-play-btn:hover {
    background-color: #ffd447;
}

.main-footer {
    background-color: var(--dark-footer);
    padding: 60px 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-column p, .footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.8;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-secondary);
}

.footer-column a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 14px;
}

.social-spill-btn {
    background-color: var(--primary-yellow);
    color: white !important;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
    margin-top: 10px;
}


.game-iframe {
    width: 100%;
    height: 750px;
}

#age-gate-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); display: flex;
    justify-content: center; align-items: center; z-index: 2000;
}
#age-gate-modal {
    background-color: #262626; padding: 30px 40px; border-radius: 12px;
    max-width: 500px; width: 90%; text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
#age-gate-modal h2 { font-size: 28px; color: var(--primary-yellow); margin-top: 0; margin-bottom: 10px; }
#age-gate-modal h3 { font-size: 22px; margin-bottom: 15px; }
#age-gate-modal p { font-size: 16px; color: #cccccc; line-height: 1.5; }
.rules-list { list-style: none; padding: 0; margin: 25px 0; text-align: left; }
.rules-list li { display: flex; align-items: center; font-size: 18px; margin-bottom: 15px; }
.rules-list li span { margin-right: 15px; font-size: 24px; }
.links-list { list-style: none; padding: 0; margin-top: 20px; text-align: center; }
.links-list li { margin-bottom: 8px; }
.links-list a { color: var(--primary-yellow); text-decoration: none; font-weight: bold; }
.links-list a:hover { text-decoration: underline; }
.modal-buttons { margin-top: 30px; }
.modal-btn { width: 100%; padding: 15px; border: none; border-radius: 8px; font-size: 18px; font-weight: bold; cursor: pointer; transition: transform 0.2s; }
.modal-btn:hover { transform: scale(1.02); }
#accept-btn { background-color: var(--primary-yellow); color: #111; }
#decline-btn { background-color: #444; color: #ccc; margin-top: 10px; }
.hidden { display: none !important; } /* Добавлено !important для надежности */
body.no-scroll { overflow: hidden; }
.game-iframe-wrapper {
    margin: 40px auto;
}

.features-section {
    background-color: var(--dark-bg);
    padding: 60px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на больших экранах */
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {

    .hero-section h1 {
        font-size: 40px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 24px;
        flex-direction: column;
    }
    .section-title .stars {
        margin: 5px 0;
    }

    .logo {
        font-size: 24px;
    }

    .play-now-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .main-footer {
        padding: 40px 0;
        text-align: center;
    }

    .footer-grid {
        gap: 20px;
    }

    .social-spill-btn {
        margin: 10px auto;
    }
    .game-iframe {
        width: 100%;
        height: 300px;
    }

    .game-iframe-wrapper {
        border: none;
    }

    #age-gate-modal {
        padding: 20px;
    }

    #age-gate-modal h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 32px;
    }
    .hero-section p {
        font-size: 16px;
    }
    .hero-btn {
        padding: 15px 30px;
        font-size: 18px;
    }
    .games-grid {
        gap: 20px;
    }
}