/* Новогоднее оформление - падающий снег */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    user-select: none;
    pointer-events: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--drift)) rotate(360deg);
        opacity: 0.3;
    }
}

/* Разные размеры снежинок */
.snowflake-small {
    font-size: 0.8em;
    animation-duration: 8s;
    animation-delay: 0s;
}

.snowflake-medium {
    font-size: 1em;
    animation-duration: 10s;
    animation-delay: 0s;
}

.snowflake-large {
    font-size: 1.5em;
    animation-duration: 12s;
    animation-delay: 0s;
}

/* Новогоднее оформление для логотипа */
.b-bg {
    position: relative;
    overflow: visible;
}

.logo-snow-container {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.logo-snowflake {
    position: absolute;
    color: #fff;
    font-size: 0.6em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9), 0 0 6px rgba(255, 255, 255, 0.6);
    user-select: none;
    pointer-events: none;
    animation: logoSnowfall linear infinite;
    opacity: 0.9;
}

@keyframes logoSnowfall {
    0% {
        transform: translateY(-30px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(60px) translateX(var(--logo-drift)) rotate(360deg);
        opacity: 0;
    }
}

.logo-snowflake-small {
    font-size: 0.5em;
    animation-duration: 3s;
}

.logo-snowflake-medium {
    font-size: 0.6em;
    animation-duration: 4s;
}

.logo-snowflake-large {
    font-size: 0.8em;
    animation-duration: 5s;
}

/* Эффект свечения вокруг логотипа */
.b-bg::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: logoGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Сугроб под логотипом */
.logo-snowdrift {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 12px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.logo-snowdrift::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.85) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    animation: snowdriftGlow 4s ease-in-out infinite;
}

.logo-snowdrift::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 8px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.5) 100%);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    animation: snowdriftWave 6s ease-in-out infinite;
}

@keyframes snowdriftGlow {
    0%, 100% {
        opacity: 0.9;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.05);
    }
}

@keyframes snowdriftWave {
    0%, 100% {
        transform: translateX(0) scaleX(1);
    }
    50% {
        transform: translateX(5px) scaleX(1.1);
    }
}

/* Дополнительные декоративные элементы сугроба */
.logo-snowdrift-particles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.logo-snowdrift-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.6);
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-3px) scale(1.2);
        opacity: 1;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .logo-snow-container {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
    
    .logo-snowflake {
        font-size: 0.5em;
    }
    
    .logo-snowflake-small {
        font-size: 0.4em;
    }
    
    .logo-snowflake-medium {
        font-size: 0.5em;
    }
    
    .logo-snowflake-large {
        font-size: 0.6em;
    }
    
    .logo-snowdrift {
        bottom: -6px;
        height: 10px;
        width: 110%;
    }
    
    .logo-snowdrift::before {
        height: 100%;
    }
    
    .logo-snowdrift::after {
        height: 6px;
    }
}

