﻿.block__tiles {

}

    .block__tiles .header {
        color: #4A4A4A;
        text-align: center;
        font-size: 28px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        margin-bottom: 40px;
    }

.tile {
    display: inline-block;
    vertical-align: top;
    width: 305px;
    margin-bottom: 20px;
    margin-right: 15px;
    opacity: 1;
}

    .tile:nth-child(4n) {
        margin-right: 0px;
    }


    .tile .tile_item {
        text-decoration: none;
        transform: translate3d(0, 0, 0);
        overflow: hidden;
        backface-visibility: hidden;
        width: 305px;
        display: block;
    } 

    .tile:nth-child(even) .tile_item__image {
        mask-image: url(/img/tile-even.svg);
        -webkit-mask-image: url(/img/tile-even.svg);
    }

         .tile:nth-child(odd) .tile_item__image {
        mask-image: url(/img/tile-odd.svg);
        -webkit-mask-image: url(/img/tile-odd.svg);
    }

    .tile .tile_item__image {
        position: relative;        
        z-index: 10;
    }


        .tile:hover .tile_item__image picture,
        .tile .tile_item__image picture img {
            transform: scale(1.1);
        }   


    .tile .tile_item__image,
    .tile .tile_item__image picture,
    .tile .tile_item__image picture img {
        width: auto;
        display: block;
        height: 235px;
    }

        .tile .tile_item__image picture:after {
            content: "";
            position: absolute;
            top: 0px;
            left: 0px;
            background: linear-gradient(247deg, rgba(0, 0, 0, 0.40) 1.98%, rgba(0, 0, 0, 0.00) 26.98%);
            width: 100%;
            z-index: 10;
            height: calc(100% - 10px);
        }


    .tile .tile_item__content {
        background-image: url(/img/tile-bottom-even.svg);
        background-size: cover;
        background-repeat: no-repeat;
        height: 87px;
        background-position-y: bottom;
        position: relative;
    }

        .tile .tile_item__content:after {
            content: "";
            background-color: #F4F4F4;
            width: 100%;
            height: 40px;
            position: absolute;
            top: -40px;
            right: 0px;
        }


    .tile:nth-child(odd) .tile_item__content {
        background-image: url(/img/tile-bottom-odd.svg);
    }

    .tile .tile_item__content .tile_item__description {
        margin-top: 24px;
    }

        .tile .tile_item__content .tile_item__description h3 {
            color: #4A4A4A;
            font-size: 18px;
            font-style: normal;
            font-weight: 600;
            line-height: 24px;
            margin: 0px;
            padding: 0px;
            padding-top: 0px; 
            margin-bottom: 20px;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            text-align: center;
        }

@media (max-width: 1280px) {
    .tile:nth-child(4n) {
        margin-right: 15px;
    }

    .tile:nth-child(3n) {
        margin-right: 0px;
    }
}

@media (max-width: 1002px) {
    .tile:nth-child(4n) {
        margin-right: 15px;
    }

    .tile:nth-child(3n) {
        margin-right: 15px;
    }

    .tile:nth-child(2n) {
        margin-right: 0px;
    }
}

@media (max-width: 677px) {
    .tile:nth-child(4n) {
        margin-right: 15px;
    }

    .tile:nth-child(3n) {
        margin-right: 15px;
    }

    .tile:nth-child(2n) {
        margin-right: 15px;
    }

    .tile:nth-child(1n) {
        margin-right: auto;
    }

    .tile {
        display: block;
        margin: auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 475px) {
    .tiles-wrapper {
        text-align: center;
    }

    .tile {
        display: inline-block;
        margin-bottom: 10px;
    }

    .tile,
    .tile .tile_item {
        width: 158px;
    }

        .tile .tile_item__image,
        .tile .tile_item__image picture,
        .tile .tile_item__image picture img {
            height: 130px;
        }

        .tile:nth-child(4n) {
            margin-right: 8px;
        }

        .tile:nth-child(3n) {
            margin-right: 8px;
        }


        .tile:nth-child(1n) {
            margin-right: 8px;
        }


        .tile:nth-child(2n) {
            margin-right: 0px;
        }

        .tile:nth-child(even) .tile_item__image {
            mask-image: url(/img/tile-even-mobile.svg);
            -webkit-mask-image: url(/img/tile-even-mobile.svg);
        }

        .tile:nth-child(odd) .tile_item__image {
            mask-image: url(/img/tile-odd-mobile.svg);
            -webkit-mask-image: url(/img/tile-odd-mobile.svg);
        }

        .tile .tile_item__content .tile_item__description h3 {
            font-size: 12px;
        }

        .tile .tile_item__content .tile_item__description {
            margin-top: 8px;
        }

        .tile .tile_item__content {
            height: 47px;
        }
    }