/* Ґрунт — ресторан сезонної кухні (демонстраційний проєкт).
   Система: баклажанова ніч, румʼяна крем-палітра, персиковий блок і трав’яний акцент.
   Шрифти: Prata (заголовки), Golos Text (текст) — локальні файли. */

@font-face { font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/prata-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Prata'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/prata-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/golos-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/golos-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #1f0f26;
  --plum: #3a1c45;
  --blush: #f4e6dc;
  --paper: #fbf3ec;
  --peach: #e8b49a;
  --herb: #b4c26a;
  --herb-ink: #4d5a1a;
  --soft-dark: #cdbad0;
  --soft-light: #6b5470;
  --serif: 'Prata', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --m: clamp(1.25rem, 4.5vw, 4rem);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --top-h: 4.5rem;
  --ribbon-h: 3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--blush); color: var(--night);
  font-family: var(--sans); font-size: 1rem; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--herb-ink); outline-offset: 3px; }
.on-dark :focus-visible, .top :focus-visible, .foot :focus-visible, .lightbox :focus-visible { outline-color: var(--herb); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: 0.7rem 1rem; background: var(--herb); color: var(--night); }
.skip:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: 96rem; margin-inline: auto; padding-inline: var(--m); }
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.on-dark { color: var(--blush); }
.on-dark .eyebrow { color: var(--herb); }
.sec-light { background: var(--blush); }
.sec-paper { background: var(--paper); }
.sec-dark { background: var(--night); color: var(--blush); }
.sec-plum { background: var(--plum); color: var(--blush); }
.sec-peach { background: var(--peach); }
.pad { padding-block: clamp(4rem, 9vw, 8.5rem); }

/* ---------- Посилання й кнопки (за призначенням) ---------- */
/* Основна дія: кругла «печатка» */
.seal {
  display: grid; place-content: center; justify-items: center; gap: 0.35rem;
  width: clamp(7.25rem, 12vw, 9.75rem); aspect-ratio: 1; padding: 0.5rem;
  border-radius: 50%; border: 0; background: var(--herb); color: var(--night);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.45s var(--ease), background-color 0.25s;
}
.seal::after { content: "→"; font-size: 1.25rem; line-height: 1; transition: transform 0.35s var(--ease); }
.seal:hover { transform: rotate(-5deg); background: #c3d07b; }
.seal:hover::after { transform: translateX(4px); }
.seal--dark { background: var(--night); color: var(--blush); }
.seal--dark:hover { background: var(--plum); }
/* Другорядне: слово зі стрілкою в колі */
.go { display: inline-flex; align-items: center; gap: 0.85rem; min-height: 48px; font-weight: 600; text-decoration: none; letter-spacing: 0.01em; }
.go::after {
  content: "→"; display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border: 1px solid currentColor; border-radius: 50%; font-size: 1rem; line-height: 1;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.go:hover::after { background: var(--herb); border-color: var(--herb); color: var(--night); transform: translateX(3px); }
.go--back::after { content: "←"; order: -1; }
.go--back { flex-direction: row-reverse; justify-content: flex-end; }
/* Підтвердження форми: широка планка */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  min-height: 3.75rem; padding: 0 1.5rem; border: 0; background: var(--night); color: var(--herb);
  font-family: var(--serif); font-size: 1.25rem; cursor: pointer; transition: background-color 0.25s, color 0.25s;
}
.bar::after { content: "→"; font-family: var(--sans); transition: transform 0.3s var(--ease); }
.bar:hover { background: var(--plum); color: #d2dd94; }
.bar:hover::after { transform: translateX(5px); }
.bar--ghost { background: transparent; color: var(--night); border: 1px solid var(--night); }
.bar--ghost:hover { background: var(--night); color: var(--herb); }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 90; background: var(--night); color: var(--blush); }
.top__brandrow { display: grid; justify-items: center; padding-top: 0.6rem; overflow: hidden; max-height: 5rem; transition: max-height 0.35s var(--ease), opacity 0.3s, padding 0.35s var(--ease); }
.brand { display: grid; justify-items: center; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); letter-spacing: 0.02em; }
.brand__sub { margin-top: 0.3rem; font-size: 0.625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft-dark); }
.top__nav { display: flex; justify-content: space-around; gap: 0.25rem; max-width: 36rem; margin: 0 auto; padding: 0 0.5rem; }
.top__nav a {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--ribbon-h); padding: 0 0.15rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: color 0.2s;
}
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.55rem; height: 2px; background: var(--herb); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.top__nav a:hover { color: var(--herb); }
.top__nav a[aria-current="page"]::after, .top__nav a:hover::after { transform: scaleX(1); }
.top__nav a[data-book]::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--herb); }
.top.is-compact .top__brandrow { max-height: 0; opacity: 0; padding-top: 0; }
@media (min-width: 900px) {
  .top { --ribbon-h: 4.5rem; }
  .top__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 96rem; margin-inline: auto; padding-inline: var(--m); }
  .top__brandrow { grid-column: 2; grid-row: 1; padding-top: 0; max-height: none; }
  .top__nav { display: contents; }
  .top__nav .l { grid-column: 1; grid-row: 1; display: flex; gap: 2.25rem; }
  .top__nav .r { grid-column: 3; grid-row: 1; display: flex; gap: 2.25rem; justify-content: flex-end; }
  .top.is-compact .top__brandrow { max-height: none; opacity: 1; }
  .top.is-compact { --ribbon-h: 3.5rem; }
  .top.is-compact .brand__sub { display: none; }
  .top.is-compact .brand__name { font-size: 1.6rem; }
}
@media (max-width: 899px) {
  .top__nav .l, .top__nav .r { display: contents; }
}

