

/* Основные стили галереи */
.dotnav-gallery-iner {
    position: relative;
    max-width: 800px;
    margin: 0px auto;
    padding: 15px;
    border-radius: 8px;
}

.dotnav-gallery-container-iner {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: #808080;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
    overflow: hidden;
    /*border-radius: 4px;*/
}

.dotnav-gallery-slide-iner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.dotnav-gallery-slide-iner.active {
    opacity: 1;
}

.dotnav-gallery-caption-iner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
}

.dotnav-gallery-caption-iner a {
    color: #fff;
    text-decoration: none;
}

.dotnav-gallery-caption-iner a:hover {
    text-decoration: underline;
}

/* Навигационные кнопки */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(5, 5, 5, 0.11);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn-iner {
    left: 15px;
}

.next-btn-iner {
    right: 15px;
}

/* Точки навигации */
.dotnav-gallery-dots-iner {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.dotnav-gallery-dot-iner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dotnav-gallery-dot-iner.active {
    background-color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .dotnav-gallery-container-iner {
        height: 300px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}


/* Стили для кнопки в меню */
.open-full-gallery-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 10px 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.open-full-gallery-btn:hover {
    color: #4a90e2;
}

/* Стили для модального окна галереи */
.full-gallery-modal {
    position: fixed;
    top: 97px; /* Высота вашего header + nav */
    left: 0;
    width: 100%;
    height: calc(100% - 97px); /* Вычитаем высоту header + nav */
    background-color: rgba(0, 0, 0, 0.733);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto; 
}

.full-gallery-overlay {
    background-color: rgba(39, 39, 39, 0.986);
    width: 80%;
    max-width: 1200px;
    position: relative;
    margin-top: 5px; 
    margin-bottom: 5px; 
}

.close-gallery {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.gallery-container {
    position: relative;
    height: 60vh;
}

.main-slide {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    text-align: center;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.137);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.thumbnails-container {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 5px 0;
    margin-top: 10px;
}

.thumbnail {
    min-width: 100px;
    height: 80px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border 0.3s;
    flex-shrink: 0;
    border-radius: 0%;
}

.thumbnail.active {
    border-color: #ffffff;
}

@media (max-width: 768px) {
    .gallery-container {
        height: 50vh;
    }
    
    .thumbnail {
        min-width: 80px;
        height: 60px;
    }
}
/*
.company .row img {
    width: 120px;         
    height: auto;        
    object-fit: contain;  
    display: block;       
    margin: 0 auto;       
    padding: 5px;         
    justify-content: center;
    align-items: center;
}*/

.company img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.company img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Для мобильных устройств */
@media (max-width: 767px) {
    .company .row {
        margin-bottom: 15px;
    }
}

.promo-block-divider-image {
    padding-left: 25px;
    /*display: flex;*/
    align-items: right;
    justify-content: right;
    width: 250px;         
    height: auto;
    float: right;
}