/* СТАРТ — стили сайта. Шрифты, отступы и цвета меняются в редакторе (вкладка «Оформление»). */
:root {
  --bg: #f8f7f1; --card: #ffffff; --ink: #14161a; --ink-2: #5b6068; --line: #e4e2d8;
  --lime: #b6f23a; --lime-d: #8fc41c; --lime-h: #c6ff4a;
  --dark: #101214; --dark-2: #1b1e22; --on-dark: #f3f3ee; --on-dark-2: #a9aeb5;
  --radius: 22px; --gap: 18px; --wrapw: 1160px;
  --fs: 17; --h1s: 1; --h2s: 1; --sec-pad: 64; --hero-h: 86; --shade: .8; --strip-t: 36s;
  --font: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-h: var(--font);
  --hh: 68px;
  --shadow: 0 10px 30px -12px rgba(20, 22, 26, .25);
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --lime-d: color-mix(in srgb, var(--lime) 78%, #000);
    --lime-h: color-mix(in srgb, var(--lime) 82%, #fff);
    --dark-2: color-mix(in srgb, var(--dark) 87%, #fff);
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: calc(var(--fs) * 1px); padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
body.lock { overflow: hidden; }
h1, h2, h3, .brand b { font-family: var(--font-h); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime-d); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrapw), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.primary:hover { background: var(--lime-h); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.light { border-color: var(--on-dark); color: var(--on-dark); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* ---------- Шапка и логотип ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 241, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 18px; min-height: var(--hh); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; color: var(--ink); min-width: 0; }
.brand .emb { width: 42px; height: 42px; flex: none; transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.brand:hover .emb { transform: rotate(-12deg) scale(1.08); }
.brand .nm { display: grid; gap: 4px; line-height: 1; }
.brand .wm { height: 17px; width: auto; display: block; }
.brand small { font-size: 11px; color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; }
.lg-bg { fill: var(--ink); }
.lg-lime { stroke: var(--lime); }
.emb { display: block; aspect-ratio: 1 / 1; }
.emb svg { width: 100%; height: 100%; display: block; }
.emb img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.nav a:hover { background: rgba(20, 22, 26, .07); }
.lang { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang a { padding: 6px 12px; font-size: 13px; font-weight: 800; text-decoration: none; letter-spacing: .04em; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.cartbtn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 700; }
.cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; }
@media (min-width: 900px) { .nav { display: flex; } .cartbtn { display: inline-flex; } body { padding-bottom: 0; } .mbar { display: none !important; } }

/* ---------- Главный экран: видео на всю ширину позади текста ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark);
  min-height: min(calc(var(--hero-h) * 1vh), 860px); min-height: min(calc(var(--hero-h) * 1dvh), 860px);
  display: flex; align-items: center; padding: 56px 0 72px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: 0; z-index: -1; opacity: var(--shade); pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 10, 12, .94) 0%, rgba(8, 10, 12, .74) 40%, rgba(8, 10, 12, .26) 74%, rgba(8, 10, 12, .1) 100%),
              linear-gradient(0deg, rgba(8, 10, 12, .7) 0%, rgba(8, 10, 12, 0) 38%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; width: min(var(--wrapw), 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin: 0 0 14px; }
.hero h1 { font-size: calc(clamp(44px, 8.2vw, 90px) * var(--h1s)); line-height: .98; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 900; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero h1 em { font-style: normal; background: var(--lime); color: var(--ink); padding: 0 .12em; border-radius: .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: none; }
.hero p.sub { font-size: clamp(18px, 2.3vw, 22px); color: rgba(243, 243, 238, .9); max-width: 32em; margin: 0 0 24px; text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); margin-bottom: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: #9aa0a6; }
.badge.open i { background: #2fbf4a; box-shadow: 0 0 0 4px rgba(47, 191, 74, .28); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.ql { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(243, 243, 238, .72); margin-right: 4px; }
.qc { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 15px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s; }
.qc:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); transform: translateY(-2px); }

.hero-fx { position: relative; min-height: 400px; perspective: 900px; }
.plq { position: absolute; padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 16px; white-space: nowrap; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 34px -14px rgba(0, 0, 0, .55); animation: bob 6s ease-in-out infinite; }
.plq:nth-child(odd) { background: var(--lime); border-color: var(--lime); color: var(--ink); animation-duration: 5s; }
.plq:nth-child(1) { left: -2%; top: 34%; }
.plq:nth-child(2) { right: -3%; top: 54%; animation-delay: -2s; }
.plq:nth-child(3) { left: 2%; top: 80%; animation-delay: -3.5s; }
.plq:nth-child(4) { right: 6%; top: 92%; animation-delay: -1s; }
.plq:nth-child(5) { left: 30%; top: 4%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 40px) rotate(-1.5deg); } 50% { transform: translate3d(0, -14px, 70px) rotate(1.5deg); } }

/* Монета-логотип: обе грани читаются правильно, слово не зеркалится */
.coin { position: absolute; right: 18%; top: 2%; width: 156px; aspect-ratio: 1; perspective: 800px; animation: coinbob 5s ease-in-out infinite; }
.coin-in { position: absolute; inset: 0; transform-style: preserve-3d; animation: flip 10s cubic-bezier(.65, 0, .25, 1) infinite; }
.face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 22px 30px -8px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 255, 255, .08); background: var(--ink); }
.face.back { transform: rotateY(180deg); }
.face svg, .face img { width: 100%; height: 100%; display: block; object-fit: cover; }
@keyframes flip { 0%, 36% { transform: rotateY(0deg); } 50%, 86% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes coinbob { 0%, 100% { transform: translateY(0) rotateX(6deg); } 50% { transform: translateY(-14px) rotateX(-4deg); } }

/* Анимация приготовления (если нет своего видео) */
.scene { position: absolute; inset: 0; overflow: hidden; background: #101214; }
.scene::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #15171a 0 9px, #1b1e23 9px 18px); }
.scene .glow { position: absolute; right: 2%; top: 4%; width: 62vw; max-width: 880px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 34%, transparent) 0%, transparent 62%); filter: blur(10px); }
.scene .spark { position: absolute; border-radius: 50%; background: var(--lime); opacity: .0; animation: spark linear infinite; }
@keyframes spark { 0% { opacity: 0; transform: translateY(40px) scale(.6); } 20% { opacity: .55; } 100% { opacity: 0; transform: translateY(-160px) scale(1.2); } }
.bowlwrap { position: absolute; right: max(4vw, calc((100% - var(--wrapw)) / 2 + 2%)); bottom: 7%; width: min(36vw, 520px); perspective: 1000px; }
.bowl3d { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; animation: sway 9s ease-in-out infinite; }
.bowl3d svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
@keyframes sway { 0%, 100% { transform: rotateY(-9deg) rotateX(3deg); } 50% { transform: rotateY(9deg) rotateX(-3deg); } }
.ing { transform-box: fill-box; transform-origin: center; animation: drop 9s cubic-bezier(.3, .7, .3, 1) var(--d, 0s) infinite both; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-300px) rotate(-14deg); } 7% { opacity: 1; } 15% { transform: translateY(6px) rotate(1deg); } 19% { transform: translateY(-3px); } 23%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.steam path { transform-box: fill-box; animation: steam 3.4s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.1s; }
.steam path:nth-child(3) { animation-delay: 2.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(16px); } 40% { opacity: .65; } 100% { opacity: 0; transform: translateY(-28px); } }

/* ---------- Бегущая строка ---------- */
.strip { background: var(--lime); color: var(--ink); overflow: hidden; white-space: nowrap; padding: 15px 0; }
.strip .track { display: inline-flex; animation: roll var(--strip-t) linear infinite; }
.strip:hover .track { animation-play-state: paused; }
.strip span { font-size: 22px; font-weight: 900; letter-spacing: .01em; padding-right: 30px; text-transform: uppercase; font-family: var(--font-h); }
.strip span::after { content: "✳"; margin-left: 30px; }
@keyframes roll { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.sec { padding-block: calc(var(--sp, var(--sec-pad)) * 1px); scroll-margin-top: calc(var(--hh) + 4px); }
.sec.dark { background: var(--dark); color: var(--on-dark); }
.sec h2 { font-size: calc(clamp(32px, 6vw, 58px) * var(--h2s)); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 12px; font-weight: 900; }
.sec .lead { color: var(--ink-2); font-size: 19px; max-width: 36em; margin: 0 0 28px; }
.dark .lead { color: var(--on-dark-2); }
.label { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.dark .label { color: var(--lime); }

/* ---------- Меню: быстрый выбор категории и «раздача» карточек ---------- */
.cats { position: sticky; top: var(--hh); z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 2px 14px; margin-bottom: 8px; scrollbar-width: none;
  background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 1 auto; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px 0 9px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-weight: 700; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s, box-shadow .25s, border-color .2s; }
.cat:hover { transform: translateY(-2px); border-color: var(--ink); }
.cat .ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; line-height: 1; background: color-mix(in srgb, var(--lime) 30%, #fff); transition: transform .3s; }
.cat .ct { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.cat[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 22px -12px rgba(0, 0, 0, .5); }
.cat[aria-selected="true"] .ic { background: var(--lime); transform: rotate(-10deg) scale(1.08); }
.cat[aria-selected="true"] .ct { background: var(--lime); color: var(--ink); }

.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); perspective: 1400px; transition: opacity .16s; }
.grid.out { opacity: 0; }
.grid.wait .cellw { opacity: 0; }
.cellw { display: flex; }
.cellw > .dish { flex: 1; width: 100%; }
.grid.go .cellw { animation: deal 1s cubic-bezier(.22, 1, .36, 1) calc(var(--i, 0) * 90ms) both; }
@keyframes deal {
  0% { opacity: 0; transform: translate3d(var(--fx, 0px), 110px, -320px) rotateX(58deg) rotateZ(var(--rz, -6deg)) scale(.7); filter: blur(7px); }
  55% { opacity: 1; filter: blur(0); }
  78% { transform: translate3d(0, -12px, 40px) rotateX(-5deg) rotateZ(0deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
.dish { position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .15s ease-out, box-shadow .25s; will-change: transform; }
.dish:hover { box-shadow: 0 30px 40px -22px rgba(20, 22, 26, .45); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(14px); }
.dish::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .38), transparent 55%); }
.dish:hover::after { opacity: 1; }
.phw { position: relative; overflow: hidden; background: var(--dark-2); }
.grid.go .phw::after { content: ""; position: absolute; inset: 0; background: var(--lime); transform-origin: right center; animation: curtain .9s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * 90ms + .45s) both; z-index: 2; }
@keyframes curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.dish .ph { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; transition: transform .6s; }
.dish:hover .ph { transform: scale(1.06); }
.dish .ph.empty { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #15171a 0 8px, #1c1f24 8px 16px); }
.dish .ph.empty .emb { width: 34%; }
.dish .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish h3 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.dish p { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.dish .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; min-height: 44px; }
.price { font-weight: 900; font-size: 20px; }
.grid.go .price { animation: pop .55s cubic-bezier(.3, 1.8, .5, 1) calc(var(--i, 0) * 90ms + .95s) both; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.price.ask { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.price small { font-weight: 600; font-size: 13px; color: var(--ink-2); }
.add { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--lime); font-weight: 800; white-space: nowrap; flex: none; color: var(--ink); }
.add:hover { background: var(--lime-h); }
.step { display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink); color: #fff; }
.step button { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; border-radius: 50%; }
.step output { min-width: 24px; text-align: center; font-weight: 800; }
.note { color: var(--ink-2); font-size: 14px; margin-top: 22px; }

/* ---------- Ланч и кофе ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.bigprice { font-size: clamp(64px, 14vw, 130px); font-weight: 900; line-height: .9; letter-spacing: -.04em; color: var(--lime); font-family: var(--font-h);
  text-shadow: 1px 1px 0 var(--lime-d), 2px 2px 0 var(--lime-d), 3px 3px 0 var(--lime-d), 4px 4px 0 var(--lime-d), 5px 5px 0 var(--lime-d), 6px 6px 0 var(--lime-d), 8px 14px 24px rgba(0, 0, 0, .45); }
.bigprice small { font-size: .32em; letter-spacing: 0; text-shadow: none; }
.dark .bigprice small { color: var(--on-dark-2); }
.pnote { margin: 14px 0 0; color: var(--on-dark-2); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.list li { padding-left: 26px; position: relative; }
.list li::before { content: "✳"; position: absolute; left: 0; color: var(--lime); }
.coffee .bigprice { color: var(--ink); text-shadow: 1px 1px 0 #3b3f46, 2px 2px 0 #3b3f46, 3px 3px 0 #3b3f46, 4px 4px 0 #3b3f46, 5px 5px 0 var(--ink), 6px 6px 0 var(--ink), 8px 14px 24px rgba(0, 0, 0, .35); }
.coffee .bigprice small { color: var(--ink-2); }
.coffee .bigprice span { background: var(--lime); border-radius: .14em; padding: 0 .1em; text-shadow: none; }
.milks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* ---------- Доставка ---------- */
.deliv { display: grid; gap: 22px; background: var(--lime); color: var(--ink); border-radius: 30px; padding: 34px 28px; }
.deliv h2 { margin-bottom: 8px; }
.deliv p { margin: 0 0 4px; font-size: 19px; max-width: 34em; }
.soon { display: inline-block; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.deliv .actions { align-self: end; }

/* ---------- Контакты ---------- */
.cards { display: grid; gap: 16px; }
.cc { background: var(--dark-2); border-radius: var(--radius); padding: 24px; }
.cc h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); font-family: var(--font); }
.cc .big { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 6px; }
.cc a.big { text-decoration: none; display: block; }
.cc p { margin: 0 0 14px; color: var(--on-dark-2); }
.cc .actions { gap: 10px; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.today td { color: var(--lime); }

/* ---------- Подвал ---------- */
.foot { padding: 34px 0 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.foot small { color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { font-weight: 600; font-size: 15px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* ---------- Нижняя панель на телефоне ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(16, 18, 20, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.mbar a, .mbar button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; border: 0; background: transparent; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.mbar .call { background: var(--lime); color: var(--ink); }

/* ---------- Список заказа ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 12, 14, .55); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 100; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4); visibility: hidden; }
.drawer.on { transform: none; visibility: visible; }
.dr-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.xbtn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 22px; line-height: 1; }
.dr-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.dr-body .hint { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.oi { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.oi b { display: block; line-height: 1.25; }
.oi small { color: var(--ink-2); }
.oi .step { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.oi .step button { color: var(--ink); }
.dr-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: #fff; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 900; font-size: 20px; }
.total small { font-weight: 500; font-size: 13px; color: var(--ink-2); display: block; }
.dr-foot .btn { width: 100%; }
.empty { text-align: center; color: var(--ink-2); padding: 50px 10px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 120; }
.toast.on { opacity: 1; transform: translateX(-50%); }

/* ---------- Появление блоков при прокрутке ---------- */
.rv { opacity: 0; transform: perspective(1000px) rotateX(16deg) translateY(40px) scale(.98); transform-origin: 50% 100%; transition: opacity .7s ease, transform .85s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Компьютер ---------- */
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .deliv { grid-template-columns: 1.4fr 1fr; padding: 48px; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 64px 0 80px; }
}
@media (hover: none) {
  .dish:hover { transform: none; box-shadow: none; }
  .dish:hover::after { opacity: 0; }
  .dish:hover .ph { transform: none; }
  .btn:hover, .add:hover, .cat:hover, .qc:hover { transform: none; }
}

/* ---------- Планшет ---------- */
@media (min-width: 641px) and (max-width: 899px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-fx { min-height: 320px; }
  .bowlwrap { width: min(52vw, 440px); }
  .plq:nth-child(1) { left: 2%; top: 46%; }
  .plq:nth-child(2) { right: 3%; top: 60%; }
  .plq:nth-child(3) { left: 4%; top: 84%; }
  .plq:nth-child(4) { right: 6%; top: 94%; }
  .plq:nth-child(5) { left: 6%; top: 10%; }
  .coin { right: 5%; top: 0; width: 120px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Телефон ---------- */
@media (max-width: 640px) {
  :root { --hh: 58px; }
  body { font-size: calc(var(--fs) * 1px); }
  .wrap, .hero-in { width: calc(100% - 28px); }
  .hdr-in { gap: 10px; }
  .brand { gap: 9px; min-height: 44px; align-items: center; }
  .brand .emb { width: 38px; height: 38px; }
  .brand .wm { height: 15px; }
  .brand small { font-size: 10px; }
  .lang a { padding: 12px 14px; }
  .btn.sm { min-height: 44px; }
  .foot nav a { display: inline-block; padding: 11px 0; }
  .cc a.big { padding: 6px 0; }

  /* главный экран: видео сверху, текст внизу на затемнении */
  .hero { align-items: flex-end; min-height: min(calc(var(--hero-h) * 1vh), 700px); min-height: min(calc(var(--hero-h) * 1dvh), 700px); padding: 90px 0 26px; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 10, 12, .38) 0%, rgba(8, 10, 12, .66) 28%, rgba(8, 10, 12, .92) 50%, rgba(8, 10, 12, .98) 100%); }
  .quick { flex-wrap: wrap; margin: 16px 0 0; padding: 0; gap: 8px; }
  .quick .ql { flex: 1 0 100%; margin: 0 0 2px; }
  .qc { min-height: 44px; padding: 0 14px 0 10px; font-size: 15px; flex: 0 1 auto; max-width: 100%; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-text, .hero-fx { min-width: 0; max-width: 100%; }
  .hero h1, .hero p.sub, .eyebrow { overflow-wrap: anywhere; }
  .hero-fx { position: static; min-height: 0; perspective: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .plq { position: static; animation: none; font-size: 14px; padding: 9px 14px; box-shadow: none; }
  .coin { position: absolute; right: 16px; top: calc(var(--hh) + 18px); width: 86px; }
  .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .hero h1 { font-size: calc(clamp(38px, 12.2vw, 54px) * var(--h1s)); margin-bottom: 12px; }
  .hero p.sub { font-size: 17px; margin-bottom: 16px; }
  .badge { margin-bottom: 14px; }
  .hero .actions .btn { flex: 1 1 100%; min-height: 52px; }
  .hero .actions .btn:not(.primary) { display: none; }
  .bowlwrap { right: 50%; transform: translateX(50%); top: 9%; bottom: auto; width: min(60vw, 270px); }
  .scene .glow { width: 120vw; right: -10vw; top: 0; }
  .strip { padding: 12px 0; }
  .strip span { font-size: 17px; padding-right: 22px; }
  .strip span::after { margin-left: 22px; }

  .sec { padding-block: calc(var(--sp, var(--sec-pad)) * .68px); scroll-margin-top: 112px; }
  .sec .lead { font-size: 17px; margin-bottom: 20px; }

  /* категории: прокрутка пальцем, прилипают под шапкой */
  .cats { position: static; padding: 8px 0 12px; gap: 8px; }
  .cat { min-height: 48px; padding: 0 12px 0 7px; font-size: 15px; gap: 8px; flex: 0 1 auto; }
  .cat .ic { width: 32px; height: 32px; font-size: 18px; }

  /* меню: компактные карточки «фото слева» */
  .grid { grid-template-columns: 1fr; gap: calc(var(--gap) * .7); perspective: none; }
  .dish { display: grid; grid-template-columns: 108px 1fr; border-radius: 18px; }
  .phw { height: 100%; }
  .dish .ph { aspect-ratio: auto; height: 100%; min-height: 128px; }
  .dish .ph.empty .emb { width: 50%; }
  .dish .body { padding: 12px 14px; gap: 4px; min-width: 0; }
  .dish h3 { font-size: 17px; }
  .dish p { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: none; }
  .dish .row { margin-top: auto; padding-top: 6px; }
  .price { font-size: 18px; }
  .add { padding: 0 14px; }
  @keyframes deal {
    0% { opacity: 0; transform: translate3d(var(--fx, 0px), 70px, 0) scale(.86); filter: blur(5px); }
    60% { opacity: 1; filter: blur(0); }
    80% { transform: translate3d(0, -6px, 0) scale(1.01); }
    100% { opacity: 1; transform: none; }
  }

  .split { gap: 18px; }
  .coffee .split > div:first-child { order: 2; }
  .bigprice { font-size: clamp(60px, 22vw, 96px); }
  .btn { width: 100%; }
  .btn.sm { width: auto; }
  .chip { font-size: 13px; }
  .deliv { padding: 26px 20px; border-radius: 24px; }
  .deliv p { font-size: 17px; }
  .deliv .actions .btn { flex: 1 1 100%; }
  .cc { padding: 20px; }
  .cc .big { font-size: 22px; }
  .cc .actions .btn { flex: 1 1 auto; }
  .foot { padding-bottom: 28px; }
  .foot-in { flex-direction: column; align-items: flex-start; }

  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 26px 26px 0 0; transform: translateY(105%); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .45); }
  .drawer.on { transform: none; }
  .drawer::before { content: ""; align-self: center; width: 44px; height: 5px; border-radius: 3px; background: #cfcdc0; margin: 9px 0 0; flex: none; }
  .dr-head { padding: 8px 16px 12px; }
  .dr-body { padding: 14px 16px; }
  .dr-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .dr-foot .btn { min-height: 50px; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); text-align: center; }
}
/* ---------- Настройки телефона из редактора ---------- */
@media (max-width: 640px) {
  .hero-bg video { object-position: var(--vfx, 50%) var(--vfy, 50%); }
  .hero.m-hide-plq .plq { display: none; }
  .hero.m-hide-coin .coin { display: none; }
  .hero.m-hide-quick .quick { display: none; }
  .hero.m-hide-badge .badge { display: none; }
  .hero.m-hide-sub p.sub { display: none; }
  .hero.m-show-btn2 .actions .btn:not(.primary) { display: inline-flex; }
  .hero.m-hide-plq .hero-fx { margin-top: 0; }
  .strip.m-hide { display: none; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 35px; }
  .dish { grid-template-columns: 92px 1fr; }
  .brand small { display: none; }
}

/* ---------- Телефон на боку ---------- */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 940px) {
  .hero { min-height: 0; padding: 20px 0 30px; align-items: center; }
  .hero-in { grid-template-columns: 1.2fr 1fr; gap: 20px; }
  .hero-shade { background: linear-gradient(90deg, rgba(8, 10, 12, .92), rgba(8, 10, 12, .5)); }
  .hero-fx { position: relative; min-height: 220px; display: block; margin-top: 0; }
  .plq { position: absolute; }
  .plq:nth-child(n+3) { display: none; }
  .coin { right: 12%; top: 0; width: 100px; }
  .hero .actions .btn:not(.primary) { display: inline-flex; flex: none; }
  .hero .actions .btn { flex: none; width: auto; }
  .hero h1 { font-size: clamp(32px, 7vw, 48px); }
  .bowlwrap { right: 6%; bottom: 8%; top: auto; transform: none; width: min(34vw, 260px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cats { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .grid.wait .cellw { opacity: 1; }
  .grid.go .cellw, .grid.go .price { animation: none; }
  .grid.go .phw::after { display: none; }
  .coin, .coin-in, .plq, .bowl3d, .ing, .steam path, .strip .track, .scene .spark { animation: none !important; }
  .ing { opacity: 1; }
  .strip .track { transform: none; }
}

/* ---------- Сенсорные экраны (планшеты тоже): крупные зоны нажатия ---------- */
@media (pointer: coarse) {
  .lang a { padding: 12px 14px; }
  .btn.sm { min-height: 44px; }
  .foot nav a { display: inline-block; padding: 11px 0; }
  .cc a.big { padding: 6px 0; }
}
