.works-pics {
    display: flex;
    flex-direction: column;

}

.works-pics-line {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    max-height: 400px;
}

.works-pics-desktop {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.works-pics-mobile {
    display: none;
}

.works-pics-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.basic-work-image {
    width: 100%;
    height: auto;
    grid-column-start: 1;
    grid-row-start: 1;
}

/*todo write about the right way to use flex
   and the right way to use grid*/
.basic-work-pic-wrap {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 16px;

}

.column-left {
    margin-right: 8px;
}

.column-right {
    margin-left: 8px;
}

.works-pics-line-smaller {
    max-height: 200px;
    margin-bottom: 30px;
}

.mosaic-wrapper {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    max-width: calc((917px - 90px) / 3);
}

.middle-mosaic-wrapper {
    margin-left: 30px;
    margin-right: 30px;

}

.middle-info-card-wrapper {
    border-left: 30px;
    border-right: 30px;

}

.mosaic-image {
    grid-column-start: 1;
    grid-row-start: 1;
    max-width: calc((917px - 90px) / 3);
    /*width: 100%;*/
    height: auto;
}

.info-card-link {
    grid-column-start: 1;
    grid-row-start: 1;
}

.info-card {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: 2;
    color: #FFFFFF;
    grid-column-start: 1;
    grid-row-start: 1;
    height: auto;
    display: flex;

}

.info-card-inner {
    padding: 16px 17px 20px 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    width: auto;
    flex-grow: 2;

}

.info-card-inner-top {
    display: flex;
    flex-direction: column;
}

.info-card-inner-top-work-title {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 26px;
    margin-bottom: 12px;
    /*opacity: 1;*/

}

.info-card-inner-top-work-sub-title {

    font-size: 16px;
    letter-spacing: 0.5px;
    line-height: 19px;
    /*opacity: 1;*/

}

.info-card-inner-bottom {
    /*opacity: 1;*/
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.4px;
    line-height: 22px;
}

.mosaic-wrapper:hover .info-card {
    height: 100%;
    opacity: 1;
    max-width: calc((917px - 90px) / 3);
    width: 100%;
}


.basic-work-pic-wrap:hover .info-card {
    height: 100%;
    opacity: 1;
    width: 100%;
}

.big-picture-translate {
    transform: translate(0, -43%);
}

.mosaic-mobile {
    display: none;
}

.info-card-mobile {
    display: none;
}

.info-card-inner-mobile-types {
    color: #B99E32;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.82px;
    line-height: 22px;
    padding-top: 14px;
}

.info-card-inner-mobile-work-title {
    /*width: 347.5px;*/
    color: #37323E;
    font-size: 20px;
    line-height: 36px;
}

.info-card-inner-mobile-work-sub-title {

    color: #37323E;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.47px;
    line-height: 22px;

}


@media only screen and (max-width: 1199px) {

    .works-pics-line:nth-child(2n+3) {
        transform: translateY(-274px) translateY(calc(100vw / 3)) translateY(calc(-222px / 3)) translateY(calc(-90px / 3));
    }

    .works-pics {
        margin-right: 0;
    }

    .mosaic-image {
        max-width: calc((100vw - 282px - 100px) / 3);
    }

    .mosaic-wrapper:hover .info-card {
        max-width: calc((100vw - 282px - 100px) / 3);
    }

    .mosaic-wrapper {
        max-width: calc((100vw - 282px - 100px) / 3);
    }
}

@media only screen and (max-width: 768px) {
    .big-picture-translate {
        transform: none;
    }

    .works-pics-line:nth-child(2n+3) {
        transform: none;
        -ms-transform: none;
    }

    .works-pics-line:last-child:nth-child(odd) {
        transform: none;
        -ms-transform: none;
    }

    .works-pics-line {
        max-height: none;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .works-pics-line-smaller {
        max-height: none;
    }

    .mosaic-mobile {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .mosaic-image {
        display: none;

    }

    .middle-mosaic-wrapper {
        margin-left: 0;
        margin-right: 0;

    }


    .mosaic-wrapper {
        display: flex;
        flex-direction: column;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .info-card-mobile {
        display: block;
    }

    .works-pics {
        margin-right: 0;
    }

    .works-pics-desktop {
        display: none;
    }

    .works-pics-mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .info-card {
        opacity: 0.7;
    }

}

