/* ===== /menu — печатное меню Panadero картинками + карточка блюда =====
   Цвета сняты пипеткой со страниц PDF:
     фон листа  #F2EBDB · коричневый подзаголовков #3C2910
     золото иконок/заголовков #C2985A · текст названий #1A1108
   Обрамление страницы — в тёмной гамме сайта (css/style.css). */
:root {
  --pm-paper: #f2ebdb;
  --pm-paper-2: #eae0cb;
  --pm-brown: #3c2910;
  --pm-ink: #1a1108;
  --pm-muted: #6e5d47;
  --pm-gold: #c2985a;
  --pm-gold-deep: #9a7338;
  --site-bg: #141414;
  --site-gold: #c4a47d;
  --site-text: #ede6db;
  --site-muted: #9a9187;
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-label: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pm-body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-text);
  font: 15px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.pm-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Шапка ---------- */
.pm-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1000px; margin: 0 auto; padding: 14px 16px;
}
.pm-head__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pm-head__logo img { width: 30px; height: auto; }
.pm-head__logo span, .pm-head__back {
  font: 400 13px/1 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--site-gold);
}
.pm-head__back { text-decoration: none; color: var(--site-muted); transition: color .2s; }
.pm-head__back:hover { color: var(--site-gold); }

.pm-intro { max-width: 1000px; margin: 0 auto; padding: 8px 16px 18px; text-align: center; }
.pm-intro__eyebrow {
  margin: 0 0 6px; font: 400 12px/1.3 var(--font-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--site-gold);
}
.pm-intro__title { margin: 0; font: 600 clamp(30px, 5vw, 44px)/1.05 var(--font-title); color: var(--site-text); }
.pm-intro__hint { margin: 10px 0 0; font-size: 13px; color: var(--site-muted); }

/* ---------- Страницы: встык, без полей, теней и скруглений ---------- */
.pm-pages {
  max-width: 1000px; margin: 0 auto; padding: 0;
  background: var(--pm-paper);  /* если на дробном зуме проступит стык — он того же цвета */
  font-size: 0; line-height: 0;
}
.pm-page { position: relative; margin: 0 0 -1px; }  /* -1px съедает щель от округления высоты */
.pm-page picture { display: block; }
.pm-page__img { display: block; width: 100%; height: auto; }
.pm-page__hs { position: absolute; inset: 0; }

/* ---------- Области блюд ----------
   Прозрачные кнопки; координаты — в css/menu-hotspots.css (проценты). */
.pm-hs {
  position: absolute; margin: 0; padding: 0; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, box-shadow .18s ease;
}
@media (hover: hover) {
  .pm-hs:hover { background: rgba(194, 152, 90, 0.12); box-shadow: inset 0 0 0 1.5px rgba(194, 152, 90, 0.55); }
}
.pm-hs:focus-visible { outline: 2px solid var(--pm-gold-deep); outline-offset: 1px; background: rgba(194, 152, 90, 0.12); }
.pm-hs:active { background: rgba(194, 152, 90, 0.2); }
.pm-hs.is-current { background: rgba(194, 152, 90, 0.16); box-shadow: inset 0 0 0 1.5px rgba(194, 152, 90, 0.6); }

/* ---------- Текстовая версия ---------- */
.pm-text { max-width: 1000px; margin: 0 auto; padding: 18px 16px 8px; color: var(--site-muted); }
.pm-text summary { cursor: pointer; font: 600 18px var(--font-title); color: var(--site-gold); padding: 6px 0; }
.pm-text__body h2 { margin: 22px 0 8px; font: 600 20px var(--font-title); color: var(--site-text); }
.pm-text__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pm-text__body li { font-size: 13px; line-height: 1.45; }
.pm-text__body li a { color: var(--site-text); font-weight: 600; text-decoration-color: rgba(196, 164, 125, .4); }
.pm-text__body li span { color: var(--site-gold); white-space: nowrap; }

