/* ============================================================
   HERO — «Наставник рядом» (people-led, учебный центр)
   Reuses .vrx-* copy classes from rework.css; adds visual side.
   Prefix: .hx-
   ============================================================ */

.hx {
    position: relative;
    overflow: hidden;
    padding: 24px 56px 60px;
    background: var(--bg);
    min-height: 760px;
    display: flex;
    flex-direction: column;
}
.hx::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 70% at 100% 35%, var(--lavender-soft), transparent 58%),
        radial-gradient(42% 60% at -5% 100%, #f4e6c5, transparent 62%);
    pointer-events: none;
    z-index: 0;
}
.hx > * { position: relative; z-index: 1; }
.hx > .vrx-hdr { z-index: 4; }

/* ============================================================
   FULL-BLEED BACKGROUND PHOTO
   ============================================================ */
.hx-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hx-bg .ph-slot {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    border-radius: 0;
    justify-content: flex-end;
    padding-bottom: 44px;
    gap: 10px;
}
.hx-bg .ph-slot .ph-tag { top: 20px; left: 20px; }
.hx-bg .ph-slot .ph-hint { max-width: 460px; }
/* legibility scrim so centered copy reads over any photo */
.hx-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 90% at 50% 45%, color-mix(in oklab, var(--bg) 78%, transparent), transparent 75%),
        linear-gradient(180deg, color-mix(in oklab, var(--bg) 30%, transparent), transparent 30%, transparent 70%, color-mix(in oklab, var(--bg) 55%, transparent));
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   CENTERED COPY
   ============================================================ */
.hx-center {
    flex: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    padding: 32px 0 12px;
    max-width: 860px;
    margin: 0 auto;
}
.hx-center .vrx-eyebrow { margin-bottom: 26px; }
.hx-h1 {
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1.0;
    margin-bottom: 22px;
    text-wrap: balance;
}
.hx-lede {
    max-width: 600px;
    margin: 0 auto 26px;
    font-size: 18px;
}
.hx-subjects-c {
    justify-content: center;
    max-width: 680px;
    margin-bottom: 30px;
}
.hx-cta-row { justify-content: center; margin-bottom: 12px; }
.hx-ghost { background: var(--bg-card); }
.hx-micro { justify-content: center; margin-bottom: 32px; }
.hx-trust {
    justify-content: center;
    padding: 16px 22px;
    background: color-mix(in oklab, var(--bg-card) 82%, transparent);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    margin: 0;
}

@media (max-width: 980px) {
    .hx { padding: 20px 28px 48px; min-height: 0; }
    .hx-center { padding: 48px 0 24px; }
    .hx-bg .ph-slot .ph-hint { max-width: 80%; }
}
@media (max-width: 560px) {
    .hx-trust { flex-wrap: wrap; border-radius: var(--r-lg); }
}

.hx-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
    padding-top: 40px;
}

/* ---- subject chips ---- */
.hx-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 2px 0 24px;
}
.hx-subj {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
    box-shadow: var(--shadow-1);
}
.hx-subj::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--dot, var(--brand));
}
.hx-subj.exam {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.hx-subj.exam::before { background: #fff; }

/* ============================================================
   VISUAL — portrait + floating human-trust cards
   ============================================================ */
.hx-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hx-portrait-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
}
/* decorative panel behind the portrait for depth */
.hx-portrait-wrap::before {
    content: '';
    position: absolute;
    inset: 18px -22px -22px 24px;
    background: linear-gradient(160deg, var(--lavender-soft), color-mix(in oklab, var(--amber-bg) 70%, transparent));
    border-radius: var(--r-xl);
    transform: rotate(-2deg);
    z-index: 0;
}
.hx-portrait {
    position: relative;
    z-index: 1;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: 0 30px 60px -24px rgba(40, 30, 90, 0.34);
    background: var(--bg-card);
}
.hx-portrait .ph-slot {
    border: none;
    border-radius: 0;
    aspect-ratio: 4 / 5;
    min-height: 0;
}

/* name card — identifies the real human (trust) */
.hx-namecard {
    position: absolute;
    left: -28px;
    bottom: 26px;
    z-index: 3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-3);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 210px;
}
.hx-namecard b {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}
.hx-namecard .role {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
}
.hx-namecard .stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 600;
}
.hx-namecard .stars .s { color: var(--amber); letter-spacing: 1px; }

/* relief callout — top right */
.hx-callout {
    position: absolute;
    right: -22px;
    top: 30px;
    z-index: 3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 16px 12px 13px;
    box-shadow: var(--shadow-3);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 230px;
}
.hx-callout .ic {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--green-bg);
    color: var(--green-ink);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.hx-callout .ic svg { width: 18px; height: 18px; }
.hx-callout b { display: block; font-size: 13.5px; color: var(--text); letter-spacing: -0.01em; }
.hx-callout span { font-size: 12px; color: var(--text-dim); }

/* roster strip — real people + scale */
.hx-roster {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px 10px 12px;
    box-shadow: var(--shadow-1);
}
.hx-roster-faces { display: inline-flex; }
.hx-roster-faces .ph-slot {
    width: 38px; height: 38px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
    border-width: 1.5px;
    margin-left: -10px;
    background:
        repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in oklab, var(--lavender-soft) 70%, transparent) 6px 7px),
        var(--bg);
}
.hx-roster-faces .ph-slot:first-child { margin-left: 0; }
.hx-roster-faces .ph-slot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2.5px var(--bg-card);
}
.hx-roster-faces .ph-mini-ic {
    width: 14px; height: 14px; color: var(--brand);
}
.hx-roster-txt b { font-size: 14.5px; color: var(--text); letter-spacing: -0.01em; display: block; }
.hx-roster-txt span { font-size: 12px; color: var(--text-dim); }
.hx-roster-note {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    font-weight: 700;
    background: var(--brand-soft);
    padding: 3px 7px;
    border-radius: 5px;
}

@media (max-width: 980px) {
    .hx { padding: 20px 28px 48px; }
    .hx-grid { grid-template-columns: 1fr; gap: 44px; padding-top: 28px; }
    .hx-visual { margin-top: 8px; }
    .hx-portrait-wrap { max-width: 420px; }
}
@media (max-width: 560px) {
    .hx-namecard { left: 0; bottom: 12px; min-width: 0; }
    .hx-callout { right: 0; top: 14px; max-width: 180px; }
    .hx-roster { flex-wrap: wrap; border-radius: var(--r-lg); }
    .hx-roster-note { margin-left: 0; }
}
