/* news.css - Стили страницы новостей */

/* ===== Variables ===== */
:root {
    --news-primary: #032D43;
    --news-primary-light: rgba(3, 45, 67, 0.08);
    --news-primary-dark: #021F2E;
    --news-text-dark: #1A1A1A;
    --news-text-gray: #6B7280;
    --news-text-light: #9CA3AF;
    --news-bg-light: #F9FAFB;
    --news-bg-white: #FFFFFF;
    --news-border: rgba(3, 45, 67, 0.1);
    --news-border-light: rgba(3, 45, 67, 0.05);
    --news-border-dark: rgba(3, 45, 67, 0.2);

    /* Shadows */
    --news-shadow-sm: 0 1px 2px rgba(3, 45, 67, 0.05);
    --news-shadow-md: 0 2px 4px rgba(3, 45, 67, 0.1);
    --news-shadow-lg: 0 4px 8px rgba(3, 45, 67, 0.1);
    --news-shadow-xl: 0 8px 16px rgba(3, 45, 67, 0.1);

    /* Border radius */
    --news-radius-sm: 8px;
    --news-radius-md: 12px;
    --news-radius-lg: 16px;
    --news-radius-full: 999px;
}

/* ===== Base Styles ===== */
.news-page {
    font-family: 'Manrope', sans-serif;
    color: var(--news-text-dark);
    background-color: var(--news-bg-light);
    min-height: 100vh;
    margin-top: 0;
}

.news-page .container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 120px;
}

@media (max-width: 1400px) {
    .news-page .container {
        padding: 0 80px;
    }
}

@media (max-width: 1200px) {
    .news-page .container {
        padding: 0 60px;
    }
}

@media (max-width: 992px) {
    .news-page .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .news-page .container {
        padding: 0 24px;
    }
}

/* ===== Breadcrumbs ===== */
.news-breadcrumbs {
    background: var(--news-bg-white);
    border-bottom: 1px solid var(--news-border);
    padding: 16px 0;
    margin-bottom: 0;
}

.breadcrumbs-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--news-text-gray);
}

.breadcrumb-link {
    color: var(--news-text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--news-primary);
}

.breadcrumb-separator {
    font-size: 12px;
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--news-primary);
    font-weight: 500;
}

/* ===== Header Section ===== */
.news-header-section {
    background: var(--news-bg-white);
    border-bottom: 1px solid var(--news-border);
    padding: 32px 0;
}

.news-header-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.news-main-title {
    color: var(--news-primary);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.news-header-description {
    color: var(--news-text-gray);
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    padding: 0 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .news-header-section {
        padding: 24px 0 20px;
    }

    .news-main-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .news-header-description {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* ===== Controls ===== */
.news-controls {
    margin: 40px 0 32px;
}

.sort-controls {
    display: flex;
    justify-content: flex-end;
}

.sort-select-wrapper {
    width: 280px;
    position: relative;
}

.form-select {
    width: 100%;
    padding: 14px 20px;
    padding-right: 48px;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius-sm);
    background: var(--news-bg-white);
    color: var(--news-text-dark);
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23032D43' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    box-shadow: 0 2px 4px rgba(3, 45, 67, 0.1);
    transition: all 0.3s ease;
}

.form-select option {
    padding: 12px 20px;
    background: var(--news-bg-white);
    color: var(--news-text-dark);
    font-size: 15px;
    border: none;
    font-family: 'Manrope', sans-serif;
}

.form-select option:hover {
    background: var(--news-primary-light);
}

.form-select:focus {
    outline: none;
    border-color: var(--news-primary);
    box-shadow: 0 0 0 3px rgba(3, 45, 67, 0.1);
}

.form-select:hover {
    border-color: var(--news-border-dark);
    box-shadow: 0 4px 8px rgba(3, 45, 67, 0.15);
}

@media (max-width: 768px) {
    .news-controls {
        margin: 32px 0 24px;
    }

    .sort-select-wrapper {
        width: 100%;
    }
}

/* ===== Content Grid ===== */
.news-content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: flex-start;
}

@media (max-width: 1200px) {
    .news-content-grid {
        grid-template-columns: 300px 1fr;
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .news-content-grid {
        grid-template-columns: 1fr;
    }

    .news-filters-sidebar {
        display: none;
    }
}

/* ===== Filters Sidebar ===== */

.news-filters-sidebar {
    position: relative; /* Изменено с sticky на relative */
    height: fit-content;
    align-self: flex-start;
}
.filters-card {
    background: var(--news-bg-white);
    border-radius: var(--news-radius-md);
    box-shadow: var(--news-shadow-md);
    padding: 24px;
    border: 1px solid var(--news-border);
    margin-bottom: 32px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--news-border-light);
}

.filters-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--news-primary);
    margin: 0;
}

