.advantages-seven-block {
    position: relative;
}

.advantages-seven-block .advantages-seven-block__wrapper {
    display: flex;
    flex-direction: column;
    padding: 72px;
    border-radius: 30px;
    background: var(--bg-primary-second);
    position: relative;
}

.advantages-seven-block .block__image {
    width: 304px;
    height: 252px;
    position: absolute;
    top: 16px;
    right: 40px;
    z-index: 1;
    pointer-events: none;
}

.advantages-seven-block .block__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top right;
    z-index: 1;
    pointer-events: none;
}

.advantages-seven-block .btns_holder {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    position: relative;
    z-index: 2;
}


.advantages-seven-block .phone {
    padding: 17px 30px;
    color: var(--text-alt-head);
    background: var(--colors-second);
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    transition: .4s ease;
}


.advantages-seven-block .phone:hover {
    background: var(--colors-main);
}

.advantages-seven-block .arrow-bottom {
    width: 161px;
    height: 109px;
    position: absolute;
    bottom: 235px;
    left: 312px;
    background-image: url(images/arrow_bottom.png.webp);
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;


    transform: rotate(0deg);
}

.advantages-seven-block .block-title {
    margin-bottom: 0px;
    max-width: 830px;
}

.advantages-seven-block .block-subtitle {
    max-width: 690px;
    margin-top: 20px;
    color: var(--text-primary-main);
}

.advantages-seven-block .advantages__holder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 48px;
    gap: 24px;
}

.advantages-seven-block .advant__item {
    width: calc((100% - 72px) / 4);
    background: var(--bg-primary-main);
    padding: 28px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: space-between;
    min-height: 246px;
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    max-width: 446px;
}

.advantages-seven-block .advant__item.big,
.advantages-seven-block .last__item {
    width: calc((100% - 24px) / 2);
    max-width: 916px;
    min-height: 328px;
}

.advantages-seven-block .last__item {
    justify-content: unset;
    position: relative;
    gap: 14px;
}

.advantages-seven-block .last__item .btn {
    margin-top: auto;
}

.advantages-seven-block .last__item .last__bg {
    position: absolute;
    width: 100%;
    top: 0;
    right: 0;
    height: 100%;
}

.advantages-seven-block .last__item .last__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom right;
}

.advantages-seven-block .item__title {
    color: var(--text-primary-head);
}

.advantages-seven-block .item__text {
    color: var(--text-primary-main);
}

.advantages-seven-block .last__item .item__text {
    max-width: 460px;
}

.advantages-seven-block .advant__item.big .item__text {
    max-width: 484px;
}


.advantages-seven-block .advant__item.big::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background-image: url(images/before__big.png.webp);
    background-repeat: no-repeat;
    background-size: cover;
    top: 0;
    left: 0;
}

@media (max-width: 1560px) {
    .advantages-seven-block .advantages-seven-block__wrapper {
        padding: 40px;
    }


}

@media (max-width: 1420px) {}

@media (max-width: 1350px) {
    .advantages-seven-block .arrow-top {
        display: none;
    }

    .advantages-seven-block .arrow-bottom {
        display: none;
    }

    .advantages-seven-block .advant__item {
        width: calc((100% - 48px) / 3);
        flex: 1 1 auto;
        max-width: unset;
    }

    .advantages-seven-block .last__item .last__bg img {
        object-fit: contain;
    }

    .advantages-seven-block .block-title,
    .advantages-seven-block .block-subtitle {
        max-width: calc(100% - 200px);
    }

    .advantages-seven-block .block__image {
        width: 200px;
    }

    .advantages-seven-block .last__item {
        width: 100%;
        max-width: unset;
    }
}

@media (max-width: 890px) {

    .advantages-seven-block .advant__item {
        width: calc((100% - 24px) / 2);
    }

    .advantages-seven-block .arrow-bottom {
        display: none;
    }

    .advantages-seven-block .block__image {
        top: 20px;
        right: 20px;
    }

    .advantages-seven-block .last__item .last__bg img {
        object-fit: cover;
    }

    .advantages-seven-block .last__item .last__bg::before {
        position: absolute;
        content: '';
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        background: #ffffffc7;
        z-index: 1;
    }

    .advantages-seven-block .last__item .item__title,
    .advantages-seven-block .last__item .item__text,
    .advantages-seven-block .last__item .btn {
        position: relative;
        z-index: 2;
    }

    .advantages-seven-block .last__item {
        width: 100%;
    }
}

@media (max-width: 690px) {

    .advantages-seven-block .advantages-seven-block__wrapper {
        padding: 20px;
    }


}

@media (max-width: 570px) {
    .advantages-seven-block .block__image {
        display: none;
    }

    .advantages-seven-block .btns_holder {
        flex-direction: column;
        align-items: flex-start;
    }

    .advantages-seven-block .block-title,
    .advantages-seven-block .block-subtitle {
        max-width: 100%;
    }

    .advantages-seven-block .advant__item {
        width: 100%;
    }

    .advantages-seven-block .advantages__holder {
        gap: 10px;
    }

    .advantages-seven-block .advant__item {
        min-height: 100px;
    }

    .advantages-seven-block .advantages__holder {
        margin-top: 20px;
    }

    .advantages-seven-block .advant__item {
        padding: 15px;
    }

    .advantages-seven-block .phone,
    .advantages-seven-block .btn {
        width: 100%;
        text-align: center;
    }
}