/* nav */
.mid-style-nav-wrp {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 1em;
    z-index: 99;
    /* border-bottom: 1px solid #222; */
    margin-bottom: 2em;
}

@media screen and (max-width:767px) {
    .mid-style-nav-wrp {
        z-index: 99;
        height: 3em;
    }
}

.mid-style-nav-wrp.active {
    border-bottom: 1px solid #ddd;
}

.mid-style-nav-wrp .mid-style-logo {
    position: absolute;
    top: 50%;
    left: 1em;
    width: 120px;
    z-index: 100;
    visibility: hidden;
    transform: translateY(-50%);
    opacity: 0;
    transition: all .3s;
}

.mid-style-nav-wrp.active .mid-style-logo {
    visibility: visible;
    opacity: 1;
}

.mid-style-nav {
    gap: .5em;
}

.mid-style-nav li {
    width: clamp(9em, 17vw, 250px);
    border-left: 1px solid;
    text-align: center;
}

.mid-style-nav li:last-child {
    border-right: 1px solid;
}

@media screen and (max-width:1200px) {
    .mid-style-nav {
        justify-content: end;
    }

    @media screen and (max-width:767px) {
        .mid-style-nav {
            justify-content: unset;
        }

        .mid-style-nav li,
        .mid-style-nav li:last-child {
            border: unset;
            border-bottom: 1px solid #ccc;
            padding: .5em;
        }
    }
}

.mid-style-nav li a {
    width: 100%;
    text-align: center;
    font-size: clamp(12px, 1.2vw, 16px);
    display: block;
    padding: .5em;
}

.mid-style-nav li a.active,
.mid-style-nav li a:hover {
    color: var(--blue);
}


/* humberger menu */
.menu-btn-wrp {
    position: absolute;
    top: 50%;
    right: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-50%);
}


@media screen and (min-width:768px) {
    .menu-btn-wrp {
        display: none;
    }
}


.menu-btn {
    display: block;
    position: relative;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: all .3s;
}

.cp_bar,
.cp_bar:before,
.cp_bar:after {
    display: block;
    width: 100%;
    height: 1px;
    content: '';
    transition: all 0.2s;
    background: var(--main_color);
}

.cp_bar {
    position: relative;
    margin: 9px 0 0;
}

.cp_bar:before,
.cp_bar:after {
    position: absolute;
}

.cp_bar:before {
    top: 7px;
}

.cp_bar:after {
    bottom: 7px;
}

@media (hover: hover) {

    .menu-btn:hover .cp_bar,
    .menu-btn:hover .cp_bar:before,
    .menu-btn:hover .cp_bar:after {
        /* background: var(--main_subcolor); */
    }
}

.menu-btn.on .cp_bar:after {
    transform: rotate(-45deg) translateX(-10px);
    transform-origin: center center;
}

.menu-btn.on .cp_bar {
    transform: translateX(5px);
    background: transparent;
}

.menu-btn.on .cp_bar:before {
    transform: rotate(45deg) translateX(-10px);
    transform-origin: center center;
}

/* toggle menu */

.toggle-menu {
    display: contents;
}

@media screen and (max-width:767px) {
    .toggle-menu {
        display: block;
        visibility: hidden;
        width: 100%;
        max-height: 100vh;
        padding: 2em 1em;
        overflow: auto;
        background-color: rgba(255, 255, 255, .98);
        position: fixed;
        top: 2.9em;
        left: 0;
        z-index: 89;
        border-bottom: 3px solid var(--main_color);
        opacity: 0;
        transform: translateY(-100%);
        transition: all .3s ease;
    }

    .toggle-menu.on {
        visibility: visible;
        transform: translateY(0);
        opacity: 1;
    }

    .toggle-menu li {
        width: 100%;
        position: relative;
    }
}