/* ==========================================================
   ПЛІТКИ — гастро-кафе. Демо-сайт.
   Настрій: світло, зелень, наліпки, плітки за кавою.
   ========================================================== */
:root {
  --green: #44692a;
  --green-2: #5f8c3b;
  --green-d: #22371a;
  --ink: #1d2618;
  --paper: #fbf7ee;
  --cream: #f3ecdc;
  --cream-2: #e9e0ca;
  --muted: #59624f;
  --pink: #f4a7c3;
  --butter: #f3d46c;
  --sky: #a9d0ec;
  --line: rgba(29, 38, 24, .14);
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --pad: clamp(18px, 4.5vw, 72px);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.pre body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--butter); color: var(--ink); }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 400; background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 16px; }

/* ---------- Інтро ---------- */
.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--green); visibility: hidden;
  clip-path: circle(0% at 50% 50%); transition: clip-path 1s cubic-bezier(.7, 0, .2, 1), visibility 0s 1s; }
html.pre .intro { visibility: visible; clip-path: circle(150% at 50% 50%); transition: none; }
.intro__bubble { position: relative; width: min(340px, 74vw); aspect-ratio: 320 / 220; display: grid; place-items: center; transform: scale(.6) rotate(-6deg); opacity: 0; transition: transform .8s var(--spring), opacity .4s; }
html.pssst .intro__bubble { transform: none; opacity: 1; }
.intro__bubble svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__bubble path { fill: var(--cream); fill-opacity: 0; stroke: var(--cream); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1s var(--ease), fill-opacity .4s .7s; }
html.pssst .intro__bubble path { stroke-dashoffset: 0; fill-opacity: 1; }
.intro__txt { position: relative; margin-top: -14px; font: 700 clamp(34px, 7vw, 52px)/1 var(--hand); color: var(--green); }