.btn-clear-all {
    padding: 8px 16px;
    background: var(--news-bg-white);
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius-sm);
    color: var(--news-text-gray);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(3, 45, 67, 0.1);
}

.btn-clear-all:hover {
    border-color: var(--news-primary);
    color: var(--news-primary);
    background: var(--news-primary-light);
}

.filters-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--news-text-dark);
    margin: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 4px;
    transition: all 0.3s ease;
    border-radius: var(--news-radius-sm);
}

.filter-option:hover {
    background: var(--news-primary-light);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--news-border);
    border-radius: 4px;
    appearance: none;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.filter-checkbox:hover {
    border-color: var(--news-border-dark);
}

.filter-checkbox:checked {
    background-color: var(--news-primary);
    border-color: var(--news-primary);
}

.filter-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.filter-option-text {
    font-size: 15px;
    color: var(--news-text-dark);
    line-height: 1.4;
    flex: 1;
}

.filter-option.active .filter-option-text {
    color: var(--news-primary);
    font-weight: 500;
}

.filter-option.active {
    background: var(--news-primary-light);
}

/* Date Filter Styles */
.date-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.date-input-group {
    position: relative;
    width: 100%;
}

.date-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 44px;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius-sm);
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    color: var(--news-text-dark);
    box-shadow: 0 2px 4px rgba(3, 45, 67, 0.1);
    background: var(--news-bg-white);
    transition: all 0.3s ease;
}

.date-input:hover {
    border-color: var(--news-border-dark);
    box-shadow: 0 4px 8px rgba(3, 45, 67, 0.15);
}

.date-input:focus {
    outline: none;
    border-color: var(--news-primary);
    box-shadow: 0 0 0 3px rgba(3, 45, 67, 0.1);
}

.date-input::placeholder {
    color: var(--news-text-light);
}

.date-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--news-text-light);
    font-size: 14px;
    pointer-events: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

/* ===== News Grid ===== */
.news-grid-container {
    min-height: 600px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 1400px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== News Card Styles ===== */
.news-card {
    background: var(--news-bg-white);
    border-radius: var(--news-radius-lg);
    overflow: hidden;
    box-shadow: var(--news-shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--news-border);
    position: relative;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--news-shadow-xl);
    border-color: var(--news-border-dark);
}

.news-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* Category Badge поверх изображения в верхнем левом углу */
.category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    padding: 8px 16px;
    border-radius: var(--news-radius-sm);
    font-size: 13px;
    font-weight: 700;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: var(--news-shadow-sm);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Убираем старый news-card-header */
.news-card-header {
    display: none;
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--news-text-dark);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--news-text-gray);
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 63px;
    max-height: 63px;
}

/* Categories like surveys page */
.news-details {
    margin-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--news-border-light);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--news-text-gray);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    font-size: 13px;
    color: var(--news-text-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-text {
    line-height: 1.4;
    flex: 1;
}

.detail-text strong {
    color: var(--news-primary);
    font-weight: 600;
}

.news-meta {
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--news-text-gray);
}

.meta-item i {
    font-size: 13px;
    color: var(--news-text-light);
    flex-shrink: 0;
}

.no-news-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--news-text-light);
}

.no-news-message i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-news-message p {
    font-size: 18px;
    margin: 0 0 24px 0;
}

.btn-reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--news-primary);
    color: white;
    border: none;
    border-radius: var(--news-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(3, 45, 67, 0.1);
}

.btn-reset-filters:hover {
    background: var(--news-primary-dark);
    transform: translateY(-2px);
}

/* ===== Pagination ===== */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius-sm);
    background: var(--news-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(3, 45, 67, 0.1);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--news-primary);
    color: var(--news-primary);
    background: var(--news-primary-light);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 6px;
}

.pagination-page {
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius-sm);
    background: var(--news-bg-white);
    color: var(--news-text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(3, 45, 67, 0.1);
}

.pagination-page:hover {
    border-color: var(--news-primary);
    color: var(--news-primary);
    background: var(--news-primary-light);
}

.pagination-page.active {
    background: var(--news-primary);
    border-color: var(--news-primary);
    color: var(--news-bg-white);
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--news-text-light);
    font-size: 14px;
}

/* ===== Mobile Filters ===== */

/* ===== Loading State ===== */
.news-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--news-border);
    border-top-color: var(--news-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Empty State ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 56px;
    color: var(--news-text-light);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--news-text-dark);
    margin-bottom: 12px;
}

