.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px;
  background: var(--paper); border-radius: 8px; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  min-height: 60px; padding: 8px clamp(16px, 4vw, 40px);
  padding-top: max(8px, env(safe-area-inset-top));
  background: var(--ai); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.125rem; text-decoration: none; white-space: nowrap; }
.topbar :focus-visible { outline-color: var(--lantern); }
.topbar-phone { margin-left: auto; font-weight: 600; text-decoration: none; }
.topbar-phone:hover { text-decoration: underline; }
.cart-button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 0; border-radius: 10px; background: var(--lantern); color: var(--ai-deep); font-weight: 600; white-space: nowrap;
}
.cart-button:hover { background: #FFD76A; }
.cart-button.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); } }
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a { padding: 8px 10px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.topnav a:hover { background: var(--ai-deep); }

/* Киносекция: длинная дорожка скролла и закреплённый экран с 3D. */
.cinema { position: relative; height: var(--cinema-length, 460vh); background: var(--lagoon); }
.cinema-stage {
  position: sticky; top: 60px; height: calc(100svh - 60px); overflow: hidden;
  background: radial-gradient(90% 90% at 50% 40%, #37D9CC 0%, #0C8C93 100%);
}
.cinema-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s; }
.is-live .cinema-canvas { opacity: 1; }
.cinema-progress { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 4px; background: rgba(255, 255, 255, .25); }
.cinema-progress span { display: block; height: 100%; background: var(--lantern); transform: scaleX(0); transform-origin: 0 50%; }
.caption { position: absolute; z-index: 2; will-change: opacity, transform; }
/* Весь текст стоит на сплошных карточках, чтобы анимация не мешала читать. */
.caption-card, .set-card {
  left: clamp(12px, 5vw, 64px); bottom: clamp(12px, 5vh, 48px); border-radius: 18px;
  background: #FFFFFF; color: var(--ink); box-shadow: 0 16px 40px rgba(0, 60, 70, .28);
}
.caption-intro { display: grid; gap: 8px; width: min(480px, calc(100% - 24px)); padding: 22px 24px; }
.caption-intro h1 { font: 400 clamp(2.125rem, 4.4vw, 3.25rem)/1.05 var(--display); text-wrap: balance; }
.caption-intro .lead { font-weight: 600; font-size: 1.125rem; }
.caption-intro .terms { color: var(--ink-soft); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.scroll-hint { flex: 1 1 150px; color: var(--ink-soft); font-size: .9375rem; }
.caption-note { padding: 14px 20px; font: 400 clamp(1.125rem, 2.2vw, 1.5rem)/1.2 var(--display); max-width: calc(100% - 24px); }
.primary-link {
  display: inline-flex; align-items: center; min-height: 52px; padding: 12px 28px; border-radius: 12px;
  background: var(--lantern); color: var(--ink); font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease), background-color .15s;
}
.primary-link:hover { background: #FFD76A; transform: translateY(-2px); }
.set-card { display: grid; gap: 6px; width: min(400px, calc(100% - 24px)); padding: 20px 22px; }
.set-card h2 { font: 400 clamp(1.5rem, 3vw, 2rem)/1.15 var(--display); }
.set-list { color: var(--ink-soft); font-size: .9375rem; }
.set-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.set-price { font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.btn { transition: background-color .15s, color .15s, transform .2s var(--ease); }
.set-buy .btn:hover { transform: translateY(-2px); }

/* Без 3D: обычный первый экран с фотографией. */
.cinema.is-static { height: auto; }
.is-static .cinema-stage {
  position: relative; top: 0; display: grid; gap: 20px; height: auto; min-height: 0; padding: 40px 16px;
  background: linear-gradient(rgba(10, 90, 95, .62), rgba(10, 90, 95, .62)), url("../img/hero-side.jpg") center / cover;
}
.is-static .cinema-canvas, .is-static .cinema-progress, .is-static .scroll-hint, .is-static .caption-note { display: none; }
.is-static .caption { position: static; }
.is-static .set-card { justify-self: center; }

.closed-banner { padding: 14px 16px; background: var(--ai); color: #fff; text-align: center; font-weight: 600; }

.menu-bar {
  position: sticky; top: 60px; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 8px clamp(16px, 4vw, 40px); background: var(--rice); border-bottom: 1px solid var(--line);
}
.cats { flex: 1; min-width: 0; }
.cats ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.search { flex: 0 0 220px; }
.search input {
  width: 100%; min-height: 44px; padding: 8px 14px; border: 1.5px solid #A88C7A; border-radius: 10px; background: var(--paper);
}
.cats ul::-webkit-scrollbar { display: none; }
.cats a {
  display: flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 10px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.cats a:hover { background: var(--ai-soft); }
.cats a[aria-current="true"] { background: var(--ai); color: #fff; }

.shop {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start;
  max-width: 1280px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 64px;
}
/* Парящие суши за меню: декоративный слой, под всем содержимым. */
.shop-area { position: relative; }
.menu-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.shop { position: relative; z-index: 1; }
.sky-item {
  position: absolute; left: var(--x); top: var(--y); width: var(--size); opacity: var(--alpha, .13);
  transform: translateY(var(--drift, 0));
}
.sky-item img { width: 100%; animation: drift var(--time) ease-in-out var(--delay) infinite alternate; }
.menu-sky.is-paused .sky-item img { animation-play-state: paused; }
@keyframes drift {
  from { transform: translate(-10px, -14px) rotate(var(--turn)); }
  to { transform: translate(12px, 16px) rotate(calc(var(--turn) + 14deg)); }
}
.menu:focus { outline: none; }
.loading { padding: 48px 0; color: var(--ink-soft); }
.category + .category { margin-top: 56px; }
.category h2 { margin-bottom: 20px; font: 400 clamp(1.625rem, 3vw, 2.125rem)/1.15 var(--display); }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 20px; }

.dish { display: flex; flex-direction: column; min-width: 0; }
.dish-photo { aspect-ratio: 1; overflow: hidden; border-radius: 14px 14px 14px 4px; background: var(--ai-soft); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) { .dish:hover .dish-photo img { transform: scale(1.05); } }
.dish.is-out .dish-photo img { filter: grayscale(1); opacity: .6; }
.dish h3 { margin-top: 12px; font-size: 1.125rem; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.dish-meta { margin-top: 4px; color: var(--ink-soft); font-size: .875rem; }
.dish-desc { margin-top: 4px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.4; }
.dish-note { margin-top: 6px; font-size: .875rem; font-weight: 500; color: #A33210; }
.dish-more { margin-top: 2px; font-size: .875rem; color: var(--ink-soft); }
.dish-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tag { padding: 1px 8px; border-radius: 6px; background: var(--wasabi); color: var(--ai-deep); font-size: .8125rem; font-weight: 500; }
.dish-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; min-height: 60px; }
.price { font-size: 1.1875rem; font-weight: 700; white-space: nowrap; }
.add {
  min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--ai); border-radius: 10px;
  background: transparent; color: var(--ai); font-weight: 600;
}
.add:hover:not(:disabled) { background: var(--ai); color: #fff; }
.add:disabled { border-color: transparent; color: var(--ink-soft); padding-inline: 0; }

.stepper { display: inline-flex; align-items: center; border-radius: 10px; background: var(--ai); color: #fff; }
.stepper button {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: inherit;
}
.stepper button:hover { background: var(--ai-deep); }
.stepper :focus-visible { outline-color: var(--salmon); outline-offset: -3px; }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }

.side-cart {
  position: sticky; top: 136px; max-height: calc(100vh - 156px); overflow-y: auto; padding: 20px;
  background: var(--paper); border-radius: 14px; border: 1px solid var(--line);
}
.cart-title { margin-bottom: 14px; font: 400 1.375rem/1.2 var(--display); }
.cart-empty { color: var(--ink-soft); }
.cart-lines { display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.cart-line-name { font-weight: 600; line-height: 1.3; }
.cart-line-price { text-align: right; font-weight: 600; white-space: nowrap; }
.cart-line .stepper, .persons .stepper { background: var(--ai-soft); color: var(--ai-deep); }
.cart-line .stepper { grid-column: 1; justify-self: start; }
.cart-line .stepper button:hover, .persons .stepper button:hover { background: #FFD0BA; }
.cart-line .stepper :focus-visible, .persons .stepper :focus-visible { outline-color: var(--ai); }
.cart-sum { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cart-sum div { display: flex; justify-content: space-between; gap: 12px; }
.cart-sum .total { font-size: 1.25rem; font-weight: 700; }
.cart-note { margin-top: 10px; font-size: .9375rem; color: var(--ink-soft); }
.cart-note a { font-weight: 600; color: var(--ai); }

.checkout { display: grid; gap: 14px; margin-top: 20px; }
.checkout fieldset { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.checkout legend { margin-bottom: 6px; padding: 0; font-weight: 600; font-size: .9375rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.choice.stack { grid-template-columns: 1fr; }
.choice label {
  display: grid; align-content: center; min-height: 48px; padding: 8px 12px;
  border: 1.5px solid #A88C7A; border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 500;
}
.choice small { font-size: .875rem; font-weight: 400; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label:has(input:checked) { background: var(--ai); border-color: var(--ai); color: #fff; }
.choice label:has(input:focus-visible) { outline: 3px solid var(--ai); outline-offset: 2px; }
.persons { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: .9375rem; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: .9375rem; align-items: start; }
.consent input { width: 24px; height: 24px; margin: 0; }
.checkout .btn { width: 100%; min-height: 54px; font-size: 1.0625rem; }

.footer {
  display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 28px 64px;
  padding: 48px clamp(16px, 4vw, 40px) 96px; background: var(--lagoon); color: #FFFFFF;
}
.footer h2 { margin-bottom: 10px; font: 400 1.25rem/1.2 var(--display); }
.footer p + p { margin-top: 6px; }
.footer :focus-visible { outline-color: var(--lantern); }
.footer a { text-underline-offset: .2em; }
.footer-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }
.footer-small p + p { margin-top: 0; }
.footer-small a + a { margin-left: 16px; }

.delivery { max-width: 1280px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 64px; }
.delivery h2 { margin-bottom: 20px; font: 400 clamp(1.625rem, 3vw, 2.125rem)/1.15 var(--display); }
.delivery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 18px; }
.tile strong { font: 400 clamp(1.375rem, 2.4vw, 1.875rem)/1.15 var(--display); }
.tile-coral { background: var(--ai); color: #fff; }
.tile-lagoon { background: var(--lagoon); color: #fff; }
.tile-sun { background: var(--lantern); color: var(--ink); }
.delivery-pay { margin-top: 14px; color: var(--ink-soft); }

.cart-bar {
  display: none; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 25;
  justify-content: space-between; align-items: center; min-height: 56px; padding: 10px 18px;
  border: 0; border-radius: 12px; background: var(--ai); color: #fff; font-weight: 700;
  box-shadow: 0 8px 20px rgba(110, 40, 10, .35);
}
.sheet {
  width: 100%; max-width: 520px; max-height: 92dvh; margin: auto auto 0; padding: 0 16px 24px;
  border: 0; border-radius: 16px 16px 0 0; background: var(--paper); color: var(--ink);
}
.sheet::backdrop { background: rgba(110, 40, 10, .55); }
.sheet[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translateY(40px); opacity: .5; } }
.sheet-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 10px; background: var(--paper);
}
.sheet-head h2 { font: 400 1.375rem/1.2 var(--display); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--ai-soft); color: var(--ai-deep); }

@media (max-width: 1180px) {
  .topnav { display: none; }
}
@media (max-width: 1040px) {
  .shop { grid-template-columns: minmax(0, 1fr); }
  .side-cart { display: none; }
  .cart-bar:not([hidden]) { display: flex; }
}
@media (max-width: 620px) {
  .topbar-phone { display: none; }
  .cart-button { justify-content: center; min-width: 44px; padding: 8px 10px; }
  .cart-button [data-cart-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand { margin-right: auto; }
  .dishes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .dish { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 14px; }
  .dish-photo { grid-row: 1 / span 7; align-self: start; }
  .dish h3 { margin-top: 0; }
  .dish > :not(.dish-photo) { grid-column: 2; }
  .dish-buy { margin-top: 0; }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .menu-bar { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .search { flex: none; }
}
@media (max-width: 860px) {
  .delivery-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Страницы заказа и политики */
.page { max-width: 640px; min-height: calc(100svh - 150px); margin: 0 auto; padding: 32px 16px 64px; }
.page-center { display: grid; align-content: center; justify-items: center; gap: 12px; text-align: center; }
.page h1 { margin-bottom: 12px; font: 400 clamp(1.75rem, 5vw, 2.5rem)/1.15 var(--display); text-wrap: balance; }
.page h2 { margin: 28px 0 8px; font-size: 1.125rem; font-weight: 700; }
.page p + p { margin-top: 10px; }
.timeline { display: grid; margin-top: 24px; }
.timeline li { position: relative; padding: 0 0 22px 34px; color: var(--ink-soft); }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; border: 2px solid #A88C7A; background: var(--rice);
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line);
}
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ai); border-color: var(--ai); }
.timeline li.current { color: var(--ink); font-weight: 700; }
.timeline li.current::before { background: var(--salmon); border-color: var(--ai); }
.order-box { margin-top: 12px; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.order-box li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.order-box li span:last-child { flex: none; white-space: nowrap; }
.order-box .total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: 1.125rem; }

