/* ============= РОСКОШНАЯ НИЖНЯЯ НАВИГАЦИЯ С ЭФФЕКТАМИ НОВОГОДНЕЙ СКАЗКИ ============= */

/* Анимации для навигации */
@keyframes navEntry {
    0% { 
        transform: translateY(120px) scale(0.9); 
        opacity: 0; 
        filter: blur(10px);
    }
    60% { 
        transform: translateY(-15px) scale(1.05); 
        opacity: 1; 
        filter: blur(0);
    }
    100% { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
        filter: blur(0);
    }
}

/* НОВАЯ: Реалистичная анимация падающего снега с разной скоростью и задержками */
@keyframes snowFall {
    0% { 
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 0.8;
    }
    100% { 
        transform: translateY(100px) translateX(var(--snow-drift-x, 20px)) rotate(var(--snow-rotate, 360deg));
        opacity: 0;
    }
}

@keyframes snowDrift {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-8px); }
}

@keyframes snowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes snowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes snowWind {
    0% { transform: translateX(0) skewX(0deg); }
    33% { transform: translateX(15px) skewX(5deg); }
    66% { transform: translateX(-10px) skewX(-3deg); }
    100% { transform: translateX(0) skewX(0deg); }
}

@keyframes garlandTwinkle {
    0%, 100% { 
        opacity: 0.9;
        box-shadow: 
            0 0 15px rgba(169, 217, 248, 0.8),
            0 0 30px rgba(224, 255, 255, 0.6),
            0 0 45px rgba(255, 255, 255, 0.4);
    }
    50% { 
        opacity: 1;
        box-shadow: 
            0 0 20px rgba(169, 217, 248, 1),
            0 0 40px rgba(224, 255, 255, 0.8),
            0 0 60px rgba(255, 255, 255, 0.6);
    }
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
        filter: hue-rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
        filter: hue-rotate(20deg);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
        box-shadow: 
            0 0 15px rgba(224, 255, 255, 0.8),
            0 0 25px rgba(255, 255, 255, 0.6);
    }
    50% { 
        transform: scale(1.4) rotate(180deg);
        opacity: 1;
        box-shadow: 
            0 0 25px rgba(224, 255, 255, 1),
            0 0 40px rgba(255, 255, 255, 0.8);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    33% { 
        transform: translateY(-3px) rotate(5deg);
    }
    66% { 
        transform: translateY(3px) rotate(-5deg);
    }
}

@keyframes shimmer {
    0% { 
        background-position: -1000px 0;
    }
    100% { 
        background-position: 1000px 0;
    }
}

@keyframes aurora {
    0%, 100% { 
        background-position: 0% 50%;
        opacity: 0.3;
    }
    50% { 
        background-position: 100% 50%;
        opacity: 0.5;
    }
}

@keyframes snowflakeSpin {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 0.8;
    }
}

@keyframes ripple {
    0% { 
        transform: scale(0);
        opacity: 1;
    }
    100% { 
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes textGlow {
    0%, 100% { 
        text-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.9),
            0 0 8px rgba(173, 216, 230, 0.6),
            0 0 12px rgba(255, 255, 255, 0.4);
    }
    50% { 
        text-shadow: 
            0 1px 0 rgba(255, 255, 255, 1),
            0 0 12px rgba(173, 216, 230, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(169, 217, 248, 0.4);
    }
}

@keyframes particleFloat {
    0% { 
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    90% { 
        opacity: 1;
    }
    100% { 
        transform: translateY(-100px) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes gradientShift {
    0% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
    100% { 
        background-position: 0% 50%;
    }
}

@keyframes borderGlow {
    0%, 100% { 
        border-color: rgba(255, 255, 255, 0.9);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.05),
            inset 0 0 15px rgba(255, 255, 255, 0.9),
            0 0 0 rgba(169, 217, 248, 0);
    }
    50% { 
        border-color: rgba(169, 217, 248, 0.8);
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.05),
            inset 0 0 15px rgba(255, 255, 255, 0.9),
            0 0 15px rgba(169, 217, 248, 0.4);
    }
}

@keyframes iconSparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: 
            drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    25% { 
        transform: scale(1.05) rotate(5deg);
        filter: 
            drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    }
    75% { 
        transform: scale(0.95) rotate(-5deg);
        filter: 
            drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2))
            drop-shadow(0 0 5px rgba(255, 255, 255, 0.6));
    }
}

