/* Flex Section Builder — компонент hero (v1 Split / v2 Centered).
   Всё скоупится под .fx--hero. Только токены --fx-*. Темы light/dark/gold. */

.fx--hero .fx-hero__layout {
    display: grid;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

/* ── Контент ───────────────────────────────────────────────────────────── */
.fx--hero .fx-hero__eyebrow {
    color: var(--fx-gold-dark);
}
.fx--hero.fx-theme-dark .fx-hero__eyebrow,
.fx--hero.fx-theme-gold .fx-hero__eyebrow {
    color: var(--fx-gold-dark);
}
.fx--hero.fx-theme-dark .fx-hero__eyebrow {
    color: var(--fx-gold-bright);
}

.fx--hero .fx-hero__title {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0 0 1rem;
}

.fx--hero .fx-hero__subheading {
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 0 1.6rem;
}

/* ── Буллеты ───────────────────────────────────────────────────────────── */
.fx--hero .fx-hero__bullets {
    display: grid;
    gap: .7rem;
    margin: 0 0 1.9rem;
}
.fx--hero .fx-hero__bullet {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: 1.02rem;
    line-height: 1.45;
    color: inherit;
}
.fx--hero .fx-hero__bullet-icon {
    width: 1.3em;
    height: 1.3em;
    margin-top: .12em;
    color: var(--fx-gold-dark);
    stroke-width: 2.4;
}
.fx--hero.fx-theme-dark .fx-hero__bullet-icon {
    color: var(--fx-gold-bright);
}

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.fx--hero .fx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-bottom: .4rem;
}

/* ── Бейджи доверия (v2) ───────────────────────────────────────────────── */
.fx--hero .fx-hero__badges--trust {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.4rem;
    margin-top: 1.8rem;
}
.fx--hero .fx-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--fx-text-muted);
}
.fx--hero.fx-theme-dark .fx-hero__badge {
    color: rgba(244, 241, 234, .78);
}
.fx--hero .fx-hero__badge-icon {
    width: 1.15em;
    height: 1.15em;
    color: var(--fx-gold-dark);
}
.fx--hero.fx-theme-dark .fx-hero__badge-icon {
    color: var(--fx-gold-bright);
}

/* ── Декоративная панель (v1) ──────────────────────────────────────────── */
.fx--hero .fx-hero__panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--fx-radius-lg);
    border: 1px solid rgba(191, 161, 97, .26);
    background:
        radial-gradient(120% 90% at 80% 0%, rgba(191, 161, 97, .16), transparent 60%),
        var(--fx-grad-dark);
    box-shadow: var(--fx-shadow);
    padding: clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(20px, 2.5vw, 32px);
    isolation: isolate;
}
.fx--hero .fx-hero__panel-glow {
    position: absolute;
    inset: auto -30% -40% auto;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--fx-grad-gold);
    filter: blur(64px);
    opacity: .42;
    z-index: -1;
}
.fx--hero .fx-hero__panel-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: var(--fx-radius-sm);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(191, 161, 97, .4);
}
.fx--hero .fx-hero__panel-mark-icon {
    width: 28px;
    height: 28px;
    color: var(--fx-gold-bright);
}

.fx--hero .fx-hero__facts {
    display: grid;
    gap: .2rem;
    position: relative;
}
.fx--hero .fx-hero__fact {
    display: flex;
    align-items: baseline;
    gap: .85rem;
    padding: .85rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: var(--fx-text-invert);
}
.fx--hero .fx-hero__fact:first-child {
    border-top: 0;
}
.fx--hero .fx-hero__fact-no {
    font-family: var(--fx-font-head);
    font-size: 1.15rem;
    line-height: 1;
    color: var(--fx-gold-bright);
    flex: none;
    min-width: 1.8em;
}
.fx--hero .fx-hero__fact-label {
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.35;
}

/* ── TL;DR panel block ─────────────────────────────────────────────────── */
.fx--hero .fx-hero__tldr {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    position: relative;
}
.fx--hero .fx-hero__tldr-label {
    font-family: var(--fx-font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fx-gold-bright);
}
.fx--hero .fx-hero__tldr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}
.fx--hero .fx-hero__tldr-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .8rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: var(--fx-text-invert);
    font-size: .97rem;
    font-weight: 450;
    line-height: 1.45;
}
.fx--hero .fx-hero__tldr-item:first-child {
    border-top: 0;
}
.fx--hero .fx-hero__tldr-icon {
    color: var(--fx-gold-bright);
    width: 1em;
    height: 1em;
    flex: none;
    margin-top: .2em;
}

/* ── Вариант v1 — Split ────────────────────────────────────────────────── */
.fx--hero.fx-variant-v1 .fx-hero__layout {
    grid-template-columns: 1.05fr .95fr;
}
.fx--hero.fx-variant-v1 .fx-hero__content {
    text-align: left;
}
.fx-builder .fx--hero.fx-variant-v1 .fx-hero__title,
.fx-builder .fx--hero.fx-variant-v1 .fx-hero__subheading,
.fx-builder .fx--hero.fx-variant-v1 .fx-hero__eyebrow {
    text-align: left;
}
/* builder.css: .fx-theme-dark a { color: gold-bright } перебивает #fff на кнопке */
.fx-builder .fx--hero .fx-btn--primary {
    color: #fff;
}
.fx-builder .fx--hero .fx-btn--primary:hover {
    color: #fff;
}

/* ── Вариант v2 — Centered ─────────────────────────────────────────────── */
.fx--hero.fx-variant-v2 .fx-hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}
.fx--hero.fx-variant-v2 .fx-hero__content {
    max-width: 56rem;
}
.fx--hero.fx-variant-v2 .fx-hero__subheading {
    margin-left: auto;
    margin-right: auto;
    max-width: 50ch;
}
.fx--hero.fx-variant-v2 .fx-hero__bullets {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.6rem;
}
.fx--hero.fx-variant-v2 .fx-hero__actions {
    justify-content: center;
}
.fx--hero.fx-variant-v2 .fx-hero__badges--trust {
    justify-content: center;
}

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .fx--hero.fx-variant-v1 .fx-hero__layout {
        grid-template-columns: 1fr;
    }
    .fx--hero.fx-variant-v1 .fx-hero__panel {
        min-height: clamp(260px, 50vw, 340px);
    }
}
@media (max-width: 600px) {
    .fx--hero .fx-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .fx--hero .fx-hero__cta {
        justify-content: center;
        width: 100%;
    }
    .fx--hero.fx-variant-v2 .fx-hero__bullets {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx--hero .fx-hero__panel-glow {
        filter: none;
    }
}

/* RUE FLEX BLOG MIGRATION EXTENSIONS */
.fx--hero.fx-variant-blog {
    background: #0c1e35;
    color: #f4f6fa;
}

.fx--hero.fx-variant-blog .fx-hero__layout {
    display: block;
}

.fx--hero.fx-variant-blog .fx-hero__content {
    max-width: 920px;
}

.fx--hero.fx-variant-blog .fx-hero__title {
    color: #d8b46d;
}

.fx--hero.fx-variant-blog .fx-hero__subheading,
.fx--hero.fx-variant-blog .fx-hero__lead {
    color: #e2e8f0;
}

.fx--hero.fx-variant-blog .fx-hero__lead {
    max-width: 780px;
    margin-top: 24px;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.75;
}

.fx--hero.fx-variant-blog .fx-hero__lead > :last-child {
    margin-bottom: 0;
}
