/* when */

.when {
    padding: 287px 0 259px;
    background: #F1F1F1;
    position: relative;
    z-index: 1;
}
.when:before {
    content: '';
    position: absolute;
    top: 51%;
    left: 50%;
    background: #fff;
    z-index: -1;
    transform: translate(-50%, -49%);

    width: 778px;
    height: 817px;
}
.when__inner {
    padding: 103px 0 124px;
    display: flex;
    margin: 0 100px 0 80px;
    position: relative;
}
.when__inner:before {
    content: '';
    position: absolute;
    width: 2px;
    height: 1375px;
    right: -100px;
    top: 50%;
    transform: translateY(-51%);
    background: #fff;
}
.when__inner:after {
    content: '';
    position: absolute;
    right: 72px;
    top: 50%;
    width: 571px;
    transform: translateY(-51%);
    height: 1375px;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    z-index: -1;
}
.when__inner span {
    position: absolute;
    font-family: Open Sans;
    top: -23px;
    left: -88px;
    color: #00D093;
    width: 311px;
    font-weight: 800;
    font-size: 144px;
    text-transform: uppercase;
    line-height: 140px;
    line-break: anywhere;
}
.when-img {
    margin-right: 48px;
}
.when-btns {
    display: flex;
    align-items: center;
    margin-top: auto;
}
.when-btns .a-btn {
    color: #464646;
    display: flex;
}
.when-btns .btn {
    width: 219px;
    margin-left: auto;
    text-align: center;
}
.when-text {
    width: 392px;
    display: flex;
    flex-direction: column;
}
.when-text__title {
    color: #464646;
    margin-bottom: 53px;
}

@media (max-width: 1024px) {
    .when {
        padding: 130px 0;
        overflow: hidden;
    }
    .when__inner {
        margin: 0;
    }
    .when__inner span {
        left: -40px;
    }
    .when__inner:before {
        right: 0;
    }
}
@media(max-width: 991px) {
    .when__inner {
        flex-direction: column;
        align-items: center;
    }
    .when__inner span {
        left: 117px;
    }
    .when {
        padding: 130px 0 0;
    }
    .when-img {
        margin-right: 0;
    }
    .when:before {
        height: 1350px;
    }
    .when__inner:before {
        content: none;
    }
    .when-img {
        margin-bottom: 40px;
    }
    .when-text__desc {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .when__inner:after {
        content: none;
    }
    .when__inner span {
        left: 36px;
    }
}

@media (max-width: 480px) {
    .when-img {
        width: 100%;
        height: 310px;
    }
    .when-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .when__inner span {
        left: -40px;
        font-size: 80px;
        line-height: 80px;
        width: 180px;
        top: 32px;
    }
    .when-text__title {
        font-size: 30px;
        line-height: 38px;
        margin-bottom: 15px;
    }
    .when:before {
        content: none;
    }
    .when {
        padding: 75px 0 0;
    }
    .when-btns {
        flex-direction: column;
        align-items: flex-start;
    }
    .when-btns .btn {
        margin-left: 0;
        margin: 0 auto;
    }
    .when-btns .a-btn , .when-text__desc{
        margin-bottom: 15px;
    }
    .when__inner {
        padding: 103px 0 86px;
    }
    .when-text {
        width: 100%;
    }
}