/* Header 2026-04: один мобільний ряд [Лого | … | Кабінет | Меню], мова — у бургер-меню та футері */

header .header-brand-logo {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 56% !important;
}

header .header-brand-logo .logo {
    margin: 0 !important;
}

header .header-brand-logo .logo img {
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

header .tools__item--cabinet {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 212, 255, 0.28) !important;
    background: rgba(0, 212, 255, 0.07) !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

header .tools__item--cabinet:hover {
    background: rgba(0, 212, 255, 0.16) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
    color: #7dd3fc !important;
}

header .top-line__menu {
    flex: 1 1 auto !important;
    justify-content: center !important;
    min-width: 0 !important;
}

/* Рейтинг лишився у другому ряду на десктопі; на мобільному ховаємо — менше висоти шапки */
@media (max-width: 991px) {
    header .middle-line__wrapper-left--rating {
        display: none !important;
    }

    header .header-brand-logo .logo img {
        max-height: 32px !important;
    }

    header .tools__item--cabinet {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }

    header .middle-line {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        justify-content: center !important;
    }

    header .middle-line__wrapper-right {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Мова в slide-menu: лише мобільний бургер (на десктопі — у футері) */
@media (min-width: 992px) {
    .right-menu__lang {
        display: none !important;
    }
}

.right-menu__lang {
    padding: 4px 20px 14px !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.12) !important;
}

.right-menu__lang .dropdown-toggle {
    font-size: 15px !important;
}

/* Compact при скролі: cyberpunk-header мав justify-content:flex-end — увесь ряд їхав вправо, лого "стрибало".
   Лого зліва, Кабінет + бургер справа однією групою. */
@media (max-width: 991px) {
    header.header--compact .top-line .top-line-wrapper {
        justify-content: flex-start !important;
    }

    header.header--compact .top-line .top-line-wrapper .tools-wrapper {
        margin-left: auto !important;
    }
}
