/*
Theme Name:     Hollay
Theme URI:      
Description:    Susu child theme.
Author:         Me
Author URI:     
Template:       susu
Version:        0.1.0
*/
.navbar-brand{
    display:none;
}
#neuro {
    position: relative;
    height: 580px;
    background-color: #000;    
    background-image: url("/wp-content/uploads/2025/09/baner.jpg"); 
    background-size: cover;
    background-position: center;    
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;    
    z-index: 1;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 12px 18px rgba(0,0,0,0.1);    
}
#neuro:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.5;
    z-index: 2;
}
#neuro canvas {
    position: relative;
    z-index: 3;
}
#neuro span {
    color: #FFF;
    position: absolute;
    font-size: 50px;
    line-height: 1.3;
    font-weight: normal;
    font-family: Impact, Charcoal, sans-serif;
    text-shadow: 0 0 40px #000, 0 40px 100px #000, 0 -40px 100px #000, 150px 0 100px #000, -150px 0 100px #000, 0 0 4px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 2px; 
    margin: 30px 0;
    display: block;
    z-index: 4;
}
#neuro span:after {
    content: attr(data-title);
    position: absolute;
    font-size: 100px;
    text-shadow: 0 40px 100px #000, 0 -40px 100px #000;
    top: 50%;
    left: 50%;
    width: 200%;
    transform: translateX(-50%) translateY(-50%);
    color: #FFF;
    opacity: 0.2;
    text-transform: uppercase;
    z-index: -1;
}
@media only screen and (max-width: 1199px) {
    #neuro span {
        font-size: 40px;
    }
    #neuro span:after {
        font-size: 80px;
    }
}
@media screen and (max-width:767px) {
    #neuro span {
        font-size: 30px;
    }
    #neuro span:after {
        font-size: 60px;
    }
}
.logo {
    width: 320px;
    padding: 15px;
}
#neuro .banner-sub-title {
    color: #FFF;
    position: absolute;
    font-size: 15px;
    line-height: 1.3;
    font-weight: normal;
    font-family: Impact, Charcoal, sans-serif;
    text-shadow: 0 0 40px #000, 0 40px 100px #000, 0 -40px 100px #000, 150px 0 100px #000, -150px 0 100px #000, 0 0 4px rgb(0 0 0 / 20%), 0 2px 6px rgb(0 0 0 / 10%);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0;
    display: block;
    z-index: 4;
    bottom: 190px;
}

/* Основные стили для контейнера меню */
.header__elements {
    position: relative;
    display: flex;
    align-items: center;
}

/* Стили для оффканвас меню */
.offcanvas {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.offcanvas-start {
    width: 300px;
    transform: translateX(-100%);
}

.offcanvas.show {
    transform: translateX(0);
}

/* Заголовок оффканваса */
.offcanvas-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* Кнопка закрытия */
.btn-close {
    padding: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-close:hover {
    opacity: 1;
}

/* Тело меню */
.offcanvas-body {
    padding: 0;
}

/* Навигационное меню */
.navbar-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-menu {
    width: 100%;
}

/* Основные элементы меню */
.main-menu-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    position: relative;
}

.main-menu-item:last-child {
    border-bottom: none;
}

.main-menu-item:hover {
    background-color: #f8f9fa;
}

/* Ссылки основного меню */
.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    position: relative;
}

.menu-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

/* Иконка стрелки для пунктов с подменю */
.scroll-sub-menu {
    font-size: 0.8rem;
    color: #666;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.menu-item-has-children.active .scroll-sub-menu {
    transform: rotate(180deg);
}

/* Активный пункт меню */
.current-menu-item .menu-link {
    color: #007bff;
    background-color: #e3f2fd;
    font-weight: 600;
}

.menu-item-name {
    font-size: 1rem;
    font-weight: 500;
}

/* Контейнер подменю */
.sub-menu-container {
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
}

.sub-menu-container.show {
    max-height: 500px; /* Достаточно для отображения подменю */
}

