/* ==========================================================================
   YooAI Slider PRO — Витринные стили (Bento Grids, Live Products, Glass UI)
   Оптимизировано для Core Web Vitals (Zero CLS, GPU-анимации)
   ========================================================================== */

.yooai-slider {
    --yoo-h-desktop: 480px;
    --yoo-h-tablet: 380px;
    --yoo-h-mobile: 260px;
    --yoo-r-desktop: 16px;
    --yoo-r-mobile: 12px;
    --yoo-radius: var(--yoo-r-mobile);
    --yoo-mt-d: 0px;
    --yoo-mb-d: 42px;
    --yoo-ml-d: 32px;
    --yoo-mr-d: 32px;
    --yoo-mt-m: 0px;
    --yoo-mb-m: 24px;
    --yoo-ml-m: 0px;
    --yoo-mr-m: 0px;

    --yoo-bento-h-desktop: 220px;
    --yoo-bento-h-tablet: 200px;
    --yoo-bento-h-mobile: 195px;
    --yoo-bento-r-desktop: 16px;
    --yoo-bento-r-mobile: 12px;
    --yoo-bento-radius: var(--yoo-bento-r-mobile);
    --yoo-bento-mt-d: 0px;
    --yoo-bento-mb-d: 0px;
    --yoo-bento-ml-d: 0px;
    --yoo-bento-mr-d: 0px;
    --yoo-bento-mt-m: 12px;
    --yoo-bento-mb-m: 0px;
    --yoo-bento-ml-m: 12px;
    --yoo-bento-mr-m: 12px;

    --yoo-gap: 20px;
    --yoo-accent: #2563eb;
    --yoo-delay: 9000ms;

    margin-top: var(--yoo-mt-m);
    margin-bottom: var(--yoo-mb-m);
    position: relative;
    width: 100%;
    font-family: inherit;
    z-index: 1;
}

.yooai-slider *,
.yooai-slider *::before,
.yooai-slider *::after {
    box-sizing: border-box;
}

/* Режимы контейнера — на всю ширину рабочей области сайта */
.yooai-slider--container-boxed .yooai-slider__container {
    width: 100%;
    max-width: 100%;
    padding-left: var(--yoo-ml-m);
    padding-right: var(--yoo-mr-m);
}

@media (min-width: 992px) {
    .yooai-slider {
        --yoo-radius: var(--yoo-r-desktop);
        --yoo-bento-radius: var(--yoo-bento-r-desktop);
        margin-top: var(--yoo-mt-d);
        margin-bottom: var(--yoo-mb-d);
    }
    .yooai-slider--container-boxed .yooai-slider__container {
        padding-left: var(--yoo-ml-d);
        padding-right: var(--yoo-mr-d);
    }
}

.yooai-slider--container-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    --yoo-radius: 0px;
}

/* ==========================================================================
   8 ВИЗУАЛЬНЫХ ТЕМ НА УРОВНЕ КАРТОЧКИ (.yooai-card--theme-*)
   Позволяет комбинировать тёмный слайдер и светлые Bento-блоки (и наоборот)
   ========================================================================== */

/* 1. Dark Luxe — Глубокий графит */
.yooai-card--theme-dark {
    --yoo-card-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --yoo-text-main: #ffffff;
    --yoo-text-sub: rgba(255, 255, 255, 0.85);
    --yoo-badge-bg: rgba(255, 255, 255, 0.18);
    --yoo-badge-text: #ffffff;
    --yoo-price-color: #ffffff;
    --yoo-price-old: rgba(255, 255, 255, 0.6);
    --yoo-card-border: transparent;
}

/* 2. Clean Light — Светлый минимализм */
.yooai-card--theme-light {
    --yoo-card-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --yoo-text-main: #0f172a;
    --yoo-text-sub: #334155;
    --yoo-badge-bg: rgba(15, 23, 42, 0.08);
    --yoo-badge-text: #0f172a;
    --yoo-price-color: #0f172a;
    --yoo-price-old: #64748b;
    --yoo-card-border: transparent;
}

