.video-gallery-container {
        max-width: 1200px;
        margin: 40px auto;
        padding: 20px;
        font-family: Arial, sans-serif;
    }
    .video-gallery-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    .video-gallery-grid.expanded {
        grid-template-columns: 2fr 0.5fr 0.5fr 0.5fr;
        gap: 15px;
    }
    .video-card {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        background: #fff;
        order: 0; /* Ключевое свойство для управления порядком */
    }
    .video-card:hover:not(.active) {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    }
    .video-card.active {
        /* Убран transform: scale — он мешает порядку в гриде */
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }
    .video-card.minimized {
        opacity: 0.7;
        transform: scale(0.95);
    }
    .video-card.minimized:hover {
        opacity: 1;
        transform: scale(1);
    }
    .video-wrapper {
        position: relative;
        width: 100%;
        background: #000;
    }
    .video-card video {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        transition: all 0.4s ease;
    }
	.video-card video:first-child{
	background:url(upload/vp3.jpg);
	background-size:cover;
	}
    .video-card.active video {
        height: 400px;
    }
    .video-card.minimized video {
        height: 160px;
    }
    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        opacity: 1;
    }
    .video-card.active .video-overlay {
        opacity: 0;
        pointer-events: none;
    }
    .play-button {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    .play-button:hover {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 1);
    }
    .play-button::after {
        content: '';
        width: 0;
        height: 0;
        border-left: 20px solid #333;
        border-top: 12px solid transparent;
        border-bottom: 12px solid transparent;
        margin-left: 4px;
    }
    .video-info {
        padding: 20px;
        transition: all 0.4s ease;
    }
    .video-card.minimized .video-info {
        padding: 15px;
    }
    .video-title {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }
    .video-card.active .video-title {
        font-size: 24px;
        color: #2c3e50;
    }
    .video-card.minimized .video-title {
        font-size: 14px;
    }
    .video-description {
        color: #666;
        font-size: 14px;
        line-height: 1.5;
        transition: all 0.3s ease;
    }
    .video-card.active .video-description {
        font-size: 16px;
        color: #555;
    }
    .video-card.minimized .video-description {
        font-size: 12px;
        line-height: 1.3;
    }
    .close-button {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
        color: #333;
        z-index: 20;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    .video-card.active .close-button {
        display: flex;
    }
    .close-button:hover {
        background: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }
    .video-controls {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        display: none;
        align-items: center;
        gap: 15px;
        background: rgba(0, 0, 0, 0.8);
        padding: 15px;
        border-radius: 12px;
        backdrop-filter: blur(20px);
    }
    .video-card.active .video-controls {
        display: flex;
    }
    .control-button {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    .control-button:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    .volume-slider {
        flex: 1;
        max-width: 100px;
    }
    .progress-bar {
        flex: 1;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        overflow: hidden;
        cursor: pointer;
    }
    .progress-fill {
        height: 100%;
        background: #fff;
        width: 0%;
        transition: width 0.1s ease;
    }

    /* Overlay для затемнения фона */
    .video-overlay-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 5;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .video-overlay-background.active {
        display: block;
        opacity: 1;
    }

    @media (max-width: 1024px) {
        .video-gallery-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        .video-gallery-grid.expanded {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto auto auto;
        }
        .video-card.minimized {
            display: none;
        }
    }
    @media (max-width: 640px) {
        .video-gallery-grid {
            grid-template-columns: 1fr;
        }
        .video-card video {
            height: 200px;
        }
        .video-card.active video {
            height: 300px;
        }
    }

        .infographic {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 25px;
            padding: 40px;
            width: 100%;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(50px);
            animation: slideInUp 1s ease forwards;
        }

        .infographic::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
            animation: slideInBar 1.5s ease forwards;
            animation-delay: 0.5s;
        }

        .infographic::after {
            content: '';
            position: absolute;
            top: -100%;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
            animation: shine 2s ease-in-out infinite;
            animation-delay: 2s;
        }

        .header {
            text-align: center;
            margin-bottom: 50px;
            opacity: 0;
            animation: fadeInDown 1s ease forwards;
            animation-delay: 0.8s;
        }

        .title {
            font-size: 2.5rem;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            line-height: 1.2;
            transform: scale(0.8);
            animation: scaleIn 0.8s ease forwards;
            animation-delay: 1s;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .stat-card {
            background: white;
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(100px) rotate(5deg);
        }

        .stat-card:hover {
            transform: translateY(-15px) scale(1.05);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
        }

        .stat-card:hover .stat-icon {
            transform: scale(1.2) rotate(360deg);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--accent-color);
            transform: scaleX(0);
            animation: expandBar 0.8s ease forwards;
        }

        .stat-card:nth-child(1) { 
            --accent-color: #ff6b6b; 
            animation: slideInCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            animation-delay: 1.5s;
        }
        .stat-card:nth-child(2) { 
            --accent-color: #4ecdc4; 
            animation: slideInCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            animation-delay: 1.7s;
        }
        .stat-card:nth-child(3) { 
            --accent-color: #45b7d1; 
            animation: slideInCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            animation-delay: 1.9s;
        }
        .stat-card:nth-child(4) { 
            --accent-color: #96ceb4; 
            animation: slideInCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            animation-delay: 2.1s;
        }

        .stat-card:nth-child(1)::before { animation-delay: 2s; }
        .stat-card:nth-child(2)::before { animation-delay: 2.2s; }
        .stat-card:nth-child(3)::before { animation-delay: 2.4s; }
        .stat-card:nth-child(4)::before { animation-delay: 2.6s; }

        .stat-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 20px;
            background: var(--accent-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }

        .stat-icon::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255,255,255,0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.4s ease;
        }

        .stat-card:hover .stat-icon::before {
            width: 100%;
            height: 100%;
        }

        .stat-icon i {
            opacity: 0;
            transform: scale(0);
            animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
        }

        .stat-card:nth-child(1) .stat-icon i { animation-delay: 2.3s; }
        .stat-card:nth-child(2) .stat-icon i { animation-delay: 2.5s; }
        .stat-card:nth-child(3) .stat-icon i { animation-delay: 2.7s; }
        .stat-card:nth-child(4) .stat-icon i { animation-delay: 2.9s; }

        .stat-number {
            font-size: 3rem;
            font-weight: bold;
            color: #333;
            margin-bottom: 10px;
            line-height: 1;
            opacity: 0;
            transform: translateY(20px);
            animation: slideInUp 0.8s ease forwards;
        }

        .stat-card:nth-child(1) .stat-number { animation-delay: 2.5s; }
        .stat-card:nth-child(2) .stat-number { animation-delay: 2.7s; }
        .stat-card:nth-child(3) .stat-number { animation-delay: 2.9s; }
        .stat-card:nth-child(4) .stat-number { animation-delay: 3.1s; }

        .stat-label {
            font-size: 1.1rem;
            color: #666;
            font-weight: 500;
            line-height: 1.3;
            opacity: 0;
            transform: translateY(20px);
            animation: slideInUp 0.8s ease forwards;
        }

        .stat-card:nth-child(1) .stat-label { animation-delay: 2.7s; }
        .stat-card:nth-child(2) .stat-label { animation-delay: 2.9s; }
        .stat-card:nth-child(3) .stat-label { animation-delay: 3.1s; }
        .stat-card:nth-child(4) .stat-label { animation-delay: 3.3s; }

        .highlight {
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: bold;
        }

        .pulse {
            animation: continuousPulse 2s infinite;
            animation-delay: 4s;
        }

        .floating {
            animation: floating 3s ease-in-out infinite;
            animation-delay: 4s;
        }

        /* Keyframe Animations */
        @keyframes slideInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInBar {
            to {
                left: 0;
            }
        }

        @keyframes shine {
            0% { top: -100%; }
            50% { top: 100%; }
            100% { top: -100%; }
        }

        @keyframes fadeInDown {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes scaleIn {
            to {
                transform: scale(1);
            }
        }

        @keyframes fadeIn {
            to {
                opacity: 1;
            }
        }

        @keyframes slideInCard {
            to {
                opacity: 1;
                transform: translateY(0) rotate(0deg);
            }
        }

        @keyframes expandBar {
            to {
                transform: scaleX(1);
            }
        }

        @keyframes popIn {
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes continuousPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes floating {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        @media (max-width: 768px) {
            .infographic {
                padding: 30px 20px;
                margin: 10px;
            }
            
            .title {
                font-size: 2rem;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .stat-card {
                padding: 25px 20px;
            }
            
            .stat-number {
                font-size: 2.5rem;
            }
        }
.lightbox {
            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;
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
        }

        .lightbox-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 8px;
        }

        .lightbox-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: none;
            border: none;
            color: white;
            font-size: 30px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.3s ease;
        }

        .lightbox-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
        }

        .lightbox-nav:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .lightbox-prev {
            left: -70px;
        }

        .lightbox-next {
            right: -70px;
        }

        .lightbox-counter {
            position: absolute;
            bottom: -40px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 14px;
        }

        /* Мобильная адаптация */
        @media (max-width: 768px) {
            .lightbox-nav {
                top: auto;
                bottom: 20px;
                transform: none;
            }

            .lightbox-prev {
                left: 20px;
            }

            .lightbox-next {
                right: 20px;
            }

            .lightbox-close {
                top: 20px;
                right: 20px;
            }

            .lightbox-counter {
                bottom: 80px;
            }
        }