.news-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.news-header p {
    font-size: 18px;
    color: #888;
}

/* Фильтр */
.news-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #111;
    border: 1px solid #1a1a1a;
    color: #888;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #2ecc71;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.filter-btn.active {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #0a0a0a;
    font-weight: 600;
}

/* Сетка новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Карточка новости */
.news-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card:hover {
    border-color: #2ecc71;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Изображение новости */
.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.news-card:hover .news-card-image {
    filter: brightness(1);
}

.news-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a2a1a 0%, #0d1a0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #2ecc71;
}

/* Содержимое карточки */
.news-card-content {
    padding: 24px;
}

.news-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2ecc71;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-card-excerpt {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #1a1a1a;
}

.news-card-date {
    font-size: 13px;
    color: #555;
}

.news-card-read-more {
    font-size: 14px;
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.news-card-read-more:hover {
    color: #27ae60;
}

/* Выделенная новость */
.news-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.news-card.featured .news-card-image,
.news-card.featured .news-card-image-placeholder {
    height: 100%;
}

.news-card.featured .news-card-title {
    font-size: 26px;
}

/* Загрузить ещё */
.news-load-more {
    text-align: center;
    padding: 20px;
}

.news-load-more .btn-green {
    padding: 14px 40px;
    font-size: 16px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .news-container {
        padding: 0 20px;
    }
    
    .news-header h1 {
        font-size: 32px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .news-card.featured .news-card-image,
    .news-card.featured .news-card-image-placeholder {
        height: 200px;
    }
    
    .news-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .news-header h1 {
        font-size: 26px;
    }
    
    .news-card-title {
        font-size: 18px;
    }
    
    .news-card.featured .news-card-title {
        font-size: 22px;
    }
}


/* Модальное окно новости */
:root {
    --news-modal-width: 800px;
    --news-modal-max-height: 85vh;
}

.news-modal .modal-box {
    width: var(--news-modal-width);
    max-width: 95%;
    max-height: var(--news-modal-max-height);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-modal-body {
    overflow-y: auto;
    padding: 30px;
    max-height: calc(var(--news-modal-max-height) - 80px);
}

/* Стилизация скроллбара в модалке */
.news-modal-body::-webkit-scrollbar {
    width: 6px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 3px;
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 3px;
}

.news-modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.news-modal-body h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-modal-meta {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a1a1a;
}

.news-modal-date {
    font-size: 14px;
    color: #666;
}

.news-modal-content {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
}

.news-modal-content p {
    margin-bottom: 16px;
}

.news-modal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
    list-style: none;
}

.news-modal-content ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
}

.news-modal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #2ecc71;
    border-radius: 50%;
}

.news-card {
    cursor: pointer;
}

.news-card-read-more {
    font-size: 14px;
    color: #2ecc71;
    font-weight: 500;
}

/* Адаптив для модалки */
@media (max-width: 768px) {
    .news-modal-body {
        padding: 20px;
    }
    
    .news-modal-body h2 {
        font-size: 22px;
    }
    
    .news-modal-image {
        max-height: 250px;
    }
}