/* 100med — мобильная/планшетная шапка (экраны < 1024px; десктоп не меняется) */
   Экраны < 1024px. Десктоп не меняется. */
.mh-app,.mh-header,.mh-totop{display:none}

@media (max-width:1023.98px){
  /* --- старая шапка: прячем всё, кроме выпадающего меню --- */
  .b-layout__header .b-header__search,
  .b-layout__header .b-header__top,
  .b-layout__header .b-header__logo,
  .b-layout__header .b-header__content-mob,
  .b-layout__header .b-header__callback--mob,
  .b-layout__header .b-header__bottom-mob{display:none!important}
  .b-layout__header,.b-layout__header .b-header,.b-layout__header .b-header__container,
  .b-layout__header .b-header__bottom,.b-layout__header .b-header__bottom .l-container,
  .b-layout__header .b-header__container-bottom,.b-layout__header .b-header__wrap--bottom{
    padding:0!important;margin:0!important;min-height:0!important;height:auto!important;border:0!important;box-shadow:none!important;background:none!important}
  .b-layout__header .b-header__menu.open{z-index:19}
  /* у старого блока есть transform — из-за него меню позиционируется от блока, а не от экрана */
  .b-layout__header .b-header__bottom{transform:none!important}
  /* body на сайте — flex-колонка фиксированной высоты: не даём шапке сжиматься */
  .mh-app,.mh-header{flex:none!important}
  /* слайдеры (врачи, преимущества) выходят за край экрана и дают горизонтальную прокрутку.
     clip обрезает по ширине и, в отличие от hidden, не ломает sticky у панели якорей */
  .b-layout__content,.b-layout__footer{overflow-x:clip!important}

  /* --- баннер приложения --- */
  .mh-app{position:sticky;top:0;z-index:21;display:flex;align-items:center;gap:10px;padding:10px 12px 10px 4px;background:#edf0f5;border-bottom:1px solid #d8dfe8;font-family:inherit;color:#1b1455;box-sizing:border-box}
  .mh-app[hidden]{display:none}
  .mh-app__close{flex:none;width:32px;height:44px;border:0;padding:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#5d6673}
  .mh-app__close svg{width:20px;height:20px}
  .mh-app__icon{flex:none;width:44px;height:44px;border-radius:11px;background:#fff;border:1px solid #d8dfe8;display:flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}
  .mh-app__icon img{width:36px;height:auto;display:block}
  .mh-app__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
  .mh-app__title{font-size:14px;font-weight:600;line-height:1.2}
  .mh-app__sub{font-size:12px;color:#5d6673;line-height:1.3}
  /* iOS 26 Safari: закрываем полосу страницы над прилипшим блоком (под строкой состояния/адресом) */
  .mh-app::before,.mh-header::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:200px;background:inherit;pointer-events:none}
  .mh-app__btn{flex:none;height:36px;padding:0 14px;border-radius:18px;background:#e90055;color:#fff!important;display:flex;align-items:center;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}

  /* --- шапка --- */
  .mh-header{position:sticky;top:0;z-index:20;height:56px;display:flex;align-items:center;gap:6px;padding:0 8px 0 4px;background:#fff;color:#1b1455;font-family:inherit;box-sizing:border-box;
    box-shadow:0 2px 8px -2px rgba(27,20,85,.10);transition:box-shadow .2s}
  .mh-header.is-scrolled{box-shadow:0 4px 14px -4px rgba(27,20,85,.14)}
  .mh-header.is-bar-stuck{box-shadow:0 1px 0 rgba(27,20,85,.06)}
  .mh-header__burger{flex:none;width:44px;height:44px;border:0;padding:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#1b1455}
  .mh-header__burger svg{width:26px;height:26px}
  .mh-header__burger .mh-i-close{display:none}
  .mh-header__burger[aria-expanded="true"] .mh-i-menu{display:none}
  .mh-header__burger[aria-expanded="true"] .mh-i-close{display:block}
  .mh-header__logo{display:flex;align-items:center;height:44px}
  .mh-header__logo img{height:26px;width:auto;display:block}
  .mh-header__spacer{flex:1}
  .mh-header__call{flex:none;width:44px;height:44px;border-radius:22px;background:#edf0f5;display:flex;align-items:center;justify-content:center;color:#1b1455}
  .mh-header__call svg{width:22px;height:22px}
  .mh-header__phone{display:none}
  .mh-header__cta{flex:none;height:40px;padding:0 14px;border-radius:20px;background:#6187ff;color:#fff!important;display:flex;align-items:center;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
  .mh-header__cta:hover{background:#4f77f5}
  .mh-only-tablet{display:none}

  /* --- панель якорей (существующий .b-nav-block) --- */
  .b-nav-block{position:sticky!important;top:56px;z-index:15;background:#fff;border-top:1px solid transparent;transition:box-shadow .2s,border-color .2s}
  .b-nav-block.is-stuck{box-shadow:0 6px 14px -6px rgba(27,20,85,.14);border-top-color:#eceff3}
  .b-nav-block .l-container{padding:0!important;max-width:none!important;width:auto!important}
  .b-nav-block .b-nav-block__wrap{padding:0!important;margin:0!important}
  .b-nav-block .b-nav-block__list{display:flex!important;flex-wrap:nowrap!important;gap:7px;padding:8px 16px!important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .b-nav-block .b-nav-block__list::-webkit-scrollbar{display:none}
  .b-nav-block .b-nav-block__list a{flex:none;display:inline-flex!important;align-items:center;height:31px;padding:0 12px!important;margin:0!important;box-sizing:border-box;
    font-size:12px!important;font-weight:500!important;line-height:1!important;white-space:nowrap;border-radius:999px!important;
    background:#fff!important;color:#1b1455!important;border:1px solid #d8dfe8!important;transition:background .15s,color .15s,border-color .15s}
  .b-nav-block .b-nav-block__list a.mh-active{background:#6187ff!important;color:#fff!important;border-color:#6187ff!important}

  /* --- кнопка «Наверх» --- */
  .mh-totop{display:flex;position:fixed;right:16px;bottom:24px;z-index:30;width:48px;height:48px;border-radius:50%;border:0;padding:0;color:#fff;align-items:center;justify-content:center;cursor:pointer;
    /* объём как у розовой кнопки чата: блик сверху-слева, затемнение снизу, мягкая цветная тень */
    background:radial-gradient(circle at 32% 26%,#a9bfff 0%,#7c9bff 32%,#6187ff 58%,#4467e8 100%);
    box-shadow:inset 0 3px 6px rgba(255,255,255,.45),inset 0 -5px 10px rgba(27,20,85,.28),0 10px 22px -8px rgba(65,100,235,.75);
    opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility 0s linear .2s}
  .mh-totop svg{width:42%;height:42%;filter:drop-shadow(0 1px 1px rgba(27,20,85,.3))}
  .mh-totop.is-visible:active{transform:scale(.96)}
  .mh-totop.is-visible{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .2s}
  html.mh-menu-open .mh-totop{opacity:0!important;visibility:hidden!important}
}

/* --- планшет 768–1023 --- */
@media (min-width:768px) and (max-width:1023.98px){
  .mh-app{gap:14px;padding:12px 28px 12px 18px}
  .mh-app__close{width:44px}
  .mh-app__close svg{width:22px;height:22px}
  .mh-app__icon{width:52px;height:52px;border-radius:13px}
  .mh-app__icon img{width:42px}
  .mh-app__title{font-size:16px}
  .mh-app__sub{font-size:13px}
  .mh-app__btn{height:44px;padding:0 22px;border-radius:22px;font-size:15px}

  .mh-header{height:68px;gap:16px;padding:0 20px 0 14px}
  .mh-header__burger{width:48px;height:48px}
  .mh-header__burger svg{width:28px;height:28px}
  .mh-header__logo{height:48px}
  .mh-header__logo img{height:32px}
  .mh-header__call{display:none}
  .mh-header__phone{display:flex;flex-direction:column;line-height:1.2}
  .mh-header__phone-num{font-size:17px;font-weight:700;color:#1b1455!important;text-decoration:none;white-space:nowrap}
  .mh-header__phone-cb{font-size:12px;color:#5d6673!important;text-decoration:none}
  .mh-header__phone-cb:hover{color:#354092!important}
  .mh-header__cta{height:48px;padding:0 20px;border-radius:24px;font-size:15px}
  .mh-only-phone{display:none}
  .mh-only-tablet{display:inline}

  .b-nav-block{top:68px}
  .b-nav-block .b-nav-block__list{padding:10px 28px!important}
  .b-nav-block .b-nav-block__list a{height:34px;padding:0 15px!important;font-size:13px!important}

  .mh-totop{right:28px;bottom:32px;width:56px;height:56px}
}

/* --- шапка как на nrmed.ru: бургер, поиск, логотип по центру, значки «позвонить» и «записаться» --- */
@media (max-width:1023.98px){
  .mh-header__search-btn{flex:none;width:44px;height:44px;border:0;padding:0;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#1b1455}
  .mh-header__search-btn svg{width:26px;height:26px}
  .mh-header__rec{flex:none;width:44px;height:44px;box-sizing:border-box;border-radius:50%;border:1.5px solid #e90055;display:flex;align-items:center;justify-content:center;color:#e90055}
  .mh-header__rec svg{width:22px;height:22px}
  .mh-search{display:none;position:absolute;left:0;right:0;top:100%;z-index:2;background:#fff;padding:10px 12px 12px;border-top:1px solid #eceff3;box-shadow:0 10px 16px -10px rgba(27,20,85,.2)}
  .mh-header.mh-search-open .mh-search{display:block}
  .mh-search form{display:flex;gap:8px;margin:0}
  .mh-search input{flex:1;min-width:0;height:44px;box-sizing:border-box;border:1px solid #d8dfe8;border-radius:22px;padding:0 16px;font:inherit;font-size:16px;color:#1b1455;background:#fff;outline:0}
  .mh-search input:focus{border-color:#6187ff}
  .mh-search button{flex:none;height:44px;padding:0 18px;border:0;border-radius:22px;background:#6187ff;color:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
}
/* шапка как прежде: логотип слева, серый круг «позвонить» и кнопка «Записаться»; лупа и круг-календарь скрыты */
@media (max-width:1023.98px){
  .mh-header__search-btn,.mh-header__rec,.mh-sp-l,.mh-search{display:none!important}
}
