/* hero.css - Стили для главной секции */

/* Стили для секции героя */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(28, 44, 62, 0.8) 0%, rgba(12, 22, 34, 0.9) 100%);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-height: 400px;
    margin-bottom: 3rem;
}

/* Фоновая анимация */
.animated-bg {
    position: relative;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 199, 44, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    animation: bgMove 120s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes bgMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

/* Контент секции героя */
.hero-content {
    max-width: 800px;
    z-index: 1;
}

.animated-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #ffc72c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    animation: fadeIn 1s ease;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
    line-height: 1.2;
}

.animated-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease 0.2s both;
    max-width: 600px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1s ease 0.4s both;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ffc72c 0%, #f59e0b 100%);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 199, 44, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 199, 44, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active, .btn-secondary:active {
    transform: translateY(0);
}

/* Эффект пульсации при нажатии */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0) translate(-50%, -50%);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Преимущества */
.animated-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeIn 1s ease 0.6s both;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 199, 44, 0.2);
    color: #fff;
}

.benefit-item i {
    color: var(--gold);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 1.5rem;
        min-height: 350px;
    }

    .animated-title {
        font-size: 2.5rem;
    }

    .animated-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }

    .benefit-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .animated-title {
        font-size: 2rem;
    }

    .animated-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .animated-benefits {
        flex-direction: column;
        align-items: center;
    }

    .benefit-item {
        width: 100%;
        justify-content: center;
    }
}
