/* @import url('https://fonts.cdnfonts.com/css/heading-now-trial'); */
.how-we-work {
    padding-top: 170px;
    padding-bottom: 116px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.how-we-work-title-wrapp {
    width: 100%;
    flex-direction: column;
}

.how-we-work-title-wrapp .title {
    width: 40%;
    display: flex;
    margin-bottom: 40px;
}

.how-we-work-title-desk {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 50px;
}

.how-we-work-title-desk p {
    display: contents;
    font-family: 'Onest', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 42px;
    letter-spacing: 0em;
    text-align: center;
    color: #FFFFFF;
    white-space: nowrap;
    display: flex;
    flex-wrap: wrap;
    width: 99%;
    margin: 0 auto;
    justify-content: center;
}
.how-we-work-title-desk p span:after {
    content: "\A"; 
  }

.how-we-work-title-desk p span {
    color: #FC5B31;
}

.how-we-work-deskription-wrapp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.how-we-work-item {
    position: relative;
    width: 100%;
    display: flex;
    height: 560px;
    margin-bottom: 40px;
    border-radius: 20px;
    z-index: 20;
    overflow: hidden;
    /* font-family: 'HeadingNow Trial', sans-serif; */
}
.how-we-work-item:nth-child(1) {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
}

.how-we-work-item:nth-child(1)::after {
    content: url("data:image/svg+xml;utf8,<svg width='166' height='281' viewBox='0 0 166 281' xmlns='http://www.w3.org/2000/svg'><path d='M104.111 27.9194C78.9114 43.4594 42.3714 56.4793 0.791406 61.9393V10.6993C44.8914 3.97933 83.1114 -11.1406 109.991 -31.7207H165.011V280.339H104.111V27.9194Z' fill='%23B8E5B3' fill-opacity='0.86'/></svg>");
    position: absolute;
    right: 60px;
    top: 0px; 
    font-size: 420px;
    font-weight: 400;
    line-height: 215px;
    letter-spacing: 0em;
    text-align: right;
    color: #B8E5B3DB;
    z-index: 10;
}

.how-we-work-item:nth-child(2) {
    background: #E0F9DC;
}
.how-we-work-item:nth-child(2)::after {
    content: url("data:image/svg+xml;utf8,<svg width='287' height='281' viewBox='0 0 287 281' xmlns='http://www.w3.org/2000/svg'><path d='M0.917501 230.736C73.5775 178.656 218.058 120.696 218.058 55.5956C217.638 30.3956 191.178 12.3356 145.398 12.3356C79.0375 12.3356 66.8575 40.4756 66.8575 72.8156H3.0175C3.0175 10.2356 39.9775 -37.6444 145.818 -37.6444C232.338 -37.6444 285.678 -4.04444 286.098 52.2356C286.098 135.396 156.318 192.516 96.2575 229.056H286.098V280.716H0.917501V230.736Z' fill='%23B8E5B3'/></svg>");
    position: absolute;
    left: 40px;
    top: 0;
    font-size: 420px;
    font-weight: 400;
    line-height: 215px;
    letter-spacing: 0em;
    text-align: right;
    color: #B8E5B3DB;
    z-index: 10;
}

.how-we-work-item img {
    width: 100%;
    display: flex;
}
.how-we-work-item:nth-child(2) img {
    width: 60%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.how-we-work-deskription-wrapp > .how-we-work-item:nth-child(2) > p {
    top: 38%;
}
.how-we-work-item p {
    max-width: 550px;
    width: 100%;
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 0em;
    text-align: left;
    color: #FFFFFF;
    position: absolute;
    margin: 0;
    top: 50%;
    left: 40px;
    z-index: 20;
}

.how-we-work-item p.black {
    color: #000000;
}

@media(max-width:1500px) {
   
    .how-we-work-item:nth-child(2) img {
        width: 55%;
    }
    
}

@media(max-width:1380px) {
   
    .how-we-work-item:nth-child(2) img {
        width: 50%;
    }
    
}

@media(max-width:1240.98px) {
    .how-we-work {
        padding-bottom: 79px;
    }

    .how-we-work-item p {
        left: 20px;
        top: 38%;
        font-size: 16px;
        line-height: 21px;
    }

    .how-we-work-title-desk p {
        font-size: 20px;
        line-height: 27px;
    }

   

    .how-we-work-item {
        max-width: 1060px;
        height: 345px;
        margin-bottom: 20px;
    }

    .how-we-work-item p {
        max-width: 385px;
    }
  
    .how-we-work-item:nth-child(1)::after {
        content: url("data:image/svg+xml;utf8,<svg width='143' height='215' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 166 281'><path d='M104.111 27.9194C78.9114 43.4594 42.3714 56.4793 0.791406 61.9393V10.6993C44.8914 3.97933 83.1114 -11.1406 109.991 -31.7207H165.011V280.339H104.111V27.9194Z' fill='%23B8E5B3' fill-opacity='0.86'/></svg>");
        position: absolute;
        right: 30px;
        top: -38px;
    }
    .how-we-work-item:nth-child(2)::after {
        content: url("data:image/svg+xml;utf8,<svg width='223' height='216' viewBox='0 0 287 281' xmlns='http://www.w3.org/2000/svg'><path d='M0.917501 230.736C73.5775 178.656 218.058 120.696 218.058 55.5956C217.638 30.3956 191.178 12.3356 145.398 12.3356C79.0375 12.3356 66.8575 40.4756 66.8575 72.8156H3.0175C3.0175 10.2356 39.9775 -37.6444 145.818 -37.6444C232.338 -37.6444 285.678 -4.04444 286.098 52.2356C286.098 135.396 156.318 192.516 96.2575 229.056H286.098V280.716H0.917501V230.736Z' fill='%23B8E5B3'/></svg>");
        left: 40px;
        top: -40px;
    }
}

@media(max-width:1200px) {
    .how-we-work-item {
        max-width: 100%;
    }
    .how-we-work-title-desk p {
        width: 95%;  
    }
}


@media(max-width:920px) {
    .how-we-work {
        padding-top: 0px;
    }
}


@media(max-width:780px) {
  

    .how-we-work-item p {
        top: 20%;
    }
    .how-we-work-deskription-wrapp > .how-we-work-item:nth-child(2) > p {
        top: 15%;
    }
}

@media(max-width:680px){
    .how-we-work-item:nth-child(1) img {
       object-fit: cover;
    }
    .how-we-work-item p {
        max-width: 320px;
    }
}

@media(max-width:620px){
      .how-we-work-title-desk p {
        font-size: 18px;
        line-height: 136%;
        display: contents;
        white-space: normal;
    }
    .how-we-work-title-desk p span {
        display: contents;
    }
    
}

@media(max-width:580px) {
    .how-we-work-item {
        height: 270px;
    }
    .how-we-work-item:nth-child(2) img {
        right: -28px;
        width: 35%;
    }
    .how-we-work-title-desk {
        width: 85%;
    }
}

@media(max-width:520px) {
    .how-we-work-title-desk p {
        font-size: 16px;
        line-height: 22px;
    }

    .how-we-work-item p {
        font-size: 14px;
        line-height: 19px;
    }
    .how-we-work-item p {
        width: 70%;
    }
    .how-we-work-deskription-wrapp > .how-we-work-item:nth-child(2) > p {
        width: 75%;
    }
    .how-we-work-item:nth-child(1)::after {
        content: url("data:image/svg+xml;utf8,<svg width='79' height='119' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 166 281'><path d='M104.111 27.9194C78.9114 43.4594 42.3714 56.4793 0.791406 61.9393V10.6993C44.8914 3.97933 83.1114 -11.1406 109.991 -31.7207H165.011V280.339H104.111V27.9194Z' fill='%23B8E5B3' fill-opacity='0.86'/></svg>");
        top: -133px;
    }
    .how-we-work-item:nth-child(2)::after {
        content: url("data:image/svg+xml;utf8,<svg width='123' height='119' viewBox='0 0 287 281' xmlns='http://www.w3.org/2000/svg'><path d='M0.917501 230.736C73.5775 178.656 218.058 120.696 218.058 55.5956C217.638 30.3956 191.178 12.3356 145.398 12.3356C79.0375 12.3356 66.8575 40.4756 66.8575 72.8156H3.0175C3.0175 10.2356 39.9775 -37.6444 145.818 -37.6444C232.338 -37.6444 285.678 -4.04444 286.098 52.2356C286.098 135.396 156.318 192.516 96.2575 229.056H286.098V280.716H0.917501V230.736Z' fill='%23B8E5B3'/></svg>");
        left: 20px;
        top: -140px;
    }
    
}

@media(max-width:420px) {
    .how-we-work-item {
        height: 270px;
        max-width: 340px;
        width: 100%;
    }
    .how-we-work-item p {
        top: 10%;
    }
    .how-we-work-deskription-wrapp {
        margin: 0 auto;
    }
    .how-we-work-item:nth-child(2) img {
        right: -22px;
        width: 49%;
    }
    .how-we-work-deskription-wrapp > .how-we-work-item:nth-child(2) > p {
        width: 90%;
    }
    .how-we-work-title-desk {
        width: 100%;
    }
    .how-we-work-title-desk {
        margin-bottom: 30px;
    }
}

@media(max-width:390px) {
    .how-we-work-title-desk p {
        width: 100%
    }
}

@media(max-width:360px) {
    .how-we-work-title-desk p {
        font-size: 12px;
        line-height: 18px;
    }
    .how-we-work-deskription-wrapp > .how-we-work-item:nth-child(2) > p {
        width: 95%;
    }
    .how-we-work-item p {
        left: 5px;
    }
}