/*
 * Mercury RUS 2026 / S3
 * S3-10-04G — Government Digital Platforms
 * Full art direction rebuild.
 */

.mr-gov04g {
    --g-deep: #071925;
    --g-deep-2: #0a2231;
    --g-ink: #0c2433;
    --g-muted: #6e7d86;
    --g-line: rgba(9, 36, 52, .14);
    --g-line-light: rgba(255,255,255,.16);
    --g-surface: #f2f5f6;
    --g-blue: #0c5872;
    color: var(--g-ink);
    background: #fff;
    overflow: hidden;
}

.mr-gov04g *,
.mr-gov04g *::before,
.mr-gov04g *::after {
    box-sizing: border-box;
}

.mr-gov04g .g04-index,
.mr-gov04g .g04-eyebrow {
    display: inline-block;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #67808e;
}

.mr-gov04g .g04-index--light {
    color: rgba(255,255,255,.5);
}

.mr-gov04g .g04-hero {
    position: relative;
    padding: 112px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 80% 25%, rgba(28,97,122,.22), transparent 28%),
        linear-gradient(135deg, #061722 0%, #092232 58%, #0b2d40 100%);
}

.mr-gov04g .g04-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
    gap: 72px;
    align-items: center;
    min-height: 610px;
}

.mr-gov04g .g04-hero h1 {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: clamp(60px, 6.4vw, 92px);
    line-height: .94;
    letter-spacing: -.055em;
    color: #fff;
}

.mr-gov04g .g04-hero__lead {
    max-width: 650px;
    margin: 30px 0 0;
    font-size: 20px;
    line-height: 1.55;
    color: rgba(255,255,255,.7);
}

.mr-gov04g .g04-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-top: 36px;
}

.mr-gov04g .g04-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 54px;
    padding: 0 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.22);
}

.mr-gov04g .g04-btn--light {
    color: #092333;
    background: #fff;
}

.mr-gov04g .g04-text-link {
    display: inline-flex;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.mr-gov04g .g04-system {
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(255,255,255,.16);
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
}

.mr-gov04g .g04-system__label {
    position: absolute;
    top: 22px;
    left: 24px;
    font-size: 10px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.42);
}

.mr-gov04g .g04-system__core {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.42);
    background: rgba(4,25,36,.72);
}

.mr-gov04g .g04-system__core span {
    font-size: 12px;
    color: rgba(255,255,255,.55);
}

.mr-gov04g .g04-system__core strong {
    margin-top: 8px;
    font-size: 26px;
    line-height: 1;
    font-weight: 500;
}

.mr-gov04g .g04-system__orbit {
    position: absolute;
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(5,24,35,.7);
    font-size: 11px;
    color: rgba(255,255,255,.72);
}

.mr-gov04g .g04-system__orbit--a { left: 8%; top: 26%; }
.mr-gov04g .g04-system__orbit--b { right: 7%; top: 18%; }
.mr-gov04g .g04-system__orbit--c { right: 5%; bottom: 19%; }
.mr-gov04g .g04-system__orbit--d { left: 7%; bottom: 20%; }

.mr-gov04g .g04-system__axis {
    position: absolute;
    background: rgba(255,255,255,.08);
}

.mr-gov04g .g04-system__axis--x {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
}

.mr-gov04g .g04-system__axis--y {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.mr-gov04g .g04-hero__footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
    border-top: 1px solid var(--g-line-light);
}

.mr-gov04g .g04-hero__footer > div {
    padding: 20px 22px 24px 0;
    border-right: 1px solid var(--g-line-light);
}

.mr-gov04g .g04-hero__footer > div:last-child {
    border-right: 0;
}

.mr-gov04g .g04-hero__footer span,
.mr-gov04g .g04-hero__footer strong {
    display: block;
}

.mr-gov04g .g04-hero__footer span {
    margin-bottom: 7px;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}

.mr-gov04g .g04-hero__footer strong {
    font-size: 14px;
    font-weight: 500;
}

.mr-gov04g .g04-model {
    padding: 112px 0;
}

.mr-gov04g .g04-model__intro {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 100px;
}

.mr-gov04g .g04-model h2,
.mr-gov04g .g04-problem h2,
.mr-gov04g .g04-operating h2,
.mr-gov04g .g04-delivery h2,
.mr-gov04g .g04-cta h2 {
    margin: 16px 0 0;
    font-size: clamp(42px, 4.7vw, 64px);
    line-height: .98;
    letter-spacing: -.045em;
}

.mr-gov04g .g04-model__narrative {
    max-width: 700px;
}

