/* Full menu page. Tokens copied from styles.css (nothing imported), sheet mechanics shared with steps.css. */
:root {
  --ivory: #F1EBE1;
  --basalt: #0E0E0D;
  --ochre: #B39A57;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-dismiss: cubic-bezier(.32, .72, 0, 1);
  --ease-close: cubic-bezier(.45, 0, .2, 1);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 20px;
  --s-5: 32px;
  --s-6: 52px;
  --s-7: 84px;

  --gutter: 20px;
  --hit: 48px;
  --head: 104px; /* sticky header height, measured by menu.js */
}
@media (min-width: 900px) {
  :root { --gutter: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--basalt);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--basalt); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.m-a { fill: var(--ochre); }
.m-i { fill: var(--basalt); }

/* Sticky header: logo, three menus as text tabs, the section index under them */
.head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ivory);
  padding-top: env(safe-area-inset-top);
  box-shadow: 0 1px 0 rgba(14, 14, 13, .1);
}
.head__row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0 var(--gutter);
  min-height: 60px;
}
.head__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hit);
  height: var(--hit);
  margin-left: -12px;
  flex-shrink: 0;
}
.head__home svg { display: block; width: 18px; height: auto; }

.tabs {
  position: relative;
  display: flex;
  gap: var(--s-4);
}
.tabs__tab {
  min-height: var(--hit);
  padding: 0 2px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -.01em;
  opacity: .5;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 320ms var(--ease);
}
.tabs__tab[aria-selected="true"] { opacity: 1; }
/* one underline that slides between tabs: 1px wide, scaled and moved by transform only */
.tabs__bar {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 1px;
  height: 1px;
  background: var(--ochre);
  transform-origin: 0 50%;
  transform: translate3d(var(--bar-x, 0px), 0, 0) scaleX(var(--bar-w, 0));
}
.tabs__bar.is-ready { transition: transform 520ms var(--ease); }

/* Section index: one scrolling line on phones, a sticky column on laptops */
.index {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.index::-webkit-scrollbar { display: none; }
.index a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  opacity: .58;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 320ms var(--ease);
}
.index a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: var(--basalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}
.index a[aria-current="true"] { opacity: 1; }
.index a[aria-current="true"]::after { transform: none; }

/* Search: a hairline pill, 16px text so iOS does not zoom */
.page { padding: var(--s-4) var(--gutter) var(--s-7); }
.find {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  min-height: var(--hit);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(14, 14, 13, .28);
  transition: box-shadow 320ms var(--ease);
}
.find:focus-within { box-shadow: inset 0 0 0 1px var(--basalt); }
.find__lens {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: .55;
  pointer-events: none;
}
.find__input {
  flex: 1;
  min-width: 0;
  height: var(--hit);
  padding: 0 4px 0 44px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.find__input::placeholder { color: rgba(14, 14, 13, .5); }
.find__input::-webkit-search-cancel-button { display: none; }
.find__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hit);
  height: var(--hit);
  flex-shrink: 0;
}
.find__clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.find__status { margin: var(--s-2) 0 0; min-height: 1.6em; font-size: 13px; opacity: .6; }
.find__elsewhere { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }

/* Sections: printed-menu headings, rows with a dotted leader to the price */
.panel { max-width: 720px; }
.sect {
  padding-top: var(--s-5);
  scroll-margin-top: calc(var(--head) + 4px);
}
.sect__head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-1);
}
/* ochre rule ending in a small lozenge, as on the printed menu */
.sect__head::before, .sect__head::after { content: ""; position: absolute; background: var(--ochre); }
.sect__head::before { left: 0; right: 9px; bottom: 0; height: 1px; }
.sect__head::after { right: 0; bottom: -2px; width: 5px; height: 5px; transform: rotate(45deg); }
.sect__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.01em;
  font-variant-caps: small-caps;
  text-wrap: balance;
  hyphens: none;
}
.sect__note { font-size: 13px; opacity: .6; white-space: nowrap; }

/* entrance: rise + fade only (no blur), will-change only while it plays */
.js .sect.is-pending { opacity: 0; transform: translate3d(0, 18px, 0); }
.js .sect.is-rising { will-change: transform, opacity; }
.js .sect.is-shown {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.dish { position: relative; }
.dish + .dish { border-top: 1px solid rgba(14, 14, 13, .08); }
.dish__hit {
  --bleed: var(--gutter);
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 0 13px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 400ms var(--ease);
}
/* pressed row: a dark fill sweeps in from the left, as in the site menu overlay */
.dish__hit::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--bleed) * -1);
  z-index: -1;
  background: var(--basalt);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 400ms var(--ease), transform 0s 400ms;
}
.dish__hit.is-pressed { color: var(--ivory); transition: color 200ms var(--ease); }
.dish__hit.is-pressed::before { opacity: 1; transform: none; transition: transform 320ms var(--ease), opacity 0s; }

