/* Глобальный сброс всех ul на сайте */
ul, ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

*, *:before, *:after {
    box-sizing: border-box;
}

:root {
   /* Dark backgrounds */
  --bg-dark-1: #041c36; /* самый глубокий, почти ночной */
  --bg-dark-2: #223a54; /* средний */
  --bg-dark-3: #0f4b8b; /* синий акцентный/градиентный */

  /* Light backgrounds */
  --bg-light-1: #b7c0cd; /* самый тёмный из светлых */
  --bg-light-2: #e2e6ec; /* средний */
  --bg-light-3: #f3f4f6; /* самый светлый, почти белый */
  
  /* Text */
  --txt-light: #ffffff;  /* текст на тёмном фоне */
  --txt-light-secondary: #B0B8C1; /* второстепенный на тёмном */
  --txt-dark: #223a54;   /* основной текст на светлом */
  --txt-dark-secondary: #4a5a6a; /* второстепенный на светлом */
  --txt-muted: #8C9BA5;  /* мелкий текст */
  
  /* Accent*/
  --accent: #32e875;
  --accent-hover: #28c462;
  --accent-light: #6fffa3;
  
  
  /* 🎯 Кнопки */
  --btn-bg: var(--accent);
  --btn-bg-hover: var(--accent-hover);
  --btn-txt: #041c36;
  --btn-txt-hover: #fff;
  
  /* ссылки на тёмном фоне */
  --link-dark: #8db8ff;      /* спокойный голубой/стальной */
  --link-dark-hover: #32e875;
  /* ссылки на светлом фоне */
  --link-light: #0f4b8b;     /* глубокий синий */
  --link-light-hover: #32e875;
  
  
     /* Хлебные крошки */
     --bc-bg:#f7f7f7;
  --bc-link: var(--bg-dark-2);
  --bc-link-hover: var(--bg-dark-3);
  --bc-pointer: var(--bg-dark-2);
  --bc-pointer-hover:var(--bg-dark-3);
  
  --bc-last: #177eed;
  --bc-line:var(--bc-last);




  /* Статусы */
  --color-success: #28A745;
  --color-error: #DC3545;
  --color-warning: #FFC107;  /* можно оставить для предупреждений */
  --color-info: #17A2B8;



  /* 🔍 Поля ввода */
  --input-bg: #16232F;                 
  --input-bg-hover: #1F374F;           
  --input-bg-focus: #0D2B4A;           
  --input-border: #2C3E50;
  --input-border-hover: #3B4A5A;
  --input-border-focus: var(--color-accent);
  --input-text: var(--color-text-main);
  --input-placeholder: #7D8A99;
  --input-radius: 8px;
  --input-padding: 12px;

  /* 🖼 Карточки / блоки */
  --card-bg: #1A2533;
  --card-bg-hover: #1F2F45;
  --card-border: #222F3E;


  
  /* 🛒 Иконки и бейджи */
  --icon-color: var(--color-accent);
  --icon-hover: var(--color-accent-hover);
  --badge-bg: var(--color-accent);
  --badge-text: #FFFFFF;

}

/* =========================
   ВЕРХНЕЕ МЕНЮ
========================= */
.top-bar {
  display: flex;
  justify-content: space-between; /* слева пусто, справа контент */
  align-items: center;
  padding: 5px 10%;
  background: linear-gradient(to right, var(--bg-dark-1), var(--bg-dark-2)) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
}

/* Левый блок остаётся пустым */
.top-bar .top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Правый блок с контактами и соцсетями */
.top-bar .top-right {
  display: flex;
  align-items: center;
  gap: 40px; /* расстояние между контактами и соцсетями */
  flex-wrap: nowrap;   /* не переносить в столбик */
}

/* Контакты (телефон и почта) */
.top-bar .top-right .contact {
  display: flex;
  align-items: center;
  gap: 5px;          /* расстояние между иконкой и текстом */
  color: #b0b8c1 !important;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.top-bar .top-right .contact:hover {
  color: var(--accent) !important;
}

/* Соцсети (только иконки или текст + иконка) */
.top-bar .top-right a:not(.contact) {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8db8ff !important;
  font-size: 14px;
  transition: color 0.2s, transform 0.2s;
}

.top-bar .top-right a:not(.contact):hover {
  color: var(--accent) !important;
  transform: scale(1.15);
}

.top-bar .top-right .contact:last-of-type {
  margin-right: 20px; /* дополнительный отступ перед соцсетями */
}


