    /* Существующие стили остаются без изменений */
    * {
        font-family: 'Unbounded';
    }

    div {
        display: block;
        unicode-bidi: isolate;
    }

    .priem_vuz {
        display: flex;
        justify-content: center;
    }

    /* Секция с видео */
    .video-section {
        margin-top: 30px;
    }

    .section-title {
        font-size: 1.8rem;
        color: #1a237e;
        margin-top: 30px;
        margin-bottom: 25px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e8eaf6;
        display: flex;
        align-items: center;
    }

    .section-title i {
        margin-right: 10px;
        color: #3949ab;
    }

    .video-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 30px !important;
        max-width: 1200px;
        margin: 0 auto;
    }

    @media (max-width: 1024px) {
        .video-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .video-grid {
            grid-template-columns: 1fr;
            grid-gap: 20px;
        }
    }

    .video-card {
        background: #f8f9fa;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        max-width: 500px;
    }

    .video-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    }

    .video-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .video-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    .video-info {
        padding: 15px;
    }

    .video-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 8px;
        color: #1a237e;
    }

    .video-desc {
        color: #666;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .postupi {
        display: flex;
        grid-gap: 10px;
        max-width: 1200px;
        width: auto;
    }

    .postupi_1,
    .postupi_2,
    .postupi_3,
    .postupi_4 {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        padding: 20px;
        box-sizing: border-box;
    }

    .postupi_1 {
        background-color: #D3C49E;
        transition: background-color 0.5s ease;
    }

    .postupi_1:hover {
        background-color: #be3600;
        border: none;
        color: white !important;
    }

    .postupi_2 {
        background-color: #0E7C8E;
        transition: background-color 0.3s ease;
    }

    .postupi_2:hover {
        background-color: #be3600;
        border: none;
    }

    .postupi_3 {
        background-color: #185269;
        transition: background-color 0.3s ease;
    }

    .postupi_3:hover {
        background-color: #be3600;
        border: none;
    }

    .postupi_4 {
        background-color: #F1F5F8;
        transition: background-color 0.3s ease;
    }

    .postupi_4:hover {
        background-color: #be3600;
        border: none;
        color: white !important;
    }

    .pos_1:hover {
        color: white;
    }

    .pos_2 {
        color: white;
    }

    .pos_3 {
        color: white;
    }

    .pos_4:hover {
        color: white;
    }

    h3 {
        margin: 0;
        text-align: center;
    }

    /*адаптивности*/
    @media (max-width: 768px) {
        .postupi {
            flex-direction: column;
            width: 100%;
        }

        .postupi_1,
        .postupi_2,
        .postupi_3,
        .postupi_4 {
            aspect-ratio: auto;
            min-height: 100px;
        }

        .level-switcher {
            gap: 0;
        }
    }

    /* Стили для переключателя уровней */
    .education-levels {
        margin-bottom: 25px;
        padding: 0 5px;
    }

    .level-switcher {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }

    .level-btn {
        padding: 12px 28px;
        border: 2px solid #e0e0e0;
        background: white;
        border-radius: 8px;
        font-size: 1.1em;
        font-weight: 600;
        color: #666;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 160px;
        text-align: center;
    }

    .level-btn:hover {
        border-color: #2c6bb5;
        color: #2c6bb5;
        background: #f5f9ff;
    }

    .level-btn.active {
        background: #2c6bb5;
        color: white;
        border-color: #2c6bb5;
    }

    .level-info {
        padding: 10px 15px;
        background: #f8f9fa;
        border-radius: 8px;
        font-size: 0.95em;
        color: #555;
    }

    /* Новый дизайн карточек программ */
    .programs-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 25px;
        width: 100%;
        margin: 0 auto;
    }

    .program-card {
        background: rgb(255, 255, 255);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid #e9ecef;
        position: relative;
    }

    .program-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
        border-color: #2c6bb5;
    }

    .program-header {
        background: linear-gradient(90deg, #054c76, #0c192a, #471c3a);
        color: white;
        padding: 22px;
        position: relative;
    }

    .program-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ffd166 0%, #ffb347 100%);
    }

    .program-code {
        display: inline-block;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.85em;
        font-weight: 600;
        margin-bottom: 12px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .program-title {
        font-size: 1.3em;
        line-height: 1.4;
        color: white;
        margin: 0;
        font-weight: 600;
        min-height: 56px;
        display: flex;
        align-items: center;
    }

    .program-body {
        padding: 15px;
    }

    .program-info {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .info-row {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 6px;
        background: #f8fafc;
        border-radius: 10px;
        transition: background 0.2s ease;
        text-align: center;
    }

    .info-row:hover {
        background: #edf2f7;
    }

    .info-row.highlight {
        background: linear-gradient(135deg, #e8f4ff 0%, #dbeafe 100%);
        border: 1px solid #d1e7ff;
    }

    .info-row.highlight:hover {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    }

    .info-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        background: #2c6bb5;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2em;
    }

    .info-row.highlight .info-icon {
        background: linear-gradient(135deg, #2c6bb5 0%, #1a4a8f 100%);
    }

    .info-content {
        flex: 1;
    }

    .info-label {
        font-size: 0.8em;
        color: #666;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
    }

    .info-value {
        font-size: 1em;
        color: #000000;
        font-weight: 500;
        line-height: 1;
    }

    .info-row.highlight .info-value {
        color: #2c6bb5;
        font-weight: 600;
    }

    .exams-section {
        margin-top: -20px;
        padding: 20px;
        background: #f8fafc;
        border-radius: 12px;
    }

    .exams-title {
        font-size: 1.1em;
        color: #2c6bb5;
        font-weight: 600;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .exams-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .exam-item {
        background: white;
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #e9ecef;
        transition: all 0.2s ease;
    }

    .exam-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        border-color: #2c6bb5;
    }

    .exam-type {
        font-size: 0.8em;
        color: #666;
        font-weight: 500;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .exam-subjects {
        font-size: 0.95em;
        color: #000000;
        font-weight: 700;
        line-height: 1.4;
    }

    .program-footer {
        padding: 0 22px 22px;
        display: flex;
        justify-content: center;
    }

    .details-btn {
        background: linear-gradient(135deg, #2c6bb5 0%, #1a4a8f 100%);
        color: white;
        border: none;
        padding: 12px 28px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.95em;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .details-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(44, 107, 181, 0.3);
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    }

    /* КОМПАКТНЫЙ ФИЛЬТР ПО ЕГЭ */
    .ege-filter {
        background: white;
        border-radius: 12px;
        padding: 18px;
        margin-bottom: 25px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid #00376e;
    }

    .filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .filter-title {
        font-size: 1.2em;
        color: #2c6bb5;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    .filter-controls {
        display: flex;
        gap: 12px;
        align-items: center;
        flex-wrap: wrap;
    }

    .clear-filter-btn {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        color: #666;
        padding: 8px 16px;
        border-radius: 8px;
        font-weight: 500;
        font-size: 0.9em;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .clear-filter-btn:hover {
        background: #e9ecef;
        color: #333;
    }

    .program-counter {
        font-size: 0.85em;
        color: #666;
        background: #f8f9fa;
        padding: 8px 16px;
        border-radius: 20px;
        font-weight: 500;
        white-space: nowrap;
    }

    /* КОМПАКТНАЯ СЕТКА ПРЕДМЕТОВ */
    .compact-subjects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .subject-chip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: #f8fafc;
        border: 2px solid #e9ecef;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
        position: relative;
    }

    .subject-chip:hover {
        background: #edf2f7;
        border-color: #d1e7ff;
        transform: translateY(-2px);
    }

    .subject-chip.selected {
        background: linear-gradient(135deg, #e8f4ff 0%, #dbeafe 100%);
        border-color: #2c6bb5;
        box-shadow: 0 4px 8px rgba(44, 107, 181, 0.1);
    }

    .subject-chip.selected:hover {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    }

    .subject-name {
        font-size: 0.95em;
        color: #333;
        font-weight: 500;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ГАЛОЧКА ЧЕРЕЗ ПСЕВДОЭЛЕМЕНТ - ЛУЧШИЙ ВАРИАНТ */
    .subject-chip::after {
        content: '';
        width: 20px;
        height: 20px;
        border: 2px solid #dee2e6;
        border-radius: 4px;
        background: white;
        transition: all 0.2s ease;
        margin-left: 10px;
        flex-shrink: 0;
    }

    .subject-chip.selected::after {
        background: #2c6bb5;
        border-color: #2c6bb5;
        content: '✓';
        color: white;
        font-weight: bold;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Фильтр по ЕГЭ в одну строку для десктопа */
    .inline-filter {
        display: none;
    }

    @media (min-width: 1024px) {
        .inline-filter {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            background: white;
            border-radius: 12px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #00376e;
            flex-wrap: wrap;
        }

        .inline-title {
            font-size: 1.1em;
            color: #2c6bb5;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
        }

        .inline-subjects {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            flex: 1;
        }

        .inline-chip {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 16px;
            background: #f8fafc;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.95em;
            white-space: nowrap;
            position: relative;
        }

        .inline-chip:hover {
            background: #edf2f7;
            border-color: #d1e7ff;
        }

        .inline-chip.selected {
            background: linear-gradient(135deg, #ff5623 0%, #df1286 100%);
            border-color: #ff5623;
            color: white;
        }

        .inline-chip .subject-name {
            font-size: 0.95em;
            color: inherit;
        }

        /* ГАЛОЧКА ДЛЯ ИНЛАЙН ФИЛЬТРА */
        .inline-chip::after {
            content: '';
            width: 18px;
            height: 18px;
            border: 2px solid #dee2e6;
            border-radius: 4px;
            background: white;
            transition: all 0.2s ease;
            margin-left: 8px;
            flex-shrink: 0;
        }

        .inline-chip.selected::after {
            background: white;
            border-color: white;
            content: '✓';
            color: #ff5623;
            font-weight: bold;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .compact-subjects-grid {
            display: none;
        }
    }

    /* Адаптивность */
    @media (max-width: 1200px) {
        .programs-grid {
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        }
    }

    @media (max-width: 768px) {
        .programs-grid {
            grid-template-columns: 1fr;
        }

        .level-switcher {
            flex-direction: column;
        }

        .level-btn {
            width: 100%;
            min-width: auto;
        }

        .filter-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }

        .compact-subjects-grid {
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        }

        .exams-grid {
            grid-template-columns: 1fr;
        }

        .program-title {
            font-size: 1.2em;
            min-height: auto;
        }
    }

    .program-tab {
        margin-top: 30px;
    }

    /* Сообщение, когда нет результатов */
    .no-results {
        grid-column: 1 / -1;
        text-align: center;
        padding: 60px 20px;
        background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
        border-radius: 16px;
        border: 2px dashed #dee2e6;
    }

    .no-results-icon {
        font-size: 3em;
        color: #adb5bd;
        margin-bottom: 20px;
    }

    .no-results-title {
        font-size: 1.5em;
        color: #6c757d;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .no-results-text {
        color: #868e96;
        font-size: 1.1em;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.6;
    }

    /* Анимация появления карточек */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .program-card {
        animation: fadeInUp 0.4s ease forwards;
    }

    .program-card:nth-child(2) {
        animation-delay: 0.1s;
    }

    .program-card:nth-child(3) {
        animation-delay: 0.2s;
    }

    .program-card:nth-child(4) {
        animation-delay: 0.3s;
    }

    .program-card:nth-child(5) {
        animation-delay: 0.4s;
    }

    .program-card:nth-child(6) {
        animation-delay: 0.5s;
    }