/* intro v30 — sticky sidebar + single wide photo with overlay */

.intro-lane__fluid {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.intro-lane__main { min-width: 0; }

.intro-lane__banner {
    min-height: 16rem;
}

.intro-lane__banner-img {
    object-fit: cover;
}

@media (min-width: 992px) {
    .intro-lane__banner { min-height: 22rem; }
}

.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.3s ease, transform 0.3s ease;
}

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

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


.process__hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process__hover-lift:hover {
    transform: scale(1.04);
}

.process__step-group:hover .process__badge-rise,
.process__step-group:hover .process__icon-rise {
    transform: scale(1.08);
}

/* Менш «важка» анімація (soft / fluid варіанти) */
.process--hover-soft .process__hover-lift:hover,
.process--hover-fluid .process__hover-lift:hover {
    transform: translateY(-3px);
}

.process--hover-soft .process__step-group:hover .process__badge-rise,
.process--hover-soft .process__step-group:hover .process__icon-rise,
.process--hover-fluid .process__step-group:hover .process__badge-rise {
    transform: scale(1.025);
}

.process--hover-fluid .process__hover-lift {
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.process--hover-fluid .process__badge-rise,
.process--hover-fluid .process__deco-rise {
    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.process.process--timeline-compact .process__hover-lift:hover {
    transform: translateY(-2px);
}

/* process--timeline-compact: один відступ від осі лінії (TW/BS); картка на всю ширину ряду */
.process.process--timeline-compact .process__step {
    padding-left: 5rem;
}

@media (min-width: 768px) {
    .process.process--timeline-compact .process__step {
        padding-left: 5.5rem;
    }
}

.process.process--timeline-compact .process__card {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}


/* Лише тінь на картці, без scale (soft) */
.process--hover-soft .process__card.process__hover-lift:hover {
    transform: none;
}

/* Контраст цифр на світлому / градієнті */
.process__num-pop {
    box-shadow:
        0 0 0 3px var(--bs-body-bg, #fff),
        0 4px 14px rgba(0, 0, 0, 0.18);
}

.process__meta-on-primary {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Вертикальна лінія: видима ширина (BS) + центр під колом w-12 (3rem) */
.process__vline--through-12 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Центр під колом w-16 (4rem) — v2 таймлайн */
.process__vline--through-16 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Вузол w-8, left 1.25rem → центр 2.25rem */
.process__vline--through-node-sm {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.25rem;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* Горизонтальна лінія таймлайну (v19) */
.process__hline--bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 0.25rem;
    top: 1.5rem;
    margin-top: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

/* v3: номер над карточкою (BS/TW) */
.process__float-num-fix {
    top: -1.5rem;
}

.process__float--lifted {
    top: -1.35rem;
    left: 0.75rem;
}

/* Легкий блюр + темний шар (білий заголовок на світлому фото) */
.process__overlay-blur {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(15, 23, 42, 0.62);
}

.process__head-glass {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Відступ під «літаючий» номер (BS часто потребує більше) */
.process__card--float-gap {
    padding-top: 6.75rem;
}

/* v6: центральна вісь на всю висоту */
.process__vline--center-md {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 0.25rem;
    margin-left: -0.125rem;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 768px) {
    .process__step-row > .process__dot--center-line {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.process__badge-rise,
.process__icon-rise {
    transition: transform 0.3s ease;
}

.process__decor-dot {
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

.process__step-group:hover .process__decor-dot {
    opacity: 1;
}

.process__decor-dot--subtle {
    opacity: 0.28;
}

.process__step-group:hover .process__decor-dot--subtle {
    opacity: 0.7;
}

.process__step-group:hover .process__deco-rise {
    opacity: 0.45;
}

.process__deco-rise {
    transition: opacity 0.3s ease;
}

/* Кола з цифрами — синхрон з Tailwind w-* h-* */
.process__num-fixed--8 {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--10 {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--12 {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    min-height: 3rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--16 {
    width: 4rem;
    height: 4rem;
    min-width: 4rem;
    min-height: 4rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--20 {
    width: 5rem;
    height: 5rem;
    min-width: 5rem;
    min-height: 5rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--24 {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    min-height: 6rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

.process__num-fixed--32 {
    width: 8rem;
    height: 8rem;
    min-width: 8rem;
    min-height: 8rem;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* v2 аватар: квадратне поле + cover → рівне коло з rounded-circle */
.process__avatar-img {
    width: 6rem;
    height: 6rem;
    min-width: 6rem;
    min-height: 6rem;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* v1 @ifRandom декор: якір + розмір (щоб не «літав» у BS) */
.process__decor-blob-fix {
    position: absolute;
    width: 10rem;
    height: 10rem;
    top: -2.5rem;
    right: 1rem;
    z-index: -1;
    pointer-events: none;
}

/* v5 декор тло */
.process__decor-faint-fix {
    position: absolute;
    width: 6rem;
    height: 6rem;
    top: 25%;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* v14 glow */
.process__glow-fix {
    position: absolute;
    width: 16rem;
    height: 16rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .process__hover-lift,
    .process__badge-rise,
    .process__icon-rise,
    .process__decor-dot,
    .process__decor-dot--subtle,
    .process__deco-rise {
        transition: none;
    }

    .process__hover-lift:hover,
    .process--hover-soft .process__hover-lift:hover,
    .process--hover-fluid .process__hover-lift:hover,
    .process.process--timeline-compact .process__hover-lift:hover {
        transform: none;
    }

    .process__step-group:hover .process__badge-rise,
    .process__step-group:hover .process__icon-rise {
        transform: none;
    }

    .process__step-group:hover .process__decor-dot,
    .process__step-group:hover .process__decor-dot--subtle,
    .process__step-group:hover .process__deco-rise {
        opacity: unset;
    }
}

/* whyus v18 — overlap-duo cardless benefits table, mountain motif, art-deco ornament */

/* ---------- overlap-duo illustration block ---------- */
.whyus-summit__media {
    aspect-ratio: 4 / 5;
    min-height: 20rem;
}

@media (min-width: 1024px) {
    .whyus-summit__media {
        aspect-ratio: 3 / 4;
    }
}

/* flat mountain-range silhouette clipped into the top edge of the illustration */
.whyus-summit__mountain {
    clip-path: polygon(
        0% 18%, 12% 9%, 22% 16%, 34% 4%, 46% 14%, 58% 6%,
        70% 15%, 82% 8%, 100% 17%, 100% 100%, 0% 100%
    );
}

.whyus-summit__caption {
    max-width: 80%;
}

/* ---------- bordered text/table panel ---------- */
.whyus-summit__border-frame {
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* animated shimmering border overlay — color comes from the Tailwind gradient
   classes in the template; this rule only animates position/opacity */
.whyus-summit__shimmer {
    background-size: 220% 100%;
    background-position: 0% 0%;
    animation: whyus-summit-shimmer 7s linear infinite;
    animation-delay: 0.6s;
}

@keyframes whyus-summit-shimmer {
    0% {
        background-position: 0% 0%;
        opacity: 0.2;
    }
    50% {
        background-position: 100% 0%;
        opacity: 0.4;
    }
    100% {
        background-position: 220% 0%;
        opacity: 0.2;
    }
}

/* content-first reveal: heading/subtitle/table animate immediately,
   decorative elements (fireflies, chevrons, sunburst) animate slightly after */
.whyus-summit__anim-content {
    animation: whyus-summit-fade-up 0.7s ease-out both;
}

@keyframes whyus-summit-fade-up {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- art-deco geometric ornament ---------- */
.whyus-summit__sunburst {
    top: -4rem;
    right: -4rem;
    width: 22rem;
    height: 22rem;
    animation: whyus-summit-fade-up 1s ease-out both;
    animation-delay: 0.5s;
}

.whyus-summit__chevron {
    width: 3.5rem;
    height: 1.25rem;
    clip-path: polygon(0% 0%, 50% 100%, 100% 0%, 100% 40%, 50% 100%, 0% 40%);
    animation: whyus-summit-fade-up 1s ease-out both;
    animation-delay: 0.55s;
}

.whyus-summit__chevron--top {
    top: 1.5rem;
    left: 2rem;
}

.whyus-summit__chevron--bottom {
    bottom: 1.5rem;
    right: 2rem;
    transform: rotate(180deg);
}

/* ---------- fireflies: soft blinking, drifting dots ---------- */
.whyus-summit__fireflies {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.whyus-summit__firefly {
    width: 0.5rem;
    height: 0.5rem;
    animation-name: whyus-summit-firefly;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: 0.8s;
}

.whyus-summit__firefly--1 { top: 12%; left: 8%; width: 0.375rem; height: 0.375rem; animation-duration: 5.5s; animation-delay: 0.8s; }
.whyus-summit__firefly--2 { top: 28%; left: 42%; width: 0.5rem; height: 0.5rem; animation-duration: 6.5s; animation-delay: 1.4s; }
.whyus-summit__firefly--3 { top: 62%; left: 18%; width: 0.3125rem; height: 0.3125rem; animation-duration: 7s; animation-delay: 1s; }
.whyus-summit__firefly--4 { top: 74%; left: 55%; width: 0.5rem; height: 0.5rem; animation-duration: 5.8s; animation-delay: 1.8s; }
.whyus-summit__firefly--5 { top: 20%; left: 82%; width: 0.375rem; height: 0.375rem; animation-duration: 6.2s; animation-delay: 1.2s; }
.whyus-summit__firefly--6 { top: 85%; left: 88%; width: 0.4375rem; height: 0.4375rem; animation-duration: 6.8s; animation-delay: 2s; }

@keyframes whyus-summit-firefly {
    0%, 100% {
        opacity: 0.15;
        transform: translate(0, 0);
    }
    35% {
        opacity: 0.85;
        transform: translate(0.4rem, -0.6rem);
    }
    65% {
        opacity: 0.4;
        transform: translate(-0.3rem, 0.3rem);
    }
}

/* ---------- checkbox-hack view toggle (CSS-only, no script.js) ---------- */
.whyus-summit__toggle-btn {
    opacity: 0.55;
    transition: opacity 200ms ease;
}

.whyus-summit__toggle-btn--list {
    opacity: 1;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__toggle .whyus-summit__toggle-btn--list {
    opacity: 0.55;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__toggle .whyus-summit__toggle-btn--grid {
    opacity: 1;
}

/* default (unchecked) = list-like single-column flow: the table renders as normal rows */

/* checked = grid-like compact 2-column arrangement */
.whyus-summit__toggle-input:checked ~ .whyus-summit__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__table tbody {
    display: block;
    column-count: 2;
    column-gap: 2rem;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__table tr.whyus-summit__row {
    display: block;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__table tr.whyus-summit__row td {
    display: block;
    width: 100%;
    padding-right: 0;
}

.whyus-summit__toggle-input:checked ~ .whyus-summit__table tfoot {
    column-span: all;
}

@media (max-width: 639px) {
    .whyus-summit__toggle-input:checked ~ .whyus-summit__table tbody {
        column-count: 1;
    }
}

/* Аватар: однаковий фізичний розмір для TW/BS (у BS немає w-12/h-12) */
.dual-column-rating-quote__media {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    flex-shrink: 0;
}

