body>header {
    width: 100%;
    padding-top: 5px;
    background-color: #f8f9fc;
}

body.index-page>header,
body>header.sticky-header {
    background-color: #fff;
}

body>header a.logo {
    display: block;
    width: 100px;
}

body>header a.logo img {
    width: 100%;
    transition: all 0.2s;
}

body>header nav {
    flex-grow: 1;
}

body>header nav ul {
    display: flex;
    justify-content: space-evenly;
}

body>header nav ul li {
    padding: 15px 15px;
}

body>header nav ul a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--black);
    letter-spacing: 1px;
    line-height: 1.5rem;
}

body>header .menu-extend {
    display: flex;
    padding-left: 15px;
}

body>header .menu-extend li {
    padding: 9px 3px;
}

body>header.sticky-header {
    position: fixed;
    background: #fff;
    left: 0;
    top: 0;
    z-index: 1030;
    transition: all .5s ease;
    box-shadow: var(--shadow);
    padding-top: 5px;
}

body>header.sticky-header a.logo img {
    width: 60%;
}

body>header .has-submenu {
    position: relative;
}

body>header .has-submenu .menu-arrow {
    content: '';
    width: 7px;
    height: 7px;
    border: solid var(--black);
    border-radius: 0.5px;
    border-width: 0 2px 2px 0;
    display: block;
    transform: rotate( 45deg);
    transition: all 0.5s;
    position: absolute;
    right: 0;
    top: 24px;
}

body>header a:hover {
    color: var(--blue) !important;
}

body>header .has-submenu:hover .menu-arrow,
body>header .menu-arrow:hover {
    transform: rotate( 225deg) translateY(-3px);
    border-color: var(--blue);
    top: 24px;
}

body>header .has-submenu .submenu {
    position: absolute;
    flex-direction: column;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    min-width: 220px;
    visibility: hidden;
    display: none;
    opacity: 0;
    margin-top: 10px;
    transition: all .2s ease;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: var(--shadow);
    height: auto;
}

body>header .has-submenu .submenu:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 45px;
    border: 7px solid #495057;
    border-color: transparent transparent #fff #fff;
    transform-origin: 0 0;
    transform: rotate(135deg);
    box-shadow: -2px 2px 2px -1px rgba(60, 72, 88, 0.15);
}

body>header .has-submenu li {
    position: relative;
    padding: 0;
}

body>header .has-submenu li a {
    display: block;
    padding: 10px 20px;
    clear: both;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--black);
    transition: all 0.3s;
}

body>header .has-submenu:hover>.submenu {
    visibility: visible;
    display: block;
    opacity: 1;
    height: fit-content;
    margin-top: 0;
}

.top-menu-toggle {
    display: none;
    position: relative;
    top: 18px;
    height: 18px;
    width: 25px;
    border-top: solid 2px var(--black);
    border-bottom: solid 2px var(--black);
    align-items: center;
    cursor: pointer;
    transition: all .5s;
}

.top-menu-toggle:before,
.top-menu-toggle:after {
    content: '';
    position: relative;
    top: 6px;
    height: 2px;
    background: var(--black);
    width: 100%;
    display: block;
    transition: all 0.2s ease-in;
}

.top-menu-toggle:after {
    display: none;
}

@media screen and (max-width: 992px) {
    .top-menu-toggle {
        display: block;
    }
    body>header {
        position: fixed;
        background: #fff;
        left: 0;
        top: 0;
        z-index: 1030;
        transition: all .5s ease;
        box-shadow: var(--shadow);
        padding-top: 5px;
    }
    body>header a.logo img {
        width: 60%;
    }
    body>header .top-menu>nav {
        position: absolute;
        width: 100%;
        top: -1172px;
        background: rgba(255, 255, 255, 0.95);
        z-index: 9999;
        opacity: 0;
        transition: all .2s ease-in;
        max-height: 600px;
        overflow: auto;
    }
    body>header .top-menu>nav.top-menu-opened {
        opacity: 1;
        top: 72px;
    }
    body>header .top-menu>nav ul {
        flex-direction: column;
    }
    body>header .top-menu-wider {
        flex-grow: 1;
    }
    .top-menu-toggle.top-menu-toggle-cross {
        border: none;
        height: 25px;
    }
    .top-menu-toggle.top-menu-toggle-cross:before {
        transform: rotate(135deg) translateX(2px);
    }
    .top-menu-toggle.top-menu-toggle-cross:after {
        display: block;
        transform: rotate(45deg) translateX(-1px);
    }
    body>header .has-submenu {
        width: fit-content;
    }
    body>header .has-submenu .submenu {
        min-width: 320px;
        position: relative;
        visibility: visible;
        margin-top: 0;
        border: none;
        box-shadow: none;
        background-color: unset;
    }
    body>header .has-submenu .submenu:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        border: none;
        transform-origin: 0 0;
        transform: rotate(135deg);
        box-shadow: none;
        background: none;
        background-color: unset;
    }
    body>header .has-submenu .menu-arrow {
        display: inline-block;
        bottom: unset;
    }
}

.active a {
    color: var(--blue) !important;
}