/* ============================================================
   css/trustee-profile.css — персональные страницы попечителей
   Подключать после main.css, effects.css и board.css
   ============================================================ */

/* ============================================================
   HERO персональной страницы попечителя:
   тёмный фон + текст слева + фото в рамке справа
   ============================================================ */
.trustee-hero {
    position: relative;
    padding: 64px 0 76px;
    overflow: hidden;
    color: var(--color-white);
    isolation: isolate;

    background:
            radial-gradient(680px 420px at 88% -10%, rgba(201, 185, 168, .22), transparent 65%),
            radial-gradient(520px 420px at 8% 108%, rgba(201, 185, 168, .14), transparent 60%),
            linear-gradient(155deg, var(--color-plum) 0%, var(--color-plum-dark) 58%, #2c1526 100%);
}

/* лёгкий шум, убирает "полосатость" градиента, как на dark-zone */
.trustee-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 160px 160px;
}

/* ---------- Декоративный слой (SVG) ---------- */
.trustee-hero__decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.th-deco { position: absolute; }

.th-deco--heart {
    width: 210px; height: auto;
    right: 3%; top: -6%;
    color: rgba(255, 255, 255, .06);
}
.th-deco--leaf {
    width: 130px; height: auto;
    left: -3%; bottom: -8%;
    color: rgba(201, 185, 168, .12);
    transform: rotate(-24deg);
}
.th-deco--wave {
    width: 120%;
    height: 220px;
    left: -10%;
    bottom: -40px;
    color: rgba(255, 255, 255, .05);
}
.th-deco--dots {
    width: 130px; height: auto;
    left: 6%;
    top: 14%;
    color: rgba(255, 255, 255, .16);
}
.th-deco--ring-1 {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 185, 168, .3);
    top: 12%;
    right: 26%;
}
.th-deco--ring-2 {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .18);
    bottom: 18%;
    right: 40%;
}
.th-deco--dot-solid {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: .5;
    top: 22%;
    right: 45%;
}

@media (max-width: 900px) {
    .th-deco--heart,
    .th-deco--dots,
    .th-deco--ring-1,
    .th-deco--ring-2,
    .th-deco--dot-solid { display: none; }
}

.trustee-hero .container { position: relative; z-index: 2; }

.trustee-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 48px;
    margin-top: 46px;
}

.trustee-hero__content { max-width: 560px; }

.trustee-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;
}
.trustee-hero__subtitle {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .82);
    max-width: 540px;
    line-height: 1.6;
}

.trustee-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.trustee-hero__badge {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--color-white);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(201, 185, 168, .35);
    padding: 6px 16px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

/* ---------- Фото в рамке ---------- */
.trustee-hero__photo {
    display: flex;
    justify-content: center;
}
.trustee-hero__photo-frame {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, .14);
    box-shadow: var(--shadow-card-hover);
    background: var(--color-plum-dark);
}
.trustee-hero__photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    pointer-events: none;
}
/* декоративная вторая рамка со смещением — эффект "паспарту" */
.trustee-hero__photo-frame-offset {
    position: absolute;
    inset: -14px;
    border: 1.5px solid rgba(250, 160, 194, .35);
    border-radius: calc(var(--radius-lg) + 10px);
    z-index: -1;
    pointer-events: none;
}
.trustee-hero__photo-inner { position: relative; width: 100%; height: 100%; }
.trustee-hero__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .trustee-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .trustee-hero__content { max-width: 100%; margin: 0 auto; }
    .trustee-hero__subtitle { margin-left: auto; margin-right: auto; }
    .trustee-hero__badges { justify-content: center; }
    .trustee-hero__photo { order: -1; }
    .trustee-hero__photo-frame { max-width: 240px; }
}

@media (max-width: 640px) {
    .trustee-hero { padding: 44px 0 60px; }
    .trustee-hero__grid { margin-top: 40px; }
    .trustee-hero__photo-frame { max-width: 200px; }
}

/* ---------- Контент ---------- */
.trustee-content {
    position: relative;
    padding: 70px 0 90px;
    background: var(--color-cream);
}

.trustee-content__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.trustee-content__main {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 44px 46px;
}

.trustee-bio p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--color-text);
    margin-bottom: 20px;
}
.trustee-bio p:last-child { margin-bottom: 0; }

.trustee-quote {
    position: relative;
    margin: 28px 0;
    padding: 24px 28px 24px 30px;
    background: var(--color-plum-soft);
    border-left: 3px solid var(--color-plum);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-plum-dark);
}
.trustee-quote p { color: var(--color-plum-dark); font-size: inherit; margin-bottom: 0; }

.trustee-section-title {
    font-family: var(--font-display), var(--font-main);
    font-size: 22px;
    color: var(--color-plum-dark);
    margin: 40px 0 16px;
}
.trustee-content__main > .trustee-section-title:first-child { margin-top: 0; }

/* Блок "Роль в фонде" */
.trustee-role {
    margin-top: 36px;
    padding: 28px 30px;
    background: var(--gradient-plum);
    border-radius: var(--radius-md);
    color: var(--color-white);
}
.trustee-role__title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 10px;
}
.trustee-role__title svg { width: 20px; height: 20px; flex-shrink: 0; }
.trustee-role__text {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .88);
}

/* ---------- Сайдбар ---------- */
.trustee-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trustee-aside__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 28px 26px;
}
.trustee-aside__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-plum);
    margin-bottom: 14px;
    display: block;
}
.trustee-aside__list { display: flex; flex-direction: column; gap: 14px; }
.trustee-aside__item { display: flex; gap: 12px; align-items: flex-start; }
.trustee-aside__item svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-plum);
}
.trustee-aside__item span { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

.trustee-aside__cta {
    text-align: center;
    padding-top: 4px;
}
.trustee-aside__cta .btn { width: 100%; }

.trustee-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-plum);
    margin-bottom: 28px;
}
.trustee-back svg { width: 16px; height: 16px; }
.trustee-back:hover { color: var(--color-plum-dark); }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
    .trustee-content__grid { grid-template-columns: 1fr; }
    .trustee-aside { position: static; }
    .trustee-content__main { padding: 32px 24px; }
}

@media (max-width: 640px) {
    .trustee-content { padding: 44px 0 60px; }
    .trustee-content__main { padding: 26px 18px; }
    .trustee-role { padding: 22px 20px; }
}