.stages-block {
    background: var(--background);
}

.stages-block .stages-block__wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stages-block .stages-block__top {
    display: flex;
    flex-direction: column;
}

.stages-block .stages-block__tag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 1px solid var(--stroke-secondary);
    background: var(--main-text-primary);
    border-radius: 100px;
    padding: 10px 15px;
    color: var(--main-text-secondary);
    margin: 0 auto 20px;
}

.stages-block .stages-block__title {
    max-width: 870px;
    width: 100%;
    margin: 0 auto 15px;
    text-align: center;
    color: var(--head-secondary);
}

.stages-block .stages-block__text {
    max-width: 640px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    color: var(--main-text-secondary);
}

.stages-block .stages-block__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.stages-block .item-stage {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: calc((100% - 90px) / 4);
    padding: 30px 30px 90px;
    border-radius: 15px;
    background: var(--background-secondary);
    overflow: hidden;
}

.stages-block .item-stage__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2;
}

.stages-block .item-stage__top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stages-block .item-stage__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background-thirdly);
    flex-shrink: 0;
}

.stages-block .item-stage__icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.stages-block .item-stage__count {
    position: absolute;
    bottom: -60px;
    right: 40px;
    font-weight: 500;
    font-size: 150px;
    line-height: 110%;
    color: var(--head-secondary);
}

@media (max-width: 1450px) {
    .stages-block .stages-block__items {
        gap: 20px;
    }
    .stages-block .item-stage {
        padding: 20px 20px 90px;
    }
}

@media (max-width: 1192px) {
    .stages-block .item-stage {
        width: calc((100% - 90px) / 2);
    }
}

@media (max-width: 650px) {
    .stages-block .item-stage {
        width: 100%;
    }
    .stages-block .item-stage__content {
        gap: 10px;
    }
}