/* ===================
   СТАТЬИ И ОБЗОРЫ — карточки
=================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.articles-grid--listing {
    grid-template-columns: repeat(3, 1fr);
}

.article-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.article-image-container {
    height: 160px;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #f5f5f5;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    background: #f0f0f0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #777;
}

.article-date {
    color: #777;
}

.article-category {
    color: #fbd303;
    font-weight: bold;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.article-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-more {
    color: #fbd303;
    font-weight: bold;
    text-align: right;
}

.article-card-link:hover .article-more {
    color: #e0bc00;
}

/* Блок новостей на главной */
.news-home {
    margin-bottom: 40px;
}

.news-all-link {
    text-align: center;
    margin-top: 10px;
}

.news-all-btn {
    display: inline-block;
    background: #fbd303;
    color: #000;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.news-all-btn:hover {
    background: #e0bc00;
    transform: translateY(-1px);
}

/* ===================
   СТРАНИЦА СПИСКА НОВОСТЕЙ
=================== */
.news-page {
    padding: 20px 0 50px;
}

.breadcrumbs {
    font-size: 13px;
    color: #666;
    margin: 10px 0 24px;
}

.breadcrumbs a {
    color: #111;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #fbd303;
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.news-category-tab {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.news-category-tab:hover {
    background: #fff9d6;
    border-color: #fbd303;
}

.news-category-tab.active {
    background: #fbd303;
    border-color: #fbd303;
    color: #000;
    font-weight: bold;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Пагинация */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 40px;
}

.news-pagination-btn,
.news-pagination-current {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.news-pagination-btn {
    background: #f9f9f9;
    color: #333;
    border: 1px solid #ddd;
}

.news-pagination-btn:hover {
    background: #fbd303;
    border-color: #fbd303;
    color: #000;
}

.news-pagination-current {
    background: #fbd303;
    color: #000;
    border: 1px solid #fbd303;
    font-weight: bold;
}

/* ===================
   СТРАНИЦА ПОЛНОЙ НОВОСТИ
=================== */
.news-single {
    padding: 24px 0 60px;
}

.news-single .breadcrumbs {
    max-width: 900px;
    margin: 0 auto 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-single-article {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 48px 56px 40px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.news-single-header {
    margin-bottom: 32px;
}

.news-single-title {
    font-size: 40px;
    font-weight: 700;
    color: #111;
    margin: 16px 0 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.news-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0 0 8px;
    font-size: 14px;
    color: #888;
}

.news-single-date {
    color: #888;
}

.news-single-category {
    display: inline-block;
    padding: 4px 12px;
    background: #fff9d6;
    color: #665c00;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #fbd303;
}

.news-single-figure {
    margin: 36px 0 40px;
    padding: 0;
    width: 100%;
}

.news-single-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-single-content {
    font-size: 17px;
    color: #333;
    line-height: 1.85;
    margin-bottom: 0;
}

.news-single-content > *:first-child {
    margin-top: 0;
}

.news-single-content > *:last-child {
    margin-bottom: 0;
}

.news-single-content p {
    margin-bottom: 1.35em;
}

.news-single-content h2,
.news-single-content h3,
.news-single-content h4 {
    color: #111;
    font-weight: 700;
    line-height: 1.35;
    margin: 2em 0 0.75em;
}

.news-single-content h2 {
    font-size: 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fbd303;
}

.news-single-content h3 {
    font-size: 22px;
}

.news-single-content h4 {
    font-size: 19px;
}

.news-single-content ul,
.news-single-content ol {
    margin: 0 0 1.35em;
    padding-left: 1.5em;
}

.news-single-content li {
    margin-bottom: 0.6em;
    line-height: 1.75;
}

.news-single-content li::marker {
    color: #fbd303;
}

.news-single-content strong,
.news-single-content b {
    font-weight: 700;
    color: #111;
}

.news-single-content em,
.news-single-content i {
    font-style: italic;
}

.news-single-content blockquote {
    margin: 1.75em 0;
    padding: 20px 24px;
    background: #f9f9f9;
    border-left: 4px solid #fbd303;
    border-radius: 0 8px 8px 0;
    color: #444;
    font-size: 1.05em;
    line-height: 1.7;
}

.news-single-content blockquote p:last-child {
    margin-bottom: 0;
}

.news-single-content a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.news-single-content a:hover {
    color: #c9a800;
}

.news-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.75em 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.news-single-content hr {
    margin: 2.5em 0;
    border: none;
    border-top: 1px solid #eee;
}

.news-single-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

.news-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fbd303;
    color: #000;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 2px 8px rgba(251, 211, 3, 0.35);
}

.news-back-btn:hover {
    background: #e0bc00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 211, 3, 0.45);
}

.news-related {
    max-width: 900px;
    margin: 56px auto 0;
    padding-top: 16px;
}

.news-related .section-title {
    margin-top: 0;
    margin-bottom: 28px;
}

/* ===================
   АДАПТИВ
=================== */
@media (max-width: 992px) {
    .articles-grid--listing {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid,
    .articles-grid--listing {
        grid-template-columns: 1fr;
    }

    .article-image-container {
        height: 180px;
    }

    .news-single-article {
        padding: 28px 24px 32px;
    }

    .news-single-title {
        font-size: 28px;
        margin: 12px 0 16px;
    }

    .news-single-header {
        margin-bottom: 24px;
    }

    .news-single-figure {
        margin: 28px 0 32px;
    }

    .news-single-image {
        max-height: 320px;
        border-radius: 8px;
    }

    .news-single-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .news-single-content h2 {
        font-size: 24px;
    }

    .news-single-content h3 {
        font-size: 20px;
    }

    .news-single-footer {
        margin-top: 36px;
        padding-top: 24px;
    }

    .news-back-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .news-related {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .news-categories {
        gap: 6px;
        padding: 10px;
    }

    .news-category-tab {
        font-size: 12px;
        padding: 5px 10px;
    }

    .news-pagination-btn,
    .news-pagination-current {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }
}
