/* Суші Way — «道 / шлях». Ніч, сланець, червона печатка. */

@font-face { font-family: 'Dela'; src: url(fonts/dela-gothic-one.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ink: #0b0a09;
  --ink-2: #131110;
  --ink-3: #1c1916;
  --ink-4: #27231f;
  --line: rgba(243, 237, 228, .09);
  --line-2: rgba(243, 237, 228, .16);
  --paper: #f3ede4;
  --paper-2: #d9d1c6;
  --mute: #9a9087;
  --red: #e3262c;
  --red-hi: #ff4148;
  --red-deep: #9e1318;
  --gold: #e3aa5c;
  --display: 'Dela', 'Arial Black', Impact, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --radius: 22px;
  --top-h: 60px;
  --cats-h: 112px;
}
@media (min-width: 760px) { :root { --gutter: 32px; --top-h: 72px; --cats-h: 68px; } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--cats-h)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ——— seal (ханко) ——— */
.seal {
  --s: 44px;
  display: inline-grid; place-items: center;
  width: var(--s); height: var(--s);
  font: 400 calc(var(--s) * .62)/1 var(--display);
  color: #fff8f2; background: var(--red);
  border-radius: calc(var(--s) * .22);
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 calc(var(--s) * .06) rgba(255, 255, 255, .22);
  flex: none;
  /* rubber-stamp texture: light speckles instead of a mask, so the glyph stays crisp */
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.14) 0 1px, transparent 1.5px), radial-gradient(circle at 70% 80%, rgba(0,0,0,.18) 0 1px, transparent 1.5px);
  background-size: 7px 7px, 9px 9px;
}
.seal--sm { --s: 30px; }
.seal--xl { --s: 92px; }

