/* ==========================================================
   WYN — чёрный, винно-красный, тонкие светлые контуры.
   Размеры главной заданы в --u: 1u = 1px на экране шириной 390px,
   на других телефонах всё масштабируется пропорционально макету.
   Цвета и шрифты — переменные ниже.
   ========================================================== */
:root {
  --u: calc(min(100vw, 480px) / 390);
  --bg: #0a0707;
  --bg-2: #120d0d;
  --red: #c4161f;
  --red-hi: #ec3a43;
  --red-grad: linear-gradient(180deg, #d01d27 0%, #a30f18 55%, #7e0910 100%);
  --text: #f3ebe6;
  --text-2: #d9cfca;
  --muted: #9a8e8a;
  /* тонкие контуры: светлее сверху-слева, гаснут к низу — как блик на стекле */
  --hair: linear-gradient(150deg, rgba(255, 244, 240, .42), rgba(255, 244, 240, .1) 42%, rgba(255, 244, 240, .06) 70%, rgba(255, 244, 240, .2));
  --hair-red: linear-gradient(150deg, rgba(255, 120, 120, .95), rgba(214, 38, 46, .55) 50%, rgba(255, 90, 90, .85));
  --line: rgba(255, 244, 240, .1);
  --line-2: rgba(255, 244, 240, .18);
  --serif: "Prata", "Times New Roman", serif;
  --logo: "Cinzel", "Prata", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --screen-w: 480px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: #040303;
  color: var(--text);
  font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--red-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- «экран»: на телефоне во всю ширину, на десктопе — колонка по центру */
.app {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--screen-w);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: calc(130 * var(--u) + env(safe-area-inset-bottom));
  background: var(--bg);
  /* без overflow: иначе на iOS < 16 (нет overflow: clip) вкладки перестают прилипать.
     Всё широкое обрезается на месте: фото — в .hero, вкладки — в своей ленте */
}
body.has-minebar .app { padding-bottom: calc(200 * var(--u) + env(safe-area-inset-bottom)); }
/* плёночное зерно поверх всего — убирает «пластиковость» тёмного фона */
.app::after {
  content: ""; position: absolute; z-index: 50; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' 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");
  mix-blend-mode: overlay;
}

/* ---------- появление при загрузке и при смене вкладки */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo, .burger, .tab, .cat__title, .item {
    animation: in .8s var(--ease) both;
  }
  .hero__logo { animation-delay: .15s; }
  .burger { animation-delay: .25s; }
  .tab:nth-child(1) { animation-delay: .3s; }
  .tab:nth-child(2) { animation-delay: .36s; }
  .tab:nth-child(3) { animation-delay: .42s; }
  .tab:nth-child(4) { animation-delay: .48s; }
  .tab:nth-child(n+5) { animation-delay: .54s; }
  .cat__title { animation-delay: .1s; }
  .item:nth-child(1) { animation-delay: .16s; }
  .item:nth-child(2) { animation-delay: .23s; }
  .item:nth-child(3) { animation-delay: .3s; }
  .item:nth-child(4) { animation-delay: .37s; }
  .item:nth-child(n+5) { animation-delay: .44s; }
  .hero__photo { animation: zoom 2.4s var(--ease) both; }
  .logo__star { animation: twinkle 5s ease-in-out 1.2s infinite; }
}
@keyframes in { from { opacity: 0; transform: translateY(calc(14 * var(--u))); } }
@keyframes zoom { from { opacity: 0; transform: scale(1.08); } }
@keyframes twinkle {
  0%, 82%, 100% { transform: translateX(-50%) scale(1) rotate(0); opacity: 1; }
  88% { transform: translateX(-50%) scale(1.35) rotate(45deg); opacity: .85; }
  94% { transform: translateX(-50%) scale(.9) rotate(90deg); opacity: 1; }
}

