/* Mobile header: not fixed, scrolls with page */
@media screen and (max-width: 960px) {
  .t-menu-base_positionfixed {
    position: absolute !important;
  }
  .t-tildalаbеl, body .t-body {
    padding-top: 0 !important;
  }
  .t-menu-base .t-menu__content {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}

/* Hide duplicate Home/Glavnaya menu item - logo already links to homepage */
.t-menu-base__list-item:first-child:has(> .t-menu__link-wrapper > a.t-menu__link-item[href*="/eng"]) {
  display: none !important;
}
.t-menu-base__list-item:first-child:has(> .t-menu__link-wrapper > a.t-menu__link-item[href="/"]) {
  display: none !important;
}

/* On pages with shared header: hide duplicate page-level Russian nav */
body:has(#rec1092748681) [id^="rec"]:not(#rec1092748681) .t-menu-base:has(.t-menu-base__logo a[href="/"]) {
  display: none !important;
}

/* Hide redundant "Glavnaya stranitsa" button in shared header right side */
#nav1092748681 .t-btnflex_type_button2[href="/"] {
  display: none !important;
}

/* Remove orange/coral color (#ff8562) - replace with brand colors */

/* Social links in header and footer */
.t-sociallinks__item a,
.t-sociallinks__item a svg,
.t-sociallinks__item a svg path,
.t-sociallinks__item a svg g {
  color: #085041 !important;
  fill: #085041 !important;
}

/* Chat widget messenger links and icons */
.t825__messenger,
.t825__messenger svg,
.t825__messenger svg path,
.t825__messenger svg g {
  color: #FFFFFF !important;
  fill: #FFFFFF !important;
}

/* Chat button background: orange -> brand green */
.t825__btn_wrapper,
.t825__btn_wrapper:hover {
  background-color: #085041 !important;
}

/* Any element with inline orange color */
[style*="ff8562"],
[style*="FF8562"] {
  color: #085041 !important;
}

/* Card badges and accent text */
.t-card__uptitle,
.t-card__badge {
  color: #085041 !important;
}

/* Slider card links */
.t-card__title a,
.t-card__descr a {
  color: #085041 !important;
}


/* HIGH SPECIFICITY: Header logo + language buttons override */
#allrecords #rec2202975793 #nav2202975793 .t-menu-base__logo a,
#allrecords #rec2202975793 #nav2202975793 .t-menu-base__button a,
#allrecords #rec2202975793 #nav2202975793 .t-menu-base__button a .t-btnflex__text {
  color: #F1EFE8 !important;
}