/**
 * Owl Carousel v2.3.4
 * Copyright 2013-2018 David Deutsch
 * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
 */

/* Общие стили */
.owl-carousel,
.owl-carousel .owl-item {
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.owl-carousel {
    display: none; /* Скрыто по умолчанию */
    width: 100%;
    z-index: 1;
}

.owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    -moz-backface-visibility: hidden;
}

.owl-carousel .owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    -webkit-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-item,
.owl-carousel .owl-wrapper {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
}

.owl-carousel .owl-item {
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-touch-callout: none;
}

.owl-carousel .owl-item img {
    display: block;
    width: 100%; /* Общий стиль для изображений */
}

.owl-carousel .owl-dots.disabled,
.owl-carousel .owl-nav.disabled {
    display: none;
}

.no-js .owl-carousel,
.owl-carousel.owl-loaded {
    display: block; /* Показываем слайдер после загрузки */
}

/* Кнопки навигации и точки */
.owl-carousel .owl-dot,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-nav .owl-prev {
    cursor: pointer;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
    background: none;
    color: inherit;
    border: none;
    padding: 0 !important;
    font: inherit;
}

.owl-carousel.owl-loading {
    opacity: 0;
    display: block;
}

.owl-carousel.owl-hidden {
    opacity: 0;
}

.owl-carousel.owl-refresh .owl-item {
    visibility: hidden;
}

.owl-carousel.owl-drag .owl-item {
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.owl-carousel.owl-grab {
    cursor: move;
    cursor: grab;
}

.owl-carousel.owl-rtl {
    direction: rtl;
}

.owl-carousel.owl-rtl .owl-item {
    float: right;
}

/* Анимация */
.owl-carousel .animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.owl-carousel .owl-animated-in {
    z-index: 0;
}

.owl-carousel .owl-animated-out {
    z-index: 1;
}

.owl-carousel .fadeOut {
    animation-name: fadeOut;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.owl-height {
    transition: height 0.5s ease-in-out;
}

/* Ленивая загрузка изображений */
.owl-carousel .owl-item .owl-lazy {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.owl-carousel .owl-item .owl-lazy:not([src]),
.owl-carousel .owl-item .owl-lazy[src^=""] {
    max-height: 0;
}

.owl-carousel .owl-item img.owl-lazy {
    transform-style: preserve-3d;
}

/* Видео */
.owl-carousel .owl-video-wrapper {
    position: relative;
    height: 100%;
    background: #000;
}

.owl-carousel .owl-video-play-icon {
    position: absolute;
    height: 80px;
    width: 80px;
    left: 50%;
    top: 50%;
    margin-left: -40px;
    margin-top: -40px;
    background: url(http://new.doctordukin.ru/css/owl.video.play.png) no-repeat;
    cursor: pointer;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    transition: transform 0.1s ease;
}

.owl-carousel .owl-video-play-icon:hover {
    -ms-transform: scale(1.3, 1.3);
    transform: scale(1.3, 1.3);
}

.owl-carousel .owl-video-playing .owl-video-play-icon,
.owl-carousel .owl-video-playing .owl-video-tn {
    display: none;
}

.owl-carousel .owl-video-tn {
    opacity: 0;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: opacity 0.4s ease;
}

.owl-carousel .owl-video-frame {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
}

/* --------------------------------------------
   НАШИ НОВЫЕ СТИЛИ ДЛЯ СЛАЙДЕРА
-------------------------------------------- */

/* Контейнер слайдера */
.slider {
    position: relative;
    overflow: hidden;
}

/* Основное изображение слайдера */
.slider-img {
    position: relative;
    height: 530px;
    overflow: hidden;
}

/* Переопределяем стиль изображения для основного изображения слайдера */
.owl-carousel .owl-item .slider-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Контейнер внутри слайдера */
.slider-img .container {
    position: relative;
    height: 100%;
    z-index: 2; /* Поверх изображения */
    display: flex;
    align-items: center;
}

/* Строка для контента и дополнительного изображения */
.slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Основной контент слайдера (текст) */
.slider-content {
    flex: 0 0 55%;
    max-width: 55%;
    padding-right: 30px;
    color: #fff;
    position: relative;
    z-index: 3;
}

/* Стилизация заголовка */
.slider__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
}

/* Стилизация текста */
.slider__text {
    font-size: 25px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
}

/* Дополнительное изображение справа */
.slider-additional-image {
    flex: 0 0 40%;
    max-width: 40%;
    text-align: right;
    position: relative;
    z-index: 3;
}

.slider-additional-image img {
    max-height: 600px;
    width: auto;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

/* Стили для кнопки/ссылки */
.slider__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #50a679;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.slider__link:hover {
    background-color: #45a049;
    color: #fff;
}

.slider__link img {
    margin-left: 8px;
    width: 16px;
    height: 16px;
}

/* Медиа запросы для адаптивности */
@media (max-width: 1200px) {
    .slider__title {
        font-size: 30px;
    }
    
    .slider__text {
        font-size: 16px;
    }
    
    .slider-additional-image img {
        max-height: 500px;
    }
}

@media (max-width: 992px) {
    .slider-row {
        flex-direction: column;
        justify-content: center;
    }
    
    .slider-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .slider-additional-image {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-top: 20px;
    }
    
    .slider-additional-image img {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .slider-img {
        height: auto;
        min-height: 500px;
    }
    
    .slider__title {
        font-size: 24px;
    }
    
    .slider-additional-image img {
        max-height: 300px;
    }
    
    .slider-title {
        font-size: 18px;
        line-height: 1.2;
        padding: 5px;
    }
}

@media (max-width: 576px) {
    .slider-img {
        min-height: 400px;
    }
    
    .slider-additional-image img {
        max-height: 250px;
    }
    
    .slider__title {
        font-size: 20px;
    }
    
    .slider__text {
        font-size: 14px;
    }
}

/* Специальное правило для Javascript-функции fixSliderHeight */
@media (max-width: 768px) {
    .slider-img.auto-height {
        height: auto !important;
    }
}