.hero-stage__copy > * { opacity: 0; transform: translateY(1rem); animation: hero-stage-rise 700ms cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-stage__copy > *:nth-child(2) { animation-delay: 100ms; }
.hero-stage__copy > *:nth-child(3) { animation-delay: 200ms; }

.hero-stage__tab { appearance: none; -webkit-appearance: none; cursor: pointer; transition: transform 200ms ease; }
.hero-stage__tab:hover { transform: translateY(-2px); }
.hero-stage__timer { transform: scaleX(0); transform-origin: left; }
.hero-stage__tab.is-active .hero-stage__timer { animation: hero-stage-timer var(--hero-stage-delay, 6s) linear forwards; }
.hero-stage__tab.is-active.is-paused .hero-stage__timer { animation: none; transform: scaleX(1); }

.hero-stage__chart { display: block; width: 100%; height: 16rem; }

.hero-stage__card { margin-top: -10rem; }
@media (max-width: 767px) { .hero-stage__card { margin-top: -4rem; } }
.hero-stage__pane.is-entering { animation: hero-stage-swap 450ms ease both; }
.hero-stage__track { height: .5rem; }
.hero-stage__fill { width: 0; transition: width 900ms cubic-bezier(.2, .8, .2, 1); }

@keyframes hero-stage-rise { to { opacity: 1; transform: none; } }
@keyframes hero-stage-timer { to { transform: scaleX(1); } }
@keyframes hero-stage-swap { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .hero-stage__copy > * { animation: none; opacity: 1; transform: none; }
    .hero-stage__tab.is-active .hero-stage__timer { animation: none; transform: scaleX(1); }
}

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

.stats-strata__swatch { width: 1rem; height: 1rem; flex-shrink: 0; }
.stats-strata__layer--1 { opacity: .55; }
.stats-strata__layer--2 { opacity: .25; }

.stats-strata__stage { height: 16rem; }
.stats-strata__chart { display: block; width: 100%; height: 100%; overflow: visible; }
.stats-strata__area { transform: scaleY(0); transform-origin: bottom; transform-box: fill-box; transition: transform 1100ms cubic-bezier(.2, .8, .2, 1); }
.stats-strata__area.stats-strata__layer--0 { opacity: .9; transition-delay: 600ms; }
.stats-strata__area.stats-strata__layer--1 { transition-delay: 300ms; }
[data-strata].is-visible .stats-strata__area { transform: scaleY(1); }

[data-guides] line { stroke-dasharray: 4 5; opacity: 0; transition: opacity 400ms ease 1400ms; }
[data-strata].is-visible [data-guides] line { opacity: 1; }

.stats-strata__pin { width: 2rem; height: 2rem; transform: translate(-50%, -50%) scale(0); transition: transform 400ms cubic-bezier(.3, 1.6, .5, 1); }
[data-strata].is-visible .stats-strata__pin { transform: translate(-50%, -50%) scale(1); }
.stats-strata__pin.is-hot { transform: translate(-50%, -50%) scale(1.3) !important; }

.stats-strata__num { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.stats-strata__callout { cursor: default; transition: transform 200ms ease; }
.stats-strata__callout:hover,
.stats-strata__callout:focus-visible { transform: translateY(-3px); }
.stats-strata__micro { font-size: .75rem; }

@media (prefers-reduced-motion: reduce) {
    .stats-strata__area, .stats-strata__pin, [data-guides] line { transition: none; transform: none; opacity: 1; }
    [data-strata].is-visible .stats-strata__pin { transform: translate(-50%, -50%); }
}
.stats-strata__micro { min-width: 0; }
.stats-strata__micro > span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.stats-strata__micro > span:first-child { text-align: left; }
.stats-strata__micro > span:last-child { text-align: right; }
/* long values must wrap inside the 2-column grid on phones */
.stats-strata__callout { min-width: 0; }
/* badge always sits above the value so all four callouts line up */
.stats-strata__callout > dd { flex-direction: column; align-items: flex-start !important; gap: .5rem !important; min-width: 0; }
.stats-strata__value { min-width: 0; overflow-wrap: anywhere; line-height: 1.1; }
.stats-strata__suffix { display: inline-block; font-size: .6em; margin-left: .1em; line-height: 1.2; vertical-align: baseline; }
@media (max-width: 575px) { .stats-strata__callout > dd { font-size: 1.5rem !important; } }

/* wpg-hidden: utility classes are renamed in production builds, so hidden states must not rely on .hidden / .d-none alone */
.stats-strata[hidden], .stats-strata [hidden], .stats-strata .hidden.d-none { display: none !important; }
.stats-strata__num { align-self: flex-start !important; }

.values-timeline-row__thumb {
    width: 5rem;
    height: 5rem;
}

.values-timeline-row__badge {
    top: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
}

.values-timeline-row__line {
    left: 2.5rem;
    top: 0;
    width: 2px;
    height: 2rem;
}

.sidebar-dot-card-timeline__line {
    width: 2px;
    left: 1rem;
}

@media (min-width: 768px) {
    .sidebar-dot-card-timeline__line {
        left: 2rem;
    }
}

.sidebar-dot-card-timeline__dot {
    width: 1rem;
    height: 1rem;
    left: 0.5rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .sidebar-dot-card-timeline__dot {
        left: 1.5rem;
        transform: translateX(-0.5rem);
    }
}

.sidebar-dot-card-timeline__card {
    margin-left: 0;
}

@media (min-width: 768px) {
    .sidebar-dot-card-timeline__card {
        margin-left: 4rem;
    }
}

/* Hover — поза @sem */
.services__tile--lift {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.services__tile--lift:hover {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 640px) {
  .services__tile--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift {
  transition: filter 0.2s ease, transform 0.2s ease;
}

@media (min-width: 640px) {
  .services__cta--lift:hover {
    transform: scale(1.05);
  }
}

.services__cta--lift:hover {
  filter: brightness(0.92);
}

/* 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; }

