.main-home-doctors,
.main-home-doctors * {
    box-sizing: border-box;
}

.main-home-doctors {
    padding: 70px 20px 105px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f8e8e5 100%);
}

.main-home-doctors__container {
    width: min(100%, 1520px);
    margin: 0 auto;
}

.main-home-doctors__header {
    display: flex;
    margin-bottom: 45px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.main-home-doctors__title {
    margin: 0;
    color: #282828;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
}

.main-home-doctors__subtitle {
    margin: 26px 0 0;
    color: #888;
    font-family: Manrope, "Open Sans", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.main-home-doctors__navigation {
    display: flex;
    padding-bottom: 2px;
    gap: 42px;
}

.main-home-doctors__arrow {
    position: relative;
    width: 44px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity .2s ease;
}

.main-home-doctors__arrow::before {
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #282828;
    content: "";
}

.main-home-doctors__arrow::after {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #282828;
    border-right: 2px solid #282828;
    content: "";
}

.main-home-doctors__arrow--prev::before {
    left: 7px;
    transform: translateY(-50%);
}

.main-home-doctors__arrow--prev::after {
    left: 7px;
    transform: translateY(-50%) rotate(-135deg);
}

.main-home-doctors__arrow--next::before {
    right: 7px;
    transform: translateY(-50%);
}

.main-home-doctors__arrow--next::after {
    right: 7px;
    transform: translateY(-50%) rotate(45deg);
}

.main-home-doctors__arrow:hover:not(:disabled) {
    opacity: .65;
}

.main-home-doctors__arrow:disabled {
    opacity: .18;
    cursor: default;
}

.main-home-doctors__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.main-home-doctors__viewport::-webkit-scrollbar {
    display: none;
}

.main-home-doctors__track {
    display: flex;
    width: max-content;
    gap: 30px;
}

.main-home-doctors__item {
    width: 300px;
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.main-home-doctors__link,
.main-home-doctors__link:hover,
.main-home-doctors__link:focus {
    display: block;
    color: inherit;
    text-decoration: none;
}

.main-home-doctors__photo {
    display: block;
    width: 300px;
    aspect-ratio: 351 / 474;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
}

.main-home-doctors__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .25s ease;
}

.main-home-doctors__link:hover .main-home-doctors__image {
    transform: scale(1.025);
}

.main-home-doctors__name {
    display: block;
    margin-top: 20px;
    color: #d71f27;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.main-home-doctors__position {
    display: block;
    margin-top: 8px;
    color: #888;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
    text-transform: uppercase;
}

@media (max-width: 1199px) {
    .main-home-doctors__title {
        font-size: 52px;
    }

    .main-home-doctors__item {
        width: 270px;
        flex-basis: 270px;
    }

    .main-home-doctors__photo {
        width: 270px;
    }
}

@media (max-width: 767px) {
    .main-home-doctors {
        padding: 45px 0 46px;
        background: linear-gradient(213deg, #fff 14.37%, #f8e8e5 71.26%);
    }

    .main-home-doctors__header {
        padding: 0 15px;
        margin-bottom: 60px;
        align-items: center;
        gap: 20px;
    }

    .main-home-doctors__title {
        font-size: 28px;
        line-height: 1.2;
    }

    .main-home-doctors__subtitle {
        width: 302px;
        max-width: 100%;
        margin-top: 25px;
        font-size: 16px;
        line-height: 1.2;
    }

    .main-home-doctors__navigation {
        gap: 20px;
        flex-shrink: 0;
    }

    .main-home-doctors__arrow {
        width: 36px;
        height: 28px;
    }

    .main-home-doctors__viewport {
        padding: 0 15px;
        scroll-padding-left: 15px;
    }

    .main-home-doctors__track {
        gap: 20px;
    }

    .main-home-doctors__item {
        width: 200px;
        flex-basis: 200px;
    }

    .main-home-doctors__photo {
        width: 200px;
    }

    .main-home-doctors__name {
        margin-top: 30px;
    }
}

@media (max-width: 479px) {
    .main-home-doctors__header {
        align-items: flex-end;
        flex-direction: row;
    }
}
