.navbar {
    display: flex;
    flex-direction: column;
    background: #1C2331;
    border-radius: 16px;
    padding: 12px 16px;
    margin: 0;
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 1000;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.12);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    min-height: 60px;
    max-height: none;
    transition: all 0.3s ease;
}

.navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
}

.navbar-logo {
    height: 35px;
    width: 60px;
    flex-shrink: 0;
    object-fit: contain;
}

.navbar-logo-link {
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 24px !important;
    height: 24px !important;
    background: #FFBB33 !important;
    border: none !important;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: background-color 0.2s;
    margin-left: auto;
    z-index: 9999 !important;
    position: relative;
}

.hamburger-lines, .cross-lines {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #ffcc66 !important;
}

.hamburger-lines span {
    width: 16px !important;
    height: 1.5px !important;
    background-color: #1C2331 !important;
    margin: 0.5px 0;
    border-radius: 1px;
    display: block !important;
}

.cross-lines span {
    width: 16px !important;
    height: 1.5px !important;
    background-color: #1C2331 !important;
    border-radius: 1px;
    display: block !important;
    position: absolute;
}

.cross-lines span:nth-child(1) {
    transform: rotate(-45deg);
}

.cross-lines span:nth-child(2) {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-lines {
    opacity: 0;
}

.mobile-menu-toggle.active .cross-lines {
    opacity: 1;
}

.hamburger-lines {
    opacity: 1;
}

.cross-lines {
    opacity: 0;
}

.navbar-lang {
    margin-left: 8px;
    flex-shrink: 0;
}

.mobile-lang-selector {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 187, 51, 0.3);
    padding-top: 20px;
}

.mobile-lang-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mobile-lang-label {
    color: #FFBB33;
    font-size: 16px;
    font-weight: 500;
}

.mobile-lang-select {
    background: #FFBB33;
    color: #1C2331;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.lang-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: none;
    background: #FFBB33;
    color: #1C2331;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-select:focus {
    outline: none;
    background: #ffcc66;
}

.mobile-menu {
    display: block;
    width: 100%;
    background-color: #1C2331;
    padding: 0;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.3s ease;
    opacity: 0;
}

.mobile-menu.active {
    padding: 20px 16px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    margin-top: 12px;
    opacity: 1;
}

.navbar.menu-open {
    border-radius: 16px 16px 16px 16px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.2);
}

.mobile-menu-item {
    margin: 8px 16px;
}

.mobile-dropbtn {
    width: 100%;
    background-color: #FFBB33;
    color: #1C2331;
    padding: 16px 20px;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    margin-bottom: 4px;
    font-weight: 500;
}

.mobile-dropbtn:hover {
    background-color: #ffcc66;
}

.mobile-dropbtn.active {
    background-color: #ffcc66;
}

.mobile-dropdown-content {
    display: none;
    background-color: #ffe3a3;
    border-radius: 8px;
    margin-top: 4px;
    overflow: hidden;
}

.mobile-dropdown-content.active {
    display: block;
}

.mobile-menu .mobile-dropdown-content a {
    color: #1C2331;
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #ffd98a;
    font-size: 16px;
    transition: background 0.2s;
}

.mobile-menu .mobile-dropdown-content a:last-child {
    border-bottom: none;
}

.mobile-menu .mobile-dropdown-content a:hover {
    background-color: #ffd98a;
}

.desktop-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .navbar {
        padding: 15px 20px;
        top: 10px;
        left: 10px;
        right: 10px;
        border-radius: 20px;
    }
    
    .navbar.menu-open {
        border-radius: 20px;
    }

    .navbar-logo {
        height: 40px;
        width: 70px;
    }

    .mobile-menu-toggle {
        width: 52px !important;
        height: 52px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    .hamburger-lines span {
        width: 30px !important;
        height: 3px !important;
        margin: 2px 0 !important;
    }
    
    .cross-lines span {
        width: 30px !important;
        height: 3px !important;
    }

    .navbar-lang {
        display: none !important;
    }

    .lang-select {
        padding: 8px 12px;
        font-size: 15px;
        border-radius: 10px;
    }

    .mobile-dropbtn {
        font-size: 19px;
        padding: 18px 22px;
    }

    .mobile-dropdown-content a {
        font-size: 17px;
        padding: 16px 22px;
    }
}

@media (max-width: 767px) {
    
    .navbar.menu-open {
        border-radius: 16px;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        width: 48px !important;
        height: 48px !important;
        padding: 8px !important;
        border-radius: 8px !important;
    }
    
    .hamburger-lines span {
        width: 32px !important;
        height: 3.5px !important;
        margin: 2.5px 0 !important;
    }
    
    .cross-lines span {
        width: 32px !important;
        height: 3.5px !important;
    }
    
    .desktop-menu {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .navbar-lang {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .navbar {
        padding: 20px 40px;
        top: 15px;
        left: 15px;
        right: 15px;
        border-radius: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    .navbar-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: auto;
    }

    .navbar-logo {
        height: 51px;
        width: 85px;
        flex-shrink: 0;
    }

    .navbar-logo-link {
        order: unset;
    }

    .mobile-menu-toggle {
        display: none !important;
        background-color: transparent !important;
        border: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

    .desktop-menu {
        display: flex !important;
        gap: 10px;
        flex: 1;
        justify-content: center;
        margin-left: 0;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    .navbar-lang {
        margin-left: 32px;
        margin-right: 0;
        flex-shrink: 0;
    }

    .lang-select {
        padding: 8px 16px;
        font-size: 16px;
        border-radius: 12px;
    }

    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropbtn {
        background-color: #FFBB33;
        color: #1C2331;
        padding: 10px 20px;
        font-size: 16px;
        border: none;
        border-radius: 16px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .dropbtn:hover {
        background-color: #ffcc66;
    }

    .dropdown-content {
        display: block;
        position: absolute;
        background-color: #ffe3a3;
        min-width: 120px;
        max-width: 180px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
        border-radius: 12px;
        overflow: hidden;
        text-align: center;
        left: 50%;
        top: calc(100% + 10px);
        transform: translateX(-50%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s cubic-bezier(.4,0,.2,1), transform 0.22s cubic-bezier(.4,0,.2,1);
    }

    .dropdown-content a {
        color: #1C2331 !important;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        transition: background 0.2s;
    }

    .dropdown-content a:hover {
        background-color: #ffd98a;
        color: #1C2331 !important;
    }

    .dropdown-hover-bridge {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 18px;
        z-index: 2;
        content: '';
        background: transparent;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 14px;
        min-height: 51px;
        border-radius: 14px;
        top: 7px;
        left: 7px;
        right: 7px;
    }
    
    .navbar-top {
        min-height: 51px;
    }
    
    .navbar-logo {
        height: 30px;
        width: 51px;
    }
    
    .mobile-menu-toggle {
        width: 40px !important;
        height: 40px !important;
        padding: 4px;
        border-radius: 6px;
    }
    
    .hamburger-lines span {
        width: 28px !important;
        height: 2.6px !important;
        margin: 0.8px 0 !important;
    }
    
    .cross-lines span {
        width: 28px !important;
        height: 2.6px !important;
    }
    
    .mobile-menu.active {
        padding: 17px 14px;
        margin-top: 10px;
    }
    
    .mobile-dropbtn {
        padding: 14px 17px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .mobile-dropdown-content a {
        padding: 12px 17px;
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .navbar {
        padding: 20px 50px;
    }

    .desktop-menu {
        gap: 15px;
    }

    .dropbtn {
        padding: 12px 24px;
        font-size: 17px;
    }
}

