/* ================================================
   ДЕСКТОП
   ================================================ */
@media screen and (min-width: 961px) {
  #rec2089608201 .tmenu-mobile { display: none !important; }
  #rec2089608201 #nav2089608201 { display: block !important; }
  #rec2089608201 .t-menu-base__leftwrapper { display: none !important; }
  #rec2089608201 .t-sociallinks { display: none !important; }

  #rec2089608201 .t-menu-base__rightwrapper {
    display: flex !important;
    align-items: center;
  }

  #rec2089608201 .t-menu-base__additionalwrapper {
    display: flex !important;
    align-items: center;
  }

  #chebrand-desktop-burger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 2px;
  }

  #chebrand-desktop-burger svg {
    width: 22px;
    height: 22px;
    display: block;
  }
}

/* ================================================
   МОБИЛКА
   ================================================ */
@media screen and (max-width: 960px) {
  #rec2089608201 #nav2089608201 {
    display: none !important;
  }

  #rec2089608201 .tmenu-mobile__container {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    padding: 0 16px !important;
    min-height: 64px !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
  }

  #rec2089608201 .t-menu-burger {
    order: 1 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    z-index: 2;
    width: 32px !important;
    height: 32px !important;
  }

  #rec2089608201 .t-menu-burger__icon {
    display: none !important;
  }

  #rec2089608201 .t-menu-burger .cb-burger-svg {
    display: flex !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  #rec2089608201 .t-menu-burger .cb-burger-svg svg {
    width: 22px;
    height: 22px;
    display: block;
  }

  #rec2089608201 .t-menu-base__logowrapper_mobile {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    z-index: 1;
  }

  #rec2089608201 .tmenu-mobile__container > ul.t-menuwidgeticons__wrapper {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2;
  }
}

/* ================================================
   БОКОВАЯ ПАНЕЛЬ
   ================================================ */
#chebrand-side-panel {
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(0,0,0,.2);
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  padding: 40px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9999999;
  transform: translateX(100%);
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
}

#chebrand-side-panel.is-open {
  transform: translateX(0);
}

@media screen and (max-width: 960px) {
  #chebrand-side-panel {
    max-width: 100%;
    padding: 0 0 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

#chebrand-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,.1);
  z-index: 9999998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#chebrand-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Крестик */
.cb-panel-close {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 10000000;
  cursor: pointer;
  background-color: transparent;
  border: none;
  padding: 10px;
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cb-panel-close svg {
  width: 23px;
  height: 23px;
  display: block;
}

@media screen and (max-width: 560px) {
  .cb-panel-close {
    right: 0;
    top: 12px;
    left: 0;
    width: 100%;
    justify-content: flex-end;
    padding-right: 20px;
  }
}

/* Шапка */
.cb-panel-head {
  border-bottom: 1px solid rgba(0,0,0,.2);
  margin-bottom: 20px;
  padding: 0 36px 20px 0;
  flex-shrink: 0;
}

@media screen and (max-width: 960px) {
  .cb-panel-head {
    padding: 20px 56px 20px 24px;
  }
}

.cb-panel-head-logo {
  display: block;
  max-width: 88px;
  height: auto;
}

.cb-panel-head-title {
  display: block;
  font-family: 'Manrope', var(--t-text-font, Arial, sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
}

/* Список ссылок */
.cb-panel-links {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

@media screen and (max-width: 960px) {
  .cb-panel-links {
    padding: 0 24px;
  }
}

/* Пункт меню */
.cb-menu-item {
  border-bottom: none;
}

/* Строка пункта */
.cb-menu-item__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 0;
  cursor: pointer;
}

.cb-menu-item__row a {
  display: block;
  font-family: 'Manrope', var(--t-text-font, Arial, sans-serif);
  font-size: 18px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  transition: color 0.2s;
}

@media screen and (max-width: 960px) {
  .cb-menu-item__row a {
    font-size: 16px;
  }
}

.cb-menu-item__row a:hover {
  color: #888;
}

/* Стрелка — вплотную к слову */
.cb-menu-item__arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  margin-left: 6px;
}

.cb-menu-item__arrow svg {
  width: 10px;
  height: 6px;
  display: block;
}

.cb-menu-item.is-open > .cb-menu-item__row .cb-menu-item__arrow {
  transform: rotate(180deg);
}

/* Подменю */
.cb-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  padding-bottom: 0;
}

.cb-menu-item.is-open > .cb-submenu {
  max-height: 400px;
  padding-bottom: 8px;
}

.cb-submenu a {
  display: block;
  padding: 8px 0 8px 12px;
  font-family: 'Manrope', var(--t-text-font, Arial, sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  transition: color 0.2s;
  border-left: 1px solid #e8e8e8;
  margin-bottom: 2px;
}

.cb-submenu a:hover {
  color: #000;
}

/* Заметка */
.cb-panel-note {
  padding: 16px 0 0;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0,0,0,0.45);
  flex-shrink: 0;
}

@media screen and (max-width: 960px) {
  .cb-panel-note {
    padding: 16px 24px 0;
  }
}

/* Соцсети */
.cb-panel-socials {
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

@media screen and (max-width: 960px) {
  .cb-panel-socials {
    padding: 16px 24px 0;
  }
}

.cb-panel-socials a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', var(--t-text-font, Arial, sans-serif);
  font-size: 13px;
  font-weight: 400;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.cb-panel-socials a:hover { color: #000; }
.cb-panel-socials a:hover svg path { fill: #000; }
.cb-panel-socials svg { flex-shrink: 0; transition: opacity 0.2s; }