@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0d0b09;
  --panel: #15110d;
  --panel-soft: #1d1711;
  --line: rgba(238, 225, 202, 0.14);
  --text: #f3eadb;
  --muted: rgba(243, 234, 219, 0.64);
  --dim: rgba(243, 234, 219, 0.42);
  --gold: #c5a56a;
  --green: #657d4b;
  --ember: #a45b2d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --app-width: 100vw;
  --content-width: calc(100vw - 28px);
  font-family: Manrope, Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 8%, rgba(101, 125, 75, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(164, 91, 45, 0.14), transparent 28rem),
    linear-gradient(180deg, #080706 0%, var(--bg) 38%, #110d0a 100%);
  color: var(--text);
  overflow-x: hidden;
}

.page-shell,
.hero,
.menu,
.menu-head,
.search,
.dish-grid,
.dish-card {
  min-width: 0;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 820px);
  margin: 16px 0 56px;
  overflow: hidden;
  overflow: clip;
  border: 0;
  border-radius: 8px;
  background: #050403;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  clip-path: inset(0 round 8px);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand,
.brand-lockup {
  color: var(--text);
  text-decoration: none;
}

.brand {
  font-size: 28px;
  font-weight: 300;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 0;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-lockup span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-lockup small {
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-lockup strong {
  color: var(--text);
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.table-pill {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(243, 234, 219, 0.22);
  border-radius: 999px;
  background: rgba(13, 11, 9, 0.58);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  padding: clamp(300px, 58vh, 520px) 28px 52px;
}

.hero__kicker {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Manrope, Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 200;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.95;
}

.hero__text {
  max-width: 460px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-link,
.ghost-link,
.primary-button,
.call-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  padding: 0 26px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
}

.primary-link,
.primary-button {
  background: var(--text);
  color: #14100c;
  font-weight: 600;
}

.ghost-link {
  background: rgba(243, 234, 219, 0.06);
  border-color: rgba(243, 234, 219, 0.2);
  color: var(--text);
}

.table-select {
  display: grid;
  gap: 28px;
  margin: -20px 0 60px;
}

.table-select__head {
  display: grid;
  gap: 8px;
}

.table-select h1 {
  max-width: none;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
}

.table-halls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.table-hall {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 17, 13, 0.72);
}

.table-hall h2 {
  font-size: 28px;
  line-height: 1.05;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.table-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid rgba(243, 234, 219, 0.18);
  border-radius: 999px;
  background: rgba(243, 234, 219, 0.06);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.table-grid a:active,
.table-grid a:hover {
  border-color: rgba(197, 165, 106, 0.72);
  background: rgba(197, 165, 106, 0.16);
}

body.home-page .menu,
body.home-page .cart-bar,
body.home-page .table-pill {
  display: none;
}

body.menu-page .table-select {
  display: none;
}

.menu {
  display: grid;
  gap: 22px;
}

.menu-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 24px;
  align-items: end;
}

h2 {
  max-width: 680px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 200;
  line-height: 1;
  overflow-wrap: break-word;
}

.search {
  display: grid;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.search input,
.comment-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 234, 219, 0.06);
  color: var(--text);
  outline: none;
}

.search input {
  height: 48px;
  padding: 0 16px;
}

.search input:focus,
.comment-field textarea:focus {
  border-color: rgba(197, 165, 106, 0.58);
}

.sticky-categories {
  position: sticky;
  top: 0;
  z-index: 30;
  align-self: start;
  margin: 0 -1px;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, rgba(13, 11, 9, 0.96), rgba(13, 11, 9, 0.82));
  backdrop-filter: blur(18px);
}

.sticky-categories.is-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 80;
  width: var(--content-width);
  max-width: var(--content-width);
  transform: translateX(-50%);
}

.menu.has-fixed-categories .dish-grid {
  margin-top: var(--sticky-categories-height, 0px);
}

.category-strip,
.category-group-strip,
.subcategory-strip {
  min-width: 0;
  max-width: 100%;
}

