/**
 * Стили для H2 навигации
 */

.h2-navigation-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.h2-navigation-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.h2-navigation {
    margin: 0;
}

.h2-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.h2-menu-item {
    margin: 0;
}

.h2-menu-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.h2-menu-link:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.h2-menu-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .h2-navigation-section {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .h2-menu-list {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .h2-menu-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
}

/* Стили для секций с ID */
section[id] {
    scroll-margin-top: 2rem;
}

/* Анимация при прокрутке */
.h2-menu-link.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Стили для последних статей */
.home-latest-articles {
    margin: 3rem 0;
}

.home-latest-articles__title {
    margin: 0 0 2rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.home-latest-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.latest-article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-thumb {
    position: relative;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #0073aa;
}

.article-meta {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #666;
}

.article-date {
    display: inline-flex;
    align-items: center;
}

.article-excerpt {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.5;
}

.article-read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.article-read-more:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

.home-latest-articles__footer {
    text-align: center;
}

.all-articles-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #f8f9fa;
    color: #0073aa;
    text-decoration: none;
    border: 2px solid #0073aa;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.all-articles-btn:hover {
    background: #0073aa;
    color: #fff;
    text-decoration: none;
}

/* Адаптивность для статей */
@media (max-width: 768px) {
    .home-latest-articles__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-thumb img {
        height: 150px;
    }
}
