.main-topbar {
    --bar-h: 64px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--bar-h);
    background: var(--neutral-292929);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.main-topbar__spacer {
    height: 64px;
    background: var(--neutral-1A1818);
}

.main-topbar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.main-topbar__back,
.main-topbar__sites a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 4px;
    background: rgb(255 255 255 / 6%);
    color: var(--neutral-E0E0E0);
    font-size: var(--df-text-fs-14);
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.main-topbar__back {
    padding-left: 12px;
}

    .main-topbar__back svg {
        width: 16px;
        height: 16px;
        transform: rotate(180deg);
        transition: transform .2s ease;
    }

    .main-topbar__back:hover {
        border-color: var(--red-D11019);
        background: var(--red-D11019);
        color: var(--neutral-FFFFFF);
    }

        .main-topbar__back:hover svg {
            transform: rotate(180deg) translateX(3px);
        }

.main-topbar__brand {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    place-items: center;
    width: clamp(132px, 11vw, 190px);
    height: calc(var(--bar-h) + 12px);
    transform: translateX(-50%);
    border-radius: 0 0 18px 18px;
    background: var(--neutral-FFFFFF);
    box-shadow: 0 10px 30px rgb(0 0 0 / 30%);
    transition: height .2s ease;
}

    .main-topbar__brand img {
        display: block;
        width: 72%;
        height: auto;
    }

    .main-topbar__brand:hover {
        height: calc(var(--bar-h) + 16px);
    }

.main-topbar__sites {
    display: flex;
    gap: 8px;
}

    .main-topbar__sites svg {
        width: 12px;
        height: 12px;
        opacity: .7;
    }

    .main-topbar__sites a:hover {
        border-color: rgb(255 255 255 / 25%);
        background: rgb(255 255 255 / 12%);
        color: var(--neutral-FFFFFF);
    }

.main-topbar a:focus-visible {
    outline: 2px solid var(--neutral-FFFFFF);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {

    .main-topbar {
        --bar-h: 56px;
    }

    .main-topbar__spacer {
        height: 56px;
    }

    .main-topbar__back,
    .main-topbar__sites {
        display: none;
    }

    .main-topbar__brand {
        width: 124px;
        border-radius: 0 0 14px 14px;
    }
}
