/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.5.15,
* Autoprefixer: v10.5.0
* Browsers: last 4 version
*/

/* =========================================
   TOPAZ HERO
   ========================================= */

.topaz-hero {
    --topaz-hero-max-height: 640px;
    --topaz-hero-peek: 36px;
    --topaz-hero-radius: 20px;
    --topaz-hero-ratio: 3.1666667;
        
    --topaz-hero-pagination-color: #b6bdc7;
    --topaz-hero-pagination-active: #d6a51a;

    position: relative;
    width: 100%;
    min-width: 0;
    padding: 16px 0 0;
   /*  margin-top: 20px; */
}


/* Контейнер Swiper */

.topaz-hero .topaz-hero__slider {
    position: relative;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
}


/* Обёртка слайдов */

.topaz-hero .swiper-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
}


/* Отдельный слайд */
.topaz-hero .topaz-hero__slide {
    position: relative;
    -ms-flex-negative: 0;
        flex-shrink: 0;

    width: min(
        calc(100% - var(--topaz-hero-peek) * 2),
        calc(
            var(--topaz-hero-max-height) *
            var(--topaz-hero-ratio)
        )
    );

    height: auto;
    min-width: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

.topaz-hero__picture {
    display: block;
    width: 100%;
    aspect-ratio: var(--topaz-hero-ratio);
    overflow: hidden;
    border-radius: var(--topaz-hero-radius);
}

.topaz-hero__picture .topaz-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    -o-object-fit: contain;
       object-fit: contain;
}

/* Кнопка слайда */

.topaz-hero .topaz-hero__btn {
    position: absolute;
    z-index: 2;

    left: clamp(16px, 2.5vw, 40px);
    bottom: clamp(16px, 2vw, 30px);

    max-width: calc(100% - 32px);
    margin: 0;
}

/* Скрытие незаполненной кнопки */

.topaz-hero .topaz-hero__btn:empty {
    display: none;
}


/* =========================================
   ПАГИНАЦИЯ
   ========================================= */

.topaz-hero .topaz-hero__pagination {
    position: static;
    inset: auto;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;

    display: -webkit-box;

    display: -ms-flexbox;

    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 10px;

    width: 100%;
    height: auto;
    min-height: 36px;

    padding: 10px 16px;
    margin: 12px 0 0;

    -webkit-box-sizing: border-box;

            box-sizing: border-box;
}


/* Неактивная точка */

.topaz-hero .topaz-hero__pagination
.swiper-pagination-bullet {
    display: block;

    width: 12px;
    height: 12px;
    margin: 0;

    background: var(--topaz-hero-pagination-color);
    opacity: 1;
    border-radius: 20px;

    cursor: pointer;

    -webkit-transition:
        width 0.25s ease,
        background-color 0.25s ease;

    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}


/* Активная точка */

.topaz-hero .topaz-hero__pagination
.swiper-pagination-bullet-active {
    width: 34px;

    background: var(--topaz-hero-pagination-active);
}


/* Фокус при управлении с клавиатуры */

.topaz-hero .swiper-pagination-bullet:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* Отключённая пагинация */

.topaz-hero .topaz-hero__pagination[hidden],
.topaz-hero .topaz-hero__pagination.swiper-pagination-lock,
.topaz-hero[hidden] {
    display: none;
}


/* =========================================
   ПЛАНШЕТЫ
   ========================================= */

@media (max-width: 1024px) {

    .topaz-hero {
        --topaz-hero-peek: 28px;
        --topaz-hero-radius: 14px;
        padding-top: 12px;
    }

    .topaz-hero .topaz-hero__btn {
        position: static;

        display: -webkit-box;

        display: -ms-flexbox;

        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;

        width: -webkit-fit-content;

        width: -moz-fit-content;

        width: fit-content;
        min-width: 0;
        max-width: 100%;

        margin: 12px auto 0;
        text-align: center;
        white-space: normal;
    }

    .topaz-hero .topaz-hero__btn:empty {
        display: none;
    }

}


/* =========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================= */

@media (max-width: 767px) {

   .topaz-hero {
        --topaz-hero-peek: 24px;
        --topaz-hero-radius: 10px;
        padding-top: 8px;
    }

    .topaz-hero .topaz-hero__btn {
        min-height: 44px;
        font-size: 14px;
        padding: 12px 20px;
    }

    .topaz-hero .topaz-hero__pagination {
        gap: 8px;
        margin-top: 6px;
    }

    .topaz-hero .topaz-hero__pagination
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .topaz-hero .topaz-hero__pagination
    .swiper-pagination-bullet-active {
        width: 28px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .topaz-hero .swiper-pagination-bullet {
        -webkit-transition: none;
        transition: none;
    }

}