/* Контейнер */
.sp-module.lang-switcher .mod-languages__select {
  display: flex;
  align-items: center;
}

/* Кнопка текущего языка */
.sp-module.lang-switcher .btn.dropdown-toggle {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #00162B;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* Открытое состояние */
.sp-module.lang-switcher .btn.dropdown-toggle[aria-expanded="true"] {
  text-decoration: underline;
}

/* Выпадающее меню */
.sp-module.lang-switcher .dropdown-menu {
  background: #F4F4F2 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 4px;
  border-radius: 0 !important;
  color: #fff;
}

/* Сбрасываем отступы у li */
.sp-module.lang-switcher .dropdown-menu li {
  margin: 0;
  padding: 0;
}

/* Строка целиком кликабельная */
.sp-module.lang-switcher .dropdown-menu li a,
.sp-module.lang-switcher .dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #00162B;
  text-decoration: none;
  border-radius: 0 !important;
  background: none !important;
}

/* Hover — заливка всей строки */
.sp-module.lang-switcher .dropdown-menu li a:hover,
.sp-module.lang-switcher .dropdown-menu .dropdown-item:hover {
  background: #fff !important;
}

/* Активный язык — такая же ровная заливка */
.sp-module.lang-switcher .dropdown-menu .lang-active a {
  background: #F4F4F2 !important;
  color: #00162B;
}
/* Top bar */
#sp-top-bar,
.sp-topbar {
  position: relative;
  background: #F4F4F2 !important;
  box-shadow: none !important;
  border: none !important;
  z-index: 200!important;
}

/* Header */
/* #sp-header,
.sp-header,
.sp-header.header-sticky,
.sp-sticky-header {
  background: #00162B !important;
  box-shadow: none !important;
  border: none !important;
} */
#sp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100!important;
    background: transparent;
   height: 170px;
    display: flex;
    align-items: center; /* вертикальное центрирование */
}

/* Sticky состояние */
.header-sticky {
    height: 60px !important;
    background: #00162B !important; /* если нужен фон */
    backdrop-filter: blur(6px);
}
.sticky-header-placeholder {
    height: 0px !important;
}


/* Внутренние контейнеры, если у них есть фон */
#sp-top-bar .container,
#sp-header .container {
  background: transparent !important;
}


#sp-top-bar,
#sp-top-bar a,
.sp-topbar,
.sp-topbar a {
  color: #00162B !important;
}
#sp-header,
#sp-header a,
.sp-header,
.sp-header a {
  color: #fff !important;
}
#sp-section-2 {
  background: #00162B !important;
  box-shadow: none !important;
  border: none !important;
}


/* Общий контейнер */
.header-flex {
  heigth: 100px;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Убираем padding слева и справа у колонок в header-left-menu */
.header-left-menu .sppb-row-column,
.header-left-menu .sppb-column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Убираем padding слева и справа у колонок в header-right-menu */
.header-right-menu .sppb-row-column,
.header-right-menu .sppb-column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.header-burger .burger-icon span {
  background-color: #F4F4F2 !important;
  border-color: #F4F4F2 !important;
  outline: none !important;
}


/* ЛОГО — строго по центру */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto; /* фиксированная ширина, не растягивается */
}


/* Кнопка */
.header-book-btn a {
    background: #007bff;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}


/* Мобильная версия */
@media (max-width: 991px) {
.header-left-menu,
  .header-right-menu{
        display: none;
    }

    .header-flex {
        justify-content: space-between;
    }
    .header-burger {
        display: flex; !important;
     }
}
/* ============================================
   СТИЛИ ФУТЕРА #sp-footer
   ============================================ */

#sp-footer {
    background-color: #1a1a1a; /* Темный фон, можно заменить на нужный */
    color: #ffffff;
    padding: 60px 0 30px;
    font-family: inherit;
}

/* Контейнер */
#sp-footer .container-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ряд с колонками - Flexbox сетка */
#sp-footer .sppb-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* Выравнивание по верху */
    margin: 0 -15px;
}

/* Все колонки футера (4 колонки по 25%) */
#sp-footer .sppb-row-column,
#sp-footer [id^="column-wrap-id-"] {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

