/*
Theme Name: Сегодня Можно
Theme URI: https://segodnyamozhna.ru
Author: Сегодня Можно
Description: Своя тема для караоке-бара и доставки в Нижнем Ломове. Тёмная кинематографичная подача, живое меню из API бэкенда, никаких конструкторов.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: segodnya
*/

/* ══════════════════════════════  ШРИФТЫ  ══════════════════════════════════ */
/* Свои файлы, без обращений к внешним доменам: при ограничениях мобильного
   интернета Google Fonts может не догрузиться, и сайт останется без шрифта. */

@font-face {
  font-family: 'SM';
  src: url('assets/fonts/FiraSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SM';
  src: url('assets/fonts/FiraSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SM';
  src: url('assets/fonts/FiraSans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SM';
  src: url('assets/fonts/FiraSans-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SM';
  src: url('assets/fonts/FiraSans-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ══════════════════════════════  ПЕРЕМЕННЫЕ  ══════════════════════════════ */

:root {
  --ink:      #07070A;
  --ink-2:    #0D0D12;
  --ink-3:    #14141B;
  --paper:    #F4F1EA;
  --flame:    #FF6723;
  --flame-dk: #D9501A;
  --gold:     #C9A96E;
  --white:    #FFFFFF;
  --muted:    rgba(255,255,255,.56);
  --muted-2:  rgba(255,255,255,.34);
  --hair:     rgba(255,255,255,.10);

  --font: 'SM', 'Fira Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1440px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ══════════════════════════════  СБРОС  ═══════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  overflow-x: hidden;           /* никакой горизонтальной прокрутки */
  -webkit-font-smoothing: antialiased;
}

img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: .92; letter-spacing: -.035em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--flame); color: #fff; }

/* Плёночное зерно поверх всей страницы — даёт «киношную» фактуру,
   без него плоские тёмные заливки выглядят пусто. */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ══════════════════════════════  ШАПКА  ═══════════════════════════════════ */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
}
.hdr.is-stuck {
  background: rgba(7,7,10,.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hair);
  padding-block: 12px;
}

.logo { display: flex; align-items: baseline; gap: .4em; font-weight: 900; letter-spacing: -.04em; font-size: 19px; text-transform: uppercase; }
.logo b { color: var(--flame); }
.logo span { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--muted-2); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a {
  position: relative;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--flame);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 13px 26px; border-radius: 100px;
  font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  will-change: transform;
}
.btn-flame { background: var(--flame); color: #fff; box-shadow: 0 10px 34px -8px rgba(255,103,35,.6); }
.btn-flame:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 44px -8px rgba(255,103,35,.75); }
.btn-ghost { border: 1.5px solid var(--hair); color: var(--white); }
.btn-ghost:hover { border-color: var(--flame); color: var(--flame); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 14px; }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger i { display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: .3s var(--ease); }
.burger i::before, .burger i::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; transition: .3s var(--ease); }
.burger i::before { top: -7px; } .burger i::after { top: 7px; }
.is-open .burger i { background: transparent; }
.is-open .burger i::before { top: 0; transform: rotate(45deg); }
.is-open .burger i::after { top: 0; transform: rotate(-45deg); }

/* ══════════════════════════════  ГЕРОЙ  ═══════════════════════════════════ */

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 22s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }

/* Двойной градиент: снизу для читаемости текста, сбоку для объёма */
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(7,7,10,.72) 38%, rgba(7,7,10,.25) 70%, rgba(7,7,10,.55) 100%),
    linear-gradient(100deg, rgba(7,7,10,.75) 0%, transparent 55%);
}

/* Пятно света идёт за курсором — оживляет статичную фотографию */
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(255,103,35,.16), transparent 70%);
  transition: opacity .5s;
}

.hero__in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(38px, 7vh, 90px); }

.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: clamp(16px, 3vh, 28px);
  font-size: 11px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.hero__kicker::before { content: ''; width: 46px; height: 1px; background: var(--gold); }

/* Главный заголовок: первое слово залито, второе — контуром.
   Контур делает надпись «плакатной» и не спорит с фотографией. */
.hero h1 { font-size: clamp(52px, 13.5vw, 210px); text-transform: uppercase; }
.hero h1 .l1 { display: block; }
.hero h1 .l2 {
  display: block; color: transparent;
  -webkit-text-stroke: clamp(1.5px, .28vw, 3.5px) var(--flame);
  text-stroke: clamp(1.5px, .28vw, 3.5px) var(--flame);
}
.hero__sub {
  max-width: 46ch; margin-top: clamp(18px, 3vh, 30px);
  font-size: clamp(15px, 1.35vw, 20px); line-height: 1.5; color: var(--muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vh, 38px); }

.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(38px, 7vh, 90px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2);
  writing-mode: vertical-rl;
}
.hero__scroll::after { content: ''; width: 1px; height: 54px; background: linear-gradient(var(--flame), transparent); }

/* ══════════════════════════════  БЕГУЩАЯ СТРОКА  ═════════════════════════ */

.ticker {
  border-block: 1px solid var(--hair);
  background: var(--ink-2);
  overflow: hidden; padding: 16px 0;
}
.ticker__row { display: flex; width: max-content; animation: slide 34s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font-size: clamp(13px, 1.5vw, 19px); font-weight: 900; letter-spacing: -.01em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap;
}
.ticker span b { color: var(--flame); }
.ticker span::after { content: '✦'; color: var(--gold); font-size: .7em; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker__row { animation-play-state: paused; }

/* ══════════════════════════════  СЕКЦИИ  ═════════════════════════════════ */

.sec { position: relative; padding: clamp(64px, 11vh, 150px) 0; }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--ink2 { background: var(--ink-2); }

.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vh, 64px); }
.sec__num { font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--flame); text-transform: uppercase; }
.sec h2 { font-size: clamp(34px, 6.6vw, 92px); text-transform: uppercase; margin-top: 12px; }
.sec--paper h2 { color: var(--ink); }
.sec__lead { max-width: 42ch; font-size: clamp(15px, 1.2vw, 18px); color: var(--muted); }
.sec--paper .sec__lead { color: rgba(7,7,10,.62); }