/* ---------- 404 ---------- */
.pm-404 { max-width: 560px; margin: 0 auto; padding: 8vh 16px 12vh; text-align: center; }
.pm-404__chef { width: 72px; height: auto; margin: 0 auto 22px; opacity: .85; }
.pm-404__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin: 28px 0 0; }
.pm-404__btn {
  display: inline-flex; align-items: center; height: 46px; padding: 0 24px; border-radius: 999px;
  background: var(--site-gold); color: #1a1714; text-decoration: none;
  font: 500 14px var(--font-label); letter-spacing: .14em; text-transform: uppercase;
}
.pm-404__btn:hover { background: #d9bf9b; }
.pm-404__link { color: var(--site-muted); font-size: 14px; }
.pm-404__link:hover { color: var(--site-gold); }

/* ---------- Значки аллергенов в карточке ----------
   Картинки подключает css/menu-hotspots.css (.pm-al--<код>) с версией в адресе,
   чтобы долгий кеш не держал старую иконку после замены файла. */
.pm-al { display: inline-block; width: 22px; height: 22px; flex: none; background: center / contain no-repeat; }

.pm-foot { max-width: 1000px; margin: 0 auto; padding: 22px 16px 40px; text-align: center; font-size: 12px; color: var(--site-muted); }
.pm-foot p { margin: 4px 0; }

/* ---------- Карточка блюда ---------- */
.pm-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
}
.pm-modal__backdrop {
  position: absolute; inset: 0; background: rgba(20, 14, 6, 0.55);
  animation: pm-fade .2s ease both;
}
.pm-modal__dialog {
  position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 26px 24px 22px;
  background: var(--pm-paper); color: var(--pm-ink);
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(194, 152, 90, 0.35);
  animation: pm-rise .22s var(--ease) both;
  outline: none;
}
.pm-modal.is-closing .pm-modal__backdrop { animation: pm-fade .16s ease reverse both; }
.pm-modal.is-closing .pm-modal__dialog { animation: pm-rise .16s ease reverse both; }
@keyframes pm-fade { from { opacity: 0; } }
@keyframes pm-rise { from { opacity: 0; transform: translateY(10px); } }

.pm-modal__close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--pm-brown); cursor: pointer;
  transition: background-color .15s;
}
.pm-modal__close:hover { background: rgba(194, 152, 90, 0.18); }
.pm-modal__close:focus-visible { outline: 2px solid var(--pm-gold-deep); outline-offset: 1px; }
.pm-modal__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.pm-modal__section {
  margin: 0 40px 6px 0; font: 400 11px/1.3 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--pm-gold-deep);
}
.pm-modal__title { margin: 0 40px 8px 0; font: 700 26px/1.1 var(--font-title); color: var(--pm-ink); }
.pm-modal__meta {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(194, 152, 90, 0.45);
}
.pm-modal__meta:empty { display: none; }
.pm-modal__weight { font-size: 14px; color: var(--pm-muted); }
.pm-modal__price { margin-left: auto; font: 700 24px/1 var(--font-title); color: var(--pm-ink); white-space: nowrap; }

.pm-modal__desc { margin: 0; display: grid; gap: 8px; }
.pm-modal__desc div { display: grid; grid-template-columns: 26px 1fr; gap: 6px; align-items: baseline; }
.pm-modal__desc dt { font: 500 11px/1 var(--font-label); letter-spacing: .08em; color: var(--pm-gold-deep); }
.pm-modal__desc dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--pm-brown); }

.pm-modal__allergens { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(194, 152, 90, 0.45); }
.pm-modal__allergens h3 {
  margin: 0 0 10px; font: 400 11px/1.3 var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--pm-gold-deep);
}
.pm-modal__allergens ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.pm-modal__allergens li {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 5px;
  border-radius: 999px; background: rgba(194, 152, 90, 0.14);
  font-size: 13px; color: var(--pm-brown);
}
.pm-modal__allergens li img { width: 22px; height: 22px; }
.pm-modal__allergens li small { color: var(--pm-muted); font-size: 11px; }
.pm-modal__allergens p { margin: 0; font-size: 13px; color: var(--pm-muted); }

/* Мобильные: карточка — нижний лист на всю ширину */
@media (max-width: 600px) {
  .pm-modal { place-items: end stretch; padding: 0; }
  .pm-modal__dialog {
    width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  }
  .pm-modal__dialog::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: rgba(60, 41, 16, 0.2);
  }
  .pm-modal__title { font-size: 23px; }
  @keyframes pm-rise { from { opacity: 0; transform: translateY(24px); } }
}

@media (prefers-reduced-motion: reduce) {
  .pm-modal__backdrop, .pm-modal__dialog,
  .pm-modal.is-closing .pm-modal__backdrop, .pm-modal.is-closing .pm-modal__dialog { animation: none; }
  .pm-hs { transition: none; }
}
