:root {
    --primary: #c41e3a; /* Фирменный красный */
    --primary-hover: #a01830;
    --primary-light: #ff3355; /* Светло-красный для блика */
    --dark: #1a1a1a;
    --text: #fff;
    --white: #fff;
    --overlay: rgba(10,10,20,0.85);
    
    /* Ширина сайта 1300px */
    --section-width: 1300px; 
}

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

/* === ГЛОБАЛЬНЫЙ ФОН И ТЕЛО === */
html, body {
    height: 100%; margin: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text); 
    background: #000; 
    overflow-x: hidden;
}

body {
    background: url('https://showbackstage.ru/assets/abstract.jpg') center center / cover fixed;
    /* Движение фона слева направо, очень медленно (140s) */
    animation: bgMove 140s linear infinite;
}

@keyframes bgMove {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

/* === АНИМАЦИЯ РАМОК (БЛЕСК/ПУЛЬСАЦИЯ) === */
@keyframes borderPulse {
    0% {
        border-color: var(--primary);
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    }
    50% {
        border-color: var(--primary-light);
        box-shadow: 0 10px 50px rgba(196, 30, 58, 0.4);
    }
    100% {
        border-color: var(--primary);
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    }
}

/* === АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ (REVEAL) === */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === ОБЩИЕ КОНТЕЙНЕРЫ === */
.container { 
    max-width: var(--section-width); 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Подложка-стекло для контента */
.content-overlay {
    background: var(--overlay);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem; 
    border-radius: 16px; 
    margin: 2rem auto;
    max-width: var(--section-width); 
    
    border: 2px solid var(--primary); 
    animation: borderPulse 4s infinite ease-in-out;
    
    position: relative; 
    z-index: 1;
}

/* === HEADER (ШАПКА) === */
header {
    background: rgba(10,10,20,0.95); 
    padding: 1rem 0; 
    position: sticky; top: 0; z-index: 1000;
    backdrop-filter: blur(10px); 
    border-bottom: 2px solid var(--primary);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo img { height: 60px; filter: drop-shadow(0 0 10px rgba(196,30,58,0.6)); transition: transform 0.3s; }
.logo img:hover { transform: scale(1.05); }

nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { color: var(--white); font-weight: 600; font-size: 1.1rem; text-decoration: none; transition: .3s; text-transform: uppercase; }
nav a:hover { color: var(--primary); text-shadow: 0 0 10px rgba(196,30,58,0.5); }

.lang-switch { display: flex; gap: .5rem; }
.lang-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--white);
    padding: .3rem .8rem; border-radius: 4px; font-size: .9rem; font-weight: bold;
    cursor: pointer; transition: .3s; text-decoration: none; display: inline-block;
}
.lang-btn.active, .lang-btn:hover { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(196,30,58,0.4); }

/* === SLIDESHOW (СЛАЙДЕР) === */
.slideshow {
    position: relative; 
    height: 75vh; 
    min-height: 600px;
    overflow: hidden; 
    border-radius: 16px; 
    margin-bottom: 0;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    /* Рамка только у самого слайдера, не у текста */
    border: 1px solid #333; 
}
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; 
    transition: opacity 1s ease, transform 6s ease;
    transform: scale(1.05);
}
.slide.active { 
    opacity: 1; z-index: 1; 
    transform: scale(1);
}
.slide::before {
    content: ''; position: absolute; inset: 0; 
    /* Легкое затемнение всей картинки для контраста */
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* === ПОДЛОЖКА ПОД ТЕКСТ (ИЗМЕНЕНО) === */
.slide-content { 
    position: relative; z-index: 2; text-align: center; color: var(--white); 
    
    /* Прозрачность увеличена (0.4), рамки убраны */
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(8px); /* Легкое размытие, чтобы текст читался */
    -webkit-backdrop-filter: blur(8px);
    
    padding: 3rem 4rem; 
    border-radius: 20px;
    max-width: 900px; width: 90%;
    
    /* Убрана рамка */
    border: none;
    /* Убрана пульсация рамки, осталась только статичная мягкая тень */
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    
    opacity: 0; transform: translateY(30px);
    transition: 0.8s ease 0.3s;
}
.slide.active .slide-content { opacity: 1; transform: translateY(0); }

.slide h2 { 
    font-size: 3.2rem; margin-bottom: 2rem; line-height: 1.2; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.9); font-weight: 800; letter-spacing: 1px;
}
.slide .primary { color: var(--primary); text-shadow: 0 0 25px rgba(196, 30, 58, 0.8); }
.slide .white { color: #fff; }

.btn {
    display: inline-block; background: var(--primary); color: var(--white);
    padding: 1.2rem 3rem; border-radius: 50px; font-weight: 700; text-decoration: none;
    margin: .5rem; transition: .3s; box-shadow: 0 6px 20px rgba(196,30,58,.5);
    font-size: 1.2rem; min-width: 200px; text-align: center; text-transform: uppercase;
}
.btn:hover { background: var(--primary-hover); transform: translateY(-4px); box-shadow: 0 12px 35px rgba(196,30,58,.7); }

/* === ГЛАВНОЕ ВИДЕО (HERO) === */
.hero-video-wrapper {
    max-width: var(--section-width);
    margin: 3rem auto 1rem auto;
    padding: 0 15px;
    position: relative; z-index: 10;
}
.hero-video {
    width: 100%; aspect-ratio: 16/9;
    position: relative; 
    background: #000;
    border: 2px solid var(--primary);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    
    /* Анимация пульсации */
    animation: borderPulse 4s infinite ease-in-out;
}
.hero-video:hover {
    transform: translateY(-5px);
    animation: none; 
    border-color: var(--primary-light);
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.4);
}

