.stages-new-block {
    position: relative;
    /* padding-bottom: var(--min-80); */
    margin-bottom: 0;
}

.stages-new-block::after {
    content: '';
    background-image: url(images/stages_new.png);
    background-repeat: repeat-y;
    background-position: top;
    background-size: cover;
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
}

/* .stages-new-block::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    background-image: url(images/stages-bg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    max-width: 1500px;
    max-height: 1500px;
    width: 100%;
    height: 100%;
} */

.stages-new-block .container {
    position: relative;
    z-index: 5;
}


.stages-new-block__wrap {
    display: flex;
    gap: 40px;
}

.stages-new-block__left {
    flex: 1;
}

.stages-new-block .stage__item {
    display: flex;
    gap: 60px;
    position: relative;
}

.stages-new-block .stage__item:not(:last-child):before {
    content: "";
    position: absolute;
    top: 70px;
    left: 25px;
    width: 12px;
    height: calc(100% - 80px);
    background-image: url('./images/arrow-down.svg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: contain;
}

.stages-new-block .stage__item:not(:last-child) {
    padding-bottom: 20px;
}

.stages-new-block .stage__item .stage__counter {
    width: 60px;
    height: 60px;
    background: linear-gradient(187deg, #faa006 0%, #d91c12 100%);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--head-secondary);
    flex-shrink: 0;
}

.stages-new-block .stage__item .stage__wrap {
    flex: 1;
    background: var(--background-secondary);
    border-radius: 20px;
    padding: 30px;
    min-height: 175px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stages-new-block .stage__item .stage__num {
    background: var(--stroke-secondary);
    border-radius: 2px;
    padding: 7px 15px;
    width: fit-content;
    color: var(--head-secondary);
}

.stages-new-block .stage__item .stage__num:not(:last-child) {
    margin-bottom: 10px;
}

.stages-new-block .stages-new-block__right {
    width: 48.8%;
    height: fit-content;
    display: flex;
    gap: 30px;
}

.stages-new-block .stages__video {
    width: 48.2%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.stages-new-block .stages__video:after {
    content: '';
    display: block;
    padding-bottom: 165%;
}

.stages-new-block .stages__video img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stages-new-block .stages-new-block__form {
    flex: 1;
    background: var(--background-secondary);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.stages-new-block .stages-new-block__form .form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stages-new-block .stages-new-block__form .form__btn {
    width: 100%;
}

.stages-new-block .stages-new-block__form .form__privacy {
    margin-top: 5px;
}

@media (max-width: 1500px) {
    .stages-new-block::after {
        display: none;
    }
}

@media (max-width: 1240px) {
    .stages-new-block .stage__item {
        gap: 20px;
    }

    .stages-new-block__wrap {
        gap: 20px;
    }

    .stages-new-block .stages-new-block__right {
        gap: 15px;
    }

    .stages-new-block .stage__item .stage__counter {
        width: 50px;
        height: 50px;
    }

    .stages-new-block .stage__item:not(:last-child):before {
        top: 60px;
        left: 18px;
        width: 12px;
        height: calc(100% - 70px);
    }
}

@media (max-width: 1025px) {
    .stages-new-block__wrap {
        flex-direction: column;
    }

    .stages-new-block .stages-new-block__right {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 769px) {
    .stages-new-block .stages-new-block__right {
        width: 100%;
    }

    .stages-new-block .stage__item .stage__wrap {
        padding: 15px;
    }

    .stages-new-block .stages-new-block__form {
        padding: 15px;
    }
}

@media (max-width: 498px) {

    .stages-new-block .stage__item:not(:last-child):before {
        top: 40px;
        left: 18px;
        width: 12px;
        height: calc(100% - 60px);
    }

    .stages-new-block .stages-new-block__right {
        flex-direction: column;
    }

    .stages-new-block .stage__item .stage__wrap {
        min-height: 120px;
    }

    .stages-new-block .stages__video {
        width: 100%;
    }

    .stages-new-block .stage__item:not(:last-child) {
        padding-bottom: 10px;
    }
    .stages-new-block .stage__item .stage__num {
        display: none;
    }
    .stages-new-block .stage__item .stage__counter {
        position: relative;
        top: 10px;
    }
}