.menu{
  position:absolute;
  top:34px;
  left:195px;
  display:flex;
  gap:32px;
  align-items:center;
  white-space:nowrap;
}

.menu-link{
  position:relative;
  display:inline-block;
  cursor:pointer;
  text-decoration:none;
  transition:color .3s ease;
}

.menu-link,
.menu-link:visited{
  color:inherit;
}

.menu-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-9px;
  width:100%;
  height:2px;
  background:#212529;
  opacity:0;
  transition:opacity .3s ease;
  pointer-events:none;
}

.menu-link:hover{
  color:#212529 !important;
}
.menu-link:hover::after{
  opacity:1;
}

.menu-link.is-active{
  color:#212529 !important;
}
.menu-link.is-active::after{
  opacity:1;
  background:#E30613;
}

/* === FIX TX12: показать body-текст в rec1863763881 === */
#rec1863763881 .t-text,
#rec1863763881 .t-descr,
#rec1863763881 .t-text__text,
#rec1863763881 .t-descr__text,
#rec1863763881 .t-accordion__content,
#rec1863763881 .t-toggle__content,
#rec1863763881 .t-collapse__content{
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* если TX12 оборачивает текст во внутренний контейнер */
#rec1863763881 .t-text-wrapper,
#rec1863763881 .t-container,
#rec1863763881 .t-col{
  overflow: visible !important;
}

/* шрифт для меню */
.menu-link{
  font-family: "Avenir Next Cyr", "Avenir Next", Arial, sans-serif !important;
  font-weight: 500 !important; /* Medium */
}

/* FIX mobile: заголовок в Zero Block (строго по id 1470209944682) */
@media (max-width: 480px){

  /* 1) самый частый реальный id в публикации */
  #rec1871081601 #tn-elem1470209944682,
  /* 2) если вдруг id именно такой */
  #rec1871081601 #tn_text_1470209944682,
  /* 3) если элемент размечен data-elem-id */
  #rec1871081601 [data-elem-id="1470209944682"]{
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    max-width: calc(100% - 40px) !important;
    transform: none !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  /* выравнивание текста внутри */
  #rec1871081601 #tn-elem1470209944682 .tn-atom,
  #rec1871081601 #tn_text_1470209944682 .tn-atom,
  #rec1871081601 [data-elem-id="1470209944682"] .tn-atom{
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
}

/* =========================================================
   ZERO BLOCK MOBILE FIXES: titles + red underline shapes
   Updated with new rec:
   - #rec1883244251
   - #rec1883155671
   - #rec1883300851
   ========================================================= */


/* =========================
   1) TITLES (TEXT) FIX
   ========================= */

@media (max-width: 480px){

  /* A) точечно по id (если встречается) */
  #rec1871081601 #tn-elem1470209944682,
  #rec1871076361 #tn-elem1470209944682,
  #rec1854535581 #tn-elem1470209944682,
  #rec1871030721 #tn-elem1470209944682,
  #rec1871045261 #tn-elem1470209944682,
  #rec1883244251 #tn-elem1470209944682,
  #rec1883155671 #tn-elem1470209944682,
  #rec1883300851 #tn-elem1470209944682,

  #rec1871081601 #tn_text_1470209944682,
  #rec1871076361 #tn_text_1470209944682,
  #rec1854535581 #tn_text_1470209944682,
  #rec1871030721 #tn_text_1470209944682,
  #rec1871045261 #tn_text_1470209944682,
  #rec1883244251 #tn_text_1470209944682,
  #rec1883155671 #tn_text_1470209944682,
  #rec1883300851 #tn_text_1470209944682,

  /* B) если текст определяется через field="tn_text_1470209944682" (как у тебя в инспекторе) */
  #rec1871081601 .tn-atom[field="tn_text_1470209944682"],
  #rec1871076361 .tn-atom[field="tn_text_1470209944682"],
  #rec1854535581 .tn-atom[field="tn_text_1470209944682"],
  #rec1871030721 .tn-atom[field="tn_text_1470209944682"],
  #rec1871045261 .tn-atom[field="tn_text_1470209944682"],
  #rec1883244251 .tn-atom[field="tn_text_1470209944682"],
  #rec1883155671 .tn-atom[field="tn_text_1470209944682"],
  #rec1883300851 .tn-atom[field="tn_text_1470209944682"],

  /* C) если элемент размечен data-elem-id */
  #rec1871081601 [data-elem-id="1470209944682"],
  #rec1871076361 [data-elem-id="1470209944682"],
  #rec1854535581 [data-elem-id="1470209944682"],
  #rec1871030721 [data-elem-id="1470209944682"],
  #rec1871045261 [data-elem-id="1470209944682"],
  #rec1883244251 [data-elem-id="1470209944682"],
  #rec1883155671 [data-elem-id="1470209944682"],
  #rec1883300851 [data-elem-id="1470209944682"]{
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    max-width: calc(100% - 40px) !important;
    transform: none !important;
    margin-left: 0 !important;
    box-sizing: border-box !important;
  }

  /* Выравнивание текста */
  #rec1871081601 #tn-elem1470209944682 .tn-atom,
  #rec1871076361 #tn-elem1470209944682 .tn-atom,
  #rec1854535581 #tn-elem1470209944682 .tn-atom,
  #rec1871030721 #tn-elem1470209944682 .tn-atom,
  #rec1871045261 #tn-elem1470209944682 .tn-atom,
  #rec1883244251 #tn-elem1470209944682 .tn-atom,
  #rec1883155671 #tn-elem1470209944682 .tn-atom,
  #rec1883300851 #tn-elem1470209944682 .tn-atom,

  #rec1871081601 #tn_text_1470209944682 .tn-atom,
  #rec1871076361 #tn_text_1470209944682 .tn-atom,
  #rec1854535581 #tn_text_1470209944682 .tn-atom,
  #rec1871030721 #tn_text_1470209944682 .tn-atom,
  #rec1871045261 #tn_text_1470209944682 .tn-atom,
  #rec1883244251 #tn_text_1470209944682 .tn-atom,
  #rec1883155671 #tn_text_1470209944682 .tn-atom,
  #rec1883300851 #tn_text_1470209944682 .tn-atom,

  #rec1871081601 [data-elem-id="1470209944682"] .tn-atom,
  #rec1871076361 [data-elem-id="1470209944682"] .tn-atom,
  #rec1854535581 [data-elem-id="1470209944682"] .tn-atom,
  #rec1871030721 [data-elem-id="1470209944682"] .tn-atom,
  #rec1871045261 [data-elem-id="1470209944682"] .tn-atom,
  #rec1883244251 [data-elem-id="1470209944682"] .tn-atom,
  #rec1883155671 [data-elem-id="1470209944682"] .tn-atom,
  #rec1883300851 [data-elem-id="1470209944682"] .tn-atom,

  #rec1871081601 .tn-atom[field="tn_text_1470209944682"],
  #rec1871076361 .tn-atom[field="tn_text_1470209944682"],
  #rec1854535581 .tn-atom[field="tn_text_1470209944682"],
  #rec1871030721 .tn-atom[field="tn_text_1470209944682"],
  #rec1871045261 .tn-atom[field="tn_text_1470209944682"],
  #rec1883244251 .tn-atom[field="tn_text_1470209944682"],
  #rec1883155671 .tn-atom[field="tn_text_1470209944682"],
  #rec1883300851 .tn-atom[field="tn_text_1470209944682"]{
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* =========================
   2) RED LINES (SHAPES) FIX — per REC
   ========================= */

