#nav253691970 .t228__list.t-menu__list li:last-child {
    display: none !important;
}

#rec1343288581 .t228__right_buttons_but .t-btnflex__text {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
#rec1343288581 .t228__right_buttons_but .t-btnflex_type_button {
    padding-right: 20px;
    padding-left: 20px;
    font-size: 16px;
}

#rec1343288581 .t228__right_buttons_but .t-btnflex_type_button2 {
    padding-right: 9px;
    padding-left: 9px;
}

@media (min-width: 981px) {
    /* Всегда показывать "…" даже если он последний в списке */
    #rec1343288581 .t228__list.t-menu__list > li.t-overflowmenu__more:last-child {
      display: list-item !important;
    }
    
    #rec1343288581 .t228__list.t-menu__list > .t228__list_item:last-child {
      display: list-item !important;
    }
    
    /* Сторожок всегда скрыт (держим его последним элементом) */
    #rec1343288581 .t-overflowmenu__sentinel {
      display: none !important;
    }
    
    
    
    #rec1343733861 .t966__content {
        padding: 25px 35px 25px 35px;
    }
    
    #rec1343733861 .t966__menu-item-desc {
        margin-top: 6px;
    }
    
    /* Центр действительно сжимается между левой/правой колонками */
    #rec1343288581 .t228__centerside{ min-width:0; }
    
    /* UL не растягиваем на всю ширину, чтобы не давил правый блок */
    #rec1343288581 .t-menu__list,
    #rec1343288581 .t228__list{
      display:flex;
      justify-content: center;
      width:auto !important;
      margin-left:auto;
      margin-right:auto;
    }
    
    /* Не переносим текст ссылок (а не весь UL) */
    #rec1343288581 .t-menu__link-item{ white-space:nowrap; }
    
    /* Служебные классы overflow-меню */
    .t-overflowmenu{ position:relative; }
    
    /* Пункт «…»: делаем явным и кликабельным */
    .t-overflowmenu .t-overflowmenu__more{ position:relative; z-index:5; }
    .t-overflowmenu .t-overflowmenu__more > a{
      display:flex;
      align-items:center;
      justify-content:center;
      min-width:32px;               /* гарантированная видимость */
      padding:0 12px;               /* комфортный клик */
      line-height:1;
      opacity:1 !important;         /* на всякий случай против "эффектов" ссылок */
    }
    
    /* SVG-иконка троеточия */
    .t-overflowmenu__dots{
      display:inline-block;
      width:18px; height:18px;
    }
    
    /* Выпадающее меню скрытых пунктов */
    .t-overflowmenu__dropdown{
      position:absolute;
      top: 44px;
      right:0;
      min-width:220px;
      background:#fff;
      border:1px solid #dedede;
      box-shadow: 0px 15px 30px -10px rgba(0, 11, 48, 0.2);
      padding: 25px 35px 25px 35px;
      z-index:9999;
      display:none;
      border-radius: 20px;
    }
    
    .t-overflowmenu__dropdown .t228__list_item .t-menu__link-item {
        margin-bottom: 10px;
        padding: 0;
    }
    
    .t-overflowmenu__dropdown .t228__list_item {
        padding: 0;
        width: fit-content;
    }
    
    ul.t-overflowmenu__dropdown {
        padding: 25px 20px 15px 20px !important;
        margin-bottom: 0 !important;
        text-align: left;
    }
    
    .t-overflowmenu [data-more][data-open="true"] .t-overflowmenu__dropdown{ display:block; }
    .t-overflowmenu__dropdown li{ display:block; white-space:normal; }
    .t-overflowmenu__dropdown a{ display:block; padding:10px 16px; color:#111; }
    
    /* На всякий случай — отсечь гор. скролл у шапки */
    #t-header{ overflow-x:clip; }
    
    /* === МОСТИК ХОВЕРА для разрыва между «…» и дропом (top:44px) === */
    #rec1343288581 .t-overflowmenu__more[data-open="true"]::after{
      content:'';
      position:absolute;
      right:0;
      top:100%;
      height:44px;      /* высота разрыва == top у дропа */
      width:260px;      /* примерно ширина дропа (220 + запас) */
      background:transparent;
      pointer-events:auto;
    }
}

/* --- Кламп ширины для всех версий t228 (оригинал, фикс-клон, внутри #t-header) --- */
@media (min-width: 981px) and (max-width: 1199px){
  #rec1343288581 .t228,
  #rec1343288581 .t228__maincontainer,
  #t-header .t228,
  #t-header .t228__maincontainer,
  .t228.t228__positionfixed,
  .t228.t228__positionfixed .t228__maincontainer,
  .tmenu-mobile__menucontent_fixed .t228__maincontainer{
    max-width:100% !important;
    width:100% !important;
    left:0 !important; right:0 !important;
    margin-left:0 !important; margin-right:0 !important;
    box-sizing:border-box !important;
  }

  /* Лево/право фикс, центр тянется */
  #rec1343288581 .t228__leftside,
  #rec1343288581 .t228__rightside{ flex:0 0 auto !important; }
  #rec1343288581 .t228__centerside{ flex:1 1 auto !important; min-width:0 !important; }
}

