/* ============================================
   Анимации — dom-pod-kluych.ru V1 Классика
   ============================================ */

/* ─── Scroll Animations ─── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger */
.animate-on-scroll[data-delay="1"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="2"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="3"] {
    transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="4"] {
    transition-delay: 0.4s;
}

.animate-on-scroll[data-delay="5"] {
    transition-delay: 0.5s;
}

/* Fade In Left */
.animate-fade-left {
    opacity: 0;
    transform: translateX(-40);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.animate-fade-right {
    opacity: 0;
    transform: translateX(2.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Hero Animations */
.hero__title {
    opacity: 0;
    transform: translateY(1.25rem);
    animation: heroFadeIn 0.8s ease 0.3s forwards;
}

.hero__subtitle {
    opacity: 0;
    transform: translateY(1.25rem);
    animation: heroFadeIn 0.8s ease 0.5s forwards;
}

.hero__actions {
    opacity: 0;
    transform: translateY(1.25rem);
    animation: heroFadeIn 0.8s ease 0.7s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Counter Animation — handled by JS */
.count-up {
    display: inline-block;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .animate-on-scroll,
    .animate-fade-left,
    .animate-fade-right,
    .animate-scale {
        opacity: 1;
        transform: none;
    }
}