.hero-v21-block {
    max-width: 48rem;
}

.hero-v21-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.hero-v21-btn-ghost {
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-v21-btn-ghost:hover,
.hero-v21-btn-ghost:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: #fff !important;
}

/* -- 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);
}
.folio-grid-bg {
    background-image:
        linear-gradient(rgba(var(--bs-emphasis-color-rgb, 33, 37, 41), 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--bs-emphasis-color-rgb, 33, 37, 41), 0.06) 1px, transparent 1px);
    background-size: 1.5rem 1.5rem;
}

.dark .folio-grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.folio-glow {
    width: 24rem;
    height: 24rem;
    filter: blur(3rem);
    bottom: 0;
    left: -6rem;
}

.folio-cap {
    border-color: rgba(var(--bs-emphasis-color-rgb), 0.12);
}

.folio-sq-9 {
    width: 2.25rem;
    height: 2.25rem;
}

/* Вертикальний tagline на md+ */
@media (min-width: 768px) {
    .folio-rail-tagline {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-orientation: mixed;
        max-height: 22rem;
    }
}

.folio-rail-bs {
    width: min(100%, 16rem);
    min-height: min(22rem, 50vh);
    padding-right: 1.75rem;
    border-color: rgba(var(--bs-emphasis-color-rgb), 0.15) !important;
}

.folio-title-rule-bs {
    width: 4rem;
    height: 0.25rem;
    background-color: var(--bs-primary);
}

.folio-tile-bs {
    border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.12);
    border-radius: var(--bs-border-radius-xl, 0.75rem);
    background-color: var(--bs-body-bg);
    padding: 1rem;
    box-shadow: var(--bs-box-shadow-sm);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.folio-tile-bs:hover {
    border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.35) !important;
    box-shadow: var(--bs-box-shadow);
}

.folio-cta {
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.folio-cta:hover {
    transform: translateY(-2px);
}

/* subscribe v30 — SVG decor placement, sizing and drift: shared by both CSS frameworks, no colors */
.mailing-minimal-underline__section--py-4xl {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mxw-sm {
    max-width: 24rem !important;
}

.mailing-minimal-underline__center {
    max-width: 28rem;
}

.mailing-minimal-underline__pattern {
    mask-image: radial-gradient(ellipse 72% 68% at 50% 46%, transparent 18%, black 92%);
}

.mailing-minimal-underline__corner {
    will-change: transform;
}

.mailing-minimal-underline__corner--tl {
    top: 2rem;
    inset-inline-start: 2rem;
    width: 6rem;
    height: 6rem;
    animation: mailing-minimal-underline-drift 9s ease-in-out infinite;
}

.mailing-minimal-underline__corner--br {
    bottom: 2.5rem;
    inset-inline-end: 2.5rem;
    width: 7rem;
    height: 7rem;
    animation: mailing-minimal-underline-drift 11s ease-in-out infinite reverse;
}

.mailing-minimal-underline__marks {
    top: 4rem;
    inset-inline-end: 4rem;
    width: 5rem;
    height: 5rem;
    animation: mailing-minimal-underline-drift 7s ease-in-out infinite;
    animation-delay: 1.2s;
}

.mailing-minimal-underline__title {
    font-size: 1.5rem;
}

.mailing-minimal-underline__subtitle {
    margin-bottom: 2.5rem;
}

.mailing-minimal-underline__form {
    gap: 2rem;
}

/* underline field: border geometry lives here so both frameworks draw the same rule */
.mailing-minimal-underline__input {
    border-width: 0 0 2px;
    border-style: solid;
    transition: border-color 150ms ease;
}

.mailing-minimal-underline__cta {
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    cursor: pointer;
    transition: color 150ms ease;
}

/* Accent on focus / hover. `:where()` keeps specificity at 0-1-0 so the framework's own
   utility wins wherever it exists (Tailwind), and this is the only rule in Bootstrap. */
:where(.mailing-minimal-underline__input):focus {
    border-color: var(--bs-primary);
    outline: none;
}

:where(.mailing-minimal-underline__cta):hover,
:where(.mailing-minimal-underline__cta):focus-visible {
    color: var(--bs-primary);
}

.mailing-minimal-underline__thanks {
    margin-top: 2rem;
}

.mailing-minimal-underline__thanks-title {
    font-size: 1.125rem;
}

@keyframes mailing-minimal-underline-drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(0.35rem, -0.35rem);
    }
}

@media (min-width: 768px) {
    .mailing-minimal-underline__title {
        font-size: 2.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mailing-minimal-underline__corner--tl,
    .mailing-minimal-underline__corner--br,
    .mailing-minimal-underline__marks {
        animation: none;
    }
}

@media (max-width: 767px) {
    .mailing-minimal-underline__corner--tl,
    .mailing-minimal-underline__corner--br,
    .mailing-minimal-underline__marks {
        opacity: 0.55;
    }
}

