/* =========================================================
   ТаИна — страница меню
   ========================================================= */

/* ---------- page title ---------- */
.page-hero { padding: 64px 0 20px; text-align: center; }
.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 14px 0 16px;
}
.page-hero h1 em { font-style: italic; color: var(--caramel); }
.page-hero p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--cocoa);
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- categories ---------- */
.menu-categories {
  padding: 48px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.menu-cat {
  background: #fff;
  border: 1.5px solid rgba(43, 29, 20, 0.1);
  border-radius: 20px;
  padding: 28px 30px 20px;
  box-shadow: 0 24px 48px -32px rgba(43, 29, 20, 0.25);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, opacity 0.7s var(--ease-reveal);
}
.menu-cat.in-view:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 56px -30px rgba(43, 29, 20, 0.32);
}
.menu-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1.5px dashed rgba(181, 117, 75, 0.35);
  padding-bottom: 14px;
  margin-bottom: 6px;
}
.menu-cat-head h2 { font-size: 24px; }
.menu-cat-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--cocoa);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.menu-subgroup + .menu-subgroup {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(43, 29, 20, 0.14);
}
.menu-cat-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--deep);
  font-weight: 700;
  background: rgba(181, 117, 75, 0.14);
  border: 1px solid rgba(181, 117, 75, 0.3);
  padding: 5px 12px;
  border-radius: 100px;
  margin: 0 0 14px;
}

/* ---------- items ---------- */
.menu-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 28px;
  list-style: none;
}
@media (max-width: 640px) {
  .menu-items { grid-template-columns: 1fr; }
}
.menu-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 11px 6px;
  border: 0;
  border-bottom: 1px solid rgba(43, 29, 20, 0.08);
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.menu-item:hover { background: rgba(181, 117, 75, 0.08); }
.menu-item:hover .item-name { color: var(--caramel); }
.item-name {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16.5px;
  transition: color 0.2s;
}
/* точечный «выводок» между названием и ценой */
.item-name::after {
  content: "";
  flex: 1;
  align-self: center;
  border-bottom: 1.5px dotted rgba(43, 29, 20, 0.28);
  transform: translateY(-3px);
}
.item-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--cocoa);
  white-space: nowrap;
}
.menu-note {
  font-size: 12.5px;
  color: var(--cocoa);
  margin: 8px 2px 4px;
  opacity: 0.8;
}

/* ---------- lightbox: фото + описание позиции ---------- */
.lightbox-overlay--item .lightbox-content { width: min(92vw, 460px); max-height: 88vh; }
.lightbox-overlay--item .lightbox-body {
  width: 100%;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.lightbox-overlay--item .lightbox-body.is-portrait {
  aspect-ratio: auto;
  max-height: 55vh;
  background: var(--espresso);
}
.lightbox-body img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-body.is-portrait img { object-fit: contain; max-height: 55vh; }
.lightbox-body.no-image {
  background:
    repeating-linear-gradient(135deg, rgba(181, 117, 75, 0.1) 0 14px, rgba(181, 117, 75, 0.04) 14px 28px),
    var(--latte);
  flex-direction: column;
  gap: 10px;
  color: var(--deep);
}
.lightbox-body.no-image svg { width: 44px; height: 44px; opacity: 0.55; }
.lightbox-body.no-image span { font-family: var(--font-display); font-size: 15px; opacity: 0.7; }
.lightbox-info {
  width: 100%;
  background: var(--cream);
  border-radius: 0 0 18px 18px;
  padding: 20px 24px 24px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}
.lightbox-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.lightbox-label { font-family: var(--font-display); font-size: 21px; }
.lightbox-price { color: var(--caramel); font-weight: 700; font-size: 15px; white-space: nowrap; }
.lightbox-desc { color: var(--deep); font-size: 14.5px; line-height: 1.6; }
.lightbox-disclaimer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(43, 29, 20, 0.15);
  color: var(--cocoa);
  font-size: 11.5px;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.85;
}
