.articles-page {
    max-width: 100%; /* было 1200px */
    margin: 0 auto;
    padding: 0px;
}

.page-header {
    text-align: left;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 21px;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 15px;
}

.page-header h1 i {
    color: #667eea;
}

.page-header p {
    color: #6c757d;
    font-size: 13px;
}

/* Секция категории */
.category-section {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.category-section.uncategorized {
    background: #f8f9fa;
}

.category-title {
    margin: 0 0 25px 0;
    font-size: 21px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.category-link:hover {
    color: #667eea;
}

.category-link i {
    color: #667eea;
    font-size: 1.3rem;
}

.article-count {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: normal;
}

/* Сетка статей */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка статьи */
.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.article-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-image.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image.placeholder i {
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.article-content {
    padding: 25px!important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 0.85rem;
}

.article-meta i {
    margin-right: 5px;
}

.article-title {
    font-size: 1.25rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
        font-size: 13px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.2s;
}

.read-more:hover {
    gap: 12px;
}

.read-more i {
    transition: transform 0.2s;
}

/* Кнопка "Все статьи" */
.view-all {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: #5a67d8;
    transform: translateX(5px);
}

.btn-view-all i {
    transition: transform 0.2s;
}

.btn-view-all:hover i {
    transform: translateX(5px);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

.empty-state p {
    color: #adb5bd;
}

.no-articles {
    color: #6c757d;
    text-align: center;
    padding: 40px;
    font-style: italic;
}

/* Адаптивность */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .category-section {
        padding: 20px;
    }

    .category-title {
        font-size: 1.3rem;
    }
}