.mr-gov04g .g04-model__narrative p {
    margin: 0;
    font-size: 20px;
    line-height: 1.62;
}

.mr-gov04g .g04-stack {
    margin-top: 72px;
    border-top: 1px solid var(--g-line);
}

.mr-gov04g .g04-stack__row {
    display: grid;
    grid-template-columns: 70px minmax(220px,.55fr) minmax(0,1fr);
    gap: 26px;
    align-items: center;
    min-height: 92px;
    padding: 22px 0;
    border-bottom: 1px solid var(--g-line);
}

.mr-gov04g .g04-stack__row span {
    font-size: 11px;
    color: #79909c;
}

.mr-gov04g .g04-stack__row strong {
    font-size: 18px;
}

.mr-gov04g .g04-stack__row em {
    font-style: normal;
    font-size: 14px;
    line-height: 1.5;
    color: var(--g-muted);
}

.mr-gov04g .g04-stack__row--platform {
    padding-left: 32px;
    padding-right: 32px;
    background: var(--g-ink);
    color: #fff;
}

.mr-gov04g .g04-stack__row--platform em,
.mr-gov04g .g04-stack__row--platform span {
    color: rgba(255,255,255,.56);
}

.mr-gov04g .g04-problem {
    padding: 112px 0;
    background: var(--g-surface);
}

.mr-gov04g .g04-problem__grid {
    display: grid;
    grid-template-columns: minmax(260px,.6fr) minmax(0,1.4fr);
    gap: 90px;
}

.mr-gov04g .g04-problem__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--g-line);
    border-left: 1px solid var(--g-line);
}

.mr-gov04g .g04-problem__cards article {
    min-height: 230px;
    padding: 30px;
    border-right: 1px solid var(--g-line);
    border-bottom: 1px solid var(--g-line);
    background: rgba(255,255,255,.45);
}

.mr-gov04g .g04-problem__cards article > span {
    font-size: 11px;
    color: #7a909b;
}

.mr-gov04g .g04-problem__cards h3 {
    margin: 44px 0 0;
    font-size: 25px;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.mr-gov04g .g04-problem__cards p {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--g-muted);
}

.mr-gov04g .g04-operating {
    padding: 112px 0;
    color: #fff;
    background: var(--g-deep);
}

.mr-gov04g .g04-operating__head {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(320px,.55fr);
    gap: 70px;
    align-items: end;
}

.mr-gov04g .g04-operating__head p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,.58);
}

.mr-gov04g .g04-operating__canvas {
    margin-top: 70px;
    border: 1px solid var(--g-line-light);
}

.mr-gov04g .g04-operating__rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--g-line-light);
}

.mr-gov04g .g04-operating__rail span {
    padding: 13px 20px;
    font-size: 9px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.35);
    border-right: 1px solid var(--g-line-light);
}

.mr-gov04g .g04-operating__rail span:last-child {
    border-right: 0;
}

.mr-gov04g .g04-operating__main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.mr-gov04g .g04-operating__cell {
    min-height: 300px;
    padding: 34px;
    border-right: 1px solid var(--g-line-light);
}

.mr-gov04g .g04-operating__cell:last-child {
    border-right: 0;
}

.mr-gov04g .g04-operating__cell small {
    display: block;
    margin-bottom: 70px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: rgba(255,255,255,.38);
}

.mr-gov04g .g04-operating__cell strong {
    display: block;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 500;
}

.mr-gov04g .g04-operating__cell p {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255,255,255,.55);
}

.mr-gov04g .g04-operating__flow {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    height: 6px;
}

