header {
    background-color: #242424;
    border-bottom: 1px solid #000;
}

.hear-center {
    width: var(--all-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo a {
    color: #fff;
    font-family: 'Gulkave-Regular';
    font-size: 38px;
}

nav {
    margin: 0 auto;
}

nav ul {
    display: flex;
    margin: 0 auto;
}

nav a {
    padding: 19px;
    color: #ccc;
    display: block;
    font-size: 17px;
    font-weight: 500;
}

nav a:hover {
    background-color: #000;
    color: #fff;
}

.searchBar {
    width: var(--searchBar);
    display: flex;
}

.searchBar #go {
    width: var(--button);
    background-color: #fff;
    border-radius: var(--button) 0 0 var(--button);
}

.searchBar #go img {
    transform: scale(.9);
    opacity: .5;
}

.searchBar #search {
    flex: 1;
    border-radius: 0 var(--button) var(--button) 0;
    font-size: 15px;
}

.peBtn {
    width: 40px;
    height: 40px;
    display: none;
}

@media screen and (max-width:769px) {
    header {
        position: relative;
        z-index: 999;
    }

    .hear-center {
        justify-content: space-between;
        padding: 15px 0;
        align-items: center;
    }

    nav a {
        padding: 10px;
    }

    .searchBar,
    nav {
        position: absolute;
        width: 100%;
        height: 100vh;
        background-color: #242424;
        left: 0;
        top: 0;
        transform: translateY(-100%);
        transition: .3s;
        margin: 0;
        border-radius: 0;
        padding: 0 15px;
    }

    .searchBar #go,
    .searchBar #search {
        height: 40px;
    }



    nav ul {
        flex-direction: column;
    }

    .head-open {
        transform: translateY(0);
        top: 100%;
    }

    .peBtn {
        display: block;
    }
}