/*
 * Главная и каталог на телефоне — та же схема, что на странице санатория:
 * без полосы ссылок сверху, «Меню» справа от логотипа, вкладки и регионы без прокрутки вбок,
 * тонкая нижняя панель «Меню · Позвонить · Помощник» вместо плавающей кнопки помощника.
 * Подключается последним (после readable.css и catalog.css).
 */
.home-bar{display:none}
@media(max-width:760px){
  /* Шапка */
  html body #catalog-shell-header .shell-utility,
  html body #catalog-shell-header .shell-mobile-menu{display:none!important}
  html body #catalog-shell-header .shell-header-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:10px 12px!important;padding:12px 0 10px!important;min-height:0!important}
  html body #catalog-shell-header .shell-brand{grid-column:1!important;grid-row:1!important;min-width:0;white-space:normal!important}
  html body #catalog-shell-header .shell-brand-name{font-size:24px!important;white-space:nowrap}
  html body #catalog-shell-header .shell-brand-caption{margin-top:4px!important;font-size:15px!important;line-height:1.35!important;color:#4a5a54!important;white-space:normal!important}
  html body #catalog-shell-header .m-menu-btn{grid-column:2;grid-row:1;margin-top:0}
  html body #catalog-shell-header .shell-header-contact{grid-column:1/-1!important;grid-row:2!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:center!important;justify-content:space-between!important;gap:4px 12px!important;padding:8px 0 0!important;border-top:1px solid #e1e9e4}
  html body #catalog-shell-header .shell-header-contact>a{font-size:22px!important;line-height:1.2!important}
  html body #catalog-shell-header .shell-header-contact button{min-height:40px!important;padding:0!important;font-size:16px!important;color:#1b5a49!important;border-bottom:1px dotted #1b5a49!important}

  /* Вкладки «Санатории / Отели / …» — все видны сразу, в две колонки */
  html body #home-search #category-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important;margin-right:0!important;padding:0!important;mask-image:none!important;-webkit-mask-image:none!important}
  html body #home-search #category-tabs>*{width:auto!important;min-width:0!important;min-height:46px!important;margin:0!important;padding:6px 8px!important;font-size:17px!important;line-height:1.2!important;white-space:normal!important;text-align:center!important;border-radius:10px!important}

  /* Регионы — плиткой в две колонки, без прокрутки вбок */
  html body .home-directions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:auto!important;min-width:0!important;overflow:visible!important;padding:0!important;margin-right:0!important;scroll-snap-type:none!important}
  html body .home-directions>.home-direction{width:auto!important;min-width:0!important;height:72px!important;min-height:0!important;padding:8px!important;flex:none!important}
  html body .home-directions>.home-direction>span:not(.home-direction-action){font-size:15px!important;line-height:1.2!important}
  html body .home-directions .home-direction-action{display:none!important}

  /* Плавающую кнопку помощника заменяет кнопка в нижней панели */
  html body .trip-assist-toggle,html body #assistant-launcher{display:none!important}
  html body .mx-mobile-bar,html body.mx-ready .mx-mobile-bar{display:none!important}

  /* Нижняя панель */
  .home-bar{display:flex;align-items:center;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:60;padding:5px 10px calc(5px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d7e2dd;box-shadow:0 -4px 14px rgba(0,0,0,.08)}
  html body .home-bar>*{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;height:44px;margin:0;padding:0 10px;border-radius:10px;font:700 16px/1.1 Arial,sans-serif!important;text-decoration:none!important;white-space:nowrap;cursor:pointer}
  .home-bar>.m-menu-bar{gap:7px;padding:0 12px;border:2px solid #1b5a49;background:#fff;color:#1b5a49}
  .home-bar>a{border:0;background:none;color:#1b5a49!important}
  .home-bar>.home-bar-help{flex:0 1 auto;min-width:0;margin-left:auto;padding:0 14px;border:0;background:#e5c98a;color:#17211e;overflow:hidden}
  body{padding-bottom:64px!important}
  body.m-menu-open .home-bar,body:has(dialog[open]) .home-bar{visibility:hidden}
}
