/* ==========================================================
   Hero-карусель главной страницы
   Разметка: template-parts/gallery-slider.php
   Логика:   js/hero-slider.js
   Слайды лежат стопкой и переключаются кроссфейдом со сдвигом —
   никакой ленты translateX, поэтому нет «перемотки» на последнем слайде.
   ========================================================== */

/* Секция: оставляем верхний отступ темы, но не обрезаем тень карточки */
.gallery-slider.hero-slider {
    overflow: visible;
    padding-bottom: 14px;
}

.hs {
    --hs-coral: #FF6F61;
    --hs-yellow: #FFC107;
    --hs-radius: 24px;
    --hs-interval: 5500ms;
    --hs-dir: 1;
    --hs-drag: 0px;

    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--hs-radius);
    overflow: hidden;
    isolation: isolate;
    /* тёплая тень в цвет сайта */
    box-shadow: 0 18px 40px -14px rgba(255, 111, 97, .45), 0 6px 18px rgba(0, 0, 0, .10);
    background: #fff;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.hs:focus { outline: none; }
.hs:focus-visible { outline: 3px solid var(--hs-yellow); outline-offset: 3px; }

/* ---------- Область слайдов ---------- */
.hs__viewport {
    position: relative;
    aspect-ratio: 3 / 1;
    /* пастельная подложка, пока грузится фото */
    background: linear-gradient(120deg, #fff1d1, #ffe0dc 55%, #e5ecff);
    touch-action: pan-y;
    cursor: grab;
}
.hs.is-dragging .hs__viewport { cursor: grabbing; }

.hs__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transform: translateX(calc(var(--hs-dir) * 5%));
    transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
}
/* Уходящий слайд остаётся непрозрачным под входящим — без «провала» яркости */
.hs__slide.is-leaving {
    visibility: visible;
    opacity: 1;
    z-index: 1;
    transform: translateX(calc(var(--hs-dir) * -5%));
}
.hs__slide.is-active {
    visibility: visible;
    opacity: 1;
    z-index: 2;
    transform: translateX(var(--hs-drag));
}
.hs.is-dragging .hs__slide.is-active { transition: none; }

/* Затемнение снизу под подпись и точки */
.hs__slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(28, 20, 50, .62), rgba(28, 20, 50, 0));
    pointer-events: none;
}

.hs__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%; /* лица детей обычно в верхней части кадра */
    display: block;
    transform: scale(1.08);
    transition: transform 6.5s ease-out, opacity .5s ease;
    -webkit-user-drag: none;
    pointer-events: none;
}
.hs__slide.is-active .hs__img,
.hs__slide.is-leaving .hs__img { transform: scale(1); }

/* Плавное появление фото после подгрузки (только когда JS запущен) */
.hs.is-ready .hs__img:not(.is-loaded) { opacity: 0; }