/* Общий фон навигации - ТЕМНЫЙ роскошный снежно-серебристый новогодний */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px 15px;
    
    /* ТЕМНЫЙ градиент с северным сиянием */
    background: linear-gradient(180deg, 
        rgba(20, 30, 50, 0.98) 0%, 
        rgba(25, 40, 65, 0.96) 35%,
        rgba(30, 50, 80, 0.94) 70%,
        rgba(35, 55, 85, 0.92) 100%);
    
    backdrop-filter: blur(30px) saturate(2);
    -webkit-backdrop-filter: blur(30px) saturate(2);
    
    /* Темная верхняя граница под цвет панели */
    border-top: 2px solid rgba(40, 60, 100, 0.95);
    box-shadow: 
        0 -6px 35px rgba(80, 120, 180, 0.4),
        0 -12px 30px rgba(40, 70, 120, 0.3),
        inset 0 1px 0 rgba(60, 90, 140, 0.9),
        inset 0 0 50px rgba(50, 80, 130, 0.3);
    
    z-index: 1000;
    height: 80px;
    overflow: hidden;
    animation: navEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    
    /* Скрываем горизонтальный скролл для эффектов */
    overflow-x: hidden;
}

/* УДАЛИЛ СТАРОЕ before и заменил на новые снежинки */
.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

/* Контейнер для реалистичного снега */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

/* Снежинки разного размера, скорости и направления */
.snowflake {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(0.5px);
    animation-timing-function: linear, ease-in-out, linear;
    animation-iteration-count: infinite;
}

/* Большие снежинки (медленные) */
.snowflake.large {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Средние снежинки (средняя скорость) */
.snowflake.medium {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

/* Мелкие снежинки (быстрые) */
.snowflake.small {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Очень мелкие снежинки (очень быстрые) */
.snowflake.tiny {
    width: 1px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Эффект северного сияния внизу навигации */
.bottom-nav::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, 
        transparent,
        rgba(100, 150, 220, 0.3),
        rgba(80, 130, 200, 0.2),
        transparent);
    filter: blur(5px);
    z-index: -1;
    animation: aurora 6s ease-in-out infinite;
}

/* НОВАЯ ГИРЛЯНДА ВВЕРХУ НАВИГАЦИИ с эффектом бегущих огней */
.bottom-nav .nav-garland {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #4A7AB0 15%,
        #6A9AD0 30%,
        #8AB5E0 45%,
        #6A9AD0 60%,
        #4A7AB0 75%,
        transparent 100%);
    background-size: 200% 100%;
    animation: garlandTwinkle 3s infinite alternate, shimmer 4s linear infinite;
    z-index: 1001;
}

/* Контейнер для гирлянды */
.nav-garland-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    overflow: hidden;
    z-index: 1001;
}

/* Эффект светящихся шаров на гирлянде */
.nav-garland::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    width: 6px;
    height: 6px;
    background: #6A9AD0;
    border-radius: 50%;
    box-shadow: 
        0 0 15px #8AB5E0,
        0 0 25px rgba(74, 122, 176, 0.8);
    animation: pulse 2s infinite alternate;
}

.nav-garland::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 30%;
    width: 6px;
    height: 6px;
    background: #8AB5E0;
    border-radius: 50%;
    box-shadow: 
        0 0 15px #6A9AD0,
        0 0 25px rgba(138, 181, 224, 0.8);
    animation: pulse 2s infinite alternate-reverse;
}

/* Кнопка навигации - темный улучшенный дизайн */
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #c0d6ff; /* Светлый цвет текста для темного фона */
    width: 72px;
    height: 62px;
    border-radius: 18px;
    transition: all 0.3s ease; /* Упрощенная анимация */
    position: relative;
    padding-top: 6px;
    padding-bottom: 6px;
    
    /* Темный градиентный фон */
    background: linear-gradient(145deg, 
        rgba(50, 70, 110, 0.85) 0%,
        rgba(45, 65, 105, 0.8) 50%,
        rgba(40, 60, 100, 0.75) 100%);
    
    border: 1.5px solid rgba(80, 120, 180, 0.95);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(60, 100, 160, 0.95),
        0 0 0 rgba(74, 122, 176, 0);
    
    outline: none;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

/* Эффект переливающегося света на кнопках */
.nav-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(100, 150, 220, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 1;
}