.category-strip {
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.category-group-strip,
.subcategory-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.category-group-strip {
  padding: 4px 1px 0;
}

.subcategory-strip {
  padding: 0 1px 8px;
}

.category-group-strip::-webkit-scrollbar,
.subcategory-strip::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 234, 219, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.category-button--group {
  min-height: 44px;
  padding: 0 20px;
  border-color: rgba(197, 165, 106, 0.24);
  color: rgba(243, 234, 219, 0.8);
  font-weight: 500;
}

.subcategory-strip .category-button {
  min-height: 42px;
}

.category-button.active {
  border-color: rgba(197, 165, 106, 0.72);
  background: rgba(197, 165, 106, 0.12);
  color: var(--text);
}

.category-button--group.active {
  background: rgba(197, 165, 106, 0.2);
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dish-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 17, 13, 0.82);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  clip-path: inset(0 round 8px);
}

.dish-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  overflow: hidden;
  overflow: clip;
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(197, 165, 106, 0.1), transparent 34%),
    #090706;
  cursor: pointer;
}

.dish-card__media img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
  transition: transform 300ms ease;
}

.dish-card:hover .dish-card__media img {
  transform: scale(1.03);
}

.dish-card__placeholder,
.modal-placeholder,
.admin-dish-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 26% 18%, rgba(197, 165, 106, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(243, 234, 219, 0.08), rgba(8, 7, 5, 0.92));
  color: rgba(243, 234, 219, 0.72);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.dish-card__placeholder span {
  max-width: 80%;
}

.dish-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.dish-card h3 {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.08;
}

.dish-card p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
}

.dish-card__bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
  color: var(--text);
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(243, 234, 219, 0.22);
  border-radius: 50%;
  background: rgba(243, 234, 219, 0.08);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.cart-bar {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(640px, calc(100% - 28px));
  padding: 10px;
  border: 1px solid rgba(243, 234, 219, 0.18);
  border-radius: 999px;
  background: rgba(14, 12, 10, 0.82);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 234, 219, 0.07);
  color: var(--text);
  cursor: pointer;
}

.cart-summary span {
  color: var(--muted);
}

.call-button {
  background: var(--green);
  color: #fbf7ef;
  font-weight: 600;
  font-size: 16px;
}

dialog {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(3, 3, 3, 0.72);
  backdrop-filter: blur(8px);
}

.icon-button {
  border: 1px solid rgba(243, 234, 219, 0.28);
  background: rgba(8, 7, 6, 0.72);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  max-height: calc(100dvh - 40px);
  min-height: 0;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: min(620px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  border-radius: 8px 0 0 8px;
  object-fit: cover;
  object-position: center 70%;
}

.modal-placeholder {
  border-radius: 8px 0 0 8px;
  font-size: 14px;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 0;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 48px 40px 40px;
}

.modal-copy h3,
.cart-modal h3 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 200;
  line-height: 1;
}

.modal-description {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.meta-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-top: 4px;
}

.meta-list div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.meta-list dt {
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 200;
  line-height: 1.45;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(21, 17, 13, 0), var(--panel) 28%);
}

.modal-footer span {
  font-size: 24px;
  font-weight: 500;
}

.cart-modal {
  width: min(520px, calc(100% - 28px));
}

.cart-modal__inner {
  display: grid;
  gap: 20px;
  padding: 34px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong,
.cart-item span {
  min-width: 0;
}

.cart-item span {
  color: var(--muted);
  font-size: 14px;
}

.comment-field {
  display: grid;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comment-field textarea {
  resize: vertical;
  padding: 14px;
  min-height: 96px;
  text-transform: none;
  letter-spacing: 0;
}

.full {
  width: 100%;
}

.helper-text {
  margin: 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 96px;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 234, 219, 0.94);
  color: #14100c;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.admin-page .toast {
  border-color: rgba(101, 125, 75, 0.48);
  background: rgba(39, 54, 31, 0.96);
  color: #f3eadb;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.admin-page {
  background: #0b0a08;
}

.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.admin-link,
.admin-button,
.admin-icon-button {
  min-height: 44px;
  border: 1px solid rgba(243, 234, 219, 0.18);
  border-radius: 999px;
  background: var(--text);
  color: #14100c;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.admin-link,
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.admin-button.secondary {
  background: rgba(243, 234, 219, 0.07);
  color: var(--text);
}

.admin-button.danger,
.admin-icon-button {
  background: rgba(164, 91, 45, 0.14);
  color: #ffd8c3;
}

.admin-button:disabled,
.admin-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 0.95fr) minmax(420px, 1.45fr);
  gap: 16px;
  align-items: start;
}

.admin-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 17, 13, 0.72);
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-panel h2 {
  font-size: 24px;
}

.admin-panel__subhead {
  padding: 16px 18px 0;
  border-top: 1px solid var(--line);
}

