* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Анимированные частицы */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
    animation: twinkle 3s ease-in-out infinite, pulse 4s ease-in-out infinite;
    will-change: transform, opacity, box-shadow;
    transform: translate3d(0, 0, 0); /* Аппаратное ускорение */
    backface-visibility: hidden; /* Оптимизация для анимации */
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3; 
    }
    50% { 
        opacity: 1; 
    }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
    }
    50% { 
        box-shadow: 0 0 15px rgba(0, 212, 255, 1), 0 0 25px rgba(0, 212, 255, 0.5);
    }
}

/* Плавающие элементы */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00d4ff, #ff6b6b);
    border-radius: 50%;
    animation: floatElement 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatElement {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0; 
    }
    25% { 
        transform: translateY(-50px) translateX(20px) rotate(90deg); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-100px) translateX(-20px) rotate(180deg); 
        opacity: 1; 
    }
    75% { 
        transform: translateY(-50px) translateX(20px) rotate(270deg); 
        opacity: 0.7; 
    }
}

/* Основной контейнер */
.main-container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Переключатель языков */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.lang-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
}

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 1rem;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    font-weight: 300;
    margin-bottom: 0;
}

/* Навигация */
.navigation {
    width: 100%;
    max-width: 500px;
}

.menu-block {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.7rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.menu-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    text-decoration: none;
    color: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0.5rem;
}

.menu-link:last-child {
    margin-bottom: 0;
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

.menu-item-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.menu-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-icon .icon {
    width: 32px;
    height: 32px;
}

.menu-link:hover .menu-icon {
    transform: scale(1.1);
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    transition: color 0.3s ease;
}

.menu-description {
    font-size: 0.85rem;
    color: #a0a0a0;
    font-weight: 300;
    transition: color 0.3s ease;
}

.menu-link:hover .menu-title {
    color: #00d4ff;
}

.menu-link:hover .menu-description {
    color: #ffffff;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #a0a0a0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.menu-link:hover .arrow {
    color: #00d4ff;
    opacity: 1;
    transform: translateX(5px);
}

/* Футер */
.footer {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #666;
    font-size: 0.85rem;
    font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .menu-block {
        padding: 1.2rem;
    }
    
    .menu-link {
        padding: 1rem;
    }
    
    .menu-item-content {
        gap: 1rem;
    }
    
    .menu-icon {
        width: 28px;
        height: 28px;
    }
    
    .menu-icon .icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .menu-link {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .menu-item-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .arrow {
        display: none;
    }
    
    .footer {
        justify-content: center;
        text-align: center;
    }
    
    .footer .language-switcher {
        order: -1;
        margin-bottom: 0.5rem;
    }
}