.sub-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Элементы подменю */
.sub-menu-item {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.sub-menu-item:last-child {
    border-bottom: none;
}

.sub-menu-item:hover {
    background-color: #e9ecef;
}

/* Ссылки подменю */
.sub-menu-link {
    display: block;
    padding: 0.875rem 2rem; /* Больше отступ слева для вложенности */
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sub-menu-link:hover {
    color: #007bff;
    background-color: #e9ecef;
    border-left-color: #007bff;
}

.sub-menu-item.current-menu-item .sub-menu-link {
    color: #007bff;
    background-color: #e3f2fd;
    border-left-color: #007bff;
    font-weight: 500;
}

/* Кнопка гамбургера */
.navbar-toggler {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.navbar-toggler:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.navbar-toggler i {
    color: #333;
    font-size: 1.2rem;
}


/* Дополнительные стили для улучшения UX */
#showHideContent {
    margin-right: auto;
    margin-left: 1rem;
}

/* Скрытие элементов при необходимости */
@media (min-width: 992px) {
    #gamburger {
        display: none;
    }
    
    .offcanvas {
        position: static;
        transform: none;
        width: auto;
        background: none;
        box-shadow: none;
    }
    
    .offcanvas-body {
        display: block !important;
    }
    
    .top-menu {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .main-menu-item {
        border-bottom: none;
        margin-right: 0.5rem;
        position: relative;
    }
    
    .main-menu-item:last-child {
        margin-right: 0;
    }
    
    .menu-link {
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }
    
    /* Стили подменю для десктопа */
    .sub-menu-container {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
    }
    
    .main-menu-item:hover .sub-menu-container {
        max-height: 500px;
    }
    
    .sub-menu-link {
        padding: 0.75rem 1rem;
        border-left: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .sub-menu-item:last-child .sub-menu-link {
        border-bottom: none;
    }
    
    /* Стрелка для десктопа */
    .scroll-sub-menu {
        margin-left: 0.25rem;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .offcanvas-start {
        width: 280px;
    }
    
    .menu-link {
        padding: 0.875rem 1.25rem;
    }
    
    .sub-menu-link {
        padding: 0.75rem 2rem;
    }
    
    .offcanvas-header {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .offcanvas-start {
        width: 100%;
    }
    
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
    }
    
    .navbar-toggler i {
        font-size: 1.1rem;
    }
    
    .menu-link {
        padding: 0.75rem 1rem;
    }
    
    .sub-menu-link {
        padding: 0.625rem 1.5rem;
    }
}

/* Секция категорий статей */
.home-article-categories {
    padding: 80px 0;
    /*background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);*/
}

.home-article-categories .container {
    max-width: 1200px;
}


.home-article-categories .col-sm-12 {
    padding: 0 15px;
}

/* Карточка категории */
.article-category-card {
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
}
.article-category-card-container{
    padding: 20px;
}

.article-category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Контейнер с фоновым изображением */
.article-category-card .thumbnail-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.4s ease;
}

.article-category-card:hover .thumbnail-container {
    transform: scale(1.1);
}

/* Маска с градиентом */
.article-category-card .thumbnail-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    padding: 40px 30px 30px;
    height: 60%;
    display: flex;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.article-category-card:hover .thumbnail-mask {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
    padding-bottom: 40px;
}

/* Заголовок категории */
.term-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: block;
    letter-spacing: -0.5px;
}

.article-category-card:hover .term-title {
    transform: translateY(-5px);
    font-size: 2.4rem;
}

/* Декоративные элементы */
.article-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.article-category-card:hover::before {
    opacity: 1;
}

.article-category-card::after {
    content: '→';
    position: absolute;
    top: 25px;
    right: 25px;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.article-category-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .home-article-categories .row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .article-category-card {
        height: 250px;
    }
    
    .term-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .home-article-categories {
        padding: 50px 0;
    }
    
    .home-article-categories .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-category-card {
        height: 200px;
        border-radius: 15px;
    }
    
    .article-category-card .thumbnail-mask {
        padding: 30px 20px 20px;
    }
    
    .term-title {
        font-size: 1.8rem;
    }
    
    .article-category-card:hover .term-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .home-article-categories {
        padding: 30px 0;
    }
    
    .article-category-card {
        height: 180px;
    }
    
    .article-category-card .term-title {
        font-size: 1.6rem;
    }
    
    .article-category-card .thumbnail-mask {
        padding: 25px 15px 15px;
    }
}

/* Анимация появления карточек */
.article-category-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.article-category-card:nth-child(1) { animation-delay: 0.1s; }
.article-category-card:nth-child(2) { animation-delay: 0.2s; }
.article-category-card:nth-child(3) { animation-delay: 0.3s; }
.article-category-card:nth-child(4) { animation-delay: 0.4s; }
.article-category-card:nth-child(5) { animation-delay: 0.5s; }
.article-category-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Дополнительные эффекты для лучшей доступности */
.article-category-card:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .home-article-categories {
        /* background: linear-gradient(135deg, #1e293b 0%, #334155 100%);*/
    }
}

/* Дополнительные декоративные элементы */
.article-category-card .thumbnail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.article-category-card:hover .thumbnail-container::before {
    opacity: 1;
}

/* Эффект блеска при наведении */
.article-category-card:hover .thumbnail-mask::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}


