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

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}


/* ===== ВИДЕО-КОНТЕЙНЕР ===== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    background: #000;    
}

video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
   /* max-height: 100%;*/
    width: auto;
    height: auto;
    object-fit: contain; /* Изменяем с cover на contain */
    filter: brightness(1.05) saturate(1.1);
    will-change: transform;
    object-position: 65% center;
}

/* ===== МЕНЮ ВО ВСЮ ВЫСОТУ ===== */
.menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    background: linear-gradient(90deg, 
                rgba(0, 0, 0, 0.8) 0%, 
                rgba(0, 0, 0, 0.6) 80%, 
                transparent 100%);
    backdrop-filter: blur(5px);
    padding: 80px 0 40px 0;
}

/* Заголовок меню */
.menu-header {
    padding: 0 30px 30px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.menu-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.menu-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Список кнопок меню */
.menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 20px;
    overflow-y: auto; /* Если пунктов много, будет скролл */
}

/* Кнопки меню */
.menu-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Эффект подсветки при наведении */
.menu-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
    color: white;
    transform: translateX(5px);
}

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

/* Активная кнопка */
.menu-button.active {
    border-left-color: #fff;
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Иконки */
.menu-icon {
    font-size: 24px;
    width: 30px;
    text-align: center;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.menu-text {
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Бейдж (опционально) */
.menu-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* Футер меню */
.menu-footer {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-align: center;
}

/* ===== ПРАВЫЙ НИЖНИЙ УГОЛ ===== */
.overlay {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 25px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .menu {
        width: 100%;
        height: auto;
        bottom: 0;
        top: auto;
        background: linear-gradient(0deg, 
                    rgba(0, 0, 0, 0.9) 0%, 
                    rgba(0, 0, 0, 0.7) 100%);
        padding: 20px 0;
    }

    .menu-header {
        display: none;
    }

    .menu-items {
        flex-direction: row;
        padding: 0 10px;
        overflow-x: auto;
    }

    .menu-button {
        flex-direction: column;
        padding: 15px;
        min-width: 100px;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .menu-button:hover {
        transform: translateY(-5px);
        border-bottom-color: #fff;
    }

    .menu-footer {
        display: none;
    }

    .overlay {
        bottom: 120px;
        right: 20px;
    }
}

/* ===== СТРАНИЦЫ ОПИСАНИЯ ===== */
.page-container {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    max-width: 90vw;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    color: white;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-container.visible {
    opacity: 1;
    visibility: visible;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, #a8b1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.page-features {
    list-style: none;
    margin-bottom: 30px;
}

.page-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.page-features i {
    color: #667eea;
    width: 20px;
}

.page-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.page-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-button:hover i {
    transform: translateX(5px);
}

.close-page {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-page:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .page-container {
        left: 20px;
        right: 20px;
        width: auto;
        top: auto;
        bottom: 120px;
        transform: none;
    }
}