:root {
  --app-header-bar: 96px;
  --app-tabs-height: 72px;
  --app-list-top: calc(var(--app-header-bar) + var(--app-tabs-height) + 8px);
  --app-main-padding-top: calc(var(--app-header-bar) + env(safe-area-inset-top, 0px));
  --app-tabs-top: var(--app-main-padding-top);
  --theme-bg: #000;
  --theme-surface: #030303;
  --theme-accent: #f8d66d;
  --theme-text: #f5f5f5;
  --theme-text-muted: #a3a3a3;
  --max-width: 28rem;
  --image-edge-fade-x: 18%;
  --image-edge-fade-y: 14%;
  --detail-image-edge-fade-x: 16%;
  --detail-image-edge-fade-y: 14%;
  --header-logo-height: 76px;
  --header-logo-max-width: min(220px, calc(100vw - 7rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Montserrat", system-ui, sans-serif;
  background-color: var(--theme-bg);
  color: var(--theme-text);
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

/* Header — как Gastrobar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: #000;
  padding-top: env(safe-area-inset-top, 0px);
  box-sizing: content-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--app-header-bar);
  min-height: var(--app-header-bar);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 5.5rem;
}

.header-side--right {
  justify-content: flex-end;
}

/* Языковое меню — визуал как в Gastrobar, без перевода */
.lang-menu {
  position: relative;
  z-index: 1001;
}

.lang-menu__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 2.75rem;
  height: 2.5rem;
  padding: 0 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lang-menu__trigger:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-menu__flag-wrap {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  outline: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-menu__flag-wrap--lg {
  outline: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-menu__flag {
  display: block;
  object-fit: cover;
}

.lang-menu__chevron {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.lang-menu.is-open .lang-menu__chevron {
  transform: rotate(180deg);
}

.lang-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1002;
  min-width: 4.5rem;
  padding: 0.375rem 0.25rem 0.375rem 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-menu__option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lang-menu__option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-menu__option.is-active {
  background: rgba(245, 158, 11, 0.15);
}

.lang-menu__option.is-active .lang-menu__flag-wrap--lg {
  outline-color: rgba(251, 191, 36, 0.6);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.header-logo {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.header-logo__img {
  width: auto;
  max-width: var(--header-logo-max-width);
  height: var(--header-logo-height);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.75));
}

/* Shell — как MenuList period=bar */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
  background: var(--theme-surface);
}

.category-tabs-wrap {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999;
  max-height: var(--app-tabs-height);
  overflow: hidden;
  top: var(--app-tabs-top);
}

.category-tabs-wrap__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.625rem 0.75rem;
  background: var(--theme-surface);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

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

@media (hover: hover) and (pointer: fine) {
  .category-tabs {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  }

  .category-tabs::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  .category-tabs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
  }
}

.category-tab {
  flex-shrink: 0;
  padding: 0.625rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.category-tab:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
}

.category-tab.is-active {
  border-color: transparent;
  background: #fff;
  color: #000;
}

.menu-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--theme-surface);
  scroll-padding-top: calc(var(--app-header-bar) + var(--app-tabs-height) + env(safe-area-inset-top, 0px));
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px calc(7rem + env(safe-area-inset-bottom, 0px));
}

.menu-list__spacer {
  flex-shrink: 0;
  min-height: calc(var(--app-list-top) + env(safe-area-inset-top, 0px));
  background: var(--theme-surface);
}

/* Карточка — как MenuListItem на главной Gastrobar */
.menu-card {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: max(120px, 24dvh);
  max-height: 190px;
  overflow: hidden;
  border: none;
  border-radius: 1rem;
  background: var(--theme-surface);
  cursor: pointer;
  text-align: left;
  transition: opacity 0.15s ease;
  animation: card-in 0.45s ease-out both;
}

.menu-card:active {
  opacity: 0.95;
}

.menu-card--hot-dog {
  align-items: center;
  min-height: max(160px, 26dvh);
  max-height: none;
}

.menu-card--hot-dog.menu-card--has-hit {
  min-height: max(172px, 27dvh);
  max-height: none;
}

.menu-card--hot-dog .menu-card__body {
  align-self: stretch;
}

.menu-card--hot-dog .menu-card__content {
  gap: 0.35rem;
}

.menu-card--hot-dog .menu-card__name {
  display: block;
  overflow: visible;
  line-height: 1.2;
  flex-shrink: 0;
}

.menu-card--hot-dog .menu-card__desc {
  display: -webkit-box;
  flex-shrink: 0;
  min-height: 2.1em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-card--hot-dog .menu-card__sausage {
  flex-shrink: 1;
  min-height: 0;
}

.menu-card--hot-dog .menu-card__price {
  flex-shrink: 0;
}

.menu-card--hot-dog .menu-card__media {
  align-self: center;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: auto;
  max-height: calc(100% - 1rem);
}

.menu-card--hot-dog .menu-card__media > img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.menu-card--box {
  min-height: max(168px, 24dvh);
  max-height: 210px;
}

.menu-card--box:not(.menu-card--has-hit) .menu-card__header {
  margin-bottom: 0.125rem;
  min-height: 1.75rem;
}

.menu-card--box:not(.menu-card--has-hit) .menu-card__header-badge {
  display: none;
}

.menu-card--box .menu-card__content {
  justify-content: flex-end;
}

.menu-card--box .menu-card__name {
  display: block;
  overflow: visible;
  line-height: 1.2;
}

.menu-card--box .menu-card__desc {
  flex-shrink: 1;
  min-height: 0;
  -webkit-line-clamp: 2;
}

.menu-card--box .menu-card__price {
  flex-shrink: 0;
}

.menu-card--test {
  opacity: 0.72;
}

.menu-card__body {
  position: relative;
  z-index: 10;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.75rem 0.5rem 0.75rem 1rem;
}

.menu-card--has-hit .menu-card__content {
  padding-top: 0;
}

.hit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  background-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.hit-badge__icon {
  line-height: 1;
}

.menu-card__content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.25rem;
}

.menu-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.menu-card__name--split {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.menu-card__name-line {
  display: block;
  white-space: nowrap;
}

.menu-card__sausage-options--inline {
  flex-flow: row wrap;
}

.menu-card__sausage-chip--compact {
  flex-direction: row;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.detail-sausage-picker__options--inline {
  flex-wrap: wrap;
}

.detail-sausage-option--compact {
  flex-direction: row;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
}

.menu-card__grammage {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.55);
}

.menu-card__desc {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.menu-card__sausage {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.125rem;
}

.menu-card__sausage-label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
}

.menu-card__sausage-options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.menu-card__sausage-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  max-width: 100%;
  padding: 0.25rem 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.08);
  font-size: 0.5625rem;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.78);
}