/* ── Цифры ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--hair); }
.stat { background: var(--ink); padding: clamp(24px, 4vw, 44px) clamp(18px, 2.5vw, 34px); }
.stat b { display: block; font-size: clamp(38px, 6vw, 78px); font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.stat b em { font-style: normal; color: var(--flame); }
.stat span { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

/* ── Залы ── */
.halls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(14px, 2vw, 26px); }
.hall { position: relative; overflow: hidden; border-radius: 20px; min-height: clamp(380px, 52vh, 560px); display: flex; align-items: flex-end; isolation: isolate; }
.hall picture, .hall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.1s var(--ease); }
.hall::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,7,10,.94) 8%, rgba(7,7,10,.35) 52%, transparent 85%); }
.hall:hover img { transform: scale(1.07); }
.hall__in { padding: clamp(22px, 3vw, 38px); }
.hall__tag { display: inline-block; margin-bottom: 12px; padding: 6px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 100px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); backdrop-filter: blur(6px); }
.hall h3 { font-size: clamp(26px, 3.4vw, 44px); text-transform: uppercase; }
.hall p { margin-top: 10px; max-width: 34ch; font-size: 14px; color: rgba(255,255,255,.72); }

/* ── Караоке: полноэкранная полоса ── */
.karaoke { position: relative; min-height: clamp(460px, 78vh, 760px); display: grid; place-items: center; text-align: center; overflow: hidden; }
.karaoke picture, .karaoke img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.karaoke::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(7,7,10,.42) 0%, rgba(7,7,10,.88) 68%); }
.karaoke__in { position: relative; z-index: 2; padding: 0 var(--pad); }
.karaoke__big { font-size: clamp(58px, 15vw, 230px); font-weight: 900; line-height: .84; letter-spacing: -.05em; }
.karaoke__big em { font-style: normal; color: transparent; -webkit-text-stroke: clamp(1.5px, .25vw, 3px) var(--gold); }
.karaoke p { margin: clamp(18px, 3vh, 30px) auto 0; max-width: 50ch; font-size: clamp(15px, 1.3vw, 19px); color: var(--muted); }

/* ── Живое меню ── */
.mtabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: clamp(22px, 3vh, 34px); scrollbar-width: none; }
.mtabs::-webkit-scrollbar { display: none; }
.mtab {
  flex: 0 0 auto; padding: 11px 20px; border: 1px solid var(--hair); border-radius: 100px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; transition: .28s var(--ease);
}
.mtab:hover { color: var(--white); border-color: rgba(255,255,255,.3); }
.mtab.is-on { background: var(--flame); border-color: var(--flame); color: #fff; }

.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.mcard { background: var(--ink-3); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.mcard:hover { transform: translateY(-5px); border-color: rgba(255,103,35,.42); }
.mcard__img { position: relative; aspect-ratio: 1/1; background: #0A0A0E; overflow: hidden; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.mcard:hover .mcard__img img { transform: scale(1.06); }
.mcard__b { padding: 15px 16px 17px; }
.mcard h4 { font-size: 15px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.mcard__d { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__p { margin-top: 12px; font-size: 17px; font-weight: 900; color: var(--flame); letter-spacing: -.02em; }

.mnote { margin-top: clamp(24px, 4vh, 40px); padding: 20px 22px; border: 1px dashed var(--hair); border-radius: 14px; font-size: 14px; color: var(--muted); }
.mnote b { color: var(--white); }

/* ── Доставка ── */
.deliv { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .deliv { grid-template-columns: 1.05fr .95fr; } }
.deliv__img { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; }
.deliv__img img { width: 100%; height: 100%; object-fit: cover; }
.deliv__badge { position: absolute; left: 18px; bottom: 18px; padding: 12px 18px; border-radius: 100px; background: rgba(7,7,10,.78); backdrop-filter: blur(10px); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.deliv__badge b { color: var(--flame); }
.zones { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.zone { padding: 7px 13px; border: 1px solid var(--hair); border-radius: 100px; font-size: 12px; color: var(--muted); }
.dlist { margin-top: 26px; display: grid; gap: 14px; }
.dlist li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.dlist b { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,103,35,.14); color: var(--flame); display: grid; place-items: center; font-size: 12px; font-weight: 900; }

/* ── Мозаика атмосферы ── */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 1.2vw, 16px); }
@media (min-width: 760px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
.mos { position: relative; overflow: hidden; border-radius: 14px; }
.mos img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: grayscale(.35) contrast(1.06); }
.mos:hover img { transform: scale(1.08); filter: grayscale(0) contrast(1); }
.mos--tall { grid-row: span 2; }
.mos--wide { grid-column: span 2; }
.mos::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,7,10,.5), transparent 60%); opacity: .9; }

/* ── Бронирование ── */
.book { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(34px, 6vw, 84px); background: linear-gradient(135deg, #16110E 0%, #0B0B0F 60%); border: 1px solid rgba(255,103,35,.2); }
.book::before { content: ''; position: absolute; right: -12%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,103,35,.2), transparent 65%); }
.book__in { position: relative; z-index: 1; max-width: 60ch; }
.book h2 { font-size: clamp(32px, 5.4vw, 74px); text-transform: uppercase; }
.book p { margin-top: 18px; font-size: clamp(15px, 1.2vw, 18px); color: var(--muted); }
.book__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── Контакты ── */
.cont { display: grid; gap: clamp(22px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cont__i span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--flame); margin-bottom: 10px; }
.cont__i p, .cont__i a { font-size: clamp(16px, 1.5vw, 21px); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.cont__i a:hover { color: var(--flame); }

/* ══════════════════════════════  ПОДВАЛ  ═════════════════════════════════ */

.ftr { border-top: 1px solid var(--hair); padding: clamp(34px, 5vw, 60px) 0 30px; background: var(--ink-2); }
.ftr__top { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.ftr__big { font-size: clamp(30px, 6vw, 86px); font-weight: 900; text-transform: uppercase; letter-spacing: -.045em; line-height: .9; }
.ftr__big em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--flame); }
.ftr__nav { display: grid; gap: 10px; }
.ftr__nav a { font-size: 13px; color: var(--muted); }
.ftr__nav a:hover { color: var(--flame); }
.ftr__bot { margin-top: clamp(28px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }

/* ══════════════════════════════  АНИМАЦИИ ПОЯВЛЕНИЯ  ═════════════════════ */

.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }

/* ══════════════════════════════  МОБИЛЬНОЕ  ══════════════════════════════ */

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: 99;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(7,7,10,.97); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav a { font-size: 20px; }
  .is-open .nav { opacity: 1; visibility: visible; }
  .hdr .btn-flame { display: none; }
  .is-open .nav .btn-flame { display: inline-flex; }
  .hero__scroll { display: none; }
  .hero { align-items: center; }
  .hero__in { padding-block: 108px 54px; }
  .mos--tall { grid-row: span 1; }
}

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .hero__bg img { transform: none; }
}