/* --- Чтобы не прятать троеточие: скрываем только наш sentinel, а не любой :last-child --- */
#nav253691970 .t228__list.t-menu__list > li.t-overflowmenu__sentinel:last-child{ display:none !important; }
#nav253691970 .t228__list.t-menu__list > li.t-overflowmenu__more{ display:list-item !important; }

/* Узкое троеточие (иначе ширина «…» раздувается из-за паддингов li) */
#rec1343288581 .t-overflowmenu__more{ padding:0 !important; }

/* Клампим внутреннюю .t-container у всех версий хедера */
@media (min-width: 981px) and (max-width: 1199px){
  #rec1343288581 .t228__maincontainer .t-container,
  #t-header .t228__maincontainer .t-container,
  .t228.t228__positionfixed .t228__maincontainer .t-container{
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding-left: 20px;   /* оставить как у тебя на планшетах */
    padding-right: 20px;  /* ↑ симметрия и «воздух» */
  }
}

@media (max-width: 980px) {
    #rec1343288581 .tmenu-mobile__container {
        padding: 10px 20px 10px 20px;
        border-bottom: 1px solid #dedede;
    }
    
    #rec1343288581 .tmenu-mobile__burgerlogo img {
        min-width: 100px;
        width: 190px;
    }
    
    #rec1343288581 .t228__centercontainer {
        padding: 15px;
    }
    
    #rec1343288581 .t228__rightside {
        border-top: 1px solid #dedede;
    }
    
    #rec1343288581 .t228__rightcontainer {
        padding: 0;
        margin: 0 10px;
    }
    
    #rec1343288581 .t228__right_buttons_but{
        margin-bottom: 0;    
    }
    
    #rec1343288581 .t228__right_buttons_wrap {
        display: flex;
        flex-direction: row;
        gap: 8px;
   }
   
   #rec1343288581 .t228__list_item {
        text-align: left;
        font-size: 18px;
   }
   
   #rec1343288581 .t966__tooltip-menu.t966__tooltip-menu_mobile {
       margin-bottom: 0;
       box-shadow: none;
   }
   
   #rec1343288581 .t966__tooltip-menu.t966__tooltip-menu_mobile .t966__menu-item {
       margin-bottom: 0;
   }
   
   #rec1343288581 .t966__tooltip-menu.t966__tooltip-menu_mobile .t966__menu-item-wrapper:last-child {
       margin-bottom: 0;
   }
   
   #rec1343288581 .t966__tooltip-menu.t966__tooltip-menu_mobile .t966__menu-item-desc {
       font-size: 14px;
       margin-top: 5px;
   }
}

/* Хедер t228 будет прятаться/появляться трансформацией.
   Используем CSS-переменную --hdrH (в пикселях), которую ставит JS. */
#rec1343288581.uc-scrollmenu .t228.t228__positionfixed{
  position:fixed;
  top:0; left:0; right:0;
  z-index:9999;
  transform: translateY(var(--hdrShift, 0));
  transition: transform .35s cubic-bezier(0,0,.8,1);
  will-change: transform;
}

/* Показан: смещения нет */
#rec1343288581.uc-scrollmenu .t228.t228__positionfixed.t-scrollshow{
  --hdrShift: 0;
  pointer-events:auto;
}

/* Скрыт: уезжает вверх ровно на текущую высоту хэдера */
#rec1343288581.uc-scrollmenu .t228.t228__positionfixed.t-scrollhide{
  --hdrShift: calc(-1 * var(--hdrH, 100%));
  pointer-events:none;
}

/* Чтоб не ловить горизонтальный скролл при "впритык" */
#t-header{ overflow-x: clip; }

/* Универсальная анимация хедера для всех ширин */
#rec1343288581 .t228{
  will-change: transform;
  transition: transform 280ms cubic-bezier(.2,.6,.2,1);
}
#rec1343288581 .t228.t-scrollhide{
  transform: translateY(calc(-1 * var(--hdrH, 80px)));
}
#rec1343288581 .t228.t-scrollshow{
  transform: translateY(0);
}

@media (max-width: 480px){
  /* только верхнеуровневые группы внутри артборда */
  #t-footer .t396__artboard > .t396__group.tn-group.t396__group-flex{
    width: calc(100% - 40px) !important; /* 20px поля слева/справа */
    left: 20px !important;
    right: auto !important;              /* на всякий случай обнуляем right */
    box-sizing: border-box;
  }
  
  #t-footer .t396__elem.tn-elem[data-elem-id="1759065553994"] {
      width: 100% !important;
  }
}

#t-footer a {
          transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

#t-footer a:hover {
      color: #c64744 !important;
      
  }
