header {
    top: 36px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    backdrop-filter: none;
}

.nav {
    min-height: 52px;
    gap: 18px;
    padding: 10px 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 38px;
}

.brand-logo {
    display: block;
    width: 200px;
    height: 28px;
    object-fit: contain;
}

.menu {
    flex: 1;
    justify-content: flex-start;
    gap: 18px;
    min-width: 0;
}

.menu > a,
.menu-item > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: auto;
    padding: 10px 0;
    border-radius: 0;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease;
}

.menu > a:hover,
.menu-item:hover > span,
.menu-item:focus-within > span,
.menu-item.open > span {
    background: transparent;
    color: #0f3cc9;
    border-bottom: 0;
}

.menu-item > span i {
    color: #94a3b8;
    font-size: 11px;
    transition: transform .16s ease, color .16s ease;
}

.menu-item:hover > span i,
.menu-item:focus-within > span i,
.menu-item.open > span i {
    color: #0f3cc9;
    transform: rotate(180deg);
}

.dropdown {
    top: 100%;
    min-width: 240px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.dropdown::before {
    display: none;
}

.dropdown a {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    transition: background .15s ease, transform .15s ease;
}

.dropdown a:hover {
    background: #f8fafc;
    color: #0f3cc9;
    transform: none;
}

.dropdown strong {
    font-size: 14px;
    font-weight: 800;
}

.dropdown small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.cart-link,
.hamb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    transition: border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.cart-link {
    position: relative;
}

.cart-link span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #0f3cc9;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.cart-link:hover,
.hamb:hover {
    border-color: #bfdbfe;
    color: #0f3cc9;
    box-shadow: 0 8px 20px rgba(15, 60, 201, .1);
}

.nav-actions .nav-btn-live,
.nav-actions .nav-btn-client {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.nav-actions .nav-btn-live {
    border: 1px solid #111111;
    background: #111111;
    box-shadow: none;
}

.nav-actions .nav-btn-client {
    border: 1px solid #0f3cc9;
    background: #0f3cc9;
    box-shadow: 0 10px 22px rgba(15, 60, 201, .16);
}

.hamb {
    display: none;
    cursor: pointer;
}

@media (max-width: 1180px) {
    .nav {
        gap: 14px;
    }

    .brand-logo {
        width: 170px;
        height: 26px;
    }

    .menu > a,
    .menu-item > span {
        font-size: 14px;
    }
}

@media (max-width: 960px) {
    .topbar {
        display: none;
    }

    header {
        top: 0;
    }

    .nav {
        min-height: 58px;
    }

    .brand-logo {
        width: 178px;
        height: 28px;
    }

    .hamb {
        display: inline-flex;
    }

    .nav-actions .nav-btn-live,
    .nav-actions .nav-btn-client,
    .nav-actions .cart-link {
        display: none;
    }

    .menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        max-height: calc(100vh - 92px);
        overflow: auto;
        padding: 12px;
        border: 1px solid #dbeafe;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 24px 54px rgba(15, 23, 42, .18);
    }

    .menu.show {
        display: grid;
        gap: 6px;
    }

    .menu > a,
    .menu-item > span {
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 15px;
        line-height: 1.2;
    }

    .menu-item {
        padding: 0;
    }

    .menu-item > span i {
        margin-left: auto;
    }

    .menu-item.open > span i {
        transform: rotate(180deg);
    }

    .dropdown {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin: 4px 0 8px;
        padding: 6px;
        border: 1px solid #e2e8f0;
        box-shadow: none;
        background: #f8fafc;
    }

    .dropdown::before {
        display: none;
    }

    .menu-item.open .dropdown {
        display: grid;
        gap: 2px;
    }

    .menu-item:hover .dropdown,
    .menu-item:focus-within .dropdown {
        display: none;
    }

    .menu-item.open:hover .dropdown,
    .menu-item.open:focus-within .dropdown {
        display: grid;
    }

    .dropdown a {
        padding: 11px 12px;
        background: #fff;
    }
}

@media (max-width: 480px) {
    .container,
    .topbar .container {
        padding: 0 14px;
    }

    .brand-logo {
        width: 148px;
        height: 24px;
    }

    .cart-link,
    .hamb {
        width: 38px;
        height: 38px;
    }

    .menu {
        left: 10px;
        right: 10px;
    }
}