.menu-card__sausage-chip-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.menu-card__sausage-chip-meta {
  font-weight: 500;
  color: rgba(212, 175, 55, 0.9);
}

.menu-card__price {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.25rem;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.menu-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
  width: 42%;
  min-width: 90px;
  max-width: 160px;
  min-height: 120px;
  overflow: hidden;
  border-radius: 0 1rem 1rem 0;
  background: var(--theme-surface);
}

.menu-card__media > img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: contain;
  object-position: center center;
}

.menu-card__media--box {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 var(--box-media-w, 204px);
  width: var(--box-media-w, 204px);
  min-width: var(--box-media-w, 204px);
  max-width: none;
  padding-bottom: 0.5rem;
  overflow: visible;
}

.menu-card__box-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--box-frame-w, 196px);
  height: var(--box-frame-h, 148px);
  overflow: visible;
}

.menu-card__box-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.menu-card__media--box .menu-card__box-scale img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center var(--box-focus-y, 50%);
}

.menu-card--pierogi .menu-card__box-scale img {
  transform: scale(var(--pierogi-zoom, 1));
  transform-origin: center var(--box-focus-y, 50%);
}

.menu-card__scale-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% / var(--item-scale));
  height: calc(100% / var(--item-scale));
}

.menu-card__scale-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(var(--item-scale));
  transform-origin: center center;
}

.menu-card__open {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.menu-card__open svg {
  width: 0.9rem;
  height: 0.9rem;
}

.menu-card__no-image,
.detail-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.42);
}

.menu-card__media--no-photo {
  background: rgba(255, 255, 255, 0.04);
}

.detail-image-wrap--no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42vh;
  background: rgba(255, 255, 255, 0.03);
}

.detail-no-image {
  min-height: 42vh;
  font-size: 0.875rem;
}

/* Плавное растворение краёв изображений в фон */
.menu-card__media:not(.menu-card__media--sharp) > img,
.menu-card__media:not(.menu-card__media--sharp) .menu-card__box-scale img,
.menu-card__media:not(.menu-card__media--sharp) .menu-card__scale-frame img {
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 var(--image-edge-fade-x),
      #000 calc(100% - var(--image-edge-fade-x)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 var(--image-edge-fade-y),
      #000 calc(100% - var(--image-edge-fade-y)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 var(--image-edge-fade-x),
      #000 calc(100% - var(--image-edge-fade-x)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 var(--image-edge-fade-y),
      #000 calc(100% - var(--image-edge-fade-y)),
      transparent 100%
    );
  mask-composite: intersect;
}

/* Detail — как MenuDetailView */
.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: #000;
  touch-action: pan-y;
}

