/* ------------------------------------------------------------
   Дополнения к style.css темы:
   бургер-меню на мобильных + блокировка прокрутки при открытом меню
   ------------------------------------------------------------ */

@media (max-width: 991px) {
  #site-navigation {
    position: relative;
    padding: 6px 0;
  }

  #menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  #menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #074360;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
  }

  #menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  #menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  #menu-toggle:focus-visible {
    outline: 2px solid #074360;
    outline-offset: 2px;
  }

  html.mobile-nav-open,
  html.mobile-nav-open body {
    overflow: hidden;
  }

  /* крестик в панели меню вместо иконки «полоски» */
  #close-mobile-menu:after {
    content: "\00d7";
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    line-height: 38px;
  }
}

/* на узких экранах в кнопке оставляем только слово «Позвонить» */
@media (max-width: 991px) {
  .btn-phone {
    display: none;
  }
}

/* ------------------------------------------------------------
   Плавающая кнопка «Позвонить» — только на мобильных
   ------------------------------------------------------------ */
.call-bar {
  display: none;
}

@media (max-width: 991px) {
  .call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    padding: 10px 22px;
    background: #074360;
    color: #fff;
    text-decoration: none;
    border-radius: 100px;
    box-shadow: 0 8px 24px rgba(7, 67, 96, .35), 0 2px 6px rgba(7, 67, 96, .2);
    transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .call-bar:active {
    transform: scale(.975);
    box-shadow: 0 4px 14px rgba(7, 67, 96, .35);
  }

  .call-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 15px;
  }

  .call-bar__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .call-bar__label {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .call-bar__phone {
    font-family: "Cormorant Infant", serif;
    font-size: 16px;
    opacity: .82;
  }

  /* чтобы кнопка не перекрывала подвал */
  body {
    padding-bottom: 92px;
  }

  /* в шапке кнопка больше не нужна — её заменила плавающая */
  #header-book-button {
    display: none;
  }

  /* прячем, пока открыто мобильное меню */
  html.mobile-nav-open .call-bar {
    opacity: 0;
    visibility: hidden;
  }
}
