.home-specialists {
    padding: 64px 0;
    overflow: hidden;
    background: #fff;
}

.home-specialists__title {
    margin: 0 0 36px;
    color: var(--color-primary);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    text-align: center;
}

.home-specialists__stage {
    position: relative;
    width: min(1180px, calc(100% - 144px));
    margin: 0 auto;
}

.home-specialists__swiper {
    width: 100%;
    padding: 0 0 70px;
    overflow: hidden;
}

.home-specialists__swiper .swiper-wrapper {
    align-items: stretch;
}

.home-specialists__slide {
    display: flex;
    height: auto;
    align-items: stretch;
}

.home-specialist {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: var(--color-surface);
}

.home-specialist__image {
    display: block;
    height: 360px;
    overflow: hidden;
    background: #e5edf8;
}

.home-specialist__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 300ms ease;
}

.home-specialist__image:hover img {
    transform: scale(1.025);
}

.home-specialist__body {
    display: flex;
    padding: 28px;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-specialist__name {
    margin: 0 0 10px;
    color: var(--color-primary);
    font-size: 25px;
    line-height: 1.16;
}

.home-specialist__role {
    min-height: 48px;
    margin-bottom: 12px;
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.35;
}

.home-specialist__experience {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 18px;
    color: #4f5d73;
    font-size: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-specialist__benefits {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 24px;
    color: #344158;
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.home-specialist__benefits > :first-child {
    margin-top: 0;
}

.home-specialist__benefits > :last-child {
    margin-bottom: 0;
}

.home-specialist__benefits ul {
    margin: 12px 0 0;
    padding-left: 21px;
}

.home-specialist__benefits li + li {
    margin-top: 8px;
}

.home-specialist__actions {
    display: grid;
    margin-top: auto;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.home-specialist__button,
.home-specialists__all {
    display: inline-flex;
    min-height: 46px;
    padding: 10px 18px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-accent);
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: color 180ms ease, background-color 180ms ease;
}

.home-specialist__button--primary,
.home-specialists__all {
    color: #fff;
    background: var(--color-accent);
}

.home-specialist__button--secondary {
    color: var(--color-accent);
    background: transparent;
}

.home-specialist__button:hover,
.home-specialist__button:focus-visible,
.home-specialists__all:hover,
.home-specialists__all:focus-visible {
    color: #fff;
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.home-specialists__footer {
    position: absolute;
    right: 0;
    bottom: 25px;
    left: 0;
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
}

.home-specialists__pagination {
    position: static;
    width: auto !important;
    transform: none !important;
}

.home-specialists__autoplay {
    position: absolute;
    right: 20px;
}

.home-specialists__controls {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: -64px;
    width: calc(100% + 128px);
    max-width: none;
    transform: translateY(-50%);
}

.home-specialists__all-wrap {
    display: flex;
    justify-content: center;
}

.home-specialists__all {
    min-width: 230px;
}

@media (max-width: 991px) {
    .home-specialists {
        padding: 48px 0;
    }

    .home-specialists__stage {
        width: calc(100% - 30px);
    }

    .home-specialists__controls {
        display: none;
    }

    .home-specialist__image {
        height: 330px;
    }
}

@media (max-width: 767px) {
    .home-specialists__title {
        margin-bottom: 24px;
        font-size: 32px;
    }

    .home-specialist__image {
        height: min(108vw, 450px);
    }

    .home-specialist__body {
        padding: 24px 20px;
    }

    .home-specialist__role {
        min-height: 0;
    }

    .home-specialist__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-specialist__image img,
    .home-specialist__button,
    .home-specialists__all {
        transition: none;
    }
}
