/* ====================================================================
   Mimoza · Restaurant menu
   Palette: aubergine + mimosa gold + cream
   Mobile-first, design-rich
==================================================================== */

:root {
  /* Светлая «кремовая бумага» + золото мимозы + ботанический зелёный */
  --bg:        #F2E8CF;   /* основной кремовый фон, тёплый, чуть желтоватый */
  --bg-deep:   #E2D2A7;   /* нижний градиент, насыщеннее */
  --bg-soft:   #F8F1DC;   /* верхний хайлайт */
  --gold:      #B8841A;   /* насыщенное золото для текста/обводок на светлом */
  --gold-soft: #D8A832;   /* подсветка, для градиентов */
  --gold-deep: #8E6512;   /* для штампов цены и активных индикаторов */
  --cream:     #FFFEF7;   /* карточки блюд, почти белый, тёплый */
  --cream-2:   #F8EEDA;   /* подложка карточек */
  --plum:      #2D1E12;   /* основной тёмный текст, тёплая сепия */
  --plum-soft: #6B5240;   /* приглушённый текст */
  --green:     #5A6E4A;   /* botanical accent — листья мимозы */
  --shadow:    0 18px 36px -18px rgba(58, 38, 24, .25);
  --shadow-lg: 0 28px 56px -22px rgba(58, 38, 24, .38);
  --radius:    16px;
  --radius-lg: 28px;
  --topbar-h:  64px;
  --subnav-h:  56px;
  --bottom-h:  76px;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans:  'Manrope', system-ui, sans-serif;
  --font-script:'Pinyon Script', cursive;
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* Убираем дефолтную синюю подсветку при тапе на мобильных */
html { -webkit-tap-highlight-color: transparent; }
* { -webkit-tap-highlight-color: transparent; }

/* Дефолтный фокус (touch / mouse) — убираем browser outline */
:focus { outline: none; }

/* Клавиатурная навигация (Tab) — аккуратный золотой ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 8px;
}
/* На картинках и SVG-иконках offset чуть больше — чтобы ring не наезжал */
img:focus-visible, svg:focus-visible {
  outline-offset: 4px;
}

body {
  font-family: var(--font-sans);
  color: var(--plum);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(248, 241, 220, .9), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(226, 210, 167, .85), transparent 55%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom));
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ============ Тёплый ambient-фон: мягкие световые пятна ============ */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .6;
  animation: drift 24s ease-in-out infinite;
  will-change: transform;
}
.ambient-blob--1 {
  top: -120px; left: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(216, 168, 50, .35), transparent 70%);
}
.ambient-blob--2 {
  bottom: -140px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(245, 200, 66, .28), transparent 70%);
  animation-delay: -8s;
}
.ambient-blob--3 {
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(90, 110, 74, .12), transparent 70%);
  animation-delay: -16s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -15px) scale(1.05); }
}
.ambient-blob--3 {
  /* override for centered blob */
  animation-name: drift-center;
}
@keyframes drift-center {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-48%, -52%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob { animation: none !important; }
}

/* Ботанические ветки мимозы — растровый рендер через <img>, без лагов.
   Показываются внутри viewport между топбаром и bottom-nav в местах без контента */
.ambient-branch {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: .32;
  filter: saturate(.95);
  transform-origin: center;
  height: auto;
  z-index: 0;
}

/* Мобильный (< 720px): ветки видны в верхнем-левом и нижнем-правом углу,
   слегка выходят за край, основная часть видна */
.ambient-branch--tl {
  top: calc(var(--topbar-h) + 60px);
  left: -42px;
  width: 180px;
  transform: rotate(-3deg);
  animation: branch-sway-tl 26s ease-in-out infinite;
}
.ambient-branch--br {
  bottom: calc(var(--bottom-h) + 8px);
  right: -28px;
  width: 200px;
  transform: rotate(170deg);
  animation: branch-sway-br 26s ease-in-out infinite;
  animation-delay: -13s;
}

