.frame-scroll-container { -webkit-overflow-scrolling: touch; }

/* BS (прев’ю + експорт): картки ~вдвічі вужчі за w-72; TW без змін */
.about-frame-strip--bs .frame-scroll-container > li:not([aria-hidden="true"]),
#section-preview-root.section-preview--bootstrap .frame-scroll-container > li:not([aria-hidden="true"]),
[data-preview-framework="bootstrap"] .frame-scroll-container > li:not([aria-hidden="true"]) {
    flex: 0 0 16rem !important;
    width: 16rem !important;
    max-width: min(16rem, 85vw) !important;
}

.frame-sq-12 { width: 3rem; height: 3rem; flex-shrink: 0; }

.frame-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frame-card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--bs-box-shadow);
}

.frame-icon-hover {
    transition: transform 0.2s ease;
}

.frame-card-hover:hover .frame-icon-hover {
    transform: scale(1.05);
}

.frame-title-hover {
    transition: color 0.2s ease;
}

.frame-card-hover:hover .frame-title-hover {
    color: var(--bs-primary);
}

/* v23 — Bootstrap branch: same rhythm as Tailwind gap-lg + grid columns */
.numbered-step-grid-timeline__bs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .numbered-step-grid-timeline__bs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .numbered-step-grid-timeline__bs-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Parity with Tailwind max-w-2xl on header block */
.numbered-step-grid-timeline__area-bw {
    max-width: 42rem;
}

.numbered-step-grid-timeline__min-shrink {
  min-width: 0;
}

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.whyus-tundra {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-4xl {
    max-width: 56rem !important;
}

.mxw-3xl {
    max-width: 48rem !important;
}

.whyus-tundra__head {
    margin-bottom: 2.5rem;
}

.whyus-tundra__steps,
.whyus-tundra__kicker {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.whyus-tundra__title {
    font-size: 1.875rem;
    letter-spacing: 0.05em;
}

.whyus-tundra__lead {
    font-size: 1rem;
}

.whyus-tundra__feature {
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.whyus-tundra__feature-text {
    font-size: 1.25rem;
}

.whyus-tundra__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.whyus-tundra__card {
    transition: box-shadow 150ms ease;
}

/* hover ring — `:where()` keeps specificity at 0-1-0 so Tailwind's hover:ring-2 wins there */
:where(.whyus-tundra__card):hover {
    box-shadow: 0 0 0 2px var(--bs-primary-border-subtle);
}

.whyus-tundra__card-title {
    font-size: 1rem;
    letter-spacing: 0.025em;
}

.whyus-tundra__card-desc {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .whyus-tundra {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .whyus-tundra__head,
    .whyus-tundra__feature {
        margin-bottom: 3.5rem;
    }

    .whyus-tundra__title {
        font-size: 2.25rem;
    }

    .whyus-tundra__lead,
    .whyus-tundra__card-title {
        font-size: 1.125rem;
    }

    .whyus-tundra__feature {
        padding: 2rem;
    }

    .whyus-tundra__feature-text {
        font-size: 1.5rem;
    }

    .whyus-tundra__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .whyus-tundra__card-desc {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .whyus-tundra__title {
        font-size: 3rem;
    }

    .whyus-tundra__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* whyus v25 — tundra split-diagonal decor + benefit card grid */

/* Diagonal divider line — skewed accent spanning corner to corner */
.whyus-tundra__divider {
    top: 38%;
    left: -10%;
    width: 120%;
    height: 2px;
    transform: rotate(-7deg);
    transform-origin: center;
}

/* Tundra semicircles — sparse organic accents at the section edges */
.whyus-tundra__semicircle {
    border-radius: 999px;
    overflow: hidden;
}

.whyus-tundra__semicircle--left {
    top: -3rem;
    left: -4rem;
    width: 10rem;
    height: 10rem;
}

.whyus-tundra__semicircle--right {
    top: 15%;
    right: -5rem;
    width: 8rem;
    height: 8rem;
}

.whyus-tundra__semicircle--bottom {
    bottom: -6rem;
    left: 20%;
    width: 14rem;
    height: 14rem;
}

/* Frosted-glass CTA accent — blur, padding and hover lift for both frameworks */
.whyus-tundra__glass {
    padding: 0.75rem 1.5rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    --bs-bg-opacity: 0.3;
    transition: transform 150ms ease;
}

:where(.whyus-tundra__glass):hover {
    transform: scale(1.05);
}

/* Benefit cards — staggered entrance */
.whyus-tundra__card {
    animation: whyus-tundra-card-in 0.55s ease both;
}

.whyus-tundra__card:nth-child(1) { animation-delay: 0.05s; }
.whyus-tundra__card:nth-child(2) { animation-delay: 0.1s; }
.whyus-tundra__card:nth-child(3) { animation-delay: 0.15s; }
.whyus-tundra__card:nth-child(4) { animation-delay: 0.2s; }
.whyus-tundra__card:nth-child(5) { animation-delay: 0.25s; }
.whyus-tundra__card:nth-child(6) { animation-delay: 0.3s; }

@keyframes whyus-tundra-card-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

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

/* Choreographed entrance — heading, featured panel, CTA */
@keyframes whyusTundraEnter {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }

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

.whyus-tundra__enter {
    animation: whyusTundraEnter 600ms ease-out both;
}

.whyus-tundra__enter--1 {
    animation-delay: 0ms;
}

.whyus-tundra__enter--2 {
    animation-delay: 200ms;
}

.whyus-tundra__enter--3 {
    animation-delay: 400ms;
}

@media (prefers-reduced-motion: reduce) {
    .whyus-tundra__enter,
    .whyus-tundra__card {
        animation: none;
    }
}


.boost-rally__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.boost-rally__inner {
    max-width: 64rem;
}

@keyframes boost-rally-highlight-throb-loop {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.boost-rally__highlight--throb {
    animation: boost-rally-highlight-throb-loop 2s cubic-bezier(.4,0,.6,1) infinite;
}

.boost-rally__appeal--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

.boost-rally__panel--shift:hover { transform: scale(1.05); transition: transform .2s ease; }

/* Всегда на контейнере двух карточек: явный gap для grid (Tailwind) и дублирует зазор для flex (BS) */
.boost-rally__card-stack-gap {
    gap: 2rem;
}

/* Bootstrap only: класс задаётся в bs:, в Tailwind-режиме не выводится — не конфликтует с grid */
.boost-rally__card-row-bs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    align-items: stretch;
}

@media (min-width: 768px) {
    .boost-rally__card-row-bs {
        flex-direction: row;
    }

    .boost-rally__card-row-bs > .boost-rally__panel--shift {
        flex: 1 1 0;
        min-width: 0;
    }
}

.boost-rally__card-row-bs > .boost-rally__panel--shift {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.boost-rally__card-row-bs > .boost-rally__panel--shift > a:last-of-type {
    margin-top: auto;
}

