/* ============================================================
   МЯТА LOUNGE — дизайн меню (зеркало front/, без бэкенда)
   Палитра и токены — из styles/theme.module.css исходного проекта.
   ============================================================ */

@font-face {
  font-family: 'Granate';
  src: url('fonts/Granate-400-normal.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Granate';
  src: url('fonts/Granate-700-normal.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Granate';
  src: url('fonts/Granate-900-normal.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Granate';
  src: url('fonts/Granate-300-italic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ---------- токены бренда (единственный, тёмный визуальный мир — второй
   темы у оригинала нет, поэтому здесь нет :root[data-theme] переопределений) */
:root {
  --bg: #000000;
  --surface: #07110a;
  --raise: #0d1c10;

  --green: #024e05;
  --brown: #632a00;
  --sand: #cd8e6b;
  --mint: #8ffff8;

  --accent: #8ffff8;
  --accent-ink: #001310;

  --text: #f2f0ea;
  --dim: #98968e;
  --faint: #5f6460;

  --line: rgba(143, 255, 248, 0.1);
  --line-2: rgba(143, 255, 248, 0.24);

  --r: 0px;
  --font: 'Granate', Georgia, 'Times New Roman', serif;
}

/* ---------- сброс ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
input {
  font: inherit;
}
:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- каркас приложения ---------- */
.app {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Обёртка экранов: на ней держится плавная смена экрана. */
.host {
  position: absolute;
  inset: 0;
}

/* ---------- общая механика смены содержимого (заменяет useSwapPhase/FadeSwap) ----------
   Старое гаснет и чуть уходит вверх (быстро), новое проявляется снизу (медленнее).
   Названия классов нарочно не .base/.out/.pre — эти слишком общие имена
   пересеклись бы с другими компонентами (.out у карточки блюда, например). */
.swapBase {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.22s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.swapOut {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
  pointer-events: none;
}
/* быстрая смена вкладок: содержимое уже на месте, только короткое проявление */
.swapQuick {
  opacity: 0;
  transition: none !important;
}
.swapPre {
  opacity: 0;
  transform: translateY(14px);
  transition: none;
  pointer-events: none;
}

/* ---------- общий каркас экрана ---------- */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Колонка контента для экранов-лент (меню, поиск): на телефоне — во весь
   экран, на широком мониторе не растягивается на всю ширину. */
.column {
  width: 100%;
  max-width: 640px;
  align-self: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ---------- примитивы (styles/ui.module.css) ---------- */
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
}
.faint {
  color: var(--faint);
}
.price {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.wordmark {
  font-size: 16px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text);
  padding-left: 0.42em;
}
.subword {
  font-size: 8px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  padding-left: 0.44em;
}
.lede {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--dim);
}
.empty {
  padding: 54px 0;
  text-align: center;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.8;
}
.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar {
  display: none;
}
.pad {
  padding: 0 24px;
}
.botspace {
  height: 40px;
}
.mark {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- свечение знака (components/Glow) ---------- */
.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.glow.on {
  opacity: 1;
}
.glowRise {
  position: absolute;
  inset: 0;
  animation: glowRiseIn 1.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes glowRiseIn {
  from {
    opacity: 0;
    transform: scale(0.62);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.halo {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 112%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle closest-side,
    rgba(2, 78, 5, 0.4207) 0%,
    rgba(2, 78, 5, 0.4207) 14%,
    rgba(2, 78, 5, 0.3902) 17.6%,
    rgba(2, 78, 5, 0.3538) 21.3%,
    rgba(2, 78, 5, 0.3128) 24.9%,
    rgba(2, 78, 5, 0.2686) 28.5%,
    rgba(2, 78, 5, 0.2235) 32.1%,
    rgba(2, 78, 5, 0.1797) 35.8%,
    rgba(2, 78, 5, 0.1394) 39.4%,
    rgba(2, 78, 5, 0.104) 43%,
    rgba(2, 78, 5, 0.0746) 46.6%,
    rgba(2, 78, 5, 0.0513) 50.3%,
    rgba(2, 78, 5, 0.0338) 53.9%,
    rgba(2, 78, 5, 0.0214) 57.5%,
    rgba(2, 78, 5, 0.0129) 61.1%,
    rgba(2, 78, 5, 0.0074) 64.8%,
    rgba(2, 78, 5, 0.0041) 68.4%,
    transparent 72%
  );
  animation: haloWave 5.2s ease-in-out -3.4s infinite;
  will-change: opacity, transform;
}
@keyframes haloWave {
  from {
    opacity: 0.1;
    transform: scale3d(0.9, 0.9, 1);
  }
  50% {
    opacity: 1;
    transform: scale3d(1.04, 1.04, 1);
  }
  to {
    opacity: 0.1;
    transform: scale3d(0.9, 0.9, 1);
  }
}
.bloom {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 111%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle closest-side,
    rgba(143, 255, 248, 0.1262) 0%,
    rgba(143, 255, 248, 0.1262) 12.3%,
    rgba(143, 255, 248, 0.1171) 16.4%,
    rgba(143, 255, 248, 0.1062) 20.5%,
    rgba(143, 255, 248, 0.0938) 24.5%,
    rgba(143, 255, 248, 0.0806) 28.6%,
    rgba(143, 255, 248, 0.067) 32.7%,
    rgba(143, 255, 248, 0.0539) 36.8%,
    rgba(143, 255, 248, 0.0418) 40.9%,
    rgba(143, 255, 248, 0.0312) 44.9%,
    rgba(143, 255, 248, 0.0224) 49%,
    rgba(143, 255, 248, 0.0154) 53.1%,
    rgba(143, 255, 248, 0.0102) 57.2%,
    rgba(143, 255, 248, 0.0064) 61.3%,
    rgba(143, 255, 248, 0.0039) 65.3%,
    rgba(143, 255, 248, 0.0022) 69.4%,
    rgba(143, 255, 248, 0.0012) 73.5%,
    transparent 77.6%
  );
  animation: bloomWave 5.2s ease-in-out -3s infinite;
  will-change: opacity, transform;
}
@keyframes bloomWave {
  from {
    opacity: 0.18;
    transform: scale3d(0.94, 0.94, 1);
  }
  50% {
    opacity: 1;
    transform: scale3d(1.02, 1.02, 1);
  }
  to {
    opacity: 0.18;
    transform: scale3d(0.94, 0.94, 1);
  }
}
.aura {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle closest-side,
    rgba(143, 255, 248, 0.2187) 0%,
    rgba(143, 255, 248, 0.2187) 30%,
    rgba(143, 255, 248, 0.2029) 32.3%,
    rgba(143, 255, 248, 0.184) 34.5%,
    rgba(143, 255, 248, 0.1626) 36.8%,
    rgba(143, 255, 248, 0.1397) 39.1%,
    rgba(143, 255, 248, 0.1162) 41.3%,
    rgba(143, 255, 248, 0.0935) 43.6%,
    rgba(143, 255, 248, 0.0725) 45.9%,
    rgba(143, 255, 248, 0.0541) 48.1%,
    rgba(143, 255, 248, 0.0388) 50.4%,
    rgba(143, 255, 248, 0.0267) 52.7%,
    rgba(143, 255, 248, 0.0176) 54.9%,
    rgba(143, 255, 248, 0.0111) 57.2%,
    rgba(143, 255, 248, 0.0067) 59.5%,
    rgba(143, 255, 248, 0.0039) 61.7%,
    rgba(143, 255, 248, 0.0021) 64%,
    transparent 66.3%
  );
  animation: auraWave 5.2s ease-in-out -2.6s infinite;
  transform: translateZ(0);
  will-change: opacity;
}
@keyframes auraWave {
  from {
    opacity: 0.32;
  }
  50% {
    opacity: 1;
  }
  to {
    opacity: 0.32;
  }
}
@media (prefers-reduced-motion: reduce) {
  .glow {
    transition: none;
  }
  .glowRise,
  .halo,
  .bloom,
  .aura {
    animation: none;
    transform: none;
  }
  .halo {
    opacity: 0.6;
  }
  .bloom,
  .aura {
    opacity: 0.75;
  }
}

/* ---------- геометрия циферблата, общая для заставки и обложки (components/Dial) ---------- */
.dial {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  container-type: size;
}
.face {
  position: relative;
  width: min(60cqw, 96cqh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.slot {
  position: relative;
  width: 56%;
  aspect-ratio: 1;
}

/* ---------- заставка «Плетение» (screens/SplashScreen) ---------- */
.splash {
  z-index: 20;
  overflow: hidden;
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  animation: fadeIn calc(1.4s * var(--t)) ease calc(0.2s * var(--t)) both;
}
.markWrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* мятный ореол вокруг диска (размытие вшито в градиент, как у Glow) */
.plateGlow {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 200%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle closest-side,
    rgba(143, 255, 248, 0.1236) 0%,
    rgba(143, 255, 248, 0.1236) 50%,
    rgba(143, 255, 248, 0.1021) 52.9%,
    rgba(143, 255, 248, 0.0821) 55.9%,
    rgba(143, 255, 248, 0.064) 58.8%,
    rgba(143, 255, 248, 0.0484) 61.8%,
    rgba(143, 255, 248, 0.0355) 64.7%,
    rgba(143, 255, 248, 0.0251) 67.6%,
    rgba(143, 255, 248, 0.0172) 70.6%,
    rgba(143, 255, 248, 0.0114) 73.5%,
    rgba(143, 255, 248, 0.0073) 76.5%,
    rgba(143, 255, 248, 0.0045) 79.4%,
    rgba(143, 255, 248, 0.0027) 82.4%,
    rgba(143, 255, 248, 0.0015) 85.3%,
    rgba(143, 255, 248, 0.0008) 88.2%,
    rgba(143, 255, 248, 0.0004) 91.2%,
    transparent 94.1%
  );
}
.ornGroup {
  animation:
    focus calc(1.9s * var(--t)) cubic-bezier(0.16, 1, 0.3, 1) both,
    breathe calc(1.5s * var(--t)) ease-in-out calc(1.9s * var(--t)) both;
}
.orn {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: weave calc(0.58s * var(--t)) cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--d) * 1s * var(--t));
}
.glint path,
.line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glint path {
  stroke: #ffffff;
  stroke-width: 2.6;
  stroke-dasharray: 0.055 1;
  stroke-dashoffset: 1.055;
  opacity: 0;
  filter: drop-shadow(0 0 2.5px rgba(143, 255, 248, 0.95));
  animation: glint calc(1.15s * var(--t)) cubic-bezier(0.4, 0.05, 0.3, 1) calc(2.25s * var(--t))
    forwards;
}
.glint path:nth-child(2) {
  animation-delay: calc(2.95s * var(--t));
}
.glint path:nth-child(3) {
  animation-delay: calc(3.02s * var(--t));
}
.line path {
  stroke: var(--accent);
  stroke-width: 1.9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: draw calc(1.2s * var(--t)) cubic-bezier(0.4, 0.05, 0.3, 1) calc(2.3s * var(--t))
    forwards;
}
.line path:nth-child(2) {
  animation-delay: calc(3s * var(--t));
}
.line path:nth-child(3) {
  animation-delay: calc(3.07s * var(--t));
}
.fill {
  opacity: 0;
  animation: fadeIn calc(0.62s * var(--t)) ease calc(3.25s * var(--t)) both;
}
@keyframes weave {
  from {
    opacity: 0;
    transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) scale(0.8)
      rotate(calc(var(--rot) * 1deg));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes focus {
  from {
    filter: blur(2.6px);
  }
  to {
    filter: blur(0);
  }
}
@keyframes breathe {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.014);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes glint {
  0% {
    stroke-dashoffset: 1.055;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0.055;
    opacity: 0;
  }
}
@keyframes draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0.9;
  }
  70% {
    opacity: 0.9;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.skip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  opacity: 0;
  animation: fadeIn 0.6s ease 1.6s both;
}

/* ---------- обложка-циферблат (screens/StartScreen) ---------- */
.start {
  overflow: hidden;
}
.brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 26px 24px;
}
.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ring path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  opacity: 0.32;
  transition:
    opacity 0.25s,
    stroke-width 0.25s;
}
.ring path.lit {
  opacity: 0.95;
  stroke-width: 2.2;
}
.mono {
  width: 100%;
}
.spoke {
  position: absolute;
  padding: 10px;
  font-size: clamp(12px, 4cqw, 16px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(242, 240, 234, 0.66);
  white-space: nowrap;
  transition: color 0.25s;
}
.spoke:hover,
.spoke.active {
  color: var(--accent);
}
.nw {
  right: 85%;
  bottom: 85%;
  text-align: right;
}
.ne {
  left: 85%;
  bottom: 85%;
}
.se {
  left: 85%;
  top: 85%;
}
.sw {
  right: 85%;
  top: 85%;
  text-align: right;
}
.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.spawning .ring {
  transform-origin: center;
  animation: ringIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.spawning .ring path {
  stroke-dasharray: 1;
  animation: drawArc 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.1s + var(--i) * 0.09s);
}
.spawning .spoke {
  animation: spokeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.42s + var(--i) * 0.09s);
}
.spawning .brand {
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s backwards;
}
.spawning .foot {
  animation: riseUp 0.7s ease 0.95s backwards;
}
@keyframes ringIn {
  from {
    transform: scale(0.93);
  }
  to {
    transform: scale(1);
  }
}
@keyframes drawArc {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes spokeIn {
  from {
    opacity: 0;
    transform: translate(var(--ox, 0px), var(--oy, 0px));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.nw {
  --ox: 7px;
  --oy: 7px;
}
.ne {
  --ox: -7px;
  --oy: 7px;
}
.se {
  --ox: -7px;
  --oy: -7px;
}
.sw {
  --ox: 7px;
  --oy: -7px;
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes riseUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spawning .ring,
  .spawning .ring path,
  .spawning .spoke,
  .spawning .brand,
  .spawning .foot {
    animation: none;
  }
}

/* ---------- шапка ленты (components/AppBar) ---------- */
.appbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px 14px;
  position: relative;
  z-index: 3;
}
.barMark {
  width: 27px;
  flex: none;
}
.iconbtn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: 16px;
  flex: none;
}
.back {
  color: var(--text);
}
/* Кнопка «⇅» (сортировка по цене) подсвечивается, пока сортировка активна. */
.iconbtn[aria-pressed='true'] {
  color: var(--accent);
}
.appbarSpacer {
  flex: 1;
}
.actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}
.titleWordmark {
  font-size: 13px;
  letter-spacing: 0.34em;
}
/* «Мята» + маленький тег «Lounge» под ней, у правого края слова (ближе
   к букве «А»). Строго друг под другом столбцом — никакого смешивания
   с выравниванием по базовой линии соседних иконок, чтобы не «плыло». */
.brandLockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.loungeTag {
  display: block;
  font-size: 6.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 3px 0 0 11px;
}
.smallWordmark {
  font-size: 12px;
}

/* ---------- вкладки (components/Tabs) ---------- */
.tabs {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 24px 0;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--faint);
  padding-bottom: 9px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}
.tab[aria-pressed='true'] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tabsSub {
  /* Ряд обрезается ровно по полям контента (24px), а не по краю экрана,
     и прилипает к началу вкладок — подписи не режутся на полуслове у
     левого края; справа вместо обрубка — мягкое затухание. */
  position: relative;
  padding-top: 14px;
  padding-left: 0;
  padding-right: 0;
  margin: 0 24px;
  cursor: grab;
  touch-action: pan-x;
}
.pad .tabsSub {
  margin-left: 0;
  margin-right: 0;
}
.tabsSub.fadeR {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}
.tabsSub.fadeL {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px);
  mask-image: linear-gradient(to right, transparent, #000 36px);
}
.tabsSub.fadeL.fadeR {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
.tabsSub.dragging,
.tabsSub.scrub {
  scroll-snap-type: none;
}
.tabsSub.dragging {
  cursor: grabbing;
  user-select: none;
}
/* зажатие и скролл (свайп): держим вкладку ~0,24 с — включается скраб,
   выбор идёт за пальцем; активная вкладка слегка «подпрыгивает». */
.tabsSub.scrub,
.tabsMain.scrub,
.tabsMain.dragging {
  user-select: none;
}
.tabsMain.dragging {
  cursor: grabbing;
}
.tabs.scrub .tab {
  transition:
    color 0.12s ease,
    border-color 0.3s ease;
}
/* Раньше активную вкладку во время скраба ещё и увеличивали (scale) —
   на border-bottom это давало смазанный, «корявый» край при неровном
   масштабе. Вместо геометрии — мягкое свечение, оно границу не трогает. */
.tabs.scrub .tab[aria-pressed='true'] {
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 65%, transparent);
}
.tabsSub .tab {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 400;
  padding-bottom: 7px;
}
.tabsSub .tab[aria-pressed='true'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
/* четыре главных раздела (Сезонное/Кухня/Бар/Кальяны): раньше жались
   к левому краю с большими рваными промежутками. Теперь делим строку
   на четыре равные ячейки и центрируем подпись в каждой — вкладки
   растянуты на всю ширину экрана, но без гигантских пустых разрывов. */
.tabsMain {
  justify-content: flex-start;
  gap: 0;
  overflow: visible;
}
.tabsMain .tab {
  flex: 1 1 0;
  text-align: center;
}
.tabline {
  height: 1px;
  background: var(--line);
  margin: 0 24px;
}

/* ---------- лента меню (screens/MenuScreen) ---------- */
.feed {
  display: flex;
  flex-direction: column;
}
.rule {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.ruleText {
  margin: 0;
}
/* ряд категорий кухни: сворачивается по высоте и гаснет вне «Кухни» */
.subrow {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease;
}
.subrowOpen {
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease;
}
.subrowClip {
  min-height: 0;
  overflow: hidden;
}

/* ---------- карточка позиции: общая анатомия для кухни и бара
   (components/DishItem + components/BarSection — у оригинала они почти
   дословно совпадают, здесь одно правило на оба) ---------- */
.item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.card {
  display: block;
  width: 100%;
}
.cardShot {
  aspect-ratio: 3 / 2;
  border-radius: var(--r);
}
/* коктейли и кальяны сняты вертикально — карточка 3:4, чтобы бокал не резался */
.cardShotTall {
  aspect-ratio: 3 / 4;
}
.iconbtn .ico {
  display: block;
}
.card.noPhoto .meta {
  margin-top: 0;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-top: 17px;
}
.meta h3 {
  font-size: 21px;
  line-height: 1.22;
}
.metaPrice {
  font-size: 16px;
  color: var(--sand);
}
.gram {
  margin-top: 9px;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}
.cardLede {
  margin-top: 12px;
}
/* стоп-лист */
.out .cardShot {
  filter: grayscale(1);
  opacity: 0.32;
}
.out .meta h3,
.out .metaPrice {
  color: var(--faint);
}
.stop {
  display: inline-block;
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

/* раскрывающаяся часть карточки блюда */
.body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    visibility 0s linear 0.5s;
}
.open .body {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease 0.08s,
    visibility 0s;
}
.bodyInner {
  min-height: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.open .bodyInner {
  transform: none;
}
.noDataLede {
  font-size: 11.5px;
}
.plusrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text);
}
.plusrow .q {
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.25s;
  line-height: 1;
}
.plusrow[aria-expanded='true'] .q {
  transform: rotate(45deg);
}
.detailWrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    visibility 0s linear 0.45s;
}
.detailOpen {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease 0.06s,
    visibility 0s;
}
.detailClip {
  min-height: 0;
  overflow: hidden;
}
.detail {
  padding: 20px 0 4px;
  border-bottom: 1px solid var(--line);
}
.detail .lbl {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.detail p {
  margin: 9px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
}
.detail .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.detail .cell span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.detail .cell b {
  font-size: 19px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.detail .blk {
  margin-top: 20px;
}
.collapse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  margin-top: 14px;
  padding: 4px 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.collapse:hover {
  color: var(--text);
}
.collapse .chev {
  font-size: 11px;
  line-height: 1;
  color: var(--accent);
}

/* ---------- акцентный блок ленты (components/Promo) ---------- */
.promo {
  padding: 30px 22px;
  margin: 28px -22px;
  border-top: 1px solid rgba(205, 142, 107, 0.3);
  border-bottom: 1px solid rgba(205, 142, 107, 0.3);
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--green) 34%, transparent),
    transparent 62%
  );
}
.promoLead {
  margin-top: 6px;
}
.promo h3 {
  font-size: 25px;
  margin: 13px 0 0;
  line-height: 1.16;
  max-width: 15ch;
}
.promo p {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.65;
  max-width: 34ch;
}
.promoRow {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.promoRow::-webkit-scrollbar {
  display: none;
}
.promoMini {
  flex: none;
  width: 118px;
}
.promoMiniShot {
  aspect-ratio: 1;
  border-radius: var(--r);
}
.promoMini b {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 9px;
  line-height: 1.25;
}
.promoMini span {
  font-size: 11px;
  color: var(--faint);
}

/* карусель акций: слайды листаются свайпом с прилипанием */
.promoSwipe {
  position: relative;
  margin: 28px -22px;
  border-top: 1px solid rgba(205, 142, 107, 0.3);
  border-bottom: 1px solid rgba(205, 142, 107, 0.3);
}
.promoTrack {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.promoTrack::-webkit-scrollbar {
  display: none;
}
.promoTrack > .promo {
  flex: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  padding-bottom: 42px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.promoSwipe .promoDots {
  left: 22px;
  right: auto;
  bottom: 22px;
}
/* вкладка «Акции»: все акции списком */
.promoList .promo {
  margin: 0 -22px;
}
.promoList .promo + .promo {
  border-top: 0;
}
.promoList {
  padding-top: 22px;
}

/* ---------- барная карта (components/BarSection) ---------- */
.grouphead {
  padding: 28px 0 2px;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 700;
}
.barrow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.barrow b {
  font-size: 16px;
  font-weight: 400;
}
.barrowMeta {
  flex-basis: 100%;
  font-size: 11px;
  line-height: 1.5;
  color: var(--faint);
}
.vol {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.barFill {
  flex: 1;
}
.rowPrice {
  font-size: 14px;
  color: var(--dim);
}
.barnote {
  margin: 24px 0 0;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.7;
}

/* ---------- фото позиции (components/Shot) ---------- */
.shot {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* фоном — размытое 16px-превью из lqip.js (инлайн-стиль), видно сразу;
     настоящее фото перекрывает его по готовности */
  background-color: var(--surface);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* мороженое снято сверху не по центру — cover обрезал бы верх шарика,
   contain показывает кадр целиком; поля от contain красим в чёрный
   (цвет фона самого кадра), а не в зелёный --surface остальных карточек */
.iceCreamShot,
.iceCreamShot img {
  background-color: #000;
}
.iceCreamShot img {
  object-fit: contain;
}
/* раскрытие карточки без анимации (когда закрываем предыдущую) */
.noAnim .body,
.noAnim .bodyInner,
.noAnim .detailWrap {
  transition: none !important;
}
.swipe {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  width: 100%;
  height: 100%;
}
.swipe::-webkit-scrollbar {
  display: none;
}
.swipe > * {
  flex: none;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}
.nophoto {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, #0a140c 0 16px, #0d1810 16px 32px);
}
.nophoto span {
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line-2);
  padding: 6px 11px;
}
.compact .nophoto span {
  display: none;
}
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 5px;
  justify-content: center;
  pointer-events: none;
}
.dots i {
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  display: block;
}
.dots i.on {
  background: var(--accent);
}

/* ---------- поиск (screens/SearchScreen) ---------- */
.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line-2);
}
.searchbar input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 19px;
  outline: none;
}
.searchbar input::placeholder {
  color: var(--faint);
}
.glyph {
  font-size: 15px;
}
.resrow {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.resShot {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--r);
}
.resT {
  flex: 1;
  min-width: 0;
}
.resrow b {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}
.resrow span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resrow .resPrice {
  font-size: 13px;
  color: var(--dim);
}

/* ---------- модалка «Мятные правила» (кнопка «i» — обычная .iconbtn,
   без отдельного стиля, как и остальные кнопки шапки) ---------- */
.modalRoot {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.modalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.modalOpen .modalBackdrop {
  opacity: 1;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.55);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.modalOpen .sheet {
  transform: none;
}
/* закреплённая шапка шторки: «ручка» для свайпа + крестик всегда под пальцем */
.sheetTop {
  flex: none;
  padding: 8px 12px 6px 24px;
  border-bottom: 1px solid var(--line);
  touch-action: none;
}
.sheetGrip {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 4px;
  border-radius: 2px;
  background: var(--line-2);
}
.sheetHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheetClose {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-right: -4px;
  color: var(--text);
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.sheetClose:active {
  background: var(--raise);
}
.sheetBody {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 18px 24px 24px;
}
.sheetBody::-webkit-scrollbar {
  display: none;
}
.sheetTitle {
  font-size: 26px;
  margin: 0;
  line-height: 1.18;
}
.sheetLede {
  margin-top: 10px;
}
.sheetRules {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.sheetRules .rule {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  padding: 14px 0;
}
.sheetRules .rule:first-child {
  border-top: 1px solid var(--line);
}
.ruleNum {
  padding-top: 3px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.sheetRules .ruleText {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.sheetRules .ruleText b {
  color: var(--sand);
  font-weight: 700;
}
.sheetBody .plusrow {
  margin-top: 0;
  border-top: 0;
  min-height: 52px;
  font-size: 15px;
}
.sheetFoot {
  flex: none;
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sheetOk {
  width: 100%;
  height: 50px;
  text-align: center;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.sheetOk:active {
  opacity: 0.85;
}
/* пока шторка открыта, страница под ней не скроллится */
html.sheetLock,
html.sheetLock body {
  overflow: hidden;
  overscroll-behavior: none;
}
@media (min-width: 700px) {
  .sheet {
    bottom: 24px;
    border: 1px solid var(--line-2);
    max-height: calc(100vh - 48px);
  }
}
.storeRow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
/* Просто логотип-ссылка — без рамки, без подписи; тап переносит в магазин. */
.storeLogo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  color: var(--accent);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.storeLogo svg,
.storeLogo img {
  display: block;
  width: auto;
  height: 100%;
}
.storeLogo:hover,
.storeLogo:active {
  opacity: 0.78;
  transform: scale(1.08);
}
