.block-latest-clients {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) -3.71%, #FFFFFF 25.09%, var(--wp--preset--color--blue-base) 76.15%);
    padding-bottom: 100px;
    margin-top: 160px;
}
.block-section:has(.block-latest-clients:last-child)::after {
    display: none;
}
.block-latest-clients__inner {
    justify-content: center;
}
.block-latest-clients__content {
    --custom-theme-flex-span: var(--custom-theme-flex-inner-span);
    position: relative;
    min-height: calc(612px + 38px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}
.block-latest-clients__list {
    display: flex;
    flex-direction: column;
    height: 394px;
    max-width: calc(100% - 43px - 422px);
}
.block-latest-clients__item:first-child .latest-client__link {
    padding-top: 0;
}
.latest-client__link {
    display: flex;
    flex-wrap: wrap;
    column-gap: 29px;
    color: inherit;
    text-decoration: none;
    padding-top: 20px;
}
.latest-client__link .icon {
    flex: 0 0 31px;
    height: auto;
    transition: 0.3s ease-out;
}
.latest-client__name {
    margin-bottom: 0;
    max-width: calc(100% - 29px - 31px);
}
.latest-client__image {
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 0;
    width: 422px;
    height: 612px;
    object-fit: cover;
    border-radius: 211px 211px 0 0;
    transition: 0.5s ease-out;
}
.latest-client__figures-wrapper {
    overflow: hidden;
    border-bottom: 1px solid;
    width: 100%;
    flex: 1 1 100%;
    height: 57px;
    transition: 0.3s ease-out 0.1s;
}
.latest-client__figures {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.latest-client:hover .latest-client__figures.is-overflow {
    animation: latestClientFigures 10s linear alternate-reverse infinite;
}
@keyframes latestClientFigures {
    0% { transform: translateX(-100%) }
    10% { transform: translateX(-100%) }
    90% { transform: translateX(0) }
    100% { transform: translateX(0) }
}
.latest-client__figure-item {
    display: flex!important;
    align-items: center;
    gap: 0.3em;
    margin-bottom: 0;
    white-space: nowrap;
}
.latest-client__figure-item + .latest-client__figure-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    margin-right: calc(16px - 0.3em);
}
.latest-client__figure-item__figure {
    font-weight: 600;
}


.latest-client:not(.is-active) .latest-client__figures-wrapper {
    height: 0;
    border-color: transparent!important;
}
.latest-client:not(.is-active) .latest-client__image {
    opacity: 0;
    z-index: 1;
}
.latest-client:not(.is-active) .icon {
    opacity: 0;
}

.block-latest-clients__title {
    margin-top: 0;
}
.block-latest-clients__cta-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.block-latest-clients__anchor {
    display: none;
}
@media screen and (max-width: 1279px) {
    .block-latest-clients__anchor {
        display: block;
    }
    .block-latest-clients {
        min-height: 300vh;
    }
    .block-latest-clients__inner {
        position: sticky;
        top: -110px;
    }
    .block-latest-clients__list {
        max-width: calc(100% - 35vw - 43px);
        height: auto;
    }
    .latest-client__image {
        width: 35vw;
        aspect-ratio: 422/612;
        height: auto;
    }
    .latest-client__figures-wrapper {
        height: 0!important;
        border-color: transparent!important;
    }
    .latest-client__link {
        position: relative;
        z-index: 4;
    }
    .latest-client__link.is-active .latest-client__figures-wrapper,
    .latest-client__link.is-active ~ .latest-client__figures-wrapper{
        height: 57px!important;
        border-color: currentColor!important;
    }
    .latest-client__image:not(.home-latest-client-img-anim) {
        opacity: 0!important;
        z-index: 1!important;
    }
    .latest-client__link.is-active + .latest-client__image {
        opacity: 1!important;
        z-index: 2!important;
    }
    .latest-client__link .icon {
        opacity: 0!important;
    }
    .latest-client__link.is-active .icon {
        opacity: 1!important;
    }
    .latest-client__figures.is-overflow {
        animation: none!important;
    }
    .latest-client__link.is-active .latest-client__figures.is-overflow,
    .latest-client__link.is-active ~ .latest-client__figures.is-overflow {
        animation: latestClientFigures 10s alternate-reverse linear infinite!important;
    }
}

@media screen and (max-width: 991px) {
    .block-latest-clients {
        margin-top: 96px;
        min-height: 300vh;
    }
    .block-latest-clients__inner {
        top: 0;
    }
    .block-latest-clients__content {
        gap: 32px
    }
    .block-latest-clients__title {
        margin-bottom: 0;
    }
    .block-latest-clients__list {
        max-width: calc(100% + var(--wp--style--root--padding-right));
        padding-right: calc(35vw + 32px);
    }
    .latest-client__link {
        justify-content: space-between;
        column-gap: 16px;
    }
    .latest-client__name {
        max-width: calc(100% - 16px - 31px - var(--wp--style--root--padding-right));
    }
    .latest-client__link .icon {
        margin-right: var(--wp--style--root--padding-right);
    }
}
@media screen and (max-width: 767px) {

    .block-latest-clients {
        padding-bottom: 56px;
    }
    .block-latest-clients__list {
        margin-bottom: calc(41vw / 422 * 612 - 50px - 32px);
        padding-right: 0;
    }
    .latest-client__image {
        width: 41vw;
        bottom: 19px;
    }
    .block-latest-clients__cta-wrapper {
        position: relative;
        z-index: 11;
    }
}
