/* Специальные стили для страницы новостей */
.news-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="0,100 100,0 200,50 300,0 400,80 500,20 600,60 700,0 800,40 900,0 1000,30 1000,100"/></svg>') repeat-x;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(0px); }
    50% { transform: translateX(-50px); }
}

.news-hero-content {
    position: relative;
    z-index: 2;
}

.news-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.news-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.news-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.news-stat {
    text-align: center;
}

.news-stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.news-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.news-filters {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    /**position: sticky;**/
    position: unset;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #374151;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.3rem 0.8rem;
    background: #f3f4f6;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-tag:hover, .filter-tag.active {
    background: #3b82f6;
    color: white;
}

.news-main {
    padding: 3rem 0;
    background: #f9fafb;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.news-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
}

.news-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.news-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.news-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-time {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.news-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.news-card-date {
    font-size: 0.85rem;
    color: #9ca3af;
}

.news-card-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-card-read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-read-more i {
    transform: translateX(3px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-item {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    text-decoration: none;
}

.pagination-item.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-news {
    text-align: center;
    padding: 4rem 0;
    color: #6b7280;
}

.no-news i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-news h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 2rem;
    }

    .news-hero p {
        font-size: 1rem;
    }

    .news-stats {
        gap: 1rem;
    }

    .news-stat-number {
        font-size: 1.5rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-tags {
        justify-content: center;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-filters {
        top: 70px;
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 2rem 0;
    }

    .news-hero h1 {
        font-size: 1.75rem;
    }

    .news-card-content {
        padding: 1rem;
    }

    .pagination {
        gap: 0.25rem;
    }

    .pagination-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}