/* ====================================================
   home.css - Стили для главной страницы RootMind
   ==================================================== */

/* ===== ГЕРОЙ-СЕКЦИЯ ===== */
.hero-section {
    background: var(--rm-gradient-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.08)' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    opacity: 0.4;
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: rm-fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: rm-fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    animation: rm-fadeInUp 0.8s ease 0.4s both;
}

/* ===== СИСТЕМЫ ===== */
.systems-section {
    padding: 60px 0;
    background: var(--rm-bg-secondary);
}

/* ===== НОВОСТИ ===== */
.news-item {
    transition: background 0.2s ease;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
}

.news-item:hover {
    background: var(--rm-bg-tertiary);
}

.news-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.news-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--rm-text-secondary);
}

/* ===== СПИННЕР ===== */
.spinner-border.text-rm-orange {
    color: var(--rm-orange) !important;
}

/* ===== О ПРОЕКТЕ ===== */
.about-icon {
    font-size: 2.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: var(--rm-orange-pale);
    color: var(--rm-orange);
    transition: all 0.3s ease;
}

.about-icon:hover {
    background: var(--rm-orange);
    color: #fff;
    transform: scale(1.05);
}

/* ===== МОДУЛИ (переопределение для главной) ===== */
.module-section .rm-feature-card {
    background: var(--rm-bg-card);
}

.module-section .rm-feature-card:hover {
    border-color: var(--rm-orange-light);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .systems-section {
        padding: 40px 0;
    }

    .module-section {
        padding: 30px 0;
    }

    .news-item {
        padding: 0.5rem 0.25rem;
    }

    .news-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-section .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }

    .hero-buttons .me-2 {
        margin-right: 0 !important;
    }
}