/* ==========================================================================
   1. ОБНУЛЕНИЕ СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background-color: #08080a; color: #f3f4f6; font-family: 'Inter', sans-serif; overflow-x: hidden; position: relative; min-height: 100vh; }
body.theater-active { overflow: hidden; }

/* ==========================================================================
   2. АБСТРАКТНАЯ ФОНОВАЯ АНИМАЦИЯ (Живой цифровой холст)
   ========================================================================== */
.bg-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 45%); }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(160px); opacity: 0.4; mix-blend-mode: screen; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #3b82f6 0%, rgba(0,0,0,0) 70%); top: -10%; right: -5%; animation: floating-orb-1 20s infinite alternate ease-in-out; }
.orb-2 { width: 700px; height: 700px; background: radial-gradient(circle, #6366f1 0%, rgba(0,0,0,0) 70%); bottom: -15%; left: -10%; animation: floating-orb-2 25s infinite alternate linear; }
@keyframes floating-orb-1 { 0% { transform: translate(0, 0) scale(1) rotate(0deg); } 50% { transform: translate(-80px, 100px) scale(1.1) rotate(90deg); } 100% { transform: translate(-40px, -50px) scale(0.9) rotate(180deg); } }
@keyframes floating-orb-2 { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(100px, -120px) scale(0.85); } 100% { transform: translate(-50px, 30px) scale(1.05); } }

/* ==========================================================================
   3. НАВИГАЦИЯ (ИСПРАВЛЕН Z-INDEX)
   ========================================================================== */
/* Z-INDEX ФИКС: подняли шапку до 100, чтобы hero её не перекрывал */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 30px 5%; position: absolute; width: 100%; top: 0; z-index: 100; }
.logo-container { position: relative; display: inline-block; padding-bottom: 25px; margin-bottom: -25px; }
.logo { font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; cursor: pointer; color: #f3f4f6; display: block; transition: all 0.4s ease; }
.logo-container:hover .logo { background: linear-gradient(90deg, #6366f1, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 20px rgba(99, 102, 241, 0.35); }

/* ==========================================================================
   НЕОНОВАЯ СТРЕЛКА-УКАЗАТЕЛЬ
   ========================================================================== */
.neon-arrow {
    position: absolute;
    top: 40px;
    left: 10px; /* shift left to point at C */
    width: 80px;
    height: 120px;
    pointer-events: none;
    filter: blur(1px) drop-shadow(0 0 8px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
    z-index: 5;
}

.arrow-body {
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
}

.arrow-head {
    opacity: 0;
    transform-origin: 100px 140px; /* Center of the bounce is the tip */
    transform: scale(0);
}

/* Hover states */
.logo-container:hover .arrow-body {
    animation: drawArrow 0.4s ease-out forwards;
}

.logo-container:hover .arrow-head {
    animation: bounceArrowHead 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.35s forwards;
}

.logo-container:hover .neon-arrow {
    animation: neonArrowPulse 2s infinite ease-in-out 0.8s forwards;
}

@keyframes drawArrow {
    to { stroke-dashoffset: 0; }
}

@keyframes bounceArrowHead {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes neonArrowPulse {
    0%, 100% { filter: blur(1px) drop-shadow(0 0 8px rgba(59, 130, 246, 0.8)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)); }
    50% { filter: blur(1px) drop-shadow(0 0 12px rgba(59, 130, 246, 1)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.8)); }
}

/* ==========================================================================
   4. ГЛАВНЫЙ ЭКРАН (HERO) И СТЕК ИНСТРУМЕНТОВ
   ========================================================================== */
.hero { min-height: 80vh; display: flex; align-items: center; padding: 0 5%; padding-top: 60px; position: relative; z-index: 20; }
.hero-content { max-width: 800px; margin-top: 20px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1px; }
.accent { background: linear-gradient(90deg, #6366f1, #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.hero-content p { font-size: 1.2rem; color: #9ca3af; line-height: 1.6; font-weight: 300; }

/* Кнопка CTA на главном экране */
.hero-cta-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 16px 42px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45), 0 0 15px rgba(99, 102, 241, 0.2);
}

.hero-cta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.hero-stack { margin-top: 40px; position: relative; z-index: 30; }
.stack-title { font-size: 0.95rem; color: #6b7280; margin-bottom: 15px; font-weight: 400; letter-spacing: 0.5px; }
.stack-icons-row { display: flex; gap: 15px; align-items: center; }
.stack-item { position: relative; transition: z-index 0.3s step-start; }
.stack-item:hover { z-index: 100; transition: z-index 0s; }

/* Иконки программ */
.adobe-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.1); transition: transform 0.2s ease, border-color 0.3s, box-shadow 0.3s; }
.adobe-icon.pr { background: #09090e; border: 1.5px solid rgba(59, 130, 246, 0.3); color: #3b82f6; }
.adobe-icon.ae { background: #09090e; border: 1.5px solid rgba(168, 85, 247, 0.3); color: #a855f7; }
.adobe-icon.ps { background: #09090e; border: 1.5px solid rgba(49, 168, 255, 0.3); color: #31a8ff; }
.adobe-icon.ai { background: #09090e; border: 1.5px solid rgba(255, 154, 0, 0.3); color: #ff9a00; }

.stack-item:hover .adobe-icon { transform: scale(1.05); }
.stack-item:hover .adobe-icon.pr { border-color: #3b82f6; box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.05); }
.stack-item:hover .adobe-icon.ae { border-color: #a855f7; box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.05); }
.stack-item:hover .adobe-icon.ps { border-color: #31a8ff; box-shadow: 0 0 15px rgba(49, 168, 255, 0.4); background: rgba(49, 168, 255, 0.05); }
.stack-item:hover .adobe-icon.ai { border-color: #ff9a00; box-shadow: 0 0 15px rgba(255, 154, 0, 0.4); background: rgba(255, 154, 0, 0.05); }

/* --- 📝 ВСПЛЫВАЮЩИЕ ОКНА (TOOLTIPS) --- */
.floating-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    left: 0; 
    width: 320px;
    background: rgba(10, 10, 14, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(99, 102, 241, 0.05);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.floating-tooltip::before {
    content: ''; position: absolute; bottom: 100%; left: 0; width: 100%; height: 20px;
}

.stack-item:hover .floating-tooltip {
    opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0);
}

.floating-tooltip h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.stack-item:nth-child(1) h4 { color: #3b82f6; }
.stack-item:nth-child(2) h4 { color: #a855f7; }
.stack-item:nth-child(3) h4 { color: #31a8ff; }
.stack-item:nth-child(4) h4 { color: #ff9a00; }
.floating-tooltip p { font-size: 0.85rem; color: #9ca3af; line-height: 1.5; font-weight: 300; margin-bottom: 16px; }

/* ==========================================================================
   5. АНИМАЦИИ ВНУТРИ ОКОШЕК (PR, AE, PS, AI)
   ========================================================================== */
.soft-anim-viewport { width: 100%; height: 80px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255, 255, 255, 0.03); border-radius: 8px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 10px; gap: 8px; }

/* Playhead (Pr & Ae) */
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #ef4444; left: 0; animation: simplePlayhead 3s infinite linear; z-index: 10; }
.playhead::before { content: ''; position: absolute; top: 0; left: -4px; width: 10px; height: 8px; background: #ef4444; border-radius: 1px; }
@keyframes simplePlayhead { 0% { left: 0%; } 100% { left: 100%; } }

/* Premiere Pro */
.pr-simple { gap: 6px; }
.pr-track { width: 100%; height: 16px; background: rgba(255,255,255,0.02); border-radius: 3px; position: relative; }
.pr-clip { position: absolute; height: 100%; background: #3b82f6; border-radius: 2px; border: 1px solid rgba(255,255,255,0.1); }
.pr-clip.audio { background: #10b981; }

/* After Effects */
.ae-simple { padding: 0; gap: 0; justify-content: space-between; }
.ae-viewer { flex: 1; position: relative; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ae-object { position: absolute; top: 15px; left: 20%; width: 18px; height: 18px; background: #a855f7; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); animation: simpleAeMove 3s infinite ease-in-out; }
.ae-timeline { height: 26px; position: relative; background: rgba(255,255,255,0.01); width: 100%; }
.ae-kf { position: absolute; top: 9px; width: 8px; height: 8px; background: #fbbf24; transform: rotate(45deg); border: 1px solid #000; margin-left: -4px; }
@keyframes simpleAeMove { 0%, 20% { left: 20%; transform: scale(1) rotate(0deg); border-radius: 4px; } 80%, 100% { left: calc(80% - 18px); transform: scale(1.3) rotate(90deg); border-radius: 50%; } }

/* Photoshop */
.ps-simple { padding: 0; flex-direction: row; align-items: center; justify-content: center; gap: 15px; }
.ps-workspace { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; gap: 18px; }
.ps-layers { display: flex; flex-direction: column; gap: 6px; width: 24px; }
.ps-layer-line { height: 6px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.ps-layer-line.active { background: #31a8ff; animation: psLayerPulse 3s infinite ease-in-out; }
.ps-canvas { position: relative; width: 80px; height: 50px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.ps-photo { position: absolute; inset: 6px; background: rgba(49, 168, 255, 0.1); border-radius: 2px; border: 1px solid rgba(49, 168, 255, 0.2); }
.ps-selection { position: absolute; border: 1px dashed #31a8ff; background: rgba(49, 168, 255, 0.25); animation: psSelectAnim 3s infinite ease-in-out; }

@keyframes psSelectAnim { 0%, 15% { top: 12px; left: 12px; width: 0px; height: 0px; opacity: 0; } 20% { opacity: 1; top: 12px; left: 12px; width: 0px; height: 0px; } 45%, 80% { top: 12px; left: 12px; width: 40px; height: 26px; opacity: 1; } 85%, 100% { opacity: 0; top: 12px; left: 12px; width: 40px; height: 26px; } }
@keyframes psLayerPulse { 0%, 40% { box-shadow: none; opacity: 0.5; } 50%, 80% { box-shadow: 0 0 8px rgba(49, 168, 255, 0.6); opacity: 1; } 90%, 100% { box-shadow: none; opacity: 0.5; } }

/* Illustrator */
.ai-simple { padding: 0; align-items: center; justify-content: center; }
.ai-workspace { position: relative; width: 100px; height: 50px; margin-top: 15px; }
.ai-svg { width: 100%; height: 100%; overflow: visible; }
.ai-path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: aiDrawPath 3s infinite ease-in-out; }
.ai-anchor { position: absolute; width: 6px; height: 6px; background: #fff; border: 1.5px solid #ff9a00; border-radius: 50%; opacity: 0; animation: aiShowAnchor 3s infinite ease-in-out; margin: -3px; }
.ai-anchor.a1 { top: 40px; left: 10px; }
.ai-anchor.a2 { top: -2px; left: 50px; }
.ai-anchor.a3 { top: 40px; left: 90px; }

@keyframes aiDrawPath { 0%, 10% { stroke-dashoffset: 120; } 45%, 80% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: -120; opacity: 0; } }
@keyframes aiShowAnchor { 0%, 30% { opacity: 0; transform: scale(0.5); } 45%, 80% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(255, 154, 0, 0.6); } 85%, 100% { opacity: 0; transform: scale(0.5); } }

/* ==========================================================================
   6. ПЛАВНЫЕ ТАБЫ И КАСКАДНАЯ АНИМАЦИЯ КАРТОЧЕК
   ========================================================================== */
.portfolio-container { padding: 60px 5%; position: relative; z-index: 10; }
.tabs-nav { display: flex; gap: 25px; margin-bottom: 50px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); padding-bottom: 12px; }
.tab-btn { background: none; border: none; color: #4b5563; font-size: 1.1rem; font-weight: 600; cursor: pointer; padding: 10px 5px; position: relative; transition: color 0.3s ease, transform 0.2s ease; }
.tab-btn:hover { color: #9ca3af; transform: translateY(-1px); }
.tab-btn::after { content: ''; position: absolute; bottom: -13px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #6366f1, #3b82f6); transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.tab-btn.active { color: #f3f4f6; }
.tab-btn.active::after { transform: scaleX(1); transform-origin: left; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel.active .card { opacity: 0; transform: translateY(40px); animation: smoothCardReveal 0.7s cubic-bezier(0.215, 0.610, 0.355, 1) forwards; }
.tab-panel.active .card:nth-child(1) { animation-delay: 0.06s; }
.tab-panel.active .card:nth-child(2) { animation-delay: 0.16s; }
.tab-panel.active .card:nth-child(3) { animation-delay: 0.26s; }
.tab-panel.active .card:nth-child(4) { animation-delay: 0.36s; }
@keyframes smoothCardReveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   7. СЕТКИ И КАРТОЧКИ КЕЙСОВ
   ========================================================================== */
.grid { display: grid; gap: 35px; }
.horizontal-grid { grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); }
.vertical-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 20px; padding: 18px; cursor: pointer; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease; }
.card:hover { transform: translateY(-8px) scale(1.01); border-color: rgba(99, 102, 241, 0.3); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.05); }
.video-wrapper { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.reels-card .video-wrapper { aspect-ratio: 9/16; }
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.3px; transition: color 0.3s ease; }
.card:hover h3 { color: #6366f1; }

/* ==========================================================================
   8. ИНТЕРФЕЙС КАСТОМНОГО ПЛЕЕРА И КНОПКИ
   ========================================================================== */
.player-controls { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); display: flex; align-items: center; gap: 15px; padding: 15px; box-sizing: border-box; opacity: 0; transform: translateY(5px); transition: opacity 0.3s ease, transform 0.3s ease; }
.custom-player:hover .player-controls { opacity: 1 !important; transform: translateY(0) !important; }
.play-btn, .theater-toggle-btn { background: none; border: none; cursor: pointer; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: #f3f4f6; transition: color 0.2s ease, transform 0.2s ease; }
.play-btn svg { fill: currentColor; width: 100%; height: 100%; }
.theater-toggle-btn svg { width: 100%; height: 100%; }
.play-btn:hover, .theater-toggle-btn:hover { color: #6366f1; transform: scale(1.1); }
.hidden { display: none !important; }
.progress-bar { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; cursor: pointer; position: relative; transition: height 0.2s ease; }
.progress-bar:hover { height: 6px; }
.progress-filled { height: 100%; width: 0%; background: linear-gradient(90deg, #6366f1, #3b82f6); border-radius: 2px; position: absolute; left: 0; top: 0; }
.time-display { font-size: 0.75rem; font-family: monospace; color: #9ca3af; min-width: 65px; text-align: right; user-select: none; }
.volume-container { display: flex; align-items: center; gap: 6px; position: relative; }
.volume-btn { background: none; border: none; cursor: pointer; padding: 2px; display: flex; align-items: center; justify-content: center; color: #f3f4f6; transition: color 0.2s ease, transform 0.2s ease; }
.volume-btn svg { width: 18px; height: 18px; fill: currentColor; }
.volume-btn:hover { color: #6366f1; transform: scale(1.1); }
.volume-slider { -webkit-appearance: none; appearance: none; width: 0; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; outline: none; cursor: pointer; opacity: 0; visibility: hidden; transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s; }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #6366f1; box-shadow: 0 0 8px rgba(99, 102, 241, 0.5); }
.volume-slider::-moz-range-thumb { width: 10px; height: 10px; border: none; border-radius: 50%; background: #6366f1; }
.volume-container:hover .volume-slider { width: 60px; opacity: 1; visibility: visible; }

/* ==========================================================================
   9. ГЛОБАЛЬНЫЙ РЕЖИМ КИНОТЕАТРА
   ========================================================================== */
.theater-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(5, 5, 8, 0.96); backdrop-filter: blur(14px); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; }
.theater-overlay.active { opacity: 1; visibility: visible; }
.theater-overlay #theater-close { display: flex !important; position: fixed !important; top: 30px !important; right: 30px !important; background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.15) !important; backdrop-filter: blur(10px) !important; color: #f3f4f6 !important; width: 44px !important; height: 44px !important; border-radius: 50% !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; z-index: 1000000 !important; opacity: 1; pointer-events: all; transform: scale(1); transition: all 0.2s ease !important; }
.theater-overlay #theater-close:hover { background: #ef4444 !important; border-color: #ef4444 !important; color: #fff !important; transform: scale(1.05) !important; }
.theater-overlay #theater-close svg { width: 16px; height: 16px; stroke: currentColor; }
.theater-container { position: relative; width: 80vw; max-width: 1050px; background: #0d0d11; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; padding: 20px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95), 0 0 50px rgba(99, 102, 241, 0.25); display: flex; align-items: center; justify-content: center; }
.theater-container .custom-player { aspect-ratio: 16/9 !important; width: 100% !important; height: auto !important; margin-bottom: 0 !important; }
.theater-overlay.is-reels .theater-container { width: auto !important; height: 90vh !important; aspect-ratio: 9/16 !important; padding: 0 !important; border-radius: 16px; overflow: hidden; }
.theater-overlay.is-reels .custom-player { height: 100% !important; width: 100% !important; aspect-ratio: 9/16 !important; border-radius: 0 !important; }
.theater-overlay .player-controls { opacity: 1 !important; transform: translateY(0) !important; background: linear-gradient(transparent, rgba(0, 0, 0, 0.95)) !important; }
.theater-overlay .theater-toggle-btn { color: #6366f1 !important; }

/* ==========================================================================
   10. МОУШЕН-ЗАГЛУШКА ДЛЯ REELS (RENDER PLACEHOLDER)
   ========================================================================== */
.render-placeholder { cursor: default !important; opacity: 0.65; transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.render-placeholder:hover { opacity: 1; transform: translateY(-4px) scale(1.01) !important; }
.render-overlay { width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(30, 30, 40, 0.6) 0%, rgba(10, 10, 15, 0.9) 100%); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; position: relative; border: 1px dashed rgba(99, 102, 241, 0.2); border-radius: 12px; box-sizing: border-box; }
.render-status { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
.status-tag { font-size: 0.75rem; font-family: monospace; color: #6366f1; background: rgba(99, 102, 241, 0.1); padding: 4px 10px; border-radius: 6px; letter-spacing: 1px; }
.spinner { width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, 0.05); border-top-color: #3b82f6; border-radius: 50%; animation: spin 1s infinite linear; margin: 5px 0; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.status-title { font-size: 1rem; font-weight: 600; color: #f3f4f6; letter-spacing: 0.5px; }
.status-subtitle { font-size: 0.85rem; color: #6b7280; font-weight: 300; }
.render-progress-bar { width: 80%; height: 3px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; position: relative; }
.render-progress-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #6366f1, #3b82f6); position: absolute; left: -100%; animation: render-loading 2.5s infinite linear; }
@keyframes render-loading { 0% { left: -100%; } 50% { left: 0; } 100% { left: 100%; } }
.render-placeholder:hover h3 { color: #3b82f6 !important; }

/* ==========================================================================
   11. СЕКЦИЯ КОНТАКТОВ
   ========================================================================== */
.contacts { padding: 120px 5%; text-align: center; background: linear-gradient(180deg, rgba(8,8,10,0) 0%, rgba(17,17,21,0.4) 100%); }
.contacts h2 { font-size: 2.5rem; margin-bottom: 15px; letter-spacing: -0.5px; }
.contacts p { color: #9ca3af; margin-bottom: 40px; font-size: 1.1rem; font-weight: 300; }
.social-links { display: flex; justify-content: center; gap: 20px; }
.social-btn { text-decoration: none; padding: 16px 38px; border-radius: 14px; font-weight: 600; font-size: 1rem; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: relative; top: 0; }
.social-btn.tg { background: #6366f1; color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2); }
.social-btn.tg:hover { top: -4px; background: #5a5dd8; box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4), 0 0 15px rgba(99, 102, 241, 0.2); }
.social-btn.mail { background: rgba(255, 255, 255, 0.03); color: #f3f4f6; border: 1px solid rgba(255, 255, 255, 0.08); }
.social-btn.mail:hover { top: -4px; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }
.social-btn:active { top: -1px; }

/* Анимации появления */
.fade-in { opacity: 0; transform: translateY(25px); animation: fadeInAnimation 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1); }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeInAnimation { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   12. СЕКЦИЯ С ТАРИФАМИ И УСЛОВИЯМИ
   ========================================================================== */
.pricing-container, .faq-container { padding: 80px 5% 40px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 1rem; color: #9ca3af; text-align: center; margin-bottom: 50px; font-weight: 300; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.price-card { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 35px 30px; display: flex; flex-direction: column; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease; }
.price-card.featured { background: linear-gradient(145deg, rgba(99, 102, 241, 0.03) 0%, rgba(59, 130, 246, 0.01) 100%); border-color: rgba(99, 102, 241, 0.25); box-shadow: 0 15px 40px rgba(99, 102, 241, 0.03); transform: translateY(-5px); }
.price-card:hover { transform: translateY(-10px); border-color: rgba(99, 102, 241, 0.35); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.06); }
.price-badge { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; color: #9ca3af; }
.price-card.featured .price-badge { color: #6366f1; }
.price-value { font-size: 2.3rem; font-weight: 700; margin-bottom: 20px !important; letter-spacing: -1px; }
.price-value span { font-size: 1rem; color: #6b7280; font-weight: 400; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 35px; flex: 1; }
.price-features li { font-size: 0.95rem; color: #9ca3af; position: relative; padding-left: 24px; font-weight: 300; }
.price-features li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 5px; height: 5px; background: #3b82f6; border-radius: 50%; }
.price-card.featured .price-features li::before { background: #6366f1; }
.price-btn { display: block; text-align: center; text-decoration: none; color: #f3f4f6; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); padding: 14px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; transition: all 0.3s ease; }
.price-card:hover .price-btn { background: #f3f4f6; color: #08080a; border-color: #f3f4f6; }
.price-card.featured .price-btn { background: #6366f1; border-color: #6366f1; }
.price-card.featured:hover .price-btn { background: #5a5dd8; border-color: #5a5dd8; color: #fff; box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2); }

.price-rub { font-size: 1.1rem; font-weight: 600; color: #9ca3af; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); padding: 6px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; margin-top: -15px; margin-bottom: 25px; width: fit-content; box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.01); transition: all 0.3s ease; }
.price-card.featured .price-rub { border-color: rgba(99, 102, 241, 0.15); background: rgba(99, 102, 241, 0.02); color: #f3f4f6; }
.live-dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; animation: livePulse 2s infinite ease-in-out; }
@keyframes livePulse { 0% { opacity: 0.4; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 12px #10b981, 0 0 4px #10b981; } 100% { opacity: 0.4; transform: scale(0.9); } }

/* ==========================================================================
   13. СТИЛИ ДЛЯ FAQ АККОРДЕОНА
   ========================================================================== */
.faq-accordion { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { border: 1px solid rgba(255, 255, 255, 0.04); background: rgba(255, 255, 255, 0.005); border-radius: 14px; overflow: hidden; transition: border-color 0.3s ease, background 0.3s ease; }
.faq-item:hover { border-color: rgba(99, 102, 241, 0.15); background: rgba(255, 255, 255, 0.01); }
.faq-question { width: 100%; background: none; border: none; padding: 22px 28px; text-align: left; color: #f3f4f6; font-size: 1.05rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-icon { width: 18px; height: 18px; color: #6b7280; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s; flex-shrink: 0; }
.faq-item:hover .faq-icon { color: #6366f1; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-answer p { padding: 0 28px 24px; color: #9ca3af; font-size: 0.95rem; line-height: 1.6; font-weight: 300; }
.faq-item.open { border-color: rgba(99, 102, 241, 0.25); background: rgba(99, 102, 241, 0.01); }
.faq-item.open .faq-icon { transform: rotate(180deg); color: #6366f1; }

/* ==========================================================================
   14. АДАПТИВНОСТЬ (МЕДИАЗАПРОСЫ)
   ========================================================================== */
@media (max-width: 768px) {
    .hero { padding-top: 100px; }
    .hero-content h1 { font-size: 2.3rem; }
    
    .floating-tooltip {
        position: fixed;
        top: auto; bottom: 20px; left: 5%; right: 5%; width: 90%;
        z-index: 99999;
        transform: translateY(20px);
    }

    .horizontal-grid { grid-template-columns: 1fr; }
    .vertical-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .tabs-nav { overflow-x: auto; white-space: nowrap; gap: 15px; padding-bottom: 5px; }
    .social-links { flex-direction: column; align-items: center; }
    .social-btn { width: 100%; max-width: 280px; text-align: center; }
    .theater-container { width: 95vw !important; padding: 12px !important; }
}