/* ---------- Прогрес і курсор ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 150; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--butter), var(--pink)); transform-origin: 0 50%; transform: scaleX(0); border-radius: 0 4px 4px 0; }
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--green); border: 2px solid var(--cream); transition: transform .4s var(--spring); }
.cursor__bubble { position: absolute; left: 14px; top: -46px; padding: 6px 14px 8px; border-radius: 18px 18px 18px 4px; background: var(--butter); font: 700 22px/1 var(--hand); color: var(--ink); white-space: nowrap;
  transform: scale(0) rotate(-12deg); transform-origin: 0 100%; transition: transform .45s var(--spring); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.cursor.is-view .cursor__bubble { transform: none; }
.cursor.is-link .cursor__dot { transform: scale(2.2); }
@media (hover: hover) and (pointer: fine) { .cursor.is-on { opacity: 1; } }

/* ---------- Кнопки, мітки ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--body); white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .5s var(--spring), color .3s, background .3s, box-shadow .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--butter); transform: translateY(102%) rotate(6deg); transition: transform .5s var(--out); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover { color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--green-d); }
.btn--green { background: var(--green); color: var(--cream); }
.btn--line { border: 2px solid rgba(243, 236, 220, .55); color: var(--cream); }
.btn--line:hover { border-color: var(--butter); }
.btn--ink { background: var(--ink); color: var(--cream); }
.magnetic { will-change: transform; }
.tag { display: inline-block; margin: 0; padding: 7px 14px 6px; border: 2px solid var(--green); border-radius: 999px; font: 500 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--green); transform: rotate(-2deg); background: var(--paper); }
.tag--light { border-color: var(--cream); color: var(--cream); background: transparent; }
.linkbtn { text-decoration: underline; text-underline-offset: 4px; font-size: 13px; color: inherit; opacity: .8; }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 12px 12px auto; z-index: 100; display: flex; align-items: center; gap: 24px; padding: 10px 12px 10px 24px; border-radius: 999px;
  background: rgba(251, 247, 238, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px -18px rgba(29, 38, 24, .35);
  transition: transform .8s var(--spring) .2s, opacity .5s .2s; }
html.pre .header { transform: translateY(-130%); opacity: 0; }
.logo { display: grid; line-height: 1; margin-right: auto; }
.logo__word { font: 600 26px/1 var(--display); letter-spacing: .04em; color: var(--green); }
.logo__hand { font: 600 16px/1 var(--hand); color: var(--muted); margin-top: 1px; }
.nav { display: flex; gap: 2px; }
.nav a { position: relative; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: background .3s, color .3s; }
.nav a:hover { background: var(--cream); }
.nav a.is-active { background: var(--green); color: var(--cream); }
.header__cta { height: 46px; padding: 0 20px; font-size: 14px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green); position: relative; }
.burger i { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform .5s var(--spring), top .5s var(--spring); }
.burger i:first-child { top: 20px; } .burger i:last-child { top: 27px; }
.burger[aria-expanded="true"] i:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 23px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 100px var(--pad) 40px; background: var(--green); color: var(--cream);
  clip-path: circle(0 at calc(100% - 42px) 46px); transition: clip-path .8s var(--out); }
.drawer.is-open { clip-path: circle(160% at calc(100% - 42px) 46px); }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a { font: 600 clamp(40px, 12vw, 64px)/1.08 var(--display); text-transform: uppercase; opacity: 0; transform: translateY(40px) rotate(4deg); transition: opacity .4s, transform .7s var(--spring), color .2s; }
.drawer nav a:hover { color: var(--butter); }
.drawer.is-open nav a { opacity: 1; transform: none; }
.drawer.is-open nav a:nth-child(1) { transition-delay: .12s; } .drawer.is-open nav a:nth-child(2) { transition-delay: .17s; }
.drawer.is-open nav a:nth-child(3) { transition-delay: .22s; } .drawer.is-open nav a:nth-child(4) { transition-delay: .27s; }
.drawer.is-open nav a:nth-child(5) { transition-delay: .32s; } .drawer.is-open nav a:nth-child(6) { transition-delay: .37s; }
.drawer__hand { margin: 0; font: 700 32px/1 var(--hand); color: var(--butter); }
.drawer__tel { font: 600 22px/1 var(--body); }

/* ---------- Герой ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 110px var(--pad) 70px; overflow: hidden; isolation: isolate; background: var(--green-d); }
.tiles { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); grid-auto-rows: var(--size, 160px); gap: 8px; padding: 8px; align-content: center; }
.tile { position: relative; perspective: 900px; }
.tile__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1s var(--spring); }
.tile.is-b .tile__in { transform: rotateY(180deg); }
.tile.is-b.is-x .tile__in { transform: rotateX(180deg); }
.tile__f, .tile__b { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.tile__f img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) brightness(.92); }
.tile__b { transform: rotateY(180deg); display: grid; place-items: center; text-align: center; padding: 8px; font: 700 clamp(22px, 2.2vw, 34px)/1 var(--hand); }
.tile.is-x .tile__b { transform: rotateX(180deg); }
.tile__b.c0 { background: var(--green-2); color: var(--cream); }
.tile__b.c1 { background: var(--cream); color: var(--green); }
.tile__b.c2 { background: var(--pink); color: var(--green-d); }
.tile__b.c3 { background: var(--butter); color: var(--green-d); }
.tile__b.c4 { background: var(--sky); color: var(--green-d); }
.hero__veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 48% 55% at 50% 52%, rgba(22, 34, 17, .55), rgba(22, 34, 17, .12) 70%, rgba(22, 34, 17, .3) 100%); }

.hero__card { position: relative; z-index: 2; width: min(660px, 100%); padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 56px) clamp(26px, 3vw, 36px); border-radius: 44px; text-align: center; color: var(--cream);
  background: var(--green); box-shadow: 0 50px 100px -30px rgba(10, 18, 6, .7), inset 0 0 0 2px rgba(243, 236, 220, .14);
  transition: transform 1.1s var(--spring) .15s, opacity .5s .15s; }
html.pre .hero__card { transform: scale(.7) rotate(-5deg); opacity: 0; }
.hero__kicker { margin: 0; font: 500 14px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.hero__title { margin: 8px 0 0; line-height: .9; }
.hero__word { display: inline-flex; font: 600 clamp(78px, 13vw, 168px)/.9 var(--display); letter-spacing: .01em; }
.hero__word b { display: inline-block; font-weight: 600; animation: drop 1s var(--spring) both; animation-delay: calc(var(--i) * 70ms + .35s); }
html.pre .hero__word b { animation-play-state: paused; }
.hero__word b:nth-child(1) { --i: 0; } .hero__word b:nth-child(2) { --i: 1; } .hero__word b:nth-child(3) { --i: 2; }
.hero__word b:nth-child(4) { --i: 3; } .hero__word b:nth-child(5) { --i: 4; } .hero__word b:nth-child(6) { --i: 5; }
@keyframes drop { from { transform: translateY(-140%) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.hero__word b.jump { animation: jump .7s var(--spring); }
@keyframes jump { 0% { transform: none; } 35% { transform: translateY(-22%) rotate(-8deg) scaleY(1.08); color: var(--butter); } 100% { transform: none; } }
.hero__hand { position: relative; display: inline-block; margin: 8px 0 0; font: 700 clamp(30px, 3.6vw, 44px)/1 var(--hand); color: var(--butter); transform: rotate(-3deg); }
.squiggle { position: absolute; left: -4%; right: -4%; bottom: -14px; width: 108%; height: 18px; overflow: visible; }
.squiggle path { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) 1.1s; }
html.pre .squiggle path { stroke-dashoffset: 1; }
.hero__line { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 26px 0 24px; font: 500 18px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.hero__line i { font-style: normal; color: var(--butter); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .16); font-size: 13px; font-weight: 600; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #c9c1ad; }
.status.is-open .status__dot { background: #8fe07a; box-shadow: 0 0 0 0 rgba(143, 224, 122, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(143, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 224, 122, 0); } }
.hero__hint { position: absolute; left: 50%; bottom: 22px; margin: 0; transform: translateX(-50%) rotate(-2deg); padding: 6px 16px 8px; border-radius: 999px; background: rgba(29, 38, 24, .78); font: 700 22px/1 var(--hand); color: var(--cream); white-space: nowrap; transition: opacity .6s 1.6s; }
html.pre .hero__hint { opacity: 0; }

.bubbles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bub { position: absolute; max-width: 270px; padding: 12px 18px 14px; border-radius: 26px; background: var(--cream); color: var(--ink); font: 700 23px/1.12 var(--hand); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  transform: scale(0) rotate(var(--r, -4deg)); transform-origin: var(--o, 0 100%); transition: transform .7s var(--spring), opacity .4s; animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.bub.is-on { transform: scale(1) rotate(var(--r, -4deg)); }
.bub.is-off { transform: scale(.4) rotate(var(--r, -4deg)); opacity: 0; }
.bub::after { content: ""; position: absolute; width: 22px; height: 22px; background: inherit; border-radius: 0 0 0 22px; bottom: -8px; left: 20px; transform: skewX(-20deg); }
.bub--r::after { left: auto; right: 20px; border-radius: 0 0 22px 0; transform: skewX(20deg); }
.bub small { display: block; margin-bottom: 4px; font: 600 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); opacity: .8; }
.bub.c2 { background: var(--pink); } .bub.c3 { background: var(--butter); } .bub.c4 { background: var(--sky); }
.bub .caret { display: inline-block; width: 2px; height: .9em; margin-left: 2px; background: currentColor; vertical-align: -2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ---------- Стрічка ---------- */
.ticker { overflow: hidden; background: var(--butter); border-block: 3px solid var(--ink); padding: 14px 0; }
.ticker__track { display: flex; width: max-content; gap: 34px; animation: marquee 50s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { display: inline-flex; align-items: center; gap: 14px; font: 600 22px/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.ticker b { padding: 5px 10px 4px; border-radius: 8px; background: var(--ink); color: var(--butter); font-weight: 500; font-size: 14px; letter-spacing: .1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секції ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 160px) var(--pad); }
.head { display: grid; gap: 22px; justify-items: start; margin-bottom: clamp(40px, 6vw, 80px); }
.head--center { justify-items: center; text-align: center; }
.h2 { margin: 0; font: 600 clamp(48px, 7.4vw, 124px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.h2--huge { font-size: clamp(90px, 20vw, 300px); line-height: .82; color: var(--green); }
.h2--light { color: var(--cream); }
.hl { position: relative; display: inline-block; z-index: 0; color: var(--green); }
.hl::before { content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .06em; height: .42em; border-radius: .12em; background: var(--butter); transform: scaleX(0) rotate(-1.5deg); transform-origin: left; transition: transform 1s var(--out) .5s; }
.hl--pink::before { background: var(--pink); } .hl--butter::before { background: var(--butter); }
.is-in .hl::before, .hl.is-in::before { transform: scaleX(1) rotate(-1.5deg); }
.lead { margin: 0; max-width: 560px; font-size: 18px; color: var(--muted); }

/* поява слів: пружинка */
.pop .w { display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg) scale(.8); transition: opacity .5s, transform .9s var(--spring); transition-delay: calc(var(--i) * 80ms); }
.pop.is-in .w { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1s var(--out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-pop { opacity: 0; transform: scale(.8) rotate(-4deg); transition: opacity .8s, transform 1.2s var(--spring); }
.reveal-pop.is-in { opacity: 1; transform: none; }

/* ---------- Свіжі плітки ---------- */
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
.cover { position: relative; display: block; aspect-ratio: 4 / 5.2; border-radius: 32px; overflow: hidden; background: var(--green-d); color: var(--cream); isolation: isolate; text-align: left;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--out), box-shadow .5s; box-shadow: 0 30px 60px -30px rgba(29, 38, 24, .5); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--out); }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 30, 14, .25) 0, transparent 30%, rgba(20, 30, 14, .35) 55%, rgba(20, 30, 14, .92) 100%); }
.cover:hover img { transform: scale(1.08); }
.cover__issue { position: absolute; top: 22px; left: 22px; padding: 6px 10px 5px; border-radius: 8px; background: rgba(20, 30, 14, .7); font: 600 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.cover__stamp { position: absolute; top: 16px; right: 16px; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: var(--green-d); font: 700 26px/1 var(--hand); transform: rotate(12deg); transition: transform .8s var(--spring); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.cover:nth-child(2) .cover__stamp { background: var(--butter); }
.cover:nth-child(3) .cover__stamp { background: var(--sky); }
.cover:hover .cover__stamp { transform: rotate(-14deg) scale(1.1); }
.cover__body { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 10px; }
.cover__body h3 { margin: 0; font: 600 clamp(34px, 3.2vw, 50px)/.95 var(--display); text-transform: uppercase; }
.cover__body p { margin: 0; font: 700 22px/1.15 var(--hand); color: var(--butter); }
.cover__meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(243, 236, 220, .3); font-size: 13px; font-weight: 600; }
.cover__meta span:last-child::after { content: " →"; }
.news__grid .cover { opacity: 0; translate: 0 80px; transition: transform .5s var(--out), box-shadow .5s, opacity .9s, translate 1.1s var(--spring); }
.news__grid .cover.is-in { opacity: 1; translate: 0 0; }
.news__grid .cover:nth-child(2) { transition-delay: 0s, 0s, .12s, .12s; } .news__grid .cover:nth-child(3) { transition-delay: 0s, 0s, .24s, .24s; }

/* ---------- Ланч ---------- */
.lunch { background: var(--cream); }
.lunch__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.lunch__text { display: grid; gap: 24px; justify-items: start; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day { position: relative; min-width: 64px; height: 64px; padding: 0 12px; border-radius: 20px; border: 2px solid var(--ink); font: 600 20px/1 var(--display); text-transform: uppercase; background: var(--paper); transition: transform .5s var(--spring), background .3s, color .3s; }
.day:hover { transform: translateY(-4px) rotate(-3deg); }
.day[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--cream); transform: rotate(-4deg) scale(1.06); }
.day small { position: absolute; top: -12px; right: -10px; padding: 3px 7px 4px; border-radius: 8px; background: var(--pink); color: var(--ink); font: 700 15px/1 var(--hand); text-transform: none; transform: rotate(8deg); }
.lunch__card { width: 100%; max-width: 560px; padding: 26px 28px; border-radius: 28px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.lunch__card h3 { margin: 0 0 10px; font: 600 32px/1 var(--display); text-transform: uppercase; }
.lunch__card p { margin: 0; color: var(--muted); }
.lunch__card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.price { display: inline-block; padding: 7px 14px 6px; border-radius: 12px; background: var(--butter); color: var(--ink); font: 600 22px/1 var(--display); transform: rotate(-3deg); }
.lunch__card.swap { animation: cardSwap .6s var(--spring); }
@keyframes cardSwap { from { transform: translateY(20px) rotate(2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lunch__media { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.lunch__media .blob { position: absolute; inset: 0; overflow: hidden; border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; animation: blob 12s ease-in-out infinite; box-shadow: 0 40px 80px -30px rgba(29, 38, 24, .5); }
.lunch__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s, transform 1.2s var(--out); }
.lunch__media img.is-old { opacity: 0; transform: scale(1.1); }
@keyframes blob { 33% { border-radius: 42% 58% 46% 54% / 56% 44% 56% 44%; } 66% { border-radius: 54% 46% 38% 62% / 44% 52% 48% 56%; } }
.lunch__price { position: absolute; z-index: 1; right: 0; bottom: 8%; padding: 14px 18px; border-radius: 22px; background: var(--green); color: var(--cream); font: 700 28px/1 var(--hand); transform: rotate(-8deg); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }

/* ---------- Локації ---------- */
.places__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; perspective: 1600px; }
.place { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 36px; overflow: hidden; background: var(--cream); border: 2px solid var(--ink);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--out), box-shadow .5s; box-shadow: 10px 10px 0 var(--ink); }
.place__img { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; border-bottom: 2px solid var(--ink); }
.place__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--out); }
.place:hover .place__img img { transform: scale(1.07); }
.place__label { position: absolute; left: 20px; top: 20px; padding: 8px 14px 7px; border-radius: 14px; background: var(--butter); font: 600 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-4deg); }
.place:nth-child(2) .place__label { background: var(--pink); }
.place__body { display: grid; gap: 14px; align-content: start; padding: 26px 28px 28px; }
.place__body h3 { margin: 0; font: 600 clamp(38px, 4vw, 60px)/.95 var(--display); text-transform: uppercase; color: var(--green); }
.place__bio { margin: 0; font: 700 26px/1.1 var(--hand); }
.place__info { margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.place__info b { color: var(--ink); }
.place__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.places__grid .place { opacity: 0; translate: 0 70px; transition: transform .5s var(--out), opacity .9s, translate 1.1s var(--spring); }
.places__grid .place.is-in { opacity: 1; translate: 0 0; }
.places__grid .place:nth-child(2) { transition-delay: 0s, .14s, .14s; }

/* ---------- Меню ---------- */
.menu .head { margin-bottom: 30px; }
.where { position: relative; display: flex; width: max-content; margin: 0 auto 28px; padding: 6px; border-radius: 999px; background: var(--cream); border: 2px solid var(--ink); }
.where__knob { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px; background: var(--green); transition: transform .6s var(--spring), width .6s var(--spring); }
.where button { position: relative; z-index: 1; padding: 12px 24px; border-radius: 999px; font: 600 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; transition: color .3s; }
.where button[aria-checked="true"] { color: var(--cream); background: var(--green); transition: color .3s, background 0s .45s; }
.where button small { display: block; margin-top: 3px; font: 500 11px/1 var(--body); letter-spacing: 0; text-transform: none; }
.menu__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.tab { padding: 11px 18px 10px; border-radius: 999px; border: 2px solid var(--line); font: 500 16px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; transition: all .35s var(--spring); }
.tab:hover { border-color: var(--ink); transform: rotate(-2deg); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--butter); transform: rotate(-2deg) scale(1.04); }
.menu__bar { position: sticky; top: 88px; z-index: 20; display: flex; gap: 14px; align-items: center; padding: 14px 0; background: linear-gradient(180deg, var(--paper) 80%, rgba(251, 247, 238, 0)); }
.menu__cats { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.menu__cats::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--cream); font-size: 14px; font-weight: 600; white-space: nowrap; transition: all .3s var(--ease); }
.chip:hover { background: var(--cream-2); }
.chip.is-active { background: var(--green); color: var(--cream); }
.search { flex: 0 0 300px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); }
.search:focus-within { box-shadow: 4px 4px 0 var(--green); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 500 15px var(--body); }
.search input::placeholder { color: #707a66; }
.menu__body { min-height: 60vh; }
.menu__body.is-swap { animation: swap .7s var(--spring); }
@keyframes swap { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
.cat { padding-top: 46px; scroll-margin-top: 170px; }
.cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 20px; }
.cat__head h3 { margin: 0; font: 600 clamp(32px, 4vw, 56px)/1 var(--display); text-transform: uppercase; }
.cat__head span { font: 700 22px/1 var(--hand); color: var(--green); }
.cat__note { margin: -6px 0 20px; max-width: 760px; font: 700 21px/1.2 var(--hand); color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 8px; border-radius: 26px; background: var(--cream); transition: transform .5s var(--spring), box-shadow .5s, background .3s; }
.card:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 30px 50px -28px rgba(29, 38, 24, .55); background: #f6efdf; }
.card:nth-child(even):hover { transform: translateY(-8px) rotate(1.2deg); }
.card__img { position: relative; aspect-ratio: 1 / .86; border-radius: 20px; overflow: hidden; background: var(--cream-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--out); }
.card__img img.is-loaded { animation: imgIn .7s var(--ease); }
@keyframes imgIn { from { opacity: 0; } to { opacity: 1; } }
.card:hover .card__img img { transform: scale(1.08); }
.card__body { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 14px 10px 8px; }
.card h4 { margin: 0; font: 700 16.5px/1.25 var(--body); }
.card h4 button { text-align: left; }
.card h4 button::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 26px; }
.card__desc { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.card__meta .price { font-size: 19px; padding: 6px 11px 5px; transition: transform .5s var(--spring); }
.card:hover .price { transform: rotate(4deg) scale(1.08); }
.card--text { grid-template-rows: 1fr; }
.card--text .card__body { padding: 18px 14px 10px; min-height: 140px; }
.card--off { opacity: .55; }
.card__tag { position: absolute; z-index: 1; top: 16px; left: 16px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 600; }
.grid .card { opacity: 0; translate: 0 34px; }
.grid .card.is-in { opacity: 1; translate: 0 0; transition: transform .5s var(--spring), box-shadow .5s, background .3s, opacity .6s, translate .8s var(--spring); }
.empty { padding: 70px 0; text-align: center; font: 700 30px/1.2 var(--hand); color: var(--muted); }

/* ---------- Мерч ---------- */
.merch { background: var(--green); color: var(--cream); overflow: hidden;
  background-image: radial-gradient(rgba(243, 236, 220, .12) 1.5px, transparent 1.6px); background-size: 26px 26px; }
.merch__head { display: grid; gap: 20px; justify-items: start; position: relative; z-index: 2; pointer-events: none; }
.merch__head .tag { pointer-events: auto; }
.merch__hand { margin: 0; font: 700 28px/1 var(--hand); color: var(--butter); transform: rotate(-2deg); }
.merch__board { position: relative; height: clamp(560px, 62vw, 760px); margin-top: -40px; }
.sticker { position: absolute; width: clamp(170px, 17vw, 230px); padding: 10px 10px 14px; border-radius: 26px; background: #fffdf7; color: var(--ink); box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .45);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(var(--s, 1)); transition: transform .6s var(--spring), box-shadow .3s; }
.sticker.is-drag { cursor: grabbing; transition: box-shadow .3s; --s: 1.08; box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .55); z-index: 10; }
.sticker img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; pointer-events: none; -webkit-user-drag: none; }
.sticker h3 { margin: 10px 4px 2px; font: 700 15px/1.2 var(--body); }
.sticker p { display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 0; }
.sticker .price { font-size: 17px; }
.sticker button { font: 700 18px/1 var(--hand); color: var(--green); }
.sticker button:hover { text-decoration: underline; }
.merch__board .sticker { opacity: 0; }
.merch__board.is-in .sticker { opacity: 1; animation: stickIn .9s var(--spring) both; animation-delay: calc(var(--k) * 90ms); }
@keyframes stickIn { from { opacity: 0; transform: translate(var(--x), calc(var(--y) - 120px)) rotate(calc(var(--r) * -3)) scale(.6); } }

