/* ============================================================
   css/board.css — стили страницы «Попечительский совет»
   Использует переменные и паттерны из main.css / effects.css,
   подключать после них.
   ============================================================ */

/* ---------- Хлебные крошки внутри hero (светлый текст на тёмном фото) ---------- */
.breadcrumbs {
    position: relative;
    z-index: 2;
    padding: 18px 0 0;
}
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 6px; }
.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .68);
    transition: color .25s ease;
}
.breadcrumbs__link:hover { color: var(--color-white); }
.breadcrumbs__icon { width: 14px; height: 14px; }
.breadcrumbs__separator { color: rgba(255, 255, 255, .35); }
.breadcrumbs__current { color: rgba(255, 255, 255, .92); font-weight: 600; }

/* ---------- HERO ---------- */
.board-hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: center;
    padding-bottom: 60px; /* было 30px */
    overflow: hidden;
    color: var(--color-white);
}
.board-hero__image-wrapper { position: absolute; inset: 0; z-index: 0; }
.board-hero__image { width: 100%; height: 100%; object-fit: cover; }
.board-hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }

.board-hero .container { position: relative; z-index: 2; }
.board-hero__content { max-width: 680px; }

.board-hero__title {
    font-family: var(--font-display), var(--font-main);
    font-size: clamp(30px, 4.2vw, 46px);
    color: var(--color-white);
    margin: 14px 0 16px;
    font-weight: 800;
}
.board-hero__subtitle {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .82);
    max-width: 540px;
}

/* ---------- Секция состава совета ---------- */
.board-members { padding: 70px 0 30px;
    position: relative;
    background: var(--color-cream); }

.board-intro {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}
.board-intro__text {
    color: var(--color-text-muted);
    font-size: 17px;
    line-height: 1.7;
}

.board-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.board-grid__loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 0;
    color: var(--color-text-muted);
}

.board-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: var(--color-text-muted);
}

/* ---------- Карточка попечителя ---------- */
.board-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.board-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: var(--shadow-card-hover);
}

.board-card__image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3.4;
    overflow: hidden;
    background: var(--color-cream);
}
.board-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.board-card:hover .board-card__image { transform: scale(1.06); }
.board-card__overlay { display: none; }

.board-card__content {
    padding: 20px 24px 26px;
    margin-top: -18px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.board-card__header { display: flex; flex-direction: column; gap: 4px; }
.board-card__name {
    font-size: 18px;
    color: var(--color-plum-dark);
    font-family: var(--font-display), var(--font-main);
}
.board-card__position {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-plum);
    letter-spacing: .02em;
}
.board-card__description {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}
.board-card__experience {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.board-card__badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-plum);
    background: var(--color-plum-soft);
    padding: 5px 12px;
    border-radius: 999px;
}

/* ---------- Информационный блок ---------- */
.board-info {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.board-info__card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 44px 40px;
}
.board-info__icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--color-plum-soft);
    color: var(--color-plum);
    display: flex; align-items: center; justify-content: center;
}
.board-info__icon svg { width: 26px; height: 26px; }
.board-info__title {
    font-size: 21px;
    color: var(--color-plum-dark);
    margin-bottom: 10px;
    font-family: var(--font-display), var(--font-main);
}
.board-info__text {
    font-size: 14.5px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ---------- Адаптив ---------- */
@media (max-width: 640px) {
    .board-hero { min-height: 48vh; padding-bottom: 70px; text-align: center; }
    .board-grid { grid-template-columns: 1fr; }
    .board-info__card { padding: 34px 24px; }
}

/* ---------- Хлебные крошки внутри hero (светлый текст на тёмном фото) ---------- */
.breadcrumbs {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 0;
    pointer-events: auto;
}
.breadcrumbs .container { text-align: left; }

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 6px; }
.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .68);
    transition: color .25s ease;
}
.breadcrumbs__link:hover { color: var(--color-white); }
.breadcrumbs__icon { width: 14px; height: 14px; }
.breadcrumbs__separator { color: rgba(255, 255, 255, .35); }
.breadcrumbs__current { color: rgba(255, 255, 255, .92); font-weight: 600; }

/* ---------- HERO ---------- */
.board-hero {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: center;
    padding-bottom: 30px;
    overflow: hidden;
    color: var(--color-white);
}
.board-hero__image-wrapper { position: absolute; inset: 0; z-index: 0; }
.board-hero__image { width: 100%; height: 100%; object-fit: cover; }
.board-hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }

.board-hero .container { position: relative; z-index: 2; }
.board-hero__content { max-width: 680px; margin-top: 46px; }

.board-hero__title {
    font-family: var(--font-display), var(--font-main);
    font-size: clamp(30px, 4.2vw, 46px);
    color: var(--color-white);
    margin: 14px 0 16px;
    font-weight: 800;
}
.board-hero__subtitle {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .82);
    max-width: 540px;
}

/* ---------- Мобильная адаптация hero + крошек ---------- */
@media (max-width: 640px) {
    .board-hero { min-height: 48vh; padding-bottom: 70px; text-align: center; }

    .breadcrumbs { top: 16px; }
    .breadcrumbs .container { text-align: center; }
    .breadcrumbs__list { justify-content: center; }

    .board-hero__content { margin-top: 64px; }
    .board-hero__title,
    .board-hero__subtitle { text-align: center; margin-left: auto; margin-right: auto; }
    .hero__eyebrow { margin-left: auto; margin-right: auto; }
}

/* ---------- Карточка-ссылка ---------- */
a.board-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.board-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-plum);
    transition: gap .25s ease, color .25s ease;
}
.board-card__more svg {
    width: 15px;
    height: 15px;
    transition: transform .25s ease;
}
.board-card:hover .board-card__more { gap: 10px; color: var(--color-plum-dark); }
.board-card:hover .board-card__more svg { transform: translateX(2px); }