/* ——— buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--body); letter-spacing: .01em;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(227, 38, 44, .8); }
.btn--red:hover { background: var(--red-hi); }
.btn--red:hover svg { transform: translateX(3px); }
.btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2); background: rgba(11, 10, 9, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn--wide { flex: 1; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ——— header ——— */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--top-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  transition: background-color .4s, backdrop-filter .4s, box-shadow .4s;
}
.top.is-solid { background: rgba(11, 10, 9, .78); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__word { font: 400 19px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.brand__word b { font-weight: 400; color: var(--red); margin-left: .18em; }
.top__nav { display: none; gap: 30px; font-weight: 500; font-size: 15px; }
.top__nav a { position: relative; color: var(--paper-2); transition: color .2s; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top__nav a:hover { color: var(--paper); }
.top__nav a:hover::after { transform: scaleX(1); }
.top__phone { display: none; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.top__phone svg { color: var(--red); width: 18px; height: 18px; }
.top__cart { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s; }
.top__cart:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.top__cart svg { width: 21px; height: 21px; }
.top__cart-n { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); font: 700 11px/20px var(--body); text-align: center; }
.top__cart-n.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
@media (min-width: 900px) { .top__nav { display: flex; } .top__phone { display: flex; } }

/* ——— hero ——— */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--top-h) + 28px) var(--gutter) 40px;
  overflow: hidden;
}
.hero__photo { position: absolute; inset: auto 0 0; z-index: -2; height: 62%; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transform: scale(1.08); animation: heroZoom 2.4s var(--ease-out) both; transition: translate 1.2s var(--ease-out); }
.hero::before { /* photo fades up into ink */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--ink) 34%, rgba(11, 10, 9, .55) 55%, rgba(11, 10, 9, .1) 72%, rgba(11, 10, 9, .85) 100%),
    radial-gradient(80% 50% at 80% 10%, rgba(227, 38, 44, .16), transparent 70%);
}
@keyframes heroZoom { from { transform: scale(1.22); opacity: 0; } to { transform: scale(1.08); opacity: 1; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
.dot.is-closed { background: var(--mute); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero__title {
  margin: 0;
  font: 400 clamp(84px, 27vw, 230px)/.84 var(--display);
  letter-spacing: -.005em; text-transform: uppercase;
}
.hero__line { display: block; animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--d) * .12s + .1s); }
.hero__line:nth-child(2) { color: var(--red); display: flex; align-items: flex-start; gap: .08em; }
@keyframes rise { from { transform: translateY(60%); opacity: 0; clip-path: inset(-30% -60% 100% -10%); } to { transform: none; opacity: 1; clip-path: inset(-30% -60% -30% -10%); } }
.seal--hero { --s: clamp(46px, 13vw, 104px); margin-top: .06em; animation: stamp .7s .75s var(--ease-out) both; }
@keyframes stamp { 0% { transform: scale(2.4) rotate(14deg); opacity: 0; } 60% { transform: scale(.92) rotate(-8deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); } }
.hero__lead { max-width: 30ch; margin: 22px 0 0; font-size: clamp(17px, 4.6vw, 21px); line-height: 1.45; color: var(--paper-2); animation: fade 1s .45s both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: fade 1s .6s both; }
.hero__facts { display: flex; gap: 26px; margin: auto 0 0; padding-top: 36px; animation: fade 1s .8s both; }
.hero__facts div { min-width: 0; }
.hero__facts dt { font: 400 26px/1 var(--display); }
.hero__facts dd { margin: 6px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--paper-2); max-width: 12ch; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__float, .hero__vert { display: none; }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 36px; margin-left: -11px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--paper); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (min-width: 900px) {
  .hero { padding-top: calc(var(--top-h) + 6vh); padding-bottom: 7vh; justify-content: center; }
  .hero__photo { inset: 0 0 0 auto; width: 54%; height: 100%; }
  .hero__photo img { object-position: 30% 60%; }
  .hero::before {
    background:
      linear-gradient(90deg, var(--ink) 44%, rgba(11, 10, 9, .6) 60%, rgba(11, 10, 9, 0) 78%),
      linear-gradient(0deg, var(--ink) 0%, transparent 22%),
      radial-gradient(50% 60% at 20% 30%, rgba(227, 38, 44, .12), transparent 70%);
  }
  .hero__copy { max-width: 760px; }
  .hero__title { font-size: clamp(120px, 15vw, 250px); }
  .hero__facts { margin-top: 0; padding-top: 7vh; gap: 48px; }
  .hero__facts dt { font-size: 34px; }
  .hero__float {
    display: block; position: absolute; z-index: 1;
    right: 30%; bottom: 9vh; width: min(28vw, 440px);
    filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 60px rgba(227, 38, 44, .15));
    transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--pr, -8deg));
    transition: transform .9s var(--ease-out);
    animation: floatIn 1.4s .5s var(--ease-out) both;
  }
  @keyframes floatIn { from { opacity: 0; translate: 0 80px; scale: .8; } to { opacity: 1; translate: 0 0; scale: 1; } }
  .hero__vert {
    display: block; position: absolute; right: calc(var(--gutter) - 6px); top: calc(var(--top-h) + 40px);
    writing-mode: vertical-rl; margin: 0;
    font: 400 15px/1 var(--display); letter-spacing: .5em; color: rgba(243, 237, 228, .55);
  }
  .hero__scroll { display: block; }
}

