/* Hero v8 Animation Styles */

/* Initial fade — do NOT use Bootstrap .opacity-0 (it uses !important and blocks the animation end state) */
.hero-v8-fade--1,
.hero-v8-fade--2,
.hero-v8-fade--3,
.hero-v8-fade--4,
.hero-v8-fade--5 {
    opacity: 0;
}

.hero-v8-fade--1.animate-fade-in-up { animation-delay: 0.2s; }
.hero-v8-fade--2.animate-fade-in-up { animation-delay: 0.4s; }
.hero-v8-fade--3.animate-fade-in-up { animation-delay: 0.6s; }
.hero-v8-fade--4.animate-fade-in-up { animation-delay: 0.8s; }
.hero-v8-fade--5.animate-fade-in-up { animation-delay: 1s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(10px);
    }
}

.animate-wave {
    animation: wave 3s ease-in-out infinite;
}

.hero-v8-decor-top {
    position: absolute;
    top: -5rem;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-v8-dot--1 { animation-delay: 0s; top: 5rem; left: 4rem; }
.hero-v8-dot--2 { animation-delay: 1s; top: 8rem; right: 5rem; }
.hero-v8-dot--3 { animation-delay: 2s; bottom: 6rem; left: 5rem; }
.hero-v8-dot--4 { animation-delay: 3s; bottom: 8rem; right: 4rem; }
.hero-v8-dot--5 { animation-delay: 4s; top: 50%; left: 25%; }
.hero-v8-dot--6 { animation-delay: 5s; top: 33%; right: 33%; }

.hero-v8-blob--delayed { animation-delay: 2s; }

.hero-v8-glow--top { top: 5rem; left: 5rem; }
.hero-v8-glow--bottom { bottom: 5rem; right: 5rem; }

/* Description max width when Bootstrap omits max-w-2xl */
.hero-v8-desc-max {
    max-width: 42rem;
}

.hero-testimonial-overlay__wave-line {
    height: var(--wave-h);
    animation-delay: var(--wave-d);
}

/* -- Button hover states -- */
.hero-btn-primary {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.hero-btn-primary:hover,
.hero-btn-primary:focus {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.hero-btn-outline-secondary {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-secondary:hover,
.hero-btn-outline-secondary:focus {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
    transform: translateY(-1px);
}

.hero-btn-outline-primary-light {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.hero-btn-outline-primary-light:hover,
.hero-btn-outline-primary-light:focus {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
}
/* FAQ v6 — JS hooks */
.guides-solver-content-tucked {
    display: none;
}

.guides-solver-symbol-reveal {
    transform: rotate(180deg);
}

/* Cluster positions */
.guides-solver__cluster-a { top: 4rem; left: 4rem; }
.guides-solver__cluster-b { bottom: 5rem; right: 5rem; }

/* Standalone dot positions and sizes */
.guides-solver__dot-a { top: 33%; left: 3rem; width: 0.5rem; height: 0.5rem; }
.guides-solver__dot-b { top: 66%; right: 4rem; width: 0.75rem; height: 0.75rem; }
.guides-solver__dot-c { top: 25%; right: 33%; width: 0.5rem; height: 0.5rem; }

/* Inner cluster child positions */
.guides-solver__accent--inner-a { top: 1rem; left: 1.5rem; width: 0.75rem; height: 0.75rem; }
.guides-solver__accent--inner-b { top: 2rem; left: 3rem; width: 0.5rem; height: 0.5rem; }
.guides-solver__accent--inner-c { top: -0.5rem; left: 2rem; width: 1rem; height: 1rem; }

/* Decorative lines */
.guides-solver__line-a { top: 0.25rem; left: 0.25rem; width: 1.5rem; height: 0.125rem; transform: rotate(45deg); }
.guides-solver__line-b { top: 1.25rem; left: 1.75rem; width: 2rem; height: 0.125rem; transform: rotate(12deg); }
.guides-solver__line-c { top: -0.75rem; left: -0.5rem; width: 2.5rem; height: 0.125rem; transform: rotate(-12deg); }
.guides-solver__line-d-pos { top: -0.25rem; left: 1rem; width: 1.5rem; height: 0.125rem; transform: rotate(45deg); }

/* Animation delays */
.guides-solver__accent--delay-1 { animation-delay: 0.3s; }
.guides-solver__accent--delay-2 { animation-delay: 0.5s; }
.guides-solver__accent--delay-4 { animation-delay: 1s; }
.guides-solver__accent--delay-5 { animation-delay: 1.3s; }
.guides-solver__accent--delay-6 { animation-delay: 1.6s; }
.guides-solver__accent--delay-7 { animation-delay: 1.8s; }

@keyframes guides-solver-accent-blink-seq {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.guides-solver__accent--blink {
    animation: guides-solver-accent-blink-seq 2s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes guides-solver-accent-ripple-seq {
    75%, 100% { transform: scale(2); opacity: 0; }
}
.guides-solver__accent--ripple {
    animation: guides-solver-accent-ripple-seq 1s cubic-bezier(0,0,.2,1) infinite;
}

.guides-solver__accent--offset { top: -1.5rem; left: -1rem; }

.guides-solver__handle--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.guides-solver__symbol--glow:hover { transform: scale(1.1); transition: transform .2s ease; }


.lift-signup__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.lift-signup__inner {
    max-width: 56rem;
}

@keyframes lift-signup-spark-beat-cycle {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.lift-signup__spark--beat {
    animation: lift-signup-spark-beat-cycle 2s cubic-bezier(.4,0,.6,1) infinite;
}

.lift-signup__action--lift:hover { transform: scale(1.05); transition: transform .2s ease; }

.lift-signup__button--lift:hover { transform: scale(1.05); transition: transform .2s ease; }

.lift-signup__story--lift:hover { transform: scale(1.05); transition: transform .2s ease; }

/* Bootstrap only (.w-100 on grid) — не перебивать TW display:grid */
.lift-signup__feature-grid-bs.w-100 {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.lift-signup__feature-grid-bs.w-100 > .lift-signup__story--lift {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .lift-signup__feature-grid-bs.w-100:not(.lift-signup__feature-grid-bs--cols-1) > .lift-signup__story--lift {
        flex: 1 1 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
        min-width: min(100%, 11rem);
    }
}

@media (min-width: 992px) {
    .lift-signup__feature-grid-bs.w-100.lift-signup__feature-grid-bs--cols-3 > .lift-signup__story--lift {
        flex: 1 1 calc((100% - 3rem) / 3);
        max-width: calc((100% - 3rem) / 3);
    }
}