@media (min-width: 720px) {
  .ambient-branch--tl { top: calc(var(--topbar-h) + 40px); left: -70px; width: 260px; }
  .ambient-branch--br { bottom: calc(var(--bottom-h) + 16px); right: -40px; width: 300px; }
}
@media (min-width: 1100px) {
  .ambient-branch--tl { top: calc(var(--topbar-h) + 48px); left: -80px; width: 340px; }
  .ambient-branch--br { bottom: calc(var(--bottom-h) + 24px); right: -50px; width: 400px; }
}

@keyframes branch-sway-tl {
  0%, 100% { transform: rotate(-3deg) translate(0, 0); }
  50%      { transform: rotate(-1.5deg) translate(3px, -2px); }
}
@keyframes branch-sway-br {
  0%, 100% { transform: rotate(170deg) translate(0, 0); }
  50%      { transform: rotate(168.5deg) translate(-3px, 2px); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-branch { animation: none !important; }
}

/* На страницах "О нас"/"Контакты" приглушаем ветки чтобы не отвлекали от текста */
body:has(.page) .ambient-branch { opacity: .2; }

/* ============ Cover-обложка ============ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, var(--bg-soft) 0%, var(--bg-deep) 90%);
  transition: opacity .6s ease, visibility .6s ease;
}
.cover.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.cover__inner { text-align: center; padding: 24px; }
.cover__logo {
  max-width: 70vw;
  max-height: 28vh;
  width: auto;
  filter: drop-shadow(0 6px 20px rgba(184, 132, 26, .25));
  animation: cover-pop .9s cubic-bezier(.2,.7,.2,1) both;
  margin: 0 auto 18px;
}
.cover__sub {
  font-family: var(--font-serif);
  letter-spacing: .4em;
  font-size: 14px;
  color: var(--gold);
  opacity: 0;
  animation: cover-fade .8s .3s forwards;
}
.cover__loader {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 28px;
}
.cover__loader span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: bounce 1.2s infinite ease-in-out;
}
.cover__loader span:nth-child(2) { animation-delay: .15s; }
.cover__loader span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-8px); opacity: 1; }
}
@keyframes cover-pop {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes cover-fade { to { opacity: 1; } }

/* ============ Topbar ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(248, 241, 220, .98), rgba(242, 232, 207, .94));
  border-bottom: 1px solid rgba(184, 132, 26, .22);
}

.topbar__logo {
  display: grid;
  place-items: center;
  height: 100%;
}
.topbar__logo img {
  height: 42px;
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 4px 10px rgba(184, 132, 26, .25));
  transition: transform .3s;
}
.topbar__logo:hover img { transform: scale(1.05); }

/* lang dropdown */
.topbar__lang { position: relative; justify-self: start; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 254, 247, .55);
  color: var(--plum);
  border: 1px solid rgba(184, 132, 26, .35);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  transition: background .2s, border-color .2s;
}
.lang-btn__flag {
  font-size: 16px;
  line-height: 1;
  /* Чтобы эмодзи-флаги корректно отображались в Windows */
  font-family: "Twemoji Mozilla", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}
.lang-menu .flag {
  font-family: "Twemoji Mozilla", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] {
  background: rgba(216, 168, 50, .15);
  border-color: rgba(184, 132, 26, .6);
}
.lang-btn svg { transition: transform .25s; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: rgba(255, 254, 247, .98);
  border: 1px solid rgba(184, 132, 26, .3);
  border-radius: 14px;
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  color: var(--plum);
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10;
}
.lang-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lang-menu li {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .15s, color .15s;
}
.lang-menu li:hover { background: rgba(216, 168, 50, .14); }
.lang-menu li.active { color: var(--gold-deep); background: rgba(216, 168, 50, .14); font-weight: 700; }
.lang-menu li .flag {
  font-size: 16px; line-height: 1;
}