/* Печать: незачем тратить чернила на тёмный фон */
@media print {
  body { background: #fff; color: #000; }
  .hdr, .hero__glow, .ticker, body::after { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ВАЙБ: тёплая ночная гамма, интимный свет, поздний вечер
   ────────────────────────────────────────────────────────────────────────
   Что изменилось и почему:
   • Ровный оранжевый читался «корпоративно». Добавлены вино и угли —
     теплее, ближе к свету настольной лампы, а не к вывеске.
   • Плотная виньетка по краям: кадр смотрится как снятый в полумраке.
   • Ключевые фразы набраны наклонным — читаются как сказанные вслух.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --wine:  #6E1B28;   /* вино в бокале на просвет */
  --ember: #FF3D2E;   /* угли, горячее оранжевого */
  --blush: #E8837A;   /* приглушённый розовый для акцентов в тексте */
}

/* Общая виньетка страницы — свет только в центре, края уходят в темноту */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(7,7,10,.5) 100%);
}

/* ── Герой: теплее и глубже ── */
.hero__bg::after {
  background:
    linear-gradient(to top, var(--ink) 3%, rgba(12,7,8,.78) 36%, rgba(20,8,10,.28) 68%, rgba(7,7,10,.6) 100%),
    linear-gradient(100deg, rgba(20,8,10,.8) 0%, transparent 58%),
    radial-gradient(70% 55% at 22% 78%, rgba(110,27,40,.34), transparent 70%);
}
.hero__bg img { animation-duration: 30s; filter: saturate(1.08) contrast(1.04); }
.hero__glow { background: radial-gradient(460px circle at var(--mx,50%) var(--my,40%), rgba(255,61,46,.2), rgba(110,27,40,.1) 45%, transparent 72%); }
.hero h1 .l2 { -webkit-text-stroke-color: var(--ember); }
.hero__kicker { color: var(--blush); }
.hero__kicker::before { background: linear-gradient(90deg, transparent, var(--blush)); }

/* ── Живая строка «Сегодня можно…» ── */
/* Смысл: название бара — уже намёк. Продолжения подставляются по очереди,
   и каждый достраивает своё. Это работает лучше любой прямолинейности. */