.detail-overlay.is-closing {
  opacity: 0;
  transform: scale(0.98) translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.detail-back {
  position: absolute;
  top: max(18px, calc(env(safe-area-inset-top, 0px) + 6px));
  left: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 9999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.detail-back svg {
  width: 1.5rem;
  height: 1.5rem;
}

.detail-top-actions {
  position: absolute;
  top: max(18px, calc(env(safe-area-inset-top, 0px) + 6px));
  right: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-counter {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.detail-favorite {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 9999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.detail-favorite:hover {
  opacity: 0.85;
}

.detail-favorite:active {
  transform: scale(1.12);
}

.detail-favorite.is-liked {
  color: #d4af37;
}

.detail-favorite svg {
  width: 1.5rem;
  height: 1.5rem;
}

.detail-stage {
  position: absolute;
  inset: 0;
}

.detail-image-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.detail-image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.detail-image-wrap--box {
  align-items: center;
  justify-content: center;
  padding-bottom: min(30vh, 220px);
}

.detail-box-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(84vw, var(--box-detail-w, 360px));
  height: min(84vw, var(--box-detail-h, 360px));
  max-width: 360px;
  max-height: 360px;
  overflow: visible;
}

.detail-box-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.detail-image-wrap--box .detail-box-scale img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center var(--box-focus-y, 50%);
}

.detail-image-wrap--pierogi .detail-box-scale img {
  transform: scale(var(--pierogi-zoom, 1));
  transform-origin: center var(--box-focus-y, 50%);
}

.detail-scale-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% / var(--item-scale));
  height: calc(100% / var(--item-scale));
}

.detail-scale-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(var(--item-scale));
  transform-origin: center center;
}

.detail-image-wrap:not(.detail-image-wrap--sharp) > img,
.detail-image-wrap:not(.detail-image-wrap--sharp) .detail-box-scale img,
.detail-image-wrap:not(.detail-image-wrap--sharp) .detail-scale-frame img {
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 var(--detail-image-edge-fade-x),
      #000 calc(100% - var(--detail-image-edge-fade-x)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 var(--detail-image-edge-fade-y),
      #000 calc(100% - var(--detail-image-edge-fade-y)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 var(--detail-image-edge-fade-x),
      #000 calc(100% - var(--detail-image-edge-fade-x)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 var(--detail-image-edge-fade-y),
      #000 calc(100% - var(--detail-image-edge-fade-y)),
      transparent 100%
    );
  mask-composite: intersect;
}

.detail-gradient {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  height: 40vh;
  min-height: 280px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.98) 15%,
    rgba(0, 0, 0, 0.9) 35%,
    rgba(0, 0, 0, 0.6) 55%,
    rgba(0, 0, 0, 0.25) 78%,
    rgba(0, 0, 0, 0) 100%
  );
}

.detail-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  padding: 2.5rem 1rem max(calc(6rem + 1cm), calc(env(safe-area-inset-bottom, 0px) + 5rem + 1cm));
}

.detail-info__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.detail-info__title--split {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.15;
}

.detail-info__title-line {
  display: block;
}

.detail-info__grammage {
  margin: -0.5rem 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.detail-info__sausage {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(212, 175, 55, 0.92);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.detail-info__hit {
  margin-bottom: 0.75rem;
}

.detail-info__hit .hit-badge {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

.detail-info__desc {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.detail-info__price {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #d4af37;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Hot-dog: выбор типа сосиски в детальной карточке */
.detail-sausage-picker {
  margin: 0 0 0.75rem;
}

.detail-sausage-picker__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.detail-sausage-picker__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-sausage-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.detail-sausage-option__label {
  font-weight: 600;
}

.detail-sausage-option__meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.92);
}

.detail-sausage-option:hover {
  background: rgba(255, 255, 255, 0.07);
}

.detail-sausage-option.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.18);
  color: #fffef5;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
}

/* Empty state */
.menu-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 2rem 1rem;
  text-align: center;
}

.menu-empty__text {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

.menu-empty__sub {
  margin: 0;
  max-width: 18rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--theme-text-muted);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Нижняя навигация — как BottomNav на главной Gastrobar */
.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 0.75rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}

.bottom-nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: min(28rem, calc(100vw - 1rem));
  padding: 0.375rem 0.375rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bottom-nav__btn {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 2.85rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.375rem 0.125rem;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bottom-nav__btn:hover {
  color: #fff;
}

.bottom-nav__btn.is-active {
  color: #000;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.bottom-nav__btn--games {
  flex: 0 0 auto;
  min-width: 3.25rem;
}

.bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.25em;
  font-size: 1.05rem;
  line-height: 1;
}

.bottom-nav__label {
  max-width: 3.5rem;
  text-align: center;
  font-size: 8px;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .bottom-nav__pill {
    width: min(30rem, calc(100vw - 2rem));
    gap: 0.125rem;
    padding: 0.5rem 0.5rem;
  }

  .bottom-nav__btn {
    min-width: 0;
    padding: 0.5rem 0.25rem;
  }

  .bottom-nav__icon {
    font-size: 1.1rem;
  }

  .bottom-nav__label {
    max-width: none;
    white-space: nowrap;
    font-size: 10px;
  }
}

.category-tabs-wrap.is-hidden {
  display: none;
}

.menu-card__fav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 9999px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.menu-card__fav:hover {
  opacity: 0.8;
}

.menu-card__fav:active {
  transform: scale(1.15);
}

.menu-card__fav.is-liked {
  color: #d4af37;
}

.menu-card__fav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-height: 1.75rem;
}

.menu-card__header-badge {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 1.75rem;
}
