.floating-menu-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 1001;
  border: 1px solid rgba(237, 192, 120, 0.62);
  border-radius: 999px;
  padding: 0.66rem 1.28rem;
  background: linear-gradient(180deg, rgba(44, 73, 43, 0.94), rgba(27, 49, 28, 0.96));
  color: #f2dfba;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.floating-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 4, 3, 0.58);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.floating-menu-panel {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  bottom: max(8px, env(safe-area-inset-bottom));
  width: min(92vw, 360px);
  border-radius: 22px;
  border: 1px solid rgba(236, 193, 118, 0.35);
  background:
    linear-gradient(180deg, rgba(34, 19, 12, 0.94), rgba(15, 9, 6, 0.96)),
    url("/Images/koffer.webp") center/cover no-repeat;
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.56);
  transform: translateX(calc(100% + 16px));
  transition: transform 220ms ease;
  z-index: 1002;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.floating-menu-panel::before {
  content: "";
  position: absolute;
  inset: 0.4rem;
  border: 1px solid rgba(246, 215, 152, 0.24);
  border-radius: 16px;
  pointer-events: none;
}

.floating-menu-head,
.floating-menu-list,
.floating-menu-foot {
  position: relative;
  z-index: 1;
}

.floating-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.95rem 0.9rem 0.8rem;
  border-bottom: 1px solid rgba(236, 193, 118, 0.2);
}

.floating-menu-title {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  color: #f3d39a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.floating-menu-close {
  border: 0;
  background: transparent;
  color: rgba(242, 223, 186, 0.86);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.floating-menu-list {
  margin: 0;
  padding: 0.95rem 0.9rem;
  list-style: none;
  overflow-y: auto;
  display: grid;
  gap: 0.56rem;
}

.floating-menu-list a {
  display: block;
  text-decoration: none;
  color: #ead9b5;
  border-radius: 14px;
  border: 1px solid rgba(236, 193, 118, 0.26);
  background: linear-gradient(180deg, rgba(255, 205, 114, 0.08), rgba(36, 18, 12, 0.84));
  padding: 0.72rem 0.85rem;
  font-size: 1.02rem;
}

.floating-menu-list a.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.floating-menu-section {
  margin: 0.45rem 0 0.1rem;
  padding: 0.32rem 0.12rem;
  color: #f3d39a;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.86rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(236, 193, 118, 0.2);
}

.floating-menu-group {
  list-style: none;
}

.floating-menu-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(236, 193, 118, 0.35);
  border-radius: 12px;
  padding: 0.6rem 0.72rem;
  background: linear-gradient(180deg, rgba(70, 45, 26, 0.62), rgba(30, 18, 12, 0.78));
  color: #f3d39a;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.floating-menu-group-symbol {
  font-size: 1.25rem;
  line-height: 1;
  color: #ffe0a9;
}

.floating-menu-sublist {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.floating-menu-sublist[hidden] {
  display: none;
}

.floating-menu-foot {
  padding: 0.8rem 0.9rem 1rem;
  border-top: 1px solid rgba(236, 193, 118, 0.2);
}

.floating-menu-dismiss {
  width: 100%;
  border: 1px solid rgba(237, 192, 120, 0.58);
  border-radius: 999px;
  padding: 0.68rem 0.95rem;
  background: linear-gradient(180deg, rgba(44, 73, 43, 0.94), rgba(27, 49, 28, 0.96));
  color: #f2dfba;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .floating-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .floating-menu-panel {
  transform: translateX(0);
}
