
/* =========================================
Модуль меню главной страницы
========================================= */
.desktop-bg-slider,
.mobile-bg-slider {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
overflow: hidden;
}

.desktop-slide-img,
.mobile-slide-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center center;
display: block;
will-change: opacity;
opacity: 0;
transition: opacity 2.8s linear;
pointer-events: none;
}

.desktop-slide-img.active,
.mobile-slide-img.active {
opacity: 1;
pointer-events: auto;
}

/* Контейнер слайдера-меню */
.desktop-slider-menu {
position: relative;
width: 100%;
max-width: 1200px;
height: 650px;
margin: 0 auto;
overflow: hidden;
background-color: #1a1a1a;
}

/* --- Стили левого меню (Главное меню) --- */
.desktop-left-menu {
position: absolute;
left: calc(var(--left-menu-offset-left, 30px));
top: 50%;
transform: translateY(-50%);
z-index: 10;
display: flex;
flex-direction: column;
gap: 5px;
width: var(--left-menu-width, 280px);
max-width: 320px;
}

.desktop-menu-btn,
.desktop-menu-btn-link {
padding: 16px 24px;
text-align: left;
font-size: 16px;
line-height: 1.2;
background-color: rgba(20, 20, 20, 0.20);
color: #ffffff;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
width: 100%;
box-sizing: border-box;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 4px;
transition: all 0.3s ease;
}

.desktop-menu-btn:hover,
.desktop-menu-btn-link:hover {
background-color: rgba(20, 20, 20, 0.9);
border-color: rgba(255, 255, 255, 0.5);
color: #ffffff;
}

.desktop-menu-btn.active,
.desktop-menu-btn-link.active {
background-color: rgba(20, 20, 20, 0.95);
border-color: #ffffff;
color: #ffffff;
font-weight: 600;
}

.arrow {
font-size: 18px;
line-height: 1;
color: #e67e23;
margin-left: 20px;
display: inline-block;
}


/* --- Правое подменю (Второй уровень) --- */
.desktop-right-submenu {

top: 0;
bottom: 0;
right: 0;
z-index: 10;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 16px;
background-color: transparent;
padding-left: 20px;
padding-right: 20px;
box-sizing: border-box;
overflow: hidden;
}



.desktop-right-wall {
position: absolute;
margin-left:340px;
inset: 0;
z-index: 9;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
visibility: hidden;
transition: opacity 0.1s ease, visibility 0.1s ease;
pointer-events: none;
}




.desktop-right-submenu.show-wall .desktop-right-wall {
opacity: 1;
visibility: visible;
pointer-events: auto;
}

.desktop-submenu-block {
position: absolute;
top: 50%;
left: 350px;
z-index: 11;
transform: translateY(-50%) translateX(-10px);
padding-left: 30px;
padding-right: 10px;
box-sizing: border-box;
opacity: 0;
visibility: hidden;
display: flex;
flex-direction: column;
gap: 2px;
}

/* --- Стили ссылок подменю (Второй и третий уровень) --- */
.desktop-sublink {
color: #ffffff !important;
text-decoration: none;
font-size: 15px;
padding: 10px 16px;
background-color: rgba(20, 20, 20, 0.06);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 4px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: space-between;
white-space: nowrap;
box-shadow: none;
gap: 8px;
margin: 0;
}

.desktop-sublink:hover {
background-color: rgba(20, 20, 20, 0.85);
border: 1px solid rgba(255, 255, 255, 0.4);
}


