.specialists {
    margin: 44px 0;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 2.361vw, 34px);
}

.specialists__block-title {
    text-align: start;
}

.specialists__block-desc a {
text-decoration: underline;
  color: #349E92;
  text-underline-offset: 3px;
}

.specialists__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.specialists__card {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 4px;
    border: 1px solid var(--obvodka);
    border-radius: 16px;
    background: var(--belyy);
}

.specialists__photo-wrap {
    position: relative;
    flex: 0 0 220px;
    align-self: stretch;
    overflow: hidden;
    border-radius: 12px;
    background: var(--svetlo-seryy);
}

.specialists__photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.specialists__play {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    color: var(--dark-blue);
    display: block;
}

.specialists__play-icon {
    display: block;
    width: 36px;
    height: 36px;
}

.specialists__content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    padding: 19px 30px;
}

.specialists__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.specialists__meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.specialists__reviews,
.specialists__rating-value {
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.35;
    color: #77737a;
    white-space: nowrap;
}

.specialists__meta-dot {
    display: block;
    width: 4px;
    height: 4px;
}

.specialists__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.specialists__star {
    display: block;
    width: 16px;
    height: 16px;
}

.specialists__person {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.specialists__name {
    width: 100%;
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1.2;
    color: var(--chernyy);
    overflow-wrap: anywhere;
}

.specification .specialists .specialists__position,
.specialists .specialists__position {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.35;
    color: #77737a;
}

.specialists__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.specification .specialists .specialists__feature,
.specialists .specialists__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: "Roboto Flex", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.35;
    color: var(--chernyy-75);
}

.specification .specialists .specialists__feature::before,
.specialists .specialists__feature::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--dark-blue);
}

.specialists__photo-wrap:empty,
.specialists__meta:empty,
.specialists__person:empty,
.specialists__features:empty,
.specialists__reviews:empty,
.specialists__rating-value:empty,
.specialists__name:empty,
.specialists__position:empty,
.specialists__feature:empty {
    display: none;
}

.specification .specialists .specialists__position:empty,
.specification .specialists .specialists__feature:empty {
    display: none;
}

.specialists__card:not(:has(.specialists__photo-wrap:not(:empty))) .specialists__content {
    padding-left: 30px;
}

@media (max-width: 992px) {
    .specialists {
        margin: 34px 0;
    }

    .specialists__list {
        display: grid;
        align-items: start;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .specialists__card {
        flex-direction: column;
        align-items: center;
    }

    .specialists__photo-wrap {
        flex: 0 0 auto;
        align-self: auto;
        width: 100%;
        height: 234px;
    }

    .specialists__photo {
        position: static;
        min-height: 0;
        height: 100%;
    }

    .specialists__photo--top {
        object-position: center top;
    }

    .specialists__photo--center {
        object-position: center 28%;
    }

    .specialists__content {
        width: 100%;
        padding: 16px 20px;
    }

    .specialists__inner {
        gap: 16px;
    }

    .specialists__reviews,
    .specialists__rating-value {
        font-size: 14px;
    }

    .specialists__name {
        font-size: 21px;
    }

    .specification .specialists .specialists__position,
    .specification .specialists .specialists__feature,
    .specialists .specialists__position,
    .specialists .specialists__feature {
        font-size: 16px;
    }

    .specialists__features {
        gap: 10px;
    }

    .specification .specialists .specialists__feature,
    .specialists .specialists__feature {
        gap: 8px;
    }

    .specification .specialists .specialists__feature::before,
    .specialists .specialists__feature::before {
        flex-basis: 6px;
        width: 6px;
        height: 6px;
        margin-top: 8px;
    }
}

@media (max-width: 599px) {
    .specialists__list {
        grid-template-columns: 1fr;
    }
}
