/* Бейдж по ширине контента (в 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);
}
.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;
}


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