/* 3. Modern Glass — Матовое стекло (капсула с blur) */
.yooai-card--theme-glass {
    --yoo-card-bg: linear-gradient(135deg, #1e1b4b 0%, #1e3a8a 100%);
    --yoo-text-main: #ffffff;
    --yoo-text-sub: rgba(255, 255, 255, 0.88);
    --yoo-badge-bg: rgba(255, 255, 255, 0.22);
    --yoo-badge-text: #ffffff;
    --yoo-price-color: #ffffff;
    --yoo-price-old: rgba(255, 255, 255, 0.6);
    --yoo-card-border: transparent;
}

/* 4. Floating Card — Парящая белая карточка под текстом */
.yooai-card--theme-minimal {
    --yoo-card-bg: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    --yoo-text-main: #0f172a;
    --yoo-text-sub: #475569;
    --yoo-badge-bg: rgba(15, 23, 42, 0.08);
    --yoo-badge-text: #0f172a;
    --yoo-price-color: #0f172a;
    --yoo-price-old: #64748b;
    --yoo-card-border: transparent;
}

/* 5. Warm Sand — Тёплый песочный / кремовый */
.yooai-card--theme-warm {
    --yoo-card-bg: linear-gradient(135deg, #fdf8f0 0%, #f5ebe0 100%);
    --yoo-text-main: #292524;
    --yoo-text-sub: #57534e;
    --yoo-badge-bg: rgba(217, 119, 6, 0.14);
    --yoo-badge-text: #b45309;
    --yoo-price-color: #1c1917;
    --yoo-price-old: #78716c;
    --yoo-card-border: transparent;
}

/* 6. Cyber Indigo — Неоновый индиго градиент */
.yooai-card--theme-indigo {
    --yoo-card-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #1e3a8a 100%);
    --yoo-text-main: #ffffff;
    --yoo-text-sub: rgba(224, 231, 255, 0.86);
    --yoo-badge-bg: rgba(129, 140, 248, 0.24);
    --yoo-badge-text: #e0e7ff;
    --yoo-price-color: #ffffff;
    --yoo-price-old: rgba(199, 210, 254, 0.6);
    --yoo-card-border: transparent;
}

/* 7. Dark Bento Box — Тёмная капсула с акцентной полосой слева */
.yooai-card--theme-emerald {
    --yoo-card-bg: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    --yoo-text-main: #ffffff;
    --yoo-text-sub: rgba(244, 244, 245, 0.85);
    --yoo-badge-bg: rgba(255, 255, 255, 0.14);
    --yoo-badge-text: #ffffff;
    --yoo-price-color: #ffffff;
    --yoo-price-old: rgba(255, 255, 255, 0.55);
    --yoo-card-border: transparent;
}

/* 8. Neon Frame — Тёмное стекло со светящимся контуром */
.yooai-card--theme-sunset {
    --yoo-card-bg: linear-gradient(135deg, #09090b 0%, #1e1b4b 100%);
    --yoo-text-main: #ffffff;
    --yoo-text-sub: rgba(226, 232, 240, 0.88);
    --yoo-badge-bg: rgba(99, 102, 241, 0.25);
    --yoo-badge-text: #e0e7ff;
    --yoo-price-color: #ffffff;
    --yoo-price-old: rgba(148, 163, 184, 0.7);
    --yoo-card-border: transparent;
}

/* 9. Soft Mist — Серая полупрозрачная капсула, тёмный текст */
.yooai-card--theme-mist {
    --yoo-card-bg: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    --yoo-text-main: #0f172a;
    --yoo-text-sub: #334155;
    --yoo-badge-bg: rgba(15, 23, 42, 0.08);
    --yoo-badge-text: #0f172a;
    --yoo-price-color: #0f172a;
    --yoo-price-old: #64748b;
    --yoo-card-border: transparent;
}

/* Принудительный цвет текста в карточке (если выбран не auto) */
.yooai-card--color-light {
    --yoo-text-main: #ffffff !important;
    --yoo-text-sub: rgba(255, 255, 255, 0.85) !important;
    --yoo-price-color: #ffffff !important;
    --yoo-price-old: rgba(255, 255, 255, 0.6) !important;
    --yoo-badge-bg: rgba(255, 255, 255, 0.18) !important;
    --yoo-badge-text: #ffffff !important;
}

.yooai-card--color-dark {
    --yoo-text-main: #0f172a !important;
    --yoo-text-sub: #334155 !important;
    --yoo-price-color: #0f172a !important;
    --yoo-price-old: #64748b !important;
    --yoo-badge-bg: rgba(15, 23, 42, 0.08) !important;
    --yoo-badge-text: #0f172a !important;
}

/* ==========================================================================
   СЕТКА BENTO (Grid Layouts)
   ========================================================================== */
.yooai-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--yoo-gap);
    width: 100%;
}

.yooai-bento-grid__main,
.yooai-bento-grid__side {
    min-width: 0;
    width: 100%;
}

/* Выключение главного кадра и bento по экранам из админки: уже 768px / шире. */
@media (max-width: 767px) {
    .yooai-slider--hide-main-m .yooai-bento-grid__main,
    .yooai-slider--hide-bento-m .yooai-bento-grid__side {
        display: none;
    }

    .yooai-slider--hide-main-m.yooai-slider--hide-bento-m {
        display: none;
    }
}

@media (min-width: 768px) {
    .yooai-slider--hide-main-d .yooai-bento-grid__main,
    .yooai-slider--hide-bento-d .yooai-bento-grid__side {
        display: none;
    }

    .yooai-slider--hide-main-d.yooai-slider--hide-bento-d {
        display: none;
    }
}

.yooai-bento-grid__main {
    position: relative;
}

/* Кадр и боковые стрелки. Точки брендов и режим «под слайдами» живут ниже, вне этого блока. */
.yooai-stage {
    position: relative;
}

.yooai-controls {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

.yooai-controls .yooai-arrow,
.yooai-controls .swiper-pagination-bullet {
    pointer-events: auto;
}

/* Главный слайдер — фиксированная высота до инициализации JS (0 CLS).
   Один клип через clip-path: без тени, без вложенных overflow+radius
   (они давали тёмную кайму на antialias угла). */
.swiper.yooai-home-slider {
    width: 100%;
    height: var(--yoo-h-mobile);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    position: relative;
    background: transparent;
    border-radius: var(--yoo-radius);
    overflow: hidden;
    clip-path: inset(0 round var(--yoo-radius));
}

/* Боковой Bento-блок с собственными внешними отступами, высотами и скруглениями */
.yooai-bento-grid__side {
    margin-top: var(--yoo-bento-mt-m);
    margin-bottom: var(--yoo-bento-mb-m);
    padding-left: var(--yoo-bento-ml-m);
    padding-right: var(--yoo-bento-mr-m);
}

/* Боковой Bento-слайдер */
.swiper.yooai-bento-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* Запас под точки пагинации — воздух между карточками и bullets */
    padding-bottom: 32px;
    border: none !important;
}

.yooai-bento-side-item {
    height: var(--yoo-bento-h-mobile);
    border: none !important;
    overflow: visible;
    position: relative;
    background: transparent;
}

/*
 * Скругление на .yooai-bento-shell, а не на слайде/карточке:
 * у .swiper-slide Swiper вешает transform — из‑за этого border-radius
 * самой карточки часто рисуется криво (слева «прямой» угол).
 * Оболочка обрезает фон карточки по всем 4 углам из настройки Bento.
 */
.yooai-bento-shell {
    width: 100%;
    height: 100%;
    border-radius: var(--yoo-bento-radius) !important;
    overflow: hidden;
    isolation: isolate;
    background: transparent;
}

.yooai-slider .yooai-bento-shell .yooai-card {
    border-radius: 0 !important;
    width: 100%;
    height: 100%;
    /* Специфичнее, чем .yooai-card из yooai_blog.css (там --yoo-blog-bg пустой → фон пропадает) */
    background: var(--yoo-card-bg);
    flex-direction: row;
    color: var(--yoo-text-main);
}

@media (min-width: 768px) {
    .yooai-slider {
        --yoo-gap: var(--yoo-gap-d, var(--yoo-gap));
    }
    .swiper.yooai-home-slider {
        height: var(--yoo-h-tablet);
    }
    /* До десктоп-сетки бенто остаётся компактным (как мобила), не тянется в высоту */
    .yooai-bento-side-item {
        height: var(--yoo-bento-h-mobile);
    }
}

/*
 * Боковой Bento (2 колонки + vertical swiper) только с 1200px.
 * Иначе iPad landscape (~1024–1194 CSS-px) попадает в «десктоп»:
 * узкая колонка режет текст, а Safari ломает % max-height у фото товара.
 * Firefox RDM на 834px этого не показывает — отсюда расхождение со скринами.
 */
@media (min-width: 1200px) {
    .yooai-slider--layout-bento_1 .yooai-bento-grid,
    .yooai-slider--layout-bento_2 .yooai-bento-grid {
        grid-template-columns: minmax(0, 2.25fr) minmax(300px, 1fr);
        align-items: stretch;
    }

    /* Один из двух блоков выключен — оставшийся на всю ширину, без пустой колонки. */
    .yooai-slider--hide-main-d .yooai-bento-grid,
    .yooai-slider--hide-bento-d .yooai-bento-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .yooai-bento-grid__side {
        margin-top: var(--yoo-bento-mt-d);
        margin-bottom: var(--yoo-bento-mb-d);
        padding-left: var(--yoo-bento-ml-d);
        padding-right: var(--yoo-bento-mr-d);
        /* Лишние слайды по вертикали; сам swiper не клипает скругление слева */
        overflow: hidden;
    }

    .swiper.yooai-home-slider,
    .swiper.yooai-bento-slider {
        height: var(--yoo-h-desktop);
    }

    .swiper.yooai-bento-slider {
        padding-bottom: 0;
        overflow: visible;
    }

    .yooai-bento-grid__side--bento_1 .yooai-bento-side-item {
        height: var(--yoo-h-desktop);
    }

    /* Зазор между двумя карточками ≥36px — место под bullets с воздухом */
    .yooai-bento-grid__side--bento_2 .yooai-bento-side-item {
        height: calc((var(--yoo-h-desktop) - max(var(--yoo-gap), 36px)) / 2);
    }

    /* Точки ровно в середине зазора между верхней и нижней карточкой */
    .yooai-bento-grid__side--bento_2 .swiper.yooai-bento-slider .yooai-bento-dots {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        padding: 4px 0;
    }
}

.swiper-slide.yooai-home-slide {
    height: 100%;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible;
    background: transparent;
    box-shadow: none !important;
}

/* ==========================================================================
   ВНУТРЕННЯЯ КАРТОЧКА (.yooai-card) — БЕЗ ЛЮБЫХ ОБВОДОК ПО КРАЯМ
   Под .yooai-slider: иначе общий .yooai-card из yooai_blog.css перебивает фон
   (background: var(--yoo-blog-bg) без переменной → прозрачный блок).
   ========================================================================== */
.yooai-slider .yooai-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    border-radius: 0;
    background: var(--yoo-card-bg);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--yoo-text-main);
}