.dish__line { display: flex; align-items: baseline; gap: var(--s-2); }
.dish__name {
  flex: 0 1 auto;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: pretty;
  hyphens: none;
  transition: transform 620ms var(--ease);
}
.dish__lead {
  position: relative;
  flex: 1 1 auto;
  min-width: 24px;
  height: 0;
}
.dish__lead::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5px;
  border-top: 1px dotted currentColor;
  opacity: .4;
}
.dish__price {
  flex-shrink: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums lining-nums;
}
.dish__price.is-unknown { opacity: .55; }
.dish__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: 3px;
}
.dish__comp {
  font-size: 13px;
  line-height: 1.45;
  opacity: .62;
  /* shown in full, never cut with an ellipsis */
  text-wrap: pretty;
}
.dish__weight { margin-left: auto; font-size: 12px; line-height: 1.45; opacity: .55; white-space: nowrap; }

.page__error { margin: var(--s-5) 0 0; max-width: 34ch; }

/* end of the menu: booking and the way home */
.page__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--ochre);
  padding-bottom: env(safe-area-inset-bottom);
}
.home-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
.home-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11px;
  height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 500ms var(--ease);
}
.home-link:focus-visible::after, .home-link.is-pressed::after { transform: scaleX(0); }

/* Buttons: hairline pill with a left-to-right fill (one of the site's two button types) */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--hit);
  padding: 0 var(--s-4);
  font-size: 14px;
  line-height: 20px;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease);
}
.btn__label { translate: 0 -.07em; transition: color 320ms var(--ease); }
.btn--ghost { box-shadow: inset 0 0 0 1px rgba(14, 14, 13, .34); color: var(--basalt); }
.btn--solid { background: var(--basalt); color: var(--ivory); }
.btn--solid .btn__fill { background: var(--ochre); }
.btn--solid:focus-visible .btn__label, .btn--solid.is-pressed .btn__label { color: var(--basalt); }
.btn--ghost .btn__fill { background: var(--basalt); }
.btn:focus-visible .btn__fill, .btn.is-pressed .btn__fill { transform: scaleX(1); }
.btn--ghost:focus-visible .btn__label, .btn--ghost.is-pressed .btn__label { color: var(--ivory); }

/* Dish card: same mechanics as steps.css. Closed = laid out but invisible; is-shown is removed by
   menu.js only after the panel's transform transition ends. Transform/opacity only. */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  pointer-events: none;
}
.sheet.is-shown { visibility: visible; }
.sheet.is-open { pointer-events: auto; }
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 13, .42);
  opacity: 0;
  transition: opacity 420ms var(--ease);
  touch-action: none;
}
.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ivory);
  transform: translate3d(0, calc(100% + 60px), 0);
  transition: transform 460ms var(--ease);
}
/* the content scrolls inside (long sets); the wave and the grip stay on the panel edge */
.sheet__body {
  max-height: calc(88svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--gutter) max(var(--s-5), calc(env(safe-area-inset-bottom) + var(--s-4)));
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translate3d(0, 0, 0); }
.sheet.is-closing .sheet__panel { transition: transform 580ms var(--ease-close); }
.sheet.is-closing .sheet__scrim { transition: opacity 660ms var(--ease-close); }
.sheet.is-closing.is-flung .sheet__panel { transition: transform 460ms var(--ease-dismiss); }
.sheet.is-closing.is-flung .sheet__scrim { transition: opacity 540ms var(--ease-dismiss); }
.sheet.is-dragging .sheet__panel, .sheet.is-dragging .sheet__scrim { transition: none; }
.sheet.is-moving .sheet__panel { will-change: transform; }
.sheet.is-moving .sheet__scrim { will-change: opacity; }
.sheet__wave {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 100%;
  height: 26px;
  fill: var(--ivory);
}
/* drag handle: swipe down from here even when the card scrolls */
.sheet__grip {
  position: relative;
  height: 32px;
  touch-action: none;
}
.sheet__grip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 36px;
  height: 3px;
  margin-left: -18px;
  border-radius: 999px;
  background: rgba(14, 14, 13, .22);
}
.sheet__panel.is-static { touch-action: none; }
.side:empty { display: none; }
.sheet__photo { display: block; width: min(72%, 320px); height: auto; margin: 0 auto var(--s-3); }
.sheet__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
  hyphens: none;
}
.sheet__comp { margin: var(--s-3) 0 0; max-width: 46ch; opacity: .8; text-wrap: pretty; }
.sheet__comp:empty { display: none; }
.sheet__includes { margin-top: var(--s-4); }
.sheet__includes li { padding: var(--s-3) 0; border-top: 1px solid rgba(14, 14, 13, .1); }
.sheet__includes b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 1.2; }
.sheet__includes span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; opacity: .65; }
.sheet__facts {
  display: flex;
  gap: var(--s-5);
  margin: var(--s-4) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--ochre);
}
.sheet__fact dt { font-size: 12px; opacity: .55; }
.sheet__fact dd { margin: 2px 0 0; font-size: 18px; font-variant-numeric: tabular-nums lining-nums; }
.sheet__note { margin: var(--s-3) 0 0; font-size: 13px; opacity: .65; }
.sheet__close { margin-top: var(--s-5); }

