/* Шаблон «меню + бронь». Цвета и шрифты заведения приходят из venue.json → :root. */
:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #ece8e1;
  --ink: #23201e;
  --ink-soft: #66605a;
  --line: #d8d2c8;
  --dark: #23201e;
  --dark-2: #2f2b28;
  --on-dark: #f4f1ec;
  --on-dark-soft: rgba(244, 241, 236, .72);
  --accent: #8c2f2f;
  --accent-press: #6e2424;
  --on-accent: #ffffff;
  --ochre: #b08a5a;
  --ochre-ink: #7d5b30;
  --gold: #d6b37e;
  --stripe: linear-gradient(90deg, var(--dark) 0 50%, var(--ochre) 50% 100%);
  --frame-radius: 12px;
  --media-radius: var(--radius);
  --hero-deco: none;
  --display-transform: none;
  --display-stretch: normal;
  /* Тёмная тема заведения: --scheme: dark и светлые --ink/--line */
  --scheme: light;
  --focus: var(--accent);
  --danger: #b3261e;
  --chip-active: var(--dark);
  --chip-active-ink: var(--on-dark);
  --fab: var(--dark);
  --fab-ink: var(--on-dark);

  --font-display: Georgia, serif;
  --font-body: system-ui, sans-serif;
  --font-menu: var(--font-body);

  --radius: 12px;
  --pill: 999px;
  --gutter: 16px;
  --shadow-card: 0 0 .5px rgba(0, 0, 0, .14), 0 1px 1px rgba(0, 0, 0, .24);
  --shadow-float: 0 0 6px rgba(0, 0, 0, .24), 0 8px 12px rgba(0, 0, 0, .14);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-draw: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 8px); color-scheme: var(--scheme); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--dark); color: var(--on-dark); text-decoration: none;
}
.skip:focus { top: 12px; }
.noscript { padding: 24px var(--gutter); }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.stripe { height: 8px; background: var(--stripe); }

.kicker {
  font: 600 12px/1.3 var(--font-body);
  letter-spacing: .15em;
  text-transform: uppercase;
}

