body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: #F0F8FF;
    color: #000080;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #F0F8FF;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    max-width: 400px;
    width: 81%;
}

.modal-content button {
    background: #FFD700;
    color: #000080;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-content label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 15px 0;
    text-align: left;
    gap: 12px;
    line-height: 1.4;
}

.modal-content label input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    margin-top: 2px;
}



.modal-content label a {
    color: #000080;
    text-decoration: underline;
}

.modal-content h2 {
    text-align: center;
}

.modal-content p {
    text-align: center;
}

.modal-content button {
    text-align: center;
    display: block;
    margin: 20px auto 0;
    width: 100%;
    max-width: 300px;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: #00BFFF;
    color: #000080;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 900;
}

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

.logo img {
    height: 50px;
    width: auto;
    max-width: 120px;
}

.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    font-weight: bold;
    color: #000080;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #000080;
    text-decoration: none;
    font-weight: bold;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.age-icon {
    font-weight: bold;
    background: #FFD700;
    padding: 5px 10px;
    border-radius: 5px;
}

.hero {
    background: url('/images/2.webp') no-repeat center center;
    background-size: cover;
    text-align: center;
    padding: 80px 20px;
    color: #000080;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(240, 248, 255, 0.7);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero h2 {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-button {
    background: #FFD700;
    color: #000080;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

.disclaimer {
    font-size: 18px;
    margin-top: 20px;
    font-weight: bold;
    color: #000080;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    background: rgba(255, 215, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.features, .games, .how-to-start, .about, .reviews, .faq, .responsible-gaming, .contact {
    padding: 40px 20px;
    text-align: center;
}

.features-grid, .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.feature img, .game-card img {
    width: 50px;
    height: 50px;
}

.game-card img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
}

.timeline {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    text-align: left;
}

.about-text h4 {
    color: #FFD700;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat {
    background: #00BFFF;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat h4 {
    font-size: 36px;
    color: #FFD700;
    margin: 0;
}

.stat p {
    margin: 5px 0 0 0;
    font-weight: bold;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: #F0F8FF;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #00BFFF;
    text-align: left;
}

.stars {
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer strong {
    color: #000080;
}

.reviewer span {
    color: #666;
    font-size: 14px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #F0F8FF;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #00BFFF;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #00BFFF;
    color: #000080;
}

.faq-question h4 {
    margin: 0;
    font-size: 18px;
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

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

.step {
    flex: 1;
    padding: 20px;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.logos img {
    height: 50px;
    max-width: 100%;
}

.contact-info {
    font-size: 24px;
    font-weight: bold;
}

footer {
    background: #00BFFF;
    color: #000080;
    text-align: center;
    padding: 20px;
}

.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: #000080;
    text-decoration: none;
    margin: 0 10px;
}

@media (max-width: 1000px) {
    /* Предотвращение горизонтального скроллинга */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #00BFFF;
        padding: 10px;
        border-radius: 5px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .timeline {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-text {
        text-align: center;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .faq-question h4 {
        font-size: 16px;
    }

    .logo-text {
        font-size: 18px;
    }

    .disclaimer {
        font-size: 16px;
        padding: 12px;
    }

    /* Компактные стили для мобильных */
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .hero h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .features, .games, .how-to-start, .about, .reviews, .faq, .responsible-gaming, .contact {
        padding: 30px 15px;
    }

    .features-grid, .reviews-grid {
        gap: 15px;
    }

    .feature img, .game-card img {
        width: 40px;
        height: 40px;
    }

    .stat {
        padding: 15px;
    }

    .stat h4 {
        font-size: 28px;
    }

    .review-card {
        padding: 20px;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question h4 {
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    .logos {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .logos img {
        height: 40px;
    }

    /* Уменьшение размеров шрифтов */
    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 22px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    p {
        font-size: 14px !important;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    /* Предотвращение горизонтального скроллинга */
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .hero {
        padding: 40px 10px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero h2 {
        font-size: 14px;
    }

    .features, .games, .how-to-start, .about, .reviews, .faq, .responsible-gaming, .contact {
        padding: 25px 10px;
    }

    .logo-text {
        font-size: 16px;
    }

    .nav-links {
        right: 10px;
        padding: 8px;
    }

    .disclaimer {
        font-size: 12px;
        padding: 10px;
    }

    .logos {
        gap: 10px;
    }

    .logos img {
        height: 35px;
    }

    /* Еще большее уменьшение шрифтов */
    h1 {
        font-size: 22px !important;
    }

    h2 {
        font-size: 16px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    h4 {
        font-size: 14px !important;
    }

    p {
        font-size: 12px !important;
    }
}