/* ---------- Подпись (по центру снизу) ---------- */
.hs__caption {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 38px;
    width: max-content;
    max-width: min(84%, 760px);
    margin: 0 auto;
    padding: 10px 20px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    font: 700 clamp(15px, 2vw, 24px) / 1.25 'Poppins', 'Comfortaa', sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    backdrop-filter: blur(10px) saturate(1.4);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease .35s, transform .6s ease .35s;
}
.hs__slide.is-active .hs__caption {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Стрелки ---------- */
.hs__arrow {
    position: absolute;
    z-index: 8; /* выше caption и progress */
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 50%;
    cursor: pointer;
    color: var(--hs-coral);
    /* непрозрачный белый — не сливается со светлым фото */
    background: #fff;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .18),
        0 6px 16px rgba(0, 0, 0, .28),
        0 0 0 1px rgba(0, 0, 0, .06);
    transition: background .2s ease, color .2s ease, border-color .2s ease,
                box-shadow .2s ease, transform .2s ease, opacity .25s ease;
    transform-origin: center center;
    -webkit-tap-highlight-color: transparent;
}
.hs__arrow svg {
    display: block;
    flex-shrink: 0;
}
.hs__arrow--prev { left: 16px; }
.hs__arrow--next { right: 16px; }
/* Наведение только на саму стрелку */
.hs__arrow:hover {
    background: var(--hs-coral);
    border-color: var(--hs-coral);
    color: #fff;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, .22),
        0 8px 20px rgba(0, 0, 0, .3);
    transform: scale(1.06);
}
.hs__arrow:active {
    transform: scale(.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.hs__arrow:focus-visible {
    outline: 3px solid var(--hs-yellow);
    outline-offset: 2px;
}

/* На компьютере стрелки появляются при наведении, на телефоне видны всегда */
@media (hover: hover) and (pointer: fine) {
    .hs__arrow { opacity: 0; }
    .hs:hover .hs__arrow,
    .hs:focus-within .hs__arrow { opacity: 1; }
}

/* ---------- Точки (плоские, без подложки) ---------- */
.hs__controls {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    pointer-events: none; /* клики ловят только сами точки */
}
.hs__dots { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.hs__dot {
    position: relative;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, .65);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    transition: width .35s ease, background .35s ease;
}
.hs__dot::after { content: ""; position: absolute; inset: -9px -4px; } /* увеличенная область нажатия */
.hs__dot:hover { background: #fff; }
.hs__dot.is-active { width: 28px; background: var(--hs-yellow); }

/* ---------- Полоска прогресса (до следующего слайда) ---------- */
.hs__progress {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, .18);
}
.hs__progress i {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--hs-yellow), var(--hs-coral));
}
.hs.is-playing .hs__progress i { animation: hs-progress var(--hs-interval) linear forwards; }
.hs.is-paused .hs__progress i { animation-play-state: paused; }

@keyframes hs-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ---------- Один слайд — управление не нужно ---------- */
.hs.is-single .hs__slide { transition: none; }

/* ---------- Планшеты ---------- */
@media (max-width: 900px) {
    .hs { --hs-radius: 20px; }
    .hs__viewport { aspect-ratio: 2.3 / 1; }
    .hs__caption { bottom: 34px; padding: 8px 16px; border-radius: 14px; }
    .hs__arrow { width: 36px; height: 36px; margin-top: -18px; }
    .hs__arrow svg { width: 16px; height: 16px; }
    .hs__arrow--prev { left: 10px; }
    .hs__arrow--next { right: 10px; }

    .hs.hs-astyle--glass .hs__arrow {
        width: 40px;
        height: 30px;
        margin-top: -15px;
    }
    .hs.hs-astyle--glass.hs-arrows--caption .hs__arrow {
        width: 38px;
        height: 30px;
        margin-top: 0;
    }
    .hs.hs-astyle--pill .hs__arrow {
        width: 42px;
        height: 30px;
        margin-top: -15px;
    }
    .hs.hs-astyle--pill.hs-arrows--caption .hs__arrow {
        width: 40px;
        height: 30px;
        margin-top: 0;
    }
}

/* ---------- Телефоны ---------- */
@media (max-width: 600px) {
    .hs { --hs-radius: 16px; }
    .hs__viewport { aspect-ratio: 16 / 11; }
    .hs__img { object-position: 50% 22%; }
    .hs__caption {
        bottom: 28px;
        max-width: calc(100% - 24px);
        padding: 7px 14px;
        border-radius: 12px;
        font-size: 14px;
    }
    .hs__controls { bottom: 9px; }
    .hs__dots { gap: 7px; }
    .hs__dot { width: 8px; height: 8px; }
    .hs--many .hs__controls { display: none; }
    .hs--many .hs__caption { bottom: 14px; }
    .hs__dot.is-active { width: 22px; }
    .hs__arrow {
        width: 28px;
        height: 28px;
        margin-top: -14px;
        background: #fff;
        border: 1.5px solid #fff;
        color: var(--hs-coral);
        box-shadow:
            0 1px 4px rgba(0, 0, 0, .28),
            0 3px 10px rgba(0, 0, 0, .3),
            0 0 0 1px rgba(0, 0, 0, .1);
        opacity: 1 !important;
    }
    .hs__arrow svg { width: 14px; height: 14px; }
    .hs__arrow--prev { left: 6px; }
    .hs__arrow--next { right: 6px; }
    .hs__arrow:active {
        background: var(--hs-coral);
        border-color: var(--hs-coral);
        color: #fff;
    }
}

/* ---------- Если пользователь просит меньше анимации ---------- */
@media (prefers-reduced-motion: reduce) {
    .hs__slide,
    .hs__img,
    .hs__caption { transition-duration: .01ms !important; transition-delay: 0s !important; }
    .hs__img,
    .hs__slide,
    .hs__slide.is-leaving { transform: none !important; }
    .hs__progress { display: none; }
}

/* ========== Варианты навигации и заголовка (Customizer) ========== */

/* Без стрелок и точек — только полоска прогресса */
.hs.hs--no-nav .hs__arrow,
.hs.hs--no-nav .hs__controls {
    display: none !important;
}

/* --- Положение заголовка --- */
.hs.hs-cap--none .hs__caption {
    display: none !important;
}

/* Снизу на всю ширину, прижат к низу (над полоской прогресса) */
.hs.hs-cap--bottom-full .hs__caption {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: 14px 24px 18px;
    text-align: center;
}
.hs.hs-cap--bottom-full .hs__progress {
    /* полоска поверх нижней кромки баннера */
    z-index: 7;
}

/* Снизу по центру — исходный компактный вид */
.hs.hs-cap--bottom-center .hs__caption {
    left: 0;
    right: 0;
    bottom: 38px;
    width: max-content;
    max-width: min(84%, 760px);
    margin: 0 auto;
}

/* Сверху по центру */
.hs.hs-cap--top-center .hs__caption {
    top: 20px;
    bottom: auto;
    left: 0;
    right: 0;
    width: max-content;
    max-width: min(84%, 760px);
    margin: 0 auto;
    transform: translateY(-14px);
}
.hs.hs-cap--top-center .hs__slide.is-active .hs__caption {
    transform: translateY(0);
}

/* Сверху на всю ширину */
.hs.hs-cap--top-full .hs__caption {
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: 14px 24px 16px;
    text-align: center;
    transform: translateY(-14px);
}
.hs.hs-cap--top-full .hs__slide.is-active .hs__caption {
    transform: translateY(0);
}

/* --- Стили заголовка --- */

/* Баннер: тёмный градиент, расширенный */
.hs.hs-style--banner .hs__caption {
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .72) 100%);
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
    font-weight: 700;
}
.hs.hs-cap--top-full.hs-style--banner .hs__caption {
    background: linear-gradient(0deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .72) 100%);
}