/* ——— ticker ——— */
.ticker { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: var(--ink); }
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 400 clamp(22px, 5vw, 40px)/1 var(--display); text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px rgba(243, 237, 228, .5); }
.ticker__track span b { color: var(--red); -webkit-text-stroke: 0; font-weight: 400; }
.ticker__track span i { font-style: normal; color: var(--paper); -webkit-text-stroke: 0; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ——— section heads ——— */
.sec-head { position: relative; padding: 0 var(--gutter); margin-bottom: 28px; }
.sec-head__kanji {
  position: absolute; z-index: -1; left: calc(var(--gutter) - .06em); top: -.32em; margin: 0;
  font: 400 clamp(130px, 34vw, 260px)/1 var(--display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(227, 38, 44, .28);
  pointer-events: none; user-select: none;
}
.sec-head__title { margin: 0; font: 400 clamp(40px, 11vw, 92px)/.92 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.sec-head__sub { margin: 14px 0 0; max-width: 46ch; color: var(--paper-2); }
.sec-head__sub a { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); font-weight: 600; }
.sec-head__sub a:hover { color: var(--red-hi); }

/* ——— hits rail ——— */
.hits { position: relative; isolation: isolate; padding: 88px 0 72px; }
.hits__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 330px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 18px var(--gutter) 24px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.hits__rail::-webkit-scrollbar { display: none; }
.hit {
  --tone: #c9573a;
  position: relative; isolation: isolate; scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 440px; padding: 20px;
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(90% 60% at 50% 38%, color-mix(in srgb, var(--tone) 46%, transparent), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left; cursor: pointer;
  transition: transform .5s var(--ease);
}
.hit:hover { transform: translateY(-6px); }
.hit__no { position: absolute; z-index: -1; right: 10px; top: -4px; font: 400 150px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(243, 237, 228, .14); }
.hit__tag { align-self: flex-start; padding: 6px 11px; border-radius: 999px; background: rgba(11, 10, 9, .55); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--paper-2); }
.hit__img { flex: 1; display: grid; place-items: center; margin: 6px -6px; min-height: 210px; }
.hit__img img { width: 100%; max-height: 240px; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .55)); transform: rotate(-4deg); transition: transform .7s var(--ease); }
.hit:hover .hit__img img { transform: rotate(3deg) scale(1.06); }
.hit__name { margin: 0; font: 400 26px/1.02 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.hit__desc { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.4; color: var(--paper-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hit__foot { display: flex; align-items: center; justify-content: space-between; }

/* ——— price + add ——— */
.price { font: 400 22px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.price small { font: 500 12px/1 var(--body); color: var(--mute); margin-left: 6px; letter-spacing: 0; }
.add {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(227, 38, 44, .9);
  transition: transform .3s var(--ease), background-color .2s;
}
.add svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.add:hover { background: var(--red-hi); }
.add:hover svg { transform: rotate(90deg); }
.add:active { transform: scale(.88); }
.add[data-n]::after {
  content: attr(data-n); position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--paper); color: var(--ink); font: 800 11px/20px var(--body);
}

/* ——— dragons ——— */
.dragons { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0 88px; }
.dragons__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.1) contrast(1.05); }
.dragons::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink), rgba(11, 10, 9, .55) 30%, rgba(11, 10, 9, .7) 70%, var(--ink)); }
.dragons__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 var(--gutter); }
.dragon {
  --c: var(--red);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 14px 16px; border-radius: 24px; text-align: left;
  background: rgba(19, 17, 16, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; transition: transform .45s var(--ease), box-shadow .3s;
}
.dragon:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--c); }
.dragon::before { content: ''; position: absolute; inset: auto -20% 30% -20%; height: 60%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 55%, transparent), transparent); opacity: .7; }
.dragon__img { height: 120px; display: grid; place-items: center; }
.dragon__img img { max-height: 120px; width: auto; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .5)); transition: transform .6s var(--ease); }
.dragon:hover .dragon__img img { transform: rotate(-6deg) scale(1.06); }
.dragon__chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--paper-2); }
.dragon__chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }
.dragon__name { font: 400 19px/1.05 var(--display); text-transform: uppercase; }
.dragon__row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.dragon__row .price { font-size: 18px; }
.dragon .add { width: 38px; height: 38px; }
.dragons__sets { display: grid; gap: 12px; padding: 14px var(--gutter) 0; }
.dset {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px;
  padding: 18px 18px 18px 20px; border-radius: 24px;
  background: linear-gradient(100deg, rgba(227, 38, 44, .22), rgba(19, 17, 16, .8) 60%);
  box-shadow: inset 0 0 0 1px rgba(227, 38, 44, .35);
  text-align: left; cursor: pointer;
}
.dset__name { font: 400 20px/1.05 var(--display); text-transform: uppercase; }
.dset__desc { grid-column: 1; font-size: 13px; color: var(--paper-2); }
.dset__right { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 12px; }
@media (min-width: 760px) {
  .dragons__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .dragon__img { height: 170px; }
  .dragon__img img { max-height: 170px; }
  .dragons__sets { grid-template-columns: 1fr 1fr; }
}

