.header-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.header-menu-toggle:hover {
    border-color: #667eea;
}

.header-menu-toggle:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.header-menu-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #334155;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

header.mobile-menu-open .header-menu-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

header.mobile-menu-open .header-menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

header.mobile-menu-open .header-menu-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-menu-shell {
    display: contents;
}

@media (max-width: 768px) {
    .header-menu-toggle {
        display: inline-flex;
    }

    .header-menu-shell {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 10px);
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
        padding: 14px;
        z-index: 1003;
        flex-direction: column;
        gap: 14px;
    }

    header.mobile-menu-open .header-menu-shell {
        display: flex;
    }

    .header-nav {
        position: static !important;
        left: auto !important;
        transform: none !important;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .header-nav-link {
        font-size: 0.95em !important;
    }

    .header-nav-link.active::after {
        bottom: -4px;
    }

    .header-buttons {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px !important;
    }

    .header-button {
        width: 100%;
        text-align: center;
        display: block;
    }

    .lang-selector-wrapper {
        width: 100%;
        margin-right: 0 !important;
    }

    .lang-selector-btn {
        width: 100%;
    }

    .lang-selector-dropdown {
        left: 0;
        right: auto;
        width: 100%;
    }

    #auth-user-info {
        width: 100%;
        display: flex !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px !important;
    }
}
