@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@500;700&display=swap');

/* Основные стили */
body {
    margin: 0;
    background: linear-gradient(to bottom, #b30000 0%, #7a0000 100%);
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    text-shadow: 0 0 25px rgba(255,255,255,0.9);
}

h2 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #ffcccc;
}

/* Счетчик */
.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.time-box {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(8px);
    min-width: 100px;
    text-align: center;
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
}

.label {
    font-size: 0.9rem;
    color: #ffdf80;
}

/* Частицы и снег */
#tsparticles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#custom-snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    user-select: none;
    z-index: 2;
    pointer-events: none;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.snowflake-rotate {
    animation-name: snowflakeRotate;
}

.snowflake-pulse {
    animation-name: snowflakePulse;
}

.snowflake-twinkle {
    animation-name: snowflakeTwinkle;
}

@keyframes snowflakeRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

@keyframes snowflakePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.2); }
}

@keyframes snowflakeTwinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Лесной фон */
.scene {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35vh;
    background: #fff;
    clip-path: polygon(0 70%, 10% 60%, 20% 70%, 30% 55%, 40% 70%, 50% 58%, 60% 70%, 70% 60%, 80% 70%, 90% 55%, 100% 70%, 100% 100%, 0 100%);
    z-index: 4;
    overflow: hidden;
}

.forest-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: transparent url('../images/trees_pattern_01.png') repeat-x center bottom;
    background-size: contain;
    z-index: 6;
}

/* Кнопка */
.cta-button {
    position: relative;
    width: 300px;
    height: 71px;
    border: none;
    background: transparent url('../images/cta_button_normal.png') no-repeat center center;
    color: white;
    font-weight: bold;
    font-size: 22px;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s;
    z-index: 20;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.cta-button:hover {
    background: transparent url('../images/cta_button_mouse_down.png') no-repeat center center;
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
}

@keyframes buttonGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
    }
}

.cta-button.visible {
    animation: buttonGlow 3s ease-in-out infinite;
}

/* Контент */
.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: rgba(139, 0, 0, 0.95);
    margin: 10% auto;
    padding: 3rem 2rem 2rem;
    border: 1px solid rgba(255, 223, 128, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #ffdf80;
    font-size: 28px;
    font-weight: normal;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 1;
}

.fact-header {
    border-bottom: 1px solid rgba(255, 223, 128, 0.3);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.fact-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffdf80;
    margin: 0;
    letter-spacing: 0.5px;
}

.fact-content {
    font-size: 1.1rem;
    text-align: left;
    padding: 0 1rem;
}

.fact-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 223, 128, 0.2);
    padding-top: 1rem;
}

/* Фейерверки */
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
    opacity: 0.9;
    background: transparent !important;
}

/* Эффект мерцания для частиц */
@keyframes particlePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Анимации снежинок */
@keyframes snowflake-rotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

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

@keyframes snowflake-twinkle {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8em !important;
    }
}

/* Медиа запросы */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .time-box {
        min-width: 80px;
        padding: 0.8rem 1rem;
    }
    
    .number {
        font-size: 2rem;
    }
    
    .cta-button {
        width: 250px;
        height: 60px;
        font-size: 18px;
    }
    
    #fireworks-canvas {
        mix-blend-mode: plus-lighter;
    }
    
    .snowflake {
        font-size: 0.8em !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .time-box {
        min-width: 70px;
        padding: 0.6rem 0.8rem;
    }
    
    .number {
        font-size: 1.8rem;
    }
    
    .snowflake {
        font-size: 0.6em !important;
    }
}