/* ---------- Перший екран ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: calc(100svh - 7.5rem); min-height: max(32rem, calc(100svh - 7.5rem)); overflow: hidden; background: var(--night); color: var(--blush); isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(31, 15, 38, 0.46); }
.hero__inner { position: relative; padding-block: clamp(2rem, 5vw, 4rem); }
.hero .eyebrow { color: var(--herb); }
.hero h1 { margin-top: 1rem; max-width: 14ch; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 1.2rem + 7.4vw, 8.75rem); line-height: 0.98; letter-spacing: -0.01em; }
.hero h1 span { display: block; overflow: hidden; }
.hero h1 span > i { display: block; font-style: normal; animation: line-in 1s var(--ease) both; }
.hero h1 span:nth-child(2) > i { animation-delay: 0.12s; }
.hero h1 span:nth-child(3) > i { animation-delay: 0.24s; }
@keyframes line-in { from { transform: translateY(105%); } to { transform: none; } }
.hero__lead { margin-top: 1.5rem; max-width: 30rem; color: #eadcec; font-size: 1.0625rem; }
.hero .seal { position: absolute; right: var(--m); bottom: clamp(2rem, 5vw, 4rem); }
@media (max-width: 699px) {
  .hero .seal { position: static; margin-top: 1.75rem; }
}

/* ---------- Знайомство з кухнею (головна) ---------- */
.intro { display: grid; gap: 2.5rem; }
.intro__text .eyebrow { color: var(--soft-light); }
.statement { margin-top: 1.25rem; font-family: var(--serif); font-size: clamp(1.9rem, 1.1rem + 3.2vw, 3.9rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 20ch; }
.statement em { color: var(--herb-ink); font-style: italic; }
.intro__text .go { margin-top: 1.75rem; color: var(--night); }
.ph img { width: 100%; height: 100%; object-fit: cover; background: var(--plum); }
.ph figcaption { margin-top: 0.5rem; font-size: 0.75rem; color: var(--soft-light); }
.on-dark .ph figcaption, .sec-dark .ph figcaption, .sec-plum .ph figcaption { color: var(--soft-dark); }
.intro__a img { aspect-ratio: 3 / 4; }
.intro__b img { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
  .intro { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .intro__text { grid-column: 1 / 8; grid-row: 1; }
  .intro__a { grid-column: 9 / 13; grid-row: 1 / 3; margin-top: 3rem; }
  .intro__b { grid-column: 2 / 7; grid-row: 2; margin-top: 2rem; }
}
@media (max-width: 899px) { .intro__b { width: 78%; } .intro__a { width: 66%; margin-left: auto; } }

/* ---------- Страви сезону (головна): список з фото, що змінюється ---------- */
.specials { display: grid; gap: 2rem; }
.specials__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.specials__head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.05; }
.specials__list { counter-reset: s; }
.sp { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.5rem 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(244, 230, 220, 0.2); text-decoration: none; counter-increment: s; transition: color 0.25s, padding-left 0.35s var(--ease); }
.sp:last-child { border-bottom: 1px solid rgba(244, 230, 220, 0.2); }
.sp__thumb { grid-row: 1 / 3; width: 4.5rem; height: 4.5rem; object-fit: cover; }
.sp__name { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.2; }
.sp__desc { color: var(--soft-dark); font-size: 0.9375rem; }
.sp__price { font-weight: 600; color: var(--herb); font-size: 0.9375rem; }
.sp:hover, .sp:focus-visible, .sp.is-on { padding-left: 0.75rem; }
.sp:hover .sp__name, .sp.is-on .sp__name { color: var(--herb); }
.specials__view { display: none; }
@media (min-width: 900px) {
  .specials { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem 2rem; }
  .specials__head { grid-column: 1 / -1; }
  .specials__list { grid-column: 1 / 8; }
  .sp { grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: baseline; }
  .sp::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; color: var(--herb); }
  .sp__thumb { display: none; }
  .sp__desc { grid-column: 2 / 3; }
  .sp__price { grid-column: 3; grid-row: 1; }
  .specials__view { display: block; grid-column: 9 / 13; position: sticky; top: 7rem; align-self: start; aspect-ratio: 4 / 5; background: var(--night); overflow: hidden; }
  .specials__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
  .specials__view img.is-on { opacity: 1; }
}

