/* ========== СБРОС И БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== ОСНОВНОЙ КОНТЕЙНЕР ========== */
.onliner-special-page {
    width: 100%;
    position: relative;
}

/* ========== HERO СЕКЦИЯ ========== */
.hero-section {
    width: 100%;
    min-height: 70vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    display: flex;
    align-items: center;
}

/* Фоновые элементы */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(60px);
}

.bg-circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.bg-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* Контент героя */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Брендинг - логотипы на прозрачном фоне */
.branding {
    text-align: center;
    margin-bottom: 60px;
}

.brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* Логотипы без белого фона */
.logo-mv {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.logo-onliner {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.logo-divider {
    font-size: 32px;
    font-weight: 300;
    color: #64748b;
    opacity: 0.3;
}

.project-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Заголовок героя */
.hero-content {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    color: #475569;
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 500;
    margin-top: 8px;
}

.hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.125rem);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Статистика */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 24px 32px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 160px;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #1d4ed8;
    margin-bottom: 6px;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== ВИДЕО СЕКЦИЯ ========== */
.videos-section {
    width: 100%;
    padding: 80px 20px;
    background: white;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto;
}

/* Сетка видео */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 0;
}

/* Карточка видео */
.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

/* Номер видео */
.video-number {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1d4ed8;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    z-index: 2;
}

/* Превью видео */
.video-preview {
    position: relative;
    padding-bottom: 56.25%;
    background: #111827;
    overflow: hidden;
    flex-shrink: 0;
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.play-icon {
    width: 22px;
    height: 22px;
    fill: #1d4ed8;
    margin-left: 2px;
}

/* Контент карточки */
.video-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.video-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.video-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.video-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Кнопки - исправлено: не выходят за рамки */
.video-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-wrap: nowrap;
    min-width: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
}

.btn-secondary {
    background: white;
    color: #4b5563;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

/* Сообщение об отсутствии видео */
.no-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.no-videos h3 {
    color: #4b5563;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.no-videos p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ========== CTA СЕКЦИЯ ========== */
.cta-section {
    width: 100%;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
}

.cta-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 1rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
    min-width: 180px;
}

/* Особенности */
.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px 40px;
        min-height: 60vh;
    }
    
    .brand-logos {
        flex-direction: column;
        gap: 16px;
    }
    
    .logo-divider {
        margin: 8px 0;
        font-size: 28px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 20px 24px;
        min-width: 140px;
    }
    
    .videos-section {
        padding: 60px 20px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .video-actions {
        flex-wrap: wrap;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 250px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .title-sub {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 16px 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-description {
        font-size: 0.8125rem;
    }
    
    .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .btn-large {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }