.hero-v24-frame-lg {
    width: 40rem;
    height: 40rem;
}

.hero-v24-frame-md {
    width: 28rem;
    height: 28rem;
}

.hero-v24-frame-sm {
    width: 16rem;
    height: 16rem;
}

.hero-ornamental-frame {
    max-width: 42rem;
}

.hero-v24-dots {
    letter-spacing: 0.3em;
}

/* -- 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);
}
/* intro v26 — Dieter Rams node: hex grid, bottom band, blurred ghost image, serif, typewriter */

/* Hexagon-ish grid (minimal, colour from Tailwind text-*, lines via currentColor) */
.intro-node__hex {
    background-image:
        repeating-linear-gradient(60deg, currentColor 0 1px, transparent 1px 26px),
        repeating-linear-gradient(-60deg, currentColor 0 1px, transparent 1px 26px);
    opacity: 0.1;
}

.intro-node__band { height: 10rem; opacity: 0.7; }

/* Blurred background photo behind the spotlight node */
.intro-node__ghost { height: 14rem; }
.intro-node__img {
    object-fit: cover;
    filter: blur(10px);
    opacity: 0.35;
    transform: scale(1.08);
}

/* Serif heading */
.intro-node__serif {
    font-family: ui-serif, Georgia, "Times New Roman", serif;
}

/* Org-chart stem connector */
.intro-node__stem {
    width: 1px;
    height: 2rem;
}

