/* Карточка эксперта для всех вариантов страницы кейса. */
.keysy-expert-author-box {
    --expert-ink: #152c46;
    --expert-muted: #405a72;
    --expert-line: #d6e1eb;
    --expert-action: #214f7b;
    min-width: 0;
    margin-block: clamp(26px, 4vw, 40px);
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--expert-line);
    border-radius: 10px;
    background: #f5f8fb;
    color: var(--expert-ink);
    overflow-wrap: anywhere;
    scroll-margin-top: 104px;
}

.keysy-expert-author-header-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--expert-line);
}

.keysy-expert-author-overline {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--expert-action);
}

.keysy-expert-author-status-badge {
    padding: 4px 8px;
    border: 1px solid #bcdbcd;
    border-radius: 5px;
    color: #175540;
    background: #eaf6ef;
    font-size: .75rem;
    font-weight: 650;
    line-height: 1.45;
}

.keysy-expert-author-grid {
    display: grid;
    grid-template-columns: minmax(70px, 108px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(12px, 3vw, 24px);
}

.keysy-expert-author-avatar-link {
    display: block;
    border-radius: 7px;
}

.keysy-expert-author-box .keysy-expert-author-portrait {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid var(--expert-line);
    border-radius: 7px;
}

.keysy-expert-author-box .keysy-expert-author-name {
    margin: 0 0 5px;
    font: 800 clamp(1.05rem, 2vw, 1.35rem)/1.25 Manrope, Inter, sans-serif;
}

.keysy-expert-author-box .keysy-expert-author-name a {
    color: var(--expert-ink);
    text-underline-offset: .2em;
}

.keysy-expert-author-box p:is(.keysy-expert-author-role, .keysy-expert-author-area, .keysy-expert-author-bio) {
    margin: 0;
    color: var(--expert-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.keysy-expert-author-box .keysy-expert-author-role { font-weight: 700; }
.keysy-expert-author-box p.keysy-expert-author-area { margin-top: 4px; }
.keysy-expert-author-box p.keysy-expert-author-bio { margin-top: 14px; }

.keysy-expert-author-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--expert-action);
    color: #fff;
    font: 750 .875rem/1.4 Manrope, Inter, sans-serif;
    text-align: center;
    cursor: pointer;
}

.keysy-expert-author-cta-btn:hover { background: #153c60; }
.keysy-expert-author-box :is(a, button):focus-visible { outline: 3px solid #3e73a7; outline-offset: 3px; }

.keysy-expert-author-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 7px;
    margin-top: 12px;
}

.keysy-author-topic-pill {
    padding: 4px 8px;
    border: 1px solid var(--expert-line);
    border-radius: 5px;
    background: #fff;
    color: var(--expert-action);
    font-size: .75rem;
    font-weight: 650;
    line-height: 1.35;
}

.keysy-expert-author-bottom-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--expert-line);
}

.keysy-expert-author-box .keysy-expert-author-link-all {
    color: var(--expert-action);
    font-size: .85rem;
    font-weight: 750;
    line-height: 1.45;
    text-underline-offset: .2em;
}

.keysy-expert-author-box > .keysy-expert-author-header-line .ms,
.keysy-expert-author-box .keysy-expert-author-content-col .ms { display: none; }

main > .keysy-expert-author-box {
    width: min(920px, calc(100% - 36px));
    margin-inline: auto;
}

@media (max-width: 520px) {
    .keysy-expert-author-grid { grid-template-columns: 1fr; }
    .keysy-expert-author-avatar-link { width: 76px; }
    .keysy-expert-author-cta-btn-wrap,
    .keysy-expert-author-cta-btn { width: 100%; }
}
