/* White River — ресторан готелю Mariletta. Концепція «Течія»: світлий зал (слонова кістка),
   бірюза крісел, золото логотипа; річка, що тече крізь меню. */

/* ---------- Fonts (SIL OFL, self-hosted; see assets/fonts/README.txt) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic.woff2?v=1) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-latin.woff2?v=1) 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: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-ext.woff2?v=1) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-cyrillic.woff2?v=1) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(../fonts/cormorant-garamond-italic-latin.woff2?v=1) 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: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-cyrillic.woff2?v=1) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-latin.woff2?v=1) 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: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/onest-cyrillic-ext.woff2?v=1) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Lavishly Yours"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/lavishly-yours-latin.woff2?v=1) format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --milk: #f5f1e8;
  --foam: #fbf9f4;
  --ink: #102725;
  --ink-2: #445653;
  --ink-3: #5a6966;
  --teal: #0e6a64;
  --teal-2: #138078;
  --deep: #0a2f2d;
  --deep-2: #0f3e3b;
  --mist: #d9e8e3;
  --gold: #a87c3f;
  --gold-2: #d7b57a;
  --gold-ink: #86622c;   /* gold for small text on the light background (4.9:1) */
  --line: rgba(16, 39, 37, .14);
  --line-2: rgba(16, 39, 37, .26);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Lavishly Yours", "Snell Roundhand", cursive;
  --gutter: 20px;
  --top-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--milk); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-2); color: var(--deep); }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--deep); color: var(--milk); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 .78rem/1.3 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 28px; height: 8px; flex: none; background: currentColor;
  -webkit-mask: url(../img/wave-mark.svg?v=1) center / contain no-repeat;
          mask: url(../img/wave-mark.svg?v=1) center / contain no-repeat; }
