/* Основные стили для видео */
.video-section {
    padding: 5rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #f3f3f3 100%);
    position: relative;
    overflow: hidden;
}

.video-section .separator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    transform: translateY(-99%);
    z-index: 1;
}

.video-section .separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f8f8 0%, #f3f3f3 100%);
    clip-path: polygon(0 80%, 100% 0, 100% 100%, 0% 100%);
}

.video-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 126, 0.08) 0%, rgba(200, 169, 126, 0) 70%);
    left: -200px;
    top: -100px;
    z-index: 0;
}

.video-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 126, 0.08) 0%, rgba(200, 169, 126, 0) 70%);
    right: -100px;
    bottom: -50px;
    z-index: 0;
}

.video-section .section-title,
.video-section .section-subtitle {
    position: relative;
    z-index: 1;
}

.video-section .section-title {
    position: relative;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out both;
}

.video-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.video-filter {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.video-filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--white);
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.video-filter-btn.active,
.video-filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(200, 169, 126, 0.3);
}

.video-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.3s; }
.video-item:nth-child(3) { animation-delay: 0.5s; }
.video-item:nth-child(4) { animation-delay: 0.7s; }

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* Соотношение 16:9 для видео */
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px 12px 0 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    opacity: 0;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.video-wrapper:hover::before {
    opacity: 1;
}

.video-item:hover .video-wrapper {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 0;
}

.video-info {
    padding: 1.5rem;
}

.video-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(200, 169, 126, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-title {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.video-item:hover .video-title {
    color: var(--primary-color);
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: #777;
}

.video-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.video-meta-icon {
    opacity: 0.7;
}

.video-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-item {
        margin-bottom: 0;
    }
    
    .video-title {
        font-size: 1.2rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .video-section {
        padding: 4rem 1.5rem;
    }
    
    .video-filter {
        gap: 0.5rem;
    }
    
    .video-filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}