.cycle {
  margin-top: clamp(16px, 2.6vh, 26px);
  font-size: clamp(17px, 2.1vw, 30px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.25;
}
.cycle__fixed { color: rgba(255,255,255,.5); }
.cycle__word {
  color: var(--white); font-style: italic; font-weight: 800;
  border-bottom: 2px solid var(--ember); padding-bottom: 2px;
  display: inline-block; min-width: 6ch;
  transition: opacity .38s var(--ease), transform .38s var(--ease);
}
.cycle__word.is-out { opacity: 0; transform: translateY(-8px) skewX(-6deg); }

/* ── Кнопки: тёплое пульсирующее свечение ── */
.btn-flame { background: linear-gradient(135deg, var(--ember), var(--flame-dk)); box-shadow: 0 10px 34px -8px rgba(255,61,46,.6); }
.btn-flame:hover { box-shadow: 0 18px 50px -8px rgba(255,61,46,.8); }
.btn-lg.btn-flame { animation: emberPulse 3.4s ease-in-out infinite; }
@keyframes emberPulse {
  0%, 100% { box-shadow: 0 10px 34px -8px rgba(255,61,46,.5); }
  50%      { box-shadow: 0 14px 46px -6px rgba(255,61,46,.78); }
}

/* ── Бегущая строка: горячее ── */
.ticker { background: linear-gradient(90deg, #100709, var(--ink-2) 40%, #0F0708); }
.ticker span b { color: var(--ember); }
.ticker span::after { color: var(--wine); }

/* ── Цифры: тёплая подсветка снизу ── */
.stat { position: relative; overflow: hidden; }
.stat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -60%;
  height: 100%; background: radial-gradient(ellipse at bottom, rgba(110,27,40,.4), transparent 70%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.stat:hover::after { opacity: 1; }
.stat b em { color: var(--ember); }

/* ── Залы: кадры выше и теплее, подпись ближе к телу ── */
.hall { min-height: clamp(440px, 66vh, 680px); }
.hall img { filter: saturate(1.06) contrast(1.05); }
.hall::after { background: linear-gradient(to top, rgba(10,5,7,.95) 6%, rgba(20,8,10,.42) 50%, transparent 84%); }
.hall__tag { color: var(--blush); border-color: rgba(232,131,122,.34); }
.hall__note { margin-top: 14px; font-style: italic; font-size: 14px; color: var(--blush); }

/* ── Караоке ── */
.karaoke::after { background: radial-gradient(ellipse at center, rgba(20,8,10,.34) 0%, rgba(7,7,10,.9) 66%); }
.karaoke__big em { -webkit-text-stroke-color: var(--blush); }

/* ══════════════════════  БЛОК «ПОСЛЕ 23:00»  ═══════════════════════════ */
/* Отдельная сцена: самая тёмная на странице, свет только от текста.
   Здесь и живёт тот самый вайб — намёком, без буквальности. */

.late {
  position: relative; overflow: hidden;
  padding: clamp(80px, 16vh, 190px) 0;
  background: #06050700;
}
.late::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(110,27,40,.42), transparent 68%),
    radial-gradient(50% 45% at 82% 72%, rgba(255,61,46,.16), transparent 70%),
    #060507;
}
.late__in { position: relative; z-index: 1; }
.late__time {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--blush);
}
.late__time i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); animation: emberBlink 2s ease-in-out infinite; }
@keyframes emberBlink { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.late h2 {
  margin-top: 20px;
  font-size: clamp(38px, 8.4vw, 132px); text-transform: uppercase; line-height: .86;
}
.late h2 em { font-style: italic; color: transparent; -webkit-text-stroke: clamp(1.5px,.22vw,3px) var(--blush); }
.late__lines { margin-top: clamp(24px, 4vh, 44px); display: grid; gap: 14px; max-width: 30ch; }
.late__lines p { font-size: clamp(16px, 1.5vw, 22px); line-height: 1.4; color: rgba(255,255,255,.72); }
.late__lines p b { color: var(--white); font-weight: 800; }
.late__whisper {
  margin-top: clamp(26px, 4vh, 46px);
  font-style: italic; font-size: clamp(15px, 1.3vw, 19px); color: var(--blush);
}

/* Крупный кадр справа, обрезанный по-интимному */
.late__grid { display: grid; gap: clamp(20px, 4vw, 54px); align-items: center; }
@media (min-width: 940px) { .late__grid { grid-template-columns: 1.1fr .9fr; } }
.late__ph { position: relative; border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 3/4; }
.late__ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.9) contrast(1.1) brightness(.86); transition: filter .9s var(--ease), transform 1.2s var(--ease); }
.late__ph:hover img { filter: saturate(1.1) contrast(1.05) brightness(1); transform: scale(1.04); }
.late__ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,5,7,.72), transparent 55%), radial-gradient(70% 60% at 50% 100%, rgba(110,27,40,.42), transparent 70%); }

/* ── Меню: чуть компактнее, чтобы не забирало всю страницу ── */
.mcard:hover { border-color: rgba(255,61,46,.5); box-shadow: 0 18px 40px -20px rgba(110,27,40,.7); }
.mcard__p { color: var(--ember); }
.mtab.is-on { background: linear-gradient(135deg, var(--ember), var(--flame-dk)); border-color: transparent; }

/* ── Мозаика: тёплый грейд вместо серого ── */
.mos img { filter: sepia(.18) saturate(.9) contrast(1.1) brightness(.9); }
.mos:hover img { filter: sepia(0) saturate(1.12) contrast(1.04) brightness(1); }
.mos::after { background: linear-gradient(to top, rgba(12,6,8,.6), transparent 62%); }