/* Typewriter caret */
.intro-node__type .is-typing {
    border-right: 2px solid currentColor;
    animation: intro-node-caret 800ms step-end infinite;
}
@keyframes intro-node-caret {
    50% { border-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .intro-node__type .is-typing { animation: none; }
}

.services__tile--lift {
  transition: transform 0.3s ease;
}

.services__tile--lift:hover {
  transform: scale(1.05);
}

.services__cta--lift {
  transition: transform 0.3s ease;
}

.services__cta--lift:hover {
  transform: scale(1.05);
}

.services__marker--offset {
  top: 0.5rem;
  inset-inline-end: 0.5rem;
}

.services__marker--reveal {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.services__tile:hover .services__marker--reveal {
  opacity: 1;
}

/* Block: advantages-tabs-image-panel */
.advantages-tabs-image-panel__tab--hover:hover {
    transform: scale(1.05);
}

.advantages-tabs-image-panel__tab {
    /* BS: без border-0 (він дає border:0 !important і гасить border-bottom). Бокові рамки прибираємо тут. */
    border-style: solid;
    border-width: 0;
    border-bottom-width: 2px;
    border-bottom-color: transparent;
    box-shadow: none;
    background-clip: padding-box;
    transition: border-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.advantages-tabs-image-panel__tab:hover {
    /* Повна нижня лінія — надійніше за лише color, якщо десь перебито width */
    border-bottom: 2px solid var(--bs-emphasis-color, var(--bs-body-color, currentColor));
}

.advantages-tabs-image-panel__tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.advantages-tabs-image-panel__tab:not(.advantages-tabs-image-panel__tab--active) {
    opacity: 0.65;
}

/* Не покладатися на Tailwind .hidden — у Bootstrap її немає */
.advantages-tabs-image-panel__panel--hidden {
    display: none !important;
}

.advantages-tabs-image-panel__panel {
    animation: advantages-tabs-image-panel-panel-fade-kf 0.3s ease;
}

.advantages-tabs-image-panel__panel.advantages-tabs-image-panel__panel--visible {
    animation: advantages-tabs-image-panel-panel-fade-kf 0.3s ease;
}

@keyframes advantages-tabs-image-panel-panel-fade-kf {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.staircase-cascade-quote__portrait {
    width: 5rem;
    height: 5rem;
}

.staircase-cascade-quote__step:nth-child(1) .staircase-cascade-quote__shadow {
    transform: translate(0, 0);
}

.staircase-cascade-quote__step:nth-child(2) .staircase-cascade-quote__shadow {
    transform: translate(16px, 16px);
}

.staircase-cascade-quote__step:nth-child(3) .staircase-cascade-quote__shadow {
    transform: translate(32px, 32px);
}

.staircase-cascade-quote__step:nth-child(4) .staircase-cascade-quote__shadow {
    transform: translate(48px, 48px);
}

.staircase-cascade-quote__step:nth-child(5) .staircase-cascade-quote__shadow {
    transform: translate(64px, 64px);
}

.staircase-cascade-quote__step:nth-child(6) .staircase-cascade-quote__shadow {
    transform: translate(80px, 80px);
}

.staircase-cascade-quote__step:nth-child(n + 7) .staircase-cascade-quote__shadow {
    transform: translate(96px, 96px);
}

/* Bootstrap: позиції/розміри без інлайну (TW — у @sem); імена без номера варіанту */
.stats__overlay-dot-a {
  position: absolute;
  top: 5rem;
  left: 4rem;
  width: 0.5rem;
  height: 0.5rem;
}

.stats__overlay-dot-b {
  position: absolute;
  top: 8rem;
  right: 5rem;
  width: 0.75rem;
  height: 0.75rem;
}

.stats__overlay-dot-c {
  position: absolute;
  bottom: 6rem;
  left: 5rem;
  width: 0.25rem;
  height: 0.25rem;
}

.stats__overlay-dot-d {
  position: absolute;
  bottom: 8rem;
  right: 4rem;
  width: 0.5rem;
  height: 0.5rem;
}

.stats__line-accent-t {
  position: absolute;
  top: 25%;
  left: 0;
  width: 8rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35),
    transparent
  );
}

.stats__line-accent-b {
  position: absolute;
  bottom: 33%;
  right: 0;
  width: 7rem;
  height: 1px;
  background: linear-gradient(
    270deg,
    transparent,
    rgba(var(--bs-primary-rgb, 13, 110, 253), 0.3),
    transparent
  );
}

.stats__decor-ring-t {
  position: absolute;
  top: 6rem;
  left: 25%;
  width: 1rem;
  height: 1rem;
}

.stats__decor-ring-b {
  position: absolute;
  bottom: 7rem;
  right: 25%;
  width: 0.75rem;
  height: 0.75rem;
}

.stats__dashboard-card {
  max-width: 20rem;
}

.stats__blob-tr-dim {
  position: absolute;
  top: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
}

.stats__blob-bl-dim {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5rem;
  height: 5rem;
}

.stats__header-icon-dim {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
}

.stats__dot-dim {
  width: 0.5rem;
  height: 0.5rem;
  min-width: 0.5rem;
  min-height: 0.5rem;
}

.stats__bottom-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
}

.stats__bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.stats__progress-svg rect {
  transition: width 1s ease;
}

@keyframes stats-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes stats-bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@keyframes stats-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes stats-spin {
  to { transform: rotate(360deg); }
}

.stats-anim-pulse {
  animation: stats-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.stats-anim-bounce {
  animation: stats-bounce 1s infinite;
}

.stats-anim-ping {
  animation: stats-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.stats-anim-spin {
  animation: stats-spin 1s linear infinite;
}

.stats-card-hover {
  transition:
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(1.05);
}

.stats-bg-dim-hover {
  transition: opacity 0.5s ease;
  opacity: 0.05;
}

.stats-card-hover:hover .stats-bg-dim-hover {
  opacity: 0.1;
}

.stats-blob-tr-hover {
  transition: transform 0.7s ease;
  transform: translate(2rem, -2rem);
}

.stats-card-hover:hover .stats-blob-tr-hover {
  transform: translate(2rem, -2rem) scale(1.25);
}

.stats-blob-bl-hover {
  transition: transform 0.5s ease;
  transform: translate(-1.5rem, 1.5rem);
}

.stats-card-hover:hover .stats-blob-bl-hover {
  transform: translate(-1.5rem, 1.5rem) scale(1.1);
}

.stats-header-icon-hover {
  transition: transform 0.3s ease;
}

.stats-card-hover:hover .stats-header-icon-hover {
  transform: rotate(12deg);
}

.stats-bottom-accent-hover {
  transition: opacity 0.3s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-bottom-accent-hover {
  opacity: 0.6;
}

.timeline-bubble-row__portrait {
    width: 10rem;
    height: 10rem;
}

.timeline-bubble-row__beacon {
    width: 1.5rem;
    height: 1.5rem;
}

.timeline-bubble-row__min-shrink {
  min-width: 0;
}


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

