.certificates__heading {
    margin-bottom: 6px;
}

.certificates__text {
    margin-bottom: 40px;
    max-width: 952px;
    color: #7C7C7C;
}

.certificates__top-block {
    margin-bottom: 124px;
}

.certificates__bottom-block {
    display: flex;
    justify-content: space-between;
    gap: 100px;
}

.certificates__labels {
    flex-basis: 318px;
}

.certificates__label {
    background: #efefef;
    font-size: 16px;
    padding: 19px 18px 18px 18px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    position: relative;
    transition: all 0.5s ease;
}

.certificates__label:hover {
    background: #ffc91a;
}

.certificates__images {
    flex-basis: 836px;
    display: flex;
}

.certificates__image:hover {
    transform: scale(1.04);
}

.certificates__decor-arrow {
    content: '';
    width: 13px;
    object-fit: contain;
}

.certificates__gallery-item:not(:last-child) {
    margin-bottom: 70px;
}

.certificates__label::after,
.certificates__label::before {
    position: absolute;
    height: 2px;
    z-index: 10;
    background: #BDBDBD;
}

.certificates__label::after {
    bottom: 0;
    left: 0;
}

.certificates__label::before {
    z-index: 10;
}

.certificates__gallery-item:nth-child(2) .certificates__label::after {
    content: '';
    width: 1233px;
}

.certificates__gallery-item:nth-child(2) .certificates__label::before {
    content: '';
    display: block;
    right: -925px;
    bottom: -6px;
    width: 14px;
    height: 14px;
    background: url('/wp-content/themes/vesta/media/vectors/certificate-point-icon.svg') center / contain no-repeat;
}

.certificates__gallery-item:nth-child(3) .certificates__label::after,
.certificates__gallery-item:nth-child(1) .certificates__label::after {
    content: '';
    width: 762px;
}

.certificates__gallery-item:nth-child(3) .certificates__label::before,
.certificates__gallery-item:nth-child(1) .certificates__label::before {
    content: '';
    display: block;
    right: -455px;
    bottom: -6px;
    width: 14px;
    height: 14px;
    background: url('/wp-content/themes/vesta/media/vectors/certificate-point-icon.svg') center / contain no-repeat;
}

.certificates__image img {
    object-fit: cover;
    width: 398px;
    max-height: 553px;
    box-shadow: 4px 4px 24px 0 #d6d6d6;
    position: relative;
}


.certificates__image:nth-child(1) {
    margin-top: 97px;
    z-index: 3;
}


.certificates__image:nth-child(2) {
    margin-top: -94px;
    margin-left: -199px;
    z-index: 2;
}


.certificates__image:nth-child(3) {
    margin-top: -230px;
    margin-left: -159px;
    z-index: 1;
}

.certificates__splide {
    display: none;
}

.certificates__btn {
    min-width: 318px;
}

@media screen and (max-width: 1343.98px) {
    .certificates__gallery-item:nth-child(2) .certificates__label::after {
        content: '';
        width: 1115px;
    }

    .certificates__gallery-item:nth-child(2) .certificates__label::before {
        content: '';
        display: block;
        right: -825px;
        bottom: -6px;
        width: 14px;
        height: 14px;
        background: url('/wp-content/themes/vesta/media/vectors/certificate-point-icon.svg') center / contain no-repeat;
    }

    .certificates__gallery-item:nth-child(3) .certificates__label::after,
    .certificates__gallery-item:nth-child(1) .certificates__label::after {
        content: '';
        width: 650px;
    }

    .certificates__gallery-item:nth-child(3) .certificates__label::before,
    .certificates__gallery-item:nth-child(1) .certificates__label::before {
        content: '';
        display: block;
        right: -360px;
        bottom: -6px;
        width: 14px;
        height: 14px;
        background: url('/wp-content/themes/vesta/media/vectors/certificate-point-icon.svg') center / contain no-repeat;
    }

}

