.site-header {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    min-height: 58px;
    padding: 4px 10px !important;
    z-index: 2050;
}

.site-content-wrapper {
    margin-bottom: 0;
    margin-top: 60px;
}

.header-leading,
.header-actions {
    align-items: center;
    display: flex;
}

.header-leading {
    flex: 0 1 auto;
    min-width: 0;
}

.header-menu-button {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 12px;
    color: #fff !important;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    margin: 0 9px 0 0 !important;
    padding: 0;
    transition: background-color .2s ease, transform .2s ease;
    width: 38px;
}

.header-menu-button:hover,
.header-menu-button:focus {
    background: rgba(255, 255, 255, .26);
    color: #fff;
    outline: 2px solid rgba(255, 255, 255, .45);
    outline-offset: 2px;
}

.header-site-brand {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.header-site-brand strong {
    color: #ffd36a;
    font-weight: 900;
}

.header-site-brand:hover,
.header-site-brand:focus {
    color: #fff;
    text-decoration: none;
}

.header-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin: 0 0 0 auto;
    min-width: 0;
}

.header-actions > li {
    flex: 0 0 auto;
}

.header-actions > li > a:not(.header-rating-link) {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    justify-content: center;
    min-height: 44px;
    padding: 8px 7px;
}

.header-rating-link {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    color: #fff !important;
    display: inline-flex !important;
    gap: 5px;
    margin: 4px 3px;
    min-height: 40px !important;
    padding: 7px 10px !important;
    text-decoration: none;
    white-space: nowrap;
}

.header-rating-link:hover,
.header-rating-link:focus {
    background: rgba(255, 255, 255, .24) !important;
    color: #fff;
    text-decoration: none;
}

.header-rating-points {
    font-weight: 800;
}

.header-rating-status {
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .75);
    text-decoration-thickness: 1px;
    text-transform: uppercase;
    text-underline-offset: 3px;
}

.header-rating-link:hover .header-rating-status,
.header-rating-link:focus .header-rating-status {
    text-decoration-color: #fff;
    text-decoration-thickness: 2px;
}

.header-rating-demo {
    cursor: pointer;
}

.header-rating-demo-hint,
.header-rating-unit {
    font-size: 10px;
    opacity: .85;
}

.header-dropdown-menu {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(35, 45, 55, .16);
    max-width: calc(100vw - 20px);
    overflow: hidden;
    padding: 8px;
    width: 340px;
}

.header-dropdown-item {
    align-items: flex-start;
    border-bottom: 1px solid #f0f2f3;
    display: flex;
    gap: 10px;
    padding: 10px !important;
    white-space: normal;
}

.header-dropdown-item:last-child {
    border-bottom: 0;
}

.header-dropdown-content {
    flex: 1;
    min-width: 0;
}

.header-dropdown-text {
    color: #343a40;
    display: -webkit-box;
    font-size: 12px;
    line-height: 1.4;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.header-dropdown-time {
    color: #8a939b;
    font-size: 10px;
}

.header-dropdown-empty {
    color: #7b848c;
    padding: 18px 12px;
    text-align: center;
}

.header-dropdown-footer {
    color: #1ab394 !important;
    display: block;
    font-size: 12px;
    font-weight: 700;
    padding: 10px;
    text-align: center;
}

.header-count-label {
    min-width: 18px;
    text-align: center;
}

@media (max-width: 767.98px) {
    .site-header {
        min-height: 54px;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .site-content-wrapper {
        margin-top: 60px;
    }

    .header-menu-button {
        height: 36px;
        margin-right: 6px !important;
        width: 36px;
    }

    .header-site-brand {
        font-size: 12px;
    }

    .header-rating-link {
        border-radius: 16px;
        margin: 3px 1px;
        min-height: 36px !important;
        padding: 6px 8px !important;
    }

    .header-rating-status,
    .header-rating-unit {
        display: none;
    }

    .header-rating-points {
        font-size: 12px;
    }

    .header-rating-demo .header-rating-status {
        display: inline;
        font-size: 10px;
    }

    .header-rating-demo-hint,
    .header-register-link span,
    .header-profile-link span {
        display: none;
    }

    .header-actions > li > a:not(.header-rating-link) {
        min-height: 38px;
        padding: 6px;
    }
}

@media (max-width: 420px) {
    .header-site-brand {
        font-size: 11px;
        letter-spacing: 0;
    }

    .header-rating-link {
        padding: 6px 7px !important;
    }

    .header-auth-link span {
        display: none;
    }
}

@media (max-width: 350px) {
    .header-site-brand span {
        display: none;
    }
}