/* === ЭЛЕМЕНТЫ ВИДЕО === */
.media-cover {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-video:hover .media-cover, .split-media:hover .media-cover { transform: scale(1.03); }

.play-btn {
    width: 80px; height: 80px;
    background: rgba(196, 30, 58, 0.85);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.7);
    transition: 0.3s;
    animation: pulse-btn 2s infinite;
}
.play-btn::before {
    content: ''; position: absolute;
    top: 50%; left: 55%; transform: translate(-50%, -50%);
    border-style: solid; border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
}
.hero-video:hover .play-btn, .split-media:hover .play-btn {
    background: #fff; transform: scale(1.1); animation: none;
}
.hero-video:hover .play-btn::before, .split-media:hover .play-btn::before {
    border-color: transparent transparent transparent var(--primary);
}
@keyframes pulse-btn {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(196, 30, 58, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}

/* === ИКОНКИ ПРОГРАММ === */
.uk-panel-box-secondary {
    background: rgba(20,20,30,.95); 
    padding: 3rem 1rem; text-align: center;
    backdrop-filter: blur(10px); 
    border-radius: 16px; margin: 2rem auto;
    max-width: var(--section-width); 
    position: relative; z-index: 10;
    
    border: 2px solid var(--primary);
    animation: borderPulse 4.5s infinite ease-in-out; 
}
.aligncenter img { 
    display: inline-block; margin: 10px 20px; vertical-align: middle; 
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
    transition: transform 0.3s;
}
.aligncenter img:hover { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(196,30,58,0.5)); }

/* === СЕТКА ВОЗМОЖНОСТЕЙ === */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem; margin-top: 3rem;
}
.feature-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(196,30,58,0.3);
    padding: 2rem; border-radius: 12px; transition: .3s;
}
.feature-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary); 
    background: rgba(196,30,58,0.1); 
    box-shadow: 0 0 20px rgba(196,30,58,0.4); 
}
.feature-card h3 { color: var(--primary); margin-bottom: 0.8rem; font-size: 1.4rem; }
.feature-card p { color: #ccc; line-height: 1.6; font-size: 1rem; }

/* === SPLIT SECTIONS (ШАХМАТНЫЙ ПОРЯДОК) === */
.split-section {
    display: flex; align-items: center; justify-content: space-between;
    gap: 4rem; margin: 6rem 0;
}
.split-media {
    flex: 1.3;
    aspect-ratio: 16/9;
    position: relative; 
    background: #000;
    
    border: 2px solid var(--primary);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    
    /* Анимация пульсации */
    animation: borderPulse 4s infinite ease-in-out;
}
.split-media:hover {
    animation: none;
    border-color: var(--primary-light);
    box-shadow: 0 15px 50px rgba(196,30,58,0.4);
}

.split-text { flex: 0.7; }
.split-text h3 {
    font-size: 2.2rem; color: var(--primary); margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.split-text p { font-size: 1.15rem; line-height: 1.7; color: #ddd; margin-bottom: 1rem; }

.split-section.reverse { flex-direction: row-reverse; }

/* === TEXT CONTENT === */
.content h2 { 
    font-size: 2.5rem; margin-bottom: 2rem; text-align: center; 
    text-shadow: 0 2px 8px rgba(0,0,0,0.5); letter-spacing: 1px;
}

/* === БЕГУЩАЯ СТРОКА (DOWNLOAD) === */
.download-section {
    position: relative; background: #000; overflow: hidden; padding: 7rem 0;
    color: #fff; text-align: center; 
    
    border: 2px solid var(--primary);
    border-radius: 16px; max-width: var(--section-width); margin: 3rem auto;
    
    animation: borderPulse 6s infinite ease-in-out;
}
.bg-moving {
    position: absolute; top: 0; left: 0; width: 200%; height: 100%;
    background: url('https://showbackstage.ru/media/1.jpg') repeat-x; background-size: auto 100%;
    animation: scrollImage 40s linear infinite; opacity: 0.6; z-index: 1;
}
@keyframes scrollImage { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.download-container {
    position: relative; z-index: 10; 
    background: rgba(15,15,25,.95); padding: 3rem;
    border-radius: 20px; max-width: 600px; margin: 0 auto; 
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary); 
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.download-btn {
    display: inline-block; background: var(--primary); color: white; font-weight: 800;
    font-size: 1.6rem; padding: 1.5rem 4rem; border-radius: 50px; text-transform: uppercase;
    text-decoration: none; letter-spacing: 2px; box-shadow: 0 10px 30px rgba(196,30,58,.6);
    transition: all .3s ease; position: relative; overflow: hidden; margin-top: 1.5rem;
}
.download-btn:hover { background: var(--primary-hover); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(196,30,58,.8); }

/* === FOOTER === */
footer {
    background: rgba(10,10,20,0.95); color: #ccc; text-align: center; padding: 2.5rem 0;
    font-size: 0.95rem; backdrop-filter: blur(10px); 
    border-top: 2px solid var(--primary); margin-top: 4rem;
}
footer a { color: var(--primary); text-decoration: none; }

/* === АДАПТИВНОСТЬ === */
@media(max-width: 1350px) { :root { --section-width: 100%; } .container { padding: 0 20px; } }

@media(max-width: 900px) {
    .header-inner { flex-direction: column; text-align: center; gap: 1rem; }
    nav ul { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .slide h2 { font-size: 2rem; }
    .hero-video-wrapper { padding: 0 10px; margin-top: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .split-section, .split-section.reverse { flex-direction: column; gap: 2rem; }
    .split-media { width: 100%; order: 1; }
    .split-text { text-align: center; order: 2; }
    .aligncenter img { width: 80px; height: auto; margin: 10px; }
}