/* burger */
.burger {
  justify-self: end;
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 254, 247, .55);
  border: 1px solid rgba(184, 132, 26, .35);
  border-radius: 12px;
  padding: 0;
  transition: background .2s, border-color .2s;
}
.burger:hover { background: rgba(216, 168, 50, .15); border-color: rgba(184, 132, 26, .6); }
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============ Подкатегории (sticky) ============ */
.subnav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 40;
  height: var(--subnav-h);
  background: linear-gradient(180deg, rgba(242, 232, 207, .99), rgba(242, 232, 207, .95));
  border-bottom: 1px solid rgba(184, 132, 26, .18);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.subnav__scroll {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav__scroll::-webkit-scrollbar { display: none; }

.subchip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 254, 247, .55);
  border: 1px solid rgba(184, 132, 26, .25);
  color: var(--plum);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.subchip:hover { background: rgba(216, 168, 50, .15); border-color: rgba(184, 132, 26, .5); }
.subchip.active {
  background: linear-gradient(180deg, #FFFEF7, #F8EEDA);
  color: var(--plum);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(184, 132, 26, .35);
}

/* ============ Контент ============ */
.content {
  position: relative;
  z-index: 1;
  padding: 24px 16px 8px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Заголовок секции */
.section-header {
  text-align: center;
  margin: 24px 0 28px;
  padding: 0 8px;
}
.section-header__top {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
  opacity: .9;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: .04em;
  margin: 0;
  color: var(--plum);
}
.section-header__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--gold);
}
.section-header__divider::before,
.section-header__divider::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 50%, transparent);
  opacity: .5;
}
.section-header__divider svg { flex: 0 0 auto; }

/* Сетка карточек */
.dishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px)  { .dishes-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 900px)  { .dishes-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1200px) { .dishes-grid { grid-template-columns: repeat(5, 1fr); gap: 22px; } }

/* Список без фото (напитки, бар) */
.dishes-grid--list { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px)  { .dishes-grid--list { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (min-width: 900px)  { .dishes-grid--list { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1200px) { .dishes-grid--list { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.dish-card--list { cursor: default; }
.dish-card--list:hover { transform: none; box-shadow: var(--shadow); }
.dish-card--list .dish-card__body {
  padding: 14px 16px;
  gap: 6px;
}
.dish-card--list .dish-card__title {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}
.dish-card__desc {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--plum-soft);
}
.dish-card__meta {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--plum-soft);
}
.dish-card__meta-label {
  display: inline;
  font-weight: 600;
  color: var(--gold-deep);
  margin-right: 4px;
  letter-spacing: .02em;
}
.dish-card--list.is-stopped::after { top: 10px; right: 10px; left: auto; }

/* Карточка блюда */
.dish-card {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  color: var(--plum);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(232, 176, 40, .18);
}
.dish-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(42, 27, 61, .08);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
  z-index: 2;
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dish-card.is-stopped { opacity: .55; }
.dish-card.is-stopped::after {
  content: attr(data-stopped-label);
  position: absolute;
  top: 12px; left: 12px;
  background: var(--plum);
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  z-index: 3;
}
.dish-card__image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #efe6cc 0%, #d9c9a3 100%);
  position: relative;
  overflow: hidden;
}
.dish-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.dish-card:hover .dish-card__image img { transform: scale(1.06); }
.dish-card__image.is-empty {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #efe6cc 0%, #d9c9a3 100%);
}
.dish-card__image.is-empty svg { width: 26%; height: 26%; opacity: .35; color: var(--plum); }

.dish-card__body {
  padding: 12px 14px 14px;
  text-align: left;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dish-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: .01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-card__foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.dish-card__price {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--gold-deep);
  line-height: 1;
}
.dish-card__weight {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(42,27,61,.55);
  white-space: nowrap;
}

/* ============ Блок благодарности + отзыв ============ */
.thanks-block {
  margin: 56px auto 24px;
  max-width: 560px;
  padding: 28px 26px 30px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border: 1px solid rgba(184, 132, 26, .28);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.thanks-block::before,
.thanks-block::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border: 1px solid rgba(184, 132, 26, .35);
  pointer-events: none;
}
.thanks-block::before {
  top: 8px; left: 8px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: calc(var(--radius-lg) - 6px);
}
.thanks-block::after {
  bottom: 8px; right: 8px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: calc(var(--radius-lg) - 6px);
}
.thanks-block__ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  opacity: .85;
  margin-bottom: 12px;
}
.thanks-block__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 132, 26, .7) 50%, transparent);
}
.thanks-block__signature {
  font-family: var(--font-script);
  font-size: 28px;
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 14px;
}
.thanks-block__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .02em;
  margin: 0 0 10px;
  color: var(--plum);
}
.thanks-block__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--plum-soft);
  margin: 0 auto 22px;
  max-width: 440px;
}
.thanks-block__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #FFFEF7;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .03em;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(184, 132, 26, .55);
  transition: transform .2s, box-shadow .2s;
}
.thanks-block__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(184, 132, 26, .7);
}
.thanks-block__btn svg {
  background: white;
  border-radius: 50%;
  padding: 3px;
  width: 24px; height: 24px;
}
@media (min-width: 720px) {
  .thanks-block { padding: 36px 32px; }
  .thanks-block__signature { font-size: 34px; }
  .thanks-block__title { font-size: 30px; }
}