/* ── Бронь: жарче ── */
.book { background: linear-gradient(135deg, #1C0E0C 0%, #0A0509 62%); border-color: rgba(255,61,46,.24); }
.book::before { background: radial-gradient(circle, rgba(255,61,46,.24), transparent 66%); }
.book__whisper { margin-top: 16px; font-style: italic; color: var(--blush); font-size: clamp(15px,1.2vw,18px); }

/* ── Подвал ── */
.ftr__big em { -webkit-text-stroke-color: var(--ember); font-style: italic; }

/* Тем, кто просил меньше движения — гасим пульсацию и мигание */
@media (prefers-reduced-motion: reduce) {
  .btn-lg.btn-flame, .late__time i { animation: none !important; }
  .cycle__word { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ЗАЛЫ: РАЗВОРОТ ЖУРНАЛА
   ────────────────────────────────────────────────────────────────────────
   Было: два одинаковых прямоугольника в ряд. Симметрия успокаивает —
   отсюда и ощущение пресности. Плюс кадры вертикальные (1067×1600),
   а рамки были горизонтальные: object-fit выбрасывал две трети кадра
   и оставлял скучную середину.

   Стало: вертикальные рамки под вертикальные кадры, разная высота,
   второй сдвинут вниз. У каждого этажа свой свет: первый горячий,
   второй винный. Наведение гасит соседнюю карточку — взгляд фокусируется.
   ══════════════════════════════════════════════════════════════════════════ */

.spread { display: grid; gap: clamp(18px, 3vw, 40px); grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .spread { grid-template-columns: 1.06fr .94fr; align-items: start; }
  /* Сдвиг вниз ломает симметрию — главное, что делает блок живым */
  .spread__card--b { margin-top: clamp(70px, 13vh, 170px); }
}

.spread__card {
  position: relative; overflow: hidden; border-radius: 22px;
  display: flex; align-items: flex-end; isolation: isolate;
  aspect-ratio: 4/5;
  transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease);
}
@media (min-width: 900px) {
  .spread__card--a { aspect-ratio: 4/5; }
  .spread__card--b { aspect-ratio: 3/4; }   /* уже и выше — вторая нота */
}

/* Кадр внутри чуть больше рамки: остаётся запас под параллакс */
.spread__card picture, .spread__card img {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%;
  object-fit: cover; z-index: -2;
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
  will-change: transform;
}
.spread__card--a img { object-position: center 42%; filter: saturate(1.14) contrast(1.06); }
.spread__card--b img { object-position: center 38%; filter: saturate(.94) contrast(1.08) brightness(.94); }

/* Свет у каждого этажа свой */
.spread__card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
}
.spread__card--a::after {
  background:
    linear-gradient(to top, rgba(14,4,3,.96) 5%, rgba(20,7,6,.6) 34%, rgba(255,61,46,.13) 58%, transparent 86%),
    radial-gradient(80% 50% at 30% 100%, rgba(255,61,46,.24), transparent 68%);
}
.spread__card--b::after {
  background:
    linear-gradient(to top, rgba(8,4,9,.96) 5%, rgba(14,6,11,.62) 34%, rgba(110,27,40,.26) 58%, transparent 86%),
    radial-gradient(80% 50% at 70% 100%, rgba(110,27,40,.34), transparent 68%);
}

/* Огромный номер контуром — приём журнального разворота */
.spread__num {
  position: absolute; z-index: 2; pointer-events: none;
  top: clamp(-8px, -.6vw, 4px); left: clamp(12px, 2vw, 28px);
  font-size: clamp(86px, 15vw, 240px); font-weight: 900; line-height: .78;
  letter-spacing: -.07em; color: transparent;
}
.spread__card--a .spread__num { -webkit-text-stroke: clamp(1.5px,.2vw,3px) rgba(255,61,46,.42); }
.spread__card--b .spread__num { -webkit-text-stroke: clamp(1.5px,.2vw,3px) rgba(232,131,122,.34); }

/* Подпись этажа вертикально по краю */
.spread__side {
  position: absolute; z-index: 2; right: clamp(12px, 1.5vw, 22px); top: clamp(20px, 3vw, 36px);
  writing-mode: vertical-rl;
  font-size: 10px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.spread__card--a .spread__side { color: rgba(255,61,46,.75); }
.spread__card--b .spread__side { color: rgba(232,131,122,.7); }

.spread__in { position: relative; z-index: 1; padding: clamp(24px, 3.2vw, 44px); }
.spread__in h3 { font-size: clamp(28px, 3.8vw, 52px); text-transform: uppercase; }
.spread__in p { margin-top: 12px; max-width: 32ch; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.74); }
.spread__note { margin-top: 14px; font-style: italic; font-size: 14px; }
.spread__card--a .spread__note { color: #FFA98F; }
.spread__card--b .spread__note { color: var(--blush); }

/* Наведение: сосед гаснет, выбранный выходит вперёд.
   Работает только там, где есть мышь — на телефоне обе карточки в полную силу. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .spread:hover .spread__card { opacity: .38; filter: saturate(.45) brightness(.7); }
  .spread:hover .spread__card:hover { opacity: 1; filter: none; transform: translateY(-8px); }
  .spread__card:hover img { transform: scale(1.06); }
}

/* Параллакс: кадр внутри рамки едет медленнее страницы */
.spread__card img { transform: translate3d(0, var(--par, 0px), 0); }

@media (prefers-reduced-motion: reduce) {
  .spread__card img { transform: none !important; }
  .spread__card--b { margin-top: 0 !important; }
}

/* ── Шапка: убран дубль кнопки ── */
/* Была одна кнопка внутри меню (для телефона) и вторая снаружи —
   на большом экране показывались обе. Оставлена одна, внутри меню. */
.hdr > .btn-flame { display: none; }
@media (max-width: 860px) {
  .nav .btn-flame { display: inline-flex; }
}

/* ── Витрина меню: вес блюда и переход к доставке ───────────────────────── */

.mcard__f { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.mcard__p { margin-top: 0; }
.mcard__w {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted-2); white-space: nowrap;
}

/* Витрина — про «посмотрите, что у нас есть». Заказ живёт отдельно. */
.mcta {
  margin-top: clamp(26px, 4vh, 44px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--hair); border-radius: 18px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255,103,35,.10), transparent 62%),
    var(--ink-3);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(16px, 3vw, 32px); flex-wrap: wrap;
}
.mcta__t h3 {
  font-size: clamp(19px, 2.2vw, 25px); font-weight: 900;
  letter-spacing: -.02em; line-height: 1.15;
}
.mcta__t p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.mcta__t b { color: var(--white); }
.mcta__b { flex: 0 0 auto; }

@media (max-width: 640px) {
  .mcta { flex-direction: column; align-items: stretch; text-align: left; }
  .mcta__b { width: 100%; justify-content: center; text-align: center; }
}

/* ── Отдельная страница меню ────────────────────────────────────────────── */

.sec--tight { padding-block: clamp(34px, 5vh, 58px); }

.mhead { padding: calc(var(--hdr-h, 68px) + clamp(28px, 6vh, 64px)) 0 clamp(22px, 4vh, 40px); }
.mhead__back {
  display: inline-block; margin-bottom: 18px; font-size: 13px; font-weight: 700;
  color: var(--muted); transition: color .25s;
}
.mhead__back:hover { color: var(--flame); }
.mhead__h {
  margin-top: 6px; font-size: clamp(32px, 6vw, 66px); font-weight: 900;
  line-height: .98; letter-spacing: -.035em;
}
.mhead__lead { margin-top: 16px; max-width: 54ch; font-size: clamp(14px, 1.4vw, 16px); line-height: 1.6; color: var(--muted); }

/* Полоса с переключателем и якорями липнет к шапке */
.mbar {
  position: sticky; top: var(--hdr-h, 68px); z-index: 40;
  background: rgba(7,7,10,.82); backdrop-filter: blur(14px);
  border-block: 1px solid var(--hair);
}
.mbar__in { display: flex; align-items: center; gap: 18px; padding-block: 11px; flex-wrap: wrap; }

.mswitch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--hair); border-radius: 100px; flex: 0 0 auto; }
.mswitch__b {
  padding: 8px 18px; border-radius: 100px; font-size: 12px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; transition: .25s var(--ease);
}
.mswitch__b:hover { color: var(--white); }
.mswitch__b.is-on { background: var(--flame); color: #fff; }

.mjump { flex: 1 1 260px; min-width: 0; }
.mjump__set { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mjump__set::-webkit-scrollbar { display: none; }
.mjump a {
  flex: 0 0 auto; padding: 8px 15px; border: 1px solid var(--hair); border-radius: 100px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; transition: .25s var(--ease);
}
.mjump a:hover { color: var(--white); border-color: rgba(255,255,255,.32); }

/* Заголовок категории */
.mcat { display: flex; align-items: baseline; gap: 12px; margin-bottom: clamp(16px, 2.4vh, 26px); }
.mcat__h { font-size: clamp(21px, 2.6vw, 31px); font-weight: 900; letter-spacing: -.025em; }
.mcat__n {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted-2);
  padding: 3px 9px; border: 1px solid var(--hair); border-radius: 100px;
}

/* На странице меню состав показываем целиком */
.mcard__d--full { -webkit-line-clamp: 4; }

/* Ярлык категории на витрине главной */
.mcard__img { position: relative; }
.mcard__cat {
  position: absolute; left: 9px; top: 9px; padding: 4px 10px; border-radius: 100px;
  background: rgba(7,7,10,.72); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); pointer-events: none;
}