/* ---------- логотип: название и красная звезда над ним */
.logo {
  position: relative; display: inline-block; padding-top: .42em;
  font: 500 calc(20 * var(--u))/1 var(--logo); letter-spacing: .14em; color: #efe3dc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.logo__text { display: block; margin-right: -.14em; }
.logo__star {
  position: absolute; top: 0; left: 50%; width: .38em; height: .38em; transform: translateX(-50%);
  fill: var(--red-hi); filter: drop-shadow(0 0 .2em rgba(236, 58, 67, .9)) drop-shadow(0 0 .5em rgba(236, 58, 67, .45));
}
.logo--big { font-size: calc(37 * var(--u)); letter-spacing: .1em; }
.logo--big .logo__text { margin-right: -.1em; }
.logo--mid { font-size: 30px; }

/* ---------- первый экран */
/* overflow: clip — при параллаксе фото не вылезает под вкладки резкой полосой */
.hero { position: relative; isolation: isolate; height: calc(252 * var(--u)); overflow: hidden; overflow: clip; }
.hero__media {
  position: absolute; z-index: -2; inset: 0; overflow: hidden;
  transform: translate3d(0, var(--py, 0px), 0); will-change: transform;
}
.hero__photo {
  /* кадр как в макете: фото чуть шире экрана, бокал справа, кубики по центру */
  position: absolute; left: -1.5%; top: 2%; width: 102%; height: auto; max-width: none;
  filter: brightness(1.1) contrast(1.06) saturate(1.12);
}
.hero::after {
  /* фото растворяется в чёрном снизу; сверху слева чуть темнее — под логотип */
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 70%, rgba(10, 7, 7, .35) 82%, rgba(10, 7, 7, .8) 93%, var(--bg) 100%),
    radial-gradient(45% 35% at 18% 14%, rgba(5, 3, 3, .35), transparent 75%);
}
.hero__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: calc(20 * var(--u) + env(safe-area-inset-top)) calc(22 * var(--u)) 0 calc(25 * var(--u));
}
.hero__sub {
  margin: calc(8 * var(--u)) 0 0 calc(25 * var(--u)); max-width: 45%;
  font: 400 calc(13 * var(--u))/1.4 var(--sans); letter-spacing: .04em; color: var(--text-2);
}

/* «гамбургер» — три тонкие линии, без кружка, как в макете */
.burger {
  display: grid; align-content: center; gap: calc(6 * var(--u));
  width: calc(44 * var(--u)); height: calc(44 * var(--u)); margin: calc(12 * var(--u)) calc(-10 * var(--u)) 0 0;
  padding: 0 calc(10 * var(--u)); border: 0; background: none; cursor: pointer;
}
.burger i {
  display: block; height: 1.5px; border-radius: 2px; background: #efe3dc;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6); transition: transform .3s var(--ease);
}
.burger:active i:nth-child(1) { transform: translateY(2px); }
.burger:active i:nth-child(3) { transform: translateY(-2px); }