/* Пустое состояние */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(45, 30, 18, .45);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
}

/* ============ Bottom nav ============ */
.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: linear-gradient(180deg, rgba(248, 241, 220, .98), rgba(226, 210, 167, 1));
  border-top: 1px solid rgba(184, 132, 26, .28);
  box-shadow: 0 -12px 28px -16px rgba(58, 38, 24, .15);
}
.bottomnav__inner {
  height: var(--bottom-h);
  max-width: 540px;
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
}
.navbtn {
  background: none;
  border: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(45, 30, 18, .55);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .25s;
  position: relative;
  padding: 0 6px;
}
.navbtn .navbtn__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.navbtn svg { width: 22px; height: 22px; }
.navbtn:hover { color: var(--plum); }
.navbtn:hover .navbtn__icon { background: rgba(216, 168, 50, .15); }

.navbtn.active { color: var(--gold-deep); }
.navbtn.active .navbtn__icon {
  background: radial-gradient(circle at center, rgba(216, 168, 50, .35), rgba(216, 168, 50, .12) 70%);
  border-color: rgba(184, 132, 26, .7);
  box-shadow:
    0 0 0 4px rgba(216, 168, 50, .12),
    0 6px 18px -8px rgba(184, 132, 26, .5);
}
.navbtn.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

/* ============ Sidebar ============ */
.sidebar {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.sidebar.open { visibility: visible; pointer-events: auto; }
.sidebar__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(45, 30, 18, .5);
  opacity: 0;
  transition: opacity .35s;
}
.sidebar.open .sidebar__backdrop { opacity: 1; }
.sidebar__panel {
  position: absolute;
  z-index: 2;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(216, 168, 50, .22), transparent 55%),
    radial-gradient(ellipse at 20% 100%, rgba(90, 110, 74, .14), transparent 55%),
    linear-gradient(180deg, #FBF4DD 0%, #F2E8CF 55%, #E5D9B8 100%);
  color: var(--plum);
  border-left: 1px solid rgba(184, 132, 26, .3);
  box-shadow: -24px 0 60px -20px rgba(58, 38, 24, .35);
  padding: calc(env(safe-area-inset-top) + 12px) 22px calc(env(safe-area-inset-bottom) + 18px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
  overflow-x: hidden;
  will-change: transform;
}
.sidebar.open .sidebar__panel { transform: translateX(0); }

/* Тёплые световые пятна на фоне сайдбара */
.sidebar__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.sidebar__glow--top {
  top: -80px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(216, 168, 50, .35), transparent 70%);
}
.sidebar__glow--bottom {
  bottom: -100px; left: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(90, 110, 74, .18), transparent 70%);
}
/* Контент над декоративными слоями. Исключаем absolute-elements (glow, branch). */
.sidebar__panel > *:not(.sidebar__branch):not(.sidebar__glow) { position: relative; z-index: 1; }

