html {
    height: 100%;
    box-sizing: border-box;
}
*,
*:before,
*:after {
    box-sizing: inherit;
}
body{
    margin: 0;
    min-height: 100%;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
    background-image: url("../images/bg.jpg");
    background-size: cover;
    position: relative;
}
/*HEADER*/
.header{
    width: 100%;
    height: 80px;
    background-color: rgba(33,37,41, .6);
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-content{
    display: flex;
    justify-content: space-between;
    width: 90%;
}
.header-brand{
    font-size: 20px;
    cursor: pointer;
}
.header-content a{
    font-weight: bold;
    font-size: 22px;
}
.header-content a:hover{
    color:  #d2d3d5;
}
.header-brand{
    align-self: center;
}
.header-navigation{
    display: flex;
}
.header-navigation a{
    text-decoration: none;
    color: #FFFFFF;
    margin: 10px;
}
.header-brand{
    color: #FFFFFF;
}
.header-mobile-content{
    display: none;
    width: 100%;
}

.header-mobile-closed{
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;

}
.header-mobile-logo{
    text-align: center;
    color: #FFFFFF;
    font-size: 25px;
    cursor: pointer;
}
.header-mobile-dots{
   position: absolute;
    right: 20px;
    cursor: pointer;
}
.mobile-dot{
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin-top: 2px;
}
.header-mobile-open{
    background-color: rgba(33,37,41, .7);
    text-align: center;
    padding-top: 1px;
    padding-bottom: 10px;
}
.header-mobile-open div{
    margin-top: 25px;
}
.header-mobile-open a{
    text-decoration: none;
    color: #FFFFFF;
    font-size: 20px;
}
.header-mobile-open a:hover{
    color:  #d2d3d5;
}
.header-mobile-open{
    display: none;
}


/*CONTENT*/
.content{
    padding-top: 50px;
    padding-bottom: 80px;
}
.block{
    width: 90%;
    margin: 0  auto;
    margin-top: 50px;
}

/*FIRST BLOCK*/
.first-block{
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0 50px 0;
    width: 90%  ;
}
.first-block-content{
    width: 90%;
    margin:  0 auto;
}
.first-block-row{
    margin-top: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.first-block-item{
    margin: 10px;
}
.first-block-item img{
    width: 125px;
    height: 125px;
}
.first-block-row p{
    font-size: 22px;
    font-weight: bold;
}
.first-block h1{
    font-size: 45px
}
.first-block-quote{
    font-size: 35px;
}
/*SECOND BLOCK*/
.second-block{
    color: black;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    padding-bottom: 25px;
}
.second-block h2{
    font-size: 36px;
    padding-top: 25px;
    font-weight: bold;
}
.second-block-content{
    display: flex;
    margin-top: 25px;
    justify-content: space-evenly;
    align-items: center;
}
.email-place p,
.phone-place p{
    font-size: 28px;
    font-weight: bold;
}
.email-place span,
.phone-place span{
    font-weight: normal;
}

footer{
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(33,37,41, .6);
    text-align: center;
}
footer a{
    text-decoration: none;
    color: #FFFFFF;
}
footer p {
    color: #FFFFFF;
    font-size: 20px;
}

@media screen and (max-width: 1024px){
    .first-block-row{
        flex-wrap: wrap;
    }
    .first-block-item{
        width: 45%;
        margin: 10px;
    }

}
@media screen and (max-width: 640px){
    .header-content{
        display: none;
    }
    .header-mobile-content{
        display: block;
    }
    .header{
        height: auto;
        display: block;
    }
    .first-block{
        padding-top: 10px;
    }
    .first-block-row{
       display: block;
    }
    .first-block-item{
        width: 90%;
        margin: 0 auto;
    }

    .first-block h1{
        font-size: 32px;
    }
    .first-block-content{
        width: 95%;
    }
    .first-block-quote{
        font-size: 22px;
    }
    .first-block-row p{
        font-size: 20px;
    }
    .first-block-item img{
        width: 80px;
        height: 80px;
    }
    .second-block-content{
        display: block;
    }
    .second-block h2{
        font-size: 24px;
    }

    .email-place p,
    .phone-place p{
        font-size: 22px;
    }
    .email-place p, .phone-place p{
        font-size: 23px;
    }
    footer{
        height: 50px;
    }
    footer p {
        font-size: 16px;
    }

}