:root {
    --mbs-primary: #2B6CB8;
    --mbs-secondary: #CC1F1F;
    --mbs-accent: #1B2F72;
    --mbs-neutral: #808B96;
}

.mbs-topbar {
    position: relative;
    z-index: 2101;
    background: linear-gradient(90deg, var(--mbs-accent) 0%, #11285d 55%, var(--mbs-primary) 100%);
    color: #fff;
    padding: 12px 0;
}

.mbs-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.mbs-topbar .mbs-topbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.mbs-topbar .mbs-topbar-intro {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.mbs-topbar .mbs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mbs-secondary);
    box-shadow: 0 0 0 4px rgba(204, 31, 31, 0.15);
}

.mbs-topbar .mbs-topbar-info,
.mbs-topbar .mbs-topbar-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mbs-topbar .mbs-topbar-info {
    flex-wrap: wrap;
    justify-content: center;
}

.mbs-topbar .mbs-topbar-item,
.mbs-topbar .mbs-topbar-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.mbs-topbar .mbs-topbar-item {
    min-width: 0;
}

.mbs-topbar .mbs-topbar-item span,
.mbs-topbar .mbs-topbar-mobile-item span {
    overflow-wrap: anywhere;
}

.mbs-topbar .mbs-topbar-item i,
.mbs-topbar .mbs-topbar-social a i {
    color: #d7e4ff;
}

.mbs-topbar .mbs-topbar-social a {
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
}

.mbs-topbar .mbs-topbar-social a:hover {
    background: var(--mbs-secondary);
    transform: translateY(-2px);
}

.mbs-topbar-mobile-widget {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2200;
    display: none;
}

.mbs-topbar-mobile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    height: 56px;
    background: linear-gradient(135deg, var(--mbs-primary) 0%, var(--mbs-accent) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 16px 34px rgba(17, 40, 93, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mbs-topbar-mobile-trigger i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 15px;
}

.mbs-topbar-mobile-trigger:hover,
.mbs-topbar-mobile-trigger:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(17, 40, 93, 0.34);
}

.mbs-topbar-mobile-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(320px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, #eef4fb 100%);
    border: 1px solid rgba(27, 47, 114, 0.1);
    box-shadow: 0 20px 44px rgba(18, 34, 69, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
}

.mbs-topbar-mobile-widget.is-open .mbs-topbar-mobile-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.mbs-topbar-mobile-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mbs-topbar-mobile-panel-head strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--mbs-accent);
}

.mbs-topbar-mobile-panel-head span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mbs-neutral);
}

.mbs-topbar-mobile-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(27, 47, 114, 0.08);
    color: var(--mbs-accent);
    flex-shrink: 0;
}

.mbs-topbar-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mbs-topbar-mobile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    color: #243246;
    box-shadow: 0 10px 20px rgba(18, 34, 69, 0.06);
}

.mbs-topbar-mobile-item span {
    font-size: 13px;
    line-height: 1.35;
}

.mbs-topbar-mobile-item-mail span {
    font-size: 11.5px;
    line-height: 1.3;
}

.mbs-topbar-mobile-item i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(43, 108, 184, 0.12);
    color: var(--mbs-primary);
    flex-shrink: 0;
}

.mbs-topbar-mobile-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.mbs-topbar-mobile-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(43, 108, 184, 0.1);
    color: var(--mbs-primary);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mbs-topbar-mobile-social a:hover,
.mbs-topbar-mobile-social a:focus {
    background: var(--mbs-secondary);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 1199px) {
    .mbs-topbar .mbs-topbar-wrap {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 991px) {
    .mbs-topbar {
        padding: 6px 0;
    }

    .mbs-topbar .mbs-topbar-intro {
        width: 100%;
        justify-content: center;
    }

    .mbs-topbar .mbs-topbar-info {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .mbs-topbar {
        display: none;
    }

    .mbs-topbar-mobile-widget {
        display: block;
    }

    .mbs-topbar .mbs-topbar-social {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .mbs-topbar-mobile-widget {
        right: 12px;
        bottom: 12px;
    }

    .mbs-topbar-mobile-trigger {
        height: 52px;
        padding: 0 16px;
    }

    .mbs-topbar-mobile-panel {
        width: min(300px, calc(100vw - 24px));
        padding: 16px;
        border-radius: 22px;
    }
}
