* {
    padding: 0;
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

header {
    background-color: #363d4f;
    margin-top: 20px;   
}

body, html {
    overflow-x: hidden;
    background-color: #ecdcb2;
}

nav {
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
}

#checkbox-menu, .toggle {
    display: none;
}

.menu {
    padding: 0;
    margin: 0;
    height: 150px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
}

.menu>div {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.menu li a {
    position: relative;
    color: #f4ead1;
    text-decoration: none;
    align-self: center;
    font-size: 30px;
    padding: 10px 15px;
    transition: color .2s linear;
}

.menu li a:hover {
    color: #9ba4ba;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    border-radius: 2px;
    height: 3px;
    background: #9ba4ba;
    transform: scaleX(0);
    transition: transform .2s ease-in-out;
}

.menu li a:hover::after {
    transform: scaleX(1);
}

.logo {
    min-width: 250px;
    max-width: 250px;
    /* margin-right: 250px; */
    height: 150px;
}

.wrapper {
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
    margin-top: 20px;
}

.intro {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
}

.intro-img {
    background-image: url(img/nn-panorama.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    width: 1092px;
    height: 508px;
}

.intro .intro-text {
    font-size: 60px;
    margin-top: 30px;
    margin-left: 50px;
    /* position: absolute; */
    /* left: 250px; */
    /* top: 220px; */
    color: #f4ead1;
    text-shadow: #363d4f 0 0 20px;
    line-height: 60px;
}

.intro-contacts {
    background-color: #363d4f;
    max-width: 590px;
    position: absolute;
    right: 230px;
    top: 580px;
    display: flex;
    justify-content: space-around;
    padding: 20px 40px;
}

.intro-contacts i {
    color: #f4ead1;
    margin-right: 5px;
}

.intro-contacts p {
    font-size: 27px;
    color: #f4ead1;
}

.guide, .bio {
    display: flex;
    margin-top: 30px;
    background-color: #363d4f;
    max-width: none;
    justify-content: center;
}

.guide-text,
.bio-text {
    padding: 40px;
    color: #f4ead1;
    max-width: 550px;
}

.guide-text h2,
.project-text h2,
.bio-text h2,
.contacts-text h2 {
    font-size: 40px;
    margin-bottom: 40px;
    line-height: 47px;
}

.guide-text ul {
    font-size: 20px;
    margin-top: 10px;
    line-height: 25px;
}

.guide-text ul li {
    margin-top: 20px;
    color: #fc9;
}

.guide-text p,
.project-text p,
.bio-text p,
.contacts-text p {
    font-size: 20px;
    margin-top: 10px;
    line-height: 25px;
}

.highlight{
    color: #9ba4ba;
}

.guide-square {
    width: 330px;
    height: 330px;
    background-color: #9ba4ba;
    margin: 30px;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 10px;
}

.guide-square img {
    width: 100%;
    height: auto;
}

.pictures {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.project {
    display: flex;
    margin-top: 30px;
    justify-content: space-between;
}

.project-text,
.contacts-text {
    padding: 40px;
    color: #09203f;
    max-width: 550px;
}

.project-img {
    justify-content: center;
    align-items: center;
    display: flex;
}

.project-img img {
    border-radius: 50%;
    padding: 5px;
    background-color: #363d4f;
}

.project a {
    text-decoration: none;
    font-size: 30px;
    color: #09203f;
    padding-left: 5px;
}

.project a:hover {
    color: #9ba4ba;
}

.project i {
    font-size: 30px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.card {
    width: 250px;
    background-color: #363d4f;
    padding: 5px;
    padding-bottom: 0;
    margin: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.card img {
    width: 100%;
    height: auto;
}

.card:hover, .project-img img:hover {
    background-color: #9ba4ba;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.bio {
    display: flex;
    margin-top: 30px;
    max-width: none;
    justify-content: center;
}

.bio-img {
    width: 330px;
    height: 330px;
    background-color: #9ba4ba;
    margin: 30px;
    margin-top: 50px;
    padding: 10px;
    justify-content: center;
    display: flex;
}

.bio-img img {
    width: 100%;
    height: auto;
}

.contacts-text {
    padding: 40px;
    /* margin-left: 240px; */
    color: #09203f;
    max-width: 420px;
}

.contacts {
    display: flex;
    background-image: url(img/nn-old.jpg);
    background-size: contain;
    
    background-repeat: no-repeat;
    background-position: 70% 0;
    max-width: none;
    margin-top: 30px;
    padding-left: 17%;
    background-color: rgba(243,240,232, 0.5);
    flex-direction: column;
}

.social {
    display: flex;
    /* margin-left: 280px; */
    padding: 0 0 40px 40px;
    flex-direction: column;
    max-width: 300px;
}

.social i, .social p{
    color: #09203f;
    font-size: 30px;
    margin-right: 20px;
}

.social a, .footeric a {
    text-decoration: none;
}

.social a p:hover {
    color: #9ba4ba;
}

footer {
    margin-top: 30px;
}

.footeric {
    background-color: #363d4f;
    max-width: none;
    text-align: center;
    padding-top: 20px;
}

.footeric p {
    color: #f4ead1;
    padding: 5px;
    font-size: 20px;
    line-height: 25px;
}

.footeric p a {
    color: #9ba4ba;
}

.footeric p a:hover {
    color: #f4ead1;
}

@media  screen and (max-width: 788px) {
    
    .menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        height: 0;
        transition: height .3s linear;
    }

    .menu li {
        display: flex;
        align-self: center;
        width: 95%;
        opacity: 0;
        visibility: hidden;
    }

    .menu li a {
        text-align: center;
        width: 95%;
        align-self: center;
        align-content: center;
    }

    .right {
        flex-direction: column !important;
    }

    .logo {
        margin-right: 0px;
        max-height: 150px;
    }
    
    .toggle {
        clear: both;
        display: block;
        text-align: center;
        font-size: 20px;
        line-height: 40px;
        width: 100%;
        color: #f4ead1;
        background-color: #363d4f;
        transition: all .1s linear;
    }

    .toggle:hover {
        background-color: #363d4f;
    }

    #checkbox-menu:checked + label .touch li {
        opacity: 1;
        visibility: visible;
        transition: all .7s linear;
    }

    #checkbox-menu:checked + label .touch {
        height: 450px;
    }

    .intro {
        margin-top: 0;
        display: block;
        max-width: 100%;
    }

    .intro-img {
        background-position: 700% 50%;
        max-height: 400px;
    }

    .intro .intro-text {
        position: relative;
        font-size: 35px;
        left: 10px;
        top: 15px;
        line-height: 40px;
        margin: 0;
    }

    .intro .intro-contacts {
        right: 0%;
        top: -60px;
        padding: 10px 10px;
        position: relative;
    }

    .intro-contacts i {
        margin-right: 10px;
    }

    .intro-contacts p {
        font-size: 20px;
        margin-right: 0;
    }

    .guide, .project, .bio {
        margin-top: 0px;
        flex-direction: column;
        align-items: center;
    }

    .guide {
        padding-top: 20px;
    }

    .guide-text,
    .project-text,
    .bio-text,
    .contacts-text {
        padding: 15px;
    }

    .guide-text h2,
    .project-text h2,
    .bio-text h2,
    .contacts-text h2 {
        font-size: 25px;
        margin-bottom: 10px;
        line-height: 30px;
    }

    .guide-text p,
    .project-text p,
    .bio-text p,
    .contacts-text p {
        font-size: 15px;
        margin-top: 7px;
        line-height: 20px;
    }

    .guide-text ul {
        list-style-position: inside;
    }

    .guide-text li {
        font-size: 15px;
        line-height: 20px;
        color: #fc9;
    }

    .pictures {
        align-items: center;
    }

    .guide-square {
        margin: 10px;
        width: 60%;
        height: auto;
        /* margin-bottom: 30px; */
        padding: 5px;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .card {
        width: auto;
        height: auto;
    }

    .contacts {
        background-image: url(img/nn-old-poly.png);
        background-size: 100%;
        background-position: top;
        padding-left: unset;
        align-items: center;
    }


    .bio-img {
        margin: 10px;
        margin-top: 30px;
        width: 60%;
        height: auto;
        padding: 5px;
    }

    .project-img img {
        max-width: 150px;
    }

    .contacts-text, .social {
        margin-left: 0;
        flex-direction: column;
    }

    .social {
        padding: 50px 0 10px 0;
        line-height: 35px;
    }

    .social i {
        font-size: 25px;
        margin-left: 10px;
    }

    .footeric p {
        padding: 2px;
    }

    
}