.hero-group {
    position: relative;
    margin-bottom: 50px;
}

.hero {
    position: relative;
    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: 787px;
    max-width: 100%;
    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-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;
}

/* Три карточки в один ряд на всю ширину контейнера: края первой и последней по бортам; каждая следующая наезжает на предыдущую на 64px */
.stats-row {
    position: absolute;
    right: 0;
    bottom: -50px;
    width: 60%;
    max-width: 100%;
    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: 100%;
    box-sizing: border-box;
}

.stat-item {
    justify-content: center;
    --stat-overlap: 64px;
    position: relative;
    box-sizing: border-box;
    flex: 0 0 calc((100% + 2 * var(--stat-overlap)) / 3);
    width: calc((100% + 2 * var(--stat-overlap)) / 3);
    min-width: 0;
    min-height: 233px;
    padding: 50px 48px;
    display: flex;
    align-items: flex-end;
    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: flex-start;
    justify-content: flex-end;
    gap: 4px;
}

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

/* Иконка-стрелка: файл img/stat-arrow.svg, круг как у бывшего .stat-arrow */
.stat-item--arrow::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(244, 122, 31, 1);
    background-image: url('../../img/stat-arrow.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    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;
}
