* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face { 
    font-family: 'Open Sans', sans-serif;
    src: url('OpenSans-Regular.ttf') format('ttf');
    font-weight: regular; 
    font-style: normal;
}

body {
    position: relative;
    overflow-x: hidden;
    font-family: 'Open Sans';
    height: 100%;
    width: 100%;
    background: url(bg.png);
    background-size: cover;
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    z-index: 0;
}

.bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('bg.png') no-repeat;
    opacity: 0.8;
    background-size: cover;
}

.header {
    position: relative;
    z-index: 1;
}

.header-title {
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
    font-size: 60px;
    color: #A90584;
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 0 1em green;
}

.header-description {
    margin: 0 auto;
    font-size: 30px;
    color: #300232;
    width: 80%;
    display: flex;
    align-self: center;
    padding-bottom: 50px;
    font-family: 'Open Sans', sans-serif;
    text-shadow: 0 0 0.8em green;
    padding-bottom: 80px;
}

.content {
    position: relative;
    z-index: 2;
}

.works {
    width: 1260px;
    grid-gap: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    padding-bottom: 20px;
}

.works-item {
    display: grid;
    grid-template-rows: 150px auto;
}

.works-item-image {
    height: auto;
    width: auto;
}

.autoschool {
    background: url('autoschool1.png') 0 0/cover no-repeat no-repeat;
}

.barbershop {
    background: url('barbershop.png') 0 0/cover no-repeat no-repeat;
}

.works-item-description {
    color: red;
    font-weight: 600;
    font-size: 18px;
    padding: 5px;
    font-style: italic;
}

.build {
    background: url('build.png') 0 0/cover no-repeat no-repeat;
}

.estate {
    background: url('estate.png') no-repeat;
}

.converter {
    background: url('converter.png') no-repeat;
}

.todo {
    background: url('todo.png') no-repeat;
}

.timer {
    background: url('timer.png') no-repeat;
}

.grill {
    background: url('grill.png') no-repeat;
}

.freepek {
    margin-left: 140px;
    color: black;
}

.works-item-image:hover {
    opacity: 0.7;
    transition: 1s;
}

.secondportfolio {
    font-size: 40px;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 40px;
}

.secondportfolio__link {
    color: red;
    font-weight: bold; 
    text-decoration: none;
    padding-right: 30px;
}

.secondportfolio__link:hover {
    color: blue;
}


@media screen and (max-width: 1600px) {


    .works {
        width: 80%;
        grid-template-columns: repeat(3, 1fr)
    }


}