/* Переопределение inline-стилей SP Page Builder для десктопа */
@media (min-width: 992px) {
    #sp-footer [id^="column-wrap-id-"] {
        max-width: 25% !important;
        flex-basis: 25% !important;
    }
}

/* ============================================
   ЛОГО (первая колонка)
   ============================================ */
#sp-footer #column-wrap-id-927b6db2-dc40-48e3-9761-a238909678ee {
    display: flex;
    align-items: flex-start;
}

#sp-footer .sppb-addon-single-image-container img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* ============================================
   МЕНЮ (вторая колонка)
   ============================================ */
#sp-footer .mod-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#sp-footer .mod-menu li {
    margin: 0;
    padding: 0;
}

#sp-footer .mod-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
}

#sp-footer .mod-menu a:hover {
    color: #c9a96e; /* Золотой/акцентный цвет при наведении */
    padding-left: 5px;
}

/* ============================================
   КОНТАКТЫ (третья колонка)
   ============================================ */
#sp-footer h6.sppb-addon-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}

#sp-footer .sppb-icons-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#sp-footer .sppb-icons-group-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
}

#sp-footer .sppb-icons-group-list i {
    color: #c9a96e; /* Цвет иконок */
    font-size: 16px;
    width: 20px;
    text-align: center;
}

#sp-footer .sppb-icons-label-text {
    color: #ffffff;
    font-size: 14px;
}

/* ============================================
   КАК ДОБРАТЬСЯ (четвертая колонка)
   ============================================ */
#sp-footer .sppb-addon-text-block p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

/* ============================================
   COPYRIGHT
   ============================================ */
#sp-footer .sp-copyright {
    display: block;
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #888888;
    width: 100%;
}

/* ============================================
   АДАПТАЦИЯ ПОД ПЛАНШЕТЫ (max-width: 991px)
   2 колонки: Лого+Меню | Контакты+Как добраться
   ============================================ */
@media (max-width: 991px) {
    #sp-footer .sppb-row-column,
    #sp-footer [id^="column-wrap-id-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        margin-bottom: 50px;
    }
    
    /* Лого и меню в первой строке, контакты и карта во второй */
    #sp-footer #column-wrap-id-927b6db2-dc40-48e3-9761-a238909678ee,
    #sp-footer #column-wrap-id-675a32a2-ce9e-4aae-9b50-14213cffa683 {
        order: 0;
    }
    
    #sp-footer #column-wrap-id-b79c4529-c3d3-4263-9b58-bac210e1ba7d,
    #sp-footer #column-wrap-id-8f0be907-5fe2-4ee0-90a0-96d854504eae {
        order: 1;
    }
}

/* ============================================
   АДАПТАЦИЯ ПОД МОБИЛЬНЫЕ (max-width: 767px)
   1 колонка, все по центру
   ============================================ */
@media (max-width: 767px) {
    #sp-footer {
        padding: 40px 0 20px;
    }
  #sp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100!important;
    background: transparent;
   height: 250px;
    display: flex;
    align-items: center; /* вертикальное центрирование */
}
    
    #sp-footer .sppb-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    #sp-footer .sppb-row-column,
    #sp-footer [id^="column-wrap-id-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
    }
    
    /* Центрирование логотипа */
    #sp-footer #column-wrap-id-927b6db2-dc40-48e3-9761-a238909678ee {
        justify-content: center;
        margin-bottom: 40px;
    }
    
    #sp-footer .sppb-addon-single-image-container img {
        margin: 0 auto;
    }
    
    /* Центрирование меню */
    #sp-footer .mod-menu {
        align-items: center;
    }
    
    /* Центрирование контактов */
    #sp-footer .sppb-icons-group-list li {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Заголовки по центру */
    #sp-footer h6.sppb-addon-title {
        text-align: center;
        margin-bottom: 15px;
    }
    
    /* Текст "Как добраться" по центру */
    #sp-footer .sppb-addon-text-block {
        text-align: center;
    }
    
    #sp-footer .sp-copyright {
        margin-top: 20px;
        padding: 20px 15px 0;
        font-size: 12px;
    }
}

/* ============================================
   МОБИЛЬНЫЕ УСТРОЙСТВА (max-width: 575px)
   ============================================ */