/* ---------- Атмосфера (головна) ---------- */
.scene__img { width: 100%; height: clamp(18rem, 52vw, 40rem); object-fit: cover; object-position: 50% 55%; background: var(--night); }
.scene__card { position: relative; width: min(36rem, calc(100% - 2 * var(--m))); margin: -3.5rem 0 0 var(--m); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--peach); }
.scene__card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.1; }
.scene__card p { margin-top: 1rem; }
.scene__card .go { margin-top: 1rem; }
.scene__credit { margin: 0.6rem var(--m) 0 auto; max-width: 20rem; text-align: right; font-size: 0.75rem; color: var(--soft-light); }
@media (min-width: 900px) { .scene__card { margin-left: calc(var(--m) + 4vw); } }

/* ---------- Бронювання: рядок на головній ---------- */
.reserve { display: grid; gap: 2rem; align-items: center; }
.reserve h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 1.1rem + 4.4vw, 5.5rem); line-height: 1.04; letter-spacing: -0.01em; max-width: 16ch; }
.reserve p { margin-top: 1rem; max-width: 28rem; }
@media (min-width: 800px) { .reserve { grid-template-columns: 1fr auto; gap: 4rem; } }

/* ---------- Внутрішні сторінки ---------- */
.pagehead { padding-block: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 3vw, 2.5rem); }
.pagehead h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.5rem, 1.5rem + 9vw, 10rem); line-height: 0.95; letter-spacing: -0.02em; }
.pagehead p { margin-top: 1.25rem; max-width: 34rem; }
.note { font-size: 0.8125rem; color: var(--soft-light); }
.sec-dark .note, .sec-plum .note, .on-dark .note { color: var(--soft-dark); }

