*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#F7F8FA;
    color:#111827;
}

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 80px;

    background:white;

    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.logo{
    color:#2563EB;
    font-size:28px;
}

nav a{
    text-decoration:none;
    color:#1F2937;
    margin-left:25px;
    font-weight:bold;
    transition:0.3s;
}

nav a:hover{
    color:#2563EB;
}

.hero{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:80px;

    min-height:80vh;
}

.hero-text{
    max-width:600px;
    animation:slideLeft 1s ease;
}

.hero-text h1{
    font-size:60px;
    margin-bottom:20px;
    line-height:1.1;
}

.hero-text p{
    font-size:20px;
    margin-bottom:30px;
    line-height:1.6;
    color:#4B5563;
}

.hero-text button{
    background:#2563EB;
    color:white;

    border:none;

    padding:15px 30px;

    border-radius:12px;

    cursor:pointer;

    font-size:18px;

    transition:0.3s;
}

.hero-text button:hover{
    transform:scale(1.05);

    box-shadow:0 10px 25px rgba(37,99,235,0.3);
}

.hero-image{
    animation:slideRight 1s ease;
}

.hero-image img{
    width:450px;
    border-radius:25px;

    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.courses{
    padding:80px;
}

.courses h2{
    text-align:center;
    font-size:40px;
    margin-bottom:50px;
}

.cards{
    display:flex;
    gap:25px;
}

.card{
    background:white;

    padding:30px;

    border-radius:18px;

    flex:1;

    box-shadow:0 5px 20px rgba(0,0,0,0.08);

    transition:0.3s;
}

.card:hover{
    transform:translateY(-10px);
}

.card h3{
    margin-bottom:15px;
    color:#2563EB;
}

.card p{
    color:#4B5563;
    line-height:1.6;
}

@keyframes slideLeft{

    from{
        opacity:0;
        transform:translateX(-50px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@keyframes slideRight{

    from{
        opacity:0;
        transform:translateX(50px);
    }

    to{
        opacity:1;
        transform:translateX(0);
    }

}

@media(max-width:900px){

    .hero{
        flex-direction:column;
        text-align:center;
        padding:40px;
    }

    .hero-image img{
        width:300px;
        margin-top:30px;
    }

    .cards{
        flex-direction:column;
    }

    .header{
        flex-direction:column;
        gap:15px;
    }

}
/* ===== Модальное окно ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    width: 420px;
    max-width: 90%;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
    animation: popup .3s ease;
}

@keyframes popup{
    from{
        opacity:0;
        transform:scale(.8);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

.close{
    float:right;
    font-size:30px;
    cursor:pointer;
    font-weight:bold;
}

.modal input{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:16px;
    box-sizing:border-box;
}

.modal button{
    width:100%;
    padding:14px;
    margin-top:15px;
    border:none;
    border-radius:8px;
    background:#0D1B3D;
    color:white;
    font-size:17px;
    cursor:pointer;
    transition:.25s;
}

.modal button:hover{
    background:#D4AF37;
    color:black;
}
/* ===== Mobile version ===== */
@media (max-width: 768px) {

    .header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    nav a {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 18px;
    }

    .courses {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .course-card {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-content input,
    .modal-content button {
        width: 100%;
        font-size: 16px;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:32px;
    cursor:pointer;
    color:#2563eb;
}

@media (max-width:768px){

    .menu-toggle{
        display:block;
    }

    .nav-menu{
        display:none;
        flex-direction:column;
        width:100%;
        text-align:center;
        margin-top:15px;
    }

    .nav-menu.active{
        display:flex;
    }

    .logo{
        font-size:42px;
    }

    .header{
        align-items:center;
    }
}