@media (hover: hover) {
  .btn:hover .btn__fill { transform: scaleX(1); }
  .btn--ghost:hover .btn__label { color: var(--ivory); }
  .btn--solid:hover .btn__label { color: var(--basalt); }
  .home-link:hover::after { transform: scaleX(0); }
  .tabs__tab:hover { opacity: .85; }
  .index a:hover { opacity: .9; }
  .dish__hit:hover .dish__name { transform: translateX(4px); }
}

/* Laptop: the index becomes a sticky column beside the list, the card slides in from the right */
@media (min-width: 1024px) {
  .head__row { min-height: 76px; }
  .head__home svg { width: 22px; }
  .tabs { gap: var(--s-5); }
  .tabs__tab { font-size: 24px; }
  .tabs__bar { bottom: 12px; }
  .head .index { display: none; }
  .page {
    display: grid;
    grid-template-columns: 220px minmax(0, 720px);
    column-gap: var(--s-7);
    align-items: start;
    padding-top: var(--s-5);
  }
  .page > .find, .page > .find__status, .page > .find__elsewhere, .page > .panels, .page > .page__error, .page > .page__foot { grid-column: 2; }
  .page > .side { grid-column: 1; grid-row: 1 / span 5; position: sticky; top: calc(var(--head) + var(--s-5)); }
  .side .index {
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .side .index a { min-height: 36px; font-size: 15px; }
  .side .index a::after { bottom: 8px; right: auto; width: 24px; }
  .dish__name { font-size: 21px; }
  .sect__title { font-size: 32px; }

  .sheet__panel {
    left: auto;
    top: 0;
    width: min(480px, 42vw);
    transform: translate3d(calc(100% + 40px), 0, 0);
  }
  .sheet__body { height: 100%; max-height: none; padding: var(--s-6); }
  .sheet__wave, .sheet__grip { display: none; }
  .sheet__photo { width: 86%; margin-bottom: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  .js .sect.is-pending { opacity: 1; transform: none; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* (8) Type B, as on the main page: condensed capitals for headings and tabs, Golos Text for the rest.
   The ivory "paper" ground stays. Delete this block (and restore the font tokens at the top) to go back. */
.tabs__tab { font-size: 19px; letter-spacing: .02em; text-transform: uppercase; }
.sect__title { font-variant-caps: normal; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.dish__name { font-size: 18px; letter-spacing: .005em; line-height: 1.25; }
.sheet__title { text-transform: uppercase; letter-spacing: 0; line-height: .95; }
.sheet__includes b { font-size: 17px; }
.btn__label { translate: 0 -.04em; }
@media (min-width: 1024px) {
  .tabs__tab { font-size: 22px; }
  .dish__name { font-size: 20px; }
}

/* (2) «На главную» pill in the sticky header (only with .head--home-pill; remove it for the bare mark).
   Phones: the pill and the three tabs share one row, the tabs set a little smaller. */
.head__back { display: none; }
.head--home-pill .head__home { display: none; }
.head--home-pill .head__back { display: inline-flex; gap: var(--s-2); flex-shrink: 0; padding: 0 14px; font-size: 13px; }
.head__back-mark { width: 9px; height: auto; translate: none; }
.head--home-pill .tabs { gap: 14px; margin-left: auto; }
@media (max-width: 599px) {
  .head--home-pill .head__row { gap: var(--s-3); }
  .head--home-pill .tabs__tab { font-size: 16px; }
}
@media (max-width: 399px) {
  .head__back-mark { display: none; }
}
@media (min-width: 600px) {
  .head--home-pill .tabs { margin-left: var(--s-3); gap: var(--s-4); }
}

/* (2c) until menu.json has rendered, the active panel shows flat skeleton rows in the page's own
   colours (hairlines where the dishes will be), so the shell never looks empty or jumps */
.js .panel:not([hidden]):empty {
  min-height: 120svh;
  background: repeating-linear-gradient(to bottom, rgba(14, 14, 13, 0) 0 63px, rgba(14, 14, 13, .08) 63px 64px);
}
