:root {
    --primary-blue: #3498db;
    --dark-blue: #2980b9;
    --news-primary: #e74c3c;
    --news-dark: #c0392b;
    --news-light: #ffebe9;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-gray: #666;
    --text-meta: #999;
    --bg-white-semi: rgba(255, 255, 255, 0.3);
    --bg-white-strong: rgba(255, 255, 255, 0.4);
    --bg-white-card: rgba(255, 255, 255, 0.85);
    --bg-content: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-red: 0 15px 40px rgba(231, 76, 60, 0.15);
    --shadow-btn: 0 5px 15px rgba(231, 76, 60, 0.3);
    --shadow-btn-hover: 0 8px 20px rgba(231, 76, 60, 0.4);
    --border-light: 1px solid #eee;
    --border-pagination: 2px solid #eee;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-card: 16px;
    --radius-lg: 20px;
    --radius-badge: 20px;
    --radius-btn: 50px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   БАЗОВЫЕ СТИЛИ И ФОН
   ======================================== */
body {
    position: relative;
    z-index: 0;
    min-height: 100vh;
}

/* Размытый фоновый слой */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(40px);
    transform: scale(1.1);
}

/* Полупрозрачный оверлей */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-white-strong);
}

/* ========================================
   ОБЩИЕ СТИЛИ СТРАНИЦ НОВОСТЕЙ
   ======================================== */
.news-page,
.news-detail-page {
    padding: 120px 0 60px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ========================================
   ШАПКА СПИСКА НОВОСТЕЙ
   ======================================== */
.news-header {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeInUp 0.8s ease;
}

.news-page-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Декоративная линия под заголовком */
.news-page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--news-primary);
    border-radius: 2px;
}

.news-page-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.6;
}

/* ========================================
   СЕТКА НОВОСТЕЙ
   ======================================== */
.news-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ========================================
   КАРТОЧКА НОВОСТИ
   ======================================== */
.news-card-stack {
    background: var(--bg-white-card);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--news-primary);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

/* Показ карточки */
.news-card-stack.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект при наведении */
.news-card-stack:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
    border-left-width: 8px;
    background: var(--bg-white-strong);
}

/* Индикатор "Новое" для свежих новостей */
.news-card-stack.new::before {
    content: 'НОВОЕ';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--news-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-badge);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Ссылка-обёртка */
.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ========================================
   ИЗОБРАЖЕНИЕ НОВОСТИ
   ======================================== */
.news-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

/* Градиентное затемнение снизу */
.news-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Увеличение при наведении */
.news-card-stack:hover .news-image-container img {
    transform: scale(1.1);
}

/* ========================================
   КОНТЕНТ КАРТОЧКИ
   ======================================== */
.news-content {
    padding: 1.5rem;
    background: var(--bg-content);
    border-radius: var(--radius-md);
    margin: 0.5rem;
}

/* ========================================
   ДАТА
   ======================================== */
.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--news-light);
    color: var(--news-primary);
    border-radius: var(--radius-badge);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.date-icon {
    font-size: 0.875rem;
}

/* ========================================
   ЗАГОЛОВОК И ОПИСАНИЕ
   ======================================== */
.news-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
}

/* Подсветка при наведении */
.news-card-stack:hover .news-title {
    color: var(--news-primary);
}

.news-excerpt {
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   МЕТА-ИНФОРМАЦИЯ
   ======================================== */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: var(--border-light);
    font-size: 0.875rem;
}

.news-author {
    color: var(--text-light);
    font-style: italic;
}

.read-more {
    color: var(--news-primary);
    font-weight: 500;
    transition: all 0.3s;
}

/* Анимация "Подробнее" при наведении */
.news-card-stack:hover .read-more {
    transform: translateX(5px);
}

/* ========================================
   СТРАНИЦА ОТДЕЛЬНОЙ НОВОСТИ
   ======================================== */
.news-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-white-semi);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.8s ease;
}

/* Шапка новости */
.news-detail-header {
    padding: 3rem 3rem 2rem;
    border-bottom: var(--border-light);
}

.news-detail-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-detail-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

/* Изображение новости */
.news-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Тело новости */
.news-detail-body {
    padding: 2.5rem 3rem 3rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.news-detail-body h2,
.news-detail-body h3 {
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.news-detail-body ul,
.news-detail-body ol {
    margin: 1rem 0 1rem 2rem;
}

.news-detail-body li {
    margin-bottom: 0.5rem;
}

/* ========================================
   КНОПКА "НАЗАД"
   ======================================== */
.back-to-news {
    text-align: center;
    padding: 2rem 0;
}

.back-to-news .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    background: var(--news-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-btn);
    font-weight: 500;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-btn);
}

.back-to-news .btn:hover {
    background: var(--news-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
    gap: 1rem;
}

/* ========================================
   ПАГИНАЦИЯ
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border: var(--border-pagination);
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.page-link:hover,
.page-link.active {
    background: var(--news-primary);
    border-color: var(--news-primary);
    color: white;
}

.page-link.prev,
.page-link.next {
    min-width: 100px;
}

.page-dots {
    padding: 0 0.5rem;
    color: var(--text-meta);
}

/* ========================================
   ПУСТАЯ СТРАНИЦА
   ======================================== */
.no-news {
    text-align: center;
    padding: 4rem 1rem;
}

.no-news p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ========================================
   АНИМАЦИИ
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .news-page,
    .news-detail-page {
        padding: 100px 0 40px;
    }
    
    .news-page-title {
        font-size: 2.25rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-detail-header,
    .news-detail-body {
        padding: 1.5rem;
    }
    
    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-detail-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .news-page-title {
        font-size: 1.75rem;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .page-link.prev,
    .page-link.next {
        min-width: 80px;
        font-size: 0.875rem;
    }
}


