:root {
    --bg: #f4f1e8;
    --bg-deep: #ece7d9;
    --text: #13212b;
    --muted: #617079;
    --accent: #c89432;
    --accent-soft: #e7c77b;
    --night: #10202a;
    --night-soft: #182d38;
    --surface: rgba(255, 255, 255, 0.58);
    --surface-strong: rgba(255, 255, 255, 0.82);
    --border: rgba(19, 33, 43, 0.12);
    --border-light: rgba(255, 255, 255, 0.14);
    --shadow-soft: 0 18px 50px rgba(32, 39, 41, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --content-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 8%, rgba(200, 148, 50, 0.10), transparent 26rem),
        radial-gradient(circle at 8% 38%, rgba(255, 255, 255, 0.52), transparent 30rem),
        linear-gradient(180deg, #f7f4ec 0%, var(--bg) 48%, var(--bg-deep) 100%);
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
    outline: 3px solid rgba(200, 148, 50, 0.32);
    outline-offset: 4px;
}

/* Шапка */

.site-header {
    position: relative;
    z-index: 10;
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.site-header__light {
    position: relative;
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(200, 148, 50, 0.10);
}

.site-header__light::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(200, 148, 50, 0.18);
    border-radius: inherit;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.site-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

.site-status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6f8f62;
    box-shadow: 0 0 0 4px rgba(111, 143, 98, 0.10);
}


/* Фирменный сигнал в шапке: единая SVG-композиция «маяк + свет + Свет горит». */
.site-beacon-signal {
    display: inline-flex;
    width: 139px;
    height: 53px;
    flex: 0 0 139px;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: default;
    user-select: none;
}

.site-beacon-signal__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 2px 5px rgba(19, 33, 43, 0.08));
}

/* Основная область */

main {
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.section-eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.section-eyebrow--light {
    color: var(--accent-soft);
}

.section-heading {
    display: grid;
    gap: 18px;
}

.section-heading h2,
.trust h2 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2rem, 7vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.section-heading__text {
    margin: 0;
    max-width: 610px;
    color: var(--muted);
    font-size: 1.02rem;
}

/* Первый экран */

.hero {
    position: relative;
    display: grid;
    gap: 24px;
    overflow: hidden;
    align-items: center;
    padding: 22px 0 38px;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.35rem, 8vw, 4.75rem);
    line-height: 1.01;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.hero__text {
    margin: 28px 0 0;
    max-width: 660px;
    color: var(--muted);
    font-size: clamp(1.05rem, 3.8vw, 1.22rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button--primary {
    background: var(--text);
    color: #fff;
    box-shadow: 0 10px 28px rgba(19, 33, 43, 0.14);
}

.button--primary:hover {
    transform: translateY(-2px);
    background: #0b1820;
}

.button--quiet {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.40);
    color: var(--text);
}

.button--quiet:hover {
    transform: translateY(-2px);
    border-color: rgba(200, 148, 50, 0.38);
    background: rgba(255, 255, 255, 0.72);
}

.hero__note {
    margin: 24px 0 0;
    color: #78848a;
    font-size: 0.84rem;
    font-weight: 600;
}
/* Ситуации */

.situations,
.how-it-works {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 24px;
}

.situations__grid {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.situation-card {
    position: relative;
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    padding: 24px 78px 22px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35)),
        var(--surface);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.situation-card::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border: 1px solid rgba(200, 148, 50, 0.17);
    border-radius: 50%;
    background: rgba(200, 148, 50, 0.035);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.situation-card::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 37px;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.22rem;
    line-height: 1;
    transition: transform 0.22s ease;
}


.situation-card__title {
    font-size: 1.08rem;
    font-weight: 760;
    line-height: 1.25;
}

.situation-card small {
    max-width: 100%;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.situation-card:hover,
.situation-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(200, 148, 50, 0.35);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.situation-card:hover::before,
.situation-card:focus-visible::before {
    transform: translateY(-50%) scale(1.08);
    border-color: rgba(200, 148, 50, 0.32);
}

.situation-card:hover::after,
.situation-card:focus-visible::after {
    transform: translateY(-50%) translateX(3px);
}

/* Как помогает Маяк */

.how-it-works__grid {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 36px;
}

.step {
    position: relative;
    min-height: 190px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.34);
}

.step__number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 148, 50, 0.25);
    border-radius: 50%;
    background: rgba(200, 148, 50, 0.06);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
}

.step h3 {
    margin: 26px 0 8px;
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}

.step p {
    margin: 0;
    max-width: 560px;
    color: var(--muted);
}

/* Районы Маяка */

.districts {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 24px;
}

.districts__grid {
    display: grid;
    gap: 12px;
    margin-top: 36px;
}

.district-card {
    position: relative;
    min-height: 166px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.30)),
        var(--surface);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.68) inset;
}

.district-card::after {
    content: "";
    position: absolute;
    top: -34px;
    right: -34px;
    width: 112px;
    height: 112px;
    border: 1px solid rgba(200, 148, 50, 0.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 22px rgba(200, 148, 50, 0.025),
        0 0 0 44px rgba(200, 148, 50, 0.015);
    pointer-events: none;
}


.district-card h3 {
    position: relative;
    z-index: 1;
    margin: 4px 0 8px;
    max-width: 92%;
    font-size: 1.12rem;
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.district-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 95%;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Принципы */

.trust {
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    padding: 32px 22px 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 4%, rgba(200, 148, 50, 0.18), transparent 20rem),
        linear-gradient(145deg, var(--night-soft), var(--night));
    color: #f4f1e8;
    box-shadow: 0 28px 70px rgba(16, 32, 42, 0.14);
    scroll-margin-top: 24px;
}

.trust::after {
    content: "";
    position: absolute;
    top: -130px;
    right: -130px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(231, 199, 123, 0.10);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(231, 199, 123, 0.025),
        0 0 0 88px rgba(231, 199, 123, 0.018);
    pointer-events: none;
}

.trust__heading {
    position: relative;
    z-index: 1;
    max-width: 790px;
}

.trust h2 {
    color: #fffdf7;
}

.trust__intro {
    margin: 20px 0 0;
    max-width: 690px;
    color: rgba(244, 241, 232, 0.68);
    font-size: 1.02rem;
}

.trust__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-top: 34px;
}

.trust-item {
    padding: 22px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(8px);
}


.trust-item h3 {
    margin: 0 0 8px;
    color: #fffdf7;
    font-size: 1.08rem;
    line-height: 1.3;
}

.trust-item p {
    margin: 0;
    color: rgba(244, 241, 232, 0.66);
    font-size: 0.92rem;
}

/* Подвал */

.site-footer {
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto;
    padding: 0 0 32px;
}

.site-footer__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.site-footer__brand,
.site-footer__tagline,
.site-footer__signal {
    margin: 0;
}

.site-footer__brand {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 760;
}

.site-footer__tagline {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.76rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 10px;
}

.site-footer__links a {
    color: var(--muted);
    font-size: 0.74rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
    color: var(--text);
    border-bottom-color: var(--border);
}

.site-footer__signal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.analytics-settings-button {
    display: block;
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.74rem;
    cursor: pointer;
}

.analytics-settings-button:hover,
.analytics-settings-button:focus-visible {
    color: var(--text);
    border-bottom-color: var(--border);
}

.analytics-consent {
    position: fixed;
    z-index: 100;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: grid;
    max-width: 760px;
    gap: 18px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(200, 148, 50, 0.28);
    border-radius: 22px;
    background: rgba(247, 244, 236, 0.98);
    box-shadow: 0 24px 80px rgba(16, 32, 42, 0.22);
    backdrop-filter: blur(14px);
}

.analytics-consent[hidden] {
    display: none;
}

.analytics-consent__eyebrow,
.analytics-consent h2,
.analytics-consent p {
    margin: 0;
}

.analytics-consent__eyebrow {
    color: #8b5c08;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analytics-consent h2 {
    margin-top: 6px;
    color: var(--text);
    font-size: 1.28rem;
    line-height: 1.2;
}

.analytics-consent p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.analytics-consent a {
    display: inline-block;
    margin-top: 8px;
    color: #7b5108;
    font-size: 0.82rem;
}

.analytics-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.analytics-consent__actions .button {
    width: auto;
    min-height: 44px;
}

.analytics-consent__decline {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.56);
    color: var(--text);
}

@media (min-width: 760px) {
    .analytics-consent {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}

/* Планшеты и компьютеры */

@media (min-width: 760px) {
    .site-nav {
        display: flex;
    }

    main {
        padding: 70px 0 100px;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        min-height: 0;
        align-items: start;
        padding: 26px 0 18px;
    }

    .hero__content {
        align-self: start;
    }
.section-heading {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
        align-items: end;
        gap: 48px;
    }

    .situations,
    .how-it-works,
    .districts {
        margin-top: 88px;
        padding-top: 64px;
    }

    .situations__grid,
    .how-it-works__grid,
    .districts__grid,
    .trust__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .situations__grid {
        gap: 14px;
        margin-top: 42px;
    }

    .how-it-works__grid {
        gap: 14px;
        margin-top: 44px;
    }

    .districts__grid {
        gap: 14px;
        margin-top: 44px;
    }

    .district-card {
        min-height: 195px;
        padding: 24px;
    }

    .how-it-works__grid::before {
        content: "";
        position: absolute;
        top: 41px;
        right: 14%;
        left: 14%;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(200, 148, 50, 0.25) 15%,
            rgba(200, 148, 50, 0.25) 85%,
            transparent
        );
    }

    .step {
        z-index: 1;
        min-height: 225px;
        background: rgba(247, 244, 236, 0.88);
    }

    .trust {
        margin-top: 96px;
        padding: 48px;
    }

    .trust__grid {
        gap: 12px;
        margin-top: 42px;
    }

    .trust-item {
        min-height: 205px;
        padding: 24px;
    }
}

