/* Вертикальний таймлайн — позиція рейки та вузлів */
.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;
}

/* v12 - Horizontal carousel: flex track with explicit gap (framework-independent — works under both TW and BS, since BS has no row/col-safe equivalent for a gapped scroll track) */
.steps-gradient-carousel__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.steps-gradient-carousel__track::-webkit-scrollbar {
    display: none;
}

.steps-gradient-carousel__card {
    width: 260px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .steps-gradient-carousel__card {
        width: 300px;
    }
}

/* prev/next controls: fixed circle size, no Bootstrap utility equivalent */
.steps-gradient-carousel__arrow {
    width: 2.75rem;
    height: 2.75rem;
}

/* icon badge: fixed square size, no Bootstrap width/height utility beyond w-25/50/75/100 */
.steps-gradient-carousel__badge {
    width: 3.5rem;
    height: 3.5rem;
}

/* whyus v17 — bookshelf pill grid (layout/animation only, no colors) */

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.whyus-shelf-pills__section--py {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-3xl {
    max-width: 48rem !important;
}

.whyus-shelf-pills__wash,
.whyus-shelf-pills__half {
    width: 50%;
}

.whyus-shelf-pills__wash {
    --bs-bg-opacity: 0.05;
}

.whyus-shelf-pills__head {
    margin-bottom: 0.75rem;
}

.whyus-shelf-pills__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.025em;
}

.whyus-shelf-pills__title {
    font-size: 1.5rem;
}

.whyus-shelf-pills__pill-icon {
    font-size: 1rem;
    margin-top: 0.125rem;
}

.whyus-shelf-pills__pill-desc {
    font-size: 0.75rem;
}

.whyus-shelf-pills__cta {
    padding: 0.625rem 1.5rem;
}

/* shelf row spacing — ultra-tight external gaps */
.whyus-shelf-pills__shelf {
    position: relative;
    gap: 0.75rem;
}

.whyus-shelf-pills__shelf + .whyus-shelf-pills__shelf {
    margin-top: 0.25rem;
}

.whyus-shelf-pills__shelf--last {
    margin-bottom: 0;
    border-bottom-width: 0;
}

/* pill — magnetic pull toward cursor, driven by JS-set custom properties */
.whyus-shelf-pills__pill {
    max-width: 20rem;
    gap: 0.75rem;
    transition: box-shadow 150ms ease-out, transform 150ms ease-out;
    --tilt-x: 0;
    --tilt-y: 0;
    will-change: transform;
    transform: translate(calc(var(--tilt-x) * 1px), calc(var(--tilt-y) * 1px));
    transition: transform 150ms ease-out;
}

.whyus-shelf-pills__items {
    display: flex;
    flex-direction: column;
}

.whyus-shelf-pills__pill-body {
    min-width: 0;
}

/* pill hover lift — Bootstrap has no hover utility; `:where()` keeps specificity at 0-1-0
   so Tailwind's own `hover:shadow-md` still wins in the Tailwind build. Theme token only. */
:where(.whyus-shelf-pills__pill):hover {
    box-shadow: var(--bs-box-shadow);
}

/* diamond decor shapes */
.whyus-shelf-pills__diamond {
    position: absolute;
    transform: rotate(45deg);
    --bs-border-opacity: 0.3;
}

.whyus-shelf-pills__diamond--a {
    top: 1.5rem;
    left: 1rem;
    --bs-border-opacity: 0.4;
}

.whyus-shelf-pills__diamond--b {
    top: 33.333333%;
    right: 2rem;
}

.whyus-shelf-pills__diamond--c {
    bottom: 2.5rem;
    left: 25%;
}

.whyus-shelf-pills__diamond--d {
    bottom: 1.5rem;
    right: 33.333333%;
}

.whyus-shelf-pills__diamond--sm {
    width: 0.5rem;
    height: 0.5rem;
}

.whyus-shelf-pills__diamond--md {
    width: 0.875rem;
    height: 0.875rem;
}

.whyus-shelf-pills__diamond--lg {
    width: 1.25rem;
    height: 1.25rem;
}

/* lightning flash — brief full-bleed opacity spike, no color set here */
.whyus-shelf-pills__flash {
    animation: whyus-shelf-pills-flash 7s ease-in-out infinite;
}

@keyframes whyus-shelf-pills-flash {
    0%, 90%, 100% {
        opacity: 0;
    }
    93% {
        opacity: 0.15;
    }
    96% {
        opacity: 0;
    }
}

/* variable font-weight axis animation on the heading */
.whyus-shelf-pills__heading-weight {
    animation: whyus-shelf-pills-weight 5s ease-in-out infinite alternate;
}

@keyframes whyus-shelf-pills-weight {
    from {
        font-weight: 400;
    }
    to {
        font-weight: 800;
    }
}

/* CTA is the only element with an entrance animation */
.whyus-shelf-pills__cta {
    animation: whyus-shelf-pills-cta-in 0.8s ease-out 0.3s both;
}

@keyframes whyus-shelf-pills-cta-in {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .whyus-shelf-pills__section--py {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .whyus-shelf-pills__title {
        font-size: 2.25rem;
    }
}