/* Главный слайдер: без второго клипа и без тёмного фона темы под фото (источник каймы) */
.swiper.yooai-home-slider .yooai-card {
    border-radius: 0 !important;
    overflow: visible;
    box-shadow: none !important;
}

.swiper.yooai-home-slider .yooai-card:has(> .yooai-card__bg) {
    background: transparent !important;
}

.swiper.yooai-home-slider .yooai-card__bg {
    inset: 0;
    border-radius: 0;
    overflow: visible;
}

/* ==========================================================================
   КАПСУЛЬНЫЕ ЭФФЕКТЫ (ПРЯМОУГОЛЬНИКИ ПОД ТЕКСТОМ) В ТЕМАХ ДИЗАЙНА
   ========================================================================== */

/* 1) Modern Glass — Матовая стеклянная капсула */
.yooai-card--theme-glass .yooai-card__info {
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 26px 30px;
    border-radius: 14px;
    gap: 12px;
}

/* 2) Floating Card (minimal) — Парящая чисто-белая карточка под текстом с мягкой тенью */
.yooai-card--theme-minimal .yooai-card__info {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 26px 30px;
    border-radius: 14px;
    box-shadow: 0 14px 32px -8px rgba(15, 23, 42, 0.24);
    gap: 12px;
}

/* 3) Dark Bento Box (emerald) — Графитовая капсула с яркой акцентной вертикальной полосой слева */
.yooai-card--theme-emerald .yooai-card__info {
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 4px solid var(--yoo-accent);
    padding: 26px 30px;
    border-radius: 6px 14px 14px 6px;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35);
    gap: 12px;
}

/* 4) Neon Frame (sunset) — Тёмная капсула с тонкой светящейся рамкой в цвет акцента */
.yooai-card--theme-sunset .yooai-card__info {
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid var(--yoo-accent);
    padding: 26px 30px;
    border-radius: 14px;
    box-shadow: 0 0 24px -4px rgba(37, 99, 235, 0.38), inset 0 0 14px rgba(255, 255, 255, 0.05);
    gap: 12px;
}

