.specialist-profile{
    margin:18px 0 50px;
}

.specialist-profile__card{
    display:grid;
    grid-template-columns:minmax(280px,400px) minmax(0,1fr);
    gap:42px;
    align-items:start;
    padding:28px;
    border:1px solid #e1e6ed;
    border-radius:14px;
    background:#fff;
}

.specialist-profile__media{
    min-width:0;
}

.specialist-profile__photo{
    width:100%;
    overflow:hidden;
    border-radius:10px;
    background:#f3f5f7;
}

.specialist-profile__photo img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:4/5;
    object-fit:cover;
}

.specialist-profile__body{
    min-width:0;
}

.specialist-profile__header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:28px;
}

.specialist-profile__header h1{
    min-width:0;
    margin:0;
}

.specialist-profile__position{
    flex:0 1 320px;
    margin:0;
    padding:10px 14px;
    border:1px solid #e1e6ed;
    border-radius:8px;
    background:#f7f8fa;
    text-align:center;
}

.specialist-profile__intro{
    margin-bottom:24px;
}

.specialist-profile__text{
    margin-bottom:28px;
}

.specialist-profile__intro > :last-child,
.specialist-profile__text > :last-child{
    margin-bottom:0;
}

.specialist-profile__contacts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:28px;
}

.specialist-profile__contact{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
    padding:13px 16px;
    border:1px solid #e1e6ed;
    border-radius:9px;
    background:#f7f8fa;
}

.specialist-profile__contact a{
    overflow-wrap:anywhere;
}

.specialist-profile__cta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin-top:24px;
    padding:20px 22px;
    border:1px solid #e1e6ed;
    border-radius:10px;
    background:#f7f8fa;
}

.specialist-profile__cta-text{
    min-width:0;
}

.specialist-profile__cta-text > strong{
    display:block;
    margin-bottom:5px;
}

.specialist-profile__cta .button{
    flex:0 0 auto;
    margin:0;
}

@media (max-width:991px){
    .specialist-profile__card{
        grid-template-columns:minmax(240px,320px) minmax(0,1fr);
        gap:30px;
        padding:24px;
    }
}

@media (max-width:767px){
    .specialist-profile{
        margin:14px 0 38px;
    }

    .specialist-profile__card{
        grid-template-columns:1fr;
        gap:26px;
        padding:18px;
    }

    .specialist-profile__media{
        max-width:420px;
    }

    .specialist-profile__header{
        flex-direction:column;
        gap:14px;
        margin-bottom:22px;
    }

    .specialist-profile__position{
        flex:none;
        width:auto;
        max-width:100%;
        text-align:left;
    }

    .specialist-profile__intro{
        margin-bottom:20px;
    }

    .specialist-profile__text{
        margin-bottom:24px;
    }

    .specialist-profile__contacts{
        grid-template-columns:1fr;
        margin-top:24px;
    }

    .specialist-profile__cta{
        align-items:flex-start;
        flex-direction:column;
        gap:16px;
        padding:18px;
    }
}