.header {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    border-bottom: 1px solid #d3d3d3;
    z-index: 10;
    background: var(--white);
}

.header.fixed {
    position: fixed;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
    z-index: 1000;
}

.header .header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo img {
    height: 100px;
    vertical-align: middle;
    display: inline-block;
}

.header .menu .head {
    display: none;
}

.header .menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.header .menu>ul>li {
    display: inline-block;
}

.header .menu>ul>li:not(:last-child) {
    margin-right: 40px;
}

.header .menu a {
    text-decoration: none;
    font-size: 16px;
    line-height: 20px;
    color: var(--primary-color);
    display: block;
}

.header .menu a:hover {
    color: var(--secondary-color);
}

.header .menu>ul>li>a {
    padding: 40px 0;
}

.header .menu ul li a .submenu-arrow {
    content: '';
    background: url(../images/dropdown-arrow.svg);
    width: 16px;
    height: 16px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-180deg);
}

.header .menu ul li a:hover .submenu-arrow {
    background: url(../images/dropdown-arrow-green.svg);
}

.header .menu>ul>.dropdown>a {
    padding-right: 25px;
}

.header .menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    min-width: 250px;
    z-index: 11;
    border: 1px solid #f2f2f2;
    transform-origin: top;
    transform: scaleY(0);
    visibility: hidden;
    opacity: 0;
}

.header .menu .sub-menu-right {
    left: 100%;
    top: 0;
}

.header .menu li:hover>.sub-menu {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: all 0.5s ease;
}

.header .menu .sub-menu a {
    background: var(--white);
    width: 100%;
    font-size: 16px;
    line-height: 20px;
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-block;
    padding: 10px 25px 10px 10px;
    border-bottom: 1px solid #f2f2f2;
    transition: all 0.3s;
    position: relative;
}

.header .menu .sub-menu .sub-hover {
    background-image: linear-gradient(hsl(0, 0%, 0%), hsl(0, 0%, 0%));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.5s ease;
}

.header .menu .sub-menu li:hover>a>.sub-hover {
    background-size: 100% 2px;
}

.header .menu .sub-menu .submenu-arrow {
    content: '';
    background: url(../images/dropdown-arrow-green.svg);
    right: 5px;
    transform: translateY(-50%) rotate(90deg);
}

.header .header-right {
    display: flex;
}

.header .header-right>* {
    margin-left: 25px;
}

.header .header-right .icon-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 20px;
    padding: 0;
    transition: all 0.3s;
}

.header .header-right .icon-btn:hover {
    color: var(--secondary-color);
}

.header .header-right .open-menu-btn {
    display: none;
}

@media(max-width:1199px) {
    .header .menu>ul>li:not(:last-child) {
        margin-right: 25px;
    }
}

@media(max-width:991px) {
    .header {
        padding: 12px 0;
    }

    .header .menu {
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        width: 100%;
        max-width: 320px;
        background-color: var(--white);
        padding: 15px;
        overflow-x: hidden;
        z-index: 10;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto !important;
        height: 100%;
        max-height: none;
        -webkit-overflow-scrolling: touch;
    }

    .header .menu.open {
        transform: translateX(0%);
    }

    .header .menu .head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .header .menu .close-menu-btn {
        height: 35px;
        width: 35px;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        cursor: pointer;
        padding: 0;
        border: 0;
    }

    .header .menu .close-menu-btn::before,
    .header .menu .close-menu-btn::after {
        content: '';
        position: absolute;
        width: 80%;
        height: 2px;
        background-color: var(--primary-color);
    }

    .header .menu .close-menu-btn::before {
        transform: rotate(45deg);
    }

    .header .menu .close-menu-btn::after {
        transform: rotate(-45deg);
    }

    .header .menu>ul>li {
        display: block;
    }

    .header .menu>ul>li:not(:last-child) {
        margin-right: 0;
    }

    .header .menu li {
        border-bottom: 1px solid #d3d3d3;
    }

    .header .menu li:first-child {
        border-top: 1px solid #d3d3d3;
    }

    .header .menu>ul>li>a {
        padding: 12px;
    }

    .header .menu>ul>.dropdown>a {
        padding-right: 35px;
        position: relative;
    }

    .header .menu .dropdown.active>.submenu-arrow {
        background-color: hsla(0, 0%, 100%, 0.25);
        transform: rotate(180deg);
    }

    .header .menu .sub-menu {
        position: static;
        opacity: 1;
        transform: none;
        visibility: visible;
        padding: 0;
        transition: none;
        width: 100%;
        display: none;
    }

    .header .menu .dropdown.active>.sub-menu {
        display: block;
        border: 0px;
    }

    .header .menu .sub-menu li:last-child {
        border: none;
    }

    .header .menu .sub-menu a {
        padding: 12px 20px 12px 15px;
    }

    .header .menu .sub-menu .sub-menu a {
        padding-left: 30px;
    }

    .header .menu .sub-menu .sub-hover {
        background-image: none;
    }

    .header .menu .sub-menu .submenu-arrow {
        right: 0;
    }

    .header .header-right .open-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        width: 44px;
        cursor: pointer;
        position: relative;
        background-color: transparent;
        padding: 0;
        border: 0;
    }

    .header .header-right .open-menu-btn .line {
        height: 2px;
        width: 30px;
        background-color: var(--primary-color);
        position: absolute;
    }

    .header .header-right .open-menu-btn .line-1 {
        transform: translateY(-8px);
    }

    .header .header-right .open-menu-btn .line-2 {
        transform: translateY(8px);
    }

    body.menu-open {
        overflow: hidden;
        height: 100vh;
        width: 100%;
    }
}

@media(max-width:576px) {
    .header .menu {
        max-width: 100%;
    }
}