/* Стекло (исходный) */
.hs.hs-style--glass .hs__caption {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(10px) saturate(1.4);
    backdrop-filter: blur(10px) saturate(1.4);
}

/* Плотная подложка */
.hs.hs-style--solid .hs__caption {
    background: rgba(20, 24, 40, .88);
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

/* Минимальный: только текст */
.hs.hs-style--minimal .hs__caption {
    background: transparent;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding-left: 12px;
    padding-right: 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9);
}

/* Адаптив для full-режимов */
@media (max-width: 600px) {
    .hs.hs-cap--bottom-full .hs__caption,
    .hs.hs-cap--top-full .hs__caption {
        padding: 10px 14px 14px;
        font-size: 14px;
    }
    .hs.hs-cap--bottom-center .hs__caption {
        bottom: 22px;
    }
}

/* Когда стрелки у заголовка — оставляем место под кнопки, текст не перекрывается */
.hs.hs-arrows--caption.hs-cap--bottom-full .hs__caption,
.hs.hs-arrows--caption.hs-cap--top-full .hs__caption {
    padding-left: 56px;
    padding-right: 56px;
}

/* Широкие стрелки (стекло / таблетка) — больше места под кнопки на ПК */
.hs.hs-arrows--caption.hs-astyle--glass.hs-cap--bottom-full .hs__caption,
.hs.hs-arrows--caption.hs-astyle--glass.hs-cap--top-full .hs__caption,
.hs.hs-arrows--caption.hs-astyle--pill.hs-cap--bottom-full .hs__caption,
.hs.hs-arrows--caption.hs-astyle--pill.hs-cap--top-full .hs__caption {
    padding-left: 72px;
    padding-right: 72px;
}

