/* Окно блюда на телефоне — ОК3 (выбор Вадима 15.11.2026).
   Блюдо крупно на весь экран, снизу выглядывают название и цена; тянешь вверх — лист с описанием наезжает на фото,
   фото чуть уходит вверх и темнеет (--rs-p от 0 до 1). Потянуть фото вниз или «‹» — окно закрывается.
   Окно выезжает снизу 0,42 с cubic-bezier(.22,1,.36,1), закрывается 0,3 с. Панель корзины сайта (.cart-bar, z 9000) остаётся поверх. */
body.rs-locked { overflow: hidden !important; overscroll-behavior: none; }

.rs-sheet {
  position: fixed; left: 0; right: 0; top: 0; bottom: var(--rs-bottom, 0px); z-index: 8900;
  display: flex; flex-direction: column; overflow: hidden;
  background: #0c0c0e; color: #fff; font-family: var(--font, Manrope, system-ui, sans-serif);
  transform: translateY(105%); visibility: hidden;
  transition: transform .3s cubic-bezier(.36,0,.66,-.04), bottom .4s cubic-bezier(.2,.85,.25,1), visibility 0s linear .3s;
  will-change: transform;
}
.rs-sheet.is-open { transform: translateY(0); visibility: visible; transition: transform .42s cubic-bezier(.22,1,.36,1), bottom .4s cubic-bezier(.2,.85,.25,1), visibility 0s; }
.rs-sheet.is-instant, .rs-sheet.is-dragging { transition: bottom .4s cubic-bezier(.2,.85,.25,1) !important; }

.rs-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rs-scroll::-webkit-scrollbar { display: none; }

/* Фото — липкое, на месте; лист наезжает поверх */
.rs-hero { position: sticky; top: 0; z-index: 0; height: 68%; overflow: hidden; background: radial-gradient(120% 80% at 50% 45%, #1e1e22 0, #0c0c0e 70%); }
.rs-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateY(calc(var(--rs-p, 0) * -42px)); will-change: transform; }
.rs-hero.is-cutout img { object-fit: contain; padding: calc(64px + env(safe-area-inset-top, 0px)) 10px 46px; filter: drop-shadow(0 22px 24px rgba(0,0,0,.65)); }
.rs-hero::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--rs-p, 0) * .5); pointer-events: none; }
.rs-hero::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 90px; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0)); pointer-events: none; }

/* Лист с описанием: скругление сверху, белое сияние по краю, оранжевая ручка.
   Высота листа — экран минус 64 px: наверху остаётся тёмная полоска фото, «‹» не наезжает на название. */
.rs-body {
  position: relative; z-index: 2; min-height: calc(100% - 64px - env(safe-area-inset-top, 0px)); margin-top: -28px; padding: 22px 18px 28px;
  border-radius: 28px 28px 0 0; background: #0f1015; border-top: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 -1px 0 rgba(255,255,255,.2), 0 -10px 26px rgba(255,255,255,.12), 0 -18px 40px rgba(0,0,0,.45);
}
.rs-grab { position: absolute; top: 8px; left: 50%; width: 44px; height: 4px; margin-left: -22px; border-radius: 3px; background: #fb923c; }
.rs-cat { color: #fb923c; font-size: .66rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rs-name { margin: .4rem 0 0; color: #fff; font-size: clamp(1.7rem, 7.6vw, 2.2rem); font-style: italic; font-weight: 950; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.rs-peek { margin-top: .3rem; color: #9a9aa2; font-size: .78rem; opacity: calc(1 - var(--rs-p, 0) * 3); }
/* Количество и вес — простым текстом, без рамок (просьба Вадима 15.11.2026) */
.rs-meta { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; color: #fdba74; font-size: .9rem; font-weight: 800; }
.rs-meta span + span::before { content: "·"; margin-right: .5rem; color: #6b6b72; }
.rs-desc { margin: .9rem 0 0; color: #c4c4ca; font-size: .98rem; font-style: italic; line-height: 1.6; }
.rs-sub { margin: 1.15rem 0 .55rem; color: #f4f4f5; font-size: .76rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.rs-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.rs-chips li { padding: .5rem .75rem; border: 1px solid rgba(255,255,255,.08); border-radius: .8rem; background: rgba(255,255,255,.05); color: #dedee2; font-size: .9rem; }
.rs-kb { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.rs-kb div { padding: .55rem .2rem; border: 1px solid rgba(255,255,255,.07); border-radius: .8rem; background: rgba(255,255,255,.04); color: #9a9aa2; font-size: .7rem; text-align: center; }
.rs-kb b { display: block; color: #fff; font-size: 1rem; }

/* Кнопка закрытия — тёмная 3D-клавиша слева сверху */
.rs-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; z-index: 9;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
  background: linear-gradient(180deg, #26262c, #141418); color: #fff; font-size: 1.05rem; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 0 #000, 0 8px 18px rgba(0,0,0,.4);
  transition: transform .08s ease, box-shadow .08s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.rs-close:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 0 #000; }

/* Низ окна: цена и «В корзину» → «− N +» */
.rs-buy { flex: none; position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 1rem calc(.7rem + var(--rs-safe, 0px)); background: rgba(12,12,15,.97); border-top: 1px solid rgba(255,255,255,.08); }
.rs-price { color: #fff; font-size: 1.6rem; font-style: italic; font-weight: 950; white-space: nowrap; }
/* «В корзину»: оранжевая 3D-клавиша (как на странице блюда) с бегущим бликом */
.rs-add { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.1rem; padding: .75rem 1.1rem; border: 0; border-radius: 1.1rem;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 55%, #dc4f0a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.12), 0 6px 0 #9a3412, 0 12px 22px rgba(234,88,12,.32);
  color: #fff; cursor: pointer; font-family: inherit; font-size: .8rem; font-style: italic; font-weight: 900; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform .12s ease, box-shadow .12s ease; }
.rs-add::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); transform: skewX(-18deg); animation: rs-add-sheen 3.6s ease-in-out infinite; }
@keyframes rs-add-sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.rs-add:active { transform: translateY(5px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 0 #9a3412, 0 4px 10px rgba(234,88,12,.25); }
.rs-add[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .rs-add::after { display: none; } }
.rs-buy .qty-stepper { height: 3.3rem; min-width: 9.5rem; }

@media (prefers-reduced-motion: reduce) {
  .rs-sheet, .rs-sheet.is-open { transition: none; }
  .rs-hero img { transform: none; }
}
@media (min-width: 801px) { .rs-sheet { display: none; } }
