.doctor-profile-header {
    container: doctor-profile-header / inline-size;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 40px 24px;
    border-radius: 24px;
    background: #fff;
    color: #07384c;
    font-family: IRANSans, YekanBakh-Regular, sans-serif;
    text-align: center;
}

.doctor-profile-header__portrait {
    flex: none;
    width: 130px;
    height: 130px;
    padding: 3px;
    border: 1.5px solid #4574ff;
    border-radius: 50%;
}

.doctor-profile-header__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.doctor-profile-header__name {
    max-width: 100%;
    margin: 18px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 36px;
    overflow-wrap: anywhere;
}

.doctor-profile-header__specialty {
    max-width: 100%;
    margin: 2px 0 0;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    overflow-wrap: anywhere;
}

.doctor-profile-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    max-width: 100%;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 16px;
    line-height: 26px;
}

.doctor-profile-header__city,
.doctor-profile-header__permit {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
}

.doctor-profile-header__city svg {
    flex: none;
    width: 20px;
    height: 22px;
}

.doctor-profile-header__permit {
    flex-wrap: wrap;
    justify-content: center;
}

.doctor-profile-header__permit--separated {
    padding-inline-start: 12px;
    border-inline-start: 1px solid #cbd5e1;
}

.doctor-profile-header__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 24px;
}

.doctor-profile-header__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    min-height: 32px;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    line-height: 24px;
}

.doctor-profile-header__badge > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.doctor-profile-header__badge svg {
    flex: none;
    width: 20px;
    height: 20px;
}

.doctor-profile-header__badge--rating {
    background: #fff4c2;
    color: #b77900;
    cursor: pointer;
}

.doctor-profile-header__badge--rating svg {
    fill: #ffb800;
}

.doctor-profile-header__badge--rating:focus-visible {
    outline: 2px solid #3156ff;
    outline-offset: 4px;
}

.doctor-profile-header__badge--reservations {
    background: #eff4ff;
    color: #3156ff;
}

.doctor-profile-header__badge--recommendations {
    background: #ccfbf1;
    color: #0d9488;
}

@media (max-width: 767px) {
    .doctor-profile-header {
        padding: 32px 20px;
    }

    .doctor-profile-header__stats {
        flex-direction: column;
        gap: 18px;
        margin-top: 30px;
    }

    .doctor-profile-header__badge--recommendations { order: 1; }
    .doctor-profile-header__badge--reservations { order: 2; }
    .doctor-profile-header__badge--rating { order: 3; }
}

@container doctor-profile-header (max-width: 560px) {
    .doctor-profile-header__stats {
        flex-direction: column;
        gap: 18px;
        margin-top: 30px;
    }

    .doctor-profile-header__badge--recommendations { order: 1; }
    .doctor-profile-header__badge--reservations { order: 2; }
    .doctor-profile-header__badge--rating { order: 3; }
}