/* Компактный заголовок по центру: не шире, чем место между стрелками */
.hs.hs-arrows--caption.hs-cap--bottom-center .hs__caption,
.hs.hs-arrows--caption.hs-cap--top-center .hs__caption {
    max-width: min(70%, 640px);
}

.hs.hs-arrows--caption.hs-astyle--glass.hs-cap--bottom-center .hs__caption,
.hs.hs-arrows--caption.hs-astyle--glass.hs-cap--top-center .hs__caption,
.hs.hs-arrows--caption.hs-astyle--pill.hs-cap--bottom-center .hs__caption,
.hs.hs-arrows--caption.hs-astyle--pill.hs-cap--top-center .hs__caption {
    max-width: min(68%, 600px);
}

@media (max-width: 900px) {
    .hs.hs-arrows--caption.hs-astyle--glass.hs-cap--bottom-full .hs__caption,
    .hs.hs-arrows--caption.hs-astyle--glass.hs-cap--top-full .hs__caption,
    .hs.hs-arrows--caption.hs-astyle--pill.hs-cap--bottom-full .hs__caption,
    .hs.hs-arrows--caption.hs-astyle--pill.hs-cap--top-full .hs__caption {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* Мобильный: как и было — всё супер, чуть компактнее */
@media (max-width: 600px) {
    .hs.hs-arrows--caption.hs-cap--bottom-full .hs__caption,
    .hs.hs-arrows--caption.hs-cap--top-full .hs__caption {
        padding-left: 36px;
        padding-right: 36px;
        font-size: 13px;
        line-height: 1.3;
    }
    .hs.hs-arrows--caption.hs-astyle--glass.hs-cap--bottom-full .hs__caption,
    .hs.hs-arrows--caption.hs-astyle--glass.hs-cap--top-full .hs__caption,
    .hs.hs-arrows--caption.hs-astyle--pill.hs-cap--bottom-full .hs__caption,
    .hs.hs-arrows--caption.hs-astyle--pill.hs-cap--top-full .hs__caption {
        padding-left: 42px;
        padding-right: 42px;
    }
}

/* ========== Положение стрелок (Customizer) ========== */

/* По центру блока — исходное поведение (top: 50%) */
.hs.hs-arrows--middle .hs__arrow {
    top: 50%;
    bottom: auto;
    margin-top: -24px;
}
/* при hover scale не сбивает центрирование */
.hs.hs-arrows--middle .hs__arrow:hover {
    transform: scale(1.06);
}
.hs.hs-arrows--middle .hs__arrow:active {
    transform: scale(.96);
}

/* У заголовка: стрелки на уровне полосы caption, по бокам */
.hs.hs-arrows--caption .hs__arrow {
    top: auto;
    margin-top: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #fff;
    color: var(--hs-coral);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, .28),
        0 4px 12px rgba(0, 0, 0, .32),
        0 0 0 1px rgba(0, 0, 0, .1);
}
.hs.hs-arrows--caption .hs__arrow:hover {
    background: var(--hs-coral);
    border-color: var(--hs-coral);
    color: #fff;
    transform: scale(1.08);
}
.hs.hs-arrows--caption .hs__arrow:active {
    transform: scale(.95);
}

/* Заголовок снизу (full / center) → стрелки у нижней полосы */
.hs.hs-arrows--caption.hs-cap--bottom-full .hs__arrow,
.hs.hs-arrows--caption.hs-cap--bottom-center .hs__arrow {
    bottom: 12px;
}
.hs.hs-arrows--caption.hs-cap--bottom-full .hs__arrow {
    /* над полоской прогресса, внутри зоны баннера */
    bottom: 14px;
}

/* Заголовок сверху → стрелки у верхней полосы */
.hs.hs-arrows--caption.hs-cap--top-full .hs__arrow,
.hs.hs-arrows--caption.hs-cap--top-center .hs__arrow {
    top: 12px;
    bottom: auto;
}

/* Если заголовок скрыт — fallback в середину */
.hs.hs-arrows--caption.hs-cap--none .hs__arrow {
    top: 50%;
    bottom: auto;
    margin-top: -20px;
}

.hs.hs-arrows--caption .hs__arrow--prev { left: 12px; }
.hs.hs-arrows--caption .hs__arrow--next { right: 12px; }

@media (max-width: 600px) {
    .hs.hs-arrows--caption .hs__arrow {
        width: 26px;
        height: 26px;
        background: #fff;
        border: 1.5px solid #fff;
        color: var(--hs-coral);
        box-shadow:
            0 1px 4px rgba(0, 0, 0, .3),
            0 3px 10px rgba(0, 0, 0, .32),
            0 0 0 1px rgba(0, 0, 0, .1);
        opacity: 1 !important;
    }
    .hs.hs-arrows--caption .hs__arrow svg {
        width: 13px;
        height: 13px;
    }
    .hs.hs-arrows--caption .hs__arrow--prev { left: 6px; }
    .hs.hs-arrows--caption .hs__arrow--next { right: 6px; }
    .hs.hs-arrows--caption.hs-cap--bottom-full .hs__arrow,
    .hs.hs-arrows--caption.hs-cap--bottom-center .hs__arrow {
        bottom: 8px;
    }
    .hs.hs-arrows--caption.hs-cap--top-full .hs__arrow,
    .hs.hs-arrows--caption.hs-cap--top-center .hs__arrow {
        top: 6px;
    }
}

/* На тач-устройствах стрелки всегда видны (не зависят от hover родителя) */
@media (hover: none), (pointer: coarse) {
    .hs__arrow {
        opacity: 1 !important;
        background: #fff;
        border-color: #fff;
        color: var(--hs-coral);
    }
}

/* ========== Стили стрелок (Customizer: slider_arrow_style) ========== */

/* --- Стекло (iOS): узкие по высоте, frosted glass --- */
.hs.hs-astyle--glass .hs__arrow {
    width: 46px;
    height: 36px;
    margin-top: -18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .3);
    color: #fff;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
    /* иконка строго по центру кнопки */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.hs.hs-astyle--glass .hs__arrow svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    /* оптический центр шеврона (path чуть смещён вправо в viewBox) */
    transform: translateX(0);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4));
}
.hs.hs-astyle--glass .hs__arrow--prev svg {
    transform: translateX(-1px);
}
.hs.hs-astyle--glass .hs__arrow--next svg {
    transform: translateX(1px);
}
.hs.hs-astyle--glass .hs__arrow:hover {
    background: rgba(255, 255, 255, .42);
    border-color: rgba(255, 255, 255, .65);
    color: #fff;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255, 255, 255, .5);
    transform: scale(1.05);
}
.hs.hs-astyle--glass .hs__arrow:active {
    background: rgba(255, 255, 255, .22);
    transform: scale(.96);
}