@media screen and (max-width: 1199.98px) {
    .certificates__image img {
        width: 270px;
        max-height: 376px;
    }

    .certificates__image:nth-child(2) {
        margin-top: -35px;
        margin-left: -135px;
    }

    .certificates__image:nth-child(3) {
        margin-top: -125px;
        margin-left: -106px;
    }

    .certificates__bottom-block {
        gap: 150px;
    }

    .certificates__gallery-item:nth-child(2) .certificates__label::after {
        content: '';
        width: 875px;
    }

    .certificates__gallery-item:nth-child(2) .certificates__label::before {
        content: '';
        display: block;
        right: -665px;
        bottom: -6px;
        width: 14px;
        height: 14px;
        background: url('/wp-content/themes/vesta/media/vectors/certificate-point-icon.svg') center / contain no-repeat;
    }

    .certificates__gallery-item:nth-child(3) .certificates__label::after,
    .certificates__gallery-item:nth-child(1) .certificates__label::after {
        content: '';
        width: 545px;
    }

    .certificates__gallery-item:nth-child(3) .certificates__label::before,
    .certificates__gallery-item:nth-child(1) .certificates__label::before {
        content: '';
        display: block;
        right: -335px;
        bottom: -6px;
        width: 14px;
        height: 14px;
        background: url('/wp-content/themes/vesta/media/vectors/certificate-point-icon.svg') center / contain no-repeat;
    }
}

@media screen and (max-width: 1023.98px) {
    .certificates__text {
        margin-bottom: 36px;
    }

    .certificates__top-block {
        margin-bottom: 48px;
    }

    .certificates__image img {
        width: 199px;
        height: 276px;
    }

    .certificates__image:nth-child(1) {
        margin-top: 195px;
    }

    .certificates__image:nth-child(2) {
        margin-top: 100px;
        margin-left: -99px;
    }

    .certificates__image:nth-child(3) {
        margin-top: 19px;
        margin-left: -79px;
    }

    .certificates__bottom-block {
        gap: 54px;
    }

    .certificates__btn {
        width: 100%;
    }

    .certificates__labels {
        flex-basis: 249px;
        flex-shrink: 0;
    }

    .certificates__gallery-item:nth-child(1) .certificates__label::after {
        width: 628px;
    }

    .certificates__gallery-item:nth-child(1) .certificates__label::before {
        right: -390px;
    }

    .certificates__gallery-item:nth-child(2) .certificates__label::after {
        content: '';
        width: 516px;
    }

    .certificates__gallery-item:nth-child(2) .certificates__label::before {
        content: '';
        display: block;
        right: -280px;
        bottom: -6px;
        width: 14px;
        height: 14px;
        background: url('/wp-content/themes/vesta/media/vectors/certificate-point-icon.svg') center / contain no-repeat;
    }

    .certificates__gallery-item:nth-child(3) .certificates__label::after {
        content: '';
        width: 411px;
    }

    .certificates__gallery-item:nth-child(3) .certificates__label::before {
        content: '';
        display: block;
        right: -175px;
        bottom: -6px;
        width: 14px;
        height: 14px;
        background: url('/wp-content/themes/vesta/media/vectors/certificate-point-icon.svg') center / contain no-repeat;
    }
}

@media screen and (max-width: 767.98px) {
    .certificates__text {
        margin-bottom: 0px;
    }

    .certificates__image:hover {
        transform: scale(1);
    }


    .certificates__top-block {
        margin-bottom: 32px;
    }

    .certificates__btn {
        display: none;
    }

    .certificates__bottom-block {
        display: none;
    }

    .certificates__splide {
        display: block;
    }

    .certificates .splide-inside {
        display: block;
        box-shadow: 2px 2px 12px 0 #d6d6d6;
        margin-right: 5px;
        margin-left: 5px;
    }

    .certificates__slide-image {
        height: 100%;
        width: 100%;
    }
}