/* ---------- Події (бенто) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 18px; }
.bcard { position: relative; display: grid; align-content: end; gap: 10px; padding: 26px; border-radius: 30px; overflow: hidden; isolation: isolate; background: var(--cream); transition: transform .6s var(--spring); }
.bcard:hover { transform: rotate(-1.5deg) scale(1.02); }
.bcard--wide { grid-column: span 2; }
.bcard--tall { grid-row: span 2; }
.bcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--out); }
.bcard:hover img { transform: scale(1.07); }
.bcard--photo { color: var(--cream); }
.bcard--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(20, 30, 14, .85)); }
.bcard--green { background: var(--green); color: var(--cream); }
.bcard--pink { background: var(--pink); }
.bcard--butter { background: var(--butter); }
.bcard--sky { background: var(--sky); }
.bcard h3 { margin: 0; font: 600 clamp(28px, 2.6vw, 40px)/.95 var(--display); text-transform: uppercase; }
.bcard p { margin: 0; font-size: 15px; line-height: 1.5; }
.bcard .hand { font: 700 24px/1.1 var(--hand); }
.bcard__icon { position: absolute; top: 22px; right: 22px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.bcard__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bcard .btn { justify-self: start; margin-top: 6px; }
.bento .bcard { opacity: 0; translate: 0 50px; transition: transform .6s var(--spring), opacity .8s, translate 1s var(--spring); }
.bento .bcard.is-in { opacity: 1; translate: 0 0; }

/* ---------- Футер ---------- */
.footer { background: var(--green-d); color: var(--cream); padding: 0 0 26px; overflow: hidden; }
.footer__big { display: flex; width: max-content; padding: 40px 0 30px; animation: marquee 40s linear infinite; }
.footer__big span { padding-right: .4em; font: 600 clamp(60px, 10vw, 150px)/1 var(--display); text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(243, 236, 220, .7); }
.footer__big span:nth-child(2) { color: var(--butter); -webkit-text-stroke: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; padding: 30px var(--pad); border-top: 1px solid rgba(243, 236, 220, .18); }
.footer__logo { margin: 0; font: 600 54px/1 var(--display); }
.footer__hand { margin: 4px 0 0; font: 700 28px/1 var(--hand); color: var(--butter); }
.footer__col h3 { margin: 0 0 8px; font: 500 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--butter); }
.footer__col p { margin: 0; font-size: 15px; line-height: 1.6; opacity: .9; }
.footer__col a:hover { color: var(--butter); }
.footer__links { display: grid; }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px var(--pad) 0; border-top: 1px solid rgba(243, 236, 220, .18); font-size: 13px; opacity: .85; }

