/* Анимированная желтая подложка для заголовков */
.highlight-animated {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-align: center;
  width: 100%;
  padding: 0 20px; /* Add equal padding on both sides */
}

.highlight-animated::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: #f4db6c;
  z-index: 1;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}

.highlight-animated.animated::before {
  width: 100%;
}

.highlight-animated > * {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

/* Hide Tilda background elements */
.tn-elem[data-elem-id="1582871615016"],
.tn-elem[data-elem-id="1582873497740"] {
  display: none !important;
}

/* Центрируем внешний блок и задаём фиксированную ширину для 'Послуги' */
.t396__elem.tn-elem__1662920631470209944682 {
  width: 190px !important;
  height: 60px !important;
  margin: 0 !important;
  position: relative !important;
  display: block !important;
  text-align: center !important;
}

/* Жёлтый блок — та же ширина и высота, центрируем внутри родителя для 'Послуги' */
#rec166292063 .highlight-block.highlight-animated {
  width: 190px !important;
  height: 60px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  padding: 0 !important;
}

/* Текст — по центру и на всю ширину для 'Послуги' */
#rec166292063 .tn-atom {
  width: 100% !important;
  text-align: center !important;
  display: block !important;
  line-height: 1 !important;
}

/* Центрируем внешний блок и задаём фиксированную ширину */
.t396__elem.tn-elem__1662887161470209944682 {
  width: 320px !important;
  margin: 0 !important;
  position: relative !important;
  display: block !important;
  text-align: center !important;
}

/* Жёлтый блок — та же ширина, центрируем внутри родителя */
.highlight-block.highlight-animated {
  width: 320px !important;
  margin: 0 auto !important;
  display: block !important;
  box-sizing: border-box;
  padding: 0 !important;
}

/* Текст — по центру и на всю ширину */
.tn-atom {
  width: 100% !important;
  /*text-align: center !important;*/
  display: block !important;
}

/* Мобильные стили */
@media (max-width: 640px) {
  .highlight-animated {
    display: block;
    width: 100%;
  }
  .t-bgimg[style*="/images/1.jpg"],
  .t-bgimg[style*="/images/2.jpg"],
  .t-bgimg[style*="/images/3.jpg"] {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }
  /* Специальные стили для блока "Послуги" в мобильной версии */
  #rec166292063 .t396__elem.tn-elem__1662920631470209944682 .highlight-block.highlight-animated {
    justify-content: flex-start !important;
    text-align: left !important;
  }
  #rec166292063 .t396__elem.tn-elem__1662920631470209944682 .highlight-block.highlight-animated .tn-atom {
    text-align: left !important;
    width: auto !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .t396__elem.tn-elem__16628871614702100112652 {
    height: auto !important;
    min-height: 300px !important;
    margin-bottom: 60px !important;
    padding-bottom: 50px !important;
  }
  .t396__elem.tn-elem__16628871614702100112652 .tn-atom {
    line-height: 1.9 !important;
  }
  #rec166288716 .t396__artboard {
    height: auto !important;
    min-height: 1050px !important;
  }
  #rec166288716 .t396__carrier,
  #rec166288716 .t396__filter {
    height: auto !important;
    min-height: 1050px !important;
  }
} 