/* ---------- Меню ---------- */
.menu { display: grid; gap: 1.5rem; padding-bottom: clamp(3rem, 8vw, 7rem); }
.tabs { display: flex; gap: 0.25rem 1.75rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--m) * -1); padding-inline: var(--m); position: sticky; top: var(--ribbon-h); z-index: 40; background: var(--blush); border-bottom: 1px solid rgba(31, 15, 38, 0.18); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; position: relative; min-height: 3.5rem; padding: 0 0.1rem; border: 0; background: none; cursor: pointer; font-family: var(--serif); font-size: 1.25rem; color: var(--soft-light); white-space: nowrap; transition: color 0.2s; }
.tab:hover { color: var(--night); }
.tab[aria-selected="true"] { color: var(--night); font-style: italic; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--night); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab sup { margin-left: 0.2rem; font-family: var(--sans); font-style: normal; font-size: 0.6875rem; }
.menu__panel { animation: panel-in 0.45s var(--ease) both; }
.menu__photos { display: none; }
.menu__photo-m { margin-bottom: 1.5rem; }
.menu__photo-m img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.dishes li { padding: 1.2rem 0; }
.dishes li + li { border-top: 1px solid rgba(31, 15, 38, 0.12); }
.dish__top { display: flex; align-items: baseline; gap: 0.75rem; }
.dish__name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2; }
.dish__tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--herb-ink); border: 1px solid currentColor; border-radius: 99px; padding: 0 0.5rem; white-space: nowrap; align-self: center; }
.dish__lead { flex: 1; min-width: 1rem; align-self: end; margin-bottom: 0.4em; border-bottom: 2px dotted rgba(31, 15, 38, 0.35); }
.dish__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish__desc { margin-top: 0.3rem; max-width: 36rem; color: var(--soft-light); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .menu { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: start; }
  .tabs { grid-column: 1 / 4; position: sticky; top: 7rem; flex-direction: column; overflow: visible; margin: 0; padding: 0; background: none; border: 0; gap: 0; }
  .tab { min-height: 0; padding: 0.5rem 0 0.5rem 1.5rem; text-align: left; font-size: 2rem; line-height: 1.2; }
  .tab::after { left: 0; right: auto; top: 50%; bottom: auto; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; border-radius: 50%; transform: scale(0); background: var(--night); }
  .tab[aria-selected="true"]::after { transform: scale(1); }
  .menu__panel-wrap { grid-column: 4 / 10; }
  .menu__photos { display: grid; gap: 1rem; grid-column: 10 / 13; position: sticky; top: 7rem; }
  .menu__photos img { width: 100%; object-fit: cover; }
  .menu__photos figure:nth-child(1) img { aspect-ratio: 4 / 5; }
  .menu__photos figure:nth-child(2) { width: 62%; margin-left: auto; }
  .menu__photos figure:nth-child(2) img { aspect-ratio: 1; }
  .menu__photo-m { display: none; }
}

/* ---------- Про ресторан ---------- */
.lede { font-family: var(--serif); font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 22ch; }
.lede em { font-style: italic; color: var(--herb); }
.split { display: grid; gap: 2.5rem; align-items: center; }
.split h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.8vw, 3.75rem); line-height: 1.08; letter-spacing: -0.01em; }
.split__text { display: grid; gap: 1rem; max-width: 36rem; }
.split__text p + p { margin-top: 0; }
.split .ph img { aspect-ratio: 4 / 5; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
  .split__text { grid-column: 1 / 7; }
  .split .ph { grid-column: 8 / 12; }
  .split--rev .split__text { grid-column: 7 / 13; grid-row: 1; }
  .split--rev .ph { grid-column: 2 / 6; grid-row: 1; }
}
.bandimg { width: 100%; height: clamp(18rem, 50vw, 36rem); object-fit: cover; object-position: 50% 40%; }
.principles { counter-reset: p; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem; }
.principles li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0.25rem 1rem; counter-increment: p; max-width: 52rem; }
.principles li::before { content: "0" counter(p); font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--herb-ink); grid-row: 1 / 3; }
.principles h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.15; }
.principles p { color: var(--soft-light); max-width: 34rem; }
@media (min-width: 900px) { .principles li:nth-child(2) { margin-left: 8rem; } .principles li:nth-child(3) { margin-left: 16rem; } }

