/* =========================================================
   DESKTOP: кнопка "Запись онлайн" в обычном и фиксированном меню
   ========================================================= */

#rec834879778 .t770__bottomwrapper a.t-menu__link-item,
#rec841098532 a.t-menu__link-item {
  opacity: 1 !important;
}

#rec834879778 .t770__bottomwrapper a.t-menu__link-item[href*="#medflex"],
#rec841098532 a.t-menu__link-item[href*="#medflex"] {
  color: #2f55e6 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

#rec834879778 .t770__bottomwrapper a.t-menu__link-item[href*="#medflex"]::before,
#rec841098532 a.t-menu__link-item[href*="#medflex"]::before {
  content: "";
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  background: url("https://static.tildacdn.com/tild3039-6462-4235-b033-393731333330/medtochka-icon.svg") center/contain no-repeat !important;
  position: relative;
  top: -1px;
}

#rec834879778 .t770__bottomwrapper a.t-menu__link-item[href*="#medflex"]::after,
#rec841098532 a.t-menu__link-item[href*="#medflex"]::after {
  content: none !important;
}

#rec834879778 .t770__bottomwrapper a.t-menu__link-item[href*="#medflex"]:hover,
#rec841098532 a.t-menu__link-item[href*="#medflex"]:hover {
  color: #2f55e6 !important;
  opacity: 1 !important;
}

@media screen and (max-width: 1200px) {
  #rec834879778 .t770__bottomwrapper .t770__list_item {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #rec841098532 .t229__list_item {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* =========================================================
   MOBILE ULTRA PREMIUM MENU
   ========================================================= */


@media screen and (max-width: 980px) {

  html.pz-html-lock {
  overflow: hidden !important;
}

body.pz-body-lock {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
}
  #allrecords {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  /* верхняя шапка */
  #rec834879778 .tmenu-mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-height: 52px !important;
    background: #374351 !important;
    box-shadow: 0 4px 14px rgba(17,24,39,0.10) !important;
    border-bottom: none !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
  }

  #rec834879778 .tmenu-mobile__container {
    min-height: 52px !important;
    padding: 8px 18px !important;
    box-sizing: border-box !important;
  }

  #rec834879778 .tmenu-mobile__text {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
  }

  /* бургер / крест */
  #rec834879778 .t-menuburger {
    width: 20px !important;
    height: 14px !important;
  }

  #rec834879778 .t-menuburger span {
    background-color: #00d0ff !important;
    height: 2px !important;
  }

  #rec834879778 .t-menuburger span:nth-child(1) {
    top: 0 !important;
  }

  #rec834879778 .t-menuburger span:nth-child(2),
  #rec834879778 .t-menuburger span:nth-child(3) {
    top: 6px !important;
  }

  #rec834879778 .t-menuburger span:nth-child(4) {
    top: 12px !important;
  }

  /* само меню */
  #rec834879778 .t770[data-menu="yes"] {
    position: fixed !important;
    top: 52px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 52px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(17,24,39,0.10) !important;
    z-index: 99998 !important;
    box-sizing: border-box !important;
    overscroll-behavior: contain !important;
  }

  /* никаких серых карточек, рамок и вложенных подложек */
  #rec834879778 .t770__maincontainer,
  #rec834879778 .t770__topwrapper,
  #rec834879778 .t770__mobilelist,
  #rec834879778 .t770__alladditional,
  #rec834879778 .t770__leftwrapper,
  #rec834879778 .t770__rightwrapper,
  #rec834879778 .t770__additionalwrapper,
  #rec834879778 .t770__mobile,
  #rec834879778 .t770__mobilecontainer {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #rec834879778 .t770__maincontainer {
    width: 100% !important;
    min-height: auto !important;
    padding-bottom: 0 !important;
  }

  /* логотип */
  #rec834879778 .t770__topwrapper {
    height: auto !important;
    padding: 22px 20px 10px !important;
  }

  #rec834879778 .t770__logowrapper,
  #rec834879778 .t770__logowrapper2 {
    display: block !important;
    text-align: center !important;
  }

  #rec834879778 .t770__imglogomobile,
  #rec834879778 .t770__imglogo {
    max-width: 180px !important;
    width: 180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    height: auto !important;
  }

  /* список */
  #rec834879778 .t770__mobilelist {
    padding-top: 6px !important;
  }

  #rec834879778 .t770__mobilelist .t770__list {
    padding: 0 24px !important;
    margin: 0 !important;
  }

  #rec834879778 .t770__mobilelist .t770__list_item {
    padding: 0 !important;
    margin: 0 0 20px !important;
    text-align: center !important;
  }

  #rec834879778 .t770__mobilelist .t-menu__link-item {
    display: inline-block !important;
    font-size: 18px !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    color: #374351 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.45px !important;
    text-decoration: none !important;
    opacity: 1 !important;
    max-width: 100% !important;
  }

  #rec834879778 .t770__mobilelist .t-menu__link-item::after {
    content: none !important;
  }

  /* подпункты направления */
  #rec834879778 .t770__mobilelist .t-menusub {
    margin-top: 10px !important;
  }

  #rec834879778 .t770__mobilelist .t-menusub__menu,
  #rec834879778 .t770__mobilelist .t-menusub__content {
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
  }

  #rec834879778 .t770__mobilelist .t-menusub__list {
    margin-top: 8px !important;
    padding: 0 !important;
    border-top: none !important;
  }

  #rec834879778 .t770__mobilelist .t-menusub__list-item {
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  #rec834879778 .t770__mobilelist .t-menusub__link-item {
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: #596579 !important;
    text-transform: none !important;
    text-decoration: none !important;
  }

  /* запись онлайн */
  #rec834879778 .t770__mobilelist .t770__list_item:last-child {
    margin-top: 8px !important;
    margin-bottom: 18px !important;
  }

  #rec834879778 .t770__mobilelist a.t-menu__link-item[href*="#medflex"],
  #rec834879778 .t770__mobilelist a.t-menu__link-item[href$="#medflex"] {
    color: #2f55e6 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  #rec834879778 .t770__mobilelist a.t-menu__link-item[href*="#medflex"]::before,
  #rec834879778 .t770__mobilelist a.t-menu__link-item[href$="#medflex"]::before {
    content: "";
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    background: url("https://static.tildacdn.com/tild3039-6462-4235-b033-393731333330/medtochka-icon.svg") center/contain no-repeat !important;
  }

  /* нижний инфоблок — плоский, без рамок */
  #rec834879778 .t770__alladditional {
    margin: 0 !important;
    padding: 12px 18px 18px !important;
    border: none !important;
    border-top: 1px solid rgba(55,67,81,0.08) !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
  }

  #rec834879778 .t770__leftwrapper,
  #rec834879778 .t770__rightwrapper {
    width: 100% !important;
    padding: 0 !important;
  }

  #rec834879778 .t770__additionalwrapper {
    margin-bottom: 6px !important;
  }

  #rec834879778 .t770__descr {
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #6b7685 !important;
    text-align: center !important;
  }

  #rec834879778 .t770__additionalitem a {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #374351 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(55,67,81,0.18) !important;
  }

  /* когда меню открыто — блокируем скролл страницы */
  html.pz-menu-open,
  body.pz-menu-open {
    overflow: hidden !important;
    height: 100dvh !important;
    touch-action: none !important;
  }
}