.mcta__row { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }

/* Якорь не должен уезжать под липкую полосу */
[id^="c-"] { scroll-margin-top: calc(var(--hdr-h, 68px) + 62px); }

@media (max-width: 640px) {
  .mbar__in { gap: 10px; }
  .mswitch { width: 100%; }
  .mswitch__b { flex: 1 1 0; text-align: center; }
  .mcta__row { width: 100%; }
  .mcta__row .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* ══════════════  ПРАВКИ ПОСЛЕ ПРОСМОТРА СТРАНИЦЫ МЕНЮ  ══════════════════ */

/* 1. Скрытая вкладка обязана прятаться.
      Атрибут hidden даёт display:none из браузерных стилей, но наш
      display:flex его перебивал — из-за этого на странице торчали
      якоря сразу двух витрин, и строка вылезала за экран. */
.mjump__set[hidden],
.mscope[hidden]      { display: none !important; }

/* 2. Заголовок категории. Правило «.sec h2» задаёт до 92px и капс —
      для списка из 26 категорий это выглядит как таран. */
.sec .mcat__h {
  font-size: clamp(20px, 2.4vw, 30px);
  text-transform: none;
  margin-top: 0;
  letter-spacing: -.025em;
}

/* 3. Цена должна стоять по нижнему краю карточки, иначе в ряду
      она пляшет по высоте вслед за длиной состава. */
.mcard      { display: flex; flex-direction: column; }
.mcard__b   { display: flex; flex-direction: column; flex: 1 1 auto; }
.mcard__f   { margin-top: auto; padding-top: 12px; }
.mcard__d   { margin-bottom: 2px; }

/* 4. Липкая полоса: одна строка, чипы прокручиваются пальцем.
      min-width нужен на каждом уровне, иначе флекс не даёт сжаться. */
.mbar__in   { flex-wrap: nowrap; min-width: 0; }
.mjump      { flex: 1 1 auto; min-width: 0; }
.mjump__set { min-width: 0; }

/* Тень справа подсказывает, что чипы можно листать */
.mjump {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

/* 5. Высота шапки задана отступами, а не переменной — считаем честно,
      чтобы липкая полоса и якоря не наезжали. */
:root { --hdr-h: 74px; }
@media (max-width: 900px) { :root { --hdr-h: 66px; } }

@media (max-width: 640px) {
  /* На телефоне переключатель отдельной строкой, якоря под ним */
  .mbar__in { flex-wrap: wrap; }
  .mjump    { flex: 1 1 100%; }
  .mcat__n  { display: none; }
}

/* ══════════════  ПЛОТНОСТЬ СЕТКИ НА ТЕЛЕФОНЕ  ══════════════════════════ */

/* В меню 214 позиций. По одной карточке на экран — это бесконечная
   прокрутка, гость не долистает. Ставим две колонки и ужимаем текст. */
@media (max-width: 700px) {
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .mcard__b { padding: 11px 12px 13px; }
  .mcard h4 { font-size: 13px; }
  .mcard__d { font-size: 11px; -webkit-line-clamp: 2; }
  .mcard__d--full { -webkit-line-clamp: 3; }
  .mcard__p { font-size: 15px; }
  .mcard__w { font-size: 10px; }
  .mcard__f { padding-top: 9px; }

  /* Ярлык категории на витрине главной мельче, иначе перекрывает фото */
  .mcard__cat { font-size: 9px; padding: 3px 7px; left: 6px; top: 6px; }
}

/* На совсем узких экранах два столбца уже не читаются */
@media (max-width: 380px) {
  .mgrid { grid-template-columns: 1fr; }
  .mcard h4 { font-size: 15px; }
  .mcard__d { font-size: 12px; }
}

/* ══════════════════════  СТРАНИЦА МЕНЮ  ══════════════════════════════════
   Двести с лишним позиций в двадцати шести категориях. Одной лентой
   категорий пользоваться нельзя: напитки уезжают за правый край и их
   не находят. Поэтому слева дерево «раздел → категория», справа блюда.
   Карточка без рамки: фото, имя, состав в две строки, цена. Все одной
   высоты, поэтому сетка не рвётся.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Заголовок страницы ──────────────────────────────────────────────── */
.mpage .mhead { padding: calc(var(--hdr-h, 74px) + clamp(24px, 4vh, 46px)) 0 clamp(18px, 2.6vh, 30px); }
.mpage .mhead__back {
  display: inline-block; margin-bottom: 13px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-2); transition: color .25s;
}
.mpage .mhead__back:hover { color: var(--flame); }
.mpage .mhead__h {
  font-size: clamp(30px, 5.2vw, 58px); font-weight: 900;
  line-height: .96; letter-spacing: -.035em;
}
.mpage .mhead__lead {
  margin-top: 13px; max-width: 46ch;
  font-size: clamp(14px, 1.3vw, 16px); line-height: 1.55; color: var(--muted);
}

/* ── Липкая полоса с переключателем витрин ───────────────────────────── */
.mbar {
  position: sticky; top: var(--hdr-h, 74px); z-index: 45;
  background: rgba(7,7,10,.92); backdrop-filter: blur(16px);
  border-block: 1px solid var(--hair);
}
.mbar__in { display: flex; align-items: center; gap: 14px; padding-block: 10px; min-width: 0; }

.mswitch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--hair); border-radius: 100px; flex: 0 0 auto; }
.mswitch__b {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; transition: .25s var(--ease);
}
.mswitch__b i { font-style: normal; font-size: 10px; opacity: .6; }
.mswitch__b:hover { color: var(--white); }
.mswitch__b.is-on { background: var(--flame); color: #fff; }
.mswitch__b.is-on i { opacity: .85; }

/* Кнопка «Разделы» нужна только на узких экранах, где дерево прячется */
.mnavbtn {
  display: none; margin-left: auto; flex: 0 0 auto;
  padding: 9px 18px; border: 1px solid var(--hair); border-radius: 100px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); transition: .25s var(--ease);
}
.mnavbtn:hover, .mnavbtn[aria-expanded="true"] { color: var(--white); border-color: rgba(255,255,255,.3); }