/* ---------- Галерея ---------- */
.collage { columns: 2; column-gap: 0.75rem; padding-bottom: clamp(3rem, 8vw, 6rem); }
.shot { display: block; width: 100%; margin: 0 0 0.75rem; padding: 0; border: 0; background: var(--plum); cursor: zoom-in; break-inside: avoid; position: relative; overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform 0.9s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot__cap { position: absolute; left: 0.6rem; bottom: 0.6rem; padding: 0.15rem 0.6rem; background: var(--night); color: var(--blush); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.shot:hover .shot__cap, .shot:focus-visible .shot__cap { opacity: 1; transform: none; }
@media (min-width: 700px) { .collage { columns: 3; column-gap: 1rem; } .shot { margin-bottom: 1rem; } }
@media (min-width: 1200px) { .collage { columns: 4; } }
@media (hover: none) { .shot__cap { opacity: 1; transform: none; } }


/* ---------- Бронювання ---------- */
.book { display: grid; gap: 2.5rem; padding-bottom: clamp(3rem, 8vw, 7rem); }
.book__info { display: grid; gap: 1.25rem; align-content: start; max-width: 28rem; }
.facts { display: grid; gap: 0.9rem; }
.facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft-light); }
.facts dd { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.facts dd.is-empty { color: var(--soft-light); font-family: var(--sans); font-size: 1rem; }
.facts a { text-decoration: underline; text-decoration-color: var(--herb-ink); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.book__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.form { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3.5vw, 3rem); background: var(--paper); }
.form h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.1; }
.field { display: grid; gap: 0.4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { padding: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft-light); }
.field input[type=text], .field input[type=tel], .field input[type=date], .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.6rem 0; border: 0; border-bottom: 1.5px solid var(--night); border-radius: 0; background: transparent; font: inherit; font-size: 1.0625rem; color: var(--night);
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; border-bottom-color: var(--herb-ink); box-shadow: 0 2px 0 var(--herb-ink); }
.field__err { color: #8e2f1d; font-size: 0.8125rem; }
.field__err[hidden] { display: none; }
.row2 { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.times { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.time { position: relative; }
.time input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.time span { display: grid; place-items: center; min-width: 4.25rem; min-height: 2.75rem; padding: 0 0.5rem; border: 1px solid rgba(31, 15, 38, 0.4); font-variant-numeric: tabular-nums; font-weight: 500; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.time input:hover + span { border-color: var(--night); }
.time input:checked + span { background: var(--night); color: var(--herb); border-color: var(--night); }
.time input:focus-visible + span { outline: 2px solid var(--herb-ink); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 1rem; }
.stepper button { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--night); border-radius: 50%; background: none; cursor: pointer; font-size: 1.4rem; line-height: 1; transition: background-color 0.2s, color 0.2s; }
.stepper button:hover { background: var(--night); color: var(--herb); }
.stepper output { min-width: 2.5rem; text-align: center; font-family: var(--serif); font-size: 2rem; }
.result { display: grid; gap: 1rem; padding: 1.5rem; background: var(--night); color: var(--blush); }
.result[hidden] { display: none; }
.result strong { color: var(--herb); }
.result pre { margin: 0; white-space: pre-wrap; font: inherit; padding: 1rem; background: var(--plum); }
.result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.result__actions .go { color: var(--blush); }
.copy { min-height: 2.75rem; padding: 0 1.25rem; border: 1px solid var(--herb); background: var(--herb); color: var(--night); font-weight: 600; cursor: pointer; transition: background-color 0.2s; }
.copy:hover { background: #c9d58a; }
@media (min-width: 960px) {
  .book { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem; align-items: start; }
  .book__info { grid-column: 1 / 5; }
  .form { grid-column: 6 / 13; }
}

/* ---------- Підвал ---------- */
.foot { background: var(--night); color: var(--blush); overflow: hidden; }
.foot__mark { font-family: var(--serif); font-size: clamp(6rem, 2rem + 24vw, 24rem); line-height: 0.85; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(244, 230, 220, 0.4); padding-top: clamp(2rem, 5vw, 4rem); text-align: center; user-select: none; }
.foot__cols { display: grid; gap: 2rem 3rem; padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.foot h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--herb); margin-bottom: 0.6rem; }
.foot ul { display: grid; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot__ch { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.foot__ic { flex: none; display: inline-grid; width: 1.1rem; height: 1.1rem; color: var(--herb); }
.foot__ic .ci { width: 100%; height: 100%; }
.foot .empty .foot__ic { color: var(--soft-dark); }
.foot a:hover { color: var(--herb); }
.foot .empty { color: var(--soft-dark); }
.foot__demo { max-width: 30rem; font-size: 0.875rem; color: var(--soft-dark); }
.foot__demo strong { color: var(--blush); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 1rem 2rem; border-top: 1px solid rgba(244, 230, 220, 0.2); font-size: 0.8125rem; color: var(--soft-dark); }
@media (min-width: 800px) { .foot__cols { grid-template-columns: 3fr 3fr 6fr; } }
@media (min-width: 800px) { .foot__cols:not(:has([data-foot-info])) { grid-template-columns: 3fr 9fr; } }

/* ---------- Поява ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Правки після перегляду */
.field > .lab { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft-light); }
.menu__photos .ph img { height: auto; }
.menu__photos figure + figure { margin-top: 0.5rem; }
.foot__mark { line-height: 1; padding-bottom: clamp(1rem, 3vw, 2.5rem); overflow: hidden; }
/* Мобільні правки */
.pagehead h1 { font-size: clamp(2.6rem, 0.6rem + 9.5vw, 10rem); }
@media (max-width: 699px) {
  .hero .seal { margin: 1.75rem var(--m) 2rem; justify-self: start; }
  .dish__lead { display: none; }
  .dish__top { justify-content: space-between; }
  .dish__name { flex: 0 1 auto; }
  .dish__price { margin-left: auto; }
}
/* Вузькі екрани (320–380 px): стрічка навігації та заголовок героя без обрізання */
.top__nav { overflow-x: auto; scrollbar-width: none; }
.top__nav::-webkit-scrollbar { display: none; }
@media (max-width: 699px) {
  .hero h1 { font-size: 10.2vw; max-width: none; }
}
@media (max-width: 380px) {
  .top__nav { padding: 0 0.25rem; justify-content: space-between; }
  .top__nav a { font-size: 0.6875rem; letter-spacing: 0.05em; gap: 0.3rem; padding: 0; }
}
/* ---------- Бігуча стрічка й карусель (motion.js) ---------- */
.mq { position: relative; overflow: hidden; }
.mq__track { display: flex; width: max-content; animation: mq var(--mq-dur, 40s) linear infinite; will-change: transform; }
.mq__group { display: flex; flex: none; align-items: center; }
.mq.is-reverse .mq__track { animation-direction: reverse; }
.mq.is-paused .mq__track, .mq:hover .mq__track, .mq.is-hover .mq__track { animation-play-state: paused; }
.mq.is-static { overflow-x: auto; }
.mq.is-static .mq__track { animation: none; }
.mq.is-static .mq__btn { display: none; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq__btn { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); z-index: 2; min-height: 2.25rem; padding: 0 0.9rem; border: 1.5px solid var(--night); border-radius: 999px; background: var(--blush); color: var(--night); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; }
.mq__btn:hover { background: var(--night); color: var(--blush); }
.mq--menu { background: var(--herb); color: var(--night); padding-block: clamp(0.9rem, 2vw, 1.4rem); border-block: 1px solid var(--night); }
.mq--menu li { display: flex; align-items: center; white-space: nowrap; font-family: var(--serif); font-size: clamp(1.4rem, 0.9rem + 2vw, 2.6rem); line-height: 1.15; }
.mq--menu li:nth-child(even) { font-style: italic; }
.mq--menu li::after { content: ""; flex: none; width: 1.15rem; height: 1.15rem; margin-inline: clamp(1.25rem, 3vw, 2.5rem); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1v22M1 12h22M4.2 4.2l15.6 15.6M19.8 4.2L4.2 19.8' stroke='%234d5a1a' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* карусель кадрів: великі «пластини» з нумерацією */
.film { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.film__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.film__ctrl { display: flex; align-items: center; gap: 0.5rem; }
.film__count { margin-right: 0.5rem; font-family: var(--serif); font-size: 1.1rem; font-variant-numeric: tabular-nums; color: var(--soft-dark); }
.film__btn { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1.5px solid var(--herb); border-radius: 50%; background: transparent; color: var(--herb); cursor: pointer; font-size: 1.1rem; transition: background-color 0.2s, color 0.2s; }
.film__btn:hover:not(:disabled) { background: var(--herb); color: var(--night); }
.film__btn:disabled { opacity: 0.35; cursor: default; }
.film__btn--text { width: auto; padding: 0 1.1rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.film__track { display: flex; gap: clamp(0.75rem, 2vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 0.5rem; cursor: grab; }
.film__track::-webkit-scrollbar { display: none; }
.film__track.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.film__track.is-drag .frame { pointer-events: none; }
.film__track:focus-visible { outline-offset: 4px; }
.frame { flex: none; scroll-snap-align: start; display: block; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: inherit; }
.frame img { height: clamp(17rem, 52vh, 31rem); width: auto; max-width: 86vw; background: var(--plum); transition: filter 0.4s; }
.frame:hover img { filter: brightness(1.08); }
.frame__cap { display: flex; align-items: baseline; gap: 0.75rem; margin-top: 0.7rem; font-family: var(--serif); font-size: 1.05rem; }
.frame__cap i { font-style: normal; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; color: var(--herb); }
.film__bar { height: 2px; margin-top: 0.75rem; background: rgba(244, 230, 220, 0.22); overflow: hidden; }
.film__bar i { display: block; height: 100%; background: var(--herb); transform-origin: left; transform: scaleX(0.04); transition: transform 0.25s linear; }
@media (prefers-reduced-motion: reduce) { .mq__track, .mq--menu li::after { animation: none; } .mq { overflow-x: auto; } .mq__btn { display: none; } }

/* Перегляд фото: рамка точно по фото, стрілки по краях фото, «Закрити» у верхньому куті фото, підпис нижче */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #1f0f26; color: #f4e6dc; }
.lightbox::backdrop { background: #1f0f26; }
.lightbox .lightbox__stage { position: static; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.75rem; touch-action: pan-y; }
.lightbox .lb-frame { position: relative; margin: 0; max-width: 100%; min-width: min(17rem, calc(100vw - 1rem)); display: flex; justify-content: center; line-height: 0; background: #000; }
.lightbox .lb-frame img { display: block; width: auto; height: auto; max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 5.25rem); object-fit: contain; }
.lightbox .lb-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem; line-height: 1.2; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); }
.lightbox .lb-count { padding: 0.25rem 0.6rem; background: rgba(0, 0, 0, 0.6); color: #f4e6dc; font-size: 0.875rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lightbox .lb-close { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem; border: 1px solid #f4e6dc; border-radius: 99px; background: #f4e6dc; color: #1f0f26; cursor: pointer; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; transition: transform 0.15s, background-color 0.2s; }
.lightbox .lb-close:hover { background: #b4c26a; border-color: #b4c26a; }
.lightbox .lb-arrow { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; min-width: 0; min-height: 0; padding: 0; border: 1px solid #f4e6dc; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #f4e6dc; cursor: pointer; font-size: 1.35rem; line-height: 1; transition: transform 0.15s, background-color 0.2s, color 0.2s; }
.lightbox .lb-arrow:hover { background: #f4e6dc; color: #1f0f26; }
.lightbox .lb-arrow:active { transform: scale(0.9); }
.lightbox .lb-close:active { transform: scale(0.95); }
.lightbox .lb-arrow--prev { left: 0.6rem; }
.lightbox .lb-arrow--next { right: 0.6rem; }
.lightbox .lb-arrow[hidden] { display: none; }
.lightbox .lightbox__cap { position: static; margin: 0; max-width: 60rem; text-align: center; font-size: 0.875rem; line-height: 1.35; color: #cdbad0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .lightbox .lb-close__t { display: none; } .lightbox .lb-arrow { width: 2.9rem; height: 2.9rem; } .lightbox .lightbox__stage { padding: 0.5rem; } .lightbox .lb-frame img { max-width: calc(100vw - 1rem); } }
@media (max-height: 560px) { .lightbox .lb-close__t { display: none; } .lightbox .lb-frame img { max-height: calc(100dvh - 4rem); } .lightbox .lightbox__cap { -webkit-line-clamp: 1; } }

/* Скруглення */
.lightbox .lb-frame { border-radius: 16px; overflow: hidden; }
.lightbox .lb-frame img { border-radius: 0; }
.lightbox .lb-count { border-radius: 10px; }
.lightbox .lb-close { border-radius: 12px; }
.lightbox .lightbox__stage .lightbox__cap { border-radius: 0; }

/* Скруглення */
.field input, .field select, .field textarea { border-radius: 12px; }
.form, .menu__panel, .scene__card, .scene__img, .scene__img img, .book__photo, .book__photo img, .ph, .ph img, .shot, .shot img, .menu__photos img, .bandimg img { border-radius: 16px; overflow: hidden; }
.film__btn--text { border-radius: 99px; }
.mq__btn { border-radius: 99px; }
.frame img { border-radius: 16px; }
.film__bar { border-radius: 99px; overflow: hidden; }

/* «Страви сезону» на телефоні й планшеті: мініатюра ліворуч, назва, ціна й опис — однією колонкою справа */
.sp { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.15rem 1rem; align-items: start; padding: 1.25rem 0; }
.sp__thumb { grid-row: 1 / 4; width: 5.5rem; height: 5.5rem; border-radius: 14px; }
.sp__name, .sp__price, .sp__desc { grid-column: 2; }
.sp__desc { margin-top: 0.15rem; line-height: 1.5; }
@media (min-width: 560px) and (max-width: 899px) {
  .sp { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1.5rem 0; align-items: center; }
  .sp__thumb { width: 8.5rem; height: 8.5rem; border-radius: 16px; }
  .sp__desc { font-size: 1rem; }
}
@media (min-width: 900px) { .sp { padding: 1.4rem 0; } .sp__name { grid-column: 2; } .sp__price { grid-column: 3; } .sp__desc { grid-column: 2 / 3; } }
@media (max-width: 899px) { .sp:hover, .sp:focus-visible, .sp.is-on { padding-left: 0; } .sp.is-on .sp__name { color: inherit; } .sp:hover .sp__name, .sp:focus-visible .sp__name { color: var(--herb); } }

/* Вертикальні категорії меню: розмір залежить від ширини колонки, довгі назви переносяться, нахил не виходить за межі */
@media (min-width: 900px) {
  .tab { white-space: normal; font-size: clamp(1.35rem, 0.45rem + 1.5vw, 2rem); padding-right: 0.75rem; overflow-wrap: anywhere; }
  .tab[aria-selected="true"] { padding-right: 1rem; }
  .tab sup { vertical-align: super; }
}

/* Перемикач мови в підвалі — праворуч */
a[data-lang-link] { margin-left: auto; }