/* --- Третий уровень меню --- */
.desktop-submenu-level3 {
    position: absolute;

    /* Центрируем по высоте относительно .desktop-slider-menu */
    top: 50%;
    transform: translateY(-50%);

    /* По горизонтали — сразу справа от кнопки второго уровня */
    left: 100%;
    margin-left: 20px;

    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    background-color: transparent;
    z-index: 12;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.desktop-submenu-level3.active {
    opacity: 1;
    visibility: visible;
}
/* Отступы для кнопок третьего уровня */
.desktop-submenu-level3 .desktop-sublink {
margin-bottom: 5px;
margin-top: 0;
}

/* =========================================
АДАПТИВНОСТЬ
========================================= */
@media (max-width: 1150px) {
.desktop-submenu-level3 {
position: static;
margin-left: 0;
left: auto;
top: auto;
transform: none;
border-left: 2px solid #224faa;
padding-left: 20px;
background-color: rgba(0, 0, 0, 0.1);
}
}

/* --- Стили для тестового блока (hero-блок) --- */
/* Контейнер для кнопок */
.slider-hero-block .hero-btns-wrapper {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

/* Сам блок-подложка */
.slider-hero-block {
position: absolute;
top: 20px; /* твой параметр */
right: 40px; /* твой параметр */
max-width: 450px;
z-index: 8;

background-color: rgba(20, 20, 20, 0.08); /* твоя прозрачность */
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
border-radius: 8px;
padding: 16px 20px;
box-sizing: border-box;

font-family: inherit;
font-size: 15px;
line-height: 1.3;
color: #ffffff;

/* ДОБАВЛЕНО: растягиваем блок и выравниваем содержимое */
min-height: 340px;
display: flex;
flex-direction: column;
justify-content: space-between;
}

/* Заголовок и параграф — принудительно белые, с нужными отступами */
.slider-hero-block h2 {
color: #ffffff !important;
font-size: 18px;
font-weight: bold;
text-align: left;
margin: 0 0 10px 0;
line-height: 1.4;
}

.slider-hero-block p {
color: #ffffff !important;
font-size: 16px;
text-align: justify;
margin: 0 0 12px 0;
line-height: 1.5;
}

/* ДОБАВЛЕНО: текст занимает всё свободное место между заголовком и кнопками */
.slider-hero-block p {
flex-grow: 1;
}

/* Кнопки — белый текст, белая рамка */
.slider-hero-block .hero-btn {
flex: 1 1 140px;
min-width: 120px;
text-align: center;
padding: 8px 10px;

color: #ffffff !important;
border: 1px solid #ffffff !important;

text-decoration: none;
font-size: 13px;
font-weight: 500;
box-sizing: border-box !important;
border-radius: 4px;
}

/* Эффект при наведении (лёгкая подсветка, чтобы было видно, что кнопка нажимается) */
.slider-hero-block .hero-btn:hover {
background-color: rgba(255, 255, 255, 0.15);
}




/* =========================================
Модуль меню аккордеон
========================================= */

.dsm-mobile-module .dsm-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  background-color: #1a1a1a;
  padding: 0px;
}

.dsm-mobile-module .dsm-bg-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden;
}

.dsm-mobile-module .dsm-bg-item {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

.dsm-mobile-module .dsm-bg-item.active {
  opacity: 1;
}

.dsm-mobile-module .dsm-left-menu {
  position: relative;
  z-index: 10;
  height: 750px;
  overflow-y: auto;
  overflow-x: hidden;
}

.dsm-mobile-module .dsm-left-menu::-webkit-scrollbar {
  width: 6px;
}
.dsm-mobile-module .dsm-left-menu::-webkit-scrollbar-track {
  background: transparent;
}
.dsm-mobile-module .dsm-left-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0px;
}

.dsm-mobile-module .dsm-left-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

@media (max-width: 768px) {
  .dsm-mobile-module .dsm-left-menu {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
  }
}