/* ---------- тонкая обводка с бликом (рамкой служит background в border-box) */
.hair {
  border: 1px solid transparent;
  background: linear-gradient(var(--fill, #0d0909), var(--fill, #0d0909)) padding-box, var(--hair) border-box;
}

/* ---------- вкладки категорий */
/* панель прилипает к верху экрана; когда прилипла — тёмная подложка с размытием и тонкой линией */
.tabbar { position: sticky; top: 0; z-index: 12; padding-top: calc(8 * var(--u)); }
.tabbar::before {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0; transition: opacity .3s;
  background: rgba(10, 7, 7, .84); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.tabbar.is-stuck::before { opacity: 1; }
.tabs {
  position: relative; display: flex; gap: calc(8.5 * var(--u));
  padding: 0 calc(14 * var(--u)) calc(14 * var(--u));
  overflow-x: auto; scrollbar-width: none; scroll-padding: 0 calc(14 * var(--u));
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: calc(8 * var(--u));
  height: calc(36 * var(--u)); padding: 0 calc(14 * var(--u)) 0 calc(12 * var(--u)); border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #120d0d, #0a0707) padding-box, var(--hair) border-box;
  font-size: max(10.5px, calc(10.6 * var(--u))); font-weight: 400; letter-spacing: 0; color: var(--text-2); white-space: nowrap;
  transition: color .3s, box-shadow .4s;
}
.tab .ico { width: calc(15 * var(--u)); height: calc(15 * var(--u)); stroke-width: 1.5; }
/* как в макете: блюдо, фри и звезда — залитые, бокал — контуром */
.tab .ico--cloche, .tab .ico--fries, .tab .ico--star { fill: currentColor; }
.tab .ico--fries path:last-child { stroke: #0b0808; }
.tab.is-on {
  color: #fff;
  background: var(--red-grad) padding-box, var(--hair-red) border-box;
  box-shadow: 0 calc(6 * var(--u)) calc(22 * var(--u)) rgba(196, 22, 31, .45), inset 0 1px 0 rgba(255, 210, 210, .35), inset 0 -6px 12px rgba(60, 0, 4, .35);
}
/* красная черта под активной вкладкой — переезжает при переключении */
.tabs__ink {
  position: absolute; left: 0; bottom: calc(1 * var(--u)); height: 1px; width: 0;
  transform: translateX(var(--x, 0)); width: var(--w, 0);
  background: linear-gradient(90deg, rgba(236, 58, 67, 0), var(--red-hi) 12%, var(--red-hi) 88%, rgba(236, 58, 67, 0));
  box-shadow: 0 0 6px rgba(236, 58, 67, .55);
  transition: transform .5s var(--ease), width .5s var(--ease);
  pointer-events: none;
}

/* ---------- всё меню одной лентой: категории подряд */
.cat { padding-top: calc(18 * var(--u)); scroll-margin-top: calc(var(--bar-h, 70px) + 6px); }
.cat + .cat { padding-top: calc(34 * var(--u)); }
.cat__title {
  display: flex; align-items: center; gap: calc(14 * var(--u)); margin: 0; padding: 0 calc(15 * var(--u));
  font: 400 calc(24 * var(--u))/1.15 var(--serif); letter-spacing: .015em; color: var(--text);
}
/* тонкая линия от названия до края — как разделитель категорий */
.cat__title::after {
  content: ""; flex: 1; height: 1px; margin-top: .2em;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.list {
  list-style: none; margin: 0; padding: calc(18 * var(--u)) calc(14 * var(--u)) 0;
  display: grid; gap: calc(15 * var(--u));
}

/* ---------- позиция */
.item { position: relative; display: flex; align-items: center; gap: calc(6 * var(--u)); }
.item__main {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: calc(19 * var(--u));
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.item__pic {
  flex: none; position: relative; width: calc(135 * var(--u)); height: calc(75 * var(--u));
  border-radius: calc(10 * var(--u)); overflow: hidden;
  /* правое поле: правый край снимка, растянутый вширь (по высоте — строка в строку) */
  background: var(--img, none) 100% 0 / 3000% 100% no-repeat, #0d0909;
  box-shadow: 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(0, 0, 0, .55);
  transition: transform .4s var(--ease);
}
.item__main:active .item__pic { transform: scale(.97); }
/* фото целиком, без обрезки; поля по бокам — продолжение фона самого снимка:
   левое поле — левый край, растянутый вширь. Градиент фона совпадает по высоте, шва нет */
.item__pic::before {
  content: ""; position: absolute; inset: 0 50% 0 0; background: var(--img, none) 0 0 / 6000% 100% no-repeat;
}
.item__img {
  position: relative; display: block; width: 100%; height: 100%; object-fit: contain;
  /* края фото мягко растворяются в заливке полей — без видимого шва */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.item__pic::after {
  /* тонкая рамка с бликом поверх фото */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px; background: var(--hair);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.item__ph {
  display: grid; place-items: center; width: 100%; height: 100%; color: rgba(236, 58, 67, .55);
  background: radial-gradient(70% 90% at 50% 100%, rgba(120, 14, 20, .35), transparent 70%), #0d0909;
}
.item__ph .ico { width: calc(28 * var(--u)); height: calc(28 * var(--u)); stroke-width: 1.1; }
.item__body { min-width: 0; display: flex; flex-direction: column; gap: calc(4 * var(--u)); }
.item__name { font: 400 max(14.5px, calc(15.2 * var(--u)))/1.25 var(--serif); letter-spacing: .01em; color: var(--text); }
.item__desc {
  font-size: max(10.5px, calc(10.2 * var(--u))); font-weight: 300; line-height: 1.4; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item__meta { font-size: calc(10.5 * var(--u)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.item__meta em { font-style: normal; color: var(--red-hi); }
.item__price {
  margin-top: calc(7 * var(--u)); font-size: calc(15.5 * var(--u)); font-weight: 400; letter-spacing: .01em;
  color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.item.is-out .item__name, .item.is-out .item__desc, .item.is-out .item__pic { opacity: .45; }
.item.is-out .item__price { color: var(--muted); text-decoration: line-through; }
.badge {
  display: inline-block; vertical-align: .25em; margin-left: 2px; padding: 2px 7px;
  border: 1px solid rgba(236, 58, 67, .7); border-radius: 999px;
  font: 500 9px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #ffb3b6;
}

/* круглая «+» с числом выбранных */
.add { position: relative; flex: none; margin-right: calc(1 * var(--u)); }
.add__btn {
  position: relative; display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); padding: 0;
  border-radius: 50%; border: 1.2px solid rgba(255, 244, 240, .82); background: transparent; color: var(--text); cursor: pointer;
  transition: transform .15s, background .3s, border-color .3s, box-shadow .3s;
}
.add__btn::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; } /* палец не промахнётся */
.add__btn .ico { width: calc(16 * var(--u)); height: calc(16 * var(--u)); stroke-width: 1.6; }
.add__btn:active { transform: scale(.86); }
.add__n {
  position: absolute; top: -6px; right: -7px; display: none; min-width: 17px; height: 17px; padding: 0 4px;
  place-items: center; border-radius: 999px; background: #fff; color: #7a0910; font-size: 10px; font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.add.has-n .add__btn { border-color: rgba(255, 120, 120, .6); background: var(--red-grad); box-shadow: 0 4px 16px rgba(196, 22, 31, .5); }
.add.has-n .add__n { display: grid; animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.3); } }

.empty, .note { margin: 30px 22px 0; text-align: center; font-size: 13px; color: var(--muted); }
.note { margin-top: 26px; font-size: 12px; }

/* ---------- нижняя панель: контур с выпуклостью над логотипом (path строит wyn.js) */
.dock {
  --bump: calc(14 * var(--u));
  position: fixed; z-index: 15; left: 50%; bottom: max(calc(12 * var(--u)), calc(env(safe-area-inset-bottom) + 2px));
  transform: translateX(-50%);
  width: min(calc(100% - 22 * var(--u)), calc(var(--screen-w) - 22 * var(--u)));
  height: calc(54 * var(--u) + var(--bump)); padding-top: var(--bump);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-left: calc(20 * var(--u)); padding-right: calc(7 * var(--u));
  filter: drop-shadow(0 calc(14 * var(--u)) calc(22 * var(--u)) rgba(0, 0, 0, .75));
}
.dock::before {
  /* размытие фона под панелью, по её форме */
  content: ""; position: absolute; z-index: -1; inset: 0; clip-path: var(--clip, none);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.dock__shape { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dock__fill { fill: rgba(13, 9, 9, .86); }
.dock__line { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dock__home { justify-self: start; display: grid; place-items: center; width: calc(40 * var(--u)); height: calc(40 * var(--u)); margin-left: calc(-8 * var(--u)); color: #bdb1ac; }
.dock__home .ico { width: calc(21 * var(--u)); height: calc(21 * var(--u)); stroke-width: 1.3; }
.dock__logo { margin-top: calc(-12 * var(--u)); }
.dock__logo .logo { font-size: calc(18.5 * var(--u)); letter-spacing: .34em; }
.dock__logo .logo__text { margin-right: -.34em; }
.dock__book {
  justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: calc(11 * var(--u));
  width: calc(106 * var(--u)); height: calc(38 * var(--u)); padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #150b0b, #0c0707) padding-box, var(--hair-red) border-box;
  box-shadow: 0 0 calc(18 * var(--u)) rgba(214, 38, 46, .3), inset 0 0 calc(10 * var(--u)) rgba(214, 38, 46, .15);
  font-size: calc(12.5 * var(--u)); color: var(--text); transition: transform .15s;
}
.dock__book:active { transform: scale(.95); }
.dock__book .ico { width: calc(17 * var(--u)); height: calc(17 * var(--u)); stroke-width: 1.3; }

/* ---------- «Мой выбор»: плашка над нижней панелью */
.minebar {
  position: fixed; z-index: 16; left: 50%; bottom: calc(86 * var(--u) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 44 * var(--u)), calc(var(--screen-w) - 44 * var(--u)));
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px 0 7px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; color: #fff;
  background: var(--red-grad) padding-box, var(--hair-red) border-box;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6), 0 0 26px rgba(196, 22, 31, .35), inset 0 1px 0 rgba(255, 210, 210, .3);
  animation: rise .4s var(--ease);
}
.minebar__ico { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .2); }
.minebar__ico .ico { width: 19px; height: 19px; }
.minebar__ico b {
  position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; background: #fff; color: #7a0910; font-size: 10.5px; font-weight: 600;
}
.minebar__label { flex: 1; text-align: left; font: 400 17px/1 var(--serif); letter-spacing: .02em; }
.minebar__sum { font-size: 15px; font-weight: 500; white-space: nowrap; }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ---------- окна (dialog): снизу, а боковое меню — справа */
.sheet {
  width: 100%; max-width: var(--screen-w); max-height: 100%;
  margin: auto auto 0; padding: 0; border: 0; background: transparent; color: var(--text);
}
.sheet::backdrop { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] .sheet__panel { animation: up .45s var(--ease); }
@keyframes up { from { transform: translateY(60px); opacity: 0; } }
.sheet__panel {
  position: relative; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid transparent; border-bottom: 0; border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #170f0f, var(--bg-2) 200px) padding-box, var(--hair) border-box;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
}
.sheet__panel::before {
  content: ""; position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 244, 240, .35);
}
.sheet__close {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 1px solid transparent; color: var(--text); cursor: pointer;
  background: linear-gradient(rgba(12, 8, 8, .75), rgba(12, 8, 8, .75)) padding-box, var(--hair) border-box;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sheet__close .ico { width: 16px; height: 16px; stroke-width: 1.4; }
.sheet__img {
  display: block; width: 100%; height: auto; max-height: 56svh; object-fit: cover; border-radius: 25px 25px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
}
.sheet__body { padding: 18px 22px calc(28px + env(safe-area-inset-bottom)); }
.sheet.no-img .sheet__body, #mine-sheet .sheet__body, #book-sheet .sheet__body { padding-top: 30px; }
.sheet__name, .sheet__title { margin: 0; padding-right: 48px; font: 400 28px/1.15 var(--serif); letter-spacing: .01em; }
.sheet__desc { margin: 10px 0 0; font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--text-2); white-space: pre-line; }
.sheet__desc:empty, .sheet__meta:empty { display: none; }
.sheet__meta { margin: 10px 0 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet__meta em { font-style: normal; color: var(--red-hi); }
.sheet__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.sheet__price { font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* кнопки −  N  + (в окне позиции и в «Моём выборе») */
.step:not(.add) { display: inline-flex; align-items: center; height: 44px; border-radius: 999px; transition: background .3s; }
.step__btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 244, 240, .55); background: transparent; color: var(--text); cursor: pointer;
}
.step__btn .ico { width: 19px; height: 19px; stroke-width: 1.4; }
.step__btn:active { transform: scale(.9); }
.step__dec, .step__n { display: none; }
.step:not(.add).has-n { background: var(--red-grad); box-shadow: 0 4px 16px rgba(196, 22, 31, .45), inset 0 1px 0 rgba(255, 210, 210, .3); }
.step.has-n .step__dec, .step.has-n .step__n { display: grid; }
.step.has-n .step__btn { border-color: transparent; }
.step__n { min-width: 18px; place-items: center; font-size: 15px; font-weight: 500; }
.mine__row .step:not(.add), .mine__row .step__btn { height: 36px; }
.mine__row .step__btn { width: 36px; }

/* список «Мой выбор» */
.mine__hint, .book__hint { margin: 8px 0 0; font-size: 13px; font-weight: 300; line-height: 1.5; color: var(--muted); }
.mine__list { list-style: none; margin: 16px 0 0; padding: 0; }
.mine__row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name step" "sum step";
  align-items: center; column-gap: 12px; row-gap: 3px; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mine__name { grid-area: name; font: 400 17px/1.25 var(--serif); }
.mine__sum { grid-area: sum; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mine__row .step { grid-area: step; }
.mine__empty { margin: 22px 0 6px; font-size: 13px; color: var(--muted); text-align: center; }
.mine__line {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.mine__foot .mine__line:first-child { margin-top: 16px; }
.mine__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mine__total b { font-size: 24px; font-weight: 400; letter-spacing: 0; color: var(--text); }
.mine__clear {
  display: block; margin: 18px auto 0; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; font-size: 12px; color: var(--muted); cursor: pointer;
}
.mine__note { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* бронь */
.book__btns { display: grid; gap: 10px; margin-top: 22px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 999px;
  border: 1px solid transparent; font-size: 15px;
  background: linear-gradient(#120c0c, #0c0808) padding-box, var(--hair) border-box;
}
.btn .ico { width: 20px; height: 20px; stroke-width: 1.4; }
.btn--red {
  background: var(--red-grad) padding-box, var(--hair-red) border-box;
  box-shadow: 0 8px 24px rgba(196, 22, 31, .4), inset 0 1px 0 rgba(255, 210, 210, .3);
}

/* контакты */
.contacts { list-style: none; margin: 20px 0 0; padding: 0; }
.contacts li { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 300; }
.contacts li:last-child { border-bottom: 1px solid var(--line); }
.contacts .ico { width: 19px; height: 19px; margin-top: 1px; color: var(--red-hi); stroke-width: 1.4; }
.contacts span { white-space: pre-line; }

/* боковое меню */
.sheet--side { margin: 0 0 0 auto; width: min(86%, 380px); height: 100%; max-height: 100%; }
.sheet--side .sheet__panel {
  height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: -1px 0 0 var(--line-2), -30px 0 60px rgba(0, 0, 0, .5);
  background: radial-gradient(90% 40% at 100% 0%, rgba(150, 20, 28, .28), transparent 70%), var(--bg-2);
}
.sheet--side .sheet__panel::before { display: none; }
.sheet--side[open] .sheet__panel { animation: side .45s var(--ease); }
@keyframes side { from { transform: translateX(60px); opacity: 0; } }
.sheet--side .sheet__body { padding: calc(26px + env(safe-area-inset-top)) 24px calc(30px + env(safe-area-inset-bottom)); }
.lang { display: flex; width: max-content; gap: 4px; margin-top: 24px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang a { padding: 6px 13px; border-radius: 999px; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.lang a.is-on { background: var(--red-grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 210, 210, .3); }
.side__h { margin: 30px 0 8px; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.side__cats { list-style: none; margin: 0; padding: 0; }
.side__cats a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 19px/1.2 var(--serif); }
.side__cats .ico { width: 20px; height: 20px; color: var(--red-hi); stroke-width: 1.3; }
.side__cats span { flex: 1; }
.side__cats small { font: 300 12px/1 var(--sans); color: var(--muted); }
.side__about { margin: 0; font-size: 14.5px; font-weight: 300; line-height: 1.65; color: var(--text-2); white-space: pre-line; }

/* ---------- вход 18+ */
.gate {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text);
}
.gate[open] { display: grid; place-items: center; padding: 16px; }
.gate::backdrop { background: rgba(4, 3, 3, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.gate[open] .gate__panel { animation: up .5s var(--ease); }
.gate__panel {
  width: 100%; max-width: 360px; padding: 32px 24px 24px; text-align: center; border-radius: 26px;
  border: 1px solid transparent;
  background: radial-gradient(90% 60% at 50% 0%, rgba(150, 20, 28, .3), transparent 70%), linear-gradient(180deg, #170f0f, var(--bg-2)) padding-box, var(--hair) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.gate__badge {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto; border-radius: 50%;
  border: 1px solid transparent; background: linear-gradient(#120909, #0d0707) padding-box, var(--hair-red) border-box;
  box-shadow: 0 0 24px rgba(214, 38, 46, .35); font: 400 26px/1 var(--serif); color: var(--text);
}
.gate__title { margin: 20px 0 0; font: 400 26px/1.15 var(--serif); }
.gate__text { margin: 10px 0 0; font-size: 14px; font-weight: 300; line-height: 1.6; color: var(--text-2); }
.gate__service {
  margin: 16px 0 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 12.5px; line-height: 1.5; color: var(--text);
}
.gate__actions { display: grid; gap: 10px; margin-top: 24px; }
.gate__btn {
  height: 50px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: 15px; color: var(--text-2);
  background: linear-gradient(#120c0c, #0c0808) padding-box, var(--hair) border-box;
}
.gate__btn--yes {
  color: #fff; background: var(--red-grad) padding-box, var(--hair-red) border-box;
  box-shadow: 0 8px 24px rgba(196, 22, 31, .4), inset 0 1px 0 rgba(255, 210, 210, .3);
}
.gate__denied { margin: 22px 0 0; font-size: 14px; line-height: 1.6; color: #ff9da2; }
.gate .lang { margin: 22px auto 0; }

/* ---------- десктоп: колонка по центру, по бокам тёмный фон */
@media (min-width: 520px) {
  body { background: radial-gradient(60% 50% at 50% 0%, #1a0b0c, #040303 70%) fixed; }
  .app { box-shadow: 0 0 0 1px var(--line), 0 0 90px rgba(0, 0, 0, .7); }
}