.mr-gov04g .g04-operating__flow i:nth-child(1) { background:#13546d; }
.mr-gov04g .g04-operating__flow i:nth-child(2) { background:#1c6f8d; }
.mr-gov04g .g04-operating__flow i:nth-child(3) { background:#4b8ba0; }
.mr-gov04g .g04-operating__flow i:nth-child(4) { background:#88aebc; }

.mr-gov04g .g04-delivery {
    padding: 104px 0;
}

.mr-gov04g .g04-delivery__grid {
    display: grid;
    grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
    gap: 90px;
}

.mr-gov04g .g04-delivery__list {
    border-top: 1px solid var(--g-line);
}

.mr-gov04g .g04-delivery__list > div {
    display: grid;
    grid-template-columns: 54px minmax(180px,.5fr) minmax(0,1fr);
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--g-line);
}

.mr-gov04g .g04-delivery__list span {
    font-size: 11px;
    color: #78909d;
}

.mr-gov04g .g04-delivery__list strong {
    font-size: 15px;
}

.mr-gov04g .g04-delivery__list em {
    font-size: 14px;
    line-height: 1.5;
    font-style: normal;
    color: var(--g-muted);
}

.mr-gov04g .g04-cta {
    padding: 112px 0;
    color: #fff;
    background:
        linear-gradient(130deg, #061722 0%, #092332 68%, #0b3042 100%);
}

.mr-gov04g .g04-cta__grid {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(280px,.5fr);
    gap: 100px;
    align-items: end;
}

.mr-gov04g .g04-cta h2 {
    max-width: 900px;
}

.mr-gov04g .g04-cta p {
    max-width: 680px;
    margin: 26px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.64);
}

.mr-gov04g .g04-cta .g04-btn {
    margin-top: 34px;
}

.mr-gov04g .g04-cta__contacts {
    border-top: 1px solid var(--g-line-light);
}

.mr-gov04g .g04-cta__contacts > div {
    padding: 18px 0;
    border-bottom: 1px solid var(--g-line-light);
}

.mr-gov04g .g04-cta__contacts span,
.mr-gov04g .g04-cta__contacts a {
    display: block;
}

.mr-gov04g .g04-cta__contacts span {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
}

.mr-gov04g .g04-cta__contacts a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

@media (max-width: 980px) {
    .mr-gov04g .g04-hero__grid,
    .mr-gov04g .g04-model__intro,
    .mr-gov04g .g04-problem__grid,
    .mr-gov04g .g04-operating__head,
    .mr-gov04g .g04-delivery__grid,
    .mr-gov04g .g04-cta__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .mr-gov04g .g04-hero__grid {
        min-height: auto;
    }

    .mr-gov04g .g04-system {
        min-height: 460px;
    }

    .mr-gov04g .g04-operating__main {
        grid-template-columns: 1fr;
    }

    .mr-gov04g .g04-operating__cell {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--g-line-light);
    }

    .mr-gov04g .g04-operating__cell small {
        margin-bottom: 32px;
    }
}

@media (max-width: 640px) {
    .mr-gov04g .g04-hero {
        padding-top: 72px;
    }

    .mr-gov04g .g04-hero h1 {
        font-size: clamp(46px, 14vw, 64px);
    }

    .mr-gov04g .g04-hero__lead {
        font-size: 18px;
    }

    .mr-gov04g .g04-hero__actions {
        display: grid;
    }

    .mr-gov04g .g04-btn {
        width: 100%;
    }

    .mr-gov04g .g04-system {
        min-height: 390px;
    }

    .mr-gov04g .g04-system__core {
        width: 170px;
        height: 170px;
    }

    .mr-gov04g .g04-system__orbit {
        font-size: 9px;
    }

    .mr-gov04g .g04-hero__footer {
        grid-template-columns: 1fr;
    }

    .mr-gov04g .g04-hero__footer > div {
        border-right: 0;
        border-bottom: 1px solid var(--g-line-light);
    }

    .mr-gov04g .g04-model,
    .mr-gov04g .g04-problem,
    .mr-gov04g .g04-operating,
    .mr-gov04g .g04-delivery,
    .mr-gov04g .g04-cta {
        padding: 72px 0;
    }

    .mr-gov04g .g04-model h2,
    .mr-gov04g .g04-problem h2,
    .mr-gov04g .g04-operating h2,
    .mr-gov04g .g04-delivery h2,
    .mr-gov04g .g04-cta h2 {
        font-size: 40px;
    }

    .mr-gov04g .g04-model__narrative p {
        font-size: 17px;
    }

    .mr-gov04g .g04-stack__row,
    .mr-gov04g .g04-delivery__list > div {
        grid-template-columns: 42px 1fr;
    }

    .mr-gov04g .g04-stack__row em,
    .mr-gov04g .g04-delivery__list em {
        grid-column: 2;
    }

    .mr-gov04g .g04-problem__cards {
        grid-template-columns: 1fr;
    }

    .mr-gov04g .g04-problem__cards article {
        min-height: 190px;
    }

    .mr-gov04g .g04-operating__rail {
        grid-template-columns: 1fr;
    }

    .mr-gov04g .g04-operating__rail span {
        border-right: 0;
        border-bottom: 1px solid var(--g-line-light);
    }
}

/* ==========================================================
 * S3-10-04G FIX1 — VISUAL REFINEMENT
 * Model readability, page-wide technical patterns,
 * theme-independent CTA contrast, mobile correction.
 * ========================================================== */

.mr-gov04g {
    position: relative;
    isolation: isolate;
}

/* Page-wide technical texture language */
.mr-gov04g .g04-hero,
.mr-gov04g .g04-model,
.mr-gov04g .g04-problem,
.mr-gov04g .g04-operating,
.mr-gov04g .g04-delivery,
.mr-gov04g .g04-cta {
    position: relative;
    isolation: isolate;
}

.mr-gov04g .g04-hero::before,
.mr-gov04g .g04-model::before,
.mr-gov04g .g04-problem::before,
.mr-gov04g .g04-operating::before,
.mr-gov04g .g04-delivery::before,
.mr-gov04g .g04-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.mr-gov04g .g04-hero > *,
.mr-gov04g .g04-model > *,
.mr-gov04g .g04-problem > *,
.mr-gov04g .g04-operating > *,
.mr-gov04g .g04-delivery > *,
.mr-gov04g .g04-cta > * {
    position: relative;
    z-index: 1;
}

.mr-gov04g .g04-hero::before {
    opacity: .42;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
        radial-gradient(circle at 78% 22%, rgba(78,151,176,.16), transparent 23%);
    background-size: 56px 56px, 56px 56px, auto;
}

.mr-gov04g .g04-model::before {
    opacity: .65;
    background-image:
        radial-gradient(circle, rgba(8,53,76,.08) 1px, transparent 1.2px),
        linear-gradient(90deg, transparent 0 72%, rgba(8,53,76,.035) 72% 72.1%, transparent 72.1%);
    background-size: 20px 20px, 100% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.mr-gov04g .g04-problem::before {
    opacity: .7;
    background:
        linear-gradient(135deg, transparent 0 74%, rgba(8,53,76,.035) 74% 74.2%, transparent 74.2%),
        repeating-linear-gradient(0deg, transparent 0 43px, rgba(8,53,76,.025) 43px 44px);
}

.mr-gov04g .g04-operating::before {
    opacity: .45;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        radial-gradient(circle at 18% 72%, rgba(26,112,143,.18), transparent 22%);
    background-size: 48px 48px, 48px 48px, auto;
}

.mr-gov04g .g04-delivery::before {
    opacity: .65;
    background-image:
        linear-gradient(90deg, rgba(8,53,76,.028) 1px, transparent 1px),
        radial-gradient(circle, rgba(8,53,76,.055) 1px, transparent 1.2px);
    background-size: 120px 100%, 22px 22px;
}

.mr-gov04g .g04-cta::before {
    opacity: .4;
    background-image:
        linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
        radial-gradient(circle at 72% 30%, rgba(45,126,154,.2), transparent 26%);
    background-size: 52px 52px, 52px 52px, auto;
}

/* 01 / MODEL refinement */
.mr-gov04g .g04-model {
    padding-top: 104px;
    padding-bottom: 104px;
}

.mr-gov04g .g04-model__intro {
    grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr);
    gap: 84px;
    align-items: start;
}

.mr-gov04g .g04-model__intro > div:first-child {
    position: sticky;
    top: 104px;
}

.mr-gov04g .g04-model__narrative {
    max-width: none;
    padding-left: 28px;
    border-left: 1px solid var(--g-line);
}

.mr-gov04g .g04-model__narrative p {
    margin: 0;
    max-width: 760px;
    font-size: 17px;
    line-height: 1.58;
    letter-spacing: -.01em;
    color: #1b3442;
    columns: 2;
    column-gap: 38px;
    column-rule: 1px solid rgba(9,36,52,.08);
}

.mr-gov04g .g04-stack {
    margin-top: 62px;
    border: 1px solid var(--g-line);
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(3px);
}

.mr-gov04g .g04-stack__row {
    position: relative;
    min-height: 84px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--g-line);
}

.mr-gov04g .g04-stack__row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(12,88,114,.16);
}