/* Анимированные снежинки на заднем фоне кнопок */
.nav-btn::after {
    content: '❄';
    position: absolute;
    font-size: 1em;
    opacity: 0.15;
    color: #8AB5E0;
    transition: all 0.5s ease;
    z-index: 0;
    animation: snowflakeSpin 20s linear infinite;
}

/* Разные снежинки для разных кнопок */
.nav-btn:nth-child(1)::after { 
    content: '❄';
    right: 8px;
    bottom: 8px;
    animation-delay: 0s;
}
.nav-btn:nth-child(2)::after { 
    content: '✨';
    left: 8px;
    top: 8px;
    animation-delay: 2s;
    font-size: 1.2em;
    color: #A9D9F8;
}
.nav-btn:nth-child(3)::after { 
    content: '❄';
    right: 10px;
    top: 10px;
    animation-delay: 4s;
    transform: rotate(45deg);
}
.nav-btn:nth-child(4)::after { 
    content: '✨';
    left: 10px;
    bottom: 10px;
    animation-delay: 6s;
    font-size: 1.2em;
    color: #A9D9F8;
}
.nav-btn:nth-child(5)::after { 
    content: '❄';
    right: 8px;
    top: 8px;
    animation-delay: 8s;
}

/* Эффект при наведении - БЕЗ ПРЫЖКОВ, только подсветка */
.nav-btn:hover:not(.active) {
    color: #ffffff;
    background: linear-gradient(145deg, 
        rgba(60, 85, 125, 0.98) 0%,
        rgba(55, 80, 120, 0.95) 50%,
        rgba(50, 75, 115, 0.9) 100%);
    border-color: rgba(100, 150, 220, 0.9);
    /* УБРАЛ transform для устранения прыжков */
    box-shadow: 
        0 8px 25px rgba(80, 130, 200, 0.5),
        0 0 25px rgba(60, 100, 160, 0.8),
        inset 0 0 30px rgba(80, 130, 200, 0.9);
}

.nav-btn:hover:not(.active)::before {
    opacity: 0.3;
    animation: shimmer 2s linear infinite;
}

.nav-btn:hover:not(.active)::after {
    opacity: 0.3;
    transform: scale(1.5);
    animation: snowflakeSpin 10s linear infinite;
}

/* Активная кнопка - центральный элемент навигации БЕЗ ПРЫЖКОВ */
.nav-btn.active {
    color: #ffffff;
    /* УБРАЛ transform: translateY(-5px) scale(1.1) для устранения прыжков */
    
    /* Темный роскошный градиент для активной кнопки */
    background: linear-gradient(145deg, 
        rgba(70, 100, 150, 1) 0%,
        rgba(65, 95, 145, 0.98) 35%,
        rgba(60, 90, 140, 0.95) 70%,
        rgba(55, 85, 135, 0.9) 100%);
    
    border-color: #4A7AB0;
    box-shadow: 
        0 0 35px rgba(80, 130, 200, 0.9),
        0 0 30px rgba(60, 100, 160, 0.95),
        inset 0 0 25px rgba(100, 150, 220, 0.9),
        0 5px 15px rgba(0, 0, 0, 0.2);
    
    z-index: 10;
    animation: gradientShift 3s ease infinite;
}

/* Сияющий эффект вокруг активной кнопки */
.nav-btn.active::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: linear-gradient(45deg, 
        rgba(74, 122, 176, 0.2),
        rgba(138, 181, 224, 0.3),
        rgba(106, 154, 208, 0.2),
        rgba(74, 122, 176, 0.2));
    border-radius: 25px;
    z-index: -1;
    animation: twinkle 3s infinite alternate;
    filter: blur(10px);
}

/* Верхняя полоса индикатора - темная новогодняя гирлянда */
.nav-btn.active::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    
    /* Темный градиент для гирлянды */
    background: linear-gradient(90deg, 
        transparent 0%,
        #8AB5E0 20%,
        #6A9AD0 40%,
        #4A7AB0 60%,
        #6A9AD0 80%,
        transparent 100%);
    
    border-radius: 4px;
    opacity: 1;
    box-shadow: 
        0 0 20px #6A9AD0,
        0 0 15px rgba(138, 181, 224, 0.9),
        0 0 30px rgba(74, 122, 176, 0.6);
    
    animation: twinkle 2s infinite alternate;
    z-index: 11;
}