.eyebrow--light { color: var(--gold-2); }
.h2 { font: 500 clamp(2.5rem, 5.6vw, 4.6rem)/1 var(--serif); letter-spacing: -.01em; }
.h2 em, .hero__title em { font-style: italic; font-weight: 400; color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1px solid var(--deep); border-radius: 999px;
  background: var(--deep); color: var(--milk); font: 600 1rem/1.2 var(--sans); text-decoration: none;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn:active { transform: translateY(1px); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { background: var(--foam); color: var(--ink); border-color: var(--ink); }

/* ---------- Header ---------- */
.top { position: relative; z-index: 30; }
.top__in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; min-height: var(--top-h); }
.logo { font: 400 2.1rem/1 var(--script); color: var(--gold); text-decoration: none; white-space: nowrap; padding-top: 6px; }
.top__nav {
  order: 3; flex: 1 0 100%; display: flex; gap: 20px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line);
}
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a {
  flex: none; padding: 11px 0 7px; text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.2; color: var(--ink-2);
}
.top__nav a:hover { color: var(--teal); }
.top__call {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px;
  border-radius: 999px; text-decoration: none; color: var(--ink);
}
.top__call .i { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--deep); color: var(--milk); stroke-width: 1.6; }
.top__call-text { display: none; font: 600 1rem/1.15 var(--sans); }
.top__call-text small { display: block; font: 500 .7rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 560px) { .top__call-text { display: block; } }
@media (min-width: 1100px) {
  .top { position: sticky; top: 0; background: rgba(245, 241, 232, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
  .top.is-scrolled { border-bottom-color: var(--line); }
  .top__in { flex-wrap: nowrap; }
  .top__nav { order: 0; flex: 0 1 auto; gap: 4px; margin: 0 0 0 32px; padding: 0; overflow: visible; border: 0; }
  .top__nav a { padding: 8px 14px; border: 0; border-radius: 999px; text-decoration: none; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
  .top__nav a:hover { background: var(--foam); color: var(--ink); }
  html { scroll-padding-top: 88px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 12px 0 112px; overflow: hidden; }
.hero__grid { display: grid; gap: 44px; }
.hero__title { font: 500 clamp(2.7rem, 9.4vw, 5.9rem)/.98 var(--serif); letter-spacing: -.015em; margin-bottom: 22px; text-wrap: balance; }
.hero__lead { max-width: 34em; color: var(--ink-2); font-size: 1.0625rem; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__cta .btn:first-child .i { transition: transform .3s var(--ease); }
.hero__cta .btn:first-child:hover .i { transform: translateY(3px); }

.hero__art { position: relative; width: min(100% - 40px, 360px); margin: 8px auto 40px; }
.hero__arch { position: relative; z-index: 1; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 22px 22px; background: var(--mist); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__frame { position: absolute; inset: 0; transform: translate(16px, -16px); border: 1px solid var(--gold); border-radius: 999px 999px 22px 22px; }
.hero__script {
  position: absolute; z-index: 3; right: -6%; bottom: -8%; margin: 0;
  font: 400 clamp(3.4rem, 14vw, 6.6rem)/1 var(--script); color: var(--gold); transform: rotate(-7deg);
  text-shadow: 0 0 18px var(--milk), 0 0 4px var(--milk); pointer-events: none; white-space: nowrap;
}

.waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 96px; pointer-events: none; }
.waves path { fill: none; stroke-linecap: round; }
.waves__a { stroke: var(--teal); stroke-width: 1.5; opacity: .5; }
.waves__b { stroke: var(--gold); stroke-width: 1.2; opacity: .7; }
.waves__c { stroke: var(--teal); stroke-width: 1; opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .waves { animation: drift 46s linear infinite; }
  .hero__text > *, .hero__art { animation: rise .9s var(--ease) both; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
  .hero__text > :nth-child(5) { animation-delay: .24s; }
  .hero__art { animation-delay: .1s; animation-duration: 1.2s; }
}
@keyframes drift { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* sun over the hills */
.sun {
  display: flex; align-items: center; gap: 16px; max-width: 460px; margin: 0;
  padding: 12px 18px 12px 12px; border: 1px solid var(--line); border-radius: 22px; background: var(--foam);
  transition: background .6s, color .6s, border-color .6s;
}
.sun__sky { width: 128px; height: 56px; flex: none; overflow: visible; }
.sun__arc { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 1.5 5; stroke-linecap: round; opacity: .8; }
.sun__glow { fill: var(--gold-2); opacity: .35; }
.sun__disc { fill: #e2a64e; }
.sun__hill { fill: var(--teal); }
.sun__hill--far { fill: var(--mist); }
.sun__stars { fill: var(--gold-2); opacity: 0; transition: opacity .6s; }
.sun__text { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.sun__text b { font: 600 1.35rem/1 var(--serif); color: var(--ink); white-space: nowrap; }
.sun__text small { display: block; margin-top: 3px; font-size: .84rem; color: var(--ink-3); }
.sun.is-night { background: var(--deep); border-color: var(--deep); }
.sun.is-night .sun__text, .sun.is-night .sun__text small { color: rgba(234, 241, 238, .78); }
.sun.is-night .sun__text b { color: var(--gold-2); }
.sun.is-night .sun__stars { opacity: 1; }
.sun.is-night .sun__hill--far { fill: var(--deep-2); }
.sun.is-night .sun__hill { fill: #14615c; }
.sun.is-down .sun__body { opacity: 0; }

@media (min-width: 960px) {
  .hero { padding: 40px 0 150px; }
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 56px; min-height: min(calc(100vh - var(--top-h) - 120px), 760px); }
  .hero__art { width: min(100%, 440px); margin: 0 auto; justify-self: center; }
  .hero__script { right: -4%; font-size: clamp(4rem, 6.6vw, 6.4rem); }
  .hero__lead { font-size: 1.15rem; }
  .waves { height: 120px; }
}

/* ---------- Menu ---------- */
.menu { position: relative; padding: 24px 0 96px; }
.menu__head { display: grid; gap: 24px; align-items: end; margin-bottom: 28px; }
.menu__lead { color: var(--ink-2); margin-bottom: 16px; max-width: 32em; }
.search { position: relative; }
.search__icon { position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; color: var(--ink-3); pointer-events: none; }
.search__input {
  width: 100%; height: 54px; padding: 0 18px 0 52px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--foam); color: var(--ink); font: 400 1rem var(--sans); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.search__input::placeholder { color: var(--ink-3); }
.search__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14, 106, 100, .14); }
.search__status { min-height: 1.4em; margin: 8px 0 0 20px; font-size: .85rem; color: var(--ink-3); }
.search__status:empty { margin: 0; min-height: 0; }
@media (min-width: 960px) {
  .menu__head { grid-template-columns: 1fr minmax(0, 520px); gap: 48px; margin-bottom: 40px; }
}

/* the river: menu sections — chips on phones, a winding line with stops on wide screens */
.river {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter);
  background: rgba(245, 241, 232, .93); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.river__search {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--deep); color: var(--milk);
}
.river__search .i { width: 19px; height: 19px; }
.river__scroll {
  display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 24px), transparent);
          mask: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 24px), transparent);
  padding: 0 14px;
}
.river__scroll::-webkit-scrollbar { display: none; }
.river__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.river__group { flex: none; margin: 0 2px 0 6px; font: italic 600 1.05rem/1 var(--serif); color: var(--gold-ink); }
.river__group:first-of-type { margin-left: 0; }
.river__stop {
  display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--foam); white-space: nowrap; text-decoration: none; font-size: .9rem; line-height: 1.2; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.river__stop.is-active { background: var(--deep); border-color: var(--deep); color: var(--milk); }
.river__stop.is-empty { opacity: .35; }
.river__dot, .river__count, .river__line { display: none; }
.river__meter {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold);
  transform-origin: 0 50%; transform: scaleX(0);
}

.menu__cats { min-width: 0; }
.cat { padding: 36px 0 8px; scroll-margin-top: 70px; }
.cat__head { margin-bottom: 18px; }
.cat__no { margin: 0 0 6px; font: 500 .8rem/1 var(--sans); letter-spacing: .14em; color: var(--ink-3); }
.cat__no span { color: var(--gold-ink); font-weight: 700; }
.cat__title { font: 500 clamp(2.2rem, 7vw, 3.4rem)/1 var(--serif); letter-spacing: -.01em; }
.cat__note { display: inline-block; margin: 12px 0 0; padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--teal); font-size: .82rem; font-weight: 600; }
.cat__wide { margin: 0 0 8px; overflow: hidden; border-radius: 20px; aspect-ratio: 2.2 / 1; background: var(--mist); }
.cat__wide img { width: 100%; height: 100%; object-fit: cover; }
.cat__photo { display: none; }

