header {
    background-color: rgba(245, 245, 247, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 24px 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    align-items: center;
}

.navbar-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0;
}

.navbar-item {
    display: flex;
    align-items: center;
    margin: 0 15px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-item a {
    text-decoration: none;
    color: #333;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-item a:hover {
    color: #007AFF;
}

.navbar-item span {
    text-decoration: none;
    color: #1D1D1F;
    font-size: 17px;
    font-weight: 500;
}

.navbar-title span {
    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-icon {
    width: 22px;
    height: 22px;
    margin-inline-end: 10px;
}

[dir="rtl"] nav ul {
    flex-direction: row-reverse;
}

.spacer {
    flex-grow: 1;
}

/* ===== дропдаун «другие приложения» в шапке ===== */

.navbar-apps {
    position: relative;
    overflow: visible;
}

.navbar-apps-toggle {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-chevron {
    flex: none;
    margin-inline-start: 7px;
    color: #86868B;
    transition: transform 0.2s ease;
}

.navbar-apps-toggle[aria-expanded="true"] .navbar-chevron {
    transform: rotate(180deg);
}

.navbar-apps-menu {
    position: absolute;
    top: calc(100% + 12px);
    inset-inline-start: 0;
    min-width: 290px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    border-radius: 18px;
    background-color: #FFF;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
    z-index: 1200;
}

.navbar-apps-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 12px;
    text-decoration: none;
}

.navbar-apps-item:hover {
    background-color: #F5F5F7;
}

.navbar-apps-item img {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.navbar-apps-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.navbar-item .navbar-apps-name {
    font-size: 15px;
    font-weight: 600;
    color: #1D1D1F;
}

.navbar-apps-name small {
    font-size: 12px;
    font-weight: 400;
    color: #86868B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
