/* css/index.css — стили для главной страницы */

/* ============================================
   HERO-СЕКЦИЯ
   ============================================ */

.hero-section {
    text-align: center;
    padding: 3rem 1rem 4rem;
    position: relative;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.3rem;
    background: rgba(99, 217, 156, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(99, 217, 156, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
    letter-spacing: 3px;
    line-height: 1.05;
    filter: drop-shadow(0 0 20px rgba(99, 217, 156, 0.2));
    animation: fadeInUp 0.7s ease-out;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   СТАТИСТИКА В HERO
   ============================================ */

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.9s ease-out;
    max-width: 560px;
    width: 100%;
}

.hero-stat {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 0.15rem 0.4rem;
}

.hero-stat-value {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(99, 217, 156, 0.2);
    line-height: 1.2;
    margin-bottom: 0.15rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(99, 217, 156, 0.2),
        transparent
    );
    flex-shrink: 0;
}

/* ============================================
   КНОПКИ
   ============================================ */

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.9rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}

/* Основная кнопка — стеклянная зелёная */
.hero-btn-primary {
    background: rgba(99, 217, 156, 0.12);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: var(--primary-color);
    border: 1px solid rgba(99, 217, 156, 0.3);
    box-shadow: 
        0 4px 20px rgba(99, 217, 156, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-btn-primary:hover {
    background: rgba(99, 217, 156, 0.2);
    border-color: rgba(99, 217, 156, 0.5);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(99, 217, 156, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.hero-btn-primary:active {
    transform: translateY(-1px);
}

/* Вторичная кнопка — стеклянная нейтральная */
.hero-btn-secondary {
    background: rgba(30, 30, 30, 0.55);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-btn-secondary:hover {
    background: rgba(30, 30, 30, 0.75);
    border-color: rgba(99, 217, 156, 0.3);
    transform: translateY(-3px);
    color: var(--primary-color);
    box-shadow: 
        0 8px 30px rgba(99, 217, 156, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-btn-secondary:active {
    transform: translateY(-1px);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1rem 3rem;
        min-height: 60vh;
    }

    .hero-stats {
        gap: 0.75rem;
        padding: 0.9rem 1rem;
        max-width: 100%;
    }

    .hero-stat {
        min-width: 80px;
        padding: 0.1rem;
    }

    .hero-stat-value {
        font-size: 1.1rem;
    }

    .hero-stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .hero-stat-divider {
        height: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 0.8rem 1.4rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0.75rem 2.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* На мобильных — статистика в столбик */
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0.9rem;
        border-radius: 14px;
    }

    .hero-stat {
        min-width: auto;
        width: 100%;
    }

    .hero-stat-value {
        font-size: 1.3rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }

    .hero-stat-divider {
        width: 50%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent,
            rgba(99, 217, 156, 0.2),
            transparent
        );
    }

    .hero-btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
    }
}