:root {
  --wine: #5b2626;
  --wine-dark: #351515;
  --cream: #fbf4e8;
  --paper: rgba(255, 252, 246, 0.92);
  --ink: #332724;
  --muted: #796864;
  --line: rgba(91, 38, 38, 0.22);
  --shadow: 0 14px 40px rgba(62, 30, 21, 0.13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--cream) url("assets/background.webp") center top / cover fixed;
}
button, a { -webkit-tap-highlight-color: transparent; }
.hero {
  min-height: 52vh;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(135deg, rgba(53,21,21,.82), rgba(91,38,38,.46)), url("assets/background.webp") center / cover;
  color: white;
  text-align: center;
  padding: 48px 20px;
}
.hero__content { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; }
h1 { font-size: clamp(3rem, 13vw, 6rem); margin: .08em 0; font-style: italic; }
.scroll-button {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: white;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.page-shell { width: min(960px, calc(100% - 24px)); margin: -30px auto 32px; position: relative; }
.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  line-height: 1.45;
}
.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 2px 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(var(--cream) 76%, transparent);
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--wine);
  text-decoration: none;
  font-size: .88rem;
}
.menu-section {
  margin: 16px 0;
  padding: 22px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid rgba(91,38,38,.14);
  box-shadow: var(--shadow);
  scroll-margin-top: 72px;
}
.menu-section h2 {
  color: var(--wine);
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  font-style: italic;
  border-bottom: 2px solid var(--wine);
  padding-bottom: 7px;
}
.menu-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  text-align: left;
  border: 0;
  border-bottom: 1px dashed var(--line);
  background: transparent;
  padding: 13px 2px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover .item-name, .menu-item:focus-visible .item-name { color: var(--wine); text-decoration: underline; }
.item-name { font-weight: 700; line-height: 1.25; }
.item-hint { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; font-family: system-ui, sans-serif; font-weight: 400; }
.item-price { color: var(--wine); font-weight: 700; white-space: nowrap; }
.section-note { color: var(--muted); font-style: italic; margin-top: 14px; }
footer { text-align: center; color: var(--wine); padding: 34px 16px; }
.item-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: min(88vh, 760px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
  background: #fffaf2;
}
.item-dialog::backdrop { background: rgba(24, 13, 11, .76); backdrop-filter: blur(3px); }
.item-dialog img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #efe4d5; }
.dialog-copy { padding: 20px 22px 26px; }
.dialog-copy h2 { color: var(--wine); margin: 3px 0 7px; font-size: 2rem; }
.dialog-category { color: var(--muted); margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.dialog-price { font-size: 1.15rem; font-weight: 700; color: var(--wine); }
.ingredients-wrap { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; }
.ingredients-wrap h3 { margin: 0 0 7px; color: var(--wine); }
.ingredients-wrap p { margin: 0; line-height: 1.5; }
.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--wine-dark);
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
@media (max-width: 560px) {
  .page-shell { width: min(100% - 14px, 960px); }
  .menu-section { padding: 18px 15px; border-radius: 18px; }
  .menu-item { gap: 8px; }
  .item-price { font-size: .93rem; }
}

.language-switcher {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 10;
  display: flex;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(45, 18, 18, .48);
  backdrop-filter: blur(10px);
}
.lang-button {
  width: 43px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  filter: grayscale(.28);
  opacity: .78;
}
.lang-button.active {
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.92);
  filter: none;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