.mr-gov04g .g04-stack__row--platform::before {
    background: #3a9ab8;
}

.mr-gov04g .g04-stack__row--integration::before {
    background: #6f98a8;
}

.mr-gov04g .g04-stack__row--infra::before {
    background: #a5b8c0;
}

/* Theme-independent dark sections */
.mr-gov04g .g04-hero,
.mr-gov04g .g04-operating,
.mr-gov04g .g04-cta {
    color: #fff !important;
}

.mr-gov04g .g04-cta {
    background:
        linear-gradient(130deg, #061722 0%, #092332 68%, #0b3042 100%) !important;
}

.mr-gov04g .g04-cta h2,
.mr-gov04g .g04-cta p,
.mr-gov04g .g04-cta .g04-index,
.mr-gov04g .g04-cta .g04-cta__contacts span,
.mr-gov04g .g04-cta .g04-cta__contacts a {
    color: #fff !important;
}

.mr-gov04g .g04-cta p {
    color: rgba(255,255,255,.72) !important;
}

.mr-gov04g .g04-cta .g04-index,
.mr-gov04g .g04-cta .g04-cta__contacts span {
    color: rgba(255,255,255,.46) !important;
}

/* Mobile correction */
@media (max-width: 640px) {
    .mr-gov04g {
        overflow-x: clip;
    }

    .mr-gov04g .mr-container {
        width: 100%;
        max-width: none;
        padding-left: 18px;
        padding-right: 18px;
    }

    .mr-gov04g .g04-hero {
        padding-top: 58px;
    }

    .mr-gov04g .g04-hero__grid {
        gap: 32px;
    }

    .mr-gov04g .g04-hero h1 {
        max-width: 11ch;
        font-size: clamp(40px, 12.2vw, 48px);
        line-height: .96;
        letter-spacing: -.045em;
    }

    .mr-gov04g .g04-hero__lead {
        max-width: 100%;
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.5;
    }

    .mr-gov04g .g04-system {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        min-height: 0;
        padding: 52px 14px 14px;
        background-size: 28px 28px;
    }

    .mr-gov04g .g04-system__label {
        top: 16px;
        left: 16px;
    }

    .mr-gov04g .g04-system__core {
        position: relative;
        inset: auto;
        transform: none;
        grid-column: 1 / -1;
        width: 100%;
        height: auto;
        min-height: 128px;
        padding: 22px;
    }

    .mr-gov04g .g04-system__core strong {
        font-size: 22px;
    }

    .mr-gov04g .g04-system__orbit {
        position: static;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        text-align: center;
        font-size: 10px;
    }

    .mr-gov04g .g04-system__axis {
        display: none;
    }

    .mr-gov04g .g04-hero__footer {
        margin-top: 34px;
    }

    .mr-gov04g .g04-hero__footer > div {
        padding: 16px 0;
    }

    .mr-gov04g .g04-model,
    .mr-gov04g .g04-problem,
    .mr-gov04g .g04-operating,
    .mr-gov04g .g04-delivery,
    .mr-gov04g .g04-cta {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .mr-gov04g .g04-model__intro {
        gap: 28px;
    }

    .mr-gov04g .g04-model__intro > div:first-child {
        position: static;
    }

    .mr-gov04g .g04-model__narrative {
        padding-left: 0;
        border-left: 0;
    }

    .mr-gov04g .g04-model__narrative p {
        max-width: none;
        font-size: 16px;
        line-height: 1.55;
        columns: 1;
        column-rule: 0;
    }

    .mr-gov04g .g04-model h2,
    .mr-gov04g .g04-problem h2,
    .mr-gov04g .g04-operating h2,
    .mr-gov04g .g04-delivery h2,
    .mr-gov04g .g04-cta h2 {
        font-size: 36px;
        line-height: 1;
    }

    .mr-gov04g .g04-stack {
        margin-top: 36px;
    }

    .mr-gov04g .g04-stack__row {
        grid-template-columns: 36px 1fr;
        gap: 8px 14px;
        min-height: 0;
        padding: 18px 16px;
    }

    .mr-gov04g .g04-stack__row em {
        grid-column: 2;
        font-size: 12px;
        line-height: 1.45;
    }

    .mr-gov04g .g04-problem__grid,
    .mr-gov04g .g04-operating__head,
    .mr-gov04g .g04-delivery__grid,
    .mr-gov04g .g04-cta__grid {
        gap: 34px;
    }

    .mr-gov04g .g04-problem__cards article {
        min-height: 0;
        padding: 22px;
    }

    .mr-gov04g .g04-problem__cards h3 {
        margin-top: 24px;
        font-size: 22px;
    }

    .mr-gov04g .g04-operating__canvas {
        margin-top: 38px;
    }

    .mr-gov04g .g04-operating__rail {
        display: none;
    }

    .mr-gov04g .g04-operating__cell {
        padding: 24px 20px;
    }

    .mr-gov04g .g04-operating__cell small {
        margin-bottom: 20px;
    }

    .mr-gov04g .g04-operating__cell strong {
        font-size: 22px;
    }

    .mr-gov04g .g04-delivery__list > div {
        grid-template-columns: 34px 1fr;
        gap: 8px 12px;
        padding: 17px 0;
    }

    .mr-gov04g .g04-delivery__list em {
        grid-column: 2;
        font-size: 12px;
    }

    .mr-gov04g .g04-cta p {
        font-size: 16px;
    }

    .mr-gov04g .g04-cta__contacts {
        margin-top: 4px;
    }
}

/* ==========================================================
 * S3-10-04G FIX2
 * Root causes only:
 * 1) MODEL rebuild
 * 2) Portfolio return
 * 3) Mobile rebuild
 * ========================================================== */

.mr-gov04g .g04-model--fix2 {
    padding-top: 96px;
    padding-bottom: 96px;
}

.mr-gov04g .g04-model2__head {
    display: grid;
    grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
    gap: 90px;
    align-items: start;
}

.mr-gov04g .g04-model2__head h2 {
    margin: 16px 0 0;
    max-width: 620px;
    font-size: clamp(48px, 5vw, 68px);
    line-height: .96;
    letter-spacing: -.045em;
}

.mr-gov04g .g04-model2__statement {
    padding: 8px 0 0 30px;
    border-left: 1px solid var(--g-line);
}

.mr-gov04g .g04-model2__statement p {
    margin: 0;
    max-width: 700px;
    font-size: 20px;
    line-height: 1.55;
    color: #1c3543;
}

.mr-gov04g .g04-model2__canvas {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
    gap: 34px;
    margin-top: 58px;
}

.mr-gov04g .g04-model2__flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--g-line);
    background: rgba(255,255,255,.78);
}

