/* Основной свайпер */
.main-swiper {
    width: 100%;
    padding: 10px 0px;
}

.main-swiper .swiper-slide {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-swiper .slide_sert_image_container {
    display: flex;
    height: 400px;
    padding: 4px;
    border: 1px solid rgba(88,88,88,.2);
}

.main-swiper .slide_sert_image_container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Модальное окно */
.modal-swiper {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-swiper-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    line-height: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: rotate(45deg);
}

.modal-swiper-content {
    width: 90%;
    height: 90%;
    max-width: 1200px;
}

/* Полноэкранный свайпер в модалке */
.modal-fullscreen {
    width: 100%;
    height: 100%;
}

.modal-fullscreen .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.modal-fullscreen .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* Кнопки навигации в модалке */
.modal-fullscreen .swiper-button-prev,
.modal-fullscreen .swiper-button-next {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-fullscreen .swiper-button-prev:hover,
.modal-fullscreen .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-fullscreen .swiper-pagination {
    color: white;
    bottom: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-swiper-content {
        width: 95%;
        height: 95%;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        line-height: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-fullscreen .swiper-button-prev,
    .modal-fullscreen .swiper-button-next {
        width: 45px;
        height: 45px;
    }
}
/* START AI OPTIMIZE BLOCKS */
#certificate_of_the_official_representative a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0px;
}

#certificate_of_the_official_representative a img {
    border-radius: 10px;
    box-shadow: 0 4px 14px 8px rgba(0,0,0,.17);
}

.hits-header {
    margin-bottom: 4px;
}
/* END AI OPTIMIZE BLOCKS */

/* START MESSENGERS BAR */

.messengers_bar {
    width: fit-content;
    height: 40px;
    display: flex;
    gap: 12px;
    position: fixed;
    z-index: 1;
    right: 50px;
    bottom: 100px;
    border-top-right-radius: 40px;
    border-top-left-radius: 10px;
    background-color: rgba(57, 64, 83, 1);
    box-shadow: 0 12px 14px 8px rgba(0,0,0,.17);
    cursor: pointer;
    transition: .3s;
}
.messengers_bar:hover {
    background-color: rgb(110, 99, 98);
}

.messengers_bar_text {
    width: fit-content;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0px 16px;
    font-size: 16px;
    position: relative;
}

.messengers_links_container {
    position: absolute;
    top: -128px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 14px 8px rgba(0,0,0,.17);
}

.messengers_link_item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(57, 64, 83, 1);
    font-size: 16px;
    color: #394053;
}

.messengers_bar_schevron {
    width: 76px;
    background-color: #ED9831;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 40px;
}