.hero-group {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 730px;
    min-height: 730px;
    padding: 0;
    background-color: #1c1c1a;
    background-image: url('../../img/hero-bg.svg');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    border-radius: 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(28, 28, 26, 0.92) 0%,
        rgba(28, 28, 26, 0.6) 50%,
        rgba(28, 28, 26, 0.1) 100%
    );
    z-index: 1;
}

.hero-photo {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    z-index: 0;
}

.hero-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 65%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    align-self: flex-start;
    width: min(65%, 787px);
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 130px 87px 244px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 40px;
}

.hero-title {
    font-size: 50px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
}

.hero-title .accent {
    color: var(--orange);
}

/* ПК: подчёркивание под «альпинизм», мобилка — под «промышленный» */
.hero-mark--prom::after {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --site-nav-block: 85px;
        --hero-screen-h: calc(100svh - var(--site-nav-block));
    }

    .hero-screen {
        height: var(--hero-screen-h);
        min-height: var(--hero-screen-h);
        max-height: var(--hero-screen-h);
        display: flex;
        flex-direction: column;
    }

    .hero-screen .hero-group {
        flex: 1;
        min-height: 0;
        height: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .hero-screen .hero {
        flex: 1;
        height: 100%;
        min-height: 100%;
        max-height: 100%;
        background-image: none;
    }

    .hero-photo {
        background-image: url('../../img/hero-bg.svg');
        background-position: 65% 50%;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

@media (max-width: 430px) {
    .hero-mark--prom::after {
        display: block;
    }

    .hero-mark--alp::after {
        display: none;
    }
}

.hero-subtitle {
    padding-top: 30px;
    font-size: 20px;
    color: rgba(255, 255, 255, 1);
    line-height: 1.65;
    font-weight: 500;
}

.hero-btns {
    padding-top: 81px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ПК: три карточки 308×233, наложение 12.5% (в диапазоне 10–15%) */
@media (min-width: 769px) {
    .stats-row {
        position: absolute;
        right: 0;
        bottom: -50px;
        width: auto;
        max-width: none;
        z-index: 10;
        isolation: isolate;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .stats-row__inner {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        width: auto;
        --stat-card-w: 308px;
        --stat-card-h: 233px;
        --stat-overlap: calc(var(--stat-card-w) * 0.125);
    }

    .stat-item {
        position: relative;
        box-sizing: border-box;
        flex: 0 0 var(--stat-card-w);
        width: var(--stat-card-w);
        height: var(--stat-card-h);
        min-height: var(--stat-card-h);
        max-height: var(--stat-card-h);
        padding: 0 20px 38px;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 10px;
        color: white;
        background: rgba(15, 15, 15, 0.3);
        border: 1px solid rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border-radius: 30px;
    }

    .stat-item:not(:first-child) {
        margin-left: calc(-1 * var(--stat-overlap));
    }

    .stat-item:nth-child(1) {
        z-index: 1;
    }

    .stat-item:nth-child(2) {
        z-index: 2;
    }

    .stat-item:nth-child(3) {
        z-index: 3;
    }

    .stat-item:last-child {
        border-right: none;
    }

    .stat-item--highlight {
        background: var(--orange);
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        padding: 20px;
        gap: 4px;
        text-align: center;
    }

    .stat-item--highlight .stat-label {
        margin-bottom: 0;
        letter-spacing: 0.08em;
    }
}

/* Иконка Arrow 2.svg в 3-й карточке (только ПК) */
@media (min-width: 769px) {
    .stat-item--arrow::after {
        content: '';
        position: absolute;
        top: 16px;
        right: 16px;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background-color: var(--orange);
        background-image: url('../../img/Arrow%202.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: calc(64px * var(--btn-more-icon-arrow) / var(--btn-more-icon-circle)) calc(64px * var(--btn-more-icon-arrow) / var(--btn-more-icon-circle));
        pointer-events: none;
    }
}

.stat-num {
    font-size: 130px;
    font-weight: 400;
    color: rgba(244, 122, 31, 1);
    line-height: 1;
}

.stat-item--highlight .stat-num {
    color: white;
}

.stat-label {
    font-size: 20px;
    font-weight: 500;
}

.stat-item--highlight .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.stat-caption {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeUp 0.6s ease both;
}

.hero-content > *:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content > *:nth-child(3) {
    animation-delay: 0.3s;
}