@media (min-width: 1050px) {
    .site-header__inner {
        min-height: 82px;
    }

    .hero {
        min-height: 0;
        padding: 30px 0 22px;
    }
.hero__content {
        padding-bottom: 0;
    }
}

/* Уменьшение анимации по системной настройке */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .site-nav a,
    .situation-card,
    .situation-card::before,
    .situation-card::after {
        transition: none;
    }

    .button:hover,
    .situation-card:hover,
    .situation-card:focus-visible {
        transform: none;
    }
}

@media (max-width: 759px) {
    .hero__note--single-line {
        display: block;
        width: max-content;
        max-width: 100%;
        white-space: nowrap;
        font-size: clamp(0.66rem, 2.75vw, 0.78rem);
        letter-spacing: -0.022em;
    }

    .hero__content {
        max-width: none;
    }
}

@media (max-width: 759px) {
    .situations {
        margin-top: 20px;
        padding-top: 36px;
    }
}

@media (max-width: 759px) {
    .how-it-works {
        margin-top: 44px;
        padding-top: 40px;
    }
}

@media (max-width: 759px) {
    .trust {
        margin-top: 56px;
    }
}

@media (max-width: 759px) {
    main {
        padding-bottom: 44px;
    }
}

@media (max-width: 759px) {
    .districts {
        margin-top: 44px;
        padding-top: 40px;
    }

    .district-card {
        min-height: 0;
    }
}

/* Деликатный световой акцент на рамках */

.situation-card,
.step,
.district-card {
    border-color: rgba(200, 148, 50, 0.24);
}

.trust-item {
    border-color: rgba(231, 199, 123, 0.22);
}

.button--secondary {
    border-color: rgba(200, 148, 50, 0.28);
}

/* Маршрут: Долги и кредиты */

.route-hero {
    scroll-margin-top: 24px;
}

.route-stages__grid {
    align-items: stretch;
}

.route-stage-card {
    width: 100%;
    color: var(--text);
    font: inherit;
    text-align: left;
}

button.route-stage-card {
    cursor: pointer;
}

.route-stage-card--active {
    border-color: rgba(200, 148, 50, 0.40);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.44)),
        var(--surface);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.route-stage-card--active:hover,
.route-stage-card--active:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(200, 148, 50, 0.55);
    box-shadow: var(--shadow-soft);
}

.route-stage-card--future {
    opacity: 0.74;
}


.route-stage-card__action,
.route-stage-card__note {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 20px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 750;
}

.route-stage-card__note {
    color: var(--muted);
    font-weight: 650;
}

.route-flow,
.route-result {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 24px;
}

.route-flow__topline {
    display: grid;
    gap: 24px;
}

.route-flow__topline h2,
.route-result h2 {
    margin: 0;
    max-width: 800px;
    font-size: clamp(2rem, 7vw, 3.7rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.route-flow__intro {
    margin: 20px 0 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 1rem;
}

.route-progress {
    display: grid;
    gap: 9px;
    width: min(100%, 260px);
}

.route-progress__label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.route-progress__track {
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(19, 33, 43, 0.08);
}

.route-progress__bar {
    display: block;
    width: 16.666%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.24s ease;
}

.route-questions {
    margin-top: 34px;
}

.route-question {
    max-width: 830px;
    padding: 26px 22px 24px;
    border: 1px solid rgba(200, 148, 50, 0.24);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.42)),
        var(--surface);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.route-question__number {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.10em;
}

.route-question h3 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(1.45rem, 5.8vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.route-question h3:focus {
    outline: none;
}

.route-question__hint {
    margin: 14px 0 0;
    max-width: 620px;
    color: var(--muted);
    font-size: 0.92rem;
}

.route-options {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.route-option {
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.route-option:hover,
.route-option:focus-visible,
.route-option--selected {
    transform: translateY(-2px);
    border-color: rgba(200, 148, 50, 0.48);
    background: rgba(255, 255, 255, 0.92);
}

.route-option--selected {
    box-shadow: 0 0 0 3px rgba(200, 148, 50, 0.08);
}

.route-flow__privacy-note {
    display: grid;
    gap: 5px;
    margin: 18px 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(200, 148, 50, 0.28);
    border-radius: 16px;
    background: rgba(255, 253, 247, 0.72);
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.route-flow__privacy-note strong {
    color: var(--ink);
    font-size: 0.9rem;
}

.route-flow__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 830px;
    margin-top: 18px;
}

.route-result__heading {
    max-width: 820px;
}

.route-result__lead {
    margin: 22px 0 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.05rem;
}

.route-result__grid {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.route-result__panel {
    padding: 22px;
    border: 1px solid rgba(200, 148, 50, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.46);
}

.route-result__panel h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.route-factor-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 0.92rem;
}

.route-marks {
    display: grid;
    gap: 10px;
}

.route-mark {
    padding: 14px 15px;
    border-left: 3px solid rgba(200, 148, 50, 0.58);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.52);
}

.route-mark strong {
    display: block;
    font-size: 0.9rem;
}

.route-mark p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.route-result__boundary {
    max-width: 830px;
    margin-top: 20px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--night);
    color: #f4f1e8;
}

.route-result__boundary strong {
    color: #fffdf7;
}

.route-result__boundary p {
    margin: 7px 0 0;
    color: rgba(244, 241, 232, 0.70);
    font-size: 0.9rem;
}

.route-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.route-principle {
    margin-top: 72px;
}

@media (min-width: 760px) {
    .route-flow,
    .route-result {
        margin-top: 88px;
        padding-top: 64px;
    }

    .route-flow__topline {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 48px;
    }

    .route-question {
        padding: 34px;
    }

    .route-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-result__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 930px;
    }
}

@media (max-width: 759px) {
    .route-flow,
    .route-result {
        margin-top: 44px;
        padding-top: 40px;
    }

    .route-stage-card--future {
        min-height: 0;
    }

    .route-progress {
        width: 100%;
    }

    .route-flow__controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .route-result__actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .route-stage-card--active,
    .route-option,
    .route-progress__bar {
        transition: none;
    }

    .route-stage-card--active:hover,
    .route-stage-card--active:focus-visible,
    .route-option:hover,
    .route-option:focus-visible,
    .route-option--selected {
        transform: none;
    }
}


/* Карта подходящих вариантов после текущей точки */

.route-paths {
    max-width: 1000px;
    margin-top: 34px;
}

.route-paths__heading {
    display: grid;
    gap: 14px;
}

.route-paths__heading h3 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.7rem, 6vw, 2.8rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.route-paths__intro {
    margin: 0;
    max-width: 620px;
    color: var(--muted);
    font-size: 0.96rem;
}

.route-paths__grid {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.route-path-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(200, 148, 50, 0.24);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38)),
        var(--surface);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
}

.route-path-card::after {
    content: "";
    position: absolute;
    top: -44px;
    right: -44px;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(200, 148, 50, 0.10);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(200, 148, 50, 0.018);
    pointer-events: none;
}

.route-path-card__number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(200, 148, 50, 0.22);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.route-path-card h4 {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    max-width: 92%;
    font-size: 1.15rem;
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.route-path-card__summary {
    position: relative;
    z-index: 1;
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.62;
}

.route-path-card__summary--context {
    margin-top: 8px;
}

.route-path-card__caution {
    position: relative;
    z-index: 1;
    margin: 16px 0 0;
    padding: 13px 14px;
    border-left: 3px solid rgba(200, 148, 50, 0.50);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.48);
    color: #53616a;
}

.route-path-card__caution strong {
    display: block;
    color: var(--text);
    font-size: 0.78rem;
}

.route-path-card__caution p {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
}

.route-result__human-note {
    margin: 18px 0 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.route-paths__closing {
    margin: 20px 0 0;
    max-width: 820px;
    padding: 17px 18px;
    border: 1px solid rgba(200, 148, 50, 0.20);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.36);
}

.route-paths__closing strong {
    font-size: 0.9rem;
}

.route-paths__closing p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

@media (min-width: 760px) {
    .route-paths {
        margin-top: 42px;
    }

    .route-paths__heading {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
        align-items: end;
        gap: 44px;
    }

    .route-paths__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 30px;
    }

    .route-path-card {
        min-height: 390px;
        padding: 26px;
    }
}


/* Глубокая дорога: изменение условий текущего кредита */

.route-path-card__action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 148, 50, 0.45);
    padding-bottom: 2px;
}

.route-path-card__action:hover,
.route-path-card__action:focus-visible {
    color: #8b6218;
}

.path-detail-hero .hero__content {
    max-width: 870px;
}

.path-detail-intro,
.path-detail-section,
.path-sources {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
    scroll-margin-top: 24px;
}

