/* Бейдж по ширине контента (в BS не было w-fit) */
.hero-v16-badge-wrap {
    width: fit-content;
    max-width: 100%;
}

/* Фото: квадрат 1:1 по схеме orientation: square, без «лески» от h-full во flex */
.hero-v16-media {
    width: 100%;
    max-width: 28rem;
    min-width: min(100%, 17.5rem);
    box-sizing: border-box;
}

/* Карточка вокруг фото — одна ширина в TW и BS (BS .card иначе может сжимать контент) */
.hero-v16-card-box {
    width: 100%;
    box-sizing: border-box;
}

.hero-v16-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem;
}

.hero-v16-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-v16-dot {
    width: 0.5rem;
    height: 0.5rem;
}

.hero-v16-offset-tr {
    margin-top: -0.5rem;
    margin-right: -0.5rem;
    width: 4rem;
    height: 4rem;
}

.hero-v16-offset-bl {
    margin-bottom: -0.5rem;
    margin-left: -0.5rem;
    width: 3rem;
    height: 3rem;
}

.hero-v16-orb-lg {
    width: 5rem;
    height: 5rem;
    animation-duration: 2s;
}

.hero-v16-orb-md {
    width: 4rem;
    height: 4rem;
    animation-duration: 8s;
}

.hero-v16-orb-sm {
    width: 3rem;
    height: 3rem;
    animation-duration: 2.5s;
}

.hero-v16-connector {
    width: 5rem;
    height: 0.25rem;
}

.hero-v16-anim-a {
    animation-duration: 1.5s;
    animation-delay: 0.3s;
}

.hero-v16-anim-b {
    animation-duration: 1.5s;
    animation-delay: 0.6s;
}

.hero-v16-float-a {
    animation-duration: 3s;
    left: 25%;
    width: 2rem;
    height: 2rem;
}

.hero-v16-float-b {
    animation-duration: 2s;
    right: 25%;
    width: 1.5rem;
    height: 1.5rem;
}

/* -- 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);
}
.origin-image-hover {
    transition: transform 0.3s ease;
}

.origin-image-hover:hover {
    transform: scale(1.05);
}

.roster-lift-hover__portrait {
    width: 7rem;
    height: 7rem;
}

.roster-lift-hover__min-shrink {
  min-width: 0;
}

/* testimonials — client chorus: twin marquee rows */
.client-chorus__eyebrow {
    letter-spacing: 0.12em;
}

.client-chorus__title {
    letter-spacing: -0.02em;
}

.client-chorus__row {
    width: 100%;
}

.client-chorus__track {
    width: max-content;
    animation: client-chorus-left 70s linear infinite;
    will-change: transform;
}

.client-chorus__track--right {
    animation-name: client-chorus-right;
}

.client-chorus__row:hover .client-chorus__track,
.client-chorus__row:focus-within .client-chorus__track {
    animation-play-state: paused;
}

/* gap + trailing padding are equal so the -50% loop is seamless */
.client-chorus__list {
    gap: 1.5rem;
    padding-right: 1.5rem;
}

.client-chorus__card {
    width: 19rem;
    min-height: 17rem;
}

.client-chorus__person {
    min-width: 0;
}

.client-chorus__person-body {
    min-width: 0;
}

.client-chorus__avatar {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .client-chorus__card {
        width: 34rem;
        min-height: 20rem;
    }

    .client-chorus__avatar {
        width: 6rem;
        height: 6rem;
    }
}

@keyframes client-chorus-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes client-chorus-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .client-chorus__track {
        animation: none;
        transform: none;
    }

    .client-chorus__row {
        overflow-x: auto;
    }
}

.stats-ticker__title { letter-spacing: -0.02em; }
.stats-ticker__halo { width: 30rem; height: 30rem; top: -14rem !important; right: -10rem !important; filter: blur(60px); opacity: .6; }
.stats-ticker__live { width: .5rem; height: .5rem; flex-shrink: 0; animation: stats-ticker-blink 1.6s ease-in-out infinite; }

.stats-ticker__cell { opacity: 0; transform: translateY(1.25rem); transition: opacity 600ms ease, transform 600ms ease; }
.stats-ticker__band.is-visible .stats-ticker__cell { opacity: 1; transform: none; }
@media (min-width: 992px) {
    .stats-ticker__cell + .stats-ticker__cell { border-left-width: 1px; border-left-style: solid; }
}

.stats-ticker__odo { display: inline-flex; overflow: hidden; height: 1.25em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stats-ticker__digit { display: inline-block; height: 1.25em; overflow: hidden; }
.stats-ticker__reel { display: flex; flex-direction: column; transform: translateY(0); transition: transform 1800ms cubic-bezier(.2, .9, .25, 1); }
/* each cell is taller than the glyph box so neighbouring digits never bleed into the window */
.stats-ticker__reel > span { display: block; height: 1.25em; line-height: 1.25; text-align: center; }
.stats-ticker__suffix { margin-left: .125rem; font-size: .6em; min-width: 0; overflow-wrap: anywhere; }
/* the odometer must never shrink: a long unit next to it used to squeeze the digit windows so neighbouring glyphs overlapped */
.stats-ticker__odo, .stats-ticker__digit { flex-shrink: 0; }

.stats-ticker__cols { display: block; height: 4rem; overflow: visible; }
.stats-ticker__cols rect { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 900ms cubic-bezier(.34, 1.3, .64, 1); }
.stats-ticker__band.is-visible .stats-ticker__cols rect { transform: scaleY(1); }

@keyframes stats-ticker-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
    .stats-ticker__cell, .stats-ticker__reel, .stats-ticker__cols rect { transition: none; opacity: 1; transform: none; }
    .stats-ticker__live { animation: none; }
}

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

/* a long unit suffix moves under the counter instead of being squeezed into a few pixels */
.stats-ticker strong:has(> .stats-ticker__odo) { flex-wrap: wrap; row-gap: .25rem; max-width: 100%; }
.stats-ticker__suffix { max-width: 100%; line-height: 1.1; }
.stats-ticker { overflow-wrap: break-word; }

