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

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;

}

h3 {
    margin-top: 20px;
    margin-left: 20px;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    background-color: lightcyan;
    height: 80px;
    padding: 0 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu {
    display: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto ;
}

a.logo {
    display: flex;
    align-items: center;
    color: black;
}

a.logo:hover {
    text-decoration: none;
}

.logo {
    width: 33%;
    height: 80px;
    position: relative;
    display: flex;

}

.logo img {
    max-height: 75px;
    margin-left: 13px;
}

.logo span {
    font-size: 25px;
    font-family: Roboto, sans-serif;
    padding-left: 20px;
}
.logo img.with-opacity {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    max-height: 50px;
}

nav {
    width: 40%;
    display: flex;
    justify-content: center;
}

nav a {
    display: inline-block;
    padding: 0 15px;
    color: #000;
}

nav a:visited,
nav a:focus {
    color: #000;
}

.contacts {
    display: flex;
    width: 27%;
    flex-direction: column;
}

.contacts a {
    color: #37b5e9;
}

section {
    background-color: #eee;
}

.main {
    background: url("images/header.jpg") no-repeat center;
    height: 800px;
}

.main-title {
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba( 0, 0, 0, 0.3);
}

h1{
    width: 600px;
    color: white;
    text-shadow: 2px 2px #000;
    font-size: 52px;
    font-family: "Open Sans";
    font-weight: 600;
    margin-bottom: 150px;
}

.documents {
    display: flex;
    flex-direction: column;
}

.documents a {
    display: inline-block;
    margin: 20px;
    padding: 0 20px;
    color: #37b5e9;
}
.documents a:focus,
.documents a:visited {
    color: #37b5e9;
}
footer {
    background-color: #CFCBCA;
}

.footer {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
}
.footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33%;
    height: 100%;
    padding: 0 30px;
    line-height: 25px;
    border-right: dotted 1px #000;
}

.footer div:last-of-type {
    border-right: none;
}

@media screen and (max-width: 1282px) {
    .logo span {

    }
}
@media screen and (max-width: 948px) {
    .logo,
    nav {
        width: 50%;
    }

    .logo span {
        font-size: 18px;
    }

    .logo img {
        max-height: 45px;
    }

    .logo img.with-opacity {
        max-height: 40px;
        margin-left: 7px;
    }

    h1 {
        width: 100%;
    }

    .contacts {
        display: none;
    }

    .footer {
        flex-direction: column;
        height: unset;
    }

    .footer div {
        width: 100%;
        padding: 10px 30px;
        border-right: none;
        border-bottom: dotted 1px #000;
    }

    .footer div:last-of-type {
        border-bottom: none;
    }
}

@media screen and (max-width: 554px) {
    header {
        height: 50px;
    }

    .logo {
        height: 50px;
        width: 100%;
    }

    .main {
        height: 70vh;
    }

    h1 {
        font-size: 32px;
    }

    nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hamburger {
        width: 50px;
        height: 50px;
        position: relative;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: #000;
        position: absolute;
        top: 50%;
        left: 50%;
        transition: all ease .2s;
    }

    .hamburger span:first-of-type {
        margin-top: -10px;
    }

    .hamburger span:last-of-type {
        margin-top: 10px;
    }

    .dropdown {
        display: none;
        width: 70%;
        position: absolute;
        top: 50px;
        right: 0;
        background-color: #CFCBCA;
        padding: 20px;
    }

    .dropdown.active {
        display: block;
    }

    .hamburger.active span {
        margin-top: 0;
    }

    .hamburger.active span:nth-of-type(2) {
        display: none;
    }

    .hamburger.active span:first-of-type {
        transform: rotate(45deg);
    }

    .hamburger.active span {
        transform: rotate(-45deg);
    }

    .dropdown a {
        display: inline-block;
        padding: 10px 0;
    }

    .dropdown a:visited,
    .dropdown a:focus {
        color: #000;
    }
}
