.stages {
    padding: 50px 0;
    overflow: hidden;
    background-image: url(/img/background-stages.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.stages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stages-title {
    font-size: 38px;
    line-height: 45px;
    color: #292929;
    margin: 0 0 7px;
    text-align: center;
}

.stages-title span {
    font-weight: 600;
}

.stages-block {
    width: 1150px;
}

.stage__block {
    display: flex;
    flex-direction: row;
    margin: 100px 0;
    position: relative;
}

.stage__block-number {
    display: flex;
    width: 50px;
    height: 50px;
    padding: 50px;
    border-radius: 50%;
    font-size: 25px;
    background-color: #3780D4;
    justify-content: center;
    align-items: center;
    margin-right: 50px;
    box-shadow: 0px 7px 16px 0px rgb(11, 130, 247);
}

.stage__block-number p {
    font-weight: 600;
    color: #FFF;
}

.stage__text {
    margin-top: 60px;
}

.stage__text-title {
    background: linear-gradient(70deg, rgb(55, 128, 212) 0%, rgb(55, 128, 212) 26%, rgb(55, 128, 212) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    margin-bottom: 15px;
    font-size: 25px;
}

.stage__text-list {
    width: 600px;
}

.stage__text-paragraph {
    position: relative;
    color: #7A7A7A;
    font-size: 20px;
    line-height: 24px;
    margin: 15px 0;
    margin-left: 30px;
}

.stage__text-paragraph::before {
    position: absolute;
    content: "";
    background-image: url(/img/stage__paragraph-icon.webp);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.stage__block.stage-second {
    justify-content: flex-end;
}

.stage-second.stage__text {

}

.stage__block.stage-fourth {
    justify-content: flex-end;
}

.stage-first::before {
    position: absolute;
    content: "";
    background-image: url(/img/stage-strelka.webp);
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    background-size: contain;
    left: -0px;
    top: 200px;
    transform: rotate(335deg);
}

.stage-second::after {
    position: absolute;
    content: "";
    background-image: url(/img/stage-strelka.webp);
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    background-size: contain;
    right: 0px;
    top: 250px;
    transform: scaleX(-1) rotate(331deg);
}

.stage-third::before {
    position: absolute;
    content: "";
    background-image: url(/img/stage-strelka.webp);
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    background-size: contain;
    left: 80px;
    top: 150px;
    transform: rotate(335deg);
}

.stage-fourth::after {
    position: absolute;
    content: "";
    background-image: url(/img/stage-strelka.webp);
    width: 200px;
    height: 200px;
    background-repeat: no-repeat;
    background-size: contain;
    right: 50px;
    top: 150px;
    transform: scaleX(-1) rotate(316deg);
}

@media screen and (max-width: 1300px) {
    .stages-block {
        width: 900px;
    }
    .stage-third::before {
        left: 0px;
        top: 100px;
    }
    .stage-fourth::after {
        right: 0px;
        top: 100px;
    }
}

@media screen and (max-width: 950px) {
    .stage__block-number {
        width: 20px;
        height: 20px;
        padding: 20px;
        margin-right: 20px;
    }
    .stage__block {
        justify-content: center;
    }
    .stages-block {
        width: 500px;
    }
    .stage__text-list {
        width: 400px;
    }
    .stage-first::before {
        left: 20px;
        top: 350px;
        width: 100px;
        height: 100px;
    }
    .stage-second::after {
        top: 250px;
        transform: scaleX(-1) rotate(310deg);
        width: 100px;
        height: 100px;
    }
    .stage-third::before {
        left: 50px;
        top: 180px;
        width: 100px;
        height: 100px;
    }
    .stage-fourth::after {
        top: 150px;
        transform: scaleX(-1) rotate(324deg);
        width: 100px;
        height: 100px;
    }

    .stage__block.stage-second {
        justify-content: center;
    }
    .stage__block.stage-fourth {
        justify-content: center;
    }
}

@media screen and (max-width: 560px) {
    .stage__text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .stage__text-title {
        width: 200px;
        text-align: center;
    }
    .stage__text-list {
        width: 250px;
    }
    .stage__block {
        flex-direction: column;
        align-items: center;
    }
    .stage__block-number {
        width: 30px;
        height: 30px;
        padding: 30px;
        margin: 0;
    }
    .stage-first::before {
        left: 150px;
        top: 650px;
    }
    .stage-second::after {
        top: 450px;
        right: 150px;
        transform: scaleX(-1) rotate(324deg);
    }
    .stage-third::before {
        left: 150px;
        top: 440px;
    }
    .stage-fourth::after {
        right: 150px;
        top: 280px;
    }
}

@media (max-width: 500px) {
    .stages {
        padding: 20px 0;
    }
    .stage__block {
        margin: 50px 0;
    }
}