/* ---------- Діалоги ---------- */
dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(29, 38, 24, .6); backdrop-filter: blur(6px); }
.dish[open] { display: grid; grid-template-columns: 1fr 1fr; width: min(960px, calc(100vw - 28px)); max-height: calc(100vh - 36px); margin: auto; background: var(--paper); border-radius: 34px; border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); overflow: hidden; animation: dlg .7s var(--spring); }
@keyframes dlg { from { opacity: 0; transform: scale(.85) rotate(-3deg); } to { opacity: 1; transform: none; } }
.dish__media { position: relative; min-height: 420px; background: var(--cream); }
.dish__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dish__media.is-empty { display: grid; place-items: center; }
.dish__media.is-empty::after { content: "ням!"; font: 700 80px/1 var(--hand); color: var(--green); transform: rotate(-8deg); }
.dish__body { display: grid; align-content: start; gap: 16px; padding: clamp(26px, 4vw, 44px); overflow-y: auto; }
.dish__body h3 { margin: 0; padding-right: 44px; font: 600 clamp(32px, 3.4vw, 46px)/1 var(--display); text-transform: uppercase; }
.dish__meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 600; }
.dish__meta .price, .dish__meta b { font: 600 26px/1 var(--display); padding: 8px 14px 7px; border-radius: 12px; background: var(--butter); color: var(--ink); transform: rotate(-3deg); }
.dish__meta b:empty { display: none; }
.dish__body p { margin: 0; white-space: pre-line; }
.dish__note { font: 700 21px/1.2 var(--hand) !important; color: var(--green); }
.dish__note:empty, #dishDesc:empty { display: none; }
.xbtn { position: absolute; z-index: 3; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); transition: transform .5s var(--spring); }
.xbtn:hover { transform: rotate(90deg) scale(1.08); }
.xbtn i { position: absolute; left: 14px; right: 14px; top: 23px; height: 2px; border-radius: 2px; background: var(--cream); transform: rotate(45deg); }
.xbtn i + i { transform: rotate(-45deg); }
.legal[open] { position: fixed; width: min(700px, calc(100vw - 28px)); max-height: calc(100vh - 36px); margin: auto; padding: clamp(26px, 4vw, 46px); overflow-y: auto; background: var(--paper); border-radius: 30px; border: 3px solid var(--ink); animation: dlg .7s var(--spring); }
.legal h3 { margin: 0 0 6px; padding-right: 50px; font: 600 32px/1 var(--display); text-transform: uppercase; }
.legal h4 { margin: 22px 0 4px; font: 600 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.legal p { margin: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .news__grid { grid-template-columns: 1fr 1fr; }
  .news__grid .cover:nth-child(3) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .bento { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .menu__bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .search { flex-basis: auto; }
}
@media (max-width: 760px) {
  .header { inset: 8px 8px auto; padding: 8px 8px 8px 18px; }
  .header__cta { display: none; }
  .hero { padding: 100px 14px 90px; }
  .hero__card { border-radius: 34px; }
  .hero__line { font-size: 15px; gap: 8px; letter-spacing: .14em; }
  .bub { max-width: 230px; font-size: 20px; }
  .lunch__grid, .places__grid { grid-template-columns: 1fr; }
  .lunch__media { order: -1; max-width: 420px; }
  .news__grid { grid-template-columns: 1fr; }
  .news__grid .cover:nth-child(3) { grid-column: auto; aspect-ratio: 4 / 5.2; }
  .menu__bar { top: 76px; }
  .where button { padding: 10px 16px; font-size: 15px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 6px; border-radius: 22px; }
  .card__body { padding: 10px 6px 6px; }
  .card h4 { font-size: 14.5px; }
  .card__desc { display: none; }
  .card__meta { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; }
  .merch__board { height: auto; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .sticker { position: relative; width: auto; transform: rotate(var(--r, 0deg)); cursor: default; touch-action: auto; }
  .merch__board.is-in .sticker { animation: none; }
  .merch__hand { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bcard--wide { grid-column: auto; } .bcard--tall { grid-row: auto; min-height: 340px; }
  .dish[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .dish__media { min-height: 0; aspect-ratio: 4 / 3.2; }
  .dish__body { overflow: visible; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Без анімацій / знімок ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
html.shot { scroll-behavior: auto !important; }
html.shot *, html.shot *::before, html.shot *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
