.intro-bg-overlay__media {
    min-height: 100%;
}

.intro-bg-overlay__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-bg-overlay__scrim {
    pointer-events: none;
}

.intro-bg-overlay__content-box {
    max-width: 48rem;
}

.intro-bg-overlay__decor-top {
    width: 6rem;
    height: 6rem;
    top: 5rem;
    left: 2.5rem;
}

.intro-bg-overlay__decor-bottom {
    width: 8rem;
    height: 8rem;
    bottom: 5rem;
    right: 2.5rem;
}

.intro-bg-overlay__decor-mid {
    width: 4rem;
    height: 4rem;
    top: 33%;
    right: 25%;
}

.intro-bg-overlay__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.intro-bg-overlay__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Вертикальний таймлайн — позиція рейки та вузлів */
.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 spec-sheet — square icon tile size + horizontal row dividers (layout only, no colors) */

/* BS flex child needs min-width:0 to shrink instead of overflowing on long titles (no BS utility) */
.features-spec__body {
    min-width: 0;
}

.features-spec__tile {
    width: 3rem;
    height: 3rem;
}

.features-spec__row:not(:first-child) {
    border-top-width: 1px;
    border-top-style: solid;
}

/* wizard progress segment - framework-agnostic sizing + UA button reset */
.steps-wizard__segment {
    height: 0.375rem;
    padding: 0;
    border: 0;
    transition: transform 200ms ease, background-color 200ms ease;
    cursor: pointer;
    background-color: var(--bs-tertiary-bg, rgb(100 116 139 / 0.3));
}

.steps-wizard__segment.is-active {
    transform: scaleY(1.6);
    background-color: var(--bs-primary, rgb(37 99 235 / 1)) !important;
}

.steps-wizard__panel {
    animation: steps-wizard-fade-in 250ms ease;
}

/* wizard stage panel - fixed min-height across both frameworks */
.guide-flow__stage {
    min-height: 16rem;
}

/* wizard step icon badge - fixed circular size across both frameworks */
.guide-flow__badge {
    width: 4rem;
    height: 4rem;
}

@keyframes steps-wizard-fade-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* advantages ticker — seamless horizontal marquee (layout/motion only, no colors) */

.advantages-ticker__chip {
    width: 20rem;
}

/* track holds two identical copies; -50% scroll makes the loop seamless */
.advantages-ticker__track {
    width: max-content;
    animation: advantages-ticker-scroll 40s linear infinite;
}

.advantages-ticker__track.is-paused {
    animation-play-state: paused;
}

@keyframes advantages-ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .advantages-ticker__track {
        animation: none;
    }
}

/* cta v40 — relay steps: scroll-driven progress line + node activation (no colors) */
.cta-relay__steps { --relay-p: 0; }
.cta-relay__node { width: 4rem; height: 4rem; z-index: 1; }
.cta-relay__on { opacity: 0; transform: scale(.6); transition: opacity 400ms ease, transform 500ms cubic-bezier(.2, .8, .2, 1); }
.cta-relay__step.is-active .cta-relay__on { opacity: 1; transform: none; }
.cta-relay__num { width: 1.5rem; height: 1.5rem; top: -.25rem !important; right: -.25rem !important; font-size: .75rem; z-index: 2; }
.cta-relay__body { min-width: 0; }
.cta-relay__badge { width: 3rem; height: 3rem; }

/* mobile: vertical track through node centres */
.cta-relay__track { width: .25rem; top: 2rem !important; bottom: 2rem; left: calc(2rem - .125rem) !important; z-index: 0; }
.cta-relay__fill { transform-origin: 50% 0; transform: scaleY(var(--relay-p)); transition: transform 120ms linear; }
.cta-relay__step { opacity: .55; transition: opacity 500ms ease; }
.cta-relay__step.is-active { opacity: 1; }

@media (min-width: 992px) {
    .cta-relay__steps:not(.is-row) .cta-relay__track { width: auto; height: .25rem; top: calc(2rem - .125rem) !important; bottom: auto; left: 16.666% !important; right: 16.666%; }
}
.cta-relay__steps.is-row .cta-relay__fill { transform-origin: 0 50%; transform: scaleX(var(--relay-p)); }

@media (prefers-reduced-motion: reduce) {
    .cta-relay__on, .cta-relay__fill, .cta-relay__step { transition: none; }
}

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.cta-relay[hidden], .cta-relay [hidden], .cta-relay .hidden.d-none { display: none !important; }

/* CTA bar: the button group may shrink and wrap so long labels never run past the bar */
.cta-relay :has(> a[href] + a[href]) { flex-shrink: 1 !important; min-width: 0; max-width: 100%; }
.cta-relay :has(> a[href] + a[href]) > a { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.cta-relay :has(+ :has(> a[href] + a[href])) { min-width: 0; }