.admin-panel__subhead h2 {
  color: var(--gold);
  font-size: 18px;
  font-weight: 400;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.inline-form.compact {
  padding: 0;
  border-bottom: 0;
}

.stack-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

#categoryGroup {
  min-height: 66px;
  font-size: 18px;
}

.admin-page input,
.admin-page textarea,
.admin-page select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 234, 219, 0.06);
  color: var(--text);
  outline: none;
}

.admin-page input,
.admin-page select {
  min-height: 48px;
  padding: 0 14px;
}

.admin-page input[type="file"] {
  min-height: 56px;
  padding: 10px 18px;
  line-height: 32px;
}

.admin-page input[type="file"]::file-selector-button {
  margin: 0 12px 0 0;
}

.admin-page select {
  min-height: 58px;
  padding: 0 18px;
  font-size: 16px;
  line-height: 1.2;
}

.admin-page textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.45;
}

.admin-page label {
  display: grid;
  gap: 8px;
}

.admin-page label span {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dish-filter {
  padding: 14px 12px 4px;
}

.dish-filter select {
  min-height: 48px;
}

.admin-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(243, 234, 219, 0.08);
  border-radius: 8px;
  background: rgba(243, 234, 219, 0.035);
}

.admin-category-group {
  display: grid;
  gap: 8px;
}

.admin-row--group {
  border-color: rgba(197, 165, 106, 0.18);
  background: rgba(197, 165, 106, 0.07);
}

.admin-subcategory-list {
  display: grid;
  gap: 8px;
  padding-left: 12px;
}

.admin-row--child {
  padding: 10px 12px;
}

.admin-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-row strong,
.admin-dish strong {
  font-weight: 400;
}

.admin-row span,
.admin-dish small {
  color: var(--muted);
  font-size: 13px;
}

.admin-icon-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.dish-admin-list {
  max-height: 620px;
  overflow: auto;
}

.admin-dish {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(243, 234, 219, 0.08);
  border-radius: 8px;
  background: rgba(243, 234, 219, 0.035);
  color: var(--text);
  text-align: left;
  cursor: grab;
}

.admin-dish:active {
  cursor: grabbing;
}

.admin-dish.active {
  border-color: rgba(197, 165, 106, 0.64);
  background: rgba(197, 165, 106, 0.1);
}

.admin-dish.is-dragging {
  opacity: 0.38;
}

.admin-dish.drop-before,
.admin-dish.drop-after {
  border-color: rgba(101, 125, 75, 0.72);
}

.admin-dish.drop-before {
  box-shadow: 0 -3px 0 rgba(101, 125, 75, 0.9);
}

.admin-dish.drop-after {
  box-shadow: 0 3px 0 rgba(101, 125, 75, 0.9);
}

.admin-dish img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-dish-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  font-size: 10px;
}

.admin-dish span {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.admin-stop-dish {
  grid-template-columns: 56px 1fr;
  position: relative;
  padding-bottom: 52px;
  cursor: pointer;
}

.admin-stop-dish img,
.admin-stop-dish .admin-dish-placeholder {
  width: 56px;
  height: 56px;
}

.stop-return-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 34px;
  background: rgba(101, 125, 75, 0.22);
  color: var(--text);
}

.editor-panel {
  overflow: hidden;
}

.editor-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.photo-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.photo-actions .admin-button {
  min-height: 48px;
  white-space: nowrap;
}

.admin-preview {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090706;
  object-fit: cover;
  object-position: center center;
}

.admin-page .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.admin-page .checkbox-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--green);
}

.admin-page .checkbox-field span {
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 14px;
}

.editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

@media (max-width: 980px) {
  .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-head,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 420px;
    max-height: 520px;
    border-radius: 8px 8px 0 0;
  }

  .modal-copy {
    max-height: none;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .table-halls {
    grid-template-columns: 1fr;
  }

  .dish-admin-list {
    max-height: none;
  }

  .admin-page select {
    min-height: 66px;
    padding: 0 22px;
    font-size: 18px;
  }

  #categoryGroup {
    min-height: 72px;
    font-size: 20px;
  }
}