.dsm-mobile-module .dsm-btn,
.dsm-mobile-module .dsm-link {
  display: block;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* --- 1-й уровень --- */
.dsm-mobile-module .dsm-left-menu > ul > li > .dsm-btn,
.dsm-mobile-module .dsm-left-menu > ul > li > .dsm-link {
  background-color: rgba(90, 90, 90, 0.6) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 0px;
  transition: all 0.3s ease;
  margin-bottom: 1px;
  margin-top:0px;
  width: 100%;
  box-sizing: border-box;
}

.dsm-mobile-module .dsm-left-menu > ul > li > .dsm-btn:hover,
.dsm-mobile-module .dsm-left-menu > ul > li > .dsm-link:hover {
  background-color: rgba(20, 20, 20, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.dsm-mobile-module .dsm-left-menu > ul > li > .dsm-btn.dsm-open,
.dsm-mobile-module .dsm-left-menu > ul > li > .dsm-link.dsm-open {
  background-color: rgba(90, 90, 90, 0.95) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* --- 2-й уровень --- */
.dsm-mobile-module .dsm-sub-lvl1 .dsm-btn,
.dsm-mobile-module .dsm-sub-lvl1 .dsm-link {
  background-color: rgba(120, 120, 120, 0.98) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 0px;
  margin-top: 1px;
  margin-bottom: 1px;
  transition: all 0.3s ease;
}

.dsm-mobile-module .dsm-sub-lvl1 .dsm-btn:hover,
.dsm-mobile-module .dsm-sub-lvl1 .dsm-link:hover {
  background-color: rgba(20, 20, 20, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- 3-й уровень --- */
.dsm-mobile-module .dsm-sub-lvl2 .dsm-btn,
.dsm-mobile-module .dsm-sub-lvl3 .dsm-btn,
.dsm-mobile-module .dsm-sub-lvl2 .dsm-link,
.dsm-mobile-module .dsm-sub-lvl3 .dsm-link {
  background-color: rgba(170, 170, 170, 0.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0px;
  margin-top: 1px;
  margin-bottom: 1px;
  transition: all 0.3s ease;
}

.dsm-mobile-module .dsm-sub-lvl2 .dsm-btn:hover,
.dsm-mobile-module .dsm-sub-lvl3 .dsm-btn:hover,
.dsm-mobile-module .dsm-sub-lvl2 .dsm-link:hover,
.dsm-mobile-module .dsm-sub-lvl3 .dsm-link:hover {
  background-color: rgba(20, 20, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Стрелка */
.dsm-mobile-module .dsm-arrow {
  float: right;
  transition: transform 0.3s ease;
  display: inline-block;
  line-height: 1.2;
  margin-top: 4px;
  color: #e67e23;
}

.dsm-mobile-module .dsm-btn.dsm-open .dsm-arrow,
.dsm-mobile-module .dsm-link.dsm-open .dsm-arrow {
  transform: rotate(90deg);
}

/* Анимация аккордеона */
.dsm-mobile-module .dsm-sub-lvl1,
.dsm-mobile-module .dsm-sub-lvl2,
.dsm-mobile-module .dsm-sub-lvl3 {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  margin: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  box-sizing: border-box;
}

.dsm-mobile-module .dsm-sub-lvl1.dsm-open,
.dsm-mobile-module .dsm-sub-lvl2.dsm-open,
.dsm-mobile-module .dsm-sub-lvl3.dsm-open {
  max-height: 1800px;
  opacity: 1;
  padding: 0;
  margin: 0;
}

/* Убираем лесенку */
.dsm-mobile-module .dsm-sub-lvl1,
.dsm-mobile-module .dsm-sub-lvl2,
.dsm-mobile-module .dsm-sub-lvl3 {
  margin-left: 0 !important;
  border-left: none !important;
  padding-left: 0 !important;
}

/* Скрываем скроллбар */
.dsm-mobile-module .dsm-left-menu::-webkit-scrollbar {
  display: none;
}

.dsm-mobile-module .dsm-left-menu {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Размер стрелок */
.dsm-mobile-module .dsm-arrow {
  font-size: 20px;
  line-height: 1.2;
  margin-top: 2px;
  color: #e67e23;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.dsm-mobile-module .dsm-sub-lvl1 .dsm-btn,
.dsm-mobile-module .dsm-sub-lvl1 .dsm-link,
.dsm-mobile-module .dsm-sub-lvl2 .dsm-btn,
.dsm-mobile-module .dsm-sub-lvl3 .dsm-btn,
.dsm-mobile-module .dsm-sub-lvl2 .dsm-link,
.dsm-mobile-module .dsm-sub-lvl3 .dsm-link {
  font-size: 16px;
}

/* =========================================================================
   ГЛАВНЫЙ ФИКС: УБИРАЕТ ТОЧКИ И СМЕЩЕНИЕ, ГАРАНТИРУЕТ ЦВЕТА
   ========================================================================= */
.dsm-mobile-module .dsm-left-menu ul,
.dsm-mobile-module .dsm-left-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.dsm-mobile-module .dsm-left-menu ul,
.dsm-mobile-module .dsm-left-menu li {
  background-color: transparent !important;
  color: inherit !important;
}












@media (min-width: 900px) {
  #mod-custom161 {
    display: none !important;
  }
}




@media (max-width: 901px) {
  #mod-custom158 {
    display: none !important;
  }
}





