/*
 * HERO SECTION ПО ПРИНЦИПАМ ДОНАЛЬДА НОРМАНА
 * Чистый, аккуратный, эффектный дизайн
 */

/* ==========================================
   HERO SECTION - Главная секция
   ========================================== */

.hero-section-norman {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #faf8f3 100%);
    overflow: hidden;
    padding-bottom: 40px;
}

/* Декоративный фон */
.hero-section-norman::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(216, 67, 21, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ==========================================
   HEADER - Минималистичный и элегантный
   ========================================== */

.header-norman {
    padding: 24px 0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

/* Логотип */
.logo-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50; /* Тёмный цвет для видимости на светлом фоне */
    margin: 0;
    line-height: 1;
}

.logo-subtitle {
    font-size: 14px;
    color: #34495e; /* Тёмный цвет для видимости */
    margin: 0;
    font-weight: 500;
}

/* Статистика */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

.stat-item {
    text-align: center;
    cursor: help;
    position: relative;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ==========================================
   HERO CONTENT - Основной контент
   ========================================== */

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

/* Главный блок */
.hero-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Заголовок */
.hero-heading {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: var(--text-color);
}

.hero-heading-line {
    display: block;
}

.hero-heading-accent {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Подзаголовок */
.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: #2c3e50; /* Тёмный цвет для читабельности */
    margin: 0;
    max-width: 520px;
    font-weight: 500;
}

/* CTA Кнопки */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-large {
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    font-size: 20px;
    line-height: 1;
}

.btn-text {
    line-height: 1;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Социальное доказательство */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
}

.avatars-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 18px;
    border: 3px solid white;
    margin-left: -12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-more {
    background: var(--bg-canvas);
    color: var(--text-color);
    font-size: 14px;
}

.social-proof-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

.social-proof-text strong {
    color: var(--text-color);
    font-weight: 700;
}

/* ==========================================
   HERO GALLERY - Визуальный магнит
   ========================================== */

.hero-gallery {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-large {
    grid-column: span 2;
    aspect-ratio: 2/1;
    flex-direction: row;
    justify-content: space-between;
    padding: 32px;
}

.gallery-emoji {
    font-size: 64px;
    position: relative;
    z-index: 1;
    /* Убрали анимацию transform */
    margin-bottom: 12px;
}

.gallery-large .gallery-emoji {
    font-size: 80px;
    margin-bottom: 0;
    margin-right: 24px;
}

/* Текст всегда виден */
.gallery-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.gallery-large .gallery-text-content {
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.gallery-category-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-large .gallery-category-name {
    font-size: 28px;
}

.gallery-category-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.gallery-large .gallery-category-desc {
    font-size: 16px;
}

.gallery-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-top: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Убираем overlay - текст всегда виден */
.gallery-overlay {
    display: none;
}

/* Gallery CTA */
.gallery-cta {
    background: var(--primary-gradient);
    border: 3px dashed white;
}

.gallery-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gallery-cta-icon {
    font-size: 48px;
    font-weight: 700;
    color: white;
    transition: transform 0.3s ease;
}

.gallery-cta:hover .gallery-cta-icon {
    transform: translateX(8px);
}

.gallery-cta-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

/* ==========================================
   CATALOG SECTION - Витрина после hero
   ========================================== */

.catalog-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.catalog-header {
    margin-bottom: 40px;
}

.section-heading {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 32px 0;
    color: var(--text-color);
}

/* Фильтры */
.catalog-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: white;
}

.filter-icon {
    font-size: 18px;
    line-height: 1;
}

.filter-text {
    line-height: 1;
}

/* ==========================================
   АДАПТИВНОСТЬ
   ========================================== */

@media (max-width: 968px) {
    .hero-content {
        padding: 30px 24px;
    }
    
    .hero-heading {
        font-size: 36px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-large {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .hero-heading {
        font-size: 32px;
        /* 💡 Увеличиваем контраст для читаемости */
        color: #2c3e50;
        text-shadow: 0 1px 3px rgba(255,255,255,0.8);
    }
    
    .hero-heading-accent {
        color: #e74c3c;
        text-shadow: 0 2px 4px rgba(231,76,60,0.2);
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .btn-large {
        width: 50%;
        justify-content: center;
        font-size: 14px;
        padding: 14px 18px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-large {
        grid-column: span 2;
    }
    
    .gallery-emoji {
        font-size: 48px;
    }
    
    .section-heading {
        font-size: 28px;
    }
    
    /* 🚫 Скрываем "Популярные категории" на мобильных */
    .categories-section {
        display: none;
    }
    
    /* 💡 Улучшаем читаемость текста на мобильных */
    .petition-title {
        color: #2c3e50;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(255,255,255,0.6);
    }
    
    .petition-text {
        color: #34495e;
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 24px;
    }
    
    .logo-icon {
        font-size: 36px;
    }
    
    .hero-heading {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .hero-social-proof {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================
   ПЛАВНЫЕ АНИМАЦИИ ПОЯВЛЕНИЯ
   ========================================== */

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

.hero-heading {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-actions {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-social-proof {
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.hero-gallery {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Каждый gallery-item появляется по очереди */
.gallery-item:nth-child(1) { animation: fadeInUp 0.6s ease 0.6s backwards; }
.gallery-item:nth-child(2) { animation: fadeInUp 0.6s ease 0.7s backwards; }
.gallery-item:nth-child(3) { animation: fadeInUp 0.6s ease 0.8s backwards; }
.gallery-item:nth-child(4) { animation: fadeInUp 0.6s ease 0.9s backwards; }
.gallery-item:nth-child(5) { animation: fadeInUp 0.6s ease 1.0s backwards; }
.gallery-item:nth-child(6) { animation: fadeInUp 0.6s ease 1.1s backwards; }
