/* Theme Name: site-theme-ref
 * Version: 5.8.7 */

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-Bold.eot');
    src: url('./fonts/GothamPro/GothamPro-Bold.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-Light.eot');
    src: url('./fonts/GothamPro/GothamPro-Light.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-Black.eot');
    src: url('./fonts/GothamPro/GothamPro-Black.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-Italic.eot');
    src: url('./fonts/GothamPro/GothamPro-Italic.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham Pro Narrow';
    src: url('./fonts/GothamPro/GothamProNarrow-Bold.eot');
    src: url('./fonts/GothamPro/GothamProNarrow-Bold.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamProNarrow-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-Medium.eot');
    src: url('./fonts/GothamPro/GothamPro-Medium.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-BoldItalic.eot');
    src: url('./fonts/GothamPro/GothamPro-BoldItalic.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro.eot');
    src: url('./fonts/GothamPro/GothamPro.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-MediumItalic.eot');
    src: url('./fonts/GothamPro/GothamPro-MediumItalic.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-BlackItalic.eot');
    src: url('./fonts/GothamPro/GothamPro-BlackItalic.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham Pro Narrow';
    src: url('./fonts/GothamPro/GothamProNarrow-Medium.eot');
    src: url('./fonts/GothamPro/GothamProNarrow-Medium.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamProNarrow-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('./fonts/GothamPro/GothamPro-LightItalic.eot');
    src: url('./fonts/GothamPro/GothamPro-LightItalic.woff2') format('woff2'),
    url('./fonts/GothamPro/GothamPro-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

.content-top-block .review_block .block {
    max-height: none;
}

@media screen and (max-width: 768px) {
    .content-top-block .review_block .block {
        overflow-y: visible;
    }
}

@media screen and (max-width: 1130px) {
    .content-top-block .review_block .block {
        overflow-y: visible;
    }
}

footer .top .link_block .block {
    /* margin-right: 40px; */
    float: left;
    display: block;
    width: 23%;
}

footer .top .link_block {

    display: flex;
    float: left;
    width: 100%;
}

footer .top .link_block .block {
    margin-right: 1%;
    margin-left: 1%;
}

footer .bottom {
    background: #191F21;
    padding: 25px 0px;
    display: block;
    float: left;
    width: 100%;
}

footer .top .container {
    display: flex;

}

.tel_block span {
    color: #fff;
    margin-top: 35px;

}


footer .top .search_block {
    position: relative;
    width: 100%;
}

footer .top .search_block input {
    border: 1px solid #fff;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    width: 100%;
    padding: 0px 15px;
    font-size: 15px;
    height: 45px;
    box-sizing: border-box;
}

footer .top .search_block input:focus {
    outline: none;
}

footer .top .search_block button {
    position: absolute;
    background: transparent;
    border: 0px;
    right: 5px;
    top: 6px;
}


.pay_block {
    margin-top: 30px;

}

.social {
    margin-top: 10px;
}

footer .top .search_block {
    margin-top: 22px;

}


@media screen and (max-width: 1100px) {
    footer .top .link_block .block {
        /* margin-right: 40px; */
        float: left;
        display: block;
        width: 48%;
    }

    footer .top .link_block .block {
        margin-right: 1%;
        margin-left: 1%;
    }

    footer .top .link_block .block:nth-child(3),
    footer .top .link_block .block:nth-child(4) {
        margin-top: 40px;
    }
}

@media screen and (max-width: 550px) {
    footer .top .link_block .block {
        /* margin-right: 40px; */
        float: left;
        display: block;
        width: 94%;

    }

    footer .top .link_block .block {
        margin-right: 3%;
        margin-left: 3%;
    }

    footer .top .link_block .block:nth-child(3),
    footer .top .link_block .block:nth-child(4) {
        margin-top: 0px;
    }


}

/* modal-video */
.modal-video-wrapper *, .modal-form-wrapper * {
    box-sizing: border-box;
}

.modal-video-wrapper, .modal-form-wrapper {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: baseline;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease-in-out;
    z-index: 9999;
    box-sizing: border-box;
}

.modal-video-wrapper.active, .modal-form-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.modal-video {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 405px;
    margin: auto;
    padding: 40px;
    border-radius: 5px;
    background-color: #fff;
}

.modal-video__close, .modal-form__close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 30px;
    transform: rotate(45deg);
    line-height: 1;
    color: #333;
}

.modal-video__embed {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

@media (max-width: 992px) {
    .modal-video {
        max-width: 100%;
        height: 49vw;
    }

    .slider_all_img .block .hover_block {
        display: none;
    }
}

@media (max-width: 480px) {
    .modal-video-wrapper, modal-form-wrapper {
        padding: 10px;
    }

    .modal-video {
        padding: 0px 0 0;
        height: 54vw;
    }

    .modal-video__close {
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 30px;
        position: relative;
        font-size: 1px;
        color: #fff;
        transform: none;
        border-radius: 5px 5px 0 0;
    }

    .modal-video__close::before {
        content: 'Закрыть';
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        width: 100%;
        height: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 14px;
        color: #fff;
        background-color: #666;
        border-radius: 5px 5px 0 0;
    }

    .modal-video__embed {
        border-radius: 0 0 5px 5px;
    }
}

.modal-form .wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
    display: none !important;
}

/* hover-imgs */
.hover-bgs {
    position: relative;
}

.hover-imgs {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    border-radius: 0 30px 0 0;
}

.hover-imgs__item {
    flex: 1 1 auto;
    display: flex;
    padding: 0 5px;
}

.hover-imgs__item span {
    position: relative;
    margin: auto 0 -5px;
    width: 100%;
    height: 3px;
    background-color: #1a99d6;
    transition: background 0.4s ease;
    z-index: 1;
    border-radius: 1px;
}

.hover-imgs__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0 30px 0 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.4s ease;
}

.hover-imgs__item.active .hover-imgs__bg {
    opacity: 1;
    visibility: visible;
}

.hover-imgs__item.active span {
    background-color: #F9E80E;
}

@media (max-width: 768px) {
    .hover-imgs {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-hide {
        display: none;
    }

}

.more-btn-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.more-btn-wrapper #loadmore {
    background-color: #F9E80E;
    border: 0;
    border-radius: 25px;
    color: #191F21;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.more-btn-wrapper #loadmore:hover {
    transform: scale(1.05);
}

.search-nav {
    display: none;
    width: 100%;
}

.search-nav.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation .nav-links > span {
    background-color: #fff;
}

.slider_services.slider_state .block .title {
    min-height: 44px;
    margin-bottom: 0;
}

/* price tables */
.price-table .tr_header {
    font-size: 19px;
    font-weight: bold;
    text-align: center;
}


/*  Наши клиенты */
.clients .content.block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
}

.clients a {
    width: 100%;
    aspect-ratio: 1 / 1;
    /*filter: grayscale(100%);*/
    /*transition: filter 0.3s ease;*/
}

.clients a:hover {
    /*filter: grayscale(0%);*/
}

.clients img {
    width: 90%;
    aspect-ratio: 1 / 1;
    margin-bottom: 30px;
}

.clients a {
    width: 50%;
    align-content: center;
    text-align: center;
}

@media (max-width: 480px) {
    .clients a {
        filter: unset;
    }
}

/* Наши клиенты на страницах */
.content-clients-block {
    background: #fff;
    /*position: relative;*/
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 6px 0px #8EA2B4;
    margin-bottom: 30px;
}
.content-clients-block h2{
    padding-left: 15px;
}
.content-clients-block .content.block {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 в ряд для десктопа */
    gap: 20px;
    justify-items: center;
    align-items: center;
    padding: 0 15px 15px;
}

.content-clients-block .content a {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /*filter: grayscale(100%);*/
    /*transition: filter 0.3s ease;*/
}

.content-clients-block .content a:hover {
    /*filter: grayscale(0%);*/
}

.content-clients-block img {
    width: 90%;
    height: auto;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .content-clients-block{
        padding: 15px 0;
    }
    .content-clients-block .content.block {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .content-clients-block .content a {
        filter: none; /* отключаем обесцвечивание */
        width: 100%;
    }

    .content-clients-block img {
        width: 100%;
    }
}


/* Вакансии */
.popup_jobs .content_popup {
    background: #fff;
    padding: 50px;
    overflow: auto;
    border-radius: 7px;
}

.popup_jobs .title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    display: block;
}

@media screen and (max-width: 768px) {
    .jobs {
        height: unset !important;
    }
}

/* Оборудование */
.content_block-equipment {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
}

.block-equipment {
    max-width: 250px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.block-equipment img {
    width: 100%;
    aspect-ratio: unset;
}

.block-equipment span {
    text-align: center;
    margin-top: 5px;
}

@media screen and (max-width: 768px) {
    .review_block.equipment {
        height: unset;
    }

    .content_block-equipment {
        padding-bottom: 50px !important;
    }

    .block-equipment {
        max-width: 45%;
    }
}

/* Портфолио */
/* Десктопная версия */
.portfolio-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    /*min-height: 400px; !* Минимальная высота блока *!*/
}

.portfolio-description {
    width: 30%;
    padding-right: 20px;
    height: 100%;
}

.portfolio-gallery {
    width: 65%;
    height: 100%;
}

.portfolio-gallery .slider_all_img {
    border-radius: unset;
    box-shadow: unset;
    padding: 0 15px;
}

.portfolio-gallery .swiper-container {
    height: 100%;
}

.portfolio-gallery .swiper-slide {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    width: calc(50% - 10px) !important; /* Ширина для двух слайдов с отступом */
}

/* Скрываем навигацию если слайдов меньше 3 */
.portfolio-gallery.disabled-nav .btn_wrapp {
    display: none;
}

.portfolio-gallery .gallery-table {
    width: 100%;
    height: 100%;
}

.portfolio-gallery a:hover {
    transform: unset !important;
    transition: unset !important;
}

.portfolio-gallery a {
    padding: 0 !important;
    margin: 0;
    box-shadow: unset !important;
    height: 100%;
}

.portfolio-gallery .img {
    width: 100%;
    position: relative;
}

.portfolio-gallery .img img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Сохраняет пропорции и помещается целиком */
}

