.home-suggested {
    margin-block: 64px;
    padding-inline: 24px;
    overflow: hidden;
    color: #161e55;
    font-family: IRANSans, YekanBakh-Regular, sans-serif;
}

.home-suggested__container {
    max-width: 1280px;
    margin-inline: auto;
}

.home-suggested__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.home-suggested__heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
}

.home-suggested__view-all {
    flex: none;
    color: #3156ff;
    font-size: 14px;
    line-height: 24px;
}

.home-suggested .swiper-slide {
    width: calc((100% - 84px) / 4);
    height: 300px;
}

.home-suggested__card,
.home-suggested__promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    text-align: center;
}

.home-suggested__card {
    padding: 16px 8px;
    background: #fff;
}

.home-suggested__portrait {
    position: relative;
    flex: none;
    width: 66px;
    height: 66px;
    padding: 2px;
    border: 1.5px solid #09bfb4;
    border-radius: 50%;
}

.home-suggested__portrait::after {
    content: "";
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #54e3d4;
}

.home-suggested__portrait img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.home-suggested__name,
.home-suggested__specialty {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-suggested__name {
    margin: 4px 0 0;
    color: #07384c;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
}

.home-suggested__specialty {
    margin: 0;
    color: #8da2bd;
    font-size: 12px;
    line-height: 20px;
}

.home-suggested__rating-row {
    height: 22px;
    margin-top: 10px;
    font-size: 11px;
    line-height: 22px;
}

.home-suggested__rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding-inline: 4px;
    border-radius: 4px;
    background: #eff5ff;
    color: #ffb800;
    white-space: nowrap;
}

.home-suggested__rating svg {
    flex: none;
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.home-suggested__no-rating {
    color: #8da2bd;
}

.home-suggested__availability {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px;
    margin-top: auto;
    color: #8da2bd;
    font-size: 11px;
    line-height: 22px;
}

.home-suggested__book,
.home-suggested__promo-link {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 24px;
    transition: background-color 180ms ease;
}

.home-suggested__book {
    margin-top: 12px;
    background: #3156f7;
    color: #fff;
}

.home-suggested__book:hover {
    background: #2448e5;
}

.home-suggested__promo {
    justify-content: center;
    gap: 26px;
    padding: 24px 34px;
    background: #376dff;
    color: #fff;
}

.home-suggested__promo p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}

.home-suggested__avatars {
    display: flex;
    flex: none;
    justify-content: center;
    width: max-content;
}

.home-suggested__avatars img {
    flex: none;
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
}

.home-suggested__avatars img + img {
    margin-inline-start: -18px;
}

.home-suggested__promo-link {
    background: #dce7ff;
    color: #3156ff;
}

.home-suggested__promo-link:hover {
    background: #edf3ff;
}

.home-suggested a:focus-visible {
    outline: 2px solid #07384c;
    outline-offset: 3px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .home-suggested .swiper-slide {
        width: calc((100% - 48px) / 3);
    }

    .home-suggested__promo {
        padding-inline: 24px;
    }
}

@media (max-width: 767px) {
    .home-suggested {
        margin-block: 40px;
        padding-inline: 24px;
    }

    .home-suggested__heading {
        margin-bottom: 20px;
    }

    .home-suggested__heading h2 {
        font-size: 16px;
        line-height: 24px;
    }

    .home-suggested__view-all {
        font-size: 13px;
    }

    .home-suggested .suggested-slider {
        overflow: visible;
    }

    .home-suggested .home-suggested__doctor-slide {
        width: 228px;
    }

    .home-suggested .home-suggested__promo-slide {
        width: 168px;
    }

    .home-suggested__promo {
        padding-inline: 28px;
    }

    .home-suggested__avatars img {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-suggested a {
        transition: none;
    }
}
