@font-face {
    font-family: "Open-Sans";
    src: url("../fonts/OpenSans-Bold.ttf") format("ttf");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Open-Sans";
    src: url("../fonts/OpenSans-Medium.ttf") format("ttf");
    font-weight: 400;
    font-style: normal;
}

html {
    background: #282828;
}

* {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

body {
    background: #FFFFFF;
    margin: 0 auto;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 400px;
    line-height: 25px;
    font-family: 'Open Sans', sans-serif;
}

.container {
    margin: 0 auto;
}

.header {
    position: relative;
    height: 450px;
    width: 100%;
    margin: 0 auto;
    padding-top: 27px;
    box-sizing: border-box;
    background: url(../img/main_banner.jpg) no-repeat;
    background-position: center;
    background-size: cover;
}

.header::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 29, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}


.menu-wrp {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}


.menu-logo {
    display: block;
    width: 200px;
}

.header-nav {
    list-style-type: none;
    display: flex;
}

.header-nav-link {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
}

.header-nav-link:hover {
    text-decoration: underline;
}

.navigation {
    display: flex;
}

.navigation li:nth-of-type(n+2) {
    margin-left: 35px;
}

.header-about-wrp {
    box-sizing: border-box;
    margin-top: 120px;
    align-items: center;
}

.header-title {
    position: relative;
    font-size: 35px;
    text-align: center;
    text-transform: uppercase;
    z-index: 2;
}

@media (min-width:1200px) {
    .header-title {
        position: relative;
        max-width: 750px;
        height: 107px;
        text-align: center;
        line-height: normal;
        margin: 0 auto;
    }
}

.clients {
    align-items: center;
    width: 100%;
    margin: 0 auto;
    text-transform: uppercase;
}

.clients-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.clients-title-text {
    color: black;
    font-size: 20px;
    margin-top: 60px;
    margin-bottom: 12px;
}

.clients-title-text::after {
    content: "";
    background-image: url("../img/tire.svg");
    display: block;
    width: 67px;
    height: 3px;
    margin: 0 auto;
    margin-top: 14px;
}

.clients-units-wrp {
    display: flex;
    height: 200px;
	justify-content: center;
}

.clients-unit {
    width: calc(100%/6);
    position: relative;
}

.clients-unit:nth-of-type(n+2) {
    margin-left: 3px;
}