@media (max-width: 620px) {
  :root {
    --mobile-gutter: 14px;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }

  .hero {
    width: calc(100% - (var(--mobile-gutter) * 2));
    min-height: min(720px, calc(100svh - 28px));
    margin: 14px var(--mobile-gutter) 36px;
  }

  .table-select {
    width: calc(100% - (var(--mobile-gutter) * 2));
    margin: -8px var(--mobile-gutter) 48px;
  }

  .table-hall {
    padding: 18px;
  }

  .table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    padding: 18px;
  }

  .brand {
    font-size: 24px;
  }

  .logo-mark {
    width: 46px;
    height: 46px;
  }

  .brand-lockup {
    gap: 0;
  }

  .brand-lockup span {
    display: none;
  }

  .hero__content {
    display: flex;
    min-height: calc(min(720px, 100svh - 28px) - 94px);
    flex-direction: column;
    justify-content: flex-end;
    padding: 96px 28px 30px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(46px, 14vw, 58px);
    line-height: 0.92;
  }

  .hero__text {
    margin-top: 18px;
    font-size: 15px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
    margin-bottom: 70px;
  }

  .primary-link,
  .ghost-link {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    font-size: 16px;
  }

  .hero__image {
    object-position: center center;
  }

  .menu {
    width: calc(100% - (var(--mobile-gutter) * 2));
    margin: 0 var(--mobile-gutter);
    gap: 16px;
  }

  .menu-head {
    gap: 18px;
  }

  h2 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  .sticky-categories {
    top: -1px;
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
  }

  .category-strip {
    padding-right: 8px;
  }

  .category-button {
    min-height: 48px;
    padding: 0 18px;
    font-size: 16px;
  }

  .dish-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dish-card {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .dish-card__media {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .dish-card__media img {
    object-position: center center;
  }

  .dish-card__body {
    gap: 12px;
    padding: 15px;
  }

  .dish-card h3 {
    font-size: 26px;
  }

  .dish-card p {
    min-height: 0;
    font-size: 14px;
  }

  .dish-card__bottom {
    align-items: flex-end;
  }

  .price {
    font-size: 26px;
  }

  .add-button {
    width: 52px;
    height: 52px;
  }

  .cart-bar {
    grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr);
    border-radius: 999px;
    gap: 8px;
    padding: 8px;
  }

  .call-button,
  .cart-summary {
    width: 100%;
    min-height: 56px;
    justify-content: center;
    padding-right: 14px;
    padding-left: 14px;
    white-space: nowrap;
    font-size: 16px;
  }

  #cartTotal {
    display: none;
  }

  .modal-copy,
  .cart-modal__inner {
    padding: 28px 20px 22px;
  }

  .modal-grid {
    max-height: none;
  }

  .modal-image {
    min-height: 340px;
    max-height: 48vh;
    border-radius: 8px 8px 0 0;
  }

  .modal-footer {
    bottom: -22px;
  }

  dialog {
    width: min(100% - 16px, 480px);
    max-height: calc(100dvh - 20px);
    overflow: auto;
  }

  .admin-shell {
    width: calc(100% - 28px);
    padding-top: 20px;
  }

  .admin-header {
    display: grid;
    align-items: start;
  }

  .admin-link,
  .admin-button {
    width: 100%;
    min-height: 52px;
  }

  .inline-form,
  .form-row,
  .editor-actions {
    grid-template-columns: 1fr;
  }

  .editor-actions {
    display: grid;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  :root {
    --mobile-gutter: 14px;
  }

  .page-shell {
    width: 100%;
    max-width: none;
  }

  .hero,
  .menu {
    width: calc(100vw - (var(--mobile-gutter) * 2));
    margin-right: var(--mobile-gutter);
    margin-left: var(--mobile-gutter);
  }

  .hero {
    margin-top: 14px;
    margin-bottom: 36px;
  }

  .hero__content {
    width: 100%;
  }

  .sticky-categories {
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 1024px) {
  :root {
    --mobile-gutter: 14px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell {
    width: 100%;
    max-width: none;
  }

  .hero,
  .menu {
    width: calc(100vw - (var(--mobile-gutter) * 2));
    max-width: calc(100vw - (var(--mobile-gutter) * 2));
    margin-right: var(--mobile-gutter);
    margin-left: var(--mobile-gutter);
  }

  .hero {
    margin-top: 14px;
    margin-bottom: 36px;
  }

  .menu {
    gap: 16px;
  }

  .menu-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  h2 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
  }

  .search,
  .search input {
    width: 100%;
    max-width: 100%;
  }

  .sticky-categories {
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
  }

  .category-strip {
    width: 100%;
    max-width: 100%;
  }

  .dish-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }
}