.path-detail-intro {
    display: grid;
    gap: 18px;
}

.path-detail-intro__main h2,
.path-detail-heading h2,
.path-sources h2 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(1.9rem, 6.5vw, 3.35rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.path-detail-intro__main > p:last-child,
.path-detail-heading > p,
.path-sources > div > p:last-child {
    margin: 20px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
}

.path-detail-note {
    padding: 20px;
    border: 1px solid rgba(200, 148, 50, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.48);
}

.path-detail-note strong {
    display: block;
    font-size: 0.9rem;
}

.path-detail-note p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.path-detail-heading {
    display: grid;
    gap: 16px;
}

.path-detail-heading--solo {
    grid-template-columns: minmax(0, 1fr);
}

.path-detail-steps,
.path-next-grid {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.path-detail-step,
.path-next-grid article {
    padding: 22px;
    border: 1px solid rgba(200, 148, 50, 0.22);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.46);
}

.path-detail-step > span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 148, 50, 0.30);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 850;
}

.path-detail-step h3,
.path-next-grid h3 {
    margin: 18px 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.path-detail-step p,
.path-next-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.62;
}

.path-detail-section--dark {
    position: relative;
    overflow: hidden;
    padding: 30px 22px;
    border: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--night-soft), var(--night));
    color: #f4f1e8;
}

.path-detail-section--dark::after {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(231, 199, 123, 0.10);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(231, 199, 123, 0.022);
    pointer-events: none;
}

.path-detail-heading--light h2 {
    color: #fffdf7;
}

.path-detail-script {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    max-width: 850px;
    padding: 20px;
    border: 1px solid rgba(231, 199, 123, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.path-detail-script p {
    margin: 0;
    color: rgba(244, 241, 232, 0.78);
    font-size: 0.98rem;
    line-height: 1.72;
}

.path-compare {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) repeat(2, minmax(0, 1fr));
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.42);
}

.path-compare > div {
    padding: 14px 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.path-compare > div:nth-child(3n) {
    border-right: 0;
}

.path-compare > div:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.path-compare__head,
.path-compare__label {
    color: var(--text) !important;
    font-weight: 800;
}

.path-compare__head {
    background: rgba(200, 148, 50, 0.07);
}

.path-detail-warning {
    margin-top: 22px;
    max-width: 860px;
    padding: 17px 18px;
    border-left: 3px solid rgba(200, 148, 50, 0.60);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.48);
}

.path-detail-warning strong {
    font-size: 0.9rem;
}

.path-detail-warning p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.path-question-list {
    display: grid;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: path-question;
}

.path-question-list li {
    counter-increment: path-question;
    position: relative;
    padding: 18px 18px 18px 58px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.38);
}

.path-question-list li::before {
    content: counter(path-question);
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 148, 50, 0.25);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 850;
}

.path-question-list strong,
.path-question-list span {
    display: block;
}

.path-question-list strong {
    font-size: 0.92rem;
}

.path-question-list span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.path-sources {
    display: grid;
    gap: 24px;
}

.path-source-links {
    display: grid;
    gap: 10px;
}

.path-source-links a {
    display: block;
    padding: 15px 16px;
    border: 1px solid rgba(200, 148, 50, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
}

.path-source-links a:hover,
.path-source-links a:focus-visible {
    border-color: rgba(200, 148, 50, 0.48);
    background: rgba(255, 255, 255, 0.70);
}

.path-detail-principle {
    margin-top: 72px;
}

@media (min-width: 760px) {
    .path-detail-intro,
    .path-detail-heading,
    .path-sources {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
        align-items: start;
        gap: 48px;
    }

    .path-detail-heading--solo {
        grid-template-columns: minmax(0, 1fr);
    }

    .path-detail-intro,
    .path-detail-section,
    .path-sources {
        margin-top: 88px;
        padding-top: 64px;
    }

    .path-detail-section--dark {
        padding: 48px;
        border: 0;
    }

    .path-detail-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 38px;
    }

    .path-next-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .path-detail-step {
        min-height: 220px;
        padding: 26px;
    }

    .path-sources {
        align-items: start;
    }
}

@media (max-width: 759px) {
    .path-detail-intro,
    .path-detail-section,
    .path-sources {
        margin-top: 48px;
        padding-top: 40px;
    }

    .path-detail-section--dark {
        margin-top: 48px;
        padding: 28px 20px;
    }

    .path-compare {
        grid-template-columns: 1fr;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .path-compare > div,
    .path-compare > div:nth-child(3n),
    .path-compare > div:nth-last-child(-n + 3) {
        border: 1px solid var(--border);
        border-bottom: 0;
        background: rgba(255, 255, 255, 0.42);
    }

    .path-compare > div:nth-child(3n) {
        margin-bottom: 14px;
        border-bottom: 1px solid var(--border);
        border-radius: 0 0 12px 12px;
    }

    .path-compare > div:nth-child(3n - 2) {
        border-radius: 12px 12px 0 0;
        background: rgba(200, 148, 50, 0.08);
    }

    .path-compare__head {
        display: none;
    }
}

/* Deep path: support measures */
.support-choice-grid {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.support-choice {
    display: block;
    padding: 22px;
    border: 1px solid rgba(200, 148, 50, 0.22);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.46);
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.support-choice:hover,
.support-choice:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(200, 148, 50, 0.48);
    background: rgba(255, 255, 255, 0.72);
}

.support-choice > span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 148, 50, 0.28);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 850;
}

.support-choice h3 {
    margin: 16px 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.support-choice p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.62;
}

