/**
 * Стили для главной страницы
 */

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: #F7F9FA;
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1C1D1F;
    letter-spacing: -0.02em;
}

.section-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--color-primary-dark);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Минималистичная главная страница */
.minimal-homepage-wrapper {
    width: 100%;
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.minimal-homepage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    margin: 0 auto;
}

.search-center-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
    text-align: center;
}

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

.featured-projects {
    padding: 3rem 0;
}

.featured-projects h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Homepage Layout with Sidebar */
.homepage-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.homepage-main {
    min-width: 0;
    width: 100%;
}

.homepage-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

@media (max-width: 1024px) {
    .homepage-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .homepage-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

