.selection-stages-block {}

.selection-stages-block .selection-stages-block__wrapper {
    padding: 72px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    background: var(--bg-primary-second);
    border-radius: 30px;
    overflow: hidden;
}

.selection-stages-block .wrapper-left__side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    max-width: 620px;
    width: 100%;
}

.selection-stages-block .block-kiker {
    color: var(--text-primary-main);
    margin-bottom: 0;

}

.selection-stages-block .block-title {
    color: var(--text-primary-head);
    margin: 0;
}

.selection-stages-block .block-title span {
    color: var(--colors-main);
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
}

.selection-stages-block .block-subtitle {
    color: var(--text-primary-main);
    margin-top: 16px;
}

.selection-stages-block .side-image__block {
    width: 442px;
    height: 333px;
    margin-top: auto;
}


.selection-stages-block .side-image__block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.selection-stages-block .stages__note {
    color: var(--text-primary-head);
    padding: 14px 12px;
    background: var(--bg-primary-main);
    border-radius: 12px;
    position: absolute;
    z-index: 4;
    left: 16px;
    bottom: 101px;
    max-width: 119px;
}

.selection-stages-block .stages__note::before {
    position: absolute;
    content: '';
    background-image: url(./images/note_before.png);
    width: 12px;
    height: 12px;
    bottom: -10px;
    right: 10px;
    background-repeat: no-repeat;
    background-size: contain;
}


.selection-stages-block .side-btn__block {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary-main);
    border-radius: 20px;
    padding: 20px 25px 30px 25px;
    gap: 68px;
    position: relative;
    margin-top: 89px;

}
.selection-stages-block .side-btn__block .btn{
    text-align: center;
}

.selection-stages-block .side-btn__block .btn,
.selection-stages-block .bottom_block__title {
    position: relative;
    z-index: 2;

}

.selection-stages-block .side-btn__block::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    background-image: url(images/after_btn.png.webp);
    background-size: cover;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
}


.selection-stages-block .side-btn__block::after {
    position: absolute;
    width: 80px;
    height: 160px;
    content: '';
    background-image: url(images/arrow.png.webp);
    background-size: contain;
    background-repeat: no-repeat;
    top: -70px;
    right: -130px;
}

.selection-stages-block .stage-1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 12px;
    background: var(--bg-alt-third);
    box-shadow: 0px 4px 20.6px 0px #8C77AF26;
    gap: 6px;
    position: absolute;
    z-index: 2;
    right: 14px;
    top: 27px;
    padding: 6px 12px 6px 6px;
}

.selection-stages-block .stage-2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 12px;
    background: var(--bg-primary-second);
    box-shadow: 0px 4px 20.6px 0px #8C77AF26;
    gap: 6px;
    border: 1px solid #FFFFFF;
    right: 40px;
    top: 84px;
    position: absolute;

    padding: 6px 12px 6px 6px;
}

.selection-stages-block .stage-2 svg,
.selection-stages-block .stage-1 svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.selection-stages-block .wrapper-right__side {
    display: flex;
    flex-direction: row;
    gap: 0;
    width: 564px;
}

.selection-stages-block .wrapper-left__side .btn {
    margin-top: 14px;
}

.selection-stages-block .wrapper-right__side .line {
    width: 1px;
    height: 100%;
    background: var(--bg-alt-third);
    margin-top: 52px;
}

.selection-stages-block .stages {

    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    padding-top: 18px;
    position: relative;
    height: fit-content;
}

.selection-stages-block .stages::before {
    position: absolute;
    width: 150px;
    height: 150px;
    content: '';
    background: linear-gradient(1deg, #efe7ff, #f1e8ff);
    bottom: -116px;
    left: -40px;
}

/* .selection-stages-block .wrapper-right__side {
    position: absolute;
    width: 1px;
    height: calc(100% - 48px - 35px - 18px);
    content: '';
    background: var(--bg-alt-third);
    top: 52px;
    left: 0;
} */

.selection-stages-block .stage__item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-primary-main);
    border-radius: 16px;
    align-items: center;
    width: fit-content;
    position: relative;
    transition: .4s ease;
    align-items: flex-start;
}


.selection-stages-block .stage__item.active .stage-item__top {
    margin-bottom: 5px;
}

.selection-stages-block .stage__item .stage-item__top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: fit-content;
    position: relative;
    transition: all .4s ease;
}


.selection-stages-block .stage-item__top .number {
    color: var(--text-primary-head);
    opacity: 0.4;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0%;

}

.selection-stages-block .stage-item__top .title {
    color: var(--text-primary-head);
}

.selection-stages-block .stage-item__top .icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: var(--colors-main);
    border-radius: 100%;
    justify-content: center;
    margin-left: 4px;
    transition: .4s ease;
}

.selection-stages-block .stage-item__top .icon svg path,
.selection-stages-block .stage-item__top .icon svg {
    transition: .4s ease;
}

.selection-stages-block .stage-item__top .icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.selection-stages-block .stage__item:nth-child(odd) {
    margin-left: 48px;
}

