.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 4;
  width: min(calc(100vw - 42px), 348px);
  height: 49px;
  transform: translateX(-50%);
  display: none;
  justify-content: space-between;
  align-items: center;
  padding-inline: 21px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .98);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

.bottom-nav a {
  height: 100%;
  display: grid;
  place-items: center;
  color: #737373;
}

.bottom-nav svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-menu-button {
  position: fixed;
  top: max(29px, calc(env(safe-area-inset-top) + 29px));
  right: max(29px, calc((100vw - var(--app-max-width, 430px)) / 2 + 29px));
  z-index: 8;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #6f6f6f;
  background: rgba(255, 255, 255, .9);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, .2),
    0 0 0 1px rgba(255, 255, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(1.28);
  -webkit-backdrop-filter: blur(16px) saturate(1.28);
  cursor: pointer;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.floating-menu-button::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .32);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .74);
  backdrop-filter: blur(15px) saturate(1.25);
  -webkit-backdrop-filter: blur(15px) saturate(1.25);
}

.floating-menu-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-menu-button.is-hidden,
.menu-is-open .floating-menu-button {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}

.site-menu {
  position: fixed;
  top: max(28px, calc(env(safe-area-inset-top) + 28px));
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 9;
  width: max-content;
  max-width: calc(100vw - 36px);
  height: fit-content;
  max-height: calc(100dvh - 56px);
  margin: auto 0;
  padding: 20px 50px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border: 10px solid rgba(255, 255, 255, .16);
  border-radius: 48px;
  color: #747474;
  background: rgba(255, 255, 255, .7);
  background-clip: padding-box;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(22px) saturate(1.34);
  -webkit-backdrop-filter: blur(22px) saturate(1.34);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px) scale(.97);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 230ms ease,
    visibility 230ms ease,
    transform 230ms ease;
}

.site-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.site-menu__close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin: 10px auto;
  padding: 0;
  border: 0;
  color: #858585;
  background: transparent;
  cursor: pointer;
}

.site-menu__close svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.site-menu__brand {
  flex: 0 0 auto;
  display: block;
  width: 225px;
  max-width: 100%;
  height: auto;
  margin: 10px auto 18px;
}

.site-menu__divider {
  flex: 0 0 auto;
  height: 1px;
  margin-bottom: 0;
  background: rgba(0, 0, 0, .68);
}

.site-menu__scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 27px;
  padding-bottom: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.site-menu__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  background: transparent;
}

.site-menu h2 {
  margin: 0 0 21px;
  color: #000;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.site-menu h2 a {
  color: inherit;
  text-decoration: none;
}

.site-menu__links {
  display: grid;
  gap: 22px;
}

.site-menu__links a {
  color: #000;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 400;
  white-space: nowrap;
  word-spacing: 5px;
}

@media (min-width: 700px) {
  .bottom-nav {
    width: min(388px, calc(100vw - 42px));
  }
}