@media (max-width: 575px) {
    #sp-footer .container-inner {
        padding: 0 15px;
    }
    
    #sp-footer h6.sppb-addon-title {
        font-size: 14px;
    }
    
    #sp-footer .mod-menu a,
    #sp-footer .sppb-icons-label-text,
    #sp-footer .sppb-addon-text-block p {
        font-size: 13px;
    }
}

/* Левая часть меню */
.header-left-menu {

    align-items: center;
    gap: 24px;
    flex: 1; /* занимает всё доступное слева */
}

/* Правая часть меню */
.header-right-menu {

    align-items: center;
    gap: 24px;
    flex: 1; /* занимает всё доступное справа */
    justify-content: flex-end; /* меню и кнопка прижаты вправо */
}
.convertforms.cf-success .cf-response {
background-color:#3FA2FF!important;
  
}
#cf_1 {
    width: fit-content;
    margin: 0 auto;
}

/* Общая обёртка галереи — занимает всю ширину контейнера страницы */
.gallery {
position: relative;
width: 100%;
max-width: 1400px; /* при необходимости */
margin: 0 auto;
z-index: 1;
}

/* Сетка галереи — можно переопределять отдельно */
.gallery-grid {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 15px;
height: 600px;
margin-top: 20px;
}

/* Элемент галереи */
.gallery-item {
position: relative;
overflow: hidden;
border-radius: 15px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
transition: transform .3s ease, box-shadow .3s ease;
background: #00162B;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
.gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
.gallery-item { height: 300px; }
}

/* ----- Лайтбокс: всегда поверх всего контента ----- */
/* фиксированное позиционирование full-screen + высокий z-index */
.lightbox {
position: fixed !important;
inset: 0; /* сокращённый вариант top:0; right:0; bottom:0; left:0; */
width: 100%;
height: 100%;
display: none;
background: rgba(0,0,0,0.95);
z-index: 99999; /* достаточно высокий, чтобы перекрыть всё */
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity .25s ease;
}

/* активный лайтбокс */
.lightbox.active {
display: flex;
opacity: 1;
}

/* Контент внутри центрирован */
.lightbox-content {
position: relative;
max-width: 1200px;
max-height: 90%;
width: 100%;
padding: 20px;
display: flex;
align-items: center;
justify-content: center;
z-index: 100000; /* выше чем базовый .lightbox элементы */
}

/* Изображение масштабируемое */
.lightbox-img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
border-radius: 12px;
user-select: none;
-webkit-user-drag: none;
box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* Кнопки управления — сделаем большие кликабельные зоны */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
position: absolute;
background: rgba(255,255,255,0.06);
color: #fff;
border: none;
cursor: pointer;
width: 56px;
height: 56px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 100001;
transition: background .15s ease, transform .15s ease;
backdrop-filter: blur(6px);
}

/* положение */
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); width: 72px; height: 72px; border-radius: 12px; }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); width: 72px; height: 72px; border-radius: 12px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.14); transform: scale(1.05); }

/* Счётчик и подсказки */
.lightbox-counter {
position: absolute;
bottom: 28px;
left: 50%;
transform: translateX(-50%);
z-index: 100001;
color: #fff;
background: rgba(0,0,0,0.5);
padding: 8px 14px;
border-radius: 20px;
backdrop-filter: blur(6px);
}

/* Индикатор загрузки */
.lightbox .loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 100002;
width: 42px;
height: 42px;
border: 3px solid rgba(255,255,255,0.15);
border-top-color: #fff;
border-radius: 50%;
animation: spin .8s linear infinite;
}

/* Анимация вращения */
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Удобство для доступности: скрытие скролла при открытом лайтбоксе делаем через класс на body */
body.lightbox-open { overflow: hidden !important; }


/*лого подмена в меню*/
.offcanvas-menu .logo a > img { display: none !important; }
.offcanvas-menu .logo a::before {
content: "";
display: inline-block;
width: 200px;
height: 50px;
background-image: url("/files/main/logo_black.svg");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
vertical-align: middle;
}

.btn_menu_custom {
  background-color: var(--sppb-airblue);
  color: #ffffff;            /* белый текст */
  border: none;
  border-radius: 4px;        /* скругление 4px */
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 20px;
}