/* ── Раскладка: дерево слева, блюда справа ───────────────────────────── */
.mlay {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
}

/* Полоса прокрутки съедала цифры справа, поэтому уводим её за край
   отрицательным полем и возвращаем отступ padding-ом. */
.mnav {
  position: sticky; top: calc(var(--hdr-h, 74px) + 58px);
  max-height: calc(100vh - var(--hdr-h, 74px) - 78px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
  margin-right: -14px; padding: 26px 14px 40px 0;
}
.mnav::-webkit-scrollbar { width: 0; height: 0; }
.mnav__scope[hidden] { display: none !important; }

.mnav__g + .mnav__g { margin-top: 20px; }
.mnav__gh {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
  color: var(--white); transition: color .22s;
}
.mnav__gh i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--muted-2); }
.mnav__gh:hover { color: var(--flame); }

.mnav__l { margin-top: 8px; border-left: 1px solid var(--hair); }
.mnav__l a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 0 5px 13px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13px; line-height: 1.3; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.mnav__l a i { font-style: normal; margin-left: auto; font-size: 10px; color: var(--muted-2); }
.mnav__l a:hover { color: var(--white); border-left-color: rgba(255,255,255,.3); }
.mnav__l a.is-here { color: var(--flame); border-left-color: var(--flame); }

/* ── Раздел верхнего уровня ──────────────────────────────────────────── */
.mgrp { padding-top: clamp(28px, 4vh, 46px); }
.mgrp:first-child { padding-top: 26px; }
.mpage .mgrp__h {
  font-size: clamp(26px, 3.4vw, 44px); font-weight: 900;
  letter-spacing: -.035em; line-height: 1; text-transform: none;
  margin: 0 0 4px;
}

/* ── Категория ───────────────────────────────────────────────────────── */
.mgroup { padding-block: clamp(22px, 3vh, 34px); }
.mgroup__h { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(14px, 1.8vh, 20px); }
.mpage .mgroup__h h3 {
  flex: 0 0 auto; margin: 0;
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 800;
  letter-spacing: .01em; line-height: 1.1; color: var(--muted);
  text-transform: uppercase;
}
.mgroup__rule { flex: 1 1 auto; height: 1px; background: var(--hair); }
.mgroup__n { flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--muted-2); }

/* ── Сетка блюд ──────────────────────────────────────────────────────── */
.migrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr));
  gap: clamp(14px, 1.5vw, 22px) clamp(12px, 1.2vw, 18px);
}

.mi { display: flex; min-width: 0; }
.mi[hidden] { display: none !important; }
.mi__hit {
  display: flex; flex-direction: column; width: 100%;
  padding: 0; text-align: left; cursor: pointer;
}
.mi__img {
  display: block; position: relative; aspect-ratio: 1/1; border-radius: 12px;
  overflow: hidden; background: #0A0A0E;
  border: 1px solid rgba(255,255,255,.05);
  transition: border-color .3s;
}
.mi__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.mi__hit:hover .mi__img img { transform: scale(1.05); }
.mi__hit:hover .mi__img { border-color: rgba(255,103,35,.34); }
.mi__hit:focus-visible .mi__img { border-color: var(--flame); outline: none; }