.clients-unit::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(29, 29, 29, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

img {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.clients-unit-text {
    position: absolute;
    bottom: 0;
    left: 0;
    border: 3px solid #b59f5b;
    margin: 10px;
    padding: 10px;
    z-index: 2;
}

.client-unit-title {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
}

.projects-wrp {
    box-sizing: border-box;
    display: flex;
    margin: 64px 15px 64px 15px;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}


.project {
    margin-top: 20px;
    width: 50%;
    display: flex;
}

.project-img {
    width: 380px;
    height: 100%;
}

.project-content {
    display:flex;    
    flex-wrap: wrap;
    align-content: center;
    margin-left: 30px;
}

.project-title {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 20px;
    color: #000000;
    text-align: center;
}

.project-title a:hover {
    color: #b59f5b;
}

.project-text {
    font-size: 15px;
    color: #000000;
}

.contacts {
    margin: 20px 15px;
    color: #000000;
}

.contacts-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    margin-bottom: 20px;
}

.contacts-title-text {
    color: black;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contacts-title-text::after {
    content: "";
    background-image: url("../img/tire.svg");
    display: block;
    width: 67px;
    height: 3px;
    margin: 0 auto;
    margin-top: 14px;
}

.copyright {
    text-align: center;
    color: #999999;
    font-size: 12px;
    font-weight: bold;
    padding-top: 72px;
}



@media (max-width: 640px) {

    .container {
        width: 100%;
        margin-right: 0;
        padding: 0 35px;
        box-sizing: border-box;
    }

    .menu-wrp {
        flex-direction: column-reverse;
    }

    .nav-wrp {
        align-self:flex-start;
    }

    .menu-logo {
        margin-top: 90px;
    }

    .header-about-wrp {
        margin-top: 40px;
    }

    .header-title {
        font-size: 20px;
        line-height: 36px;
    }

    .clients-units-wrp {
        flex-wrap: wrap;
        height: auto;
    }

    .clients-unit {
        width: 100%;
        margin-bottom: 2px;
    }

    .clients-unit:nth-of-type(n+2) {
        margin-left: 0;
    }

    .client-unit-title {
        font-size: 18px;
    }

    .projects-wrp {
        margin: 0;
        width: 100%;
    }

    .projects {
        width: 100%;
    }

    .project {
        flex-direction: column;
        width: 100%;
    }

    .project-content {
        margin-left: 0;
    }

    .project-img {
        width: 100%;
        height: auto;
    }

    .project::after {
        content: "";
        display: block;
        width: 100%;
        height: 3px;
        background-color: #eeeeee;
        margin-top: 23px;
    }

    .shop {
        margin-top: 50px;
        height: auto;

    }

    .shop-vitrina {
        flex-wrap: wrap;
    }

    .shop-vitrina-squ {
        margin-top: 15px;
    }

}


@media (min-width: 641px) and (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 50px 35px;
        box-sizing: border-box;
    }

    .menu-wrp {
        margin: 0;
    }

    .header-title {
        font-size: 25px;
        line-height: 55px;
    }

    .clients {
        width: 100%;
        height: 100%;
    }

    .clients-units-wrp {
        flex-wrap: wrap;
        justify-content: space-evenly;
        height: auto;
    }

    .clients-unit:nth-of-type(n+2) {
        margin-left: 0;
    }

    .clients-unit:nth-child(even) {
        margin-left: 2px;
    }

    .clients-unit {
        width: calc(50% - 2px);
        margin-bottom: 2px;
    }
    
    .client-unit-title {
        font-size: 16px;
    }

    .projects-wrp {
        margin: 0;
        justify-content: space-between;
    }

    .projects {
        margin: 0;
        width: 100%;
        justify-content: space-between;
    }

    .project {
        flex-direction: column;
        width: 40vw;
    }

    .project-img {
        width: 100%;
        height: 300px;
        margin-bottom: 10px;
    }

    .project-content {
        margin-left: 0;
    }

    .project::after {
        content: "";
        display: block;
        width: 100%;
        height: 3px;
        background-color: #eeeeee;
        margin-top: 15px;
    }

    .shop {
        margin-top: 50px;
        height: 100%;
    }

    .shop-title {
        margin-bottom: 0;
    }

    .shop-vitrina {
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: flex-start
    }

    .shop-vitrina-squ {
        margin: 0;
        margin-top: 25px;
    }

    .footer {
        height: 100%;
    }
}

@media (orientation:landscape) and (min-width: 641px) and (max-width: 1200px) {
    .clients-unit {
        width: calc(25% - 2px);
    }

    .clients-unit:nth-of-type(n+2) {
        margin-left: 2px;
    }

    .clients-unit-text {
        bottom: 0;
        left: 0;
        padding: 1vw 1vw;
        line-height: 2vw;
    }

    .clients-unit-category li {
        font-size: 1vw;
        font-weight: bold;
    }


    .client-unit-title a {
        font-size: 1.3vw;
        font-weight: bold;
    }
}

@media (orientation:landscape) and (max-width: 640px) {
    .clients-unit {
        width: calc(50% - 2px);
    }

    .clients-unit:nth-of-type(n+2) {
        margin-left: 0;
    }

    .clients-unit:nth-child(even) {
        margin-left: 2px;
    }

    .clients-unit-text {
        bottom: 0;
        left: 0;
        padding: 1vw 1vw;
        line-height: 2vw;
    }

    .clients-unit-category li {
        font-size: 1.5vw;
        font-weight: bold;
    }


    .client-unit-title a {
        font-size: 2vw;
        font-weight: bold;
    }
}

@media (min-width: 1200px) {
    .nav-wrp {
        margin-right: 50px;
    }
}
