/* Основной контейнер секции */
.hero {
    min-height: calc(100vh - 80px); /* Высота минус шапка */
    display: flex;
    align-items: center;
    padding: 60px 0;
    background-color: #161616; /* Черный фон */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Базовое состояние для анимации появления (скрыто) */
.hero_content,
.hero_visual {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), 
                transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* Активное состояние (показываем) */
.hero.visible .hero_content {
    opacity: 1;
    transform: translateY(0);
}

.hero.visible .hero_visual {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* Правая часть появляется чуть позже для каскада */
}

.hero_container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

/* Типографика */
.hero_title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #ffffff;
}

.hero_title-accent {
    color: #D4A017; /* Темно-желтый / золотой */
    position: relative;
    display: inline-block;
}

/* Небольшое подчеркивание для акцента */
.hero_title-accent::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(226, 149, 77, 0.425);
    z-index: -1;
}

.hero_description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #b0b0b0;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Кнопки */
.hero_actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background-color: #D4A017; /* Темно-желтый */
    color: #000000;
    border-color: #D4A017;
}

.btn--primary:hover {
    background-color: #e6b32a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(212, 160, 23, 0.5);
}

.btn--outline {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn--outline:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* Статистика в левой части */
.hero_stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item_value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #D4A017;
    line-height: 1.2;
}

.stat-item_label {
    font-size: 0.9rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ ПРАВОЙ ВИЗУАЛЬНОЙ ЧАСТИ ===== */
.hero_visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}

.hero_card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
}

/* Основная карточка статистики */
.hero_stat-card {
    background: rgba(17, 15, 14, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.hero_stat-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 30px;
    right: 30px;
    height: 3px;
    background: linear-gradient(90deg, #D4A017, transparent);
    border-radius: 0 0 4px 4px;
}

.stat-card_title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.stat-card_subtitle {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-bottom: 24px;
}

.stat-card_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card_item {
    text-align: center;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-card_item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
}

.stat-card_number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #D4A017;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-card_label {
    font-size: 0.8rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Плавающие карточки */
.floating-card {
    position: absolute;
    background: rgb(254, 150, 45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    animation: float 5s ease-in-out infinite;
    z-index: 10;
    transition: all 0.3s ease;
}

.floating-card:hover {
    border-color: rgba(212, 160, 23, 0.5);
    transform: scale(1.02);
}

.floating-card--top {
    top: -40px;
    right: -20px;
    animation-delay: 0s;
}

.floating-card--bottom {
    bottom: -40px;
    left: -20px;
    animation-delay: -s;
}

.floating-card_icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 160, 23, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.floating-card_content {
    display: flex;
    flex-direction: column;
}

.floating-card_text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.floating-card_sub {
    font-size: 0.8rem;
    color: #ffffff;
    margin-top: 2px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero_title {
        font-size: 2.8rem;
    }
    .hero_container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero_description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero_actions {
        justify-content: center;
    }
    .hero_stats {
        justify-content: center;
    }
    .hero_visual {
        min-height: 400px;
    }
    .hero_card-stack {
        margin: 0 auto;
    }
    .floating-card--top {
        right: 0;
    }
    .floating-card--bottom {
        left: 0;
    }
}

@media (max-width: 576px) {
    .hero_title {
        font-size: 2rem;
    }
    .hero_stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .hero_actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        text-align: center;
    }
    .hero_card-stack {
        max-width: 100%;
    }
    .hero_stat-card {
        padding: 20px;
    }
    .stat-card_number {
        font-size: 1.6rem;
    }
    .floating-card {
        padding: 12px 16px;
    }
    .floating-card--top {
        right: 0;
        top: -15px;
    }
    .floating-card--bottom {
        left: 0;
        bottom: -15px;
    }
    .floating-card_icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .floating-card_text {
        font-size: 0.85rem;
    }
}