/* ——— category bar ——— */
.cats {
  position: sticky; top: var(--top-h); z-index: 40;
  background: rgba(11, 10, 9, .86); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-block: 1px solid var(--line);
}
.cats__inner { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 10px; }
.cats__search { display: flex; align-items: center; gap: 10px; height: 44px; margin: 0 var(--gutter); padding: 0 16px; border-radius: 999px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.cats__search:focus-within { box-shadow: inset 0 0 0 1.5px var(--red); }
.cats__search svg { width: 18px; height: 18px; color: var(--mute); }
.cats__search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; }
.cats__search input::placeholder { color: var(--mute); }
.cats__list { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter); scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.cats__list::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.cat b { font: 400 13px/1 var(--display); color: var(--red); transition: color .25s; }
.cat:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.cat.is-active { background: var(--paper); color: var(--ink); box-shadow: none; }
.cat.is-active b { color: var(--red); }
.cats__progress { height: 2px; background: transparent; }
.cats__progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
@media (min-width: 760px) {
  .cats__inner { flex-direction: row; align-items: center; padding: 12px 0; }
  .cats__search { width: 250px; flex: none; margin-right: 0; }
  .cats__list { padding-left: 12px; }
}

/* ——— menu ——— */
.menu { padding: 8px 0 40px; }
.menu__empty { padding: 40px var(--gutter) 80px; color: var(--paper-2); text-align: center; }
.cat-sec { padding: 48px 0 8px; }
.cat-sec[hidden] { display: none; }
.cat-sec__head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--gutter); margin-bottom: 8px; }
.cat-sec__no { font: 400 14px/1 var(--display); color: var(--red); }
.cat-sec__title { margin: 0; font: 400 clamp(30px, 8vw, 56px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.cat-sec__kanji { margin-left: auto; font: 400 clamp(30px, 8vw, 56px)/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px rgba(243, 237, 228, .22); }
.cat-sec__note { display: flex; gap: 10px; align-items: flex-start; margin: 10px var(--gutter) 6px; padding: 12px 14px; border-radius: 16px; background: rgba(227, 38, 44, .1); box-shadow: inset 0 0 0 1px rgba(227, 38, 44, .3); font-size: 14px; color: var(--paper-2); }
.cat-sec__note b { color: var(--paper); font-weight: 600; }
.grid { display: grid; gap: 0; padding: 0 var(--gutter); }

/* mobile: row card */
.card {
  --tone: #8a6a50;
  position: relative;
  display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer;
}
.card__img {
  position: relative; isolation: isolate;
  width: 116px; height: 104px; display: grid; place-items: center;
}
.card__img::before { content: ''; position: absolute; inset: 6% 2%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 60%, transparent), transparent); opacity: .75; transition: opacity .4s, transform .6s var(--ease); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: rotate(-5deg) scale(1.07); }
.card:hover .card__img::before { opacity: 1; transform: scale(1.12); }
.card__ph { font: 400 50px/1 var(--display); color: transparent; -webkit-text-stroke: 1.4px rgba(227, 38, 44, .65); }
.card__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card__name { margin: 0; font-weight: 600; font-size: 16.5px; line-height: 1.2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card__name .hot { color: var(--red-hi); width: 15px; height: 15px; }
.card__desc { margin: 0; font-size: 13px; line-height: 1.38; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.card__foot .price { font-size: 19px; }
.card__badge { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.card__badge--red { background: var(--red); color: #fff; }

@media (min-width: 760px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-top: 24px; }
  .card {
    grid-template-columns: 1fr; align-items: stretch; gap: 0;
    padding: 0 18px 18px; margin-top: 46px;
    border: 0; border-radius: var(--radius);
    background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform .5s var(--ease), box-shadow .3s;
  }
  .card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 50px -30px rgba(0, 0, 0, .9); }
  .card__img { width: auto; height: 170px; margin: -46px -6px 6px; }
  .card__ph { font-size: 92px; }
  .card__name { font-size: 17px; }
  .card__body { flex: 1; }
  .card__foot { margin-top: auto; padding-top: 12px; }
}

/* ——— gallery ——— */
.gallery { padding: 72px 0 40px; position: relative; isolation: isolate; }
.gallery__rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 300px); gap: 10px; overflow-x: auto; padding: 8px var(--gutter) 16px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.gallery__rail::-webkit-scrollbar { display: none; }
.gallery__rail a { scroll-snap-align: start; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.gallery__rail a:nth-child(even) { transform: translateY(26px); }
.gallery__rail img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.92); }
.gallery__rail a:hover img { transform: scale(1.06); filter: saturate(1.1); }

