/* Hero v5 Animation Styles */

@keyframes hero-v5-particle-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-40px) scale(1.2);
        opacity: 0.7;
    }
}

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

.particle {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: hero-v5-particle-float 6s ease-in-out infinite;
}

.hero-v5-particle--1 { animation-delay: 0s; top: 20%; left: 10%; }
.hero-v5-particle--2 { animation-delay: 1s; top: 40%; left: 30%; }
.hero-v5-particle--3 { animation-delay: 2s; top: 60%; left: 50%; }
.hero-v5-particle--4 { animation-delay: 3s; top: 30%; left: 70%; }
.hero-v5-particle--5 { animation-delay: 4s; top: 50%; left: 90%; }
.hero-v5-particle--6 { animation-delay: 5s; top: 70%; left: 20%; }

.animate-fade-in-up {
    animation: hero-v5-fade-in-up 0.8s ease-out both;
}

.hero-v5-fade--1 { animation-delay: 0.2s; }
.hero-v5-fade--2 { animation-delay: 0.4s; }
.hero-v5-fade--3 { animation-delay: 0.6s; }
.hero-v5-fade--4 { animation-delay: 1s; }
.hero-v5-fade--5 { animation-delay: 1.2s; }

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

.hero-v5-bounce--1 { animation-delay: 0.5s; }
.hero-v5-bounce--2 { animation-delay: 1s; }

.hero-v5-ring--slow {
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    max-width: 100%;
    animation-duration: 20s;
}

.hero-v5-ring--reverse {
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    max-width: 100%;
    animation-duration: 15s;
    animation-direction: reverse;
}

.hero-v5-scroll-track {
    width: 1.5rem;
    height: 2.5rem;
}

.hero-v5-scroll-thumb {
    width: 0.25rem;
    height: 0.75rem;
}

.hero-v5-scroll-wrap {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    margin-left: -0.75rem;
}

.hero-v5-max-desc {
    max-width: 42rem;
}

.hero-v5-blob-nw {
    top: 3rem;
    left: 3rem;
    width: 18rem;
    height: 18rem;
    filter: blur(64px);
}

.hero-v5-blob-se {
    bottom: 3rem;
    right: 3rem;
    width: 24rem;
    height: 24rem;
    filter: blur(64px);
}

.hero-v5-card-fixed {
    width: 24rem;
    height: 24rem;
    max-width: 100%;
}

.hero-v5-card-glass {
    backdrop-filter: blur(4px);
}

.hero-v5-overlay-inner {
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
}

.hero-v5-dot--top-end {
    top: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
}

.hero-v5-dot--bottom-start {
    bottom: -0.5rem;
    left: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

.hero-v5-dot--mid-end {
    top: 50%;
    right: -2rem;
    width: 1rem;
    height: 1rem;
}

.hero-v5-btn-ghost {
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-v5-btn-ghost:hover,
.hero-v5-btn-ghost:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: #fff !important;
}

/* -- 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);
}
/* Вертикальний таймлайн — позиція рейки та вузлів */
.services__rail {
  position: absolute;
  left: 1.3rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background-color: var(--bs-border-color, #dee2e6);
  border-radius: 1px;
}

.dark .services__rail {
  background-color: rgba(148, 163, 184, 0.45);
}

.services__node {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 1.5rem;
}

.services__node:last-child {
  padding-bottom: 0;
}

@media (max-width: 575.98px) {
  .services__node {
    padding-left: 3.25rem;
  }

  .services__rail {
    left: 1.4rem;
  }
}

.services__badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}

.features-interactive-grid__card--hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.features-interactive-grid__card--hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.12) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
}

.features-interactive-grid__decor--offset {
    top: 0;
    right: 0;
    transform: translate(1.5rem, -1.5rem);
    transition: transform 0.5s ease;
}
.features-interactive-grid__card--hover:hover .features-interactive-grid__decor--offset {
    transform: scale(1.25);
}

.features-interactive-grid__accent--hover {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.features-interactive-grid__card--hover:hover .features-interactive-grid__accent--hover {
    opacity: 0.6;
}

.features-interactive-grid__icon-wrap {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: transform 0.3s ease;
}
.features-interactive-grid__card--hover:hover .features-interactive-grid__icon-wrap {
    transform: rotate(12deg);
}

.features-interactive-grid__icon--hover {
    transition: transform 0.3s ease;
}
.features-interactive-grid__card--hover:hover .features-interactive-grid__icon--hover {
    transform: scale(1.1);
}

.features-interactive-grid__pulse--dot {
    animation: features-interactive-grid-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes features-interactive-grid-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.features-interactive-grid__title--hover {
    transition: color 0.3s ease;
}
.features-interactive-grid__card--hover:hover .features-interactive-grid__title--hover {
    /* TW group-hover:text-primary-400 equivalent */
}

.features-interactive-grid__line--hover {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    transition: all 0.5s ease;
}
.features-interactive-grid__card--hover:hover .features-interactive-grid__line--hover {
    width: 75%;
}

.features-interactive-grid__overlay--hover {
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: rgba(var(--bs-primary-rgb), 0.06) !important;
}
.features-interactive-grid__card--hover:hover .features-interactive-grid__overlay--hover {
    opacity: 1;
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
/* Block: advantages-accordion-numbered — panel collapse (JS sets max-height) */
.advantages-accordion-numbered__panel-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* FAQ v14 — chat bubble max-widths */
.faq-chat__bubble-q { max-width: 20rem; }
.faq-chat__bubble-a { max-width: 32rem; }


.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);
    }
}