/* =========================
         ПОИСК МЕНЮ
========================= */
/* =========================
   БАЗОВЫЙ КОНТЕЙНЕР ПОИСКА
========================= */
.t-site-search-input {
    display: flex;
    align-items: center;           /* вертикальное выравнивание */
    gap: 10px;                     /* расстояние между инпутом и кнопкой */
    max-width: 800px;              /* максимальная ширина блока */
    margin: 0 auto;                /* центрируем блок по горизонтали */
    padding: 20px;                 /* внутренние отступы */
    border-radius: 8px;            /* скругление углов */
    box-sizing: border-box;
}

/* =========================
   БЛОК ИНПУТА С ИКОНОЙ И КРЕСТИКОМ
========================= */
.t838__blockinput {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative; 
}


/* =========================
   САМО ПОЛЕ ВВОДА
========================= */
.t838__blockinput input.t838__input {
    background-color: #ffffff !important;
    height: 35px;
    width: 100%;
    font-size: 16px;
    padding: 0 12px;
    box-sizing: border-box;
    color: #223a54 !important;  
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

.t838__blockinput input.t838__input::placeholder {
    color: #6e7a84 !important;
}

.t838__blockinput input.t838__input:hover {
    box-shadow: 0 0 5px var(--bg-dark-2) !important;
}

.t838__blockinput input.t838__input:focus {
    box-shadow: 0 0 15px var(--bg-dark-3) !important;
    background: #fdfdfd !important;
    outline: none;
    background-color: #fdfdfd !important;
}

/* =========================
   КНОПКА SEARCH
========================= */
.t838__blockbutton button.t-submit {
    height: 35px;                  /* совпадает с высотой инпута */
    font-size: 14px;
    padding: 0 20px;               /* горизонтальные отступы */
    border-radius: 0px;
    border: none;
    background-color: var(--btn-bg) !important;
    color: var(--btn-txt) !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Ховер кнопки */
.t838__blockbutton button.t-submit:hover {
    background-color: var(--btn-bg-hover) !important;
    color: var(--btn-txt-hover) !important;
}

/* =========================
   ИКОНКИ
========================= */
/* Лупа */
.t838__search-icon {
    display: none !important;
}

/* Крестик закрытия */
.t-site-search-close {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Loader */
.t-site-search-loader {
    width: 18px;
    height: 18px;
}

/* =========================
   ПЛЕЙСХОЛДЕР
========================= */
.t838__blockinput input.t838__input::-webkit-input-placeholder { color:#000000; opacity:0.5; }
.t838__blockinput input.t838__input::-moz-placeholder { color:#000000; opacity:0.5; }
.t838__blockinput input.t838__input:-moz-placeholder { color:#000000; opacity:0.5; }
.t838__blockinput input.t838__input:-ms-input-placeholder { color:#000000; opacity:0.5; }

.t838 {
    position: relative; /* теперь логотип позиционируется относительно всего блока */
    background: #f3f4f6 !important;
    z-index: 10;
}

/* Логотип */
.my-logo {
    position: absolute;
    left: 15%;               /* 20% от всей ширины блока/страницы */
    top: 50%;
    transform: translateY(-50%);
}

.my-logo img {
    height: 40px;            /* размер логотипа */
    width: auto;
    display: block;
}

/* Иконки справа */
.my-icons {
    position: absolute;           /* относительно блока .t838 */
    right: 15%;                   /* отступ справа */
    top: 50%;                     /* вертикальное центрирование */
    transform: translateY(-50%);
    display: flex;
    gap: 35px;                    /* расстояние между иконками */
}

.my-icons .icon-link i {
    font-size: 20px;              /* размер иконок */
    color: var(--link-light) !important;             /* основной цвет сайта */
    transition: color 0.3s, transform 0.3s; /* плавный hover */
}

.my-icons .icon-link:hover i {
    color: var(--link-light-hover) !important;               /* цвет при наведении */
    transform: scale(1.2);        /* лёгкое увеличение */
}

.t838__blockinput::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='7' stroke='%23666' stroke-width='2' fill='none'/%3E%3Cline x1='15' y1='15' x2='21' y2='21' stroke='%23666' stroke-width='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    pointer-events: none;
}


/* =========================
   ОСНОВНОЕ МЕНЮ
========================= */
.menu-bottom {
    width: 100%;
    position: relative;
    background:
        /* сплошная заливка до половины */
        linear-gradient(to bottom, #f3f4f6 0 50%, transparent 50% 100%),
        /* мягкая тень */
        linear-gradient(to bottom, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0) 60%);
}

.menu-bottom-nav {
    display: flex;
    justify-content: center;
    position: relative;
    width: max-content;
    margin: 0 auto;
}

.menu-level-1 {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.menu-level-1 > li {
    position: relative;
    margin: 0;
    transition: all 0.2s ease;
}

/* =========================
   КНОПКИ
========================= */
.menu-level-1 > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    color: var(--link-light) !important;
    background-color: var(--bg-light-2) !important;
    text-decoration: none;
    text-align: center;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: 0;
    box-shadow: 0 5px 0 #1a2c45;
    text-transform: uppercase;
}

/* Hover кнопки — при наведении на li или подменю */
.menu-bottom-nav ul.menu-level-1 > li:hover > a,
.menu-bottom-nav ul.menu-level-1 > li > a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #1a2c45;
    background-color: var(--accent-hover) !important;
    color: white !important;
}



/* Скругление крайних кнопок */
.menu-level-1 > li:first-child > a {
    border-radius: 12px 0 0 12px;
}

.menu-level-1 > li:last-child > a {
    border-radius: 0 12px 12px 0;
}

/* =========================
   ПОДМЕНЮ 2 УРОВНЯ
========================= */
.menu-level-2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark-2) !important;
    list-style: none;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 999;
    padding: 5px 0;
}

.menu-level-1 li:hover > .menu-level-2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Подменю 2 уровня элементы */
.menu-level-2 li a {
    display: block;
    padding: 8px 20px;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.menu-bottom-nav ul.menu-level-2 li a:hover,
.menu-bottom-nav ul.menu-level-2 li:hover > a {
    background-color: var(--accent) !important;
    color: var(--bg-dark-1) !important;
}

/* =========================
   ПОДМЕНЮ 3 УРОВНЯ
========================= */
.menu-level-2 li {
    position: relative;
}

.menu-level-2 li ul.menu-level-3 {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translateX(0) translateY(0);
    background: var(--bg-dark-2) !important;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 5px 0;
    z-index: 1000;
}

.menu-level-2 li:hover > ul.menu-level-3 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
}


/* Подменю 3 уровня элементы */
.menu-level-3 li a {
    display: block;
    padding: 8px 20px;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color 0.3s;
}

/* Hover элементы подменю 3 уровня */
.menu-bottom-nav ul.menu-level-3 li a:hover {
    background-color: var(--accent);
    color: var(--bg-dark-1) !important;
}

/* =========================
   СТРЕЛОЧКИ ТАМ ГДЕ НАДО
========================= */
/* Стрелка через ::after для li с подменю */
/* Устанавливаем относительное позиционирование для li, чтобы стрелка была справа */
.menu-bottom-nav li.has-submenu > a::after {
    content: "\f105"; /* стрелка вправо */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: #fff;
}

.menu-bottom-nav li.has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(180deg); /* вниз при hover */
}











/* =========================
   ХЛЕБНЫЕ КРОШКИ
========================= */
#breadcrumbs {
    width: 88.5%;                     /* ширина блока */
    margin: 15px auto;              /* центрируем блок по горизонтали */
    padding: 10px 15px;             /* внутренние отступы сверху/снизу и слева/справа */
    background: --bc-bg !important;            /* фон блока */
    
    border-radius: 12px;            /* скруглённые бока */
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); /* лёгкая тень */
    font-family: 'Inter', sans-serif;
    font-size: 14px;

    display: flex;
    align-items: center;
    flex-wrap: nowrap;              /* все элементы в одну линию */
    overflow-x: auto;               /* горизонтальный скролл при необходимости */
    padding-left: 15px;             /* текст прижат к левому краю блока */
}

