.custom-menu {
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #fff;
    position: relative;
    z-index: 1000;
}
.menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1440px;
    padding: 18px 18px 0 18px;
    box-sizing: border-box;
    margin: 0 auto;
}
.custom-menu .logo {
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.1;
}
.menu-lang-text {
    font-size: 1rem;
    font-weight: 500;
    color: #222;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.01em;
}
.menu-lang-text a {
    color: #222;
    text-decoration: none;
    padding: 3px 7px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    font-weight: 500;
    display: inline-block;
    line-height: 1.3;
}
.menu-lang-text a.active {
    background: #eee;
}
.menu-lang-text a:hover {
    background: #eee;
}
.menu-lang-divider {
    color: #bbb;
    font-size: 1em;
    padding: 0 2px;
    user-select: none;
}
.burger {
-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 30px;
    margin-right: -3px;
    padding: 0;
    position: relative;
    width: 30px;
}
.burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: #000;
    transition: 0.3s;
}
.burger.open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}
.burger.open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}
.custom-menu ul {
    display: flex;
    flex-direction: row;
    gap: 24px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: none;
    box-shadow: none;
    border-radius: 0;
}
.custom-menu li a {
    text-decoration: none;
    color: #191919;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    display: inline-block;
    line-height: 1.4;
}
.custom-menu li a:hover {
    background: #eee;
}
.menu-lang-desktop { display: flex; }
.menu-lang-mobile { display: none; }
@media (max-width: 900px) {
    .burger {
        display: flex;
    }
    .menu-top {
        padding: 14px 10px 0 10px;
    }
    .custom-menu .logo {
        font-size: 1.5rem;
    }
    .custom-menu ul {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        margin: 0;
        border-radius: 0 0 18px 18px;
        z-index: 1000;
        display: none;
    }
    .custom-menu ul.open {
        display: flex;
    }
    .custom-menu li a {
        width: 100vw;
        max-width: 100vw;
        padding: 12px 0;
        font-size: 1.1rem;
        border-radius: 0;
        border-bottom: 1px solid #f3f3f3;
        text-align: center;
        font-weight: 500;
        line-height: 1.2;
    }
    .custom-menu li:last-child a {
        border-bottom: none;
    }
    .menu-lang-divider {
        display: none;
    }
    .menu-lang-desktop {
        flex-direction: column;
    }
}