.sidebar__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0 8px;
  margin-bottom: 4px;
}
.sidebar__logo-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sidebar__logo-wrap img {
  display: block;
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(245,200,66,.22));
}
.sidebar__close {
  flex: 0 0 auto;
  background: rgba(255, 254, 247, .65);
  border: 1px solid rgba(184, 132, 26, .35);
  color: var(--plum);
  border-radius: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.sidebar__close:hover { background: rgba(216, 168, 50, .2); transform: rotate(90deg); }

/* Декоративный разделитель волной с цветочком */
.ornament-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 4px 18px;
  color: var(--gold);
  opacity: .85;
}
.ornament-divider--bottom { margin: 18px 4px 14px; }
.ornament-divider .ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 132, 26, .65) 50%, transparent);
}

.sidebar__nav {
  display: flex; flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar__link {
  position: relative;
  display: flex; align-items: center;
  gap: 14px;
  padding: 13px 14px 13px 18px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--plum);
  border-radius: 12px;
  transition: background .25s, color .25s, padding .25s;
  overflow: hidden;
}
.sidebar__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(.2);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  opacity: 0;
  transition: opacity .25s, transform .25s;
}
.sidebar__link-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 254, 247, .55);
  border: 1px solid rgba(184, 132, 26, .35);
  color: var(--gold-deep);
  transition: background .25s, border-color .25s, transform .25s;
}
.sidebar__link-text {
  flex: 1;
}
.sidebar__link-arrow {
  flex: 0 0 auto;
  color: var(--gold-deep);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s, transform .25s;
}
.sidebar__link:hover {
  background: rgba(216, 168, 50, .12);
  color: var(--gold-deep);
}
.sidebar__link:hover .sidebar__link-icon {
  background: rgba(216, 168, 50, .2);
  border-color: rgba(184, 132, 26, .55);
}
.sidebar__link:hover .sidebar__link-arrow {
  opacity: .7;
  transform: translateX(0);
}
.sidebar__link.active {
  color: var(--gold-deep);
  background: linear-gradient(90deg, rgba(216, 168, 50, .22), rgba(216, 168, 50, .04));
}
.sidebar__link.active::before {
  opacity: 1;
  transform: translateY(-50%) scaleY(1);
}
.sidebar__link.active .sidebar__link-icon {
  background: radial-gradient(circle at center, rgba(216, 168, 50, .4), rgba(216, 168, 50, .15) 70%);
  border-color: rgba(184, 132, 26, .7);
  box-shadow: 0 0 0 4px rgba(216, 168, 50, .12), 0 6px 18px -8px rgba(184, 132, 26, .5);
}
.sidebar__link.active .sidebar__link-arrow { opacity: 1; transform: translateX(0); }

/* Mini-info блок (часы, адрес) */
.sidebar__info {
  margin: 6px 0 8px;
  padding: 12px 14px;
  background: rgba(255, 254, 247, .55);
  border: 1px solid rgba(184, 132, 26, .25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar__info:empty { display: none; }
.sidebar__info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.4;
  color: var(--plum);
}
.sidebar__info-row svg {
  flex: 0 0 auto;
  color: var(--gold-deep);
  margin-top: 2px;
}

.sidebar__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.sidebar__socials:empty { display: none; }

/* Каллиграфическая подпись внизу */
.sidebar__signature {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-script);
  font-size: 22px;
  line-height: 1;
  color: var(--gold-deep);
  opacity: .75;
  letter-spacing: .01em;
}
.social-link {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 254, 247, .55);
  border: 1px solid rgba(184, 132, 26, .35);
  color: var(--gold-deep);
  transition: background .2s, transform .2s, border-color .2s;
}
.social-link:hover { background: rgba(216, 168, 50, .2); border-color: rgba(184, 132, 26, .65); transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }

/* ============ Dish modal ============ */
.dish-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 720px) {
  .dish-modal { align-items: center; padding: 20px; }
}
.dish-modal.open { visibility: visible; pointer-events: auto; }
.dish-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 30, 18, .65);
  opacity: 0;
  transition: opacity .35s;
}
.dish-modal.open .dish-modal__backdrop { opacity: 1; }

