.menu-page {
  background: #f3eee7;
  min-height: 100vh;
  font-weight: 400;
}

.menu-page .fx {
  display: none;
}

.menu-page .sidebar {
  background: rgba(6, 10, 16, 0.94);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.menu-page .logo img {
  mix-blend-mode: normal;
  filter: none;
}

.menu-page .nav a {
  color: rgba(255, 255, 255, 0.58);
}

.menu-page .nav .nav-meta-addr {
  color: #fff;
}

.menu-page .nav .nav-meta-phone {
  color: var(--cyan);
}

.menu-page .nav a:hover,
.menu-page .nav a.is-active {
  color: #fff;
}

.menu-page .nav a::after {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 204, 255, 0.9);
}

.menu-page .side-phone {
  color: rgba(255, 255, 255, 0.86);
}

.menu-page .side-phone:hover {
  color: #fff;
}

.menu-page .side-socials a {
  color: #fff;
  opacity: 0.9;
}

.menu-page .side-socials a:hover {
  opacity: 1;
}

.menu-page .burger {
  color: #fff;
}

.menu-page .burger span {
  background: #fff;
}

.menu-page .burger:focus-visible {
  outline-color: rgba(255, 255, 255, 0.35);
}

.menu-page .page {
  background: #f3eee7;
}

.menu-head {
  width: min(var(--rail), calc(100% - 40px));
  margin: 8px auto 0;
  padding: 8px 0 0;
}

.menu-head h1 {
  margin: 0 0 18px;
  color: #1c1c1c;
  font-size: clamp(28px, 4.4vw, 44px);
  text-transform: uppercase;
  font-weight: 500;
}

.menu-wrap {
  width: min(var(--rail), calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 48px;
}

.menu-tabs {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px 20px 30px;
  font-family: var(--font);
  background: #f9f6f1;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255, 245, 235, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(230, 220, 210, 0.3) 0%, transparent 50%);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid #e8e0d8;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}

.tabs-nav-wrap {
  position: sticky;
  top: var(--top);
  z-index: 30;
  margin: 0 0 22px;
  padding: 8px 0 10px;
  background: linear-gradient(rgba(249, 246, 241, 0.35) 55%, rgba(249, 246, 241, 0));
}

.tabs-nav-wrap::before,
.tabs-nav-wrap::after {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 16px;
  width: 22px;
  z-index: 2;
  pointer-events: none;
}

.tabs-nav-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(236, 230, 222, 0.92), transparent);
  border-radius: 999px 0 0 999px;
}

.tabs-nav-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(236, 230, 222, 0.92), transparent);
  border-radius: 0 999px 999px 0;
}

.tabs-nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px rgba(80, 60, 40, 0.08);
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

@media (max-width: 980px) {
  .tabs-nav-wrap {
    top: var(--top);
  }
}

.tabs-nav.is-sticky {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(80, 60, 40, 0.12);
}

.tab-item {
  flex: 0 0 auto;
  padding: 10px 20px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 300;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-item:hover {
  background: rgba(255, 255, 255, 0.65);
  color: #222;
}

.tab-item.active {
  background: #2a2a2a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.category-section {
  scroll-margin-top: 92px;
  padding: 28px 0 8px;
}

.category-section + .category-section {
  margin-top: 12px;
}

.category-section .menu-item-row:last-child {
  border-bottom: 0;
}

.category-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: #2a2a2a;
  margin: 0 0 14px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

.menu-item-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  border-radius: 8px;
  gap: 10px;
}

.menu-item-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.item-thumb {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  border: 1px solid #e0d8d0;
}

.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info .name {
  font-weight: 300;
  font-size: 16px;
  color: #2a2a2a;
  margin: 0 0 2px;
  line-height: 1.3;
}

.item-info .weight-line {
  font-weight: 200;
  font-size: 11px;
  line-height: 1.15;
  color: #888;
  margin: 0 0 4px;
}

.item-info .desc {
  font-weight: 200;
  font-size: 12px;
  color: #777;
  margin: 4px 0 0;
}

.item-price {
  font-weight: 300;
  color: #333;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.14em;
}

.item-price .sum,
.modal-price .sum {
  line-height: 1;
}

.item-price .byn,
.modal-price .byn {
  background: currentColor;
  opacity: 0.64;
  width: calc(0.62em * 227 / 251);
  height: 0.62em;
  margin-top: 0.15em;
  align-self: flex-start;
  flex: 0 0 auto;
  transform: scaleX(0.9);
  transform-origin: center center;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 24px;
  max-width: 420px;
  width: 90%;
  padding: 24px 20px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
  color: #2a2a2a;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: #fff;
  color: #222;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.modal-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  background: #f0ede8;
}

.modal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 4px;
  padding-right: 40px;
}

.modal-name {
  font-weight: 300;
  font-size: 18px;
  color: #2a2a2a;
  flex: 1 1 100%;
}

.modal-price {
  font-weight: 300;
  font-size: 17px;
  line-height: 1;
  color: #333;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.14em;
}

@supports (text-box-trim: trim-both) {
  .item-price,
  .modal-price {
    align-items: center;
  }

  .item-price .sum,
  .modal-price .sum {
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }

  .item-price .byn,
  .modal-price .byn {
    margin-top: 0;
    align-self: center;
  }
}

.modal-weight {
  font-size: 12px;
  line-height: 1.15;
  color: #999;
  font-weight: 200;
}

.modal-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-top: 6px;
  font-weight: 200;
}

.menu-page .footer,
.menu-page .footer a {
  color: #666;
}

.menu-page .footer {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

@media (max-width: 980px) {
  .menu-page .nav {
    background: rgba(6, 10, 16, 0.86);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-page .sidebar {
    background: rgba(6, 10, 16, 0.78);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    overflow: visible;
  }

  .menu-head,
  .menu-wrap {
    width: 100%;
    margin: 0;
  }

  .menu-head {
    padding: 16px 16px 0;
  }

  .menu-head h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 8vw, 40px);
  }

  .menu-wrap {
    padding: 0 0 32px;
  }

  .menu-tabs {
    width: 100%;
    padding: 6px 16px 20px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .tab-item {
    padding: 8px 12px;
    font-size: 12px;
  }

  .category-title {
    font-size: 18px;
    margin: 14px 0 6px;
  }

  .item-info .name {
    font-size: 16px;
  }

  .item-info .weight-line {
    font-size: 11px;
  }

  .item-info .desc {
    font-size: 12px;
  }

  .item-price {
    font-size: 16px;
  }

  .menu-item-row {
    padding: 10px 0;
    gap: 8px;
  }

  .item-thumb {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .category-section {
    scroll-margin-top: 80px;
  }

  .menu-page .footer {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 11px;
  }
}