/* ---------- Кнопки (pill + нажатие scale .95) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--pill);
  font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: scale(.95); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-press); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .85); color: #fff; background: rgba(0, 0, 0, .12); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(0, 0, 0, .04); }
.btn--block { width: 100%; }

/* ---------- Переключатель языка ---------- */
.langs { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--pill); }
.langs button {
  min-width: 44px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: var(--pill); background: transparent;
  font: 600 13px/1 var(--font-body); letter-spacing: .04em;
}
.langs--light { background: rgba(20, 16, 14, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; }
.langs--light button[aria-pressed="true"] { background: #fff; color: var(--dark); }
.langs--dark { background: rgba(255, 255, 255, .08); color: var(--on-dark); }
.langs--dark button[aria-pressed="true"] { background: var(--on-dark); color: var(--dark); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--dark); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* Фирменный мотив поверх фото (диагональные полосы и т. п.), под затемнением */
.hero__media::before { content: ""; position: absolute; inset: 0; background: var(--hero-deco); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 14, 12, .45) 0%, rgba(18, 14, 12, .05) 30%, rgba(18, 14, 12, .55) 62%, rgba(18, 14, 12, .9) 100%);
}
@media (max-width: 700px) {
  /* На телефоне фото сверху и уходит в тёмный фон, текст — на тёмном */
  .hero__media { bottom: auto; height: 62svh; }
  .hero__media img { object-position: 50% 40%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(18, 14, 12, .5) 0%, rgba(18, 14, 12, 0) 20%, rgba(18, 14, 12, 0) 36%, rgba(18, 14, 12, .62) 60%, var(--dark) 90%);
  }
}
.hero__inner {
  position: relative; display: flex; flex-direction: column;
  min-height: min(88svh, 780px); max-width: 1120px; margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 36px;
}
.hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font-body); letter-spacing: .02em; }
.brand__mark { width: 30px; height: 30px; color: var(--accent); --emblem-hl: #fff; }
.brand__mark svg { width: 100%; height: 100%; }
.hero__body { margin-top: auto; max-width: 640px; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hero__kicker { color: var(--gold); }
.hero h1 { margin-top: 10px; font-size: clamp(64px, 17vw, 128px); line-height: .9; font-weight: 600; text-transform: var(--display-transform); font-stretch: var(--display-stretch); }
.hero__tagline { margin-top: 16px; max-width: 34em; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero__status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8fc79a; box-shadow: 0 0 0 4px rgba(143, 199, 154, .22); }
.status-dot.is-closed::before { background: #c9b9a6; box-shadow: 0 0 0 4px rgba(201, 185, 166, .2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Навигация по разделам ---------- */
.catnav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.catnav__row {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: var(--nav-h); max-width: 960px; margin: 0 auto; padding: 0 var(--gutter);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.catnav__row::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--surface); color: var(--ink);
  font: 600 14px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip[aria-current="true"] { background: var(--chip-active); border-color: var(--chip-active); color: var(--chip-active-ink); }
.chip--filter { border-style: dashed; border-color: var(--ochre); color: var(--ochre-ink); background: transparent; }
.chip--filter[aria-pressed="true"] { border-style: solid; background: var(--ochre-ink); border-color: var(--ochre-ink); color: #fff; }
.catnav__sep { flex: none; width: 1px; height: 22px; background: var(--line); }

/* ---------- Меню ---------- */
.menu {
  padding: 12px 0 64px;
  background-image: var(--paper, none);
  background-size: var(--paper-size, auto);
}
.menu__draft {
  margin: 24px 0 0; padding: 12px 14px;
  border: 1px dashed var(--ochre); border-radius: var(--radius);
  color: var(--ochre-ink); font-size: 14px;
}
.msec { padding-top: 52px; }
.msec[hidden] { display: none; }
/* Шапка раздела как в бумажном меню: второй язык, название, линия со стрелками */
.msec__head { text-align: center; }
.msec__alt {
  font: 600 16px/1.2 var(--font-menu); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ochre-ink);
}
.msec__title {
  margin-top: 2px;
  font: 600 clamp(32px, 8.5vw, 46px)/1 var(--font-menu); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: .03em;
}
.msec__rule { display: block; width: min(100%, 400px); height: auto; margin: 12px auto 0; color: var(--ink); opacity: .8; }
.msec__line { display: block; width: min(100%, 400px); height: 2px; margin: 14px auto 0; background: var(--ink); opacity: .8; }
.msec__media {
  margin-top: 22px; overflow: hidden; aspect-ratio: 16 / 9;
  border-radius: var(--media-radius); background: var(--surface-2);
}
.msec__media img { width: 100%; height: 100%; object-fit: cover; }
.dishes { list-style: none; margin: 14px 0 0; padding: 0; }

.dish {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.dish:last-child { border-bottom: 0; }
.dish--thumb { grid-template-columns: 68px minmax(0, 1fr) auto; }
.dish__thumb { width: 68px; height: 84px; overflow: hidden; border-radius: var(--frame-radius); background: var(--surface-2); }
.dish__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dish__alt {
  font: 600 13px/1.25 var(--font-menu); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: .05em; color: var(--ochre-ink);
}
.dish__name {
  margin-top: 1px;
  font: 600 21px/1.08 var(--font-menu); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: .02em;
}
.dish__desc { margin-top: 3px; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.dish__meta { display: grid; justify-items: end; gap: 3px; text-align: right; white-space: nowrap; }
.dish__price { font: 600 19px/1 var(--font-menu); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.dish__weight { font: 500 12.5px/1 var(--font-body); color: var(--ink-soft); }
.dish__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: var(--pill); font: 600 11.5px/1.3 var(--font-body); letter-spacing: .02em;
}
.tag--lenten { background: color-mix(in srgb, var(--ochre) 18%, transparent); color: var(--ochre-ink); }
.tag--signature { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.tag--homemade { background: color-mix(in srgb, var(--ochre) 18%, transparent); color: var(--ochre-ink); }


/* Фирменное блюдо */
.feature {
  position: relative; overflow: hidden; margin: 22px 0 6px;
  border-radius: 16px; background: var(--dark); color: var(--on-dark);
}
.feature .stripe { height: 6px; }
.feature__inner { padding: 22px 20px; }
.feature__mark { width: 44px; height: 44px; color: var(--accent); --emblem-hl: var(--on-dark); margin-bottom: 14px; }
.feature__mark svg { width: 100%; height: 100%; }
.feature .kicker { color: var(--gold); }
.feature__alt {
  margin-top: 10px; font: 600 14px/1.2 var(--font-menu); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-soft);
}
.feature__name {
  margin-top: 2px; font: 600 clamp(30px, 8vw, 40px)/1 var(--font-menu); font-stretch: 75%;
  text-transform: uppercase; letter-spacing: .02em;
}
.feature__desc { margin-top: 8px; color: var(--on-dark-soft); font-size: 15px; }
.feature__price { margin-top: 14px; font: 600 24px/1 var(--font-menu); letter-spacing: .02em; color: var(--gold); }
.feature__price span { margin-left: 10px; font: 500 13px/1 var(--font-body); color: var(--on-dark-soft); }

/* ---------- История ---------- */
.story { background: var(--dark); color: var(--on-dark); }
.story__inner { display: grid; gap: 32px; max-width: 1040px; margin: 0 auto; padding: 56px var(--gutter) 64px; }
.story .kicker { color: var(--gold); }
.story h2 { margin-top: 10px; font-size: clamp(36px, 8vw, 56px); line-height: 1; }
.story__text { margin-top: 18px; color: var(--on-dark-soft); font-size: 16.5px; line-height: 1.65; max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.facts b { display: block; font: 600 34px/1 var(--font-display); color: var(--on-dark); }
.facts span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--on-dark-soft); }
.story__frame { justify-self: center; width: min(100%, 380px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--frame-radius); background: var(--dark-2); }
.story__frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Бронь ---------- */
.book { padding: 56px 0 120px; }
.book h2 { font-size: clamp(36px, 8vw, 52px); line-height: 1; }
.book__lead { margin-top: 12px; color: var(--ink-soft); }
.form { display: grid; gap: 18px; margin-top: 28px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .fieldset legend { font: 600 13px/1.3 var(--font-body); letter-spacing: .02em; color: var(--ink); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
textarea.input { min-height: 92px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.input[aria-invalid="true"] { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 4%, var(--surface)); }
.field__err, .field > .field__err { color: var(--danger); font-size: 13px; font-weight: 500; }

.guests { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 6px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.guests output { font-weight: 600; }
.guests__btns { display: flex; gap: 4px; }
.guests__btns button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.guests__btns button:disabled { opacity: .4; cursor: default; }
.guests svg { width: 16px; height: 16px; }

.fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 8px; }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.area { position: relative; display: block; cursor: pointer; }
.area input { position: absolute; opacity: 0; pointer-events: none; }
.area__card {
  display: flex; flex-direction: column; height: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.area__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.area__label { padding: 10px 12px; font-weight: 600; font-size: 14.5px; }
.area--text { grid-column: 1 / -1; }
.area--text .area__card { flex-direction: row; align-items: center; min-height: 48px; }
.area input:checked + .area__card { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.area input:focus-visible + .area__card { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__note { color: var(--ink-soft); font-size: 13.5px; text-align: center; }

.done { margin-top: 28px; padding: 26px 22px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); text-align: center; }
.done__icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.done__icon svg { width: 26px; height: 26px; }
.done__icon .tick { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .32s var(--ease-out) .05s; }
.done.is-in .tick { stroke-dashoffset: 0; }
.done h3 { font-size: 30px; }
.done__sum { margin-top: 8px; font-weight: 600; }
.done__demo { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.done .btn { margin-top: 18px; }

/* ---------- Подвал ---------- */
.foot { background: var(--dark); color: var(--on-dark); }
.foot__inner { max-width: 1040px; margin: 0 auto; padding: 44px var(--gutter) calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 28px; }
.foot__brand { display: flex; align-items: center; gap: 12px; font: 600 30px/1 var(--font-display); }
.foot__brand .brand__mark { width: 34px; height: 34px; --emblem-hl: var(--on-dark); }
.foot__grid { display: grid; gap: 20px; }
.foot__grid h3 { font: 600 12px/1.3 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.foot__grid p { color: var(--on-dark-soft); }
.foot a { color: var(--on-dark); }
.foot__inner > .langs { justify-self: start; }
.foot__demo { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--on-dark-soft); font-size: 13px; }

/* Underline Draw (Kinetics) */
.ul-draw { position: relative; text-decoration: none; }
.ul-draw::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-draw);
}
.ul-draw:hover::after, .ul-draw:focus-visible::after { transform: scaleX(1); }

/* ---------- Плавающая кнопка брони ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  transform: translateY(130%); transition: transform .35s var(--ease-out);
}
.dock.is-on { transform: none; }
.dock .btn {
  pointer-events: auto; width: min(100%, 440px); min-height: 56px;
  box-shadow: var(--shadow-float); font-size: 16px;
}

/* Кнопка «наверх» */
.totop {
  position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 31;
  display: grid; place-items: center; width: 56px; height: 56px;
  border: 0; border-radius: 50%; background: var(--fab); color: var(--fab-ink);
  box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .35s var(--ease-out), background-color .2s ease;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--dark-2); }
.totop:active { transform: scale(.95); }
.totop svg { width: 22px; height: 22px; }
.hero:focus { outline: none; }
/* На телефоне кнопка брони уступает место стрелке справа */
@media (max-width: 759px) {
  .dock { padding-right: 80px; }
}

/* Stagger Entrance (Kinetics) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-io .reveal { opacity: 1; transform: none; }

/* ---------- Широкие экраны ---------- */
@media (min-width: 760px) {
  :root { --gutter: 28px; --nav-h: 68px; }
  .hero__inner { padding-bottom: 56px; }
  .hero__tagline { font-size: 19px; }
  .catnav__row { justify-content: center; }
  .story__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding: 96px var(--gutter); }
  .foot__grid { grid-template-columns: repeat(3, 1fr); }
  .foot__inner { padding-bottom: 110px; }
  .dish { padding: 18px 0; }
  .totop { right: 24px; bottom: 24px; }
  .dish--thumb { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .dish__name { font-size: 23px; }
  .msec__media { aspect-ratio: 21 / 9; }
  .dish__thumb { width: 76px; height: 94px; }
  .feature__inner { padding: 28px 28px; }
  .areas { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
