﻿/* ---------- ГЛОБАЛЬНЫЕ НАСТРОЙКИ ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
}

.container {
    max-width: 920px;
    margin: 0 auto;
}

/* Заголовок раздела */
.head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 20px;
}

    .head h1 {
        font-size: 28px;
    }

    .head .date {
        font-size: 13px;
        color: #888;
        font-weight: 500;
    }

/* Фильтр-ссылки */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

    .filters a {
        display: inline-block;
        padding: 7px 16px;
        font-size: 15px;
        font-weight: 500;
        color: #555;
        text-decoration: none;
        border: 1px solid #e0e0e0;
        border-radius: 999px;
        transition: color .15s ease, border-color .15s ease, background .15s ease;
    }

        .filters a:hover {
            color: #000;
            background: #ffdd09;
            border: 1px solid #ffdd09;
        }

        .filters a.active {
            color: #fff;
            background: #1a1a1a;
            border-color: #1a1a1a;
        }
.news-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #666;
}
/* Список новостей */
.news-list {
    list-style: none;
    padding:0;
}
.content .post-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* максимум 3 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-list a{
    font-weight:100;
    line-height:15px;
}
.news-item {
    display: grid;
    grid-template-columns: 110px 1fr 180px;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: start;
    transition: opacity .2s ease;
}

   
    .news-item[hidden] {
        display: none;
    }

/* Время/категория */
.meta-rew {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

    .meta-rew .time {
        font-size: 13px;
        color: #898989;
    }

    .meta-rew .tag-rew {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #666;
    }

/* Контент */
.content h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}

    .content h2 a {
        color: #1a1a1a;
        text-decoration: none;
    }

        .content h2 a:hover {
            text-decoration: underline;
        }

.content p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #666;
}

/* Фото */
.thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #f2f2f2;
    display: block;
}

/* Пусто */
.empty {
    display: none;
    padding: 48px 0;
    text-align: center;
    color: #999;
    font-size: 15px;
}

.xn-mobile ul {
    padding: 0;
}

@media (max-width: 720px) {

    .head h1 {
        font-size: 22px;
    }

    .news-item {
        grid-template-columns: 1fr 110px;
        grid-template-areas: "meta thumb" "content thumb";
        column-gap: 16px;
        row-gap: 8px;
    }

    .meta-rew {
        grid-area: meta;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .content {
        grid-area: content;
    }

    .thumb {
        grid-area: thumb;
        aspect-ratio: 1 / 1;
    }

    .content h2 {
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .news-item {
        grid-template-columns: 1fr;
        grid-template-areas: "thumb" "meta" "content";
        row-gap: 10px;
    }

    .thumb {
        aspect-ratio: 16 / 9;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* ---------- СТАТЬЯ НА ВЕСЬ ЭКРАН ---------- */
.article-card {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* ---------- ОБЩИЙ КОНТЕЙНЕР ДЛЯ ФОТО И ТЕКСТА ---------- */
.article-inner {
    width: 100%;
    margin: 0 auto;
}

/* ---------- ИЗОБРАЖЕНИЕ (с отступами, по ширине контента) ---------- */
.article-image {
    max-width: 800px;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    /*background: #e2e9f2;*/
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2.5rem;
}

    .article-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.25s ease;
    }
    

.article-card:hover .article-image img {
   
}

/* ---------- КОНТЕНТНАЯ ЧАСТЬ ---------- */
.article-content {
    padding: 2rem 0 3rem;
}

/* ---------- ТЕГИ ---------- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    background: #eef3fa;
    color: #1f3a5f;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    border: 1px solid rgba(31, 58, 95, 0.08);
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

    .tag:hover {
        background: #e0e9f5;
        border-color: rgba(31, 58, 95, 0.2);
        cursor: default;
    }

/* ---------- ЗАГОЛОВОК ---------- */
.article-title {
    line-height: 1.15;
    margin-bottom: 1rem;
}

/* ---------- ОПИСАНИЕ ---------- */
.article-description {

    margin-bottom: 2rem;

}

/* ---------- МЕТА ---------- */
.meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.88rem;
    color: #667e9b;
    border-top: 1px solid #dbdbdb;
    padding-top: 1.4rem;
    margin-top: 0.2rem;
}

    .meta span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .meta .dot {
        width: 4px;
        height: 4px;
        background: #b2c5db;
        border-radius: 50%;
        display: inline-block;
        margin: 0 0.2rem;
    }

/* ---------- БЕЙДЖ ---------- */
.badge-news {
    display: inline-block;
    background: #d9e4f0;
    color: #1d3a5c;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    border: 1px solid rgba(29, 58, 92, 0.1);
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 600px) {
   
    .article-image {
        margin-top: 1.5rem;
        border-radius: 14px;
    }

    .article-content {
        padding: 1.5rem 0 2.2rem;
    }


    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }

    .meta {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

@media (min-width: 480px), (min-width:300px) {
    .nl-item-date {
        text-align: left;
    }
}

@media (min-width: 768px) {
    .nl-item-date {
        text-align: center;
    }
}

@media (min-width: 1024px) {
   
}

@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {
}



@media (min-width: 1200px) {
 
}
