.stages-block {
    position: relative;
    overflow: hidden;
    background: var(--accent);
    border-radius: 20px;
    margin-top: 10px;
}

.stages-block .stTitle {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--h2);
    line-height: 110%;
    color: var(--white);
}

.stages-block .stages-inner {
    padding-top: var(--sixty);
    padding-bottom: var(--sixty);
    display: flex;
    flex-direction: column;
    gap: var(--fourty);
}

.stages-holder {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--twenty);
}

.stage {
    background: var(--white);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
    min-height: 450px;
    position: relative;
    overflow: hidden;
}

.stage-inner {
    padding: var(--fourty);
    display: flex;
    flex-direction: column;
    padding-bottom: 190px;
}

.stage-text__holder {
    display: flex;
    flex-direction: column;
    gap: var(--twenty);
}

.stage-name {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--h4);
    line-height: 120%;
    color: var(--main-text);
}

.stage-value {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--1816);
    line-height: 120%;
    color: var(--light-text);
}

.stage-photo {
    width: fit-content;
    height: fit-content;
    overflow: hidden;
    position: absolute;
    z-index: 1;
    pointer-events: none;
    bottom: 0;
    right: 0;
    max-width: 255px;
    max-height: 255px;
}

.stage-photo img {
    width: 400px;
    height: 400px;
    display: flex;
    max-width: 30vw;
    object-fit: cover;
    border-radius: 50%;
}

.stage-count {
    position: absolute;
    left: var(--fourty);
    bottom: var(--fourty);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: var(--accent);
}

@media(max-width:1500px) {
    .stages-holder {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(max-width:1100px) {
    .stages-holder {
        grid-template-columns: 1fr 1fr;
    }

    .stage-inner {
        padding-bottom: 22vw;
    }

    .stage {
        min-height: unset;
    }

    .stage-photo {
        max-width: 300px;
        max-height: 200px;
    }

    .stage-photo img {
        width: max-content;
        height: max-content;
        display: flex;
        max-width: 30vw;
        object-fit: cover;
        border-radius: 50%;
    }
}

@media(max-width:850px) {
    
    .stage-photo {
        max-width: 200px;
        max-height: 150px;
    }

}
@media(max-width:650px) {
    
    .stage-photo {
        max-width: 170px;
        max-height: 100px;
    }

}

@media(max-width:560px) {
    .stages-holder {
        grid-template-columns: 1fr;
    }

    .stage-inner {
        padding-bottom: 35vw;
    }

    .stage-photo img {
        max-width: 45vw;
    }
}

@media(max-width:400px) {
    
    .stage-photo {
        max-width: 150px;
        max-height: 100px;
    }

}