@keyframes driftLeftRight {
    0% { transform: translateX(-15%); }
    50% { transform: translateX(15%); }
    100% { transform: translateX(-15%); }
}

@keyframes driftRightLeft {
    0% { transform: translateX(15%); }
    50% { transform: translateX(-15%); }
    100% { transform: translateX(15%); }
}

.intro-drift-strip-a {
    width: 33%;
    height: 6rem;
    animation: driftLeftRight 14s ease-in-out infinite;
}

.intro-drift-strip-b {
    width: 50%;
    height: 4rem;
    animation: driftRightLeft 18s ease-in-out infinite;
}

.intro-drift-strip-c {
    width: 25%;
    height: 5rem;
    animation: driftLeftRight 12s ease-in-out infinite;
    animation-delay: 3s;
}

.intro-drift-container {
    max-width: 80rem;
}

.intro-drift-textbox {
    max-width: 48rem;
}

.feature-card-surface {
    position: relative;
    isolation: isolate;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.feature-card-surface > * {
    position: relative;
    z-index: 1;
}

.feature-card-surface::before {
    content: "";
    position: absolute;
    inset: calc(var(--bs-gutter-y, 1rem) * 0.5) calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    border-radius: inherit;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color-translucent);
    box-shadow: var(--bs-box-shadow-sm);
    z-index: 0;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.feature-card-surface:hover:before {
    box-shadow: var(--bs-box-shadow-lg);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.perks-minimal-line__thumb {
    width: 3rem;
    height: 3rem;
}

.perks-minimal-line__badge {
    width: 2rem;
    height: 2rem;
}

@media (min-width: 640px) {
    .perks-minimal-line__group:hover .perks-minimal-line__card {
        transform: scale(1.02);
    }
}

.perks-minimal-line__card {
    transition: transform 0.3s ease;
}

.perks-minimal-line__rule {
    height: 2px;
    transition: opacity 0.3s ease;
}

.perks-minimal-line__group:hover .perks-minimal-line__rule {
    opacity: 1;
}

.gallery-masonry__card {
    transition: all 0.3s ease;
}

.gallery-masonry__card:hover {
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175);
}

.gallery-masonry__img {
    transition: transform 0.3s ease;
}

.gallery-masonry__card:hover .gallery-masonry__img {
    transform: scale(1.05);
}

.gallery-masonry__overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2), transparent);
}

.gallery-masonry__card:hover .gallery-masonry__overlay {
    opacity: 1;
}

/* Bootstrap Grid Fallbacks */
.gallery-masonry__grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .gallery-masonry__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-masonry__card--large {
    grid-row: span 2;
    height: 100%;
}

.gallery-masonry__media--square {
    aspect-ratio: 1 / 1;
}

.gallery-masonry__media--full {
    height: 100%;
    min-height: 100%;
}

@keyframes pull-quote-monocle-timeline__fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pull-quote-monocle-timeline__visible {
    animation: pull-quote-monocle-timeline__fade-up 0.7s ease forwards;
}

.pull-quote-monocle-timeline__quote-decor {
    font-size: 160px;
    line-height: 1;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.pull-quote-monocle-timeline__quote-decor--left {
    top: 6rem;
    left: 2rem;
}

.pull-quote-monocle-timeline__quote-decor--right {
    bottom: 6rem;
    right: 2rem;
}

.pull-quote-monocle-timeline__title-size {
    font-size: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: 0.15em;
}

.pull-quote-monocle-timeline__media-width {
    width: 12rem;
}

.pull-quote-monocle-timeline__thumb-square {
    aspect-ratio: 1;
}

.pull-quote-monocle-timeline__serif-font {
    font-family: Georgia, 'Times New Roman', serif;
}

.pull-quote-monocle-timeline__media-sm {
    max-width: 10rem;
}

.pull-quote-monocle-timeline__min-shrink {
  min-width: 0;
}

@media (min-width: 768px) {
    .pull-quote-monocle-timeline__item--split {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        gap: 3rem;
    }
}


.spark-boost__section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.spark-boost__inner {
    min-height: 500px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .spark-boost__inner { min-height: 600px; }
}

/* Bootstrap: как у Tailwind p-sm → md:p-lg → lg:p-xl → xl:p-4xl (без фиксированных 6rem на мобиле) */
.spark-boost__vessel-bs {
    box-sizing: border-box;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .spark-boost__vessel-bs { padding: 1.5rem; }
}

@media (min-width: 992px) {
    .spark-boost__vessel-bs { padding: 2rem; }
}

@media (min-width: 1280px) {
    .spark-boost__vessel-bs { padding: 6rem; }
}

/* Bootstrap: две колонки + стабильный gap (row/g-* часто «съедаются» сбросами) */
.spark-boost__split-grid-bs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .spark-boost__split-grid-bs { gap: 1.5rem; }
}

.spark-boost__split-grid-bs > * {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .spark-boost__split-grid-bs {
        flex-wrap: nowrap;
    }

    .spark-boost__split-grid-bs > * {
        flex: 1 1 0;
        max-width: 50%;
    }
}

.spark-boost__slab--glass { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

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

.spark-boost__prompt--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.spark-boost__control--glow:hover { transform: scale(1.05); transition: transform .2s ease; }

.spark-boost__surface--glow:hover { transform: scale(1.05); transition: transform .2s ease; }