.selection-stages-block .stage__item:nth-child(even) {
    margin-left: 132px;
}

.selection-stages-block .stage__item:nth-child(odd)::before {
    width: 48px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    content: '';
    left: -48px;
    background: var(--bg-alt-third);
    height: 1px;
}

.selection-stages-block .stage__item:nth-child(even)::before {
    width: 132px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    content: '';
    left: -132px;
    background: var(--bg-alt-third);
    height: 1px;
}

.selection-stages-block .stage__item:first-child::before {
    width: 123px;
    position: absolute;
    top: 35px;
    transform: translateY(-50%);
    content: '';
    left: -123px;
    background: var(--bg-alt-third);
    height: 1px;
    pointer-events: none;
}

.selection-stages-block .stage__item:first-child::after {
    width: 9px;
    height: 9px;
    position: absolute;
    top: 35px;
    transform: translateY(-50%);
    content: '';
    left: -123px;
    background: var(--bg-alt-third);
    border-radius: 100%;
    pointer-events: none;
}

.selection-stages-block .stage__desc {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: var(--text-primary-head);
    display: none;
    opacity: 0;
    width: 260px;
}

.selection-stages-block .stage__item:hover .stage__desc {
    opacity: 1;
}


.selection-stages-block .stage__item:hover {
    background: var(--bg-alt-third);
}

.selection-stages-block .stage__item:hover .icon {
    background: var(--hover-main);
    transform: rotate(45deg);
}

@media (max-width: 1440px) {
    .selection-stages-block .wrapper-left__side {
        max-width: 500px;
    }

    .selection-stages-block .selection-stages-block__wrapper {
        padding: 40px;
    }

    .selection-stages-block .stage__item:first-child::before {
        width: 48px;
        left: -48px;
    }

    .selection-stages-block .stage__item:first-child::after {
        display: none;
    }


}

@media (max-width: 1215px) {
    .selection-stages-block .selection-stages-block__wrapper {
        flex-direction: column;
    }

    .selection-stages-block .wrapper-left__side {
        max-width: 100%;
    }


    .selection-stages-block .wrapper-right__side .line {
        display: none;
    }

    .selection-stages-block .stages {
        max-width: 100%;
        flex-wrap: wrap;
        gap: 20px;
        flex-direction: row;

    }

    .selection-stages-block .wrapper-right__side {
        width: 100%;
    }

    .selection-stages-block .stage__item {
        width: calc((100% - 20px) / 2);
        margin: 0;
    }

    .selection-stages-block .stage__item:nth-child(odd) {
        margin: 0;
    }

    .selection-stages-block .stage__item:nth-child(even) {
        margin: 0;
    }

    .selection-stages-block .stage__item .stage-item__top {
        width: 100%;
    }

    .selection-stages-block .stage__item .stage-item__top .icon {
        margin-left: auto;
    }

    .selection-stages-block .stage__item::before {
        display: none;
    }

    .selection-stages-block .stage__item::after {
        display: none;
    }

    .selection-stages-block .stage__desc {
        width: 100%;
    }

}

@media (max-width: 800px) {

    .selection-stages-block .side-btn__block::after {
        display: none;
    }
}

@media (max-width: 700px) {
    .selection-stages-block .selection-stages-block__wrapper {
        padding: 20px;
    }

    .selection-stages-block .stages {
        flex-direction: column;

    }

    .selection-stages-block .stage__item {
        width: 100%;
        margin: 0;
    }

    .selection-stages-block .wrapper-right__side {
        width: 100%;
    }

    .selection-stages-block .side-btn__block{
        width: 100%;
        margin-top: 50px;
        gap: 30px;
    }


}

@media (max-width: 510px) {
    .selection-stages-block .side-image__block {
        width: 100%;
    }

    .selection-stages-block .side-image__block::after {
        right: 10px;
        top: 150px;
    }
    .selection-stages-block .side-btn__block{
        margin-top: 30px;
    }
}

@media (max-width: 440px) {
    .selection-stages-block .side-image__block .image {
        width: 190px;
        height: 210px;
        left: 0;
    }

    .selection-stages-block .stages__note {
        bottom: unset;
        top: 20px;
        left: 20px;
    }

    .selection-stages-block .stage__item {
        padding: 10px;
    }

    .selection-stages-block .block-subtitle {
        margin: 15px 0;
    }

    .selection-stages-block .stages {
        gap: 15px;
    }

    .selection-stages-block .side-image__block {
        height: 200px;
    }

    .selection-stages-block .side-image__block img {
        object-position: bottom left;
    }
    .selection-stages-block .side-btn__block{
        margin-top: 15px;
    }
}

@media (max-width: 350px) {

    .selection-stages-block .stage-1,
    .selection-stages-block .stage-2 {
        display: none;
    }

    .selection-stages-block .side-image__block::after {
        display: none;
    }

    .selection-stages-block .side-image__block .image {
        right: 0;
        left: unset;
    }


}