.breadcrumbs-inner {
    padding-left: 10%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Ссылки */
#breadcrumbs a {
    font-family: 'Montserrat', sans-serif;
    color: var(--bc-link) !important;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

#breadcrumbs span {
    display: inline-flex;
    align-items: center;
    padding: 0 5px;
}

/* Hover */
#breadcrumbs a:hover {
    color: var(--bc-link-hover)  !important;
    transform: scale(1.05);
}

#breadcrumbs a::after {
    content: '';
    display: block;
    height: 1px;
    width: 0%;
    background: var(--bc-line) !important;
    position: absolute;
    bottom: -3px;
    left: 0;
    transition: width 0.3s ease;
}

#breadcrumbs a:hover::after {
    width: 100%;
}

/* Разделители */
#breadcrumbs .divider {
    margin: 0 8px;
    display: inline-flex;
    align-items: center;
}

#breadcrumbs .divider i {
    color: var(--bc-pointer) !important;
    font-size: 12px !important;
    transition: transform 0.3s, color 0.3s;
    transform: rotate(0deg);
}

/* Hover на стрелку при наведении на ссылку */
#breadcrumbs a:hover ~ .divider i,
#breadcrumbs a:hover + .divider i {
    transform: rotate(180deg);
    color: var(--bc-pointer-hover) !important;
}

