/* ============================================
   NEWS — архив + одиночная запись
   ============================================ */

/* ==================== */
/* АРХИВ (сетка)        */
/* ==================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--border);
}

.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-light);
}

.news-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb {
    transform: scale(1.05);
}

.news-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.news-date {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bg-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--steel-dark);
    box-shadow: var(--shadow-sm);
}

.news-card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.news-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.news-card-link-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--steel-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    transition: color 0.2s ease;
}

.news-card:hover .news-card-link-text {
    color: var(--accent);
}

/* ==================== */
/* ОДИНОЧНАЯ ЗАПИСЬ     */
/* ==================== */
.news-single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.news-single-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 28px;
}

.news-featured-img {
    width: 100%;
    height: auto;
}

.news-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.news-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--dark);
}

.news-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 24px 0 12px;
}

.news-content p {
    margin-bottom: 16px;
}

.news-content ul,
.news-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.news-content li {
    margin-bottom: 8px;
}

.news-content img {
    border-radius: var(--radius-lg);
    margin: 16px 0;
}

.news-content blockquote {
    border-left: 3px solid var(--steel);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-light);
    font-style: italic;
}

/* Навигация */
.news-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.news-nav-prev a,
.news-nav-next a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--steel-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-nav-prev a:hover,
.news-nav-next a:hover {
    color: var(--accent);
}

/* Сайдбар */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.news-recent-list {
    list-style: none;
    padding: 0;
}

.news-recent-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-recent-list li:last-child {
    border-bottom: none;
}

.news-recent-list li a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-recent-list li a:hover {
    color: var(--accent);
}

.news-recent-list li span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== */
/* АДАПТИВ              */
/* ==================== */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-single-layout {
        grid-template-columns: 1fr;
    }
    .news-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-navigation {
        flex-direction: column;
        gap: 10px;
    }
}