.mr-gov04g .g04-model2__node {
    position: relative;
    min-height: 250px;
    padding: 26px 22px;
    border-right: 1px solid var(--g-line);
}

.mr-gov04g .g04-model2__node:last-child {
    border-right: 0;
}

.mr-gov04g .g04-model2__node::after {
    content: "→";
    position: absolute;
    right: -10px;
    top: 42px;
    z-index: 2;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #56727f;
    font-size: 12px;
}

.mr-gov04g .g04-model2__node:last-child::after {
    display: none;
}

.mr-gov04g .g04-model2__node > span {
    display: block;
    margin-bottom: 56px;
    font-size: 10px;
    letter-spacing: .1em;
    color: #7b919c;
}

.mr-gov04g .g04-model2__node strong {
    display: block;
    font-size: 21px;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.mr-gov04g .g04-model2__node p {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.52;
    color: var(--g-muted);
}

.mr-gov04g .g04-model2__node--primary {
    color: #fff;
    background: var(--g-ink);
}

.mr-gov04g .g04-model2__node--primary > span,
.mr-gov04g .g04-model2__node--primary p {
    color: rgba(255,255,255,.58);
}

.mr-gov04g .g04-model2__principles {
    display: grid;
    border: 1px solid var(--g-line);
    background: rgba(242,245,246,.84);
}

.mr-gov04g .g04-model2__principles > div {
    padding: 22px;
    border-bottom: 1px solid var(--g-line);
}

.mr-gov04g .g04-model2__principles > div:last-child {
    border-bottom: 0;
}

.mr-gov04g .g04-model2__principles span {
    display: block;
    margin-bottom: 18px;
    font-size: 10px;
    color: #78909b;
}

.mr-gov04g .g04-model2__principles strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

/* Portfolio / cases */
.mr-gov04g .g04-cases {
    position: relative;
    padding: 104px 0;
    background: #fff;
}

.mr-gov04g .g04-cases::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image:
        radial-gradient(circle, rgba(8,53,76,.05) 1px, transparent 1.2px),
        linear-gradient(90deg, rgba(8,53,76,.025) 1px, transparent 1px);
    background-size: 22px 22px, 120px 100%;
}

