/* ========== Переменные ========== */
:root{
    --bg:#0f0f10;
    --panel:#151516;
    --accent:#e43b3f;
    --accent-2:#0f54ff;
    --accent-3:#ff6b6b;
    --muted:#bdbdbd;
    --glass: rgba(255,255,255,0.04);
    --radius:20px;
    --max-width:1200px;
    --header-height: 80px;
}

*{box-sizing:border-box; margin:0; padding:0}
html{scroll-behavior:smooth}
body{
    background: linear-gradient(180deg,#09090a 0%, #0f0f10 100%);
    color:#fff;
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    overflow-x:hidden;
    line-height:1.6;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

/* ========== Частицы фона ========== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ========== Навигация ========== */
nav{
    position:fixed;
    left:0; right:0;
    top:0;
    z-index:1000;
    padding:20px 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display:flex;
    align-items:center;
    justify-content:space-between;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 15, 16, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

nav.scrolled{
    padding:12px 40px;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner{
    width:100%;
    max-width:var(--max-width);
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.brand{
    display:flex;
    gap:14px;
    align-items:center;
    position: relative;
}

.logo{
    width:50px; height:50px;
    background:linear-gradient(135deg,var(--accent),var(--accent-2));
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-family: 'Oswald', sans-serif;
    letter-spacing:1px;
    box-shadow: 0 8px 32px rgba(228, 59, 63, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.logo:hover::before {
    left: 100%;
}

.logo:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 12px 40px rgba(228, 59, 63, 0.4);
}

.brand-text{
    font-family: 'Oswald', sans-serif;
    font-size:20px;
    letter-spacing:1.5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-links{
    list-style:none;
    display:flex;
    gap:40px;
    align-items:center;
    margin:0;
    padding:0;
}

.nav-link{
    color:rgba(255,255,255,.85);
    font-weight:500;
    text-transform:uppercase;
    font-size:14px;
    letter-spacing: 0.5px;
    padding:8px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.4s ease;
}

.nav-link:hover::before { 
    width: 100%; 
}

.nav-link:hover::after {
    opacity: 0.3;
    transform: scaleX(1);
}

.nav-link:hover{ 
    color:var(--accent); 
    transform: translateY(-2px);
}

.cta-button{
    background: linear-gradient(90deg,var(--accent), var(--accent-3));
    padding:12px 28px;
    border-radius:14px;
    font-weight:600;
    font-size:14px;
    letter-spacing:0.5px;
    box-shadow: 0 8px 32px rgba(228,59,63,0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    color: white;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before { 
    left: 100%; 
}

.cta-button:hover{ 
    transform:translateY(-3px) scale(1.05); 
    box-shadow: 0 15px 40px rgba(228,59,63,0.35);
}

/* Бургер меню */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.burger:hover {
    background: rgba(255,255,255,0.1);
}

.burger span {
    width: 25px;
    height: 2.5px;
    background: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 3px;
    transform-origin: center;
}

.burger.active {
    background: rgba(255,255,255,0.1);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--accent);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--accent);
}

/* ========== Hero секция ========== */
.hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    padding-top: var(--header-height);
}

/* Анимированный фон */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg::before, .hero-bg::after{
    content:'';
    position:absolute;
    width: 60vw;
    height: 60vw;
    border-radius:50%;
    filter: blur(120px);
    opacity:0.7;
    animation: float 20s infinite linear;
}

.hero-bg::before{
    left:-10%;
    top:-10%;
    background: radial-gradient(circle at 20% 20%, rgba(228,59,63,0.8), rgba(228,59,63,0.1) 40%, transparent 70%);
    mix-blend-mode: screen;
    animation-delay: 0s;
}

.hero-bg::after{
    right:-10%;
    bottom:-10%;
    background: radial-gradient(circle at 80% 80%, rgba(15,84,255,0.7), rgba(15,84,255,0.1) 40%, transparent 70%);
    mix-blend-mode: screen;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 20px) rotate(90deg);
    }
    50% {
        transform: translate(0, 40px) rotate(180deg);
    }
    75% {
        transform: translate(-20px, 20px) rotate(270deg);
    }
}

/* Текстурный оверлей */
.hero-overlay{
    position:absolute; 
    inset:0; 
    background: 
        radial-gradient(circle at 20% 80%, rgba(228,59,63,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15,84,255,0.05) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index:2;
}

.hero-content{
    position: relative;
    z-index: 10;
    width:100%;
    max-width:var(--max-width);
    margin:0 auto;
    display:grid;
    grid-template-columns: 1fr 500px;
    gap:60px;
    align-items:center;
    padding:60px 40px;
}

.hero-text{
    color:#fff;
}

.kicker{
    display:inline-flex;
    align-items:center;
    background:rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius:100px;
    padding:10px 20px;
    font-weight:600;
    font-size:14px;
    color:var(--muted);
    margin-bottom:24px;
    letter-spacing:1px;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.kicker::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-title{
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height:1;
    margin:16px 0 24px 0;
    text-transform:uppercase;
    letter-spacing:2px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: linear-gradient(90deg, #fff 0%, var(--accent-2) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 8s infinite linear;
    position: relative;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-description{
    max-width:600px;
    font-size:18px;
    color:rgba(255,255,255,0.85);
    margin-bottom:32px;
    line-height:1.7;
}

.hero-actions{
    display:flex;
    gap:20px;
    align-items:center;
    flex-wrap: wrap;
}

.btn{
    display:inline-flex;
    align-items:center;
    gap:12px;
    padding:16px 32px;
    border-radius:14px;
    font-weight:600;
    font-size:16px;
    border: none;
    cursor:pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary{
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color:#fff;
    box-shadow: 0 10px 30px rgba(15,84,255,0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before { 
    left: 100%; 
}

.btn-primary:hover{ 
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15,84,255,0.4);
}

.btn-secondary{
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color:#fff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(228,59,63,0.2);
}

.play-icon{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.btn-secondary:hover .play-icon{
    background: rgba(228,59,63,0.2);
    border-color: var(--accent);
    transform: scale(1.1);
}

.play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 2px;
}

/* Hero изображение */
.hero-visual{
    position:relative;
    width:100%;
    height:600px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
}

.hero-image{
    width:100%;
    height:100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-10px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.6);
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(228,59,63,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(15,84,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.character{
    width: 80%;
    height: 90%;
    background: 
        radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%),
        url('resources/logo.png');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

/* ========== Секции ========== */
section{
    padding:100px 20px;
    width:100%;
    position: relative;
    z-index: 10;
}

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

.section-title{
    font-family:'Oswald', sans-serif;
    font-size:clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom:20px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    background: linear-gradient(90deg, #fff, var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
}

.section-description{
    color:rgba(255,255,255,0.75);
    max-width:700px;
    margin:0 auto;
    line-height:1.7;
    font-size:18px;
}

/* Карточки */
.cards-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap:30px;
    margin-top:40px;
}

.card{
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border-radius:20px;
    padding:40px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow:hidden;
    position:relative;
    border:1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(228,59,63,0.05) 0%, rgba(15,84,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover::before { 
    opacity: 1; 
}

.card:hover::after {
    opacity: 0.3;
}

.card:hover{ 
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.1);
}

.card-icon{
    width:80px;
    height:80px;
    border-radius:16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    font-weight:700;
    margin-bottom:24px;
    color:var(--accent);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover .card-icon{ 
    transform:scale(1.1) rotate(5deg); 
    color:var(--accent-2);
    background: linear-gradient(135deg, rgba(228,59,63,0.1) 0%, rgba(15,84,255,0.1) 100%);
}

.card-title{ 
    margin:0 0 16px 0; 
    font-size:24px; 
    font-family: 'Oswald', sans-serif; 
    position: relative; 
    z-index: 2;
    letter-spacing: 0.5px;
}

.card-description{ 
    margin:0; 
    color:rgba(255,255,255,0.75); 
    position: relative; 
    z-index: 2;
    line-height: 1.6;
}

/* Секция загрузки */
.download-section{
    background: linear-gradient(135deg, rgba(15,15,16,0.8) 0%, rgba(10,10,11,0.9) 100%);
    border-radius: 30px;
    padding: 60px;
    margin-top: 40px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(228,59,63,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

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

.download-content{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:60px;
    align-items:center;
    position: relative;
    z-index: 2;
}

.download-text h3{
    font-size:clamp(2rem, 3vw, 2.5rem);
    margin-bottom:20px;
    font-family:'Oswald';
    background: linear-gradient(90deg, #fff, var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-text p{
    margin-bottom:30px;
    color:rgba(255,255,255,0.8);
    font-size:18px;
    line-height:1.7;
}

.download-visual{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.launcher-preview{
    width:100%;
    max-width:400px;
    height:300px;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    border-radius:20px;
    border:1px solid rgba(255,255,255,0.08);
    display:flex;
    align-items:center;
    justify-content:center;
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
}

.launcher-preview:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) translateY(-10px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.6);
}

.launcher-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(228,59,63,0.1) 0%, rgba(15,84,255,0.1) 100%);
    z-index: 1;
}

.download-actions{
    display:flex;
    gap:16px;
    align-items:center;
    flex-wrap: wrap;
}

/* Футер */
footer{
    background: linear-gradient(180deg, rgba(10,10,11,0.9) 0%, #080808 100%);
    padding:60px 20px 30px;
    border-top:1px solid rgba(255,255,255,0.05);
    color:rgba(255,255,255,0.7);
    position: relative;
    z-index: 10;
}

.footer-content{
    max-width:var(--max-width);
    margin:0 auto;
    text-align:center;
}

.social-links{
    display:flex;
    gap:24px;
    justify-content:center;
    margin-bottom:30px;
}

.social-link{
    width:50px;
    height:50px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    color: rgba(255,255,255,0.7);
}

.social-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-text{
    color:rgba(255,255,255,0.5);
    font-size:14px;
}

/* Кнопка скролла вверх */
.scroll-top{
    position:fixed;
    right:30px;
    bottom:30px;
    z-index:1000;
    width:50px;
    height:50px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg, var(--accent), var(--accent-2));
    border:none;
    cursor:pointer;
    box-shadow: 0 10px 30px rgba(15,84,255,0.3);
    transform: translateY(100px);
    opacity:0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: white;
}

.scroll-top.visible{
    transform: translateY(0);
    opacity:1;
}

.scroll-top:hover{
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(15,84,255,0.4);
}

/* Анимации появления */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll{
    opacity:0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated{
    opacity:1;
    transform: translateY(0);
}

/* ========== Адаптивность ========== */
@media (max-width: 1100px){
    .hero-content{
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual{
        height: 400px;
        order: -1;
    }
    
    .download-content{
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .download-visual{
        order: -1;
    }
}

@media (max-width: 768px){
    nav{
        padding: 15px 20px;
    }
    
    nav.scrolled{
        padding: 10px 20px;
    }
    
    .nav-links{
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10,10,11,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 100;
        border-left: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links.active{
        right: 0;
    }
    
    .burger{
        display: flex;
    }
    
    .hero-content{
        padding: 40px 20px;
    }
    
    .hero-actions{
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cards-grid{
        grid-template-columns: 1fr;
    }
    
    .download-section{
        padding: 40px 20px;
        border-radius: 20px;
    }
    
    .download-actions{
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header{
        margin-bottom: 40px;
    }
    
    section{
        padding: 60px 20px;
    }
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 30, 32, 0.95) 0%, rgba(20, 20, 21, 0.98) 100%);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-modal {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(90deg);
}

.video-container {
    padding: 0;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 соотношение */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 20px 20px;
    outline: none;
}