.empty-state-description {
    font-size: 15px;
    color: var(--news-text-gray);
    max-width: 400px;
    margin: 0 auto 28px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 480px) {
    .category-badge {
        top: 12px;
        left: 12px;
        font-size: 12px;
        padding: 6px 12px;
        font-weight: 700;
        max-width: calc(100% - 24px);
    }

    .news-card-content {
        padding: 20px;
    }

    .news-title {
        font-size: 16px;
        height: 44px;
    }

    .news-excerpt {
        font-size: 14px;
        min-height: 63px;
        max-height: 63px;
        margin-bottom: 16px;
    }

    .news-details {
        margin-top: 8px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .detail-item {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .detail-item i {
        font-size: 12px;
    }

    .detail-text strong {
        font-size: 12px;
    }

    .meta-item {
        font-size: 12px;
    }

    .modal-content {
        width: 100%;
        max-width: 400px;
    }
}

/* Стилизация опций select */
select.form-select::-ms-expand {
    display: none;
}

select.form-select option:checked {
    background: var(--news-primary);
    color: white;
}

/* ===== КНОПКА "НАВЕРХ" ===== */
:root {
    --primary-color: #99ccff; /* Более бледный синий (вместо #0066cc) */
    --primary-dark: #3385d6;    /* Темнее для hover */
}

.scroll-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background: var(--primary-color, #4da6ff) !important;  /* Бледно-синий */
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;  /* Более мягкая тень */
}

.scroll-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.scroll-to-top:hover {
    background: var(--primary-dark, #3385d6) !important;  /* Темнее при наведении */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2) !important;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
}

/* ===== МОБИЛЬНЫЕ ФИЛЬТРЫ - АККОРДЕОНЫ ===== */
.mobile-filters-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-filter-group {
    background: var(--news-bg-light, #F9FAFB);
    border-radius: 8px;
    border: 1px solid var(--news-border, rgba(3, 45, 67, 0.1));
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-filter-group.expanded {
    background: var(--news-bg-white, #FFFFFF);
    box-shadow: var(--news-shadow-sm, 0 1px 2px rgba(3, 45, 67, 0.05));
}

/* Заголовок группы (кликабельный) */
.mobile-filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.mobile-filter-group-header:hover {
    background: var(--news-primary-light, rgba(3, 45, 67, 0.08));
}

.mobile-filter-group.expanded .mobile-filter-group-header {
    border-bottom: 1px solid var(--news-border-light, rgba(3, 45, 67, 0.05));
}

.mobile-filter-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--news-text-dark, #1A1A1A);
    flex: 1;
}

.mobile-filter-group-title i:first-child {
    color: var(--news-primary, #032D43);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Бейдж с количеством выбранных */
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--news-primary, #032D43);
    color: white;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
    margin-right: 8px;
}

/* Стрелка раскрытия */
.mobile-filter-toggle-icon {
    color: var(--news-text-gray, #6B7280);
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-filter-group.expanded .mobile-filter-toggle-icon {
    transform: rotate(180deg);
    color: var(--news-primary, #032D43);
}

/* Содержимое группы (список чекбоксов) */
.mobile-filter-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.mobile-filter-group.expanded .mobile-filter-group-content {
    max-height: 400px;
    padding: 12px 16px 16px;
    overflow-y: auto;
}

/* Стили чекбоксов внутри аккордеона */
.mobile-filter-group-content .filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.mobile-filter-group-content .filter-options::-webkit-scrollbar {
    width: 4px;
}

.mobile-filter-group-content .filter-options::-webkit-scrollbar-thumb {
    background: var(--news-border, rgba(3, 45, 67, 0.1));
    border-radius: 999px;
}

.mobile-filter-group-content .filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
}

.mobile-filter-group-content .filter-option:hover {
    background: var(--news-primary-light, rgba(3, 45, 67, 0.08));
}

.mobile-filter-group-content .filter-option.active {
    background: var(--news-primary-light, rgba(3, 45, 67, 0.08));
}

.mobile-filter-group-content .filter-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--news-border, rgba(3, 45, 67, 0.1));
    border-radius: 4px;
    appearance: none;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mobile-filter-group-content .filter-checkbox:checked {
    background-color: var(--news-primary, #032D43);
    border-color: var(--news-primary, #032D43);
}

.mobile-filter-group-content .filter-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.mobile-filter-group-content .filter-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(3, 45, 67, 0.1);
}

.mobile-filter-group-content .filter-option-text {
    font-size: 14px;
    color: var(--news-text-dark, #1A1A1A);
    line-height: 1.4;
    flex: 1;
}

/* ===== Мобильные поля дат внутри аккордеона ===== */
.mobile-date-filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-date-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-date-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--news-text-dark, #1A1A1A);
}

.mobile-date-input-wrapper {
    position: relative;
    width: 100%;
}

.mobile-date-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 44px;
    border: 1px solid var(--news-border, rgba(3, 45, 67, 0.1));
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    color: var(--news-text-dark, #1A1A1A);
    background: var(--news-bg-white, #FFFFFF);
    box-shadow: 0 2px 4px rgba(3, 45, 67, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mobile-date-input:hover {
    border-color: var(--news-border-dark, rgba(3, 45, 67, 0.2));
    box-shadow: 0 4px 8px rgba(3, 45, 67, 0.15);
}

.mobile-date-input:focus {
    outline: none;
    border-color: var(--news-primary, #032D43);
    box-shadow: 0 0 0 3px rgba(3, 45, 67, 0.1);
}

.mobile-date-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--news-text-light, #9CA3AF);
    font-size: 14px;
    pointer-events: none;
}

.mobile-date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.mobile-date-input-wrapper input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .mobile-filter-group-header {
        padding: 12px 14px;
    }

    .mobile-filter-group-title {
        font-size: 13px;
    }

    .mobile-filter-group.expanded .mobile-filter-group-content {
        max-height: 300px;
    }

    .mobile-filter-group-content .filter-options {
        max-height: 240px;
    }
}
/* ===== Mobile Filters ===== */
.mobile-filters-btn {
    display: none;
}

@media (max-width: 992px) {
    .mobile-filters-btn {
        display: flex;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 90;
        padding: 12px 24px;
        background: var(--news-primary);
        color: white;
        border: none;
        border-radius: var(--news-radius-lg);
        font-size: 14px;
        font-weight: 500;
        box-shadow: var(--news-shadow-xl);
        cursor: pointer;
        gap: 8px;
        align-items: center;
        transition: all 0.3s ease;
    }

    .mobile-filters-btn:hover {
        background: var(--news-primary-dark);
        transform: translateY(-2px);
    }
}

/* Mobile Filters Modal */
.mobile-filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.mobile-filters-modal.active {
    display: block;
}

/* Overlay (затемнение фона) - БЕЗ backdrop-filter */
.mobile-filters-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Содержимое модального окна */
.mobile-filters-modal .modal-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 90vw;
    background: var(--news-bg-white);
    padding: 0;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    border-left: 1px solid var(--news-border);
    z-index: 2;
    pointer-events: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-filters-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--news-border-light);
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.mobile-filters-modal .modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--news-primary);
    margin: 0;
}

.mobile-filters-modal .modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--news-border);
    background: var(--news-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--news-text-gray);
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
}

.mobile-filters-modal .modal-close:hover {
    background: var(--news-primary-light);
    color: var(--news-primary);
}

/* Прокручиваемая область фильтров */
.mobile-filters-modal .modal-filters {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    padding-right: 16px;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
}

.mobile-filters-modal .modal-filters .filter-options {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.mobile-filters-modal .modal-filters .filter-options::-webkit-scrollbar {
    width: 6px;
}

.mobile-filters-modal .modal-filters .filter-options::-webkit-scrollbar-thumb {
    background: var(--news-border);
    border-radius: var(--news-radius-full);
}

/* Кнопки действий внизу */
.mobile-filters-modal .modal-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--news-border-light);
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    background: var(--news-bg-white);
}

.mobile-filters-modal .btn-apply-filters,
.mobile-filters-modal .btn-reset-modal {
    flex: 1;
    padding: 14px;
    border-radius: var(--news-radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--news-border);
    position: relative;
    z-index: 4;
}

.mobile-filters-modal .btn-apply-filters {
    background: var(--news-primary);
    color: white;
    border-color: var(--news-primary);
}

.mobile-filters-modal .btn-apply-filters:hover {
    background: var(--news-primary-dark);
}

.mobile-filters-modal .btn-reset-modal {
    background: var(--news-bg-white);
    color: var(--news-text-gray);
}

.mobile-filters-modal .btn-reset-modal:hover {
    border-color: var(--news-primary);
    color: var(--news-primary);
    background: var(--news-primary-light);
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .mobile-filters-modal .modal-content {
        width: 100vw;
        max-width: 100vw;
    }

    .mobile-filters-modal .modal-header {
        padding: 16px 20px;
    }

    .mobile-filters-modal .modal-filters {
        padding: 20px;
    }

    .mobile-filters-modal .modal-actions {
        padding: 16px 20px;
    }
}