* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background: #000;
}

/* Лоадер */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 1px;
}

.loader-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Фоновое видео с блюром */
#blur-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: 1;
}

/* Основное видео по центру */
#scroll-video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.logo-container {
    position: fixed;
    top: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container.left {
    left: calc(10% + 20px);
}

.logo-container.right {
    right: calc(10% + 20px);
}

.logo {
    height: 40px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.vision-logo {
    height: 53px;
    opacity: 0.9;
}

.logo-container a {
    text-decoration: none;
    display: block;
}

.logo:hover {
    opacity: 0.8;
}

.text-section {
    position: fixed;
    top: 50%;
    left: 10%;
    right: 10%;
    transform: translateY(calc(-50% + 10px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: calc(50% + 25%);
    color: white;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 80%;
    min-height: 120px;
    padding: 40px 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.text-section.active {
    opacity: 1;
}

.text-section h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.text-section h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.text-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.main-text {
    font-size: 2.4rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.5;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
}

.hero-text {
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    margin: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.4);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.3s;
}

.delay-2 {
    transition-delay: 0.6s;
}

.spacer {
    height: 100vh;
    position: relative;
    z-index: 0;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    #scroll-video {
        width: 95%;
    }
    
    #blur-video {
        display: none; /* Скрываем блюр видео на мобилках для экономии трафика */
    }
    
    .video-container {
        background: #1a1a1a; /* Фоновый цвет вместо блюр видео */
    }
    
    .logo-container.left {
        left: calc(2.5% + 15px);
        top: 20px;
        padding: 8px 12px;
    }
    
    .logo-container.right {
        right: calc(2.5% + 15px);
        top: 20px;
        padding: 8px 12px;
    }
    
    .logo {
        height: 32px;
    }
    
    .vision-logo {
        height: 42px;
    }
    
    .text-section {
        left: 2.5%;
        right: 2.5%;
        width: 95%;
        min-height: 80px;
        padding: 25px 30px;
    }
    
    .loader-text {
        font-size: 1rem;
    }
    
    .loader-progress {
        width: 250px;
    }
    
    .text-section h1 {
        font-size: 2.5rem;
    }
    
    .text-section h2 {
        font-size: 2rem;
    }
    
    .text-section p {
        font-size: 1.2rem;
    }
    
    .main-text {
        font-size: 1.6rem;
        line-height: 1.6;
        letter-spacing: 0.3px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
        margin-top: 1rem;
    }
}

/* Прогресс бар (опционально) */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    z-index: 6;
    transition: width 0.1s ease;
}