/* ===== Главное меню ===== */

.main-menu{
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.menu{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    list-style: none;
}

.menu > li{
    position: relative;
}

.menu > li > a{
    display: block;

    padding: 18px 24px;

    color: #23415b;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    transition: .25s;
}

.menu > li > a:hover{
    color: #0b9bd7;
}

/* полоска снизу */

.menu > li > a::after{
    content: "";

    display: block;

    width: 0;
    height: 3px;

    margin-top: 6px;

    background: #0b9bd7;

    transition: .3s;
}

.menu > li:hover > a::after{
    width: 100%;
}

/* ===== Выпадающее меню ===== */

.submenu{

    position: absolute;
    left: 0;
    top: 100%;

    min-width: 310px;

    background: #fff;

    list-style: none;
    padding: 10px 0;
    margin: 0;

    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(0,0,0,.12);

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: .25s;
}

.has-submenu:hover .submenu{

    opacity: 1;
    visibility: visible;
    transform: translateY(0);

}

.submenu li a{

    display: block;

    padding: 14px 20px;

    color: #23415b;
    text-decoration: none;

    transition: .2s;

}

.submenu li a:hover{

    background: #f2fbff;
    color: #0b9bd7;

}

/* стрелочка */

.has-submenu > a::before{

    content: "▾";
    float: right;
    margin-left: 8px;
    color: #888;

}

/* ===== мобильная версия ===== */

@media (max-width:900px){

.menu{

    flex-wrap: wrap;
    justify-content: flex-start;

}

.menu > li{

    width: 100%;

}

.menu > li > a{

    padding: 16px 20px;

}

.submenu{

    position: static;

    opacity: 1;
    visibility: visible;
    transform: none;

    box-shadow: none;

    border-radius: 0;

    display: none;

}

.has-submenu:hover .submenu{

    display: block;

}

}


.doctors{
    padding: 60px 0;
}

.section-title{
    text-align: center;
     
    margin: 40px 0 20px;
    color: #23415b;
}

.doctors-grid,
.staff-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.doctor-card,
.staff-card{
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    text-align: center;
    transition: .3s;
}

.doctor-card:hover,
.staff-card:hover{
    transform: translateY(-5px);
}

.doctor-card img,
.staff-card img{
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.doctor-card h3,
.staff-card h4{
    margin: 12px 10px 5px;
    
    color: #23415b;
}

.doctor-card p,
.staff-card p{
    margin-bottom: 14px;
   
    color: #666;
}