.mr-gov04g .g04-cases > * {
    position: relative;
    z-index: 1;
}

.mr-gov04g .g04-cases__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 42px;
}

.mr-gov04g .g04-cases__head h2 {
    margin: 16px 0 0;
    font-size: clamp(42px, 4.5vw, 60px);
    line-height: 1;
    letter-spacing: -.04em;
}

.mr-gov04g .g04-cases__all {
    flex: 0 0 auto;
    color: var(--g-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.mr-gov04g .g04-cases__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mr-gov04g .g04-case {
    min-width: 0;
    border: 1px solid var(--g-line);
    background: #fff;
}

.mr-gov04g .g04-case__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.mr-gov04g .g04-case__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9eef0;
}

.mr-gov04g .g04-case__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.mr-gov04g .g04-case:hover .g04-case__media img {
    transform: scale(1.025);
}

.mr-gov04g .g04-case__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 26px;
    color: #fff;
    background:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(135deg, #0a2433, #0d4055);
    background-size: 30px 30px, 30px 30px, auto;
}

.mr-gov04g .g04-case__placeholder span {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .55;
}

.mr-gov04g .g04-case__placeholder strong {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 500;
}

.mr-gov04g .g04-case__body {
    position: relative;
    min-height: 220px;
    padding: 24px 24px 26px;
}

.mr-gov04g .g04-case__meta {
    display: block;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7a909b;
}

.mr-gov04g .g04-case__body h3 {
    margin: 30px 36px 0 0;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.025em;
}

.mr-gov04g .g04-case__body p {
    margin: 14px 36px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--g-muted);
}

