/* Первый экран главной. Палитра баннера одинакова в обеих темах. */
.xhb-hero {
    --xhb-hero-ink: #062f3b;
    --xhb-hero-copy: #173949;
    --xhb-hero-accent: #007f85;
    --xhb-hero-mint: #dff9f8;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    color: var(--xhb-hero-ink);
    background: var(--xhb-hero-mint);
    font-family: Onest, system-ui, sans-serif;
}

.xhb-hero__background {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    pointer-events: none;
}

.xhb-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgb(232 255 254 / 38%), transparent 84%);
    pointer-events: none;
    content: "";
}

.xhb-hero__inner {
    width: min(88.2%, 1680px);
    margin-inline: auto;
    padding-block: clamp(36px, 3vw, 60px) clamp(36px, 2.6vw, 54px);
}

.xhb-hero__logo {
    display: block;
    width: clamp(168px, 15.4vw, 292px);
    height: auto;
}

.xhb-hero .xhb-hero__title {
    max-width: 100%;
    margin: clamp(25px, 2.9vw, 54px) 0 0;
    color: var(--xhb-hero-ink);
    font-family: Onest, system-ui, sans-serif;
    font-size: clamp(24px, 4.35vw, 80px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.06em;
}

.xhb-hero__line {
    display: block;
}

.xhb-hero__title em {
    color: var(--xhb-hero-accent);
    font-style: normal;
}

.xhb-hero .xhb-hero__lead {
    max-width: min(47ch, 69%);
    margin: clamp(17px, 1.55vw, 31px) 0 0;
    color: var(--xhb-hero-copy);
    font-size: clamp(16px, 1.4vw, 26px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -.024em;
    text-wrap: pretty;
}

.xhb-hero__stats {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: clamp(16px, 3vw, 56px);
    width: min(89%, 1450px);
    margin: clamp(28px, 2.7vw, 55px) 0 0;
    padding: 0;
}

.xhb-hero__stat {
    min-width: 0;
}

.xhb-hero__stat::before {
    display: block;
    width: clamp(36px, 4.3vw, 82px);
    height: 4px;
    margin-bottom: clamp(8px, .7vw, 15px);
    background: #fb7b22;
    content: "";
}

.xhb-hero__stat:nth-child(2)::before {
    background: #00a9ac;
}

.xhb-hero__stat dt {
    margin: 0;
    font-weight: 700;
}

.xhb-hero__value,
.xhb-hero__label {
    display: block;
}

.xhb-hero__value {
    font-size: clamp(29px, 3.7vw, 60px);
    line-height: .98;
    letter-spacing: -.06em;
    white-space: nowrap;
}

.xhb-hero__label {
    max-width: 15ch;
    min-height: 2.05em;
    margin-top: .17em;
    font-size: clamp(18px, 1.89vw, 36px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.xhb-hero__stat dd {
    max-width: 27ch;
    margin: .45em 0 0;
    color: var(--xhb-hero-copy);
    font-size: clamp(15px, 1.26vw, 18px);
    line-height: 1.15;
    letter-spacing: -.015em;
    text-wrap: pretty;
}

@media (max-width: 900px) {
    .xhb-hero__inner {
        width: min(91%, 1680px);
    }

    .xhb-hero__stats {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .xhb-hero__background {
        height: min(100%, 470px);
        object-position: right top;
        opacity: .72;
    }

    .xhb-hero::after {
        background:
            linear-gradient(180deg, transparent 70px, var(--xhb-hero-mint) 470px),
            linear-gradient(90deg, rgb(229 255 253 / 91%) 4%, rgb(224 255 252 / 67%) 70%, rgb(224 255 252 / 26%));
    }

    .xhb-hero__inner {
        width: calc(100% - 36px);
        padding-block: 29px 33px;
    }

    .xhb-hero .xhb-hero__title {
        font-size: clamp(22px, 5.1vw, 46px);
        line-height: 1.02;
        letter-spacing: -.055em;
    }

    .xhb-hero .xhb-hero__lead {
        max-width: 39ch;
        font-size: clamp(17px, 3.3vw, 21px);
        line-height: 1.24;
    }

    .xhb-hero__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 17px;
        margin-top: 29px;
    }

    .xhb-hero__stat:last-child {
        grid-column: 1 / -1;
    }

    .xhb-hero__value {
        font-size: clamp(23px, 6.5vw, 56px);
    }

    .xhb-hero__label {
        max-width: none;
        min-height: 0;
        font-size: clamp(17px, 4.1vw, 23px);
    }

    .xhb-hero__stat dd {
        font-size: 15px;
        line-height: 1.24;
    }
}

/* Keep all three header controls visible on compact phones. */
@media (max-width: 359px) {
    .xhb-header .brand-row {
        gap: 8px;
    }

    .xhb-header .brand img {
        width: clamp(126px, 45vw, 162px);
        height: auto;
    }

    .xhb-header .header-actions {
        gap: 6px;
    }
}

@media print {
    .xhb-hero__background,
    .xhb-hero::after {
        display: none;
    }

    .xhb-hero {
        background: #fff;
    }
}
