/* ME301: скрыть только изображение логотипа и показать текст для #rec1422207411 (моб.) */
@media screen and (max-width: 767px) {
  /* скрываем мобильное изображение логотипа */
  #rec1422207411 .tmenu-mobile__imglogo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* скрываем десктопное изображение логотипа */
  #rec1422207411 .t228__imglogo {
    display: none !important;
  }

  /* контейнер логотипа и ссылка — видимы (для текста) */
  #rec1422207411 .tmenu-mobile__burgerlogo,
  #rec1422207411 .tmenu-mobile__burgerlogo a {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-decoration: none;
  }

  /* показываем возможные заголовки */
  #rec1422207411 .tmenu-mobile__burgerlogo__title,
  #rec1422207411 .tmenu-mobile__title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* добавляем текст вместо логотипа */
  #rec1422207411 .tmenu-mobile__burgerlogo a::after {
    content: "ФЕМИС ГРУПП";
    font-family: 'Ubuntu', sans-serif;
    font-size: 28px;
    color: #2B2452;
    font-weight: bold;
    line-height: 1.2;
    display: inline-block;
  }
  
}

/* ME301: размер текста 18px только для кнопок 1 и 2 */
#rec1422207411 .tmenu-mobile__link-item:nth-child(1),
#rec1422207411 .tmenu-mobile__link-item:nth-child(2),
#rec1422207411 .t-btn:nth-child(1),
#rec1422207411 .t-btn:nth-child(2),
#rec1422207411 .t-btn__text:nth-child(1),
#rec1422207411 .t-btn__text:nth-child(2) {
  font-size: 18px !important;
}

/* В одну линию + 12-колоночная раскладка:
   1 (отступ) / 4 (#rec1422844751) / 1 (отступ) / 5 (#rec1422858111) / 1 (отступ)
   — при этом #rec1422858111 слева, #rec1422844751 справа */
#rec1422858111 {
  float: left;
  box-sizing: border-box;
  width: 41.6667%;         /* 5/12 */
  margin-left: 8.3333%;    /* 1/12 слева */
  margin-right: 8.3333%;   /* 1/12 между блоками */
}

#rec1422844751 {
  float: right;
  box-sizing: border-box;
  width: 33.3333%;         /* 4/12 */
  margin-right: 8.3333%;   /* 1/12 справа */
  clear: none !important;
}

/* Мобилка: #rec1422858111 сверху, затем #rec1422844751; оба по центру, ширина 90% */
@media (max-width: 979px) {
  /* общий стиль */
  #rec1422858111,
  #rec1422844751 {
    float: none !important;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  /* порядок следования — #rec1422858111 первым */
  #rec1422858111 {
    order: 1 !important;
    margin-bottom: 20px !important;
  }

  #rec1422844751 {
    order: 2 !important;
  }

  /* если оба внутри общего контейнера */
  [id^="rec"]:has(#rec1422858111):has(#rec1422844751) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}
}

/* 1 / 4 (лево) / 1 / 5 (право) / 1 — теперь: 4 колонки слева, 5 колонок справа */
/* #rec1434984341 — ЛЕВО (4/12), #rec1434993861 — ПРАВО (5/12) */

.t-records #rec1434984341,
.t-records #rec1434993861{
  box-sizing: border-box !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
}

/* Левый — 4/12 */
.t-records #rec1434984341{
  display: inline-block !important;
  vertical-align: top !important;
  float: left !important;
  width: 33.3333333% !important;   /* 4/12 */
  margin-left: 8.3333333% !important; /* 1/12 слева */
  margin-right: 8.3333333% !important;/* 1/12 между */
}

/* Правый — 5/12 */
.t-records #rec1434993861{
  display: inline-block !important;
  vertical-align: top !important;
  float: right !important;
  width: 41.6666667% !important;   /* 5/12 */
  margin-right: 8.3333333% !important; /* 1/12 справа */
  margin-left: 0 !important;
}

/* Внутренние контейнеры не растягивают внешние блоки */
.t-records #rec1434984341 .t-container,
.t-records #rec1434993861 .t-container{
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Мобильная: стек и центровка (rec1434984341 сверху) */
@media (max-width: 979px){
  .t-records #rec1434984341,
  .t-records #rec1434993861{
    float: none !important;
    display: block !important;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .t-records #rec1434984341{ order: 1 !important; margin-bottom: 20px !important; }
  .t-records #rec1434993861{ order: 2 !important; }
}

.map-widget-wrap{
  width:100%;
  height:458px;
  border-radius:40px;
  overflow:hidden;
  position:relative;
  box-shadow:0 14px 38px rgba(0,0,0,.06);
  background:#fff;
}

/* iframe во весь блок */
.map-widget-wrap iframe{
  position:absolute;
  left:0; top:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* скрыть видимые ссылки, если они есть */
.map-widget-wrap > a { display:none !important; }

/* --- Адаптив --- */
@media (max-width:1199px){
  .map-widget-wrap{ height:366px; border-radius:18px; }
  .map-mask-search{ left:10px; top:10px; width:110px; height:36px; }
  .map-mask-right{ right:10px; top:10px; width:56px; height:200px; }
  .map-mask-scale{ right:10px; bottom:10px; width:90px; height:30px; }
}

/* 1-я кнопка — прозрачный фон и обводка, текст — #2b2452 */
#rec1422207411 a.t-btn:nth-of-type(1) {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: #2b2452 !important;
  -webkit-text-fill-color: #2b2452 !important;
}
#rec1422207411 a.t-btn:nth-of-type(1):hover,
#rec1422207411 a.t-btn:nth-of-type(1):focus,
#rec1422207411 a.t-btn:nth-of-type(1):active {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #2b2452 !important;
  opacity: 1 !important;
}

/* 2-я кнопка — типичное состояние: прозрачный фон, обводка #2b2452, текст светлый */
#rec1422207411 a.t-btn:nth-of-type(2) {
  background-color: transparent !important;
  border: 2px solid #2b2452 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Hover/focus для 2-й — фон становится #2b2452 (обычное поведение), текст остаётся светлым */
#rec1422207411 a.t-btn:nth-of-type(2):hover,
#rec1422207411 a.t-btn:nth-of-type(2):focus,
#rec1422207411 a.t-btn:nth-of-type(2):active {
  background-color: #2b2452 !important;
  border-color: #2b2452 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Иконки/SVG наследуют цвет */
#rec1422207411 a.t-btn svg { fill: currentColor !important; stroke: currentColor !important; }
#rec1422207411 a.t-btn img { filter: none !important; opacity: 1 !important; }