.dish-modal__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  color: var(--plum);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184, 132, 26, .35);
  will-change: transform;
}
@media (min-width: 720px) {
  .dish-modal__card {
    border-radius: var(--radius-lg);
    transform: translateY(40px) scale(.96);
    opacity: 0;
    transition: transform .35s, opacity .35s;
  }
  .dish-modal.open .dish-modal__card { transform: translateY(0) scale(1); opacity: 1; }
}
.dish-modal.open .dish-modal__card { transform: translateY(0); }

.dish-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(45, 30, 18, .8);
  color: #FFFEF7;
  border: 1px solid rgba(216, 168, 50, .6);
  display: grid; place-items: center;
}

.dish-modal__hero {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(135deg, #efe6cc 0%, #d9c9a3 100%);
  overflow: hidden;
}
.dish-modal__hero img { width: 100%; height: 100%; object-fit: cover; }
.dish-modal__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(250,244,230,.95) 100%);
}

.dish-modal__body {
  position: relative;
  padding: 4px 24px 32px;
  margin-top: -20px;
}
.dish-modal__body h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: .01em;
  line-height: 1.15;
}
.dish-modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.dish-modal__meta .weight {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(42,27,61,.6);
  font-size: 15px;
}
.dish-modal__meta .price {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #FFFEF7;
  box-shadow: 0 6px 16px -6px rgba(184, 132, 26, .55);
}

.dish-modal__section {
  margin-bottom: 18px;
}
.dish-modal__section h4 {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 8px;
}
.dish-modal__section h4::before {
  content: '';
  width: 12px; height: 1px;
  background: var(--gold);
}
.dish-modal__section p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(42,27,61,.85);
}
.dish-modal__section--allergen p {
  font-style: italic;
  color: #8b3f4a;
}
.dish-modal__section.hidden { display: none; }

/* ============ Pages: About / Contacts ============ */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 18px 40px;
  position: relative;
  z-index: 1;
}
.page__header { text-align: center; margin-bottom: 28px; }
.page__hello {
  font-family: var(--font-script);
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
  opacity: .95;
}
.page__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: .04em;
  margin: 0;
  color: var(--plum);
}
.page__divider {
  margin: 14px auto 0;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.page__body {
  background: linear-gradient(180deg, rgba(255, 254, 247, .7), rgba(255, 254, 247, .5));
  border: 1px solid rgba(184, 132, 26, .25);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--plum);
  white-space: pre-line;
  box-shadow: var(--shadow);
}
.page__body--empty {
  text-align: center;
  font-style: italic;
  color: var(--plum-soft);
}

.contacts-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 254, 247, .7), rgba(255, 254, 247, .45));
  border: 1px solid rgba(184, 132, 26, .25);
  border-radius: var(--radius);
  color: var(--plum);
  transition: background .2s, transform .2s, border-color .2s;
  box-shadow: var(--shadow);
}
.contact-item:hover {
  background: rgba(216, 168, 50, .14);
  border-color: rgba(184, 132, 26, .55);
  transform: translateY(-2px);
}
.contact-item__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(216, 168, 50, .2);
  color: var(--gold-deep);
  display: grid; place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(184, 132, 26, .3);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.contact-item__label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.contact-item__value {
  font-family: var(--font-serif);
  font-size: 17px;
  word-break: break-word;
}

/* ============ Animations ============ */
.fade-in { animation: fadeIn .4s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============ Tablet / Desktop tweaks ============ */
@media (min-width: 720px) {
  :root { --topbar-h: 76px; --subnav-h: 64px; --bottom-h: 84px; }
  .topbar__logo img { height: 52px; }
  .subchip { font-size: 18px; padding: 10px 18px; }
  .section-header h2 { font-size: 34px; }
  .section-header__top { font-size: 32px; }
}
@media (min-width: 1024px) {
  .dish-card__title { font-size: 17px; }
  .dish-card__body { padding: 14px 14px 16px; }
}
