
/*--------------HOW WE WORK---------------*/

.work-process__inner {
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 48px;
    position: relative;
}
.work-process__inner::before {
    position: absolute;
    content: '';
    background: url(../images/rd-work-curve-new.svg) left center / cover no-repeat; 
    width: 124px;
    height: 960px;
    top: 81px;
    left: 83px;
}
.work-process__item + .work-process__item {
    margin-top: 12px;
}
.work-process__item {
    border-radius: unset;
    align-items: center;
}
.work-process__item:first-child {
    border-radius: 16px 16px 0 0;
}
.work-process__item:last-child {
    border-radius: 0 0 16px 16px;
}
.work-process__item-image {
    margin-right: 48px;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 50%;
}
.work-process__item-contact {
    color: var(--add-text-bg-color);
    text-decoration: underline;
    cursor: pointer;
    transition: all .4s;
}
.work-process__item-contact:hover,
.work-process__item-contact:focus {
    color: var(--main-text-color);
    text-decoration-color: var(--main-text-color);
}
.work-agile__item {
    max-width: 588px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 48px;
    padding: var(--section-title-mb);
}
.work-agile__item + .work-agile__item {
    margin-left: 24px;
}
.work-agile__item-image {
    align-items: center;
    justify-content: center;
    min-height: 382px;
}
.work-agile__item-text {
    margin-bottom: 36px;
}
.work-waterfall__inner {
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 32px;
    padding: 24px;
}
.work-waterfall__item {
    align-items: center;
    padding: 36px;
    position: relative;
}
.work-waterfall__item + .work-waterfall__item {
    margin-top: 12px;
}
.work-waterfall__item-image {
    margin-right: 50px;
    margin-bottom: unset;
}
.work-waterfall__item-list:not(.work-waterfall__item-list--analysis) .list-item::before {
    background-image: unset;
    transform: rotate(45deg);
    width: 12px;
    height: 12px;
    top: 6px;
    left: 3px;
}
.work-waterfall__item-list--design .list-item::before {  
    background-color: #FFCC11;
}
.work-waterfall__item-list--code .list-item::before {    
    background-color: #C1FF11;
}
.work-waterfall__item-list--test .list-item::before {   
    background-color:  #1C63ED;
}
.work-waterfall__item-list--maintain .list-item::before {
    background-color: #5D00D4;
}
.work-waterfall__item--analysis {
    max-width: 491px;
}
.work-waterfall__item--design {
    max-width: 499px;
    margin-left: 151px;
}
.work-waterfall__item--code {
    max-width: 510px;
    margin-left: 307px;
}
.work-waterfall__item--test {
    max-width: 487px;
    margin-left: 467px;
}
.work-waterfall__item--maintain {
    max-width: 533px;
    margin-left: 621px;
}
.work-waterfall__item--analysis::after,
.work-waterfall__item--code::after,
.work-waterfall__item--test::after,
.work-waterfall__item--design::after {
    position: absolute;
    content: '';
    background: url(../images/rd-meth-arrow-1.svg) right center / cover no-repeat;
    width: 83px;
    height: 109px;
    top: 45%;
    right: -83px;
}
.work-waterfall__item--design::after {
    background: url(../images/rd-meth-arrow-2.svg) right center / cover no-repeat;
    right: -83px;
}
.work-waterfall__item--code::after {
    background: url(../images/rd-meth-arrow-3.svg) right center / cover no-repeat;
    width: 68px;
    right: -68px;
}
.work-waterfall__item--test::after {
    background: url(../images/rd-meth-arrow-4.svg) right center / cover no-repeat;
    width: 100px;
    height: 91px;
    right: -99px;
}
.work-waterfall__item--analysis::before,
.work-waterfall__item--code::before,
.work-waterfall__item--test::before,
.work-waterfall__item--maintain::before {
    position: absolute;
    content: '';
    background: url(../images/rd-meth-arrow-back-4.svg) left center / cover no-repeat;
    width: 548px;
    height: 678px;
    bottom: -679px;
    left: 72px;
}
.work-waterfall__item--code::before {
    background: url(../images/rd-meth-arrow-back-3.svg) left center / cover no-repeat;
    width: 397px;
    height: 463px;
    bottom: -264px;
    left: -84px;
}
.work-waterfall__item--test::before {
    background: url(../images/rd-meth-arrow-back-2.svg) left center / cover no-repeat;
    width: 235px;
    height: 248px;
    bottom: -85px;
    left: -82px;
}
.work-waterfall__item--maintain::before {
    background: url(../images/rd-meth-arrow-back-1.svg) left center / cover no-repeat;
    width: 89px;
    height: 68px;
    top: -11px;
    left: -90px;
}
.work-tools__inner {
    grid-template-columns: repeat(2, 1fr);
}
.work-tools__item {
   justify-content: space-between;
}
.work-tools__item-title {
    margin-bottom: 48px;
}
.work-tools__element {
    max-width: 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.work-tools__element-icon {
    height: 82px;
}
.work-tools__element + .work-tools__element {
    margin-left: 24px;
}
.work-tools__element-name {
    font-family: Roboto-Regular;    
    font-weight: 400;
    font-size: 20px;
    line-height: 1.17;
    margin-top: 36px;
    text-align: center;
}

/* -----------------------------MEDIA STYLES-------------------------------------- */

@media (max-width: 1250px) {
    .work-process__inner::before {
        display: none;
    }
    .work-process__item {
        align-items: flex-start;
        flex-direction: column;
        position: relative;
    }
    .work-process__item-image {
        margin-right: unset;
        margin-bottom: 40px;
        align-self: flex-start;
    }
    .work-process__item-info {
        position: relative;
        z-index: 2;
    }
    .work-process__item-image::before {
        position: absolute;
        content: '';
        width: 121px;
        height: 138px;
        top: -13px;
        left: -13px;
    }
    .work-process__item-image--first::before {
        background: url(../images/rd-process-circle-red.svg) left center / cover no-repeat;
        width: 120px;   
    }
    .work-process__item-image--second::before {
        background: url(../images/rd-process-circle-yellow.svg) left center / cover no-repeat;
        height: 156px;
    }       
    .work-process__item-image--third::before {
        background: url(../images/rd-process-circle-green.svg) left center / cover no-repeat;
        height: 156px;
    }
    .work-process__item-image--four::before {
        background: url(../images/rd-process-circle-blue.svg) left center / cover no-repeat;
        height: 156px;
    }
    .work-process__item-image--five::before {
        background: url(../images/rd-process-circle-violet.svg) left center / cover no-repeat;
        height: 137px;
    	width: 120px;
    }
    .work-process__item-image::before,
    .work-process__item-image--second::before,
    .work-process__item-image--third::before,
    .work-process__item-image--four::before,
    .work-process__item-image--five::before {
        top: 36px;
        left: 36px;
    }
    .work-process__item-image--second::before,
    .work-process__item-image--third::before,
    .work-process__item-image--four::before,
    .work-process__item-image--five::before {
        top: 18px;
    }
    .work-process__item-image--second::before,
    .work-process__item-image--third::before,
    .work-process__item-image--four::before {
        left: 35px;
    }
    .work-process__item::before {
        position: absolute;
        content: '';
        width: 2px;
        height: calc(100% - 126px);
        left: 96px;
        top: 165px;
        z-index: 1;
    }
    .work-process__item--five::before {
        display: none;
    }
    .work-process__item--first::before  {
        background: linear-gradient(to bottom, rgba(237, 28, 36, 1) 0%, rgba(237, 28, 36, 0.2) 20%, rgba(237, 28, 36, 0.2) 65%, rgba(255, 204, 17, 1) 85%);
        height: calc(100% - 125px);
    }
    .work-process__item--second::before  {
        background: linear-gradient(to bottom, rgba(255, 204, 17, 1) 0%, rgba(255, 204, 17, 0.2) 20%, rgba(193, 255, 17, 0.2) 65%, rgba(193, 255, 17, 1) 85%);
    }
    .work-process__item--third::before {
        background: linear-gradient(to bottom, rgba(193, 255, 17, 1) 0%, rgba(193, 255, 17, 0.2) 20%, rgba(193, 255, 17, 0.2) 65%, rgba(28, 99, 237, 1) 85%);
    }
    .work-process__item--four::before {
        background: linear-gradient(to bottom, rgba(28, 99, 237, 1) 0%, rgba(28, 99, 237, 0.2) 20%, rgba(28, 99, 237, 0.2) 65%, rgba(93, 0, 212, 1) 85%);
    }
}

@media (max-width: 1220px) {
    .work-agile__item-image {
        max-width: 400px;
        max-height: 280px;
        padding: 48px 31px;
        margin: 0 auto 48px;
        min-height: 280px;
    }
    .work-agile__item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .work-waterfall__item--analysis,
    .work-waterfall__item--maintain,
    .work-waterfall__item--test,
    .work-waterfall__item--code,
    .work-waterfall__item--design {
        margin-left: unset;
        max-width: 800px;
        margin: auto;
    }
    .work-waterfall__item {
        padding-left: 15%;
    }
    .work-waterfall__item + .work-waterfall__item {
        margin-top: 36px;
    }
    .work-waterfall__item--analysis::before, 
    .work-waterfall__item--code::before, 
    .work-waterfall__item--test::before, 
    .work-waterfall__item--maintain::before {
        display: none;
    }
    .work-waterfall__item--analysis::after, 
    .work-waterfall__item--code::after, 
    .work-waterfall__item--test::after, 
    .work-waterfall__item--design::after {
        background: unset;
        background-image: url(../images/rd-how-icon-1-new.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        width: 78px;
        height: 36px;
        bottom: -36px;
        left: calc(15% + 176px);
        top: unset;
        right: unset;
    }
    .work-waterfall__item--design::after {
        background-image: url(../images/rd-how-icon-2-new.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        left: calc(15% + 248px);
    }
    .work-waterfall__item--code::after {
        background-image: url(../images/rd-how-icon-3-new.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        left: calc(15% + 322px); 
    }
    .work-waterfall__item--test::after {
        background-image: url(../images/rd-how-icon-4-new.webp);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        left: calc(15% + 394px);
    }
}

@media (max-width: 1050px) {
    .work-process__item::before {
        height: calc(100% - 123px);
        left: 72px;
        top: 139px;
    }
    .work-process__item--second::before {
        height: calc(100% - 126px);
        top: 142px;
    }
    .work-process__item--third::before {
        height: calc(100% - 125px);
        top: 141px;
    }
    .work-process__item--four::before {
        height: calc(100% - 126px);
        top: 142px;
    }
    .work-process__item-image::before, 
    .work-process__item-image--second::before,
    .work-process__item-image--third::before,
    .work-process__item-image--four::before,
    .work-process__item-image--five::before {
        top: 11px;
        left: 11px;
    }
    .work-process__item-image--first::before,
    .work-process__item-image--five::before {
        left: 12px;
    }
    .work-process__item-image--second::before,
    .work-process__item-image--third::before,
    .work-process__item-image--four::before,
    .work-process__item-image--five::before {
        top: -5px;
    }
}

@media (max-width: 880px) {
    .work-tools__inner {
        grid-template-columns: repeat(1,1fr);
    }
    .work-tools__list {
        justify-content: space-around;
    }
    .work-waterfall__item--analysis::after, 
    .work-waterfall__item--code::after, 
    .work-waterfall__item--test::after, 
    .work-waterfall__item--design::after {
        left: calc(7% + 176px);
    }
    .work-waterfall__item--design::after {
        left: calc(7% + 248px);
    }
    .work-waterfall__item--code::after {
        left: calc(7% + 322px); 
    }
    .work-waterfall__item--test::after {
        left: calc(7% + 394px);
    }
}

@media (max-width: 785px) {    
    .work-agile__item {
        padding: 24px;
        border-radius: 16px;
    }
    .work-agile__item-image {
        padding: 30px;
        min-height: 240px;
    }
}

@media (max-width: 720px) {
    .work-agile__inner {
        flex-direction: column;
    }
    .work-agile__item {
        max-width: unset;
    }
    .work-agile__item + .work-agile__item {
        margin-left: unset;
        margin-top: 24px;
    }
    .work-agile__item-image {
        margin-bottom: 24px;
    }
    .work-waterfall__item {
        padding: 24px;
    }
    .work-waterfall__item--analysis::after, 
    .work-waterfall__item--code::after, 
    .work-waterfall__item--test::after, 
    .work-waterfall__item--design::after {
        left: 154px;
    }
    .work-waterfall__item--design::after {
        left: 226px;
    }
    .work-waterfall__item--code::after {
        left: 298px;
    }
    .work-waterfall__item--test::after {
        left: 370px;
    }
    .work-waterfall__inner {
        margin-bottom: 48px;
    }
}

@media (max-width: 590px) {
    .work-process__inner,
    .work-waterfall__inner {
        border-radius: unset;
        padding: 12px;
        margin-left: -10px;
        margin-right: -10px;
    }
    .work-waterfall__item {
        flex-direction: column;
        align-items: flex-start;
    }
    .work-waterfall__item-image {
        margin-right: 0;
        margin-bottom: 24px;
    }
    .work-waterfall__item--analysis::after, 
    .work-waterfall__item--code::after, 
    .work-waterfall__item--test::after, 
    .work-waterfall__item--design::after {
        left: 32px;
    }
    .work-waterfall__item--design::after {
        left: 104px;
    }
    .work-waterfall__item--code::after {
        left: 176px;
    }
    .work-waterfall__item--test::after {
        left: 248px;
    }
}

@media (max-width: 480px) {
    .work-agile__item-text {
        margin-bottom: 24px;
    }
    .work-tools__element + .work-tools__element {
        margin-left: 12px;
    }
    .work-tools__element {
        max-width: 70px;
    }
}

@media (max-width: 420px) {
    .work-agile__item-image {
        min-height: unset;
    }
    .work-tools__item-title {
        margin-bottom: 24px;
    }
    .work-tools__element-name {
        font-size: 14px;
        line-height: 15px;
        margin-top: 11px;
    }
    .work-tools__element-icon {
        height: 41px;
    }
}

@media (max-width: 370px) {
    .work-waterfall__item--analysis::after, 
    .work-waterfall__item--code::after, 
    .work-waterfall__item--test::after, 
    .work-waterfall__item--design::after {
        display: none;
    }
    .work-waterfall__item + .work-waterfall__item {
        margin-top: 12px;
    }
}

@media (max-height: 800px) and (orientation: landscape) {
    .work-process__inner::before {
        display: none;
    }
    .work-waterfall__item--code::before {
        bottom: -272px;
    }
    .work-waterfall__item--test::before {
        bottom: -91px;
    }
}