* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: "Open Sans", serif;
}
hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 40px auto;
    width: 20%;
}

a {
    color: #000;
}

a:hover {
    text-decoration: none;
}

h1, h2, h3 {
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-family: "Playfair Display", serif;
}

.burger, .close {
    display: none;
}


.cover {
    height: 25vh;
    background: url(assets/images/cover.jpeg) no-repeat center center;
    background-size: cover;
}

#main {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    padding: 30px 5% 100px 5%;
    gap: 5%;
    position: relative;
}

#sidebar {
    width: 30%;
    position: sticky;
    top: 30px;
    height: fit-content;
}

#sidebar a {
    text-decoration: none;
    color: #000;
}

#sidebar h2 {
    font-size: 16px;
    opacity: 0.6;
    margin: 0;
}

#sidebar h1 {
    margin: 0;
    font-size: 40px;
}

#sidebar > ul > li {
    padding: 10px 0;
}

#sidebar ul {
    list-style-type: none;
    padding: 0;
    font-size: 20px;
}

#sidebar ul a {
    display: block;
    position: relative;
    /*display: flex;*/
    align-content: center;
    transition: transform 0.4s;
}


#sidebar ul a:after {
    content: "";
    background: url(assets/images/arrow.svg) no-repeat right center;
    width: 30px;
    height: 20px;
    display: inline-block;
    opacity: 0;
    transition: all 0.4s;
    position: relative;
    top: 3px;
}


#sidebar ul a.current:after, #sidebar ul a:hover:after {
    opacity: 1;
}

#sidebar ul a:hover {
    transform: translateX(10px);
}
#sidebar ul a:hover:after {
    transform: translateX(5px);
}

#sidebar ul li li {
    padding: 3px 0 3px 10px;
    font-size: 16px;
    opacity: 0.7;
}

#sidebar ul.nav {
    margin-top: 100px;
}

#sidebar ul.nav a {}

#sidebar .socials, .about .socials {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    justify-content: center;
}

#sidebar .socials img, .about .socials img {
    width: 24px;
}

#sidebar .socials a, .about .socials a {
    opacity: 0.5;
    transition: opacity 0.3s;
}

#sidebar .socials a:hover, .about .socials a:hover {
    opacity: 1;
}

#content {
    flex: 1;
    /*border: 1px solid blue;*/
    padding-top: 150px;
}

#content h1 {
    font-size: 30px;
    margin-top: 0;
    margin-bottom: 50px;
}

#content p {
    line-height: 1.5;
}

.about {
    display: flex;
    gap: 40px;
}

.about .left {
    text-align: center;
}

.about .left .img {
    width: 130px;
    border-radius: 100%;
}

.about .right {
    flex: 1;
}

.testimonials > div {
    margin-bottom: 40px;
}


.testimonials span {
    opacity: 0.6;
    display: block;
    text-align: right;
    font-style: italic;
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
}

.grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid h2 {
    font-size: 16px;
}

.grid a {
    color: #000000;
}

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

.contacts {
    text-align: center;
}

.contacts .socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
}


@media (max-width: 800px) {
    .cover {
        height: 10vh;
    }

    .burger {
        height: 40px;
        display: block;
        width: 30px;
    }

    #main {
        flex-direction: column;
        padding: 10px 5%;
    }

    #sidebar ul.nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        bottom: 0;
        background: #FFF;
        margin: 0;
        justify-content: center;
        align-content: center;
        flex-direction: column;
        z-index: 1;
    }

    #sidebar.active ul.nav {
        display: flex;
    }

    .close {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        z-index: 2;
    }

    #sidebar.active .close {
        display: block;
    }

    #sidebar ul.nav li {
        width: 270px;
        margin: 0 auto;
    }

    #sidebar {
        width: 100%;
        /*position: relative;*/
        top: 0;
        margin-bottom: 50px;
        display: flex;
        justify-content: space-between;
        align-content: flex-start;
        background: #FFFFFF;
        z-index: 1;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #sidebar h1 {
        font-size: 30px;
    }

    #content {
        padding-top: 0;
    }

    .about {
        flex-direction: column;
        gap: 0;
    }

    #content h1 {
        font-size: 25px;
    }

    .about .left {
        text-align: center;
    }

    .about .left img {
        margin-bottom: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid img {
        height: 200px;
    }

    .contacts .socials {
        margin: 20px 0;
    }
}