.mr-gov04g .g04-case__arrow {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 15px;
}

/* Mobile is a separate composition, not compressed desktop */
@media (max-width: 640px) {
    .mr-gov04g .g04-hero__grid,
    .mr-gov04g .g04-model2__head,
    .mr-gov04g .g04-model2__canvas,
    .mr-gov04g .g04-problem__grid,
    .mr-gov04g .g04-operating__head,
    .mr-gov04g .g04-delivery__grid,
    .mr-gov04g .g04-cta__grid {
        display: block;
    }

    .mr-gov04g .g04-hero__copy,
    .mr-gov04g .g04-system,
    .mr-gov04g .g04-model2__head > *,
    .mr-gov04g .g04-model2__canvas > *,
    .mr-gov04g .g04-problem__grid > *,
    .mr-gov04g .g04-operating__head > *,
    .mr-gov04g .g04-delivery__grid > *,
    .mr-gov04g .g04-cta__grid > * {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .mr-gov04g .g04-model--fix2 {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .mr-gov04g .g04-model2__head h2 {
        max-width: 9ch;
        font-size: 38px;
        line-height: .98;
    }

    .mr-gov04g .g04-model2__statement {
        margin-top: 26px;
        padding: 0;
        border: 0;
    }

    .mr-gov04g .g04-model2__statement p {
        font-size: 16px;
        line-height: 1.5;
    }

    .mr-gov04g .g04-model2__canvas {
        margin-top: 34px;
    }

    .mr-gov04g .g04-model2__flow {
        display: block;
    }

    .mr-gov04g .g04-model2__node {
        min-height: 0;
        padding: 20px;
        border-right: 0;
        border-bottom: 1px solid var(--g-line);
    }

    .mr-gov04g .g04-model2__node:last-child {
        border-bottom: 0;
    }

    .mr-gov04g .g04-model2__node::after {
        content: "↓";
        right: auto;
        left: 18px;
        top: auto;
        bottom: -10px;
    }

    .mr-gov04g .g04-model2__node > span {
        margin-bottom: 18px;
    }

    .mr-gov04g .g04-model2__node strong {
        font-size: 20px;
    }

    .mr-gov04g .g04-model2__principles {
        margin-top: 16px;
    }

    .mr-gov04g .g04-model2__principles > div {
        padding: 18px 20px;
    }

    .mr-gov04g .g04-cases {
        padding: 64px 0;
    }

    .mr-gov04g .g04-cases__head {
        display: block;
        margin-bottom: 28px;
    }

    .mr-gov04g .g04-cases__head h2 {
        font-size: 36px;
    }

    .mr-gov04g .g04-cases__all {
        display: inline-block;
        margin-top: 18px;
    }

    .mr-gov04g .g04-cases__grid {
        display: block;
    }

    .mr-gov04g .g04-case + .g04-case {
        margin-top: 16px;
    }

    .mr-gov04g .g04-case__body {
        min-height: 0;
        padding: 20px;
    }

    .mr-gov04g .g04-case__body h3 {
        margin-top: 26px;
        font-size: 22px;
    }

    .mr-gov04g .g04-case__body p {
        margin-right: 0;
    }

    .mr-gov04g .g04-operating__main {
        display: block;
    }

    .mr-gov04g .g04-operating__cell {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--g-line-light);
    }

    .mr-gov04g .g04-delivery__list > div {
        grid-template-columns: 30px 1fr;
    }

    .mr-gov04g .g04-delivery__list em {
        grid-column: 2;
    }

    .mr-gov04g .g04-cta__contacts {
        margin-top: 34px;
    }
}

/* ==========================================================
 * S3-10-04H
 * REAL PORTFOLIO RESTORE + MOBILE TYPOGRAPHY
 * ========================================================== */

.mr-gov04g .g04-cases--featured {
    padding-top: 104px;
    padding-bottom: 104px;
}

.mr-gov04g .g04-featured-case {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
    gap: 0;
    border: 1px solid var(--g-line);
    background: #fff;
}

.mr-gov04g .g04-featured-case__visual {
    position: relative;
    display: block;
    min-height: 520px;
    overflow: hidden;
    background: #0a2635;
    border-right: 1px solid var(--g-line);
}

.mr-gov04g .g04-featured-case__visual img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.mr-gov04g .g04-featured-case:hover .g04-featured-case__visual img {
    transform: scale(1.015);
}

.mr-gov04g .g04-featured-case__fallback {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 38px;
    color: #fff;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(135deg, #071b28, #0b3d51);
    background-size: 36px 36px, 36px 36px, auto;
}

.mr-gov04g .g04-featured-case__fallback span {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .62;
}

.mr-gov04g .g04-featured-case__fallback strong {
    margin-top: 10px;
    font-size: 42px;
    font-weight: 500;
}

.mr-gov04g .g04-featured-case__coord {
    position: absolute;
    left: 22px;
    top: 22px;
    padding: 7px 9px;
    color: #fff;
    background: rgba(5,23,34,.72);
    font-size: 10px;
    letter-spacing: .12em;
}

.mr-gov04g .g04-featured-case__content {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding: 42px 38px;
}

.mr-gov04g .g04-featured-case__eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #78909b;
}

