.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 20px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #393939;
    border-radius: 2px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        margin-top: 0;
        margin-bottom: 0;
        overflow-y: auto;
    }
    
    .header-nav.active {
        right: 0;
    }
    
    .header-nav > ul {
        flex-direction: column;
        align-items: stretch;
        padding-top: 60px;
    }
    
    .header-nav > ul > li {
        border-bottom: 1px solid #ededed;
    }
    
    .header-nav a {
        display: block;
        padding: 15px 20px;
        margin: 0;
    }
    
    .header-nav > ul > li:has(> ul) > a::after {
        float: right;
    }
    
    .header-nav li:hover > ul {
        display: none;
    }
    
    .header-nav li > ul {
        position: static;
        box-shadow: none;
        border: none;
        background: #f9f9f9;
        display: none;
    }
    
    .header-nav li.submenu-open > ul {
        display: flex;
    }
    
    .header-nav li > ul > li {
        padding: 0;
        border-top: 1px solid #ededed;
    }
    
    .header-nav li > ul > li a {
        padding-left: 35px;
    }
}