/* стекло + у заголовка */
.hs.hs-astyle--glass.hs-arrows--caption .hs__arrow {
    width: 44px;
    height: 36px;
    margin-top: 0;
}

/* ПК: стрелки по вертикали ровно в центре полосы заголовка */
@media (min-width: 601px) {
    .hs.hs-astyle--glass.hs-arrows--caption.hs-cap--bottom-full .hs__arrow,
    .hs.hs-astyle--pill.hs-arrows--caption.hs-cap--bottom-full .hs__arrow {
        /* caption: padding 14+18 + строка ~24 ≈ 56px; progress 4px */
        bottom: 14px;
        top: auto;
    }
    .hs.hs-astyle--glass.hs-arrows--caption.hs-cap--bottom-center .hs__arrow,
    .hs.hs-astyle--pill.hs-arrows--caption.hs-cap--bottom-center .hs__arrow {
        bottom: 14px;
        top: auto;
    }
    .hs.hs-astyle--glass.hs-arrows--caption.hs-cap--top-full .hs__arrow,
    .hs.hs-astyle--glass.hs-arrows--caption.hs-cap--top-center .hs__arrow,
    .hs.hs-astyle--pill.hs-arrows--caption.hs-cap--top-full .hs__arrow,
    .hs.hs-astyle--pill.hs-arrows--caption.hs-cap--top-center .hs__arrow {
        top: 14px;
        bottom: auto;
    }
    /* одинаковые отступы слева/справа */
    .hs.hs-astyle--glass.hs-arrows--caption .hs__arrow--prev,
    .hs.hs-astyle--pill.hs-arrows--caption .hs__arrow--prev {
        left: 16px;
    }
    .hs.hs-astyle--glass.hs-arrows--caption .hs__arrow--next,
    .hs.hs-astyle--pill.hs-arrows--caption .hs__arrow--next {
        right: 16px;
    }
}

