/* ═══════════════════════════════════════════
   CHISTOPITANIE.RU — ANIMATIONS
═══════════════════════════════════════════ */

/* --- KEYFRAMES --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes slideInFromBottom {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes drawLine {
    from { width: 0; }
    to { width: 60px; }
}

/* --- ANIMATION CLASSES (initial state) --- */
.anim-fade-up,
.anim-fade-left,
.anim-fade-right,
.anim-scale-in {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.anim-fade-up {
    transform: translateY(30px);
}

.anim-fade-left {
    transform: translateX(40px);
}

.anim-fade-right {
    transform: translateX(-40px);
}

.anim-scale-in {
    transform: scale(0.8);
}

/* --- TRIGGERED STATE --- */
.anim-fade-up.is-visible,
.anim-fade-left.is-visible,
.anim-fade-right.is-visible,
.anim-scale-in.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* --- SPECIAL: Section title underline animation --- */
.section__title::after {
    animation: none;
    width: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.section__title.is-visible::after {
    width: 60px;
}

/* --- SPECIAL: Product card hover glow --- */
.product-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, #D4A843, #6B3FA0, #D4A843);
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover::after {
    opacity: 0.15;
    animation: shimmer 2s ease infinite;
}

/* --- SPECIAL: Steps connector line (desktop) — УБРАНО --- */

/* --- SPECIAL: Hero floating elements --- */
.hero__photo-wrapper::before {
    animation: float 4s ease-in-out infinite;
}

.hero__photo-wrapper::after {
    animation: float 5s ease-in-out infinite 1s;
}

/* --- SPECIAL: Button ripple on click --- */
.btn:active {
    transform: scale(0.97);
}

/* --- SPECIAL: Gold shimmer on hover --- */
.link--gold:hover {
    background: linear-gradient(90deg, #D4A843, #C9A84C, #D4A843);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 1.5s ease infinite;
}

/* --- PREFERS REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .anim-fade-up,
    .anim-fade-left,
    .anim-fade-right,
    .anim-scale-in {
        opacity: 1;
        transform: none;
    }
}