.dishes { margin: 0; padding: 0; list-style: none; }
.dish {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 38px; column-gap: 12px; align-items: start;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.dish__line { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.dish__name { flex: 0 1 auto; font-weight: 500; font-size: 1.02rem; line-height: 1.35; }
.dish__dots { flex: 1 1 18px; min-width: 18px; margin-bottom: .42em; border-bottom: 1.5px dotted var(--line-2); }
.dish__price { flex: none; font: 600 1.45rem/1.05 var(--serif); color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums; }
.dish__cur { font-size: .82em; color: var(--ink-2); }
.dish__per { display: block; text-align: right; font: 500 .72rem/1.2 var(--sans); color: var(--teal); letter-spacing: .02em; }
.dish__meta { grid-column: 1; margin: 5px 0 0; font-size: .86rem; line-height: 1.45; color: var(--ink-3); }
.dish__desc + .dish__size::before { content: " · "; }
.dish__size { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish__add {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--teal); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.dish__add .i { width: 18px; height: 18px; stroke-width: 2; }
.dish__add:hover { border-color: var(--teal); background: var(--foam); }
.dish__add:active { transform: scale(.92); }
.dish__add[data-qty] { background: var(--teal); border-color: var(--teal); color: #fff; font: 700 .95rem/1 var(--sans); }
.dish__add[data-qty]::before { content: attr(data-qty); }
.dish__add[data-qty] .i { display: none; }
.dish__add.is-g[data-qty] { font-size: .68rem; letter-spacing: -.02em; }
.dish.is-picked .dish__name { color: var(--teal); }

.menu__bank {
  display: flex; align-items: center; gap: 18px; margin: 64px 0 0;
  font: italic 500 clamp(2.4rem, 8vw, 4rem)/1 var(--serif); color: var(--gold);
}
.menu__bank::before, .menu__bank::after { content: ""; flex: 1; height: 14px; background: var(--gold); opacity: .55;
  -webkit-mask: url(../img/wave-line.svg?v=1) 0 50% / 60px 14px repeat-x;
          mask: url(../img/wave-line.svg?v=1) 0 50% / 60px 14px repeat-x; }
.menu__bank::before { max-width: 64px; }
.menu__empty { padding: 48px 0; font: italic 500 1.6rem/1.3 var(--serif); color: var(--ink-2); }

@media (min-width: 760px) {
  .menu__cats { max-width: 760px; margin-inline: auto; }
  .cat__wide { border-radius: 26px; }
}

@media (min-width: 1100px) {
  .menu { padding-top: 56px; }
  .menu__body { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 56px; align-items: start; }
  .menu__cats { max-width: none; margin: 0; }

  .river {
    top: calc(var(--top-h) + 24px); display: block; margin: 0; padding: 6px 0 0; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; border: 0;
    max-height: calc(100vh - var(--top-h) - 40px); overflow-y: auto; scrollbar-width: none;
  }
  .river::-webkit-scrollbar { display: none; }
  .river__search {
    display: inline-flex; width: auto; height: auto; gap: 10px; margin: 0 0 14px; padding: 8px 14px 8px 10px;
    border-radius: 999px; background: none; color: var(--ink-2); border: 1px solid var(--line); text-decoration: none; font-size: .9rem;
  }
  .river__search::after { content: "Пошук"; }
  .river__search:hover { color: var(--ink); border-color: var(--line-2); }
  .river__scroll { position: relative; display: block; overflow: visible; padding: 0; -webkit-mask: none; mask: none; }
  .river__list { display: block; }
  .river__group { margin: 18px 0 4px 46px; font-size: 1.2rem; }
  .river__group:first-of-type { margin-top: 0; margin-left: 46px; }
  .river__stop {
    --x: 6px; position: relative; display: flex; align-items: baseline; gap: 10px;
    padding: 7px 0 7px 46px; border: 0; border-radius: 0; background: none; font-size: .95rem; color: var(--ink-2);
  }
  .js .river__list li:nth-child(even) .river__stop { --x: 22px; }
  .river__stop:hover { color: var(--ink); }
  .river__stop.is-active { background: none; color: var(--ink); font-weight: 600; }
  .river__dot {
    display: block; position: absolute; z-index: 1; left: var(--x); top: 50%; width: 12px; height: 12px; margin-top: -6px;
    border: 1.5px solid var(--teal); border-radius: 50%; background: var(--milk);
    transition: background .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
  }
  .river__stop:hover .river__dot { transform: scale(1.2); }
  .river__stop.is-active .river__dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(168, 124, 63, .18); }
  .river__count { display: block; margin-left: auto; font-size: .75rem; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .river__line { display: block; position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
  .river__bed, .river__flow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .river__bed { stroke: var(--mist); stroke-width: 4; }
  .river__flow { stroke: var(--teal); stroke-width: 2.5; }
  .river__scroll:not(.has-path)::before {
    content: ""; position: absolute; left: 11px; top: 24px; bottom: 8px; border-left: 3px solid var(--mist);
  }
  .river__meter { display: none; }

  .cat {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 38%); grid-template-rows: auto 1fr;
    column-gap: clamp(32px, 4vw, 64px); padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + 16px);
  }
  .cat:first-child { border-top: 0; padding-top: 8px; }
  .menu__bank + .cat { border-top: 0; }
  .cat__head { grid-column: 1; margin-bottom: 14px; }
  .dishes { grid-column: 1; }
  .cat__wide { display: none; }
  .cat__photo {
    display: block; grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--top-h) + 24px); align-self: start;
    aspect-ratio: 4 / 5; max-height: calc(100vh - var(--top-h) - 56px); overflow: hidden;
    border-radius: 999px 999px 24px 24px; background: var(--mist);
  }
  .cat__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
  .cat.is-current .cat__photo img { transform: scale(1.04); }
  .dish__name { font-size: 1.06rem; }
  .dish__price { font-size: 1.55rem; }
  .dish__add { opacity: .55; }
  .dish:hover .dish__add, .dish__add:focus-visible, .dish__add[data-qty] { opacity: 1; }
  .menu__bank { margin-top: 72px; }
}

/* ---------- About ---------- */
.about { padding: 72px 0 96px; background: var(--foam); border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: 36px; margin-bottom: 72px; }
.about__lead { font: 500 clamp(1.5rem, 3.4vw, 2rem)/1.3 var(--serif); color: var(--ink); margin: 26px 0 16px; }
.about__text p:not([class]) { color: var(--ink-2); max-width: 36em; }
.about__photo { overflow: hidden; border-radius: 26px; aspect-ratio: 3 / 2; background: var(--mist); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.occasions__title { font: italic 500 clamp(1.6rem, 4vw, 2.2rem)/1.2 var(--serif); color: var(--gold); margin-bottom: 18px; }
.occasions { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.occ {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line-2);
}
.occ__no { grid-row: 1 / span 2; align-self: start; padding-top: 4px; font: italic 500 1.35rem/1 var(--serif); color: var(--gold-ink); }
.occ__name { grid-column: 2; font: 500 clamp(1.55rem, 4.6vw, 2.5rem)/1.1 var(--serif); }
.occ__text { grid-column: 2; margin: 6px 0 0; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 960px) {
  .about { padding: 120px 0; }
  .about__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 72px; margin-bottom: 110px; }
  .occ { grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 32px; padding: 26px 0; }
  .occ__no { grid-row: auto; align-self: center; padding: 0; font-size: 1.6rem; }
  .occ__name { grid-column: 2; }
  .occ__text { grid-column: 3; margin: 0; font-size: 1rem; }
  .occ__name { transition: transform .5s var(--ease), color .3s; }
  .occ:hover .occ__name { transform: translateX(10px); color: var(--teal); }
}

/* ---------- Banquets (the dark river) ---------- */
.banquets { position: relative; padding: 112px 0; background: var(--deep); color: rgba(234, 241, 238, .86); overflow: hidden; }
.bank { position: absolute; left: 0; width: 100%; height: 44px; fill: var(--foam); }
.bank--top { top: -1px; }
.bank--bottom { bottom: -1px; fill: var(--milk); }
.banquets__grid { position: relative; display: grid; gap: 44px; }
.banquets .h2 { color: #f3efe6; margin-bottom: 24px; }
.banquets .h2 em { color: var(--gold-2); }
.banquets__text > p:not([class]) { max-width: 30em; font-size: 1.08rem; }
.big-phone {
  display: inline-flex; flex-direction: column; gap: 6px; margin-top: 18px; padding: 20px 26px;
  border: 1px solid rgba(215, 181, 122, .4); border-radius: 22px; text-decoration: none;
  font: 500 clamp(1.9rem, 6vw, 2.9rem)/1 var(--serif); color: var(--gold-2); transition: background .25s, border-color .25s;
}
.big-phone small { font: 600 .72rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(234, 241, 238, .62); }
.big-phone:hover { background: var(--deep-2); border-color: var(--gold-2); }
.banquets__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.banquets__photos img { width: 100%; height: auto; object-fit: cover; border-radius: 18px; aspect-ratio: 3 / 2; }
.banquets__photos .banquets__wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.banquets .h2 em { white-space: nowrap; }
@media (min-width: 960px) {
  .banquets { padding: 150px 0; }
  .banquets__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 72px; }
  .banquets__photos { gap: 16px; }
  .banquets__photos img { border-radius: 22px; }
}

/* ---------- Contacts ---------- */
.contacts { padding: 88px 0 104px; }
.contacts__grid { display: grid; gap: 40px; }
.contacts__photo { position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 4 / 3; background: var(--mist); }
.contacts__photo img { width: 100%; height: 100%; object-fit: cover; }
.contacts__photo figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px;
  background: rgba(10, 47, 45, .72); color: #f3efe6; font: 500 .78rem/1 var(--sans); letter-spacing: .08em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.contacts__addr { margin: 26px 0 26px; }
.contacts__addr p { margin: 0; font: 500 clamp(1.45rem, 3.6vw, 1.9rem)/1.25 var(--serif); }
.contacts__addr .contacts__hint { margin-top: 8px; font: 400 .95rem/1.4 var(--sans); color: var(--ink-3); }
.contacts__list { margin: 0 0 30px; border-top: 1px solid var(--line); }
.contacts__list div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacts__list dt { font-size: .85rem; color: var(--ink-3); }
.contacts__list dd { margin: 0; font: 600 1.4rem/1.2 var(--serif); }
.contacts__list a { display: inline-block; padding: 8px 0; text-decoration: none; }
.contacts__list a:hover { color: var(--teal); text-decoration: underline; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 960px) {
  .contacts { padding: 120px 0 140px; }
  .contacts__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 72px; }
  .contacts__photo { aspect-ratio: 4 / 3; }
  .contacts__photo figcaption { left: 20px; bottom: 20px; }
}