/* --- Классика: круглые белые (базовый вид из .hs__arrow) --- */
.hs.hs-astyle--classic .hs__arrow {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #fff;
    color: var(--hs-coral);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .18),
        0 6px 16px rgba(0, 0, 0, .28),
        0 0 0 1px rgba(0, 0, 0, .06);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.hs.hs-astyle--classic .hs__arrow:hover {
    background: var(--hs-coral);
    border-color: var(--hs-coral);
    color: #fff;
}
.hs.hs-astyle--classic.hs-arrows--caption .hs__arrow {
    width: 40px;
    height: 40px;
    margin-top: 0;
}

/* --- Таблетка: вытянутые по горизонтали --- */
.hs.hs-astyle--pill .hs__arrow {
    width: 48px;
    height: 34px;
    margin-top: -17px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .92);
    color: var(--hs-coral);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.hs.hs-astyle--pill .hs__arrow svg {
    width: 18px;
    height: 18px;
}
.hs.hs-astyle--pill .hs__arrow:hover {
    background: var(--hs-coral);
    border-color: var(--hs-coral);
    color: #fff;
}
.hs.hs-astyle--pill.hs-arrows--caption .hs__arrow {
    width: 44px;
    height: 32px;
    margin-top: 0;
}

/* --- Минимальные: только шеврон без подложки --- */
.hs.hs-astyle--minimal .hs__arrow {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.hs.hs-astyle--minimal .hs__arrow svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)) drop-shadow(0 0 1px rgba(0, 0, 0, .4));
}
.hs.hs-astyle--minimal .hs__arrow:hover {
    background: transparent;
    color: var(--hs-yellow);
    transform: scale(1.12);
    box-shadow: none;
}
.hs.hs-astyle--minimal.hs-arrows--caption .hs__arrow {
    width: 32px;
    height: 32px;
    margin-top: 0;
}

/* ---- Мобильные размеры по стилям ---- */
@media (max-width: 600px) {
    /* Стекло: широкие, но достаточная высота для пальца */
    .hs.hs-astyle--glass .hs__arrow {
        width: 36px;
        height: 28px;
        margin-top: -14px;
    }
    .hs.hs-astyle--glass .hs__arrow svg {
        width: 15px;
        height: 15px;
    }
    .hs.hs-astyle--glass.hs-arrows--caption .hs__arrow {
        width: 34px;
        height: 28px;
    }

    .hs.hs-astyle--classic .hs__arrow {
        width: 28px;
        height: 28px;
        margin-top: -14px;
        border-width: 1.5px;
    }
    .hs.hs-astyle--classic .hs__arrow svg {
        width: 14px;
        height: 14px;
    }
    .hs.hs-astyle--classic.hs-arrows--caption .hs__arrow {
        width: 26px;
        height: 26px;
    }

    /* Таблетка */
    .hs.hs-astyle--pill .hs__arrow {
        width: 38px;
        height: 28px;
        margin-top: -14px;
    }
    .hs.hs-astyle--pill .hs__arrow svg {
        width: 15px;
        height: 15px;
    }
    .hs.hs-astyle--pill.hs-arrows--caption .hs__arrow {
        width: 36px;
        height: 28px;
    }

    .hs.hs-astyle--minimal .hs__arrow {
        width: 28px;
        height: 28px;
        margin-top: -14px;
    }
    .hs.hs-astyle--minimal .hs__arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* На тач-устройствах стекло чуть плотнее, чтобы читалось без hover */
@media (hover: none), (pointer: coarse) {
    .hs.hs-astyle--glass .hs__arrow {
        background: rgba(255, 255, 255, .38);
        border-color: rgba(255, 255, 255, .55);
        color: #fff;
        opacity: 1 !important;
    }
}
