:root {
    --clubus-frame-h: 64px;
}

body:has(.clubus-frame) .site-header {
    top: var(--clubus-frame-h);
}

body:has(.scroll-top) .clubus-top {
    display: none !important;
}

.clubus-frame {
    position: sticky;
    top: 0;
    z-index: 80;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    min-height: var(--clubus-frame-h);
    padding: 8px 16px;
    background: #762123;
    color: #fff;
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.clubus-frame a {
    color: inherit;
    text-decoration: none;
}

.clubus-frame__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #4b7c17;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.clubus-frame__back:hover,
.clubus-frame__back:focus-visible {
    background: #3d6612;
}

.clubus-frame__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    line-height: 0;
}

.clubus-frame__arrow svg {
    display: block;
}

.clubus-frame__title {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.clubus-frame__title:hover,
.clubus-frame__title:focus-visible {
    color: #f3e3c4;
}

.clubus-frame__brand {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.clubus-frame__brand:hover,
.clubus-frame__brand:focus-visible {
    color: #f3e3c4;
}

.clubus-frame__mark {
    display: flex;
    align-items: center;
    min-width: 0;
}

.clubus-frame__role {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.clubus-frame__slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 1 auto;
    margin-left: auto;
    min-width: 0;
}

.clubus-frame__panel {
    flex: 1 0 100%;
    min-width: 0;
    margin: 0 -16px -8px;
}

.clubus-frame__panel:has(> [hidden]) {
    display: none;
}

.clubus-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #03141c;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 10px 30px rgba(3, 20, 28, 0.25);
    cursor: pointer;
}

.clubus-top:hover,
.clubus-top:focus-visible {
    background: #1e6ec4;
}

.clubus-top[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    :root {
        --clubus-frame-h: 72px;
    }

    .clubus-frame {
        align-items: center;
        gap: 10px;
        min-height: 72px;
        padding: 12px;
    }

    .clubus-frame__back {
        justify-content: center;
        width: 40px;
        height: 40px;
        min-height: 40px;
        flex: 0 0 40px;
        padding: 0;
    }

    .clubus-frame__mark {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .clubus-frame__slot {
        flex: 0 0 auto;
    }

    .clubus-frame .nav-burger,
    .clubus-frame .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        width: 40px;
        height: 40px;
        min-height: 40px;
        flex: 0 0 40px;
        margin: 0;
        padding: 0;
        line-height: 1;
        overflow: hidden;
    }

    .clubus-frame__panel {
        margin: 0 -12px -12px;
    }

    .clubus-frame__role,
    .clubus-frame__brand,
    .clubus-frame__back-label {
        display: none;
    }
}