/* Акцентная точка для активной кнопки (Снежинка/Блик) */
.nav-btn.active .nav-dot {
    position: absolute;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #8AB5E0;
    border-radius: 50%;
    box-shadow: 
        0 0 15px #6A9AD0,
        0 0 25px rgba(138, 181, 224, 0.9),
        0 0 40px rgba(74, 122, 176, 0.7);
    animation: pulse 1.5s infinite alternate;
    z-index: 12;
}

/* Круговой эффект вокруг точки */
.nav-btn.active .nav-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(138, 181, 224, 0.5);
    border-radius: 50%;
    animation: ripple 2s linear infinite;
}

/* Иконки с улучшенными эффектами */
.nav-icon {
    font-size: 1.7em;
    margin-bottom: 2px;
    transition: all 0.3s ease; /* Упрощенная анимация */
    
    /* Тень для лучшего отделения */
    filter: 
        drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3))
        drop-shadow(0 0 5px rgba(80, 130, 200, 0.3));
    
    z-index: 2;
    animation: iconSparkle 3s infinite;
}

/* Активная иконка - сияние новогодней звезды */
.nav-btn.active .nav-icon {
    transform: scale(1.1); /* Уменьшил масштаб для отсутствия прыжков */
    filter: 
        drop-shadow(0 0 15px rgba(80, 130, 200, 0.9))
        drop-shadow(0 0 25px rgba(106, 154, 208, 1))
        drop-shadow(0 0 35px rgba(74, 122, 176, 0.7));
    animation: float 3s ease-in-out infinite, iconSparkle 2s infinite;
}

/* Парящие частицы вокруг активной иконки */
.nav-btn.active .nav-icon::before {
    content: '✦';
    position: absolute;
    font-size: 0.6em;
    color: #8AB5E0;
    opacity: 0;
    animation: particleFloat 2s infinite;
}

.nav-btn.active .nav-icon::after {
    content: '❄';
    position: absolute;
    font-size: 0.5em;
    color: #6A9AD0;
    opacity: 0;
    animation: particleFloat 2s infinite 0.5s;
}

/* Текст под иконкой с улучшенными эффектами */
.nav-text {
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 1;
    transition: all 0.3s ease; /* Упрощенная анимация */
    color: #c0d6ff;
    margin-top: 3px;
    z-index: 2;
    text-shadow: 
        0 1px 0 rgba(0, 0, 0, 0.9),
        0 0 5px rgba(80, 130, 200, 0.3);
}

.nav-btn.active .nav-text {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 
        0 1px 0 rgba(0, 0, 0, 1),
        0 0 10px rgba(80, 130, 200, 0.6),
        0 0 15px rgba(106, 154, 208, 0.5);
    animation: textGlow 2s infinite alternate;
    /* Убрал transform для устранения прыжков */
}

/* Минимальный индикатор прогресса (ледяная сосулька) с эффектом */
.nav-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #4A7AB0 25%,
        #6A9AD0 50%,
        #4A7AB0 75%,
        transparent 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease; /* Упрощенная анимация */
    border-radius: 0 0 3px 3px;
    z-index: 3;
}

.nav-btn.active .nav-progress {
    transform: scaleX(1);
    animation: gradientShift 2s linear infinite;
    box-shadow: 
        0 0 15px #6A9AD0,
        0 0 25px rgba(74, 122, 176, 0.6);
}

/* Эффект снежных хлопьев при клике */
.nav-btn:active {
    animation: snowClick 0.3s ease;
}

@keyframes snowClick {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(0.95);
    }
}

/* Парящие частицы вокруг кнопок */
.nav-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(138, 181, 224, 0.8);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
}

/* Разные частицы для разных кнопок */
.nav-btn:nth-child(1) .nav-particle { 
    background: rgba(74, 122, 176, 0.8);
    animation: particleFloat 3s infinite 0s;
}
.nav-btn:nth-child(2) .nav-particle { 
    background: rgba(138, 181, 224, 0.8);
    animation: particleFloat 3s infinite 0.3s;
}
.nav-btn:nth-child(3) .nav-particle { 
    background: rgba(106, 154, 208, 0.9);
    animation: particleFloat 3s infinite 0.6s;
}
.nav-btn:nth-child(4) .nav-particle { 
    background: rgba(80, 130, 200, 0.8);
    animation: particleFloat 3s infinite 0.9s;
}
.nav-btn:nth-child(5) .nav-particle { 
    background: rgba(74, 122, 176, 0.8);
    animation: particleFloat 3s infinite 1.2s;
}