/* 5) Soft Mist (mist) — Серая полупрозрачная капсула без рамки, тёмный текст, больше воздуха */
.yooai-card--theme-mist .yooai-card__info {
    background: rgba(149, 149, 149, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    padding: 36px 42px;
    border-radius: 16px;
    box-shadow: none;
    gap: 14px;
}

.yooai-bento-side-item .yooai-card--theme-glass .yooai-card__info,
.yooai-bento-side-item .yooai-card--theme-minimal .yooai-card__info,
.yooai-bento-side-item .yooai-card--theme-emerald .yooai-card__info,
.yooai-bento-side-item .yooai-card--theme-sunset .yooai-card__info {
    padding: 16px 18px;
    border-radius: 10px;
    gap: 8px;
}

.yooai-bento-side-item .yooai-card--theme-mist .yooai-card__info {
    padding: 20px 22px;
    border-radius: 12px;
    gap: 10px;
}

/* ==========================================================================
   МАКЕТ «КАРУСЕЛЬ БРЕНДОВ» (.yooai-slider--layout-brands)
   ========================================================================== */
.yooai-slider--layout-brands .swiper.yooai-home-slider {
    background: transparent;
}

.yooai-slider--layout-brands .yooai-card {
    background: transparent !important;
    align-items: center;
    justify-content: center;
}

.yooai-slider--layout-brands .yooai-card__bg {
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yooai-slider--layout-brands .yooai-card__bg picture,
.yooai-slider--layout-brands .yooai-card__bg img {
    object-fit: contain !important;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease, opacity 0.45s ease;
}

.yooai-slider--brands-grayscale .yooai-card__bg img {
    filter: grayscale(100%);
    opacity: 0.72;
}

.yooai-slider--brands-grayscale .yooai-card:hover .yooai-card__bg img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Фоновое изображение */
.yooai-card__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.yooai-card__bg picture {
    width: 100%;
    height: 100%;
    display: block;
}

.yooai-card__bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Видеофон: постер + video, cover/contain */
.yooai-card__bg--video .yooai-card__poster,
.yooai-card__bg--video .yooai-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.yooai-card__bg--video .yooai-card__poster img,
.yooai-card__bg--video .yooai-card__video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #0f172a;
}

.yooai-card__bg--contain .yooai-card__poster img,
.yooai-card__bg--contain .yooai-card__video {
    object-fit: contain;
}

.yooai-card__bg--video .yooai-card__video {
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.yooai-card__bg--video.is-playing .yooai-card__video {
    opacity: 1;
}

.yooai-card__bg--video .yooai-card__poster {
    z-index: 0;
}

/* 1. Classic Ken Burns (плавный линейный зум) */
.swiper-slide-active .yooai-card--kenburns .yooai-card__bg img,
.yooai-bento-side-item:hover .yooai-card--kenburns .yooai-card__bg img {
    transform: scale(1.07);
}

/* 2. Multi-Axis Drone Cam (Сложная траектория по кривой Безье с мягким покачиванием камеры) */
@keyframes yooDroneCamA {
    0%   { transform: scale(1.0) translate3d(0%, 0%, 0) rotateZ(0deg); }
    35%  { transform: scale(1.055) translate3d(-1.6%, -1.1%, 0) rotateZ(-0.45deg); }
    70%  { transform: scale(1.09) translate3d(1.2%, -1.8%, 0) rotateZ(0.35deg); }
    100% { transform: scale(1.11) translate3d(1.8%, 0.6%, 0) rotateZ(0deg); }
}

@keyframes yooDroneCamB {
    0%   { transform: scale(1.02) translate3d(1.2%, 0.8%, 0) rotateZ(0deg); }
    40%  { transform: scale(1.065) translate3d(-1.4%, 1.2%, 0) rotateZ(0.45deg); }
    100% { transform: scale(1.11) translate3d(-2.0%, -1.2%, 0) rotateZ(-0.3deg); }
}

.swiper-slide-active .yooai-card--fx-drone .yooai-card__bg img,
.yooai-bento-side-item:hover .yooai-card--fx-drone .yooai-card__bg img {
    animation: yooDroneCamA var(--yoo-delay, 9000ms) cubic-bezier(0.33, 0.02, 0.18, 0.99) forwards;
}

.swiper-slide-active:nth-child(even) .yooai-card--fx-drone .yooai-card__bg img {
    animation-name: yooDroneCamB;
}

/* 3. Cinema Light & Color Reveal (Проявление сочности цвета + пробегающий солнечный блик без промежуточных швов) */
@keyframes yooColorGradeReveal {
    0%   { transform: scale(1.07); filter: saturate(0.42) contrast(1.14) brightness(0.86); }
    32%  { filter: saturate(1.08) contrast(1.02) brightness(1.02); }
    65%  { transform: scale(1.0); filter: saturate(1.0) contrast(1.0) brightness(1.0); }
    100% { transform: scale(1.0); filter: saturate(1.0) contrast(1.0) brightness(1.0); }
}

@keyframes yooSunFlareSweep {
    0%   { transform: translate3d(-120%, -15%, 0); opacity: 0; }
    22%  { opacity: 0.85; }
    60%  { opacity: 0.45; }
    100% { transform: translate3d(135%, 15%, 0); opacity: 0; }
}

.yooai-card--fx-light_shift .yooai-card__bg::after {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(
        ellipse 28% 95% at 50% 50%,
        rgba(255, 238, 200, 0.38) 0%,
        rgba(255, 238, 200, 0) 100%
    );
    mix-blend-mode: screen;
    opacity: 0;
}

.swiper-slide-active .yooai-card--fx-light_shift .yooai-card__bg img,
.yooai-bento-side-item:hover .yooai-card--fx-light_shift .yooai-card__bg img {
    animation: yooColorGradeReveal var(--yoo-delay, 9000ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.swiper-slide-active .yooai-card--fx-light_shift .yooai-card__bg::after,
.yooai-bento-side-item:hover .yooai-card--fx-light_shift .yooai-card__bg::after {
    animation: yooSunFlareSweep 3.4s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

/* 4. Cinema Auto-Focus f/1.4 (Перевод фокуса кинообъектива + периферийное боке без карты глубины) */
@keyframes yooCinemaFocusPull {
    0%   { transform: scale(1.11); filter: blur(9px) brightness(1.08) saturate(0.9); }
    18%  { filter: blur(0px) brightness(1.0) saturate(1.04); }
    42%  { filter: blur(1.2px) brightness(1.01); }
    62%  { filter: blur(0px) brightness(1.0) saturate(1.05); }
    100% { transform: scale(1.03); filter: blur(0px) brightness(1.0) saturate(1.05); }
}

.yooai-card--fx-autofocus {
    --yoo-focus-x: 50%;
    --yoo-focus-y: 50%;
}
.yooai-card--fx-autofocus.yooai-card--focus-left   { --yoo-focus-x: 28%; --yoo-focus-y: 50%; }
.yooai-card--fx-autofocus.yooai-card--focus-right  { --yoo-focus-x: 72%; --yoo-focus-y: 50%; }
.yooai-card--fx-autofocus.yooai-card--focus-top    { --yoo-focus-x: 50%; --yoo-focus-y: 30%; }
.yooai-card--fx-autofocus.yooai-card--focus-bottom { --yoo-focus-x: 50%; --yoo-focus-y: 70%; }

/* Оптическая маска глубины резкости вокруг точки фокуса (Tilt-Shift / Radial Bokeh) */
.yooai-card--fx-autofocus .yooai-card__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    -webkit-mask-image: radial-gradient(ellipse 46% 56% at var(--yoo-focus-x) var(--yoo-focus-y), transparent 45%, rgba(0, 0, 0, 0.88) 100%);
    mask-image: radial-gradient(ellipse 46% 56% at var(--yoo-focus-x) var(--yoo-focus-y), transparent 45%, rgba(0, 0, 0, 0.88) 100%);
    opacity: 0;
    transition: opacity 1.4s ease;
}

.swiper-slide-active .yooai-card--fx-autofocus .yooai-card__bg img,
.yooai-bento-side-item:hover .yooai-card--fx-autofocus .yooai-card__bg img {
    animation: yooCinemaFocusPull var(--yoo-delay, 9000ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.swiper-slide-active .yooai-card--fx-autofocus .yooai-card__bg::before,
.yooai-bento-side-item:hover .yooai-card--fx-autofocus .yooai-card__bg::before {
    opacity: 1;
}

/* 5 & 6. Холст WebGL-шейдеров («Жидкое стекло» и «Дыхание кадра + 2.5D Parallax») */
.yooai-webgl-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.yooai-card--webgl-ready .yooai-webgl-canvas {
    opacity: 1;
}

.yooai-card--webgl-ready .yooai-card__bg picture {
    opacity: 0;
}

/* Настраиваемый оверлей поверх фона */
.yooai-card__scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.yooai-card__full-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* ==========================================================================
   Контентный слой (текст + товар)
   ========================================================================== */
.yooai-card__content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    gap: 18px;
}

/* Горизонтальный отступ с запасом под стрелки (left:16px + 42px ≈ 58px) */
@media (min-width: 768px) {
    .swiper.yooai-home-slider .yooai-card__content {
        padding: 28px 76px;
    }
}

@media (min-width: 992px) {
    .swiper.yooai-home-slider .yooai-card__content {
        padding: 36px 88px;
        gap: 28px;
    }
}

@media (min-width: 1200px) {
    .yooai-bento-side-item .yooai-card__content {
        padding: 18px 20px;
        gap: 14px;
    }
}

.yooai-card--align-center .yooai-card__content {
    justify-content: center;
    text-align: center;
}

.yooai-card--align-right .yooai-card__content {
    flex-direction: row-reverse;
}

.yooai-card__info {
    position: relative;
    z-index: 6;
    flex: 1;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    max-height: 100%;
}

.yooai-bento-side-item .yooai-card__info {
    gap: 5px;
}

.yooai-card--align-center .yooai-card__info {
    align-items: center;
}

/* Бейджи */
.yooai-card__badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yooai-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--yoo-badge-bg);
    color: var(--yoo-badge-text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Бейдж скидки -50% поверх карточки товара */
.yooai-badge--discount {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: #ef4444 !important;
    border: none !important;
    color: #ffffff !important;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

/* Заголовок и описание (стандарт = md ≈ бывший «Большой») */
.yooai-card__title {
    margin: 0;
    font-size: clamp(26px, 5.6vw, 44px);
    /* !important: тема/h3/a часто сбрасывают weight на десктопе — визуально «тоньше» */
    font-weight: 800 !important;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--yoo-text-main) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yooai-bento-side-item .yooai-card__title {
    font-size: clamp(15.5px, 1.35vw, 20px);
    line-height: 1.22;
    -webkit-line-clamp: 2;
}

.yooai-card__title a {
    color: inherit !important;
    font-weight: inherit !important;
    text-decoration: none;
}

.yooai-card__subtitle {
    margin: 0;
    font-size: clamp(15px, 2.9vw, 18px);
    line-height: 1.38;
    color: var(--yoo-text-sub);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yooai-bento-side-item .yooai-card__subtitle {
    font-size: 12.5px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
}

/* Пресеты: sm < md(стандарт) < lg < xl(+жирнее) */
.yooai-card--size-sm .yooai-card__title {
    font-size: clamp(20px, 4.6vw, 32px);
    line-height: 1.18;
    -webkit-line-clamp: 2;
}
.yooai-card--size-sm .yooai-card__subtitle {
    font-size: clamp(13.5px, 2.6vw, 15px);
    line-height: 1.4;
}
.yooai-card--size-sm .yooai-btn {
    font-size: 13.5px;
    padding: 11px 18px;
}

.yooai-card--size-lg .yooai-card__title {
    font-size: clamp(30px, 6.4vw, 54px);
    line-height: 1.1;
    -webkit-line-clamp: 3;
}
.yooai-card--size-lg .yooai-card__subtitle {
    font-size: clamp(16px, 3.2vw, 20px);
    line-height: 1.36;
}
.yooai-card--size-lg .yooai-btn {
    font-size: 16px;
    padding: 14px 24px;
}

.yooai-card--size-xl .yooai-card__title {
    font-size: clamp(34px, 7.2vw, 62px);
    font-weight: 900 !important;
    line-height: 1.08;
    letter-spacing: -0.03em;
    -webkit-line-clamp: 3;
}
.yooai-card--size-xl .yooai-card__subtitle {
    font-size: clamp(17px, 3.4vw, 22px);
    font-weight: 600;
    line-height: 1.34;
}
.yooai-card--size-xl .yooai-btn {
    font-size: 16.5px;
    font-weight: 700;
    padding: 15px 26px;
}

/* Bento-боковины: мягче, чтобы не раздувать узкие карточки */
.yooai-bento-side-item .yooai-card--size-sm .yooai-card__title {
    font-size: clamp(13.5px, 1.15vw, 17px);
}
.yooai-bento-side-item .yooai-card--size-sm .yooai-card__subtitle {
    font-size: 11.5px;
}
.yooai-bento-side-item .yooai-card--size-lg .yooai-card__title {
    font-size: clamp(16.5px, 1.5vw, 22px);
}
.yooai-bento-side-item .yooai-card--size-lg .yooai-card__subtitle {
    font-size: 13px;
}
.yooai-bento-side-item .yooai-card--size-xl .yooai-card__title {
    font-size: clamp(18px, 1.65vw, 24px);
    font-weight: 900 !important;
}
.yooai-bento-side-item .yooai-card--size-xl .yooai-card__subtitle {
    font-size: 13.5px;
    font-weight: 600;
}

.yooai-bento-grid__side--bento_2 .yooai-bento-side-item .yooai-card__subtitle {
    -webkit-line-clamp: 1;
}

/* ==========================================================================
   ЦЕНА И КОМПАКТНЫЙ ОДНОСТРОЧНЫЙ ТАЙМЕР АКЦИИ
   ========================================================================== */
.yooai-card__price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.yooai-card__price-box {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.yooai-card__price-current {
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--yoo-price-color);
    white-space: nowrap;
}

.yooai-bento-side-item .yooai-card__price-current {
    font-size: clamp(16px, 1.35vw, 20px);
}

.yooai-card__price-old {
    font-size: clamp(13px, 1.2vw, 16px);
    text-decoration: line-through;
    color: var(--yoo-price-old);
    white-space: nowrap;
}

.yooai-bento-side-item .yooai-card__price-old {
    font-size: 12.5px;
}

/* Компактный однострочный таймер — всегда поверх фото товара */
.yooai-countdown {
    position: relative;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.yooai-countdown__ico {
    flex-shrink: 0;
}

.yooai-countdown__digits strong {
    font-weight: 800;
}

/* Вариант 1: Яркий жёлтый акцент */
.yooai-countdown--yellow {
    background: #fef08a;
    color: #713f12;
    border: 1px solid #fde047;
}
.yooai-countdown--yellow .yooai-countdown__ico {
    color: #ca8a04;
}

/* Вариант 2: Горящий красный бейдж */
.yooai-countdown--red {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.yooai-countdown--red .yooai-countdown__ico {
    color: #dc2626;
}

/* Вариант 3: Полупрозрачное стекло */
.yooai-countdown--glass {
    background: rgba(15, 23, 42, 0.07);
    color: var(--yoo-text-main);
    border: 1px solid rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.yooai-card--theme-dark .yooai-countdown--glass,
.yooai-card--theme-glass .yooai-countdown--glass,
.yooai-card--theme-indigo .yooai-countdown--glass,
.yooai-card--color-light .yooai-countdown--glass {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* Кнопка перехода (Подробнее / Смотреть) */
.yooai-card__actions {
    margin-top: 2px;
}

.yooai-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--yoo-accent);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
}

.yooai-bento-side-item .yooai-btn {
    padding: 7px 15px;
    font-size: 12px;
}

/* Bento: воздух вокруг белой витрины товара, без «от края до края» */
.yooai-bento-side-item .yooai-card__content {
    padding: 14px 16px;
    gap: 12px;
}

.yooai-bento-side-item .yooai-card__product-visual {
    /* height:%% в Safari часто = 0/none у flex-потомков → картинка пропадает или клипается */
    flex: 0 1 auto;
    width: 34%;
    max-width: 34%;
    height: 100%;
    max-height: 100%;
    align-self: stretch;
    padding: 6px 2px 6px 0;
    z-index: 1;
    min-width: 0;
    min-height: 0;
}

.yooai-bento-side-item .yooai-product-stage--card {
    border-radius: 12px;
    width: 100%;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    padding: 10px;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.22);
}

.yooai-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.yooai-btn svg {
    transition: transform 0.2s ease;
}

.yooai-btn:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Оформление фотографии живого товара
   ========================================================================== */
.yooai-card__product-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 42%;
}

.yooai-product-stage {
    position: relative;
    z-index: 1;
}

/* 1. Парящая белая карточка */
.yooai-product-stage--card {
    background: #ffffff;
    padding: 12px;
    border-radius: calc(var(--yoo-radius) * 0.8);
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    transition: transform 0.25s ease;
}

.yooai-product-stage--card:hover {
    transform: scale(1.02);
}

/* 2. Подиум и свечение */
.yooai-product-stage--podium,
.yooai-product-stage--clean {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
}

.yooai-product-stage--podium::before,
.yooai-product-stage--clean::before {
    content: "";
    position: absolute;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
}

/* 3. Чистый сплит 50/50 */
.yooai-card--prod-split .yooai-card__content {
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.yooai-card--prod-split .yooai-card__product-visual {
    background: #ffffff;
    height: 100%;
    width: 44%;
    max-width: 44%;
    padding: 16px;
}

/* Bento: сплит не растягивает витрину на всю высоту/ширину */
.yooai-bento-side-item .yooai-card--prod-split .yooai-card__content {
    padding: 14px 16px;
}
.yooai-bento-side-item .yooai-card--prod-split .yooai-card__product-visual {
    background: transparent;
    width: 34%;
    max-width: 34%;
    height: 100%;
    max-height: 100%;
    padding: 6px 2px 6px 0;
}

.yooai-product-stage picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.yooai-product-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 575px) {
    .yooai-card__content {
        padding: 14px 16px;
        gap: 12px;
    }

    /* Главный слайдер: крупнее иерархия, чтобы текст не проигрывал кнопке */
    .swiper.yooai-home-slider .yooai-card__info {
        gap: 8px;
    }

    .swiper.yooai-home-slider .yooai-card__title {
        font-size: 25px;
        line-height: 1.18;
        -webkit-line-clamp: 3;
    }

    .swiper.yooai-home-slider .yooai-card__subtitle {
        font-size: 15px;
        line-height: 1.38;
        -webkit-line-clamp: 4;
        font-weight: 500;
    }

    .swiper.yooai-home-slider .yooai-btn {
        font-size: 14px;
        padding: 12px 18px;
    }

    .swiper.yooai-home-slider .yooai-card--size-sm .yooai-card__title {
        font-size: 21px;
    }
    .swiper.yooai-home-slider .yooai-card--size-sm .yooai-card__subtitle {
        font-size: 14px;
    }
    .swiper.yooai-home-slider .yooai-card--size-sm .yooai-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .swiper.yooai-home-slider .yooai-card--size-lg .yooai-card__title {
        font-size: 28px;
    }
    .swiper.yooai-home-slider .yooai-card--size-lg .yooai-card__subtitle {
        font-size: 16px;
    }
    .swiper.yooai-home-slider .yooai-card--size-lg .yooai-btn {
        font-size: 14.5px;
        padding: 12px 20px;
    }

    .swiper.yooai-home-slider .yooai-card--size-xl .yooai-card__title {
        font-size: 31px;
        font-weight: 900 !important;
    }
    .swiper.yooai-home-slider .yooai-card--size-xl .yooai-card__subtitle {
        font-size: 16.5px;
        font-weight: 600;
    }
    .swiper.yooai-home-slider .yooai-card--size-xl .yooai-btn {
        font-size: 15px;
        padding: 13px 22px;
    }

    /*
     * Мягкая тень — только для реально светлого текста.
     * Иначе при color-dark + theme-dark/glass чёрная тень под тёмными буквами
     * даёт на мобиле грязно-жёлтый «фон» вокруг глифов.
     */
    .swiper.yooai-home-slider .yooai-card--color-light .yooai-card__title,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-dark .yooai-card__title,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-indigo .yooai-card__title,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-emerald .yooai-card__title,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-sunset .yooai-card__title,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-glass .yooai-card__title {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.35);
    }

    .swiper.yooai-home-slider .yooai-card--color-light .yooai-card__subtitle,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-dark .yooai-card__subtitle,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-indigo .yooai-card__subtitle,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-emerald .yooai-card__subtitle,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-sunset .yooai-card__subtitle,
    .swiper.yooai-home-slider .yooai-card--color-auto.yooai-card--theme-glass .yooai-card__subtitle {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .yooai-product-stage--card {
        padding: 8px;
    }
}

/* ==========================================================================
   СТРЕЛКИ НАВИГАЦИИ (.yooai-arrow) — ПОЛНАЯ ИЗОЛЯЦИЯ ОТ ТЕМЫ MOONSHOP
   ========================================================================== */
.yooai-arrow {
    position: absolute;
    z-index: 20;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    background-image: none !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #0f172a !important;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    outline: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
    /* Без transform в transition — иначе иконка «дёргается» при смене scale/цвета */
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

/* Защита от псевдоэлементов темы Moonshop, вызывавших моргание при наведении */
.yooai-arrow::before,
.yooai-arrow::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

.yooai-arrow svg {
    display: block !important;
    width: 20px;
    height: 20px;
    stroke: currentColor !important;
    fill: none !important;
    transform: none !important;
    transition: none !important;
    pointer-events: none;
}

.yooai-controls .yooai-arrow {
    top: 50%;
    transform: translateY(-50%);
}
.yooai-controls .yooai-arrow--prev { left: 16px; }
.yooai-controls .yooai-arrow--next { right: 16px; }

.yooai-controls .yooai-arrow:hover {
    background: var(--yoo-accent) !important;
    border-color: var(--yoo-accent) !important;
    color: #ffffff !important;
    transform: translateY(-50%);
}

.yooai-controls .yooai-arrow:hover svg {
    width: 20px !important;
    height: 20px !important;
    transform: none !important;
    stroke: currentColor !important;
}

.yooai-arrow.swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

@media (min-width: 768px) {
    .yooai-controls .yooai-arrow.yooai-nav--always {
        display: flex;
    }
    .yooai-controls .yooai-arrow.yooai-nav--glass,
    .yooai-controls .yooai-arrow.yooai-nav--hover {
        display: flex;
        opacity: 0;
    }
    .yooai-bento-grid__main:hover .yooai-arrow.yooai-nav--glass,
    .yooai-bento-grid__main:hover .yooai-arrow.yooai-nav--hover {
        opacity: 1;
    }
}

/* Полупрозрачные стрелки вверх/вниз для Bento промо-блоков (когда карточек больше 2) */
.yooai-bento-arrow {
    display: flex;
    width: 30px;
    height: 30px;
    right: 10px;
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #0f172a !important;
    opacity: 0;
}
.yooai-bento-arrow svg {
    width: 16px;
    height: 16px;
}
.yooai-bento-arrow--prev {
    top: 8px;
}
.yooai-bento-arrow--next {
    bottom: 8px;
}
.swiper.yooai-bento-slider:hover .yooai-bento-arrow {
    opacity: 0.9;
}
.yooai-bento-arrow:hover {
    opacity: 1 !important;
    background: var(--yoo-accent) !important;
    border-color: var(--yoo-accent) !important;
    color: #ffffff !important;
    transform: none;
}

/* ==========================================================================
   ПАГИНАЦИЯ ГЛАВНОГО СЛАЙДЕРА И BENTO (.yooai-dots / .yooai-bento-dots)
   ========================================================================== */
.yooai-controls .yooai-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.yooai-controls .yooai-dots .swiper-pagination-bullet {
    pointer-events: auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    transition: width 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

/* По умолчанию активная точка сразу ярко окрашена в цвет кнопки (--yoo-accent) */
.yooai-controls .yooai-dots .swiper-pagination-bullet-active {
    width: 28px;
    background: var(--yoo-accent);
}

.yooai-controls .yooai-dots--bullets:not(.yooai-dots--fill) .swiper-pagination-bullet-active {
    background: var(--yoo-accent);
}

/* Если включено визуальное заполнение активной точки (yooai-dots--fill) */
.yooai-controls .yooai-dots--fill .swiper-pagination-bullet-active {
    width: 36px;
    background: rgba(255, 255, 255, 0.35);
}

.yooai-controls .yooai-dots--fill .swiper-pagination-bullet-active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: var(--yoo-accent);
    border-radius: 999px;
    transform-origin: left center;
    animation: yooProgressFill var(--yoo-delay, 9000ms) linear forwards;
}

@keyframes yooProgressFill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.yooai-controls .yooai-dots--fraction {
    left: auto;
    right: 18px;
    bottom: 14px;
    width: auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Точки пагинации для свайпа Bento-карточек (снизу по центру) */
.swiper.yooai-bento-slider .yooai-bento-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.swiper.yooai-bento-slider .yooai-bento-dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    opacity: 1;
    margin: 0 !important;
    transition: width 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.swiper.yooai-bento-slider .yooai-bento-dots .swiper-pagination-bullet-active {
    width: 24px;
    background: var(--yoo-accent);
}

/* Карусель брендов: слайд ровно в пикселях файла, дорожка его не растягивает */
.yooai-slider--layout-brands .swiper.yooai-home-slider,
.yooai-slider--layout-brands .swiper-wrapper {
    height: auto !important;
}

.yooai-slider--layout-brands .swiper-wrapper {
    align-items: center;
}

.yooai-slider--layout-brands .swiper-slide.yooai-home-slide {
    width: calc(var(--yoo-logo-w) * 1px) !important;
    height: calc(var(--yoo-logo-h) * 1px) !important;
    aspect-ratio: auto !important;
    flex-shrink: 0;
}

.yooai-slider--layout-brands .yooai-card {
    width: 100%;
    height: 100%;
    background: transparent !important;
}

.yooai-slider--layout-brands .yooai-card__bg {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    padding: 0 !important;
}

.yooai-slider--layout-brands .yooai-card__bg picture,
.yooai-slider--layout-brands .yooai-card__bg img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

/* Одинаковые плашки вокруг логотипов: цвет, внутренний отступ, скругление */
.yooai-slider--layout-brands.yooai-slider--brands-fill .swiper.yooai-home-slider {
    overflow: visible;
    clip-path: none;
    border-radius: 0;
}

.yooai-slider--layout-brands.yooai-slider--brands-fill .swiper-slide.yooai-home-slide {
    width: calc(var(--yoo-brands-box-w, var(--yoo-logo-w)) * 1px) !important;
    height: calc(var(--yoo-brands-box-h, var(--yoo-logo-h)) * 1px) !important;
}

.yooai-slider--layout-brands.yooai-slider--brands-fill .swiper.yooai-home-slider .yooai-card {
    background: var(--yoo-brands-fill, #ffffff) !important;
    border-radius: var(--yoo-brands-fill-r, 12px) !important;
    overflow: visible !important;
    box-shadow: var(--yoo-brands-shadow, none) !important;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.yooai-slider--layout-brands.yooai-slider--brands-fill .swiper.yooai-home-slider .yooai-card__bg {
    padding: var(--yoo-brands-fill-pad, 16px) !important;
    overflow: hidden;
    border-radius: inherit;
}

/* Наведение: плавная анимация всей плашки, без клипа родителем */
.yooai-slider--layout-brands.yooai-slider--brands-hover .swiper.yooai-home-slider,
.yooai-slider--layout-brands.yooai-slider--brands-hover .swiper-slide.yooai-home-slide,
.yooai-slider--layout-brands.yooai-slider--brands-hover-shadow .swiper.yooai-home-slider,
.yooai-slider--layout-brands.yooai-slider--brands-hover-shadow .swiper-slide.yooai-home-slide {
    overflow: visible;
    clip-path: none;
}

.yooai-slider--layout-brands.yooai-slider--brands-hover .swiper.yooai-home-slider .yooai-card,
.yooai-slider--layout-brands.yooai-slider--brands-hover-shadow .swiper.yooai-home-slider .yooai-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.yooai-slider--layout-brands.yooai-slider--brands-hover .swiper.yooai-home-slider .yooai-card:hover,
.yooai-slider--layout-brands.yooai-slider--brands-hover-shadow .swiper.yooai-home-slider .yooai-card:hover {
    z-index: 4;
}

/* Тень при наведении — отдельная настройка (без тени = класс не вешается) */
.yooai-slider--brands-hover-shadow .swiper.yooai-home-slider .yooai-card:hover {
    box-shadow: var(--yoo-brands-shadow-hover, none) !important;
}

.yooai-slider--brands-hover-lift .swiper.yooai-home-slider .yooai-card:hover {
    transform: translateZ(0) translateY(-6px);
}

.yooai-slider--brands-hover-float .swiper.yooai-home-slider .yooai-card:hover {
    transform: translateZ(0) translateY(-5px) scale(1.04);
}

.yooai-slider--brands-hover-bright .swiper.yooai-home-slider .yooai-card:hover .yooai-card__bg img {
    filter: brightness(1.1) saturate(1.12);
}

.yooai-slider--brands-grayscale.yooai-slider--brands-hover-bright .swiper.yooai-home-slider .yooai-card:hover .yooai-card__bg img {
    filter: grayscale(0%) brightness(1.08) saturate(1.1);
    opacity: 1;
}

.yooai-slider--brands-hover-glow .swiper.yooai-home-slider .yooai-card:hover {
    filter: brightness(1.04);
}

/* Режим «Стрелки под слайдами»: стрелки + точки одной строкой под кадрами */
.yooai-controls--below {
    position: static;
    inset: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    pointer-events: none;
}

.yooai-controls--below .yooai-arrow.yooai-nav--below {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px;
    height: 28px;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1;
    transform: none !important;
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
    pointer-events: auto;
    overflow: hidden;
}

.yooai-controls--below .yooai-arrow.yooai-nav--below svg {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

.yooai-controls--below .yooai-arrow.yooai-nav--below:hover {
    background: var(--yoo-accent) !important;
    border-color: var(--yoo-accent) !important;
    color: #ffffff !important;
    transform: none !important;
}

.yooai-controls--below .yooai-arrow.yooai-nav--below:hover svg {
    width: 16px !important;
    height: 16px !important;
    transform: translate(-50%, -50%) !important;
}

.yooai-controls--below .yooai-arrow.swiper-button-disabled {
    opacity: 0.35 !important;
    pointer-events: none;
}

.yooai-controls--below .yooai-arrow.swiper-button-lock,
.yooai-controls--below .yooai-dots.swiper-pagination-lock {
    display: none !important;
}

.yooai-controls--below:has(.swiper-button-lock):not(:has(.yooai-dots:not(.swiper-pagination-lock))),
.yooai-controls--below:has(.swiper-pagination-lock):not(:has(.yooai-arrow:not(.swiper-button-lock))) {
    display: none;
}

.yooai-controls--below .yooai-dots,
.yooai-controls--below .yooai-dots--fraction {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
}

.yooai-controls--below .yooai-dots .swiper-pagination-bullet {
    background: rgba(15, 23, 42, 0.28);
}

.yooai-controls--below .yooai-dots .swiper-pagination-bullet-active,
.yooai-controls--below .yooai-dots--bullets:not(.yooai-dots--fill) .swiper-pagination-bullet-active {
    background: var(--yoo-accent) !important;
}

.yooai-controls--below .yooai-dots--fill .swiper-pagination-bullet-active {
    background: rgba(15, 23, 42, 0.16) !important;
}

.yooai-controls--below .yooai-dots--fill .swiper-pagination-bullet-active::after {
    background: var(--yoo-accent);
}

.yooai-controls--below .yooai-dots--fraction {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Точки брендов под лентой, когда стрелки стоят по бокам */
.yooai-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

.yooai-pager .yooai-dots,
.yooai-pager .yooai-dots--fraction {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
}

.yooai-pager .yooai-dots .swiper-pagination-bullet {
    background: rgba(15, 23, 42, 0.28);
}

.yooai-pager .yooai-dots .swiper-pagination-bullet-active,
.yooai-pager .yooai-dots--bullets:not(.yooai-dots--fill) .swiper-pagination-bullet-active {
    background: var(--yoo-accent) !important;
}

.yooai-pager .yooai-dots--fill .swiper-pagination-bullet-active {
    background: rgba(15, 23, 42, 0.16) !important;
}

.yooai-pager .yooai-dots--fraction {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
}