/* Тридцать четыре блюда помечены в базе как новинки — показываем это */
.mi__new {
  position: absolute; left: 7px; top: 7px; padding: 3px 8px; border-radius: 100px;
  background: var(--flame); color: #fff;
  font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
}

.mi__n {
  display: -webkit-box; margin-top: 11px; font-size: 13.5px; font-weight: 800;
  line-height: 1.22; letter-spacing: -.01em;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Две строки состава и не строкой больше: иначе карточки разной высоты
   и сетка едет. Полный состав — во всплывающей карточке. */
.mi__d {
  display: -webkit-box; margin-top: 5px; font-size: 11.5px; line-height: 1.4; color: var(--muted-2);
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mi__f { margin-top: auto; padding-top: 9px; display: flex; align-items: baseline; gap: 8px; }
.mi__p { font-size: 15px; font-weight: 900; color: var(--flame); letter-spacing: -.02em; }
.mi__w { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--muted-2); white-space: nowrap; }

/* ── Поиск ───────────────────────────────────────────────────────────── */
.msearch { position: relative; flex: 1 1 240px; min-width: 0; max-width: 340px; }
.msearch input {
  width: 100%; padding: 10px 34px 10px 16px;
  border: 1px solid var(--hair); border-radius: 100px; background: rgba(255,255,255,.03);
  font: inherit; font-size: 13px; color: var(--white);
  transition: border-color .25s, background .25s;
}
.msearch input::placeholder { color: var(--muted-2); }
.msearch input:focus { outline: none; border-color: rgba(255,103,35,.5); background: rgba(255,255,255,.06); }
.msearch input::-webkit-search-cancel-button { display: none; }
.msearch__x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 17px; line-height: 1; color: var(--muted);
}
.msearch__x:hover { color: var(--white); }

.mfound {
  padding: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; color: var(--muted);
}
.mfound b { color: var(--flame); }

/* Пустые после фильтра разделы и категории убираем целиком */
.mgroup[hidden], .mgrp[hidden], .mnav__g[hidden], .mnav__l li[hidden] { display: none !important; }

/* ── Карточка блюда ──────────────────────────────────────────────────── */
.mdish { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mdish[hidden] { display: none; }
.mdish__back { position: absolute; inset: 0; background: rgba(4,4,6,.82); backdrop-filter: blur(6px); }
.mdish__card {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 340px);
  width: 100%; max-width: 660px; max-height: calc(100vh - 40px);
  overflow: auto; overscroll-behavior: contain;
  background: var(--ink-2, #0E0E13); border: 1px solid var(--hair); border-radius: 20px;
  animation: mdishIn .28s var(--ease);
}
@keyframes mdishIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.mdish__x {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(7,7,10,.6); backdrop-filter: blur(6px);
  font-size: 21px; line-height: 1; color: var(--white);
}
.mdish__x:hover { background: var(--flame); }
.mdish__img { background: #08080B; }
.mdish__img img { width: 100%; height: 100%; aspect-ratio: 1/1; object-fit: cover; }
.mdish__b { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; }
.mdish__cat {
  font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2);
}
.mdish__n { margin-top: 8px; font-size: clamp(19px, 2.2vw, 25px); font-weight: 900; letter-spacing: -.025em; line-height: 1.12; }
.mdish__d { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.mdish__d:empty { display: none; }
.mdish__price { margin-top: 16px; display: flex; align-items: baseline; gap: 10px; }
.mdish__price span { font-size: 26px; font-weight: 900; color: var(--flame); letter-spacing: -.03em; }
.mdish__price i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted-2); }

/* Пищевая ценность заполнена у всех блюд — показываем как таблицу */
.mdish__facts { margin-top: auto; padding-top: 18px; display: grid; gap: 1px; }
.mdish__facts:empty { display: none; }
.mdish__facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--hair); }
.mdish__facts dt { font-size: 12px; color: var(--muted-2); }
.mdish__facts dd { margin: 0; font-size: 12px; font-weight: 800; color: var(--white); }

@media (max-width: 620px) {
  .mdish { padding: 0; align-items: flex-end; }
  .mdish__card { grid-template-columns: 1fr; max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .mdish__img img { aspect-ratio: 16/10; }
}

.mscope[hidden] { display: none !important; }
.mbody .mcta { margin-block: clamp(30px, 5vh, 56px); }

/* Якоря не должны уезжать под липкую полосу */
.mgrp[id], .mgroup[id] { scroll-margin-top: calc(var(--hdr-h, 74px) + 66px); }

/* ── Планшет: дерево уже ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mlay { grid-template-columns: 196px minmax(0, 1fr); gap: 26px; }
  .migrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
}

/* ── Телефон: дерево прячется под кнопку «Разделы» ───────────────────── */
@media (max-width: 860px) {
  .mnavbtn { display: block; }
  .mlay { display: block; }
  .mnav {
    position: static; max-height: none; overflow: visible;
    display: none; padding: 20px 0 4px;
    border-bottom: 1px solid var(--hair);
  }
  .mnav.is-open { display: block; }
  .mnav__g + .mnav__g { margin-top: 16px; }
  .mnav__l { columns: 2; column-gap: 16px; }
  .mnav__l li { break-inside: avoid; }
}

@media (max-width: 860px) {
  .mbar__in { flex-wrap: wrap; }
  .msearch { order: 3; flex: 1 1 100%; max-width: none; }
}

@media (max-width: 640px) {
  .mbar__in { gap: 9px; }
  .mswitch { flex: 1 1 auto; }
  .mswitch__b { flex: 1 1 0; justify-content: center; padding-inline: 10px; }
  .migrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .mgroup__n { display: none; }
  .mnav__l { columns: 1; }
}