/* ===================== АДАПТИВНОСТЬ НАВИГАЦИИ ===================== */
@media (max-width: 768px) {
    .bottom-nav {
        height: 75px;
        padding: 10px 8px 12px;
        backdrop-filter: blur(20px) saturate(1.8);
        -webkit-backdrop-filter: blur(20px) saturate(1.8);
    }
    
    .nav-btn {
        width: 68px;
        height: 58px;
        border-radius: 16px;
    }
    
    .nav-icon {
        font-size: 1.6em;
    }
    
    .nav-text {
        font-size: 0.7em;
    }
    
    .nav-btn.active::before {
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        filter: blur(8px);
    }
    
    .nav-btn.active::after {
        top: -8px;
        width: 40px;
        height: 3px;
    }
    
    .nav-btn::after {
        font-size: 0.8em;
    }
    
    .nav-btn.active .nav-dot {
        width: 6px;
        height: 6px;
        top: 4px;
    }
    
    .nav-progress {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        padding: 8px 5px 10px;
        height: 70px;
        backdrop-filter: blur(15px) saturate(1.6);
        -webkit-backdrop-filter: blur(15px) saturate(1.6);
    }
    
    .nav-btn {
        width: 64px;
        height: 54px;
        border-radius: 14px;
    }
    
    .nav-icon {
        font-size: 1.5em;
        margin-bottom: 1px;
    }
    
    .nav-text {
        font-size: 0.65em;
    }
    
    .nav-btn.active::before {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        filter: blur(6px);
    }
    
    .nav-btn.active::after {
        top: -7px;
        width: 35px;
        height: 2px;
    }
    
    .nav-btn.active {
        /* Без прыжков на мобильных тоже */
    }
    
    .nav-btn::after {
        font-size: 0.7em;
        opacity: 0.1;
    }
    
    .nav-btn.active .nav-dot {
        width: 5px;
        height: 5px;
        top: 3px;
    }
    
    .nav-progress {
        height: 2px;
    }
    
    .nav-btn:hover:not(.active) {
        /* Без прыжков при наведении на мобильных */
    }
}

/* Эффект для мобильных устройств - уменьшение анимаций */
@media (hover: none) and (pointer: coarse) {
    .nav-btn:hover:not(.active) {
        /* Без эффектов при наведении на тач-устройствах */
    }
    
    .nav-btn.active {
        /* Без прыжков на мобильных */
    }
    
    .nav-btn::before {
        display: none;
    }
    
    .nav-btn::after {
        animation: none;
    }
    
    .nav-btn.active .nav-icon {
        animation: float 4s ease-in-out infinite;
    }
}

/* Специальные эффекты для праздничных дней */
.bottom-nav.holiday-mode::before {
    opacity: 1;
    background-image: 
        radial-gradient(3px 3px at 20px 30px, rgba(255, 255, 255, 1) 50%, transparent 50%),
        radial-gradient(2.5px 2.5px at 40px 70px, rgba(255, 200, 200, 0.9) 50%, transparent 50%),
        radial-gradient(2px 2px at 60px 20px, rgba(200, 255, 200, 0.9) 50%, transparent 50%),
        radial-gradient(3px 3px at 80px 50px, rgba(255, 255, 255, 1) 50%, transparent 50%);
    animation: fallingSnow 15s linear infinite;
}

.bottom-nav.holiday-mode .nav-garland {
    background: linear-gradient(90deg, 
        transparent 0%,
        #ff6b6b 15%,
        #4ecdc4 30%,
        #ffe66d 45%,
        #1a936f 60%,
        #ff9a76 75%,
        transparent 100%);
}

/* Отключаем анимации для пользователей, предпочитающих их отсутствие */
@media (prefers-reduced-motion: reduce) {
    .bottom-nav,
    .nav-btn,
    .nav-icon,
    .nav-text,
    .nav-btn::before,
    .nav-btn::after,
    .nav-btn.active .nav-dot,
    .bottom-nav::before,
    .nav-garland,
    .nav-btn.active .nav-icon,
    .nav-btn.active .nav-text {
        animation: none !important;
        transition: none !important;
    }
    
    .bottom-nav {
        animation: none;
        transform: translateY(0);
        opacity: 1;
    }
}

/* JavaScript для создания реалистичного снега */
.snow-generator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}