/* Page: Leadership */

.page-leadership .page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.page-leadership h1 {
    font-family: "Montserrat Alternates", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0;
}


/* Filter chips */

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    border: 1px solid rgba(0, 0, 0, .08);
    background: var(--nr-surface, #fff);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}

.chip:hover {
    transform: translateY(-1px);
}

.chip.is-active,
.chip[aria-pressed="true"] {
    background: linear-gradient(90deg, #1e90ff22, #ffd50022);
    box-shadow: 0 0 0 2px #1e90ff33 inset;
}


/* Tabs facelift */

.tabs .tablist {
    display: grid;
    grid-auto-flow: column;
    gap: 8px;
    margin-top: 10px;
    width: max-content;
}

.tabs .tab {
    background: transparent;
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.tabs .tab.is-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #1e90ff, #ffd500);
}


/* People grid & cards */

.people {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.card-person {
    grid-column: span 12;
    background: rgba(10, 12, 20, 0.66);
    color: #e9eef6;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
    backdrop-filter: blur(8px);
    transform: translateZ(0);
    transition: transform .18s ease, box-shadow .18s ease, background .25s ease;
    outline: none;
}

.card-person:hover,
.card-person:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    background: rgba(14, 18, 28, 0.78);
}

@media (min-width: 720px) {
    .card-person {
        grid-column: span 4;
    }
}

.person-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}


/* Photo avatar */

.photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #1e90ff, #ffd500);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}

.avatar {
    /* fallback for items без фото */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1e90ff, #ffd500);
    color: #0b0f18;
    font-weight: 800;
}

.meta .name {
    font-weight: 800;
    line-height: 1.1;
}

.meta .role {
    margin-top: 2px;
    font-size: 14px;
    opacity: .85;
}

.desc {
    margin: 8px 0 12px;
    opacity: .9;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn {
    appearance: none;
    border: 0;
    background: #0d63ff;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.more {
    background: linear-gradient(90deg, #1e90ff, #ffd500);
    color: #0b0f18;
}


/* Org tree */

.org-tree {
    --indent: 18px;
    margin-top: 12px;
    padding-left: 0;
    list-style: none;
}

.org-tree ul {
    list-style: none;
    padding-left: var(--indent);
    margin: 6px 0;
}

.org-node {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .06);
}

.org-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    color: inherit;
}


/* Modal */

.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, .5);
    z-index: 40;
}

.modal.is-open {
    display: grid;
    animation: fadeIn .16s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.modal__dialog {
    width: min(880px, 92vw);
    max-height: 86vh;
    overflow: auto;
    border-radius: 16px;
    background: #0e1422;
    color: #eaf1ff;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
    transform: translateY(8px);
    animation: slideUp .18s ease both;
}

@keyframes slideUp {
    to {
        transform: translateY(0)
    }
}

.modal__hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #0e1422, #0e1422ee 70%, transparent);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.modal__title {
    font-weight: 800;
    margin-right: 8px;
}

.modal__close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.modal__bd {
    padding: 14px 16px;
    line-height: 1.5;
}

.modal__bd b {
    color: #fff;
}

.modal__bd p {
    margin: 6px 0;
    white-space: pre-wrap;
}