.portfolio-gallery .btn_wrapp {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.portfolio-gallery .swiper-button-prev,
.portfolio-gallery .swiper-button-next {
    position: absolute;
    top: 50%;
    /*transform: translateY(-50%);*/
}

.portfolio-gallery .swiper-button-prev {
    left: -20px;
}

.portfolio-gallery .swiper-button-next {
    right: 10px !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .portfolio-item {
        flex-direction: column;
        min-height: auto;
    }

    .portfolio-description {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .portfolio-gallery {
        width: 100%;
        /*height: 300px; !* Фиксированная высота для мобильной галереи *!*/
    }

    /* Стили для мобильного свайпера */
    .portfolio-gallery .swiper-container {
        overflow: visible; /* Позволяет видеть следующий слайд */
    }

    .portfolio-gallery .swiper-slide {
        opacity: 0.4;
        transition: opacity 0.3s;
        width: 100% !important;
    }

    .portfolio-gallery .swiper-slide-active {
        opacity: 1;
    }

    /* Скрываем стандартные кнопки на мобильных */
    .portfolio-gallery .btn_wrapp {
        display: none;
    }

    /* Стили для мобильного лайтбокса */
    .portfolio-gallery .fancybox-mobile {
        touch-action: pan-y pinch-zoom;
    }

    .portfolio-gallery .fancybox-mobile .fancybox-slide {
        padding: 0;
    }

    .portfolio-gallery .fancybox-mobile .fancybox-slide--image {
        display: flex;
        align-items: center;
    }

    /* Индикатор свайпа */
    .portfolio-gallery .portfolio-gallery::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
}

/* Стили для высоких экранов */
@media (min-height: 800px) {
    .portfolio-item {
        /*min-height: 600px;*/
    }
}

/* Общие стили галереи */
.projects-gallery {
    width: 100%;
    position: relative;
    margin: 10px 0 30px;
}

.projects-gallery .slider_all_img {
    width: 100%;
    position: relative;
    padding: 15px 0;
}

.projects-gallery .swiper-container {
    width: calc(100% - 60px); /* Уменьшаем ширину контейнера на 60px (по 30px с каждой стороны) */
    overflow: hidden;
    margin: 0 auto; /* Центрируем контейнер */
}

.projects-gallery .swiper-wrapper {
    display: flex;
    width: 100%;
}

/* Обновляем пропорции слайдов для разных разрешений */
.projects-gallery .swiper-slide {
    height: 0;
    padding-bottom: calc(90% / 6); /* Для 6 изображений в ряд на большом десктопе */
    position: relative;
    width: calc((100% - 50px) / 6); /* Вычисляем ширину слайда с учетом отступов */
}

.projects-gallery .gallery-table {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
}

.projects-gallery .block {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.projects-gallery .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.projects-gallery .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projects-gallery .btn_wrapp {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.projects-gallery .swiper-button-prev,
.projects-gallery .swiper-button-next {
    pointer-events: auto;
    position: absolute;
    top: 50%;
}

.projects-gallery .swiper-button-prev{
    transform: translateY(-50%);
    left: 0;
}

.projects-gallery .swiper-button-next {
    right: 0;
}

.projects-gallery.disabled-nav .btn_wrapp {
    display: none;
}

/* Медиа-запросы для разных разрешений */
@media (max-width: 1400px) {
    .projects-gallery .swiper-slide {
        padding-bottom: calc(90% / 5); /* 5 изображений в ряд на среднем десктопе */
        width: calc((100% - 40px) / 5); /* Вычисляем ширину слайда с учетом отступов */
    }
}

@media (max-width: 1200px) {
    .projects-gallery .swiper-slide {
        padding-bottom: calc(90% / 4); /* 4 изображения в ряд на малом десктопе */
        width: calc((100% - 30px) / 4); /* Вычисляем ширину слайда с учетом отступов */
    }
}

@media (max-width: 768px) {
    .projects-gallery .swiper-slide {
        padding-bottom: calc(90% / 4); /* 4 изображения в ряд */
        width: calc((100% - 30px) / 4);
    }

    .projects-gallery .swiper-button-prev,
    .projects-gallery .swiper-button-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .projects-gallery .swiper-slide {
        padding-bottom: calc(90% / 3); /* 3 изображения в ряд */
        width: calc((100% - 16px) / 3);
    }

    .projects-gallery .slider_all_img {
        margin: 20px 0;
    }
}

@media (max-width: 320px) {
    .projects-gallery .swiper-slide {
        padding-bottom: calc(90% / 2); /* 2 изображения в ряд */
        width: calc((100% - 5px) / 2);
    }
}


/* MEGA MENU */
@media (max-width: 1024px) {
    .header__inner {
        padding: 0;
    }

    .header__bottom {
        background-color: unset;
    }

    .mega-menu-toggle {
        display: none !important;
    }

    #mega-menu-column_1 {
        display: block !important;
    }

    #mega-menu-wrap-column_1 .mega-menu-toggle + #mega-menu-column_1 {
        background: unset !important;
    }

    #mega-menu-wrap-column_1 #mega-menu-column_1 > li.mega-menu-megamenu > ul.mega-sub-menu {
        width: 100%;
        margin: 0;
        background: unset;
    }

    #mega-menu-wrap-column_1 #mega-menu-column_1 li.mega-menu-item > a.mega-menu-link {
        color: #fff !important;
        background: unset !important;
    }

    #mega-menu-wrap-column_1 #mega-menu-column_1 li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-row .mega-menu-column > ul.mega-sub-menu > li.mega-menu-item {
        padding: 5px 15px;
        width: 100%;
    }

    #mega-menu-wrap-column_1 #mega-menu-column_1 > li.mega-menu-megamenu > ul.mega-sub-menu li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
        font-size: 14px;
        text-transform: unset;
    }
}