@font-face {
  font-family: "Bebas Neue";
  src:
    url("assets/fonts/bebas-neue.woff2") format("woff2"),
    url("assets/fonts/bebas-neue.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --shell-width: 560px;
  --bg-top: #f4f1ec;
  --bg-bottom: #ece6de;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.96);
  --surface-strong: #1f1a17;
  --text: #1f1a17;
  --muted: #625a54;
  --line: rgba(31, 26, 23, 0.1);
  --accent: #c56536;
  --accent-strong: #954624;
  --accent-soft: #f7e4d8;
  --chip: #ece5de;
  --shadow: 0 6px 18px rgba(31, 22, 18, 0.06);
  --shadow-strong: 0 16px 32px rgba(31, 22, 18, 0.1);
  --transition-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --sticky-top: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(197, 101, 54, 0.42);
  outline-offset: 3px;
  box-shadow: none;
}

.topbar,
.page {
  width: min(100%, var(--shell-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
  padding:
    calc(0.72rem + env(safe-area-inset-top, 0px))
    0.84rem
    0.76rem;
  background: rgba(244, 241, 236, 0.96);
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  box-shadow: 0 4px 14px rgba(31, 22, 18, 0.04);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  flex: 0 0 auto;
}

.brand span {
  min-width: 0;
}

.brand strong,
.menu-panel-head h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
}

.brand strong {
  display: block;
  font-size: clamp(1.12rem, 4.8vw, 1.3rem);
  line-height: 0.98;
}

.call-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 0.94rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(31, 22, 18, 0.14);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.page {
  padding:
    0.58rem
    0.82rem
    calc(1.45rem + env(safe-area-inset-bottom, 0px));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-section {
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.menu-tools {
  position: sticky;
  top: calc(var(--sticky-top) + env(safe-area-inset-top, 0px));
  z-index: 20;
  margin-bottom: 0.74rem;
  padding: 0.08rem 0 0.34rem;
  background:
    linear-gradient(
      180deg,
      rgba(244, 241, 236, 0.98),
      rgba(244, 241, 236, 0.95) 76%,
      rgba(244, 241, 236, 0)
    );
}

.menu-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  gap: 0.5rem;
  padding: 0.06rem 0 0.34rem;
  touch-action: pan-x pinch-zoom;
}

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

.menu-tab {
  scroll-snap-align: start;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  min-height: 42px;
  padding: 0.72rem 0.92rem;
  font-size: 0.87rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.menu-tab.is-active {
  background: var(--surface);
  color: var(--accent-strong);
  border-color: rgba(197, 101, 54, 0.24);
  box-shadow: 0 6px 14px rgba(31, 22, 18, 0.08);
}

.menu-panel {
  min-height: 320px;
  padding: 0.08rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  overflow: visible;
  touch-action: pan-y pinch-zoom;
  transition:
    transform var(--transition-base),
    opacity var(--transition-base),
    box-shadow var(--transition-base);
}

.menu-panel.is-dragging {
  transition: none;
  will-change: transform;
}

.menu-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
  padding: 0 0.14rem;
}

.menu-panel-head h2 {
  margin: 0;
  font-size: 1.52rem;
  line-height: 1;
}

.menu-note {
  margin: 0 0 0.94rem;
  padding: 0 0.14rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.menu-empty {
  display: grid;
  gap: 0.72rem;
  justify-items: start;
}

.menu-empty h2,
.menu-empty p {
  margin: 0;
}

.menu-empty h2 {
  font-size: 1.34rem;
}

.menu-empty p {
  color: var(--muted);
  line-height: 1.5;
}

.menu-list {
  display: grid;
  gap: 0.72rem;
}

.menu-item {
  display: grid;
  gap: 0.58rem;
  padding: 0.94rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.82rem;
}

.menu-item-top strong {
  font-size: 1rem;
  line-height: 1.34;
}

.menu-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  padding: 0.44rem 0.7rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.menu-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.52;
}

.menu-item-meta {
  display: grid;
  gap: 0.56rem;
}

.menu-panel.is-animating {
  animation: panel-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-panel.is-animating .menu-item {
  animation: item-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-panel.is-animating .menu-item:nth-child(2) {
  animation-delay: 40ms;
}

.menu-panel.is-animating .menu-item:nth-child(3) {
  animation-delay: 80ms;
}

.menu-panel.is-animating .menu-item:nth-child(4) {
  animation-delay: 120ms;
}

.menu-panel.is-animating .menu-item:nth-child(5) {
  animation-delay: 160ms;
}

.menu-panel.is-animating .menu-item:nth-child(6) {
  animation-delay: 200ms;
}

.menu-panel.is-animating .menu-item:nth-child(7) {
  animation-delay: 240ms;
}

.menu-panel.is-animating .menu-item:nth-child(8) {
  animation-delay: 280ms;
}

.site-footer {
  display: grid;
  gap: 0.56rem;
  margin-top: 1.08rem;
  padding: 0.95rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.site-footer-copy--notice {
  padding: 0.78rem 0.88rem;
  border: 1px solid rgba(197, 101, 54, 0.16);
  border-radius: 14px;
  background: rgba(247, 228, 216, 0.72);
  color: var(--text);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem 1rem;
  padding-top: 0.14rem;
  border-top: 1px solid var(--line);
}

.site-footer-link {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes item-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (hover: hover) {
  .call-pill:hover,
  .menu-tab:hover {
    transform: translate3d(0, -1px, 0);
  }

  .call-pill:hover {
    box-shadow: 0 12px 24px rgba(31, 22, 18, 0.16);
  }

  .menu-tab:hover {
    box-shadow: 0 6px 14px rgba(31, 22, 18, 0.08);
  }

  .site-footer-link:hover {
    color: var(--accent);
  }
}

@media (min-width: 420px) {
  .topbar {
    padding:
      calc(0.78rem + env(safe-area-inset-top, 0px))
      0.94rem
      0.88rem;
  }

  .page {
    padding:
      0.72rem
      0.94rem
      calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 960px) {
  :root {
    --shell-width: 1180px;
    --sticky-top: 94px;
  }

  html {
    scroll-padding-top: 7rem;
  }

  .topbar {
    gap: 1.1rem;
    margin-top: 0.8rem;
    padding:
      calc(0.92rem + env(safe-area-inset-top, 0px))
      1.04rem
      0.94rem;
    border: 1px solid rgba(32, 23, 19, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(31, 22, 18, 0.08);
  }

  .brand {
    gap: 0.96rem;
  }

  .brand img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .brand strong {
    font-size: 1.62rem;
  }

  .call-pill {
    min-height: 50px;
    padding: 0.9rem 1.08rem;
    font-size: 0.9rem;
  }

  .page {
    padding:
      0.9rem
      1.04rem
      calc(1.8rem + env(safe-area-inset-bottom, 0px));
  }

  .menu-section {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 1.18rem;
    align-items: start;
  }

  .menu-tools {
    top: calc(var(--sticky-top) + env(safe-area-inset-top, 0px));
    margin-bottom: 0;
    padding: 0.78rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    box-shadow: var(--shadow);
  }

  .menu-tabs {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.48rem;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .menu-tab {
    width: 100%;
    min-height: 44px;
    padding: 0.74rem 0.92rem;
    font-size: 0.88rem;
    text-align: left;
  }

  .menu-panel {
    min-height: 560px;
    padding: 0.98rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow);
  }

  .menu-panel-head {
    margin-bottom: 1rem;
    padding: 0 0.14rem 0.86rem;
    border-bottom: 1px solid var(--line);
  }

  .menu-panel-head h2 {
    font-size: 1.72rem;
  }

  .menu-note {
    margin-bottom: 0.94rem;
    font-size: 0.88rem;
  }

  .menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  .menu-item {
    min-height: 100%;
    padding: 0.98rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

  .menu-item p {
    font-size: 0.86rem;
  }

  .site-footer {
    margin-top: 1.2rem;
    padding: 1rem 1.04rem 1.04rem;
  }

  .site-footer-copy {
    max-width: 75ch;
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1.12rem;
  }

  .call-pill {
    min-height: 44px;
    padding: 0.76rem 0.84rem;
    font-size: 0.82rem;
  }

  .menu-tab {
    min-height: 42px;
    padding: 0.72rem 0.9rem;
    font-size: 0.86rem;
  }

  .menu-item {
    padding: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
