.nav.navbar-nav {
    list-style: none;
    display: flex;
    align-items: stretch;
    height: 45px;
    margin: 0;
    padding: 0;
    gap: 0;
	justify-content: space-between;
}

.nav.navbar-nav > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav.navbar-nav > li > a {
    display: flex;
    align-items: center;
    padding: 0 !important;
    font-size: 16px;
    color: #000;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav.navbar-nav > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #C42362;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.navbar-nav > li > a:hover::before,
.nav.navbar-nav > li > a.root-item-selected::before {
    width: 100%;
}

.nav.navbar-nav > li > a.root-item-selected {
    font-weight: 500;
}

.nav.navbar-nav > li > a.denied {
    color: #999;
    cursor: default;
}

.nav.navbar-nav > li > a.denied::before {
    display: none;
}

.nav.navbar-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    min-width: 200px;
    padding: 6px 0;
    list-style: none;
    z-index: 1000;
    margin-top: 1px;
}

.nav.navbar-nav > li:hover > ul {
    display: block;
}

.nav.navbar-nav ul li a {
    display: block;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav.navbar-nav ul li a:hover {
    background: #fdf4f7;
    color: #C42362;
}

.nav.navbar-nav ul li.item-selected > a {
    color: #C42362;
    font-weight: 500;
}

.nav.navbar-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 6px 0;
    z-index: 1000;
    min-width: 190px;
    margin-top: 1px;
}

.nav.navbar-nav li.nav-item:hover .dropdown-menu {
    display: block;
}

.marketplaces-item {
    display: flex !important;
	flex-direction: column;
    align-items: center;
    padding: 9px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    gap: 10px;
}

.marketplaces-item:hover {
    background: #fdf4f7;
    color: #C42362;
}

.marketplaces-item img {
    height: 40px;
    width: auto;
    opacity: 0.8;
}


@media (max-width: 991px) {

    .nav.navbar-nav {
        flex-direction: column;
        height: auto;
        justify-content: flex-start;
    }

    .nav.navbar-nav > li {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav.navbar-nav > li > a {
        padding: 12px 16px !important;
        width: 100%;
        font-size: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    /* Убираем полоску сверху на мобильных */
    .nav.navbar-nav > li > a::before {
        display: none;
    }

    /* Вложенные ul — статичные, не по hover */
    .nav.navbar-nav ul {
        display: block;
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: #fafafa;
        min-width: 0;
        width: 100%;
    }

    .nav.navbar-nav ul li a {
        padding: 10px 28px;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        font-size: 14px;
    }

    /* Dropdown маркетплейсов */
    .nav.navbar-nav .dropdown-menu {
        display: block;
        position: static;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: #fafafa;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .marketplaces-item {
        flex-direction: row !important;
        padding: 10px 28px;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }

    .marketplaces-item img {
        height: 22px;
    }
}