a {
  text-decoration: none;
}

@media (max-width: 991.98px) { body { padding-bottom: 64px; } }

.mobile-nav { height: 64px; padding-bottom: env(safe-area-inset-bottom); z-index: 1030; }
.mobile-nav .nav-btn {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 11px; color: var(--bs-secondary-color); text-decoration: none;
  background: none; border: 0;
}
.mobile-nav .nav-btn i { font-size: 20px; }
.mobile-nav > .nav-btn,
.mobile-nav > .dropup {
  flex: 1 1 0;
  min-width: 0;
}
.mobile-nav .nav-btn:hover, .mobile-nav .nav-btn.active { color: var(--bs-primary); }
.mobile-nav .dropdown-menu { min-width: 220px; margin-bottom: 8px !important; }
.mobile-nav .bi-chevron-down { transition: transform .2s; }
.mobile-nav [aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }

/* Отступ выпадающих меню верхней панели */
.navbar .dropdown-menu { --bs-dropdown-spacer: .75rem; }

/* for toast container */
:root {
  --mobile-nav-height: 64px;
}

.app-toast-container {
  position: fixed;
  z-index: 1090;
  right: 5px;
  bottom: 5px;
  width: min(450px, calc(100vw - 10px));
  padding: 5px;
}

@media (max-width: 991.98px) {
  .app-toast-container {
    right: auto;
    bottom: calc(var(--mobile-nav-height) + 5px);
    left: 50%;
    width: calc(100vw - 10px);
    transform: translateX(-50%);
  }
}

/*position of modal on mobile to bottom*/

@media (max-width: 991.98px) {
  .modal > .modal-dialog {
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .modal > .modal-dialog > .modal-content {
    width: 100%;
    max-height: 85vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* отступ под вырез/полосу жестов на iPhone */
  .modal > .modal-dialog .modal-footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  /* по умолчанию Bootstrap выезжает сверху, для нижнего окна нужно снизу */
  .modal.fade > .modal-dialog {
    transform: translate(0, 50px);
  }

  .modal.show > .modal-dialog {
    transform: none;
  }
}