#stage-block {
    background: linear-gradient(90deg, #ffffe8 0%, #fffda8 100%);
    position: relative;
    border-radius: 30px;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 22.95%;
        height: 87.2%;
        background-image: url('./images/block-decorate1.svg');
        background-size: 100%;
        background-repeat: no-repeat;
    }

    &::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 41.9%;
        height: 87.3%;
        background-image: url('./images/block-decorate2.svg');
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: bottom;
    }

    .title-block,
    .name-block {
        position: relative;
        z-index: 1;
    }
}
.stage-block-list {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.stage-block-item {
    max-width: 490px;
    width: 100%;
    border-radius: 30px;
    padding: 30px;
    overflow: hidden;
    position: relative;
    background: var(--bg-primary-main);
    transition: all .3s;
}
.stage-block-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}
.stage-block-item__amount {
    padding: 5px 10px;
    background-color: var(--bg-primary-main);
    border: 1px solid var(--bg-alt-stroke);
    border-radius: 100px;
    color: var(--colors-main);
    transition: all .3s;
}
.stage-block-item__btn {
    border-radius: 100%;
    background-color: var(--colors-main);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;

    svg path {
        stroke: var(--text-alt-head);
    }
}
.stage-block-item__title {
    color: var(--text-primary-head);
    margin-bottom: 10px;
    position: relative;
    transition: all .3s;
}
.stage-block__text {
    color: var(--text-primary-main);
    position: relative;
    transition: all .3s;
}
.stage-block-item.highlighted {
    background: linear-gradient(90deg, #f6f4fd 0%, #b6aafc 100%);

    .stage-block-item__amount {
        background-color: var(--colors-main);
        border-color: var(--colors-main);
        color: var(--text-alt-main);
    }

    .stage-block-item__btn {
        background-color: var(--bg-primary-main);

        svg path {
            stroke: var(--colors-main);
        }
    }

    &::before {
        content: '';
        position: absolute;
        width: 224px;
        height: 226px;
        background-image: url('./images/bg-decorate.svg');
        background-size: 100%;
        background-repeat: no-repeat;
        right: 0;
        bottom: 0;
        opacity: 1;
        visibility: visible;
        transition: all .3s;
    }

    &:hover {
        background: var(--hover-main);

        .stage-block-item__amount {
            background-color: var(--colors-main);
        }

        .stage-block-item__title {
            color: var(--text-alt-head);
        }

        .stage-block__text {
            color: var(--text-alt-main);
        }

        &::before {
            opacity: 0;
            visibility: hidden;
        }
    }
}
@media  (max-width: 1200px) {
    .stage-block-list {
        gap: 15px;
    }
}
@media (max-width: 1024px) {
    .stage-block-item {
        padding: 15px;
        max-width: 350px;
    }
}
@media (max-width: 768px) {
    .stage-block-item {
        flex-grow: 1;
        max-width: 100%;
    }
}