:root {
    --stageH: 0;
    --stageTop: 0;
    --stageAlt: 0;
    --stageH_alt: 0;
    --widthBorderBottom: 100%;
    --transition: all .7s ease;
}

.design-stages {
    margin-bottom: 150px;
}
.design-stages-header-container {
    padding-top: 150px;
}
.design-stages-container {
    background-color: var(--dark);
    width: 100%;
}
.all-stages-wrapper {
    padding: 150px 0 150px 60px;
    width: 100%;
    position: relative;
}
.design-stage {
    cursor: pointer;
}
.design-stage:not(:last-child) {
    margin-bottom: 30px;
}
.design-stage-header {
    color: var(--blue);
    font-size: 0.813rem;
    margin-bottom: 5px;
    flex-shrink: 0;
    padding-right: 30px;
}
.design-stage-content {
    color: white;
    font-size: 1.063rem;
}
.stage-content {
    position: relative;
    display: none;
    transition: all 1s ease;
    opacity: 1;
    margin-top: 9px;
}
.active-stage {
    display: block;
    transition: all 1s ease;
}
.stage-content .paragraph p {
   /* margin-top: 8px;*/
    color: white;
    padding: 0 60px 60px 60px;
    opacity: 1;
    transition: all 1s ease;
}
/*.stage-for-content-wrapper {
    position: relative;
    top: 8px;
}*/
.stage-content::before {
    content: "";
    width: 1px;
    background-color: var(--blue);
    position: absolute;
    /*top: var(--stageTop);*/
    top: 0;
    left: 0;
    height: var(--stageH);
    transition: all .25s linear;
    transition-delay: .25s;
}
.stage-content::after {
    content: "";
    width: 1px;
    background-color: var(--blue);
    position: absolute;
    height: var(--stageAlt);
    bottom: var(--stageH_alt);
    left: 0;
    transition: all .25s linear;
    transition-delay: .25s;
}
.design-stage-pointer {
    width: 100%;
    align-items: center;
    position: relative;
    top: 0px;
    transition: all .5s ease;
}
.design-stage-line {
    height: 1px;
    background-color: var(--blue);
    width: 100%;
}
.design-stage-square {
    width: 7px;
    height: 7px;
    background-color: var(--blue);
}
.stages-content-wrapper {
    position: relative;
}
.stages-content-wrapper::after {
    content: "";
    position: absolute;
    background-color: var(--blue);
    height: 1px;
    width: var(--widthBorderBottom);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}









/* ------ UPDATE ------- */
.d-section-name-container {
    width: 480px;
    flex-shrink: 0;
}
.d-section-content-container {
    background-color: var(--dark);
    width: 100%;
}
.stages-main-wrapper {
    width: 360px;
    flex-shrink: 0;
    height: 65px;
    overflow: hidden;
}
/*.d-empty-container {
    width: 360px;
    flex-shrink: 0;
}*/
.stages-wrapper {
    height: auto;
    position: relative;
    bottom: 0;
    transition: all .7s ease;
}
.stages-content-main-wrapper {
    width: 100%;
}
.stage-content .paragraph {
    width: 360px;
    flex-shrink: 0;
}
.stage-img-wrapper {
    width: 100%;
    padding-right: 60px;
    padding-bottom: 60px;
}
:root {
    --st-h-zero: 0;
    --st-h-hundred: calc(100% + 2px);
    --st-h-auto: auto;
    --st-h-position: -1px;
}
.stage-img-container {
    height: 100%;
    width: 100%;
    position: relative;
    transition: all 1.4s ease;
}
.stage-img-container:after {
    content: '';
    position: absolute;
    left: -1px;
    top: var(--st-h-position);
    bottom: var(--st-h-auto);
    width: calc(100% + 2px);
    height: var(--st-h-zero);
    background-color: var(--dark);
    transition: all 1.4s ease;
}
.stage-img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 1.4s ease;
}











