/* Non-critical CSS - Deferred */

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    contain: strict;
}

.telegram-button-container {
    max-width: 680px !important;
    margin-top: 20px !important;
    padding: 0px 16px !important;
    text-align: center !important; 
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    will-change: transform;
    animation: float 28s infinite ease-in-out;
    contain: layout style paint;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: var(--gradient-1);
    top: 10%;
    left: -80px;
}

.shape-2 {
    width: 180px;
    height: 180px;
    background: var(--gradient-2);
    top: 60%;
    right: -40px;
    animation-delay: 7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--gradient-1);
    bottom: 10%;
    left: 15%;
    animation-delay: 14s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--gradient-2);
    top: 40%;
    right: 25%;
    animation-delay: 21s;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    33% {
        transform: translate3d(25px, -25px, 0) rotate(120deg);
    }
    66% {
        transform: translate3d(-15px, 15px, 0) rotate(240deg);
    }
}

/* Header */
.header {
    contain: layout;
}

/* Hero */
.hero {
    contain: layout;
}

.cta-button.pulse {
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(255, 107, 0, 0.5);
    }
}

.cta-button.large {
    font-size: 27px;
    padding: 18px 36px;
}

.participants-count {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stars {
    font-size: 18px;
}

.participants-count span {
    font-weight: 600;
    color: #666;
}

/* Timer Desktop */
@media (min-width: 768px) {
    .timer-box {
        padding: 24px 32px;
    }
    
    .timer {
        gap: 12px;
    }
    
    .timer-block {
        min-width: 70px;
    }
    
    .timer-value {
        font-size: 44px;
    }
    
    .timer-text {
        font-size: 12px;
    }
    
    .timer-separator {
        font-size: 38px;
    }
}

/* Benefits */
.benefits {
    contain: layout;
}

.benefit-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    contain: layout style;
}

.benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
}

@media (min-width: 768px) {
    .benefit-item {
        padding: 20px;
    }
    
    .benefit-check svg {
        width: 36px;
        height: 36px;
    }
    
    .benefit-text {
        font-size: 15px;
    }
}

/* Bonus */
.bonus {
    padding: 40px 0;
    contain: layout;
}

.bonus-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-2);
    text-align: center;
    border: 2px solid var(--accent-color);
}

.bonus-icon {
    margin-bottom: 16px;
}

.bonus-icon svg {
    color: var(--accent-color);
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.3));
}

.bonus-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.bonus-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.bonus-text strong {
    color: var(--primary-color);
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-2);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 22px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(6, 147, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.5px;
}

.telegram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(6, 147, 255, 0.4);
}

.telegram-button svg {
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .bonus-card {
        padding: 32px;
    }
    
    .bonus-title {
        font-size: 28px;
    }
    
    .bonus-text {
        font-size: 15px;
    }
    
    .telegram-button {
        font-size: 18px;
        padding: 16px 32px;
    }
}

/* Final CTA */
.final-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, #2d2d44 100%);
    color: white;
    text-align: center;
    contain: layout;
}

.cta-title {
    font-family: 'Bebas Neue', Arial, sans-serif;
    font-size: clamp(26px, 6vw, 38px);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.cta-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .final-cta {
        padding: 80px 0;
    }
    
    .cta-subtitle {
        font-size: 18px;
    }
}

/* Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}