.mobile-bottom-menu {
  display: none;
}

@media (max-width: 767px) {
  /* Шапка страницы использует один фон: его верхний слой с маской отвечает
   * за эффект раскрытия при касании. */
  .page-header__bg,
  .safety-hero__bg,
  .expertise-diagnostics__media--image {
    background-color: #102431;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
  }

  .safety-hero__bg::after,
  .expertise-diagnostics__media--image::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background-image: inherit;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto 72%;
  }

  .safety-hero__bg {
    isolation: isolate;
  }

  .safety-hero__bg::after,
  .expertise-diagnostics__media--image::after {
    opacity: 0.9;
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-menu {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: rgba(17, 24, 32, 0.96);
    border: 1px solid rgba(55, 150, 214, 0.4);
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-menu a {
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 4px 2px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    border-radius: 9px;
    transition: color 180ms ease, background-color 180ms ease;
  }

  .mobile-bottom-menu a:hover,
  .mobile-bottom-menu a:focus-visible {
    color: #fff;
    background: rgba(55, 150, 214, 0.22);
  }

  .mobile-bottom-menu i {
    color: #abe9fc;
    font-size: 19px;
    line-height: 1;
  }

  .scroll-to-top {
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .safety-hero__bg::after,
  .expertise-diagnostics__media--image::after {
    background-size: auto 90%;
  }
}