/* ——— rail controls (mouse only) ——— */
.rail-nav { display: none; }
@media (min-width: 760px) and (hover: hover) {
  .hits__rail, .gallery__rail { cursor: grab; }
  .hits__rail.is-drag, .gallery__rail.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
  .hits__rail.is-drag *, .gallery__rail.is-drag * { pointer-events: none; }
  .hits__rail img, .gallery__rail img { -webkit-user-drag: none; }
  .rail-nav { display: flex; gap: 8px; position: absolute; right: var(--gutter); top: 96px; z-index: 2; }
  .gallery .rail-nav { top: 84px; }
  .rail-nav button {
    width: 46px; height: 46px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--paper);
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer;
    transition: background .25s, color .25s, opacity .25s;
  }
  .rail-nav button:hover:not(:disabled) { background: var(--red); color: #fff; }
  .rail-nav button:disabled { opacity: .3; cursor: default; }
}

/* ——— footer ——— */
.foot { padding: 70px var(--gutter) calc(120px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; }
.foot__grid { display: grid; gap: 30px; }
.foot h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.foot__big { display: block; font: 400 clamp(26px, 7vw, 36px)/1.05 var(--display); transition: color .2s; }
.foot__big:hover { color: var(--red-hi); }
.foot__col p { margin: 10px 0 0; color: var(--paper-2); font-size: 14px; max-width: 34ch; }
.foot__map { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--paper-2); font-size: 14.5px; }
.foot__map svg { color: var(--red); }
.foot__map:hover { color: var(--paper); }
.foot__word { margin: 60px 0 0; font: 400 clamp(64px, 19vw, 300px)/.8 var(--display); text-transform: uppercase; letter-spacing: -.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(243, 237, 228, .16); }
.foot__note { margin: 26px 0 0; font-size: 13px; color: var(--mute); }
@media (min-width: 760px) { .foot__grid { grid-template-columns: repeat(3, 1fr); } .foot { padding-bottom: 60px; } }

/* ——— floating cart bar ——— */
.bar {
  position: fixed; z-index: 60; left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 22px 0 9px; border-radius: 999px;
  background: var(--red); color: #fff;
  box-shadow: 0 18px 40px -12px rgba(227, 38, 44, .75), 0 6px 18px rgba(0, 0, 0, .45);
  animation: barIn .5s var(--ease-out);
}
.bar[hidden] { display: none; }
@keyframes barIn { from { transform: translateY(140%); } }
.bar__n { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 22px; background: rgba(0, 0, 0, .22); font: 400 17px/1 var(--display); }
.bar__label { font-weight: 600; font-size: 16px; }
.bar__sum { margin-left: auto; font: 400 20px/1 var(--display); }
.bar.bump { animation: barBump .45s var(--ease); }
@keyframes barBump { 40% { transform: scale(1.04); } }
@media (min-width: 900px) { .bar { left: auto; right: 32px; width: 340px; } }