.mr-gov04g .g04-featured-case__content h3 {
    margin: 54px 0 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.mr-gov04g .g04-featured-case__content p {
    margin: 22px 0 0;
    font-size: 15px;
    line-height: 1.58;
    color: var(--g-muted);
}

.mr-gov04g .g04-featured-case__facts {
    margin: auto 0 0;
    padding-top: 32px;
}

.mr-gov04g .g04-featured-case__facts > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--g-line);
}

.mr-gov04g .g04-featured-case__facts dt {
    font-size: 11px;
    color: #78909b;
}

.mr-gov04g .g04-featured-case__facts dd {
    margin: 0;
    font-size: 13px;
}

.mr-gov04g .g04-featured-case__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    color: var(--g-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* Mobile typography floor + spacing refinement */
@media (max-width: 640px) {
    .mr-gov04g .g04-eyebrow,
    .mr-gov04g .g04-index,
    .mr-gov04g .g04-system__label,
    .mr-gov04g .g04-system__orbit,
    .mr-gov04g .g04-hero__footer span,
    .mr-gov04g .g04-model2__node > span,
    .mr-gov04g .g04-model2__principles span,
    .mr-gov04g .g04-operating__cell small,
    .mr-gov04g .g04-case__meta,
    .mr-gov04g .g04-featured-case__eyebrow,
    .mr-gov04g .g04-featured-case__coord,
    .mr-gov04g .g04-featured-case__facts dt {
        font-size: 12px !important;
        line-height: 1.35;
    }

    .mr-gov04g .g04-model2__node p,
    .mr-gov04g .g04-model2__principles strong,
    .mr-gov04g .g04-problem__cards p,
    .mr-gov04g .g04-operating__cell p,
    .mr-gov04g .g04-delivery__list em,
    .mr-gov04g .g04-featured-case__content p,
    .mr-gov04g .g04-featured-case__facts dd {
        font-size: 15px !important;
        line-height: 1.5;
    }

    .mr-gov04g .g04-model2__node strong,
    .mr-gov04g .g04-model2__principles strong,
    .mr-gov04g .g04-operating__cell strong {
        font-size: 20px;
        line-height: 1.15;
    }

    .mr-gov04g .g04-problem__cards h3 {
        font-size: 21px;
        line-height: 1.12;
    }

    .mr-gov04g .g04-cases--featured {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .mr-gov04g .g04-featured-case {
        display: block;
    }

    .mr-gov04g .g04-featured-case__visual {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--g-line);
        aspect-ratio: 16 / 11;
    }

    .mr-gov04g .g04-featured-case__visual img,
    .mr-gov04g .g04-featured-case__fallback {
        min-height: 0;
        height: 100%;
    }

    .mr-gov04g .g04-featured-case__content {
        min-height: 0;
        padding: 24px 20px 26px;
    }

    .mr-gov04g .g04-featured-case__content h3 {
        margin-top: 28px;
        font-size: 28px;
        line-height: 1.04;
    }

    .mr-gov04g .g04-featured-case__facts {
        margin-top: 28px;
        padding-top: 0;
    }

    .mr-gov04g .g04-featured-case__facts > div {
        grid-template-columns: 72px 1fr;
    }

    .mr-gov04g .g04-featured-case__link {
        min-height: 44px;
        font-size: 15px;
    }

    .mr-gov04g .g04-delivery__list > div {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .mr-gov04g .g04-cta p,
    .mr-gov04g .g04-hero__lead,
    .mr-gov04g .g04-model2__statement p {
        font-size: 16px !important;
        line-height: 1.52;
    }
}
