    /* ===== HEADER СЕКЦИЯ ===== */
    .filter-header {
        padding: 2.5rem 2rem;
        background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
        border-bottom: 1px solid #e2e8f0;
    }
    
    .filter-header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
        color: #0f172a;
        font-weight: 800;
        text-align: center;
    }
    
    .filter-header .subtitle {
        color: #64748b;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
        text-align: center;
    }
    
    /* ===== СЕКЦИЯ УНИВЕРСИТЕТОВ ===== */
    .universities-section {
        padding: 2.5rem 0 4rem;
        background: #f8fafc;
    }
    
    /* ===== ПАНЕЛЬ ФИЛЬТРОВ ===== */
    .filter-panel {
        background: white;
        padding: 1.25rem 1.5rem;
        border-radius: 16px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
    }
    
    .filter-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
        gap: 1rem;
        align-items: end;
    }
    
    .filter-group label {
        display: block;
        font-size: 0.75rem;
        color: #64748b;
        margin-bottom: 0.4rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
        padding: 0.65rem 0.9rem;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        font-size: 0.9rem;
        background: #f8fafc;
        color: #1e293b;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    
    .filter-group input:focus,
    .filter-group select:focus {
        outline: none;
        border-color: #3b82f6;
        background: white;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .filter-group select {
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.7rem center;
        background-size: 1rem;
        padding-right: 2.5rem;
    }
    
    /* Autocomplete стили */
    .city-autocomplete {
        position: relative;
    }
    
    .autocomplete-wrapper {
        position: relative;
    }
    
    .autocomplete-wrapper input[type="text"] {
        cursor: pointer;
        padding-right: 2.5rem;
        min-height: 44px;
        font-size: 0.95rem;
    }
    
    .autocomplete-arrow {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #64748b;
        font-size: 0.65rem;
        pointer-events: none;
        transition: transform 0.2s ease;
    }
    
    .autocomplete-wrapper.open .autocomplete-arrow {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .autocomplete-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1.5px solid #e2e8f0;
        border-top: none;
        border-radius: 0 0 10px 10px;
        max-height: 250px;
        overflow-y: auto;
        z-index: 100;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .autocomplete-wrapper.open .autocomplete-dropdown {
        display: block;
    }
    
    .autocomplete-wrapper.open input[type="text"] {
        border-radius: 10px 10px 0 0;
        border-color: #3b82f6;
        background: white;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.9rem;
        cursor: pointer;
        font-size: 0.9rem;
        color: #334155;
        transition: background 0.15s ease;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .city-main {
        font-weight: 500;
        color: #334155;
    }

    .city-alias {
        font-size: 0.78rem;
        color: #64748b;
        white-space: nowrap;
    }
    
    .dropdown-item:hover,
    .dropdown-item.highlighted {
        background: #f1f5f9;
    }
    
    .dropdown-item.selected {
        background: #e0f2fe;
        color: #0369a1;
        font-weight: 500;
    }
    
    .dropdown-item:first-child {
        color: #64748b;
        font-style: italic;
    }

    .filter-buttons {
        display: flex;
        gap: 0.5rem;
    }
    
    .btn-filter {
        padding: 0.65rem 1.25rem;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    
    .btn-filter:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }
    
    .btn-reset {
        padding: 0.65rem 0.9rem;
        background: #f1f5f9;
        color: #64748b;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-reset:hover {
        background: #fee2e2;
        border-color: #fca5a5;
        color: #dc2626;
    }
    
    /* ===== АКТИВНЫЕ ФИЛЬТРЫ ===== */
    .active-filters {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
    }
    
    .active-filters-label {
        font-size: 0.8rem;
        color: #64748b;
        font-weight: 500;
    }
    
    .filter-tag {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.35rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .filter-tag.search { background: #dbeafe; color: #1e40af; }
    .filter-tag.city { background: #dcfce7; color: #166534; }
    .filter-tag.ranking { background: #fef3c7; color: #92400e; }
    .filter-tag.degree { background: #ede9fe; color: #5b21b6; }
    
    /* ===== СЕТКА УНИВЕРСИТЕТОВ ===== */
    .uni-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 1.5rem;
    }
    
    /* ===== КАРТОЧКА УНИВЕРСИТЕТА ===== */
    .uni-card-link {
        text-decoration: none;
        display: block;
    }
    
    .uni-card {
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .uni-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
        border-color: #3b82f6;
    }
    
    .uni-card-image {
        position: relative;
        height: 200px;
        overflow: hidden;
    }
    
    .uni-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    
    .uni-card:hover .uni-card-image img {
        transform: scale(1.08);
    }
    
    .uni-badge {
        position: absolute;
        padding: 0.4rem 0.75rem;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        backdrop-filter: blur(8px);
    }
    
    .uni-badge.ranking {
        top: 12px;
        right: 12px;
        background: rgba(15, 23, 42, 0.85);
        color: white;
    }
    
    .uni-badge.scholarship {
        top: 12px;
        left: 12px;
        background: rgba(16, 185, 129, 0.9);
        color: white;
    }
    
    .uni-card-body {
        padding: 1.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .uni-card-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 0.4rem;
        line-height: 1.4;
    }
    
    .uni-card-city {
        color: #64748b;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .uni-card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-bottom: 0.9rem;
    }
    
    .uni-tag {
        font-size: 0.7rem;
        background: #f1f5f9;
        padding: 0.25rem 0.55rem;
        border-radius: 6px;
        color: #475569;
        font-weight: 500;
    }
    
    .uni-tag.national { background: #eff6ff; color: #1e40af; }
    
    .uni-card-desc {
        font-size: 0.85rem;
        color: #64748b;
        line-height: 1.6;
        margin-bottom: 1rem;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .uni-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.9rem;
        border-top: 1px solid #f1f5f9;
    }
    
    .uni-programs {
        font-size: 0.85rem;
        color: #3b82f6;
        font-weight: 600;
    }
    
    .uni-link {
        font-size: 0.85rem;
        color: #3b82f6;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.3rem;
        transition: gap 0.2s ease;
    }
    
    .uni-card:hover .uni-link {
        gap: 0.5rem;
    }
    
    /* ===== ПУСТОЙ РЕЗУЛЬТАТ ===== */
    .no-results {
        text-align: center;
        padding: 4rem 2rem;
        background: white;
        border-radius: 20px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .no-results-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
    }
    
    .no-results h3 {
        font-size: 1.4rem;
        color: #0f172a;
        margin-bottom: 0.5rem;
    }
    
    .no-results p {
        color: #64748b;
        margin-bottom: 1.5rem;
    }
    
    .no-results .btn-filter {
        display: inline-block;
    }
    
    /* ===== АДАПТИВНОСТЬ ===== */
    @media (max-width: 1024px) {
        .filter-grid {
            grid-template-columns: 1fr 1fr;
        }
        
        .filter-buttons {
            grid-column: span 2;
            justify-content: center;
        }
    }
    
    @media (max-width: 640px) {
        .filter-header {
            padding: 1.5rem 1rem;
        }
        
        .filter-header h1 {
            font-size: 1.6rem;
        }
        
        .filter-panel {
            padding: 1rem;
        }
        
        .filter-grid {
            grid-template-columns: 1fr;
        }
        
        .filter-buttons {
            grid-column: span 1;
        }
        
        .uni-grid {
            grid-template-columns: 1fr;
        }
        
        .uni-card-image {
            height: 180px;
        }
    }
    
    /* Скрытие карточек при фильтрации */
    .uni-card-link.hidden {
        display: none;
    }

    .uni-card-link.infinite-hidden {
        display: none;
    }
    
    /* Сообщение "не найдено" для live-поиска */
    .live-no-results {
        grid-column: 1 / -1;
        text-align: center;
        padding: 3rem 2rem;
        background: white;
        border-radius: 16px;
        color: #64748b;
    }
    
    .live-no-results h3 {
        font-size: 1.2rem;
        color: #0f172a;
        margin-bottom: 0.5rem;
    }
