/**
 * Owl Carousel v2.3.4
 * Тема + карточки (доработанная версия)
 */

/* ============================= */
/* НАВИГАЦИЯ И ТОЧКИ             */
/* ============================= */

.owl-theme .owl-dots,
.owl-theme .owl-nav {
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.owl-theme .owl-nav {
    margin-top: 10px;
}

.owl-theme .owl-nav [class*=owl-] {
    color: #FFF;
    font-size: 14px;
    margin: 5px;
    padding: 4px 7px;
    background: #D6D6D6;
    display: inline-block;
    cursor: pointer;
    border-radius: 3px;
}

.owl-theme .owl-nav [class*=owl-]:hover {
    background: #869791;
    color: #FFF;
    text-decoration: none;
}

.owl-theme .owl-nav .disabled {
    opacity: .5;
    cursor: default;
}

.owl-theme .owl-nav.disabled + .owl-dots {
    margin-top: 10px;
}

.owl-theme .owl-dots .owl-dot {
    display: inline-block;
}

.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 5px 7px;
    background: #D6D6D6;
    display: block;
    transition: opacity .2s ease;
    border-radius: 30px;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #869791;
}

/* ============================= */
/* ОБЕРТКА OWL                   */
/* ============================= */

.owl-carousel .owl-item {
    display: flex;
    height: 100%;
    background: transparent !important;
}

/* ============================= */
/* КАРТОЧКА                      */
/* ============================= */

.owl-carousel .item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;

    width: 100%;
    height: 100%;

    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all .25s ease;
}

/* ============================= */
/* ИЗОБРАЖЕНИЕ                  */
/* ============================= */

.owl-carousel .item img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 180px;
    margin: 0 auto;
    transition: transform .4s ease;
}

/* ============================= */
/* ЗАГОЛОВОК                    */
/* ============================= */

.owl-carousel .item h3 {
    padding: 12px 14px 16px;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.35;

    min-height: calc(1.35em * 2);
    max-height: calc(1.35em * 2);

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    text-overflow: ellipsis;
}

/* ============================= */
/* HOVER                         */
/* ============================= */

@media (hover: hover) and (pointer: fine) {
    .owl-carousel .item:hover {
        border-color: #d1d5db;
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
        transform: translateY(-2px);
    }

    .owl-carousel .item:hover img {
        transform: scale(1.05);
    }
}

/* ============================= */
/* МОБИЛКА                       */
/* ============================= */

@media (max-width: 768px) {

    .owl-carousel .owl-stage {
        display: flex !important;
    }

    .owl-carousel .owl-item {
        display: flex !important;
        justify-content: center !important;
    }

    .owl-carousel .item {
        max-width: 320px;
    }
}