/* css/home.css */



/* --- ДОБАВЛЕНО: Плавная прокрутка --- */
html {
    scroll-behavior: smooth;
}

/* --- Hero Section --- */
.hero-section {
    height: 85vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; padding: 0 20px;
}

.hero-content { max-width: 800px; z-index: 2; animation: fadeInUp 0.8s ease-out; }

.hero-title {
    font-size: 4rem; color: var(--text-color); margin-bottom: 20px;
    font-family: 'Minecraft', sans-serif; line-height: 1.2;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(106, 90, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.6;
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.hero-btn {
    padding: 15px 35px; border-radius: 50px; font-size: 1.1rem; font-weight: bold;
    text-decoration: none; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px;
    font-family: 'Minecraft', sans-serif;
}

.hero-btn.primary {
    background: var(--gradient-primary); color: white;
    box-shadow: 0 10px 25px rgba(106, 90, 255, 0.4);
}
.hero-btn.primary:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(106, 90, 255, 0.6); }

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1); color: var(--text-color);
    border: 1px solid var(--border-color); backdrop-filter: blur(10px);
}
.hero-btn.secondary:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-5px); }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center;
    opacity: 0.7; animation: bounce 2s infinite;
}
.mouse {
    width: 30px; height: 50px; border: 2px solid var(--text-muted);
    border-radius: 20px; display: flex; justify-content: center; padding-top: 10px;
}
.wheel { width: 4px; height: 8px; background: var(--text-muted); border-radius: 2px; }
.arrow {
    width: 15px; height: 15px; border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); margin-top: 10px;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* --- Stats Section --- */
.stats-section {
    padding: 60px 20px;
    background: var(--secondary-background);
    margin: 50px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--gradient-primary);
    opacity: 0; transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 80px; height: 80px;
    background: rgba(106, 90, 255, 0.1);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.stat-data { display: flex; flex-direction: column; }
.stat-num {
    font-size: 3.5rem; font-weight: bold; color: var(--text-color);
    font-family: 'Minecraft', sans-serif; line-height: 1; margin-bottom: 5px;
}
.stat-label {
    color: var(--text-muted); text-transform: uppercase;
    font-size: 1rem; font-weight: 600; letter-spacing: 1px;
}

/* --- Features Section --- */
.features-section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }

.section-title {
    text-align: center; font-size: 2.5rem; margin-bottom: 60px;
    font-family: 'Minecraft', sans-serif; color: var(--text-color);
}
.section-title .highlight { color: var(--primary-color); }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}

.feature-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 24px; padding: 40px 30px; text-align: center;
    transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-10px); border-color: var(--primary-color);
    box-shadow: var(--shop-card-shadow);
}

.feat-icon {
    width: 80px; height: 80px; background: var(--gradient-primary);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: white; margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(106, 90, 255, 0.3);
}

.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-color); }
.feature-card p { color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; }

.feat-link {
    color: var(--primary-color); text-decoration: none; font-weight: bold;
    display: inline-flex; align-items: center; gap: 5px; transition: gap 0.3s;
}
.feat-link:hover { gap: 10px; }

/* --- News Section --- */
.news-section { max-width: 1200px; margin: 0 auto 80px; padding: 0 20px; }

.news-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.news-section .section-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.view-all-btn {
    color: var(--text-muted); text-decoration: none; border: 1px solid var(--border-color);
    padding: 10px 20px; border-radius: 12px; transition: var(--transition);
}
.view-all-btn:hover { color: var(--primary-color); border-color: var(--primary-color); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 25px; }

.home-news-card {
    background: var(--card-bg); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border-color); text-decoration: none; transition: var(--transition);
}
.home-news-card:hover { transform: translateY(-5px); box-shadow: var(--shop-card-shadow); }