body:not(.admin-page) .page-shell {
  width: 100%;
  max-width: none;
  padding-bottom: calc(154px + env(safe-area-inset-bottom));
}

body:not(.admin-page) .hero,
body:not(.admin-page) .menu {
  width: var(--content-width);
  max-width: var(--content-width);
  margin-right: 14px;
  margin-left: 14px;
}

body:not(.admin-page) .hero {
  min-height: min(720px, calc(100svh - 28px));
  margin-top: 14px;
  margin-bottom: 36px;
}

body:not(.admin-page) .hero__content {
  display: flex;
  width: 100%;
  min-height: calc(min(720px, 100svh - 28px) - 94px);
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px 28px 30px;
}

body:not(.admin-page) .hero__actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 24px;
  margin-bottom: 70px;
}

body:not(.admin-page) .primary-link,
body:not(.admin-page) .ghost-link {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  font-size: 16px;
}

body:not(.admin-page) .menu {
  gap: 16px;
}

body:not(.admin-page) .menu-head {
  grid-template-columns: 1fr;
  gap: 18px;
}

body:not(.admin-page) h2 {
  max-width: 100%;
  font-size: clamp(30px, 9vw, 38px);
  line-height: 1.08;
}

body:not(.admin-page) .search,
body:not(.admin-page) .search input,
body:not(.admin-page) .sticky-categories,
body:not(.admin-page) .category-strip,
body:not(.admin-page) .dish-grid,
body:not(.admin-page) .dish-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body:not(.admin-page) .dish-card,
body:not(.admin-page) .dish-card__media,
body:not(.admin-page) .dish-card__media img,
body:not(.admin-page) .dish-card__body,
body:not(.admin-page) .dish-card p,
body:not(.admin-page) .dish-card h3,
body:not(.admin-page) .dish-card__bottom {
  max-width: 100%;
  min-width: 0;
}

body:not(.admin-page) .dish-card__media img {
  display: block;
}

body:not(.admin-page) .dish-card p,
body:not(.admin-page) .dish-card h3 {
  overflow-wrap: anywhere;
}

body:not(.admin-page) .sticky-categories {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-right: 0;
  margin-left: 0;
  padding-left: 0;
  box-shadow: 0 18px 28px rgba(8, 7, 6, 0.62);
}

body:not(.admin-page) .sticky-categories.is-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 80;
  width: var(--content-width);
  max-width: var(--content-width);
  margin: 0;
  transform: translateX(-50%);
}

body:not(.admin-page) .category-button {
  min-height: 48px;
  padding: 0 18px;
  font-size: 16px;
}

body:not(.admin-page) .dish-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

body:not(.admin-page) .dish-card h3 {
  font-size: 26px;
}

body:not(.admin-page) .price {
  font-size: 26px;
}

body:not(.admin-page) .add-button {
  width: 52px;
  height: 52px;
}

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  body:not(.admin-page) .page-shell {
    width: min(1180px, calc(100% - 32px));
    max-width: 1180px;
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  body:not(.admin-page) .hero,
  body:not(.admin-page) .menu {
    width: auto;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  body:not(.admin-page) .hero {
    min-height: clamp(620px, 88vh, 820px);
    margin-top: 16px;
    margin-bottom: 56px;
  }

  body:not(.admin-page) .hero__content {
    display: block;
    width: min(620px, 100%);
    min-height: 0;
    padding: clamp(300px, 58vh, 520px) 28px 52px;
  }

  body:not(.admin-page) .hero__actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 32px;
    margin-bottom: 0;
  }

  body:not(.admin-page) .primary-link,
  body:not(.admin-page) .ghost-link {
    width: auto;
  }

  body:not(.admin-page) .menu {
    gap: 22px;
  }

  body:not(.admin-page) .menu-head {
    grid-template-columns: 1fr minmax(260px, 360px);
    gap: 24px;
  }

  body:not(.admin-page) h2 {
    max-width: 680px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
  }

  body:not(.admin-page) .dish-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  body:not(.admin-page) .category-button {
    min-height: 40px;
    padding: 0 16px;
    font-size: inherit;
  }

  body:not(.admin-page) .dish-card h3,
  body:not(.admin-page) .price {
    font-size: 24px;
  }

  body:not(.admin-page) .add-button {
    width: 48px;
    height: 48px;
  }
}
