/* ============================================================
   «Старый Амбар» — страница полного меню
   ============================================================ */

/* на странице меню нет hero-видео — шапка сразу с фоном */
.menu-page .nav{
  background: rgba(12, 9, 6, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.menu-page .nav::after{ opacity: 1; }

/* ---------- шапка страницы ---------- */
.mhero{
  padding: clamp(140px, 16vw, 200px) var(--pad-x) clamp(30px, 4vw, 56px);
  position: relative;
}
.mhero-inner{ max-width: 1400px; margin: 0 auto; }
.mhero h1{
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.mhero h1 em{ font-style: italic; font-weight: 600; color: var(--amber-bright); text-transform: none; letter-spacing: 0; }
.mhero .sec-lede{ max-width: 52ch; }
.mback{
  display: flex; width: fit-content; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
  transition: color .3s ease;
}
.mback::before{ content:"←"; transition: transform .3s ease; }
.mback:hover{ color: var(--amber-bright); }
.mback:hover::before{ transform: translateX(-5px); }

/* ---------- каркас: навигация слева + контент ---------- */
.menu-wrap{ padding: 0 var(--pad-x) clamp(80px, 8vw, 130px); }
.menu-layout{
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

/* левая колонка категорий */
.mnav{
  position: sticky; top: 104px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.mnav-group{
  font-size: 11px; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--amber);
  margin: 26px 0 10px;
}
.mnav-group:first-child{ margin-top: 0; }
.mnav a{
  display: block;
  padding: 7px 0 7px 18px;
  border-left: 1px solid var(--hairline-soft);
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  transition: color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.mnav a:hover{ color: var(--text); }
.mnav a.is-active{ color: var(--amber-bright); border-left-color: var(--amber); }

/* ---------- секция категории ---------- */
.mcat{ padding: clamp(26px, 3vw, 44px) 0; }
.mcat + .mcat{ border-top: 1px solid var(--hairline-soft); }
.mcat:first-child{ padding-top: 6px; }
.mcat-head{
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.mcat-head h2{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}
.mcat-count{
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em;
  color: var(--text-faint);
  transform: translateY(4px);
  white-space: nowrap;
}
.mcat-note{ margin: -14px 0 22px; color: var(--text-muted); font-size: 14px; max-width: 64ch; }

/* заставка секций бара: круглое фото рядом с заголовком */
.mcat-ava{
  width: 74px; height: 74px; flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hairline);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}

/* ---------- карточки блюд ---------- */
.mgrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
  gap: 18px;
}
.mcard{
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease;
}
.mcard:hover{
  transform: translateY(-4px);
  border-color: var(--hairline);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.mcard-media{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.mcard-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.94);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.mcard:hover .mcard-media img{ transform: scale(1.05); }
.mcard-media::after{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,9,6,.08), transparent 35%, transparent 75%, rgba(12,9,6,.35));
  pointer-events: none;
}
.mtags{ position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.mtag{
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  background: var(--amber); color: var(--on-amber);
}
.mtag--spicy{ background: rgba(12,9,6,.72); color: #FF8A5C; backdrop-filter: blur(4px); }
.mcard-body{
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px 17px 17px;
  flex: 1;
}
.mcard-name{
  font-size: 16px; font-weight: 700;
  line-height: 1.3;
}
.mcard-desc{
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}
.mcard-foot{
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: 4px;
}
.mcard-w{ font-size: 12px; color: var(--text-faint); letter-spacing: .04em; }
.mcard-price{
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 700;
  color: var(--amber-bright);
  white-space: nowrap;
}

/* ---------- прайс-строки (бар) ---------- */
.mrows{ max-width: 880px; }
.msub{
  display: flex; align-items: center; gap: 14px;
  margin: 30px 0 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--amber);
}
.msub:first-child{ margin-top: 0; }
.msub::after{ content:""; flex: 1; height: 1px; background: var(--hairline-soft); }
.mrow{ padding: 8px 0; }
.mrow-line{ display: flex; align-items: baseline; gap: 10px; }
.mrow-name{ font-size: 15px; font-weight: 600; }
.mrow-w{ font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.mrow-dots{
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted rgba(242, 233, 220, .22);
  transform: translateY(-4px);
}
.mrow-price{
  font-size: 15px; font-weight: 700;
  color: var(--amber-bright);
  white-space: nowrap;
}
.mrow-desc{
  margin-top: 2px;
  font-size: 13px; line-height: 1.5;
  color: var(--text-muted);
  max-width: 62ch;
}

/* примечание внизу */
.menu-note--page{ margin-top: clamp(40px, 5vw, 64px); }

/* ---------- мобилка ---------- */
@media (max-width: 1024px){
  .menu-layout{ display: block; }
  .mnav{
    position: sticky; top: 58px;
    z-index: 60;
    display: flex; gap: 8px;
    max-height: none;
    overflow-x: auto; overflow-y: hidden;
    padding: 12px var(--pad-x);
    margin: 0 calc(-1 * var(--pad-x)) 8px;
    background: rgba(12, 9, 6, .88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline-soft);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mnav::-webkit-scrollbar{ display: none; }
  .mnav-group{ display: none; }
  .mnav a{
    flex: none;
    border: 1px solid var(--hairline-soft);
    border-radius: 999px;
    padding: 7px 15px;
    font-size: 13px;
  }
  .mnav a.is-active{
    border-color: var(--amber);
    color: var(--on-amber);
    background: var(--amber);
  }
}
@media (max-width: 640px){
  .mgrid{ grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
  .mcard-body{ padding: 12px 13px 14px; gap: 6px; }
  .mcard-name{ font-size: 14px; }
  .mcard-desc{ font-size: 12.5px; }
  .mcard-price{ font-size: 17px; }
  .mcat-ava{ width: 54px; height: 54px; }
  .mrow-name{ font-size: 14px; }
  /* нижний sticky-CTA не должен перекрывать последние строки */
  .menu-wrap{ padding-bottom: 140px; }
}