/* ——— dialogs ——— */
.sheet { padding: 0; border: 0; background: none; color: inherit; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.sheet::backdrop { background: rgba(5, 4, 4, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeBg .35s both; }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
@keyframes fadeBg { from { opacity: 0; } }
.sheet__panel {
  position: relative; width: 100%; max-height: 94svh; overflow: auto; overscroll-behavior: contain;
  background: var(--ink-2); border-radius: 28px 28px 0 0;
  box-shadow: 0 -1px 0 var(--line-2);
  animation: up .6s cubic-bezier(.22, 1, .36, 1) both;
}
.sheet.is-closing .sheet__panel { animation: down .28s ease-in both; }
.sheet.is-closing::backdrop { animation: fadeBg .28s reverse both; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
.sheet__close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 10, 9, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-2); }
.sheet__close svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .sheet[open] { align-items: center; }
  .sheet__panel { width: min(860px, 92vw); border-radius: 32px; animation: pop .45s var(--ease-out) both; }
  .sheet.is-closing .sheet__panel { animation: pop .25s reverse ease-in both; }
  @keyframes pop { from { transform: translateY(30px) scale(.96); opacity: 0; } }
  .sheet--drawer[open] { justify-content: flex-end; align-items: stretch; }
  .sheet--drawer .sheet__panel { width: 480px; max-height: none; height: 100%; border-radius: 0; animation: slide .45s var(--ease-out) both; }
  .sheet--drawer.is-closing .sheet__panel { animation: slide .28s reverse ease-in both; }
  @keyframes slide { from { transform: translateX(100%); } }
}

/* item sheet */
.item__stage {
  --tone: #8a6a50;
  position: relative; isolation: isolate; overflow: hidden;
  height: min(46svh, 360px); display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 55%, color-mix(in srgb, var(--tone) 50%, transparent), transparent 75%), var(--ink-3);
}
.item__stage img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6)); animation: itemIn 1s .25s cubic-bezier(.2, .7, .2, 1) both, bob 9s 1.4s ease-in-out infinite; }
@keyframes itemIn { from { transform: scale(.9); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-4px); } }
.item__kanji { position: absolute; z-index: -1; right: -.05em; bottom: -.2em; font: 400 240px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(243, 237, 228, .1); }
.item__stage .card__ph { font-size: 140px; }
.item__body { padding: 22px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.item__cat { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red-hi); }
.item__name { margin: 0; font: 400 clamp(30px, 8vw, 44px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.item__desc { margin: 12px 0 0; color: var(--paper-2); font-size: 15px; }
.item__desc:empty { display: none; }
.item__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.item__opts:empty { display: none; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .2s; }
.opt span small { color: var(--mute); font-weight: 500; }
.opt input:checked + span { background: var(--paper); color: var(--ink); box-shadow: none; }
.opt input:checked + span small { color: var(--ink); opacity: .6; }
.opt input:focus-visible + span { outline: 2px solid var(--red-hi); outline-offset: 2px; }
.item__buy { display: flex; gap: 10px; margin-top: 22px; }
.item__meta { margin: 14px 0 0; font-size: 13px; color: var(--mute); }
@media (min-width: 900px) {
  .item { display: grid; grid-template-columns: 1.05fr 1fr; }
  .item__stage { height: auto; min-height: 480px; }
  .item__body { padding: 44px 40px 36px; display: flex; flex-direction: column; justify-content: center; }
}

/* stepper */
.step { display: inline-flex; align-items: center; height: 52px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.step button { width: 46px; height: 100%; display: grid; place-items: center; border-radius: 999px; transition: background-color .2s; }
.step button:hover { background: var(--ink-4); }
.step button svg { width: 16px; height: 16px; }
.step output { min-width: 26px; text-align: center; font: 400 17px/1 var(--display); }
.step--sm { height: 40px; }
.step--sm button { width: 38px; }

/* cart */
.cart { display: flex; flex-direction: column; }
@media (max-width: 899px) { .cart { min-height: 70svh; } }
.cart__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter) 14px; background: var(--ink-2); }
.cart__head h3 { margin: 0; font: 400 30px/1 var(--display); text-transform: uppercase; }
.cart__head .sheet__close { position: static; }
.cart__view { flex: 1; padding: 0 var(--gutter); }
.cart__list { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: fade .4s var(--ease-out); }
.line__img { position: relative; width: 64px; height: 56px; display: grid; place-items: center; }
.line__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.line__img .card__ph { font-size: 32px; }
.line__name { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.25; }
.line__opt { display: block; color: var(--mute); font-size: 12.5px; font-weight: 500; }
.line__price { margin-top: 4px; font: 400 15px/1 var(--display); }
.line .step { height: 38px; }
.line .step button { width: 34px; }
.line .step output { min-width: 20px; font-size: 14px; }
.cart__empty { display: grid; justify-items: center; gap: 14px; padding: 40px 0; text-align: center; color: var(--paper-2); }
.cart__empty p { margin: 0; }
.cart__upsell:empty { display: none; }
.cart__upsell { padding: 22px 0 6px; }
.cart__upsell h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ups { display: flex; gap: 8px; flex-wrap: wrap; }
.ups button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 500; transition: box-shadow .2s, background-color .2s; }
.ups button:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.ups button svg { width: 14px; height: 14px; color: var(--red-hi); }
.ups button small { color: var(--mute); }
.cart__foot { position: sticky; bottom: 0; padding: 14px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(19, 17, 16, 0), var(--ink-2) 18px); }
.cart__sum { margin: 0; }
.cart__sum div { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.cart__sum dt { color: var(--paper-2); font-size: 14px; }
.cart__sum dd { margin: 0; font: 400 16px/1 var(--display); }
.cart__sum [data-discount-row] dd { color: #57e39a; }
.cart__total dt { color: var(--paper); font-weight: 600; font-size: 16px; }
.cart__total dd { font-size: 28px; }
.cart__hint { margin: 6px 0 0; font-size: 12.5px; color: var(--mute); }
.cart__hint:empty { display: none; }
.cart__actions { display: flex; gap: 10px; margin-top: 12px; }

/* checkout form */
.checkout { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: var(--ink-3); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 44px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--paper-2); cursor: pointer; transition: all .25s var(--ease); }
.seg input:checked + span { background: var(--paper); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--red-hi); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border: 0; border-radius: 15px;
  background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); outline: none;
  font-size: 16px; transition: box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px var(--paper); }