/* ---------- Footer ---------- */
.foot { padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--deep); color: rgba(234, 241, 238, .72); font-size: .92rem; }
.foot a { display: inline-block; padding: 6px 0; color: #f3efe6; text-decoration: none; }
.foot a:hover { color: var(--gold-2); text-decoration: underline; }
.foot__logo { margin: 0 0 28px; font: 400 clamp(4.4rem, 17vw, 12rem)/.9 var(--script); color: var(--gold-2); white-space: nowrap; }
.foot__row { display: grid; gap: 18px; padding: 26px 0; border-top: 1px solid rgba(234, 241, 238, .14); border-bottom: 1px solid rgba(234, 241, 238, .14); }
.foot__row p { margin: 0; line-height: 1.5; }
.foot__copy { margin: 20px 0 0; font-size: .8rem; color: rgba(234, 241, 238, .5); }
@media (min-width: 760px) { .foot__row { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ---------- My table (a note with a running total) ---------- */
.tablebar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%); animation: pop .35s var(--ease);
}
.tablebar__btn {
  display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px;
  background: var(--deep); color: #f3efe6; cursor: pointer; white-space: nowrap;
  box-shadow: 0 14px 34px rgba(10, 47, 45, .32), 0 0 0 1px rgba(215, 181, 122, .35);
}
.tablebar__count { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; background: var(--gold-2); color: var(--deep); font-weight: 700; font-size: .95rem; }
.tablebar__label { font-weight: 600; font-size: .95rem; }
.tablebar__sum { font: 600 1.3rem/1 var(--serif); color: var(--gold-2); }
.tablebar.is-bump .tablebar__count { animation: bump .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes bump { 50% { transform: scale(1.25); } }

.table {
  width: min(100% - 24px, 540px); max-width: none; max-height: min(86vh, 760px); padding: 0;
  border: 0; border-radius: 26px; background: var(--foam); color: var(--ink);
  box-shadow: 0 30px 80px rgba(10, 47, 45, .35);
}
.table[open] { display: flex; flex-direction: column; }
.table::backdrop { background: rgba(10, 47, 45, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.table__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 0 26px; }
.table__title { font: 500 2.2rem/1 var(--serif); }
.table__close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.table__close:hover { border-color: var(--ink); }
.table__hint { margin: 10px 26px 8px; font-size: .86rem; color: var(--ink-3); }
.table__list { flex: 1 1 auto; overflow-y: auto; margin: 0; padding: 0 26px; list-style: none; overscroll-behavior: contain; }
.table__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.table__name { font-weight: 500; line-height: 1.3; }
.table__meta { grid-column: 1; font-size: .82rem; color: var(--ink-3); }
.table__qty { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 6px; }
.table__qty button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: none; cursor: pointer; color: var(--teal); }
.table__qty button:hover { border-color: var(--teal); }
.table__qty .i { width: 16px; height: 16px; stroke-width: 2; }
.table__n { min-width: 46px; text-align: center; font: 600 1.15rem/1 var(--serif); }
.table__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 26px; padding: 18px 0 6px; border-top: 2px solid var(--ink); }
.table__total span { font-size: .9rem; color: var(--ink-2); }
.table__sum { font: 600 2rem/1 var(--serif); }
.table__note { margin: 6px 26px 0; font-size: .8rem; color: var(--ink-3); }
.table__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 26px 24px; }
.table__actions .btn { flex: 1 1 auto; min-height: 48px; }
@media (max-width: 559px) {
  .table { width: 100%; max-height: 88vh; margin: auto 0 0; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-content: center; gap: 18px; padding: 40px var(--gutter); text-align: center; }
.nf__logo { font: 400 3rem/1 var(--script); color: var(--gold); text-decoration: none; }
.nf h1 { font: 500 clamp(2.4rem, 7vw, 4rem)/1.05 var(--serif); }
.nf p { color: var(--ink-2); margin: 0 auto 8px; max-width: 28em; }
.nf .btn { justify-self: center; }

/* lining figures for phone numbers and sums (after every `font:` shorthand, which resets them) */
.big-phone, .contacts__list dd, .contacts__addr p, .sun__text b, .tablebar__sum, .table__sum, .table__n
{ font-variant-numeric: lining-nums; }

/* room for the floating "My table" bar at the end of the page */
.has-table .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
