/**
 * Единый блок: логотип + ЮГИТ HR + подпись (без подчёркивания).
 * Подключается из landing и hr-portal (@import).
 */

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
    color: inherit;
    max-width: 100%;
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

.brand-lockup:hover,
.brand-lockup:focus,
.brand-lockup:active {
    text-decoration: none !important;
    color: inherit;
}

/* Лёгкий подъём всего блока при наведении / фокусе клавиатуры */
.brand-lockup:hover,
.brand-lockup:focus-visible {
    transform: translateY(-1px);
}

.brand-lockup:hover .brand-lockup-tagline,
.brand-lockup:focus-visible .brand-lockup-tagline {
    opacity: 0.88;
}

.brand-lockup:focus-visible {
    outline: 2px solid rgba(14, 165, 233, 0.55);
    outline-offset: 3px;
    border-radius: 10px;
}

/* Без max-* SVG часто рисуется в натуральном размере документа, игнорируя width/height у <img>. */
/* Размеры — в ~1,5× к прежним ограничениям (согласовано с атрибутами width/height в partial). */
.brand-lockup-logo {
    flex-shrink: 0;
    display: block;
    width: auto;
    height: auto;
    max-height: 42px;
    max-width: 42px;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
    animation: brand-lockup-logo-idle 16s ease-in-out infinite;
}

.brand-lockup--landing .brand-lockup-logo,
.brand-lockup--marketing .brand-lockup-logo,
.brand-lockup--navbar .brand-lockup-logo {
    max-height: 48px;
    max-width: 48px;
}

.brand-lockup--login .brand-lockup-logo {
    max-height: 45px;
    max-width: 45px;
}

.brand-lockup--overview .brand-lockup-logo {
    max-height: 42px;
    max-width: 42px;
}

.brand-lockup--portal .brand-lockup-logo,
.brand-lockup--admin .brand-lockup-logo {
    max-height: 42px;
    max-width: 42px;
}

.brand-lockup:hover .brand-lockup-logo,
.brand-lockup:focus-visible .brand-lockup-logo {
    animation: none;
    transform: scale(1.06) translateY(-1px);
}

.brand-lockup-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.08rem;
    line-height: 1.15;
    min-width: 0;
    text-align: left;
}

.brand-lockup-title {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: inherit;
    line-height: 1.2;
}

.brand-lockup-tagline {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.72;
    line-height: 1.25;
    max-width: 15rem;
    transition: opacity 0.28s ease;
}

/* Очень лёгкое «дыхание» только у значка; при наведении отключается в пользу hover. */
@keyframes brand-lockup-logo-idle {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.025);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-lockup {
        transition: none;
    }

    .brand-lockup:hover,
    .brand-lockup:focus-visible {
        transform: none;
    }

    .brand-lockup-logo {
        animation: none;
        transition: none;
    }

    .brand-lockup:hover .brand-lockup-logo,
    .brand-lockup:focus-visible .brand-lockup-logo {
        transform: none;
    }

    .brand-lockup-tagline {
        transition: none;
    }
}

/* Навигация маркетинга / лендинга */
.brand-lockup--navbar .brand-lockup-title,
.brand-lockup--marketing .brand-lockup-title,
.brand-lockup--landing .brand-lockup-title {
    font-size: 1.05rem;
}

.brand-lockup--navbar .brand-lockup-tagline,
.brand-lockup--marketing .brand-lockup-tagline,
.brand-lockup--landing .brand-lockup-tagline {
    font-size: 0.6rem;
    max-width: 12rem;
}

/* Карточка входа / регистрации */
.brand-lockup--login .brand-lockup-title {
    font-size: 1.08rem;
}

.brand-lockup--login .brand-lockup-tagline {
    font-size: 0.65rem;
    max-width: 16rem;
    opacity: 0.68;
}

/* Обзор портала */
.brand-lockup--overview .brand-lockup-title {
    font-size: 1.05rem;
}

.brand-lockup--overview .brand-lockup-tagline {
    font-size: 0.6rem;
    max-width: 13rem;
}

/* Боковая панель портала и админки */
.brand-lockup--portal .brand-lockup-title,
.brand-lockup--admin .brand-lockup-title {
    font-size: 0.95rem;
}

.brand-lockup--portal .brand-lockup-tagline,
.brand-lockup--admin .brand-lockup-tagline {
    font-size: 0.55rem;
    max-width: 9.5rem;
    letter-spacing: 0.05em;
}
