
	 <style>
        .media-gallery {
            background: #ffffff;
            min-height: 100vh;
            padding: 2rem 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .title-h2 {
            text-align: center;
            margin-bottom: 3rem;
        }

        .title-h2 h2 {
            font-size: 2.5rem;
            color: #003896;
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .title-h2 .subtitle {
            color: #6c757d;
            font-size: 1.1rem;
        }

        .media-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .media-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .media-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            border: none;
        }

        .media-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
        }

        .card-media {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16/9;
        }

        .card-media img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .media-card:hover .card-media img {
            transform: scale(1.05);
        }

        .card-media iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .video-preview {
            position: relative;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        .video-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .media-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0; /* Скрыто по умолчанию */
            transition: opacity 0.3s ease;
        }

        .media-card:hover .media-overlay {
            opacity: 1; /* Показываем при наведении */
        }

        .media-icon {
            color: white;
            font-size: 2rem;
            background: rgba(0,0,0,0.7);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0; /* Скрыто по умолчанию */
            transition: opacity 0.3s ease;
        }

        .media-card:hover .media-icon {
            opacity: 1; /* Показываем при наведении */
        }

        .card-body {
            padding: 1.5rem;
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #003896; /* Изменен цвет на #003896 */
            line-height: 1.4;
        }

        .card-text {
            color: #6c757d;
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 1rem;
        }

        .card-meta {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            padding-top: 1rem;
            border-top: 1px solid #e9ecef;
        }

        .media-badge {
            padding: 0.35rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            opacity: 0; /* Скрыто по умолчанию */
            transition: opacity 0.3s ease;
        }

        .media-card:hover .media-badge {
            opacity: 1; /* Показываем при наведении */
        }

        .badge-article {
            background: #e3f2fd;
            color: #1976d2;
        }

        .badge-video {
            background: #f3e5f5;
            color: #7b1fa2;
        }

        .badge-audio {
            background: #e8f5e8;
            color: #388e3c;
        }

        .video-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .video-modal iframe {
            width: 80%;
            height: 70%;
            max-width: 1200px;
            border: none;
            border-radius: 8px;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 30px;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            background: none;
            border: none;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .media-card {
            animation: fadeIn 0.6s ease-out;
        }

        @media (max-width: 1200px) {
            .media-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .media-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .card-body {
                padding: 1rem;
            }
            
            .title-h2 h2 {
                font-size: 2rem;
            }

            .video-modal iframe {
                width: 95%;
                height: 50%;
            }
            
            /* На мобильных всегда показываем иконки и бейджи */
            .media-overlay,
            .media-icon,
            .media-badge {
                opacity: 1;
            }
        }
    </style>