.field input::placeholder, .field textarea::placeholder { color: #6e665e; }
.field.is-bad input { box-shadow: inset 0 0 0 1.5px var(--red-hi); }
.field-row--sticks { align-items: end; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; color: var(--paper-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.points { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.points label { position: relative; }
.points input { position: absolute; opacity: 0; }
.points span { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.points span small { color: var(--mute); font-size: 13px; }
.points input:checked + span { box-shadow: inset 0 0 0 1.5px var(--red); background: rgba(227, 38, 44, .08); }
.checkout__err { margin: 0; min-height: 1em; color: var(--red-hi); font-size: 14px; }
.checkout__err:empty { display: none; }

.done { display: grid; justify-items: center; align-content: center; gap: 14px; padding: 50px var(--gutter); text-align: center; }
.done h4 { margin: 8px 0 0; font: 400 28px/1.05 var(--display); text-transform: uppercase; }
.done p { margin: 0; max-width: 32ch; color: var(--paper-2); }
.seal--stamp { animation: stamp .8s var(--ease-out) both; }

/* toast */
.toast {
  position: fixed; z-index: 95; left: 50%; top: calc(var(--top-h) + 12px);
  padding: 11px 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--rd, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* flying dish to cart */
.fly { position: fixed; z-index: 99; pointer-events: none; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .5)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; }
  /* без руху, але шторка не «вистрибує»: м'яке проявлення */
  .sheet .sheet__panel, .sheet--drawer .sheet__panel { animation: fadeBg .35s ease both !important; animation-duration: .35s !important; }
  .item__stage img { animation: itemIn .6s ease both !important; animation-duration: .6s !important; }
}