/* ===== ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ЗАГОЛОВКОВ ===== */

/* Базовые стили для всех заголовков */
.title,
.sub-title {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 1.5rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Основные заголовки - .title */
.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.title:hover::after {
    width: 100%;
}

/* Подзаголовки - .sub-title */
.sub-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: #4a5568;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.sub-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
    border-radius: 3px;
}

/* Вариации размеров заголовков */
.title.xl {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
}

.title.lg {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.title.md {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.title.sm {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

/* Вариации подзаголовков */
.sub-title.lg {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.sub-title.md {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

.sub-title.sm {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
}

/* Цветовые варианты */
.title.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title.secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-title.primary {
    color: #3b82f6;
}

.sub-title.secondary {
    color: #8b5cf6;
}

.sub-title.muted {
    color: #718096;
    font-weight: 500;
}

/* Выравнивание текста */
.title.center,
.sub-title.center {
    text-align: center;
    display: block;
}

.title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.title.right,
.sub-title.right {
    text-align: right;
    display: block;
}

.title.right::after {
    left: auto;
    right: 0;
}

.sub-title.center::before {
    display: none;
}

/* Стили для комбинации title + sub-title */
.title-group {
    margin-bottom: 3rem;
}

.title-group .title {
    margin-bottom: 0.5rem;
}

.title-group .sub-title {
    margin-top: 0;
    margin-bottom: 0;
}

/* Эффекты при наведении */
.title.hover-effect:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.sub-title.hover-effect:hover {
    color: #2d3748;
    transition: color 0.3s ease;
}

/* Анимации появления */
.title.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.sub-title.animate-fade-in {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* Стили для темной темы 
@media (prefers-color-scheme: dark) {
    .title {
        background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .sub-title {
        color: #cbd5e0;
    }
    
    .title.primary {
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .sub-title.muted {
        color: #a0aec0;
    }
}
*/
/* Адаптивность */
@media (max-width: 768px) {
    .title {
        margin-bottom: 1.5rem;
    }
    
    .title::after {
        bottom: -8px;
        height: 3px;
    }
    
    .sub-title {
        padding-left: 1rem;
    }
    
    .sub-title::before {
        width: 4px;
    }
    
    .title-group {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .sub-title {
        font-size: clamp(1.125rem, 5vw, 1.25rem);
        padding-left: 0.75rem;
    }
    
    .sub-title::before {
        width: 3px;
    }
}

/* Специфические стили для разных контекстов */
.hero-section .title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
}

.hero-section .sub-title {
    font-size: clamp(1.25rem, 4vw, 2rem);
    color: #f7fafc;
}

.section-header .title {
    margin-bottom: 0.5rem;
}

.section-header .sub-title {
    margin-bottom: 2rem;
}

/* Утилитарные классы для отступов */
.title.no-margin {
    margin-bottom: 0;
}

.sub-title.no-margin {
    margin-bottom: 0;
}

.title.mb-small {
    margin-bottom: 0.5rem;
}

.sub-title.mb-large {
    margin-bottom: 2rem;
}


/* ===== СТИЛИ ДЛЯ БЛОКА НОВОСТЕЙ ===== */

.news {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    position: relative;
}

.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.news .container {
    max-width: 1200px;
}

/* Заголовок секции */
.news .title {
    margin-bottom: 60px;
    position: relative;
}

.news .title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

/* Сетка новостей */
.home .news .row {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news .col-sm-12 {
    margin-bottom: 0;
}

/* Контейнер карточки */
.news-category-card-container {
    position: relative;
}

.news-category-card {
    background: white;
    border-radius: 24px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    min-height: 280px;
    position: relative;
}

.news-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Контейнер с изображением */
.news-thumbnail-container {
    flex: 0 0 40%;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.4s ease;
}

.news-category-card:hover .news-thumbnail-container {
    flex-basis: 35%;
}

/* Маска поверх изображения */
.news-thumbnail-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-category-card:hover .news-thumbnail-mask {
    opacity: 1;
}

/* Контейнер с контентом */
.news-exerpt-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Заголовок новости */
.news-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1a202c;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-category-card:hover .news-title {
    color: #3b82f6;
}

/* Текст новости */
.news-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Ссылка "Читать далее" */
.news-read-more {
    margin-top: auto;
}

.news-read-more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.news-read-more a::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.news-read-more a:hover {
    color: #2563eb;
    gap: 12px;
}

.news-read-more a:hover::after {
    transform: translateX(4px);
}

.news-read-more a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.news-read-more a:hover::before {
    width: 100%;
}

/* Декоративные элементы */
.news-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.news-category-card:hover::before {
    opacity: 0.02;
}

/* Анимация появления карточек */
.news-category-card {
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

.news-category-card:nth-child(1) { animation-delay: 0.1s; }
.news-category-card:nth-child(2) { animation-delay: 0.2s; }
.news-category-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .news {
        padding: 80px 0;
    }
    
    .news-category-card {
        min-height: 250px;
    }
    
    .news-exerpt-container {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .news {
        padding: 60px 0;
    }
    
    .news .title {
        margin-bottom: 40px;
    }
    
    .news .row {
        gap: 30px;
    }
    
    .news-category-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-thumbnail-container {
        flex: 0 0 200px;
        min-height: 200px;
    }
    
    .news-category-card:hover .news-thumbnail-container {
        flex-basis: 200px;
    }
    
    .news-exerpt-container {
        padding: 24px;
    }
    
    .news-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .news-excerpt {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .news {
        padding: 40px 0;
    }
    
    .news .row {
        gap: 20px;
    }
    
    .news-category-card {
        border-radius: 16px;
    }
    
    .news-thumbnail-container {
        flex: 0 0 160px;
        min-height: 160px;
    }
    
    .news-exerpt-container {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
}

/* Темная тема 
@media (prefers-color-scheme: dark) {
    .news {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .news-category-card {
        background: #2d3748;
    }
    
    .news-title {
        color: #f7fafc;
    }
    
    .news-excerpt {
        color: #cbd5e0;
    }
    
    .news-read-more a {
        color: #60a5fa;
    }
    
    .news-read-more a:hover {
        color: #3b82f6;
    }
}*/

/* Эффекты для улучшения UX */
.news-category-card:focus-within {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

/* Скелетон для загрузки */
.news-category-card.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

/* Дополнительные стили для разных состояний */
.news-category-card.featured {
    border-left: 4px solid #3b82f6;
}

.news-category-card.popular::after {
    content: '🔥 Популярное';
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* Анимация ховера для изображения */
.news-thumbnail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.news-category-card:hover .news-thumbnail-container::before {
    opacity: 1;
}

/* Градиентная граница при наведении */
.news-category-card {
    position: relative;
    background: white;
}

.news-category-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0865fd, #9566ff, #cc94f2);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-category-card:hover::after {
    opacity: 1;
}

/* Эффект параллакса для изображения */
.news-thumbnail-container {
    overflow: hidden;
}

.news-thumbnail-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.news-category-card:hover .news-thumbnail-container::after {
    transform: scale(1.1);
}

/* ===== ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ЧИТАЕМОСТИ ПРИ НАВЕДЕНИИ ===== */

.news-category-card {
    background: white;
    border-radius: 24px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    min-height: 280px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-category-card:hover {
    transform: translateY(-4px); /* Уменьшил подъем для стабильности */
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Улучшенный контейнер контента */
.news-exerpt-container {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Изменил для лучшего контроля */
    gap: 16px; /* Добавил равномерные отступы */
}

/* Заголовок новости - улучшенная читаемость */
.news-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1a202c;
    margin-bottom: 0; /* Убрал отступ, т.к. теперь gap */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Разрешил больше строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.news-category-card:hover .news-title {
    color: #fff; /* Более контрастный синий */
    transform: translateX(2px); /* Легкое движение */
}

/* Текст новости - улучшенная типографика */
.news-excerpt {
    font-size: 1.1rem;
    line-height: 1.7; /* Увеличил межстрочный интервал */
    color: #4a5568;
    margin-bottom: 0; /* Убрал отступ */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    font-family: 'Georgia', serif; /* Более читаемый шрифт для текста */
    text-rendering: optimizeLegibility;
}

.news-category-card:hover .news-excerpt {
    color: #2d3748; /* Темнее при наведении */
    -webkit-line-clamp: 5; /* Показываем больше текста */
}

/* Контейнер для ссылки - фиксирован внизу */
.news-read-more {
    margin-top: auto; /* Остается внизу */
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-category-card:hover .news-read-more {
    border-top-color: rgba(59, 130, 246, 0.2);
}

/* Улучшенная ссылка "Читать далее" */
.news-read-more a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid transparent;
}

.news-read-more a:hover {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    gap: 12px;
    transform: translateX(4px);
}

.news-read-more a::after {
    content: '→';
    font-size: 1.1rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.news-read-more a:hover::after {
    transform: translateX(6px);
}

/* Улучшенное изображение */
.news-thumbnail-container {
    flex: 0 0 35%; /* Немного уменьшил ширину изображения */
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.4s ease;
}

.news-category-card:hover .news-thumbnail-container {
    flex-basis: 30%; /* Меньше изменений при наведении */
}

/* Более тонкая маска */
.news-thumbnail-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
    opacity: 0.5; /* Полупрозрачная всегда */
    transition: opacity 0.3s ease;
}

.news-category-card:hover .news-thumbnail-mask {
    opacity: 0.3; /* Светлее при наведении */
}

/* Улучшенный фон при наведении */
.news-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.news-category-card:hover::before {
    opacity: 1; /* Легкий градиентный фон */
}

/* Тень для текста для лучшей читаемости */
.news-exerpt-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        white 90%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-category-card:hover .news-exerpt-container::before {
    opacity: 0.8; /* Легкая градиентная маска для текста */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .news-category-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-thumbnail-container {
        flex: 0 0 220px; /* Выше на мобильных */
        min-height: 220px;
    }
    
    .news-exerpt-container {
        padding: 25px;
        gap: 12px;
    }
    
    .news-title {
        font-size: 1.4rem;
        -webkit-line-clamp: 2;
    }
    
    .news-excerpt {
        font-size: 1.05rem;
        line-height: 1.6;
        -webkit-line-clamp: 3;
    }
    
    .news-read-more a {
        padding: 8px 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .news-thumbnail-container {
        flex: 0 0 180px;
        min-height: 180px;
    }
    
    .news-exerpt-container {
        padding: 20px;
        gap: 10px;
    }
    
    .news-title {
        font-size: 1.3rem;
    }
    
    .news-excerpt {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
}

/* Темная тема с улучшенной читаемостью 
@media (prefers-color-scheme: dark) {
    .news-category-card {
        background: #2d3748;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .news-category-card:hover {
        border-color: rgba(59, 130, 246, 0.4);
    }
    
    .news-title {
        color: #f7fafc;
    }
    
    .news-category-card:hover .news-title {
        color: #60a5fa;
    }
    
    .news-excerpt {
        color: #cbd5e0;
    }
    
    .news-category-card:hover .news-excerpt {
        color: #e2e8f0;
    }
    
    .news-read-more {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .news-read-more a {
        color: #60a5fa;
        background: rgba(59, 130, 246, 0.1);
    }
    
    .news-read-more a:hover {
        color: #3b82f6;
        background: rgba(59, 130, 246, 0.2);
    }
    
    .news-category-card::before {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }
    
    .news-exerpt-container::before {
        background: linear-gradient(
            to bottom,
            transparent 60%,
            #2d3748 90%
        );
    }
}*/

/* Улучшенная анимация появления */
.news-category-card {
    animation: fadeInUpSoft 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUpSoft {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Фокус-состояния для доступности */
.news-category-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    transform: translateY(-2px);
}

.news-read-more a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
/* ===== СТИЛИ ДЛЯ ФУТЕРА ===== */

.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #fff;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a5568, transparent);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 15px 0;
    position: relative;
}

.footer-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e0;
    margin: 0;
}

/* Социальные иконки */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Ссылки в футере */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 4px 0;
    position: relative;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #60a5fa;
    padding-left: 10px;
}

.footer-link:hover::before {
    width: 20px;
}

/* Контактная информация */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e0;
    font-size: 0.95rem;
}

.contact-item svg {
    color: #3b82f6;
    flex-shrink: 0;
}

/* Форма подписки */
.newsletter {
    margin-top: 20px;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 15px 0;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: #a0aec0;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Нижняя часть футера */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-link {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #60a5fa;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Анимации */
.footer-column {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффекты для темной темы 
.site-footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 100%);
}*/

/* Улучшенная доступность */
.footer-link:focus,
.social-link:focus,
.newsletter-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.newsletter-input:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 0;
}


/* Основные стили для контейнера новости */


/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 20px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #1e3a6a;
    text-decoration: underline;
}

.kb_sep {
    margin: 0 5px;
    color: #999;
}

.kb_title {
    color: #666;
    font-weight: 500;
}

/* Основной ряд контента */
.main-row {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* padding: 30px; */
    /* margin-bottom: 30px; */
}

/* Статья */
article {
    /* max-width: 800px; */
    margin: 0 auto;
}

/* Заголовок новости */
article h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.3;
    border-bottom: 3px solid #2c5aa0;
    padding-bottom: 15px;
}

/* Параграфы */
article p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: justify;
    color: #444;
}

/* Первый параграф - как введение */
.single article p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #2c5aa0;
    border-radius: 4px;
}

/* Изображения в статье (если будут добавлены) */
article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Категории и мета-информация */
.news-category-akczii {
    display: inline-block;
    /* background: #e3f2fd; */
    color: #1565c0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .main {
        padding: 15px;
    }
    
    .main-row {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    article h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    article p {
        font-size: 1rem;
        text-align: left;
    }
    
    article p:first-of-type {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .breadcrumbs {
        font-size: 12px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 10px;
    }
    
    .main-row {
        padding: 15px;
    }
    
    article h1 {
        font-size: 1.7rem;
    }
    
    article p {
        font-size: 0.95rem;
    }
}

/* Дополнительные улучшения для читабельности */
article {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

article strong {
    color: #2c3e50;
    font-weight: 600;
}

article em {
    color: #555;
    font-style: italic;
}

/* Плавное появление контента */
article {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Основные стили для страницы архивов */
.archive .main-row {
    max-width: 1200px;
}

/* Контейнер для статей архива */
.col-12.col-sm-12 {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Статья в архиве */
.archive  article.news {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

.archive  article.news:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    border-color: #2c5aa0;
}

/* Заголовок архива */
.archive-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.archive-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-title a:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

/* Внутренний ряд статьи */
.archive  article .main-row {
    margin: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    gap: 25px;
}

/* Колонка с изображением */
.col-sm-3 {
    flex: 0 0 200px;
}

.archive-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.archive-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

article.news:hover .archive-thumbnail img {
    transform: scale(1.05);
}

/* Колонка с текстом */
.archive-exerptcol-sm-9 {
    flex: 1;
    min-width: 0; /* Для правильного переноса текста */
}

.archive-exerptcol-sm-9 p {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ссылка "Читать далее" */
.archive-read-more {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-indent: -9999px;
}

.archive-read-more::after {
    content: "Читать далее →";
    position: absolute;
    bottom: 20px;
    right: 25px;
    color: #2c5aa0;
    font-size: 0.9rem;
    font-weight: 500;
    text-indent: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

article.news:hover .archive-read-more::after {
    opacity: 1;
}


/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .archive .main-row {
        padding: 15px;
    }
    
    .archive article.news {
        padding: 20px;
    }
    
    .archive article .main-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .col-sm-3 {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .archive-thumbnail {
        height: 200px;
    }
    
    .archive-title {
        font-size: 1.3rem;
    }
    
    .archive-exerptcol-sm-9 p {
        -webkit-line-clamp: 4;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .archive .main-row {
        padding: 10px;
    }
    
    .archive article.news {
        padding: 15px;
    }
    
    .archive .col-12.col-sm-12 {
        gap: 20px;
    }
    
    .archive-thumbnail {
        height: 180px;
    }
    
    .archive-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .archive-exerptcol-sm-9 p {
        font-size: 0.95rem;
        -webkit-line-clamp: 5;
    }
    
    .archive-read-more::after {
        opacity: 1;
        position: static;
        display: inline-block;
        margin-top: 10px;
        color: #2c5aa0;
        font-weight: 500;
    }
}

/* Дополнительные улучшения */
.archive article.news {
    position: relative;
}

.archive article.news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2c5aa0, #3a6bc0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.archive article.news:hover::before {
    opacity: 1;
}

/* Анимация появления статей */
.archive article.news {
    animation: fadeInUp 0.6s ease-out;
}

.archive article.news:nth-child(2) { animation-delay: 0.1s; }
.archive article.news:nth-child(3) { animation-delay: 0.2s; }
.archive article.news:nth-child(4) { animation-delay: 0.3s; }

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

/* Стили для пустого состояния */
.col-12.col-sm-12:empty::before {
    content: "Новости не найдены";
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 60px 20px;
    display: block;
}

/* Пагинация (если будет добавлена) */
.archive-pagination {
    margin-top: 40px;
    text-align: center;
}
