/* ==================== ВСПЛЫВАЮЩЕЕ ОКНО СКИДОК ==================== */

.popup {
    position: fixed;
    z-index: 500;
    animation: popupIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

@keyframes popupIn {
    0% { opacity: 0; transform: translateY(-30px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.popup--hidden {
    display: none;
}

.popup__inner {
    background: linear-gradient(145deg, rgba(30, 15, 50, 0.97), rgba(20, 10, 35, 0.98));
    border: 2px solid rgba(255, 107, 107, 0.5);
    border-radius: var(--radius-lg);
    padding: 20px 16px 16px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(255, 71, 87, 0.3), 0 0 80px rgba(255, 71, 87, 0.1);
    position: relative;
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: auto;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 71, 87, 0.3), 0 0 60px rgba(255, 71, 87, 0.1); }
    50% { box-shadow: 0 0 50px rgba(255, 71, 87, 0.5), 0 0 100px rgba(255, 71, 87, 0.2); }
}

.popup__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.popup__close:hover {
    color: #fff;
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow: 0 0 12px rgba(255, 71, 87, 0.4);
}

.popup__icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.popup__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup__subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 12px;
}

.popup__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.timer-block {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-block__value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffd93d;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.timer-block__label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-separator {
    font-size: 1.4rem;
    font-weight: 800;
    color: rgba(255, 107, 107, 0.6);
    margin-top: -10px;
}

/* ПК: правый верхний угол */
@media (min-width: 769px) {
    .popup {
        top: 80px;
        right: 20px;
        width: 480px;
    }
    
    .popup__inner {
        padding: 32px 28px 28px;
    }
    
    .popup__title {
        font-size: 1.3rem;
    }
    
    .popup__subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .popup__icon {
        font-size: 3rem;
    }
    
    .timer-block {
        min-width: 72px;
        padding: 12px 14px;
        border-radius: 14px;
    }
    
    .timer-block__value {
        font-size: 2rem;
    }
    
    .timer-block__label {
        font-size: 0.75rem;
    }
    
    .timer-separator {
        font-size: 2rem;
    }
    
    .popup__close {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        top: 12px;
        right: 14px;
    }
}

/* Телефон: снизу */
@media (max-width: 768px) {
    .popup {
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .popup__inner {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 14px 16px 12px;
    }
    
    .popup__title {
        font-size: 0.9rem;
    }
    
    .popup__subtitle {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }
    
    .popup__icon {
        font-size: 1.6rem;
    }
    
    .timer-block {
        min-width: 44px;
        padding: 6px 8px;
    }
    
    .timer-block__value {
        font-size: 1.2rem;
    }
}