.support-limit-grid {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.support-limit-grid article {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
}

.support-limit-grid strong,
.support-limit-grid span {
    display: block;
}

.support-limit-grid strong {
    font-size: 1.3rem;
    letter-spacing: -0.025em;
}

.support-limit-grid span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.support-light-copy {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(244, 241, 232, 0.76);
    line-height: 1.7;
}

.support-dark-checks {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.support-dark-checks article {
    padding: 20px;
    border: 1px solid rgba(231, 199, 123, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.support-dark-checks span {
    color: #e7c77b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.support-dark-checks h3 {
    margin: 10px 0 8px;
    color: #fffdf7;
    font-size: 1.02rem;
    line-height: 1.38;
}

.support-dark-checks p {
    margin: 0;
    color: rgba(244, 241, 232, 0.70);
    font-size: 0.88rem;
    line-height: 1.62;
}

.support-dark-note {
    margin-top: 18px;
}

.support-upcoming {
    padding: 30px 22px;
    border: 1px solid rgba(200, 148, 50, 0.28);
    border-radius: var(--radius-lg);
    background: rgba(200, 148, 50, 0.055);
}

.path-next-grid .route-path-card__action {
    margin-top: 16px;
}

@media (min-width: 760px) {
    .support-choice-grid,
    .support-dark-checks,
    .support-limit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .support-choice,
    .support-limit-grid article {
        min-height: 190px;
    }

    .support-upcoming {
        padding: 40px;
    }
}

/* Fixed Lighthouse navigation: an always-visible exit from deep routes */
.lighthouse-nav__toggle {
    position: fixed;
    top: 16px;
    right: clamp(14px, 2.2vw, 30px);
    z-index: 120;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(231, 199, 123, 0.16);
    border-radius: 16px;
    background: rgba(15, 29, 37, 0.94);
    box-shadow: 0 10px 30px rgba(12, 24, 31, 0.18);
    color: #fffdf7;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lighthouse-nav__toggle:hover,
.lighthouse-nav__toggle:focus-visible {
    border-color: rgba(231, 199, 123, 0.42);
    background: #10202a;
}

.lighthouse-nav__bars {
    display: grid;
    gap: 5px;
    width: 21px;
}

.lighthouse-nav__bars span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.lighthouse-nav__overlay {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(6, 13, 17, 0.52);
    opacity: 0;
    transition: opacity 180ms ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.lighthouse-nav__overlay.is-open {
    opacity: 1;
}

.lighthouse-nav__drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 140;
    width: min(390px, 90vw);
    height: 100dvh;
    overflow-y: auto;
    padding: 24px 20px 28px;
    border-left: 1px solid rgba(231, 199, 123, 0.18);
    background:
        radial-gradient(circle at 110% -5%, rgba(200, 148, 50, 0.16), transparent 34%),
        #0f1d25;
    color: #f7f4ec;
    box-shadow: -22px 0 50px rgba(5, 12, 16, 0.26);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.lighthouse-nav__drawer.is-open {
    opacity: 1;
    transform: translateX(0);
}

.lighthouse-nav-open {
    overflow: hidden;
}

.lighthouse-nav__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(231, 199, 123, 0.14);
}

.lighthouse-nav__eyebrow,
.lighthouse-nav__current-label,
.lighthouse-nav__current {
    margin: 0;
}

.lighthouse-nav__eyebrow {
    color: #e7c77b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.lighthouse-nav__current-label {
    margin-top: 15px;
    color: rgba(244, 241, 232, 0.52);
    font-size: 0.72rem;
}

.lighthouse-nav__current {
    margin-top: 3px;
    max-width: 270px;
    color: #fffdf7;
    font-size: 0.98rem;
    font-weight: 760;
    line-height: 1.42;
}

.lighthouse-nav__close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(231, 199, 123, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fffdf7;
    font: inherit;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.lighthouse-nav__links {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.lighthouse-nav__link {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 14px 13px;
    border: 1px solid rgba(231, 199, 123, 0.11);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: #f7f4ec;
    text-decoration: none;
}

.lighthouse-nav__link:hover,
.lighthouse-nav__link:focus-visible {
    border-color: rgba(231, 199, 123, 0.30);
    background: rgba(255, 255, 255, 0.065);
}

.lighthouse-nav__link--accent {
    border-color: rgba(231, 199, 123, 0.25);
    background: rgba(200, 148, 50, 0.08);
}

.lighthouse-nav__link > span:first-child {
    color: #e7c77b;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.lighthouse-nav__link strong,
.lighthouse-nav__link small {
    display: block;
}

.lighthouse-nav__link strong {
    color: #fffdf7;
    font-size: 0.9rem;
    line-height: 1.35;
}

.lighthouse-nav__link small {
    margin-top: 4px;
    color: rgba(244, 241, 232, 0.60);
    font-size: 0.75rem;
    line-height: 1.45;
}

.lighthouse-nav__top {
    display: inline-flex;
    margin-top: 24px;
    color: #e7c77b;
    font-size: 0.82rem;
    font-weight: 760;
    text-decoration: none;
}


@media (max-width: 759px) {
    .lighthouse-nav__toggle {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

    .lighthouse-nav__drawer {
        width: min(360px, 88vw);
        padding: 20px 16px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lighthouse-nav__overlay,
    .lighthouse-nav__drawer {
        transition: none;
    }
}

@media (max-width: 759px) {
    .lighthouse-nav + .site-header .site-status {
        display: none;
    }
}

.lighthouse-nav__link[hidden] {
    display: none;
}


/* Мир Маяка 1.0 — каталоги, guide-шаблон и мастерская */
.release-badge{display:inline-flex;margin:12px 0 0;padding:7px 11px;border:1px solid rgba(200,148,50,.28);border-radius:999px;color:var(--muted);font-size:.76rem;font-weight:750;background:rgba(255,255,255,.42)}
.situations__grid--v1{grid-template-columns:1fr}
.district-card--link{display:block;color:inherit;text-decoration:none;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.district-card--link:hover,.district-card--link:focus-visible{transform:translateY(-3px);border-color:rgba(200,148,50,.48);box-shadow:var(--shadow-soft)}
.district-card--link span{position:relative;z-index:1;display:inline-flex;margin-top:18px;font-size:.82rem;font-weight:780;color:var(--accent-dark)}
.route-stage-card--link{display:block;text-decoration:none}
.path-detail-section--soft{background:rgba(255,255,255,.22);border-radius:var(--radius-xl);padding-left:clamp(16px,4vw,34px);padding-right:clamp(16px,4vw,34px)}
.directory-hero{min-height:auto;padding-bottom:22px}
.directory-section,.source-directory{width:min(100% - 32px,var(--content-width));margin:58px auto 0;padding-top:48px;border-top:1px solid var(--border)}
.directory-grid,.glossary-grid{display:grid;gap:14px}
.directory-card,.glossary-card{padding:22px;border:1px solid rgba(200,148,50,.24);border-radius:var(--radius-lg);background:rgba(255,255,255,.52)}
.directory-card h2,.glossary-card h2{margin:8px 0 10px;font-size:1.35rem;line-height:1.12}
.directory-card p,.glossary-card p{margin:0;color:var(--muted);line-height:1.65}
.directory-links{display:grid;gap:7px;margin-top:20px}.directory-links a{color:var(--text);font-weight:760;text-decoration:none}.directory-links a:hover{text-decoration:underline}
.glossary-card>span{display:inline-flex;color:var(--accent-dark);font-size:.76rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.source-directory__links{margin-top:28px}
.tool-shell{width:min(100% - 32px,var(--content-width));margin:62px auto 0;padding:clamp(18px,4vw,34px);border:1px solid rgba(200,148,50,.25);border-radius:var(--radius-xl);background:rgba(255,255,255,.48)}
.tool-shell__heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:18px}.tool-shell__heading h2{margin:6px 0 0;font-size:clamp(1.8rem,6vw,3rem)}
.tool-privacy{display:grid;gap:5px;margin:24px 0 16px;padding:14px 16px;border-radius:16px;background:rgba(16,32,42,.06);color:var(--muted);font-size:.86rem}.tool-privacy strong{color:var(--text)}
.debt-table-wrap{overflow-x:auto}.debt-table{width:100%;min-width:820px;border-collapse:collapse}.debt-table th,.debt-table td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.debt-table th{color:var(--muted);font-size:.75rem}.debt-table input,.debt-table select{width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.78);color:var(--text);font:inherit}.debt-row-remove{width:40px;height:40px;border:0;border-radius:50%;background:rgba(19,33,43,.07);font-size:1.3rem;cursor:pointer}.debt-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.debt-summary article{padding:16px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.58)}.debt-summary span{display:block;color:var(--muted);font-size:.76rem}.debt-summary strong{display:block;margin-top:4px;font-size:1.45rem}.tool-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
@media(min-width:760px){.situations__grid--v1{grid-template-columns:repeat(3,1fr)}.directory-grid,.glossary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:759px){.debt-summary{grid-template-columns:1fr}.directory-section,.source-directory{margin-top:42px;padding-top:36px}}

/* === Смотрительская: закрытая служебная панель === */
.steward-page {
  margin: 0;
  background: #0d1b23;
  color: #f8f4e9;
  min-height: 100vh;
}

.steward-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.steward-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid rgba(231, 199, 123, .22);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(31, 55, 63, .96), rgba(15, 35, 43, .98));
}

.steward-hero h1,
.steward-card h2 {
  margin: 0;
}

.steward-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: .98;
  max-width: 720px;
}

.steward-eyebrow,
.steward-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  color: #e7c77b;
}

.steward-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #c7d1d5;
  line-height: 1.55;
}

.steward-release {
  min-width: 150px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.steward-release span,
.steward-release small,
.steward-kpi span,
.steward-kpi small {
  color: #9fb0b7;
}

.steward-release strong {
  font-size: 22px;
}

.steward-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.steward-grid--kpi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steward-grid--main {
  grid-template-columns: 1.35fr .65fr;
}

.steward-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(231, 199, 123, .18);
  background: #13262f;
}

.steward-kpi {
  display: grid;
  gap: 5px;
}

.steward-kpi strong {
  font-size: 36px;
  line-height: 1;
  color: #fff;
}

.steward-kpi--device {
  border-color: rgba(200, 148, 50, .30);
}

.steward-kpi--device > span {
  color: #d8b665;
}

.steward-card__head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.steward-badge {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #c8d2d6;
  font-size: 12px;
  font-weight: 700;
}

.steward-badge--ok {
  background: rgba(96, 180, 136, .14);
  color: #9fe0bc;
}

.steward-badge--warn {
  background: rgba(231, 199, 123, .13);
  color: #f1d99e;
}

.steward-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.steward-day {
  min-height: 76px;
  padding: 11px 8px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255,255,255,.045);
}

.steward-day span {
  color: #91a4ad;
  font-size: 12px;
}

.steward-day strong {
  font-size: 23px;
}

.steward-note,
.steward-copy {
  margin: 16px 0 0;
  color: #aebdc3;
  line-height: 1.5;
  font-size: 14px;
}

.steward-top-pages {
  display: grid;
  gap: 8px;
}

.steward-top-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.steward-top-row code {
  overflow-wrap: anywhere;
  color: #e7edf0;
  background: none;
}

.steward-top-row strong {
  color: #e7c77b;
}

.steward-facts {
  margin: 16px 0 0;
  display: grid;
  gap: 0;
}

.steward-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.steward-facts dt {
  color: #aebdc3;
}

.steward-facts dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.steward-actions {
  margin-top: 16px;
}

.steward-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.steward-links a,
.steward-reset button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(231, 199, 123, .22);
  background: rgba(255,255,255,.05);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.steward-reset {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.steward-reset button {
  color: #f1d99e;
}

.steward-reset small {
  max-width: 620px;
  color: #8fa2aa;
  line-height: 1.4;
}

.steward-messages {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(96, 180, 136, .12);
  color: #bde8cf;
}

.steward-messages p { margin: 0; }

@media (max-width: 820px) {
  .steward-shell { width: min(100% - 20px, 720px); padding-top: 10px; }
  .steward-hero { padding: 22px; flex-direction: column; border-radius: 22px; }
  .steward-release { width: 100%; box-sizing: border-box; }
  .steward-grid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steward-grid--main { grid-template-columns: 1fr; }
  .steward-week { grid-template-columns: repeat(7, minmax(42px, 1fr)); overflow-x: auto; }
  .steward-reset { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .steward-grid--kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steward-card { padding: 17px; border-radius: 18px; }
  .steward-kpi strong { font-size: 30px; }
  .steward-card__head { flex-direction: column; }
  .steward-links { display: grid; }
  .steward-links a, .steward-reset button { width: 100%; box-sizing: border-box; justify-content: center; }
}


.steward-grid--engagement-kpi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steward-kpi--engagement strong {
  font-size: clamp(28px, 4vw, 42px);
  color: #e7c77b;
}

.steward-engagement { margin-top: 16px; }

.steward-table-wrap { overflow-x: auto; }
.steward-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 14px;
}
.steward-table th,
.steward-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: top;
}
.steward-table th { color: #9fb0b7; font-size: 12px; font-weight: 800; }
.steward-table td:not(:first-child) { white-space: nowrap; }
.steward-table code { color: #e7edf0; background: none; overflow-wrap: anywhere; }

.steward-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.steward-section-stat {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.steward-section-stat > strong { color: #f8f4e9; }
.steward-section-stat > span { color: #e7c77b; font-weight: 800; }
.steward-section-stat > small { color: #9fb0b7; line-height: 1.45; }

@media (max-width: 620px) {
  .steward-grid--engagement-kpi, .steward-section-grid { grid-template-columns: 1fr; }
}


/* Owner-only login */
.steward-login-page { min-height: 100vh; }
.steward-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  width: min(100% - 28px, 560px);
  margin: 0 auto;
  padding: 32px 0;
  box-sizing: border-box;
}
.steward-login-card {
  width: 100%;
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid rgba(231,199,123,.22);
  border-radius: 28px;
  background: #13262f;
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.steward-login-card h1 { margin: 0; font-size: clamp(32px, 8vw, 52px); line-height: 1; }
.steward-login-form { display: grid; gap: 10px; margin-top: 28px; }
.steward-login-form label { color: #d8e1e4; font-weight: 750; }
.steward-login-form input {
  min-height: 50px;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(231,199,123,.28);
  border-radius: 14px;
  padding: 11px 13px;
  background: #0f2028;
  color: #fff;
  font: inherit;
}
.steward-login-form button,
.steward-logout button {
  min-height: 46px;
  border: 1px solid rgba(231,199,123,.28);
  border-radius: 13px;
  padding: 10px 14px;
  background: #e7c77b;
  color: #10202a;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.steward-login-error { margin: 2px 0 0; color: #ffd1c9; font-weight: 750; }
.steward-login-home { display: inline-block; margin-top: 22px; color: #c9d4d8; text-decoration: none; }
.steward-logout { margin-top: 12px; }
.steward-logout button { background: transparent; color: #c9d4d8; }

/* === RC2 polish: brand header, clearer districts, official actions, debt-map continuation === */
:root { --accent-dark: #a36d12; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(19, 33, 43, 0.09);
    background: rgba(247, 244, 236, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header__inner {
    position: relative;
    width: min(100% - 32px, var(--content-width));
    margin: 0 auto;
    min-height: 72px;
    border-bottom: 0;
    padding-right: 58px;
}

.site-header__brand {
    min-width: 0;
    gap: 11px;
}

.site-header__brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.08;
}

.site-header__brand-copy strong {
    color: var(--text);
    font-size: 1rem;
    font-weight: 820;
}

.site-header__brand-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.site-status {
    margin-left: auto;
}

/* The status must stay visible on mobile; the hamburger already owns the far-right corner. */
.lighthouse-nav + .site-header .site-status { display: inline-flex; }

.lighthouse-nav__toggle { top: 12px; }

.district-card--link,
.directory-card {
    border-color: rgba(200, 148, 50, 0.34);
    background:
        linear-gradient(145deg, rgba(255,255,255,.84), rgba(255,251,242,.58)),
        var(--surface);
}

.district-card h3,
.directory-card h2 {
    color: var(--accent-dark);
}

.district-card--link span,
.directory-links a {
    color: var(--accent-dark);
    font-weight: 820;
}

.directory-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(200, 148, 50, 0.14);
}

.directory-links a:last-child { border-bottom: 0; }

.official-actions {
    width: min(100% - 32px, var(--content-width));
    margin: 62px auto 0;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.official-actions__grid {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.official-action-card {
    display: grid;
    gap: 7px;
    padding: 20px;
    border: 1px solid rgba(200, 148, 50, 0.30);
    border-radius: 18px;
    background: rgba(255,255,255,.66);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
}

.official-action-card strong { font-size: 1.05rem; }
.official-action-card span { color: var(--muted); line-height: 1.55; }
.official-action-card em { color: var(--accent-dark); font-style: normal; font-weight: 820; }
.official-action-card:hover,
.official-action-card:focus-visible { border-color: rgba(200,148,50,.60); box-shadow: var(--shadow-soft); }

.debt-next {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.debt-next h2 {
    margin: 0;
    font-size: clamp(1.65rem, 5vw, 2.5rem);
    line-height: 1.08;
}

.debt-next > p:not(.section-eyebrow):not(.debt-next__note) {
    max-width: 760px;
    color: var(--muted);
}

.debt-next__grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.debt-next-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid rgba(200,148,50,.28);
    border-radius: 16px;
    background: rgba(255,255,255,.64);
    color: var(--text);
    text-decoration: none;
}

.debt-next-card[hidden] { display: none; }
.debt-next-card strong { font-size: 1rem; }
.debt-next-card span { color: var(--muted); }
.debt-next-card em { color: var(--accent-dark); font-style: normal; font-weight: 820; }
.debt-next-card--attention { border-color: rgba(200,148,50,.52); background: rgba(255,250,236,.86); }
.debt-next__note { margin: 18px 0 0; color: var(--muted); font-size: .84rem; }

.partner-offer {
    width: min(100% - 32px, var(--content-width));
    margin: 62px auto 0;
    padding: 26px;
    border: 1px solid rgba(200,148,50,.30);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.68);
}

.partner-offer__label {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 5px 9px;
    border: 1px solid rgba(200,148,50,.32);
    border-radius: 999px;
    color: var(--accent-dark);
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.partner-offer h2 { margin: 0 0 8px; }
.partner-offer > p:not(.section-eyebrow):not(.partner-offer__label) { color: var(--muted); }
.partner-offer__note { font-size: .84rem; }

@media (min-width: 760px) {
    .site-nav { display: flex; margin-left: auto; }
    .site-status { margin-left: 6px; }
    .official-actions__grid,
    .debt-next__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
    .site-header__inner { min-height: 70px; padding-right: 56px; gap: 8px; }
    .site-header__brand-copy small { font-size: .62rem; }
    .site-beacon-signal { width: 120px; height: 46px; flex-basis: 120px; margin-left: auto; }
    .site-status { font-size: .68rem; gap: 5px; }
    .site-status__dot { width: 5px; height: 5px; }
    .official-actions { margin-top: 44px; padding-top: 36px; }
    .official-action-card { padding: 17px; }
}

@media (max-width: 390px) {
    .site-header__brand-copy strong { font-size: .94rem; }
    .site-header__brand-copy small { font-size: .58rem; }
    .site-beacon-signal { width: 115px; height: 44px; flex-basis: 115px; }
    .site-status { font-size: .63rem; }
}

@media (max-width: 350px) {
    .site-header__inner { gap: 6px; }
    .site-header__brand { gap: 8px; }
    .site-header__brand-copy small { display: none; }
    .site-beacon-signal { width: 108px; height: 42px; flex-basis: 108px; }
}

/* === RC2: personal-data legal route === */
.pd-actions {
    display: grid;
    width: min(100% - 32px, var(--content-width));
    margin: 34px auto 0;
    gap: 12px;
}

.pd-actions a {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid rgba(200,148,50,.28);
    border-radius: 17px;
    background: rgba(255,255,255,.68);
    color: var(--text);
    text-decoration: none;
}

.pd-actions a strong { font-size: 1rem; color: var(--accent-dark); }
.pd-actions a span { color: var(--muted); line-height: 1.5; }
.pd-actions a:hover,
.pd-actions a:focus-visible { border-color: rgba(200,148,50,.58); box-shadow: var(--shadow-soft); }

.pd-consequences {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.pd-consequences article {
    padding: 18px;
    border: 1px solid rgba(200,148,50,.20);
    border-radius: 16px;
    background: rgba(255,255,255,.58);
}

.pd-consequences h3 { margin: 0 0 7px; font-size: 1.02rem; }
.pd-consequences p { margin: 0; color: var(--muted); line-height: 1.58; }

.pd-templates {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.pd-template {
    overflow: hidden;
    border: 1px solid rgba(200,148,50,.28);
    border-radius: 18px;
    background: rgba(255,255,255,.66);
}

.pd-template summary {
    display: grid;
    gap: 5px;
    padding: 18px 48px 18px 18px;
    cursor: pointer;
    position: relative;
    list-style: none;
}

.pd-template summary::-webkit-details-marker { display: none; }
.pd-template summary::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-dark);
    font-size: 1.45rem;
    font-weight: 700;
}
.pd-template[open] summary::after { content: '−'; }
.pd-template summary strong { color: var(--text); }
.pd-template summary span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.pd-template__body { padding: 0 18px 18px; border-top: 1px solid rgba(19,33,43,.08); }
.pd-template pre {
    margin: 16px 0 12px;
    padding: 16px;
    overflow-x: auto;
    border-radius: 14px;
    background: #f4f0e7;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: .88rem;
    line-height: 1.55;
}
.pd-copy {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(200,148,50,.46);
    border-radius: 12px;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    font-weight: 820;
    cursor: pointer;
}
.pd-copy:hover,
.pd-copy:focus-visible { background: rgba(231,199,123,.18); }
.pd-template__note { margin: 12px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.pd-template__external { display: inline-flex; margin-top: 14px; }

@media (min-width: 760px) {
    .pd-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-consequences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* RC2: roads of opportunity */
.directory-group-title {
    margin: 22px 0 2px !important;
    color: var(--accent-dark) !important;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.opportunity-grid {
    margin-top: 26px;
}
.opportunities-home {
    margin-top: 72px;
}
@media (max-width: 759px) {
    .opportunities-home { margin-top: 54px; }
}


/* === RC3 acceptance: status light + cleaner district hierarchy === */
.site-status {
    color: var(--accent-dark);
    font-weight: 800;
    text-shadow: 0 0 12px rgba(200, 148, 50, 0.30);
    cursor: default;
    user-select: none;
}

.site-status__dot {
    background: var(--accent);
    box-shadow:
        0 0 0 4px rgba(200, 148, 50, 0.10),
        0 0 12px rgba(200, 148, 50, 0.58);
}

/* The district name is the gold landmark. Roads are calm dark text. */
.directory-card .section-eyebrow {
    margin-bottom: 10px;
    color: var(--accent-dark);
}

.directory-card h2 {
    color: var(--text);
}

.directory-card--finance .directory-links,
.directory-card--hard-times .directory-links {
    margin-top: 4px;
}

.directory-links a {
    color: var(--text);
    font-weight: 760;
}

.directory-links a:hover,
.directory-links a:focus-visible {
    color: var(--accent-dark);
}

/* === RC3 full test package: calm district system === */
.financial-home {
    margin-top: 72px;
}

.district-card {
    min-height: 0;
    padding: 22px;
    border-color: rgba(19, 33, 43, 0.12);
    background: rgba(255, 255, 255, 0.60);
    box-shadow: none;
}

.district-card::after {
    display: none;
}

.district-card--link {
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.district-card--link:hover,
.district-card--link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(19, 33, 43, 0.20);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 32px rgba(32, 39, 41, 0.06);
}

.district-card h3 {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 1.08rem;
    font-weight: 820;
}

.district-card p {
    color: var(--muted);
}

.district-card--link > span {
    margin-top: 16px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 760;
}

.district-card--link > span b {
    margin-left: 6px;
    color: var(--accent-dark);
    font-weight: 850;
}

.directory-card {
    scroll-margin-top: 98px;
    padding: 22px;
    border: 1px solid rgba(19, 33, 43, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.60);
    box-shadow: none;
}

.directory-card h2 {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 1.16rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.directory-card--finance .directory-links,
.directory-card--hard-times .directory-links,
.directory-links {
    margin-top: 0;
    gap: 0;
}

.directory-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(19, 33, 43, 0.08);
    color: var(--text);
    font-size: .94rem;
    font-weight: 680;
    line-height: 1.35;
    text-decoration: none;
}

.directory-links a:last-child {
    border-bottom: 0;
}

.directory-links a > span {
    margin-left: auto;
    color: var(--accent-dark);
    font-weight: 850;
}

.directory-links a:hover,
.directory-links a:focus-visible {
    color: var(--text);
    text-decoration: none;
}

.directory-links a:hover > span,
.directory-links a:focus-visible > span {
    transform: translateX(2px);
}

@media (max-width: 759px) {
    .financial-home { margin-top: 54px; }
    .district-card { padding: 20px; }
    .directory-card { padding: 20px; border-radius: 20px; }
}


/* === RC3 FULL TEST 2: route-stage cards use the common calm Mayak system === */
.route-stage-card,
.route-stage-card--active {
    min-height: 0;
    padding: 22px;
    border-color: rgba(19, 33, 43, 0.12);
    background: rgba(255, 255, 255, 0.60);
    box-shadow: none;
}

.route-stage-card h3,
.route-stage-card--active h3 {
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 820;
}

.route-stage-card p,
.route-stage-card--active p {
    color: var(--muted);
}

.route-stage-card__action {
    color: var(--text);
    font-weight: 760;
}

.route-stage-card__action > span {
    color: var(--accent-dark);
}

.route-stage-card--active:hover,
.route-stage-card--active:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(19, 33, 43, 0.20);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 32px rgba(32, 39, 41, 0.06);
}

/* === RC3 HF6: Tools hub and local financial calculators === */
.tools-hero,
.tool-calc-hero {
    padding-bottom: 38px;
}

.tools-directory {
    margin-top: 42px;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tool-card {
    display: block;
    position: relative;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--text);
    text-decoration: none;
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.tool-card:hover,
.tool-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(19, 33, 43, 0.20);
    background: rgba(255,255,255,.78);
}

.tool-card h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

.tool-card p {
    margin: 0;
    color: var(--muted);
    font-size: .91rem;
    line-height: 1.55;
}

.tool-card__action {
    display: inline-flex;
    gap: 6px;
    margin-top: 18px;
    font-weight: 760;
    font-size: .88rem;
}

.tool-card__action b { color: var(--accent-dark); }

.calculator-shell {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.56);
}

.calculator-head h2 { margin: 0; }

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
}

.calc-field {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: .86rem;
    font-weight: 700;
}

.calc-field > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(255,255,255,.72);
    overflow: hidden;
}

.calc-field input {
    width: 100%;
    min-width: 0;
    padding: 15px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
}

.calc-field input:focus-visible { box-shadow: inset 0 0 0 2px rgba(200,148,50,.22); }
.calc-field em { padding: 0 14px; color: var(--muted); font-style: normal; font-size: .82rem; }
.calc-button { margin-top: 18px; }

.calc-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}

.calc-results article {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(247, 244, 235, .72);
}

.calc-results span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: .78rem;
}

.calc-results strong {
    display: block;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.35;
}

.calc-result-wide strong { font-size: .94rem; font-weight: 720; }

.calc-next {
    margin-top: 18px;
}

.calc-next a {
    color: var(--text);
    font-weight: 760;
    text-decoration: none;
}

.calc-next a span { color: var(--accent-dark); }


/* W1B-B: explainability — every calculator explains the model, limits and next step. */
.calc-explain {
    margin-top: 24px;
    padding: clamp(20px, 4vw, 30px);
    border-radius: 24px;
    background: linear-gradient(145deg, #10202a 0%, #17313b 100%);
    color: #fffdf7;
    box-shadow: 0 18px 48px rgba(16, 32, 42, .13);
}

.calc-explain__head { max-width: 760px; }
.calc-explain__head .section-eyebrow { color: #e7c77b; }
.calc-explain__head h2 { margin: 4px 0 0; color: #fffdf7; font-size: clamp(1.45rem, 5vw, 2.1rem); }
.calc-explain__head > p:last-child { margin: 12px 0 0; color: #c9d5d9; line-height: 1.65; }

.calc-explain__primary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}

.calc-explain-card {
    position: relative;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(231, 199, 123, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
}


.calc-explain-card h3 { margin: 0; color: #fffdf7; font-size: 1.02rem; }
.calc-explain-card p { margin: 9px 0 0; color: #c9d5d9; font-size: .9rem; line-height: 1.65; }

.calc-explain__details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.calc-explain__details details {
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
    overflow: hidden;
}

.calc-explain__details summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    color: #fffdf7;
    font-weight: 780;
    cursor: pointer;
    list-style: none;
}

.calc-explain__details summary::-webkit-details-marker { display: none; }
.calc-explain__details summary span { color: #e7c77b; font-size: 1.2rem; transition: transform .18s ease; }
.calc-explain__details details[open] summary span { transform: rotate(45deg); }
.calc-explain__details ul { margin: 0; padding: 0 20px 17px 34px; color: #c9d5d9; font-size: .88rem; line-height: 1.62; }
.calc-explain__details li + li { margin-top: 7px; }

.calc-explain__verification {
    margin-top: 12px;
    padding: 16px 18px;
    border-left: 3px solid #e7c77b;
    border-radius: 0 14px 14px 0;
    background: rgba(231, 199, 123, .08);
}

.calc-explain__verification strong { display: block; color: #f2d996; font-size: .85rem; }
.calc-explain__verification p { margin: 6px 0 0; color: #d8e2e5; font-size: .86rem; line-height: 1.6; }

.calc-next--guided {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(200, 148, 50, .28);
    border-radius: 18px;
    background: rgba(255, 250, 236, .7);
}

.calc-next--guided .section-eyebrow { margin-bottom: 8px; }
.calc-next--guided a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.calc-next--guided a strong { font-size: 1rem; }
.calc-next--guided a > span { color: var(--muted); font-size: .82rem; font-weight: 720; text-align: right; }
.calc-next--guided a b { color: var(--accent-dark); }

@media (min-width: 760px) {
    .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calculator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calc-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calc-result-wide { grid-column: span 3; }
    .calc-explain__primary, .calc-explain__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .calc-next--guided a { align-items: flex-start; flex-direction: column; gap: 7px; }
    .calc-next--guided a > span { text-align: left; }
}

/* === Смотрительская: безопасное управление Маяком === */
.steward-control-shell { max-width: 1180px; }
.steward-hero--compact { align-items: flex-start; }
.steward-back-link,
.steward-primary-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 760;
}
.steward-control-launch {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
}
.steward-control-launch__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.steward-primary-link { background: rgba(200,148,50,.14); border-color: rgba(200,148,50,.38); }
.steward-control-card { margin-top: 22px; }
.steward-control-actions,
.steward-editor-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.steward-primary-action,
.steward-danger-action,
.steward-editor-buttons button,
.steward-date-form button,
.steward-history-row button,
.steward-control-card--danger-zone button {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.16);
    padding: 10px 14px;
    font: inherit;
    font-weight: 760;
    cursor: pointer;
}
.steward-primary-action { background: #c89432; color: #13212b; border-color: #c89432; }
.steward-danger-action { background: transparent; color: #ffd4d4; border-color: rgba(255,110,110,.48); }
.steward-details { margin-top: 18px; }
.steward-details summary { cursor: pointer; color: #d8e0e3; font-weight: 700; }
.steward-date-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 14px; }
.steward-date-form label { display: grid; gap: 6px; color: #d8e0e3; }
.steward-date-form input {
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.18);
    background: #10222b;
    color: #fff;
}
.steward-page-list { display: grid; gap: 22px; margin-top: 22px; }
.steward-page-group h3 { margin-bottom: 10px; color: #f2c96f; }
.steward-page-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,.10);
    color: #fff;
    text-decoration: none;
}
.steward-page-row span:first-child { display: grid; gap: 4px; min-width: 0; }
.steward-page-row small { color: #9fb0b7; word-break: break-word; }
.steward-page-state {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(95,190,135,.14);
    color: #aee0c1;
    font-size: .78rem;
    font-weight: 800;
}
.steward-page-state--review { background: rgba(232,178,73,.14); color: #f5cb76; }
.steward-safety-card { border-color: rgba(95,190,135,.30); background: rgba(95,190,135,.06); }
.steward-safety-card strong { color: #b8e8ca; }
.steward-safety-card p { margin-bottom: 0; color: #cbd6da; }
.steward-editor-form { display: grid; gap: 0; }
.steward-editor-fields { display: grid; gap: 18px; margin-top: 20px; }
.steward-editor-field { display: grid; gap: 7px; }
.steward-editor-field > span { color: #fff; font-weight: 800; }
.steward-editor-field > small { color: #9fb0b7; }
.steward-editor-field textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.18);
    background: #0f2028;
    color: #fff;
    font: inherit;
    line-height: 1.5;
}
.steward-editor-field textarea:focus { outline: 2px solid rgba(200,148,50,.45); outline-offset: 1px; }
.steward-editor-field em { color: #8fa2aa; font-size: .78rem; font-style: normal; line-height: 1.45; }
.steward-control-card--danger-zone { border-color: rgba(255,255,255,.10); }
.steward-history { display: grid; margin-top: 14px; }
.steward-history-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.10);
}
.steward-history-row span { display: grid; gap: 4px; }
.steward-history-row small { color: #9fb0b7; }
.review-page { min-height: 100vh; background: #f4f1e8; color: #13212b; }
.review-shell { max-width: 760px; margin: 0 auto; padding: 12vh 24px 80px; }
.review-shell h1 { max-width: 760px; font-size: clamp(2.1rem, 7vw, 4rem); line-height: .98; }
.review-shell p:not(.section-eyebrow) { max-width: 640px; color: #5e6d76; font-size: 1.05rem; line-height: 1.7; }

@media (max-width: 720px) {
    .steward-control-launch { align-items: stretch; flex-direction: column; }
    .steward-control-launch__actions { align-items: stretch; }
    .steward-primary-link { justify-content: center; width: 100%; box-sizing: border-box; }
    .steward-page-row { align-items: flex-start; }
    .steward-history-row { align-items: flex-start; }
    .steward-history-row form { flex: 0 0 auto; }
    .steward-editor-buttons button,
    .steward-control-actions button,
    .steward-danger-action,
    .steward-primary-action { width: 100%; }
}

/* BUILD FRESHNESS V1 — independent freshness + publication state */
.steward-freshness-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.steward-freshness-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.steward-freshness-summary strong { color: #fff; font-size: 1.35rem; }
.steward-freshness-summary span { color: #9fb0b7; font-size: .78rem; line-height: 1.35; }
.steward-freshness-queue { display: grid; gap: 9px; margin-top: 18px; }
.steward-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,.02);
}
.steward-queue-row:hover { border-color: rgba(200,148,50,.34); background: rgba(200,148,50,.04); }
.steward-queue-main { display: grid; gap: 3px; min-width: 0; }
.steward-queue-main strong { color: #fff; }
.steward-queue-main small,
.steward-queue-date { color: #91a4ad; }
.steward-queue-date { grid-column: 1 / -1; font-size: .76rem; }
.steward-queue-badges,
.steward-page-row__states { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; align-items: center; }
.steward-freshness {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.2;
  background: rgba(255,255,255,.07);
  color: #d9e2e5;
}
.steward-freshness--fresh { background: rgba(80,183,126,.14); color: #9ee2b9; }
.steward-freshness--due { background: rgba(232,178,73,.14); color: #f5cb76; }
.steward-freshness--overdue { background: rgba(224,92,92,.16); color: #ffadad; }
.steward-freshness--unconfirmed { background: rgba(150,164,171,.13); color: #c4d0d5; }
.steward-freshness-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}
.steward-freshness-facts > div { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); }
.steward-freshness-facts dt { color: #91a4ad; font-size: .76rem; }
.steward-freshness-facts dd { margin: 5px 0 0; color: #fff; font-weight: 800; }
.steward-hold-reason { display: grid; gap: 7px; margin: 16px 0 12px; color: #dbe4e7; font-weight: 700; }
.steward-hold-reason input,
.steward-date-form input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: rgba(5,17,22,.75);
  color: #fff;
  font: inherit;
}
.steward-warning-text { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(224,92,92,.10); color: #ffc1c1; line-height: 1.5; }
.steward-page-row--freshness { gap: 14px; }

@media (max-width: 760px) {
  .steward-freshness-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steward-freshness-facts { grid-template-columns: 1fr; }
  .steward-queue-row { grid-template-columns: 1fr; }
  .steward-queue-badges,
  .steward-page-row__states { justify-content: flex-start; }
  .steward-page-row--freshness { align-items: flex-start; flex-direction: column; }
}

/* HOTFIX FRESHNESS V1.2 — compact independent-circuits notice */
.steward-safety-card {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 6px 24px;
  padding: 16px 22px;
  border-radius: 18px;
}
.steward-safety-card strong {
  display: block;
  margin: 0;
  line-height: 1.35;
}
.steward-safety-card p {
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .steward-safety-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 16px 17px;
  }
}

/* FRESHNESS ENGINE V2 — Source Graph */
.steward-freshness-summary,
.steward-source-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.steward-source-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.steward-source-summary strong { color: #fff; font-size: 1.35rem; }
.steward-source-summary span { color: #9fb0b7; font-size: .78rem; line-height: 1.35; }
.steward-source-list,
.steward-source-pages,
.steward-page-source-links { display: grid; gap: 9px; margin-top: 18px; }
.steward-source-list--compact { margin-top: 14px; }
.steward-source-row,
.steward-source-page,
.steward-page-source-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  background: rgba(255,255,255,.02);
}
.steward-source-row:hover,
.steward-source-page:hover,
.steward-page-source-link:hover { border-color: rgba(200,148,50,.34); background: rgba(200,148,50,.04); }
.steward-source-row--impact,
.steward-source-page--impact,
.steward-page-source-link--impact { border-color: rgba(232,178,73,.35); background: rgba(232,178,73,.055); }
.steward-source-main,
.steward-source-page > span:first-child,
.steward-page-source-link > span:first-child { display: grid; gap: 4px; min-width: 0; }
.steward-source-main strong,
.steward-source-page strong,
.steward-page-source-link strong { color: #fff; line-height: 1.35; }
.steward-source-main small,
.steward-source-page small,
.steward-page-source-link small { color: #91a4ad; overflow-wrap: anywhere; }
.steward-source-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; }
.steward-source-impact,
.steward-source-result {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.2;
}
.steward-source-impact { background: rgba(232,178,73,.16); color: #f5cb76; }
.steward-source-result--changed { background: rgba(232,178,73,.16); color: #f5cb76; }
.steward-source-result--unavailable { background: rgba(224,92,92,.16); color: #ffadad; }
.steward-source-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.steward-source-facts > div { padding: 13px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); }
.steward-source-facts dt { color: #91a4ad; font-size: .76rem; }
.steward-source-facts dd { margin: 5px 0 0; color: #fff; font-weight: 800; }
.steward-source-note { display: grid; gap: 7px; margin-top: 18px; color: #dbe4e7; font-weight: 700; }
.steward-source-note textarea {
  width: 100%; box-sizing: border-box; resize: vertical; padding: 11px 12px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,17,22,.75); color: #fff; font: inherit; line-height: 1.5;
}
.steward-source-actions > button:not(.steward-primary-action):not(.steward-danger-action) {
  min-height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  padding: 10px 14px; background: rgba(255,255,255,.04); color: #fff; font: inherit; font-weight: 760; cursor: pointer;
}
.steward-page-sources-card--impact { border-color: rgba(232,178,73,.35); }
@media (max-width: 760px) {
  .steward-source-row,
  .steward-source-page,
  .steward-page-source-link { grid-template-columns: 1fr; align-items: start; }
  .steward-source-badges { justify-content: flex-start; }
  .steward-source-actions > button { width: 100%; }
}
.steward-source-result--probe { background: rgba(107,173,219,.16); color: #b9def5; }
.steward-source-result--probe-error { background: rgba(224,92,92,.16); color: #ffadad; }

/* SOURCE SCHEDULER V1 — human priority + bounded automatic checks */
.steward-scheduler-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.steward-scheduler-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.steward-scheduler-summary strong { color: #fff; font-size: 1.35rem; }
.steward-scheduler-summary span { color: #9fb0b7; font-size: .78rem; line-height: 1.35; }
.steward-source-priority {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.2;
}
.steward-source-priority--critical { background: rgba(224,92,92,.20); color: #ffc0c0; }
.steward-source-priority--attention { background: rgba(232,178,73,.20); color: #f7cf7f; }
.steward-source-priority--review { background: rgba(107,173,219,.18); color: #c8e7fb; }
.steward-source-priority--soon { background: rgba(169,155,230,.16); color: #ded6ff; }
.steward-source-priority--calm { background: rgba(70,174,137,.16); color: #aef0d7; }
.steward-source-row--priority-critical { border-color: rgba(224,92,92,.38); }
.steward-source-row--priority-attention { border-color: rgba(232,178,73,.30); }
.steward-probe-history { display: grid; gap: 9px; margin-top: 18px; }
.steward-probe-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.steward-probe-event > span { display: grid; gap: 3px; min-width: 0; }
.steward-probe-event strong { color: #fff; }
.steward-probe-event small { color: #91a4ad; overflow-wrap: anywhere; }
.steward-probe-event--change_signal { border-color: rgba(232,178,73,.36); }
.steward-probe-event--error { border-color: rgba(224,92,92,.36); }
.steward-probe-event--candidate { border-color: rgba(169,155,230,.28); }
@media (max-width: 760px) {
  .steward-probe-event { grid-template-columns: 1fr; align-items: start; }
}

/* TYPED CMS V2 — structured navigation/cards/relations without raw code */
.steward-typed-card { border-color: rgba(200,148,50,.28); }
.steward-typed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.steward-typed-wide { grid-column: 1 / -1; }
.steward-editor-field input[type="text"],
.steward-editor-field input[type="number"],
.steward-editor-field select,
.steward-typed-fieldset select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.18);
  background: #0f2028;
  color: #fff;
  font: inherit;
}
.steward-editor-field input:focus,
.steward-editor-field select:focus,
.steward-typed-fieldset select:focus {
  outline: 2px solid rgba(200,148,50,.45);
  outline-offset: 1px;
}
.steward-typed-fieldset {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
}
.steward-typed-fieldset legend { padding: 0 8px; color: #f2c96f; font-weight: 800; }
.steward-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.steward-checkbox-grid label,
.steward-source-choice-list label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #dce5e8;
}
.steward-checkbox-grid input,
.steward-source-choice-list input { margin-top: 4px; flex: 0 0 auto; }
.steward-source-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 390px;
  overflow: auto;
  padding-right: 4px;
}
.steward-source-choice-list span { min-width: 0; line-height: 1.4; }
.steward-typed-nav-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.steward-typed-nav-preview { display: grid; gap: 10px; margin-top: 14px; }
.steward-typed-nav-preview > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.09); }
.steward-typed-nav-preview span { color: #cbd6da; }
.steward-typed-launch { background: rgba(200,148,50,.045); }

@media (max-width: 760px) {
  .steward-typed-grid,
  .steward-checkbox-grid,
  .steward-source-choice-list,
  .steward-typed-nav-columns { grid-template-columns: 1fr; }
  .steward-typed-wide { grid-column: auto; }
  .steward-source-choice-list { max-height: 520px; }
  .steward-typed-nav-preview > div { grid-template-columns: 1fr; gap: 5px; }
}

/* W1B-C/D/E/F — route compass, human problem navigator, connected help chain */
.route-compass,
.route-help-chain,
.problem-navigator,
.help-chain-explainer {
  width: min(100% - 32px, var(--content-width));
  margin-left: auto;
  margin-right: auto;
}

.route-compass {
  margin-top: clamp(18px, 3vw, 30px);
  padding: 14px 16px;
  border: 1px solid rgba(19, 33, 43, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
}
.route-compass__label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.route-compass__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.route-compass__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: .86rem;
  font-weight: 720;
}
.route-compass__step i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 148, 50, .11);
}

.route-help-chain {
  margin-top: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(26px, 4vw, 44px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(200, 148, 50, .22);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,248,232,.48));
}
.route-help-chain__heading {
  display: grid;
  gap: 5px;
  max-width: 760px;
}
.route-help-chain__heading h2 {
  margin: 0;
  font-size: clamp(1.28rem, 2.4vw, 1.78rem);
}
.route-help-chain__heading > p:last-child {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.route-help-chain__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.route-help-chain__item {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(19, 33, 43, .09);
  border-radius: 14px;
  background: rgba(255,255,255,.66);
  color: var(--text);
  text-decoration: none;
}
.route-help-chain__item > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.route-help-chain__item strong {
  font-size: .92rem;
  line-height: 1.42;
}
.route-help-chain__item em,
.route-help-chain__item > a {
  margin-top: 2px;
  color: var(--accent-dark);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}
.route-help-chain__item--link:hover,
.route-help-chain__item--link:focus-visible {
  border-color: rgba(200, 148, 50, .48);
  transform: translateY(-1px);
}

.situations-hero .hero__content { max-width: 760px; }
.problem-navigator {
  margin-top: clamp(28px, 5vw, 56px);
  margin-bottom: clamp(46px, 7vw, 84px);
}
.problem-search {
  position: relative;
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: clamp(24px, 4vw, 34px);
  background: linear-gradient(145deg, rgba(10,34,44,.98), rgba(18,52,64,.94));
  color: #fff;
  box-shadow: 0 18px 52px rgba(13, 35, 43, .14);
}
.problem-search label {
  display: grid;
  gap: 4px;
}
.problem-search label span {
  color: #b7c8ce;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.problem-search label strong {
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}
.problem-search__field {
  position: relative;
}
.problem-search__field input {
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 12px 48px 12px 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.problem-search__field input::placeholder { color: #aebdc2; }
.problem-search__field input:focus {
  outline: 2px solid rgba(242, 201, 111, .64);
  outline-offset: 2px;
}
.problem-search__field > span {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #f2c96f;
  font-size: 1.35rem;
  pointer-events: none;
}
.problem-search__helper {
  margin: -2px 0 0;
  color: #d7e3e6;
  font-size: .82rem;
  line-height: 1.45;
}
.problem-search__status {
  margin: 0;
  color: #b7c8ce;
  font-size: .8rem;
}
.problem-groups {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  margin-top: clamp(34px, 5vw, 56px);
}
.problem-group .section-heading { margin-bottom: 18px; }
.problem-group .section-heading h2 {
  max-width: 780px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--muted);
  font-weight: 620;
  line-height: 1.45;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.problem-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(19, 33, 43, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.problem-card[hidden], .problem-group[hidden] { display: none !important; }
.problem-card__copy {
  display: grid;
  align-content: start;
  gap: 9px;
}
.problem-card h3 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.34;
}
.problem-card p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.problem-card__phrases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}
.problem-card__phrases span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(200, 148, 50, .08);
  color: #765420;
  font-size: .72rem;
  line-height: 1.35;
}
.problem-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(19, 33, 43, .08);
}
.problem-card__tool {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 760;
  text-decoration: none;
}
.problem-card__tool:hover,
.problem-card__tool:focus-visible { color: var(--accent-dark); }
.problem-empty {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(200,148,50,.24);
  border-radius: 18px;
  background: rgba(255,248,232,.66);
}
.problem-empty strong { display: block; margin-bottom: 7px; }
.problem-empty p { margin: 0; color: var(--muted); line-height: 1.6; }

.help-chain-explainer {
  margin-bottom: clamp(56px, 8vw, 100px);
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-xl);
  background: #102630;
  color: #fff;
}
.help-chain-explainer .path-detail-heading h2 { color: #fff; }
.help-chain-explainer .path-detail-heading > p { color: #b7c8ce; }
.help-chain-explainer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.25fr auto 1.25fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.help-chain-explainer__grid span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  text-align: center;
  font-size: .82rem;
  font-weight: 760;
  line-height: 1.35;
}
.help-chain-explainer__grid b { color: #f2c96f; font-weight: 900; }
.home-situations-more { margin-top: 18px; }

@media (max-width: 980px) {
  .route-help-chain__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-chain-explainer__grid { grid-template-columns: 1fr; }
  .help-chain-explainer__grid b { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 620px) {
  .route-compass,
  .route-help-chain,
  .problem-navigator,
  .help-chain-explainer { width: min(100% - 24px, var(--content-width)); }
  .route-compass { padding: 13px 14px; }
  .route-compass__steps { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .route-help-chain__grid,
  .problem-grid { grid-template-columns: 1fr; }
  .route-help-chain { padding: 17px; }
  .problem-search { padding: 18px 16px; border-radius: 24px; }
  .problem-search__field input { min-height: 52px; font-size: .94rem; }
  .problem-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .route-help-chain__item--link { transition: none; }
}