/* Последний сегмент */
#breadcrumbs span.current {
    font-family: 'Inter', sans-serif;
    color: var(--bc-last);
    font-weight: 400;
}






















/* 


            МОБИЛЬНАЯ ВЕРСИЯ

*/

/* =========================
   ПОИСК МОБИЛЬНЫЙ
========================= */

/* =========================
   Хлебные крошки
========================= */
@media (max-width: 1199px) {
    /* Базовый стиль — десктоп */
    #breadcrumbs {
        margin: 5px auto;              /* центрируем блок по горизонтали */
    }
    #breadcrumbs .breadcrumbs-inner {
        padding-left: 0%;
    }
}
/* =========================
   Блок поиска
========================= */
@media (max-width: 1199px) {
  .t985 .t-input:focus {
    box-shadow: 0 0 15px var(--bg-dark-1) !important;
    background: #fdfdfd !important;
    outline: none;
    border-color: #223a54 !important;
  }
}



/* =========================
   НИЖНЕЕ МЕНЮ
========================= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-dark-1) !important;
  border-top: 1px solid #ddd;
  z-index: 1000;
  width: 100%;
  height: 60px;
  box-shadow: 0 -1px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease !important; /* важно !important */
}

/* Класс скрытия */
.mobile-bottom-nav.hide {
  transform: translateY(100%);
}

/* Общие стили для кнопок */
.mobile-bottom-nav .mobile-bottom-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: white !important;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  background: none;
  border: none;
}

/* Иконки */
.mobile-bottom-nav .mobile-bottom-item i {
  margin-bottom: 4px;
  color: inherit;
}
.fa-solid { font-size: 20px !important; }

/* Градация цвета */
.mobile-bottom-nav .mobile-bottom-item:nth-child(1) { color: #fff !important; }
.mobile-bottom-nav .mobile-bottom-item:nth-child(2) { color: #e2e6ec !important; }
.mobile-bottom-nav .mobile-bottom-item:nth-child(3) { color: #b7c0cd !important; }
.mobile-bottom-nav .mobile-bottom-item:nth-child(4) { color: #8c9ba5 !important; }
.mobile-bottom-nav .mobile-bottom-item:nth-child(5) { color: #4a5a6a !important; }

/* Hover */
.mobile-bottom-nav .mobile-bottom-item:hover i,
.mobile-bottom-nav .mobile-bottom-item:hover span,
.mobile-bottom-nav .mobile-bottom-item.active i,
.mobile-bottom-nav .mobile-bottom-item.active span {
  color: var(--accent) !important;
}






/* =========================
    МЕНЮ БОКОВОЕ МОБИЛЬНОЕ
========================= */
/* Основное меню */
.mobile-menu-side {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #041c36;
  color: #fff;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: 2000;
  box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  padding-top: 20px;
}

/* Overlay */
.mobile-menu-side-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1999;
}
.mobile-menu-side.open + .mobile-menu-side-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Скрываем чекбоксы */
.mobile-menu-side input[type="checkbox"] {
  display: none;
}

/* Стили label (пункты меню) */
.mobile-menu-side label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 500;
  color: #fff;
  transition: background 0.3s;
}

.mobile-menu-side label:hover {
  background: rgba(255,255,255,0.05);
}

/* Стрелки */
.arrow {
  display: inline-block;
  transition: transform 0.3s;
}

/* Подменю */
.mobile-menu-side-level-2 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #0f2c50;
}

.mobile-menu-side-level-2 li a {
  display: block;
  padding: 12px 40px;
  color: #d0d0d0;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.mobile-menu-side-level-2 li a:hover {
  background: rgba(255,255,255,0.05);
}

/* Раскрытие подменю через чекбокс */
.mobile-menu-side input[type="checkbox"]:checked + label + .mobile-menu-side-level-2 {
  max-height: 1000px; /* достаточно для всех вложений */
}

/* Поворот стрелки при открытии */
.mobile-menu-side input[type="checkbox"]:checked + label .arrow {
  transform: rotate(90deg);
}

/* Открытие меню */
.mobile-menu-side.open {
  left: 0;
}