.news-img { height: 200px; overflow: hidden; position: relative; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.home-news-card:hover img { transform: scale(1.1); }

.news-cat {
    position: absolute; top: 15px; left: 15px; background: var(--primary-color);
    color: white; padding: 5px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: bold;
}

.news-content { padding: 20px; }
.news-content h4 { margin: 0 0 10px; color: var(--text-color); font-size: 1.2rem; line-height: 1.4; }
.news-date { font-size: 0.9rem; color: var(--text-muted); }

/* --- FAQ --- */
.faq-section { max-width: 900px; margin: 0 auto 100px; padding: 0 20px; }

.faq-container { display: flex; flex-direction: column; gap: 15px; }

.faq-item {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 16px; overflow: hidden; transition: var(--transition);
}
.faq-item.active { border-color: var(--primary-color); }

.faq-question {
    padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-weight: bold; font-size: 1.1rem; color: var(--text-color);
}
.faq-question span { display: flex; align-items: center; gap: 15px; }
.faq-question i { color: var(--primary-color); font-size: 1.2rem; }
.arrow-icon { transition: transform 0.3s; color: var(--text-muted) !important; }
.faq-item.active .arrow-icon { transform: rotate(180deg); color: var(--primary-color) !important; }

.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
    padding: 0 25px; color: var(--text-muted); line-height: 1.7;
}

.faq-item.active .faq-answer { max-height: 2000px; padding-bottom: 25px; }

.faq-answer ul, .faq-answer ol { margin: 10px 0; padding-left: 20px; }
.faq-answer li { margin-bottom: 5px; }
.faq-answer strong { color: var(--text-color); }

.faq-cta { text-align: center; margin-top: 40px; }
.faq-cta p { color: var(--text-muted); margin-bottom: 15px; font-size: 1.1rem; }
.contact-btn {
    display: inline-block; padding: 12px 35px; background: var(--secondary-background);
    color: var(--text-color); text-decoration: none; border-radius: 12px;
    border: 1px solid var(--border-color); transition: var(--transition); font-weight: bold;
}
.contact-btn:hover { border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); }

/* --- CTA Section --- */
.cta-section { padding: 0 20px 100px; }
.cta-box {
    max-width: 1000px; margin: 0 auto; background: var(--gradient-primary);
    border-radius: 30px; padding: 60px; text-align: center; color: white;
    box-shadow: 0 20px 50px rgba(106, 90, 255, 0.4); position: relative; overflow: hidden;
}
.cta-box h2 { font-size: 2.5rem; margin-bottom: 15px; font-family: 'Minecraft', sans-serif; }
.cta-box p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-btn {
    padding: 15px 40px; border-radius: 50px; font-weight: bold; text-decoration: none;
    font-size: 1.1rem; transition: transform 0.3s; display: flex; align-items: center; gap: 10px;
}
.cta-btn.primary { background: white; color: var(--primary-color); }
.cta-btn.secondary { background: rgba(255,255,255,0.2); color: white; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.3); }
.cta-btn:hover { transform: translateY(-5px); }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }

    /* CTA BOX исправления */
    .cta-box { padding: 40px 20px; }

    /* Уменьшаем текст "Готовы присоединиться?" */
    .cta-box h2 {
        font-size: 1.8rem; /* Уменьшили размер шрифта */
        line-height: 1.3;
    }

    /* CTA Кнопки на всю ширину */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .cta-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* Кнопки Hero */
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-btn { width: 100%; justify-content: center; box-sizing: border-box; }

    /* Статистика */
    .stats-container { flex-direction: column; gap: 20px; }
    .stat-card {
        width: 100%; flex-direction: row; text-align: left;
        padding: 30px 20px; box-sizing: border-box; justify-content: flex-start;
    }
    .stat-num { font-size: 2.5rem; }

    /* Кнопка "Все новости" */
    .news-section .section-header {
        flex-direction: column; align-items: center; gap: 20px; text-align: center;
    }
    .news-section .section-header .section-title { text-align: center; }
    .view-all-btn { width: 100%; display: flex; justify-content: center; box-sizing: border-box; }

    /* Анимация свайпа */
    .scroll-indicator { animation: none; }
    .scroll-indicator .mouse, .scroll-indicator .arrow { display: none; }
    .scroll-indicator::before {
        content: '\f25a';
        font-family: "Font Awesome 6 Free";
        font-weight: 900; font-size: 2rem; color: var(--text-muted);
        display: block; animation: swipeUp 2s infinite;
    }
}

@keyframes swipeUp {
    0% { opacity: 0; transform: translateY(10px); }
    30% { opacity: 1; transform: translateY(-10px); }
    70% { opacity: 1; transform: translateY(-30px); }
    100% { opacity: 0; transform: translateY(-30px); }
}