/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00BFFF;
    --accent-yellow: #FFD700;
    --background-light: #F0F8FF;
    --text-dark: #000080;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 191, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, #00BFFF, #0080FF);
    --gradient-accent: linear-gradient(135deg, #FFD700, #FFA500);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-blue);
    position: relative;
    z-index: 2;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--text-dark);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.3rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 2rem;
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-body p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Checkbox Styles */
.checkbox-group {
    text-align: left;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    background: var(--white);
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 191, 255, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.nav-logo .logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.age-badge {
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 191, 255, 0.8), rgba(0, 128, 255, 0.8)), url('<?php echo get_template_directory_uri(); ?>/images/1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Убираем анимацию пузырей */

/* Убираем анимацию float */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 20px;
    text-align: center;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.hero-logo-img:hover {
    transform: scale(1.1);
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: bold;
}

.hero-content h2 {
    color: var(--white);
    opacity: 1;
    margin-bottom: 40px;
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-yellow);
}

.hero-disclaimer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--accent-yellow);
}

.hero-disclaimer p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('<?php echo get_template_directory_uri(); ?>/images/2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 191, 255, 0.1), rgba(255, 215, 0, 0.1));
    pointer-events: none;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(240, 248, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.3);
    border-color: var(--primary-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: 80px 0;
    background: linear-gradient(rgba(240, 248, 255, 0.85), rgba(240, 248, 255, 0.85)), url('<?php echo get_template_directory_uri(); ?>/images/3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.games::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(255, 215, 0, 0.1));
    pointer-events: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.game-card {
    text-align: center;
}

.game-bubble {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.game-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
    animation: bubble 4s ease-in-out infinite;
}

@keyframes bubble {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-bubble:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 191, 255, 0.4);
}

.game-bubble img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.game-bubble:hover img {
    transform: scale(1.05);
}

.game-bubble h4 {
    color: var(--primary-blue);
    font-size: 1.3rem;
}

/* How to Start Section */
.how-to-start {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('<?php echo get_template_directory_uri(); ?>/images/4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.how-to-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(225deg, rgba(0, 191, 255, 0.1), rgba(255, 215, 0, 0.1));
    pointer-events: none;
}
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--primary-blue);
    transform: translateY(-50%);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--text-dark);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.step h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.step p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Responsible Gaming Section */
.responsible-gaming {
    padding: 80px 0;
    background: var(--background-light);
    text-align: center;
}

.responsible-gaming p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: var(--text-dark);
}

.gaming-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.gaming-logos img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.gaming-logos a:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-info {
    background: var(--gradient-primary);
    padding: 30px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: var(--shadow);
}

.contact-info p {
    margin: 0;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-info a {
    color: var(--accent-yellow);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.age-badge-large {
    background: var(--gradient-accent);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.footer-logos {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-logos img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logos a:hover img {
    transform: scale(1.1);
}

.footer-links {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-copyright,
.footer-contact {
    text-align: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero,
    .features,
    .games,
    .how-to-start {
        background-attachment: scroll;
    }
    
    .nav-logo .logo {
        height: 40px;
    }
    
    .hero-logo-img {
        height: 60px;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        margin: 10px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .features-grid,
    .games-grid,
    .steps-timeline {
        grid-template-columns: 1fr;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .gaming-logos {
        gap: 20px;
    }

    .gaming-logos img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 15px 60px;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero-content h2 {
        font-size: 1.1rem;
        padding: 10px;
        margin-bottom: 30px;
    }
    
    .hero-logo-img {
        height: 50px;
    }
    
    .hero-disclaimer {
        bottom: 10px;
        padding: 10px 20px;
        width: 95%;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .feature-card,
    .game-bubble {
        padding: 30px 20px;
    }
} 