/* стили для одиночной записи сотрудника и эксперта*/

.single_team h2, h3 {
    color: #313332;
    font-family: "Ony One Medium";
    font-weight: 500;
}
        
.single_team .img_team img {
    width: 100%;
    height: auto;
}
        
.single_team .img_team:not(:has(img)) {
    background-color: #D9D9D9;
}

.single_team::after {
    content: "";
    display: block;
    clear: both;
}

.single_team .img_team {
    float: left;
    margin: 0 81px 0 0;
    width: 496px;
    height: 496px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
        
.single_team .img_team img {
    object-fit: cover;
    object-position: center;
}

.single_team h2 {
    font-size: 30px;
    letter-spacing: -2;
    margin: 0;
}

.single_team h3 {
    font-size: 20px;
    letter-spacing: 0;
    margin: 0;
    margin-top: 20px;
    margin-bottom: 10px;
}

.single_team .education {
    margin: 0;
    margin-bottom: 68px;
}

.single_team p {
    color: #30333A;
    font-size: 18px;
    font-weight: 400;
    font-family: "Ony One Regular";
    line-height: 130%;
    letter-spacing: -2;
}

.single_team .job_title {
    margin: 0;
    margin-top: 24px;
    margin-bottom: 50px;
}
        
.single_team:has(.specialization) .education{
    margin-bottom: 0;
}
        
.single_team .specialization {
    margin: 0;
    margin-bottom: 64px;
}

@media (max-width: 1200px) {
            
    .single_team .img_team {
        width: 400px;
        height: 400px;
        margin: 0 62px 0 0;
    }
            
    .single_team .education {
        min-height: 32px;
        margin-bottom: 32px;
    }
            
}

@media (max-width: 900px) {
    
    .single_team .img_team {
        float: none;
        margin: 0 auto 16px auto;
        width: 200px;
        height: 200px;
    }

    .single_team * {
        font-size: 16px;
    }

    .single_team h2 {
        text-align: center;
        margin: 0 auto;
    }

    .single_team h3 {
        margin: 24px 0 16px 0;
    }

    .single_team .job_title {
        text-align: center;
        margin: 8px 0 0 0;
    }

    .single_team .education {
        margin: 16px 0 24px 0;
    }
    
}
        
        
/* стили для шорткода команды и партнёров */

.team_cards {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: center;
}
        
.team_card_img{
    width: 240px;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.team_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team_card_img {
    margin-bottom: 24px;
}

.team_card_img.no-image{
    background-color: #D9D9D9;
}

.team_departments .team_department:first-child .team_department_title {
    display: none;
}

.team_department_title {
    text-align: center;
}

.team_department {
    margin-top: 64px;
}

.team_card {
    text-decoration: none;
    cursor: pointer;
    width: 240px;
    flex: 0 0 240px;
    text-align: center;
}

.team_card_name {
    font-size: 20px;
    letter-spacing: -2%;
    color: #313332;
    font-family: "Ony One Medium";
    margin-bottom: 16px;
    font-weight: 500;
}

.team_department_title {
    font-size: 24px;
    letter-spacing: -2%;
    color: #313332;
    font-family: "Ony One Medium";
    margin-bottom: 48px;
    font-weight: 500;
}

.team_card_position {
    font-size: 16px;
    color: #313332;
    font-family: "Ony One Regular";
    letter-spacing: -2%;
    font-weight: 400;
}

.team_departments .team_department:first-child .team_card:first-child .team_card_img {
    width: 280px;
    height: 280px;
}
    
.team_departments .team_department:first-child .team_card:first-child {
    width: 280px;
    flex: 0 0 280px;
}

@media (max-width: 1200px) {
    
    .team_card_img {
        width: 200px;
        height: 200px;
    }
    
    .team_departments .team_department:first-child .team_card:first-child .team_card_img {
        width: 240px;
        height: 240px;
    }
    
    .team_departments .team_department:first-child .team_card:first-child {
        width: 240px;
        flex: 0 0 240px;
    }
    
}

@media (max-width: 700px) {
    
    .team_card_img {
        width: 144px;
        height: 144px;
    }
    
    .team_card {
        width: 144px;
        flex: 0 0 144px;
    }
    
    .team_card_name {
        font-size: 16px;
    }
    
    .team_card_position {
        font-size: 14px;
    }
    
    .team_cards {
        gap: 8px;
        justify-content: flex-start;
    }
    
    .team_department_title {
        text-align: start;
        font-size: 18px;
    }
    
    .team_departments .team_department:first-child .team_card:first-child .team_card_img {
        width: 144px;
        height: 144px;
    }
    
    .team_departments .team_department:first-child .team_card:first-child {
        width: 144px;
        flex: 0 0 144px;
    }
    
}