.stages-buttons {
    position: absolute;
    bottom: 150px;
    left: 60px;
    display:flex;
}
.stages-buttons button {
    color: var(--blue);
    font-size: var(--buttonFontSize);
    cursor: pointer;
    transition: all .5s ease;
    opacity: 1;
    display:flex;
    align-items:center;
}
.stages-buttons .stages-btn-prev {
    margin-right:25px;
}
.stages-buttons .stages-btn-prev img {
    transform: rotate(90deg);
    margin-right: 10px;
    position: relative;
    bottom: 1px;
}
.stages-buttons .stages-btn-next img {
    transform: rotate(-90deg);
    margin-left: 10px;
    position: relative;
    bottom: 1px;
}
.stages-buttons button:disabled {
    opacity: 0.5;
    cursor: unset;
}




@media only screen and (max-width: 1790px) {
   /* .d-empty-container {
        width: 60px;
        flex-shrink: 0;
    }*/
}
@media only screen and (max-width: 1640px) {
    .d-section-name-container {
        width: 360px;
        flex-shrink: 0;
    }
}
@media only screen and (max-width: 1440px) {
    .stage-img-wrapper {
        display: none;
    }
    .stage-content .paragraph {
        width: 100%;
        flex-shrink: 1;
    }
}
@media only screen and (max-width: 1280px) {
    /*.d-empty-container {
        display: none;
    }*/
    .stages-buttons {
        bottom: 75px;
    }
    .design-stages {
        display: block;
        background-color: var(--dark);
    }
    .design-stages-header-container {
        padding-top: 75px;
    }
    .all-stages-wrapper {
        padding-top: 0;
        padding-bottom: 75px;
    }
    .stage-img-wrapper {
        display: block;
    }
    .stage-content .paragraph {
        width: 360px;
        flex-shrink: 0;
    }
    .stages-main-wrapper {
        width: 300px;
    }
}
@media only screen and (max-width: 1000px) {
    .stage-img-wrapper {
        display: none;
    }
    .stage-content .paragraph {
        width: 100%;
        flex-shrink: 1;
    }
    .stages-buttons {
        bottom: 60px;
    }
}
@media only screen and (max-width: 900px) {

}
@media only screen and (max-width: 768px) {
    .design-stages {
        margin-bottom: 100px;
    }
    .stage-content .paragraph p {
        padding: 0 15px 15px 15px;
    }
    .stages-wrapper {
        padding-left: 15px;
    }
    .stages-main-wrapper {
        width: 260px;
    }
    .all-stages-wrapper {
        padding: 60px 0 60px 0;
        width: 100%;
    }
    .stages-buttons {
       left: 15px;
    }
}
/*NEXT POINT*/
@media only screen and (max-width: 575px) {
    .stages-main-wrapper {
        margin-bottom: 35px;
    }
    .design-stages-header-container {
        padding-top: 60px;
    }
    .stages-buttons {
        display: none;
    }
    .all-stages-wrapper {
        display: block;
    }
    .design-stage {
        display: flex;
        align-items: flex-end;
    }
    .design-stage-header {
        margin-bottom: 0;
    }
    .stages-main-wrapper {
        width: 100%;
        margin-bottom: 50px;
        border-bottom: 1px solid var(--blue);
        overflow: hidden;
        height: auto;
    }
    .design-stage-pointer {
        display: none;
    }
    .stage-content::before {
        display: none;
    }
    .stage-content::after {
        display: none;
    }
    .stages-main-wrapper {
        display: flex;
        justify-content: space-between;
    }
    .d-s-side-cat-button {
        padding-right: 15px;
    }
    .d-s-side-cat-button img {
        transition: all .3s ease;
    }
    .stages-wrapper {
        height: 40px;
        transition: all .5s ease;
        position: relative;
        bottom: 0;
    }
    .stages-content-wrapper::after {
        display: none;
    }
    .d-section-name-container {
        width: auto;
    }
    .design-stages-header-container .section-name-container {
        padding-bottom: 0;
    }
}