* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    background-color: #f9f9f9;
    color: #333;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px
}

h1 {
    font-size: 28px;
    font-weight: 300;
    line-height: 40px
}

h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 20px
}

ul {
    list-style: none
}

header {
    margin: auto;
    padding: 40px 40px 0;
}

section {
    grid-gap: 40px;
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(4, 1fr);
    padding: 40px
}

section div {
    -webkit-animation-duration: .5s;
    animation-duration: .5s;
    -webkit-animation-name: div-container;
    animation-name: div-container
}

@-webkit-keyframes div-container {
    0% {
        -webkit-transform: translateY(10px);
        transform: translateY(10px)
    }

    to {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

@keyframes div-container {
    0% {
        -webkit-transform: translateY(10px);
        transform: translateY(10px)
    }

    to {
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

section div a {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    color: #333;
    display: block;
    text-decoration: none;
    transition: all .1s ease-out
}

section div a:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05)
}

section div .img-container {
    display: block;
    height: 300px;
    overflow: hidden;
    width: 100%
}

section div .img-container img {
    display: block;
    transition: all 1s ease-out;
    width: 100%
}

section div a:hover .img-container img {
    -webkit-transform: translateY(-200px);
    transform: translateY(-200px)
}

section div ul {
    padding: 20px
}

section div ul li {
    display: flex;
    justify-content: space-between
}

section div ul li span {
    color: #999
}

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

    section {
        grid-template-columns: repeat(3, 1fr)
    }

    section div ul li:nth-child(2),
    section div ul li:nth-child(3) {
        display: none
    }

}

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

    header {
        padding: 20px 20px 0;
    }

    section {
        gap: 20px;
        grid-template-columns: repeat(1, 1fr);
        padding: 20px
    }

}