/* Основные стили страницы новостей */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #3182ce;
    --accent-hover: #2c5282;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-tertiary: #edf2f7;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --warning-color: #d69e2e;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease-in-out;
    --anim-speed-fast: 0.55s;
    --anim-speed-base: 0.7s;

    /* фирменная кривая — быстрая, но плавная  font-family: 'Georgia', serif; */
    --anim-ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.blok-1 {
    height: 90px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-muted);
}

.breadcrumbs-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs-link:hover {
    color: var(--accent-color);
}

.breadcrumbs-current {
    color: var(--text-primary);
    font-weight: 500;
}


/* ОСНОВНЫЕ БЛОКИ */

/* Заголовок */
.category-header {
    margin: 25px 0 25px;
}

.category-header h1 {
    font-family: 'Georgia', serif;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Главные новости */
/* ===== FEATURED NEWS ===== */

.featured-news {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 64px;
    align-items: start;
}

/* ===== ГЛАВНАЯ НОВОСТЬ ===== */

.featured-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 500px;
    box-shadow: var(--shadow-lg);
}

.featured-main a {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.featured-bg {
    position: absolute;
    inset: 0;
    background: #000;
}

.featured-bg img,
.featured-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.45) 40%,
        rgba(0,0,0,0.15) 70%
    );
}

/* ===== ТЕКСТ ПОВЕРХ ===== */

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
}

.featured-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.85;
}

.featured-overlay h2 {
    font-family: 'Georgia', serif;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 500;
    margin-bottom: 12px;
}

.featured-overlay time {
    font-size: 13px;
    opacity: 0.85;
}

.views-featured {
    display: flex;
    gap: 0.5rem;
    align-items: center; 
}


/* ===== ВТОРИЧНЫЕ НОВОСТИ ===== */


/* SVG иконка */
.views-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #6d6d6d;
}


.placeholder-title {
    padding: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    color: #a5a5a5;
    font-family: 'Georgia', serif;
}

.views-featured-is {
    width: 30px;
}

.featured-secondary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.featured-sub {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-sub:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.featured-sub a {
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    flex-direction: column;
}

.featured-sub img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.featured-sub-body {
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    color: #2d3748;
}

.featured-sub-body h3 {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 6px;
}

.featured-sub-body time {
    font-size: 12px;
    color: var(--text-muted);
}

.featured-sub-media {
    width: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
    flex-shrink: 0;
}

.featured-sub-media img,
.featured-sub-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Иконка видео */
.featured-sub-media.video::after {
    content: '▶';
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 20px;
    height: 20px;
    font-size: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}









/* Карточка новости */
/* ===== PINTEREST NEWS FEED ===== */
.news-feed {
    column-count: 4;
    width: 100%;
}

/* ===== КАРТОЧКА ===== */

.news-card {
    break-inside: avoid;
    margin-bottom: 24px;

    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;

    box-shadow: 0px 1px 3px 2px rgb(0 0 0 / 7%);
    transition:
        transform 0.25s var(--anim-ease-smooth),
        box-shadow 0.25s var(--anim-ease-smooth);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}


/* ===== ССЫЛКА ===== */

.news-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ===== МЕДИА ===== */

.news-media {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.news-media img,
.news-media video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Видео — аккуратный индикатор  height: 100%; */

.news-media.video::after {
    content: '▶';
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ТЕКСТ ===== */

.news-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-title {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--text-primary);
}

.news-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    flex-grow: 1;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
}





/* Погинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 64px 0;
    font-size: 14px;
}

.pagination a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination span {
    color: var(--text-muted);
}


.featured-overlay-blok {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}


/* ===== Контейнер hover =====  height: 300px; */
.media-hover {
    position: fixed;
    
    max-width: 400px;
    height: 300px;
    
    border-radius: 15px;
    overflow: hidden;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    background: #0000000e;
    transition: opacity 0.15s ease-out;
}

.media-hover-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(1, 1fr);
    width: 100%;
    height: 100%;
}

.media-hover-grid img,
.media-hover-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    grid-area: auto;
}

.media-hover-empty {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.27);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Заглушка */

.featured-sub.placeholder.no-news {
    border: 1px dashed #ccc;
    background: #f8f9fa;
    padding: 16px;
    text-align: center;
    opacity: 0.8;
    color: #666;
    transition: background 0.3s ease;
}

.featured-sub.placeholder.no-news:hover {
    background: #f1f3f5;
}

.placeholder-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.placeholder-text {
    font-size: 14px;
    line-height: 1.5;
}

.no-news {
    width: 100%;
    height: 100%;
    box-shadow: 0 0px 7px 0px rgb(0 0 0 / 14%);
    border-radius: 10px; 
}

@media (max-width: 768px) {

    .container {
        padding: 0 0.6rem;
    }

    .breadcrumbs-list {
        flex-wrap: wrap;
    }
    .blok-1 {
        height: 0px;
    }
    .breadcrumbs {
        margin: 1rem 0;
    }
    .category-header h1 {
        font-size: 1.5rem;
    }
    .featured-news {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .featured-bg {
        position: relative;
        height: 260px;
    }
    .featured-main {
        min-height: auto;
        width: 100%;
    }

    .featured-secondary {
        width: 100%;
    }

    .featured-label {
        font-size: 0.6rem;
        margin-bottom: 0px;
    }
    .featured-overlay h2 {
        font-size: 1.3rem;
    }
    .featured-overlay time {
        font-size: 0.7rem;
    }
    .featured-overlay {
        padding: 1rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .views-icon {
        width: 12px;
        height: 12px;
    }
    .views-featured {
        font-size: 12px;
        gap: 0.3rem;
    }

    .news-feed {
        column-count: 1;
    }
    .category-header {
        margin: 1rem 0;
    }
    .news-media.video::after {
        content: "";
        background: rgb(0 0 0 / 0%);
    }

    .featured-secondary {
        gap: 1rem;
    }
}