/* 480px: задаём left по данным каждого rec */
@media (max-width: 480px){

  /* --- ОТЧЁТЫ: rec1871081601 (у тебя этот блок уже “идеальный”) --- */
  #rec1871081601 .tn-elem[data-elem-id="1770122051643000001"]{
    left: 20px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  #rec1871081601 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom{
    background-color: #E30613 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
  }

  /* --- “Главная + новые rec”: left=10 на 480 --- */
  #rec1854535581 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1871030721 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1871045261 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883244251 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883155671 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883300851 .tn-elem[data-elem-id="1770122051643000001"]{
    left: 10px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #rec1854535581 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1871030721 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1871045261 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1883244251 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1883155671 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1883300851 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom{
    background-color: #E30613 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
  }

  /* --- НОВОСТИ: другой id линии --- */
  #rec1871076361 .tn-elem[data-elem-id="1770155918358000001"]{
    left: 12px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  #rec1871076361 .tn-elem[data-elem-id="1770155918358000001"] .tn-atom{
    background-color: #E30613 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    height: 2px !important;
  }
}

/* 360px: left по данным res-320 */
@media (max-width: 360px){

  /* “Главная + новые rec”: left=0 на 320 */
  #rec1854535581 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1871030721 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1871045261 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883244251 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883155671 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883300851 .tn-elem[data-elem-id="1770122051643000001"]{
    left: 0px !important;
  }

  /* Новости: left=11 на 320 */
  #rec1871076361 .tn-elem[data-elem-id="1770155918358000001"]{
    left: 11px !important;
  }

  /* Отчёты: если нужно 320=10px */
  #rec1871081601 .tn-elem[data-elem-id="1770122051643000001"]{
    left: 10px !important;
  }
}

/* =========================================
   ZERO BLOCK BUTTONS — MOBILE ALIGN FIX
   Same left alignment as titles & lines
   ========================================= */

@media (max-width: 480px){

  /* КНОПКИ НА ГЛАВНОЙ (один и тот же data-elem-id) */
  #rec1871030721 .tn-elem[data-elem-id="1770026514001000001"],
  #rec1854535581 .tn-elem[data-elem-id="1770026514001000001"]{
    left: 20px !important;       /* как у заголовков и черточек */
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* =================================================
   FINAL FIX: RED UNDERLINES (ALL RECS)
   left = 20px ALWAYS, color = #E30613
   ================================================= */

@media (max-width: 480px){

  /* ВСЕ линии с этим data-elem-id */
  #rec1871081601 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1854535581 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1871030721 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1871045261 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883244251 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883155671 .tn-elem[data-elem-id="1770122051643000001"],
  #rec1883300851 .tn-elem[data-elem-id="1770122051643000001"]{
    left: 20px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* САМА ЛИНИЯ */
  #rec1871081601 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1854535581 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1871030721 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1871045261 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1883244251 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1883155671 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom,
  #rec1883300851 .tn-elem[data-elem-id="1770122051643000001"] .tn-atom{
    background-color: #E30613 !important;
    height: 2px !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}

/* Новости — отдельный id, но ТЕ ЖЕ 20px */
@media (max-width: 480px){
  #rec1871076361 .tn-elem[data-elem-id="1770155918358000001"]{
    left: 20px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #rec1871076361 .tn-elem[data-elem-id="1770155918358000001"] .tn-atom{
    background-color: #E30613 !important;
    height: 2px !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}


