/* RESET */
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, 
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;   
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

button, input, textarea, select, a {
    outline: none;
}

textarea {
    resize: none;
}

a, a:hover, a:focus {
    text-decoration: none;
}

img, embed, object, video {
    width: 100%;
    height: auto;
    vertical-align: middle;
} 

video {
    outline: none !important;
}
/* END RESET */


/* FONTS */
@font-face {
    font-family: 'roboto-light';
    src: url('../fonts/Roboto-Light.ttf');
}

@font-face {
    font-family: 'roboto-regular';
    src: url('../fonts/Roboto-Regular.ttf');
}

@font-face {
    font-family: 'roboto-bold';
    src: url('../fonts/Roboto-Bold.ttf');
}

@font-face {
    font-family: 'avenir-book';
    src: url('../fonts/Avenir-Book.ttf');
}

@font-face {
    font-family: 'avenir-black';
    src: url('../fonts/Avenir-Black.otf');
}
/* END FONTS */


/* CONTENT */
::-moz-selection {
    background-color: #1a4339;
    color: #ffffff;
}

::selection {
    background-color: #1a4339;
    color: #ffffff;
}

body {
    line-height: 1.5;
    overflow-x: hidden;
}

html {
    font-size: 16px;
}

header {   
    height: 154px;
    position: relative;
    background-color: #ffffff;
    margin: auto;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

header ul li {
    list-style: none;
    display: inline-block;
    text-transform: uppercase;
}

h1, 
h2,
p {
   color: #3d3836; 
}

h1 {
    font-family: 'roboto-bold';
    font-size: 3.5rem;
    padding-bottom: 4rem;
}

h2,
p {
    font-size: 1.5rem;    
}

h2 {
    font-family: 'avenir-black';    
}

h3 {
    font-family: 'roboto-light';
    color: #ffffff;
    text-align: center;
    font-size: 1.2rem; 
}

p {
    padding-bottom: 3rem;
    font-family: 'avenir-book';
}

form input {
    background-color: transparent;
    border: 1px solid transparent;
    color: #42311a;
    font-family: 'roboto-regular';
    font-size: 1.3rem;
    margin-bottom: 2rem;
    width: 100%;
    border-bottom: 1px solid #949290;
    padding: 1rem 0;
}

form input:focus {
    border: 1px solid #1a4339;
    padding: 1rem;
}

form input::-webkit-input-placeholder{
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form input::-moz-placeholder {
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form input:-ms-input-placeholder{
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form input::-ms-input-placeholder {
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form input::-webkit-input-placeholder {
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form input::-moz-placeholder {
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form input:-ms-input-placeholder {
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form input::-ms-input-placeholder {
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form input::placeholder {
    color: #42311a;
    font-family: 'roboto-regular';
    text-transform: uppercase;
}

form button {
    background-color: #1a4339;
    border: 1px solid #1a4339;
    cursor: pointer;
    color: #ffffff;
    font-family: 'roboto-bold';
    font-size: 1.4rem;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
}

form button:hover {
    background-color: #3d3836;
    border: 1px solid #3d3836; 
}

form .btn {
    padding-top: 1rem;
}

footer {
    background-color: #3d3836;
    padding: 1.5rem;
    height: 76px;
}

footer a {
    color: #ffffff;
}

.container {
    width: 90rem;
    margin: auto;
}

.flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.logo {
    padding: 2rem 0;
    margin: auto;
}

.logo img {
    width: 220px;
}

.languages {
    position: absolute;
    right: 0;
}

.languages a {
    font-family: 'roboto-bold';
    font-size: 1.5rem;
    color: #3d3836;
}    

.languages a.active {
    color: #1a4339;
}

.bar {
    font-size: 2rem; 
}

.contacts {
    height: calc(100vh - 230px);
    background-color: #ebebeb; 
    padding-top: 5rem;
}

.contacts .flex > div:first-child {
    width: 40%;
    padding-right: 8rem;
}

.contacts .flex > div:last-child {
    width: 60%;
}

.contacts a {
    color: #3d3836; 
}

.popup-form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 1000;
}

.popup-content {
    width: 60rem;
    border-radius: 5px;
    background-color: #ffffff;
    top: 50%;
    -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
            transform: translateY(-50%);
    position: relative;
    padding: 3rem 0;
    margin: auto;
}

.form-close {
    padding-right: 3rem;
    cursor: pointer;
    text-align: right;
}

.form-close p {
    color: #1a4339;
    font-size: 3rem;
}

.popup-form .text {
    padding: 5rem;
    font-size: 1.7rem;
}
/* END CONTENT */


/* MEDIA QUERIES */
@media (max-width: 1900px) {

    html {
        font-size: 10px;
    }    

    header {
        height: 101px;
    }

    footer {
    	height: 48px;
    }

    .logo img {
        width: 150px;
    }    

    .contacts {
        height: calc(100vh - 149px);
    }

}


@media (max-width: 991px) {

    .container {
        width: 100%;
        padding: 0 2rem;
    }

    .languages {
        right: 2rem;
    }

     .popup-form {
        padding: 0 2rem;
    }

    .popup-content {
        width: 100%;
    }
    
}    


@media (max-width: 767px) {

    form input {
        width: 40rem;
    } 

    .logo {
        margin: unset;
    } 

    .contacts {
        height: unset;
        padding-bottom: 5rem;
        padding-top: 4rem;
    }      
  
    .contacts .flex > div {
        width: 100% !important;
    }

    .contacts .flex > div:first-child {
        padding-right: 0;
    }       

}


@media (max-width: 575px) {

    header {
        -webkit-box-pack: left;
        -ms-flex-pack: left;
        justify-content: left;
        height: 98px;
    }

    form input {
        width: 100%;
    }       
    
}
/* END MEDIA QUERIES */