:root {
  --bg: #F5EDD8;
  --bg-soft: #FBF6E5;
  --bg-alt: #F0E6CD;
  --accent1: #8B2635;
  --accent1-soft: #B14152;
  --accent2: #B8860B;
  --text: #2C1A0E;
  --text-muted: #7A6652;
  --divider: #C4912A;
  --card: #FFFAEC;
  --card-shadow: 0 14px 38px rgba(44, 26, 14, 0.10);
  --card-shadow-hover: 0 22px 56px rgba(44, 26, 14, 0.16);
  --rule: rgba(196, 145, 42, 0.32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: transparent; color: var(--text); font-family: 'Lora', Georgia, serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  min-height: 100vh;
  position: relative;
}

/* Фон только на десктопе. На мобильном остаётся сплошной кремовый var(--bg). */
@media (min-width: 900px) {
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url('/menu-static/branding/menu-bg.jpg');
    background-size: 480px auto;     /* плиточный размер — бесконечный паттерн по бокам */
    background-repeat: repeat;
    background-position: center top;
  }
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 20% 8%, rgba(196, 145, 42, 0.14), transparent 55%),
      radial-gradient(ellipse at 82% 92%, rgba(139, 38, 53, 0.10), transparent 55%),
      linear-gradient(180deg, rgba(245, 237, 216, 0.55), rgba(245, 237, 216, 0.62));
  }
  /* Центральное «полотно» меню — кремовый плотный фон шириной 1200,
     чтобы фон проступал бесконечной плиткой по обеим сторонам */
  main, .hero, .tabs, .foot, .carousel-section, .promo-page {
    position: relative;
    z-index: 1;
  }
  /* Узкое центральное полотно меню — фон проступает по бокам */
  main {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(245, 237, 216, 0.94);
    box-shadow: 0 0 60px rgba(44, 26, 14, 0.18);
  }
}

.loading { text-align: center; padding: 80px 20px; color: var(--text-muted); }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background:
    radial-gradient(ellipse at center top, rgba(196, 145, 42, 0.10), transparent 60%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.16;
  filter: saturate(0.9) contrast(1.05);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }

.hero-tagline-top {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent2);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.hero-tagline-top::before, .hero-tagline-top::after {
  content: '◆';
  font-size: 8px;
  color: var(--divider);
  letter-spacing: 0;
}

.hero-logo {
  display: block;
  max-width: clamp(220px, 36vw, 340px);
  max-height: 220px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(44, 26, 14, 0.20));
}

.hero-mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(44px, 8vw, 76px);
  color: var(--accent1);
  letter-spacing: 1px;
  line-height: 1;
}

.hero-sub {
  margin-top: 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-divider {
  margin: 22px auto 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
  position: relative;
}
.hero-divider::after {
  content: '◆';
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 8px;
  color: var(--divider); font-size: 10px;
}

.hero-meta {
  margin-top: 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
}
.hero-meta a { color: var(--accent1); text-decoration: none; transition: color 0.18s; }
.hero-meta a:hover { color: var(--accent1-soft); }
.hero-meta > * { display: inline-flex; align-items: center; gap: 6px; }

/* ========== TABS ========== */
.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 237, 216, 0.85);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.tabs-inner {
  display: flex; gap: 4px;
  overflow-x: auto;
  padding: 14px 16px;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: flex-start;
}
.tabs-inner::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  position: relative;
  padding: 12px 18px 10px;
  border: none;
  border-radius: 0;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.18s ease;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--accent1);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.tab.active { color: var(--accent1); }
.tab.active::after { transform: scaleX(1); }

@media (min-width: 900px) {
  .tabs-inner { justify-content: center; padding: 16px 24px; }
  .tab { font-size: 14.5px; padding: 14px 22px 12px; letter-spacing: 1.2px; }
}

/* ========== SECTIONS ========== */
.section {
  padding: 64px 24px 28px;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}
.section.alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 12%, var(--bg-alt) 88%, transparent); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-superhead {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 10px;
}
.section h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--accent1);
  font-size: clamp(28px, 4.4vw, 40px);
  letter-spacing: 1.2px;
}
.section .ornament {
  width: 100px; height: 1px; margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
  position: relative;
}
.section .ornament::after {
  content: '◆';
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 8px;
  color: var(--divider); font-size: 9px;
}
.section.alt .ornament::after { background: var(--bg-alt); }

/* ========== GRID ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.dish {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  opacity: 0; transform: translateY(12px);
}
.dish.in { opacity: 1; transform: translateY(0); }
.dish:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

.dish-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #E8DFC8 center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.dish-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(44, 26, 14, 0.08));
  pointer-events: none;
}
.dish-photo.empty {
  background: linear-gradient(135deg, #EDE3CE, #DCCFB2);
}
.dish-photo.empty::before {
  content: '◆';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(139, 38, 53, 0.22);
  font-size: 64px;
}

.dish-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 8px;
}
.dish-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 10px;
}
.dish-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  flex: 1;
  letter-spacing: 0.2px;
  line-height: 1.25;
}
.dish-price {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 24px;
  color: var(--accent1);
  white-space: nowrap;
  letter-spacing: 0.4px;
  font-variant-numeric: lining-nums;
}
.dish-weight {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.dish-desc {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: auto;
}

/* ========== DESKTOP: горизонтальные карточки + журнальный layout ========== */
@media (min-width: 900px) {
  .section { padding: 84px 36px 36px; }
  .section-head { margin-bottom: 56px; }

  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
  }
  .dish {
    flex-direction: row;
    align-items: stretch;
  }
  .dish-photo {
    flex: 0 0 38%;
    aspect-ratio: auto;
    min-height: 260px;
    border-right: 1px solid var(--rule);
  }
  .dish-body { padding: 28px 32px 30px; gap: 10px; }
  .dish-name { font-size: 22px; }
  .dish-price { font-size: 26px; }
  .dish-desc { font-size: 14.5px; }

  /* Drop cap — у самой первой карточки в секции */
  .grid .dish:first-child .dish-desc::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 3em;
    line-height: 0.85;
    float: left;
    padding: 4px 8px 0 0;
    color: var(--accent1);
    font-weight: 700;
  }
}

@media (min-width: 1280px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    gap: 32px;
  }
  .dish-photo { min-height: 240px; }
  /* Drop cap снимаем в 2-колоночной вёрстке: смотрится перегружено */
  .grid .dish:first-child .dish-desc::first-letter {
    font-size: inherit; float: none; padding: 0; color: inherit; font-style: inherit;
  }
}

/* ========== FOOTER ========== */
.foot {
  margin-top: 56px;
  padding: 56px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  background:
    radial-gradient(ellipse at center bottom, rgba(196, 145, 42, 0.08), transparent 60%);
}
.foot .mark {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent1);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.8px;
}
.foot .foot-orn {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
  margin: 14px auto 18px;
  position: relative;
}
.foot .foot-orn::after {
  content: '◆';
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 8px;
  color: var(--divider); font-size: 9px;
}
.foot-meta { margin-bottom: 12px; }
.foot-meta a { color: var(--accent1); text-decoration: none; }
.foot-meta a:hover { text-decoration: underline; }
.foot small { font-size: 11px; opacity: 0.75; letter-spacing: 0.5px; }

/* ========== MOBILE adjustments ========== */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 36px 16px 8px; }
  .section-head { margin-bottom: 24px; }
  .hero { padding: 48px 18px 36px; }
  .hero-tagline-top { font-size: 13px; letter-spacing: 2.5px; gap: 10px; margin-bottom: 12px; }
  .hero-meta { gap: 14px; font-size: 12px; }
  .dish-body { padding: 14px 16px 16px; }
}

/* ============================================================ */
/* Карусели (акции и популярные) — после hero                   */
/* ============================================================ */

.hero.hero-compact { padding: 32px 24px 20px; }
.hero.hero-compact .hero-logo { max-height: 110px; max-width: 200px; margin-bottom: 8px; }
.hero.hero-compact .hero-mark { font-size: clamp(28px, 5vw, 40px); }
.hero.hero-compact .hero-sub { letter-spacing: 3px; font-size: 12px; }

.carousel-section {
  padding: 28px 0 8px;
  max-width: 1200px;
  margin: 0 auto;
}
.carousel-head {
  padding: 0 20px;
  margin-bottom: 14px;
}
.carousel-superhead {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 4px;
}
.carousel-head h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--accent1);
  font-size: clamp(20px, 3.4vw, 28px);
  letter-spacing: 0.6px;
  margin: 0;
}
.carousel-wrapper {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px 18px;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/old Edge */
}
.carousel-track::-webkit-scrollbar { display: none; height: 0; width: 0; }

/* Боковые полупрозрачные стрелки */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(44, 26, 14, 0.55);
  color: #FBF6E5;
  border: 1px solid rgba(251, 246, 229, 0.30);
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(44, 26, 14, 0.28);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
  padding: 0;
}
.carousel-arrow:hover {
  background: rgba(139, 38, 53, 0.85);
  transform: translateY(-50%) scale(1.06);
}
.carousel-arrow:active { transform: translateY(-50%) scale(0.96); }
.carousel-arrow.is-disabled {
  opacity: 0;
  pointer-events: none;
}
.carousel-arrow-prev { left: 8px; }
.carousel-arrow-next { right: 8px; }
.carousel-wrapper.no-arrows .carousel-arrow { display: none; }

/* Боковые фейды по краям трека — мягко затемняют то, что уходит за край */
.carousel-wrapper::before,
.carousel-wrapper::after {
  content: '';
  position: absolute; top: 0; bottom: 18px;
  width: 56px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.22s ease;
}
.carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(245, 237, 216, 0) 100%);
}
.carousel-wrapper::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(245, 237, 216, 0) 100%);
}
.section.alt .carousel-wrapper::before { background: linear-gradient(90deg, var(--bg-alt), transparent); }
.section.alt .carousel-wrapper::after  { background: linear-gradient(270deg, var(--bg-alt), transparent); }

/* Скрытие фейдов когда они не нужны:
   - .no-arrows  → контент полностью влезает, оба края не нужны
   - .at-start   → крутить дальше влево некуда, левый фейд лишний
   - .at-end     → крутить дальше вправо некуда, правый фейд лишний */
.carousel-wrapper.no-arrows::before,
.carousel-wrapper.no-arrows::after,
.carousel-wrapper.at-start::before,
.carousel-wrapper.at-end::after { opacity: 0; }

@media (min-width: 900px) {
  .carousel-arrow { width: 50px; height: 50px; }
  .carousel-arrow-prev { left: 14px; }
  .carousel-arrow-next { right: 14px; }
}

@media (max-width: 600px) {
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-arrow svg { width: 18px; height: 18px; }
  .carousel-arrow-prev { left: 4px; }
  .carousel-arrow-next { right: 4px; }
  .carousel-wrapper::before,
  .carousel-wrapper::after { width: 32px; }
}

/* === Карточка акции (вертикальная 3:4) === */
.promo-card {
  flex: 0 0 auto;
  width: 78vw;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  scroll-snap-align: center;
  text-decoration: none;
  color: inherit;
  background: #E8DFC8;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: block;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.promo-card:active { transform: scale(0.98); }
.promo-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.promo-photo.empty {
  background: linear-gradient(135deg, var(--accent1), #5d1822);
}
.promo-photo.empty::after {
  content: '🎉';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 64px; opacity: 0.6;
}
.promo-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(44, 26, 14, 0.85));
  color: #FBF6E5;
}
.promo-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.promo-short {
  font-family: 'Lora', serif;
  font-size: 13.5px;
  margin-top: 6px;
  opacity: 0.92;
  line-height: 1.4;
}

/* === Карточка популярного блюда === */
.pop-card {
  flex: 0 0 auto;
  width: 65vw;
  max-width: 240px;
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 22px rgba(44, 26, 14, 0.08);
  transition: transform 0.22s ease;
}
.pop-card:hover { transform: translateY(-3px); }
.pop-photo {
  width: 100%; aspect-ratio: 4 / 3;
  background: #E8DFC8 center/cover no-repeat;
}
.pop-photo.empty { background: linear-gradient(135deg, #EDE3CE, #DCCFB2); }
.pop-body { padding: 12px 14px 14px; }
.pop-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.2px;
  color: var(--text);
}
.pop-weight {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.pop-price {
  margin-top: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 22px;
  color: var(--accent1);
}

@media (min-width: 900px) {
  .promo-card { width: 320px; }
  .pop-card { width: 240px; }
  .carousel-section { padding: 36px 0 12px; }
}

.dish-pop { color: var(--accent2); font-size: 14px; }

/* ============================================================ */
/* Страница акции (/promo/<slug>)                               */
/* ============================================================ */
.promo-page {
  max-width: 760px;
  margin: 16px auto 40px;
  padding: 0 20px;
}
.link-back {
  background: transparent; border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent1);
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 18px;
}
.link-back:hover { text-decoration: underline; }

.promo-hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  background: #E8DFC8 center/cover no-repeat;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
}
.promo-h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--accent1);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 0.4px;
  text-align: center;
  margin: 14px 0 0;
}
.promo-divider {
  width: 100px; height: 1px; margin: 16px auto 22px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
  position: relative;
}
.promo-divider::after {
  content: '◆';
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 8px;
  color: var(--divider); font-size: 9px;
}
.promo-lead {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--accent1-soft);
  text-align: center;
  margin-bottom: 20px;
}
.promo-text {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (min-width: 900px) {
  .promo-hero { aspect-ratio: 16 / 9; max-height: 480px; }
}

/* ============================================================ */
/* Lightbox — увеличенное фото блюда                            */
/* ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 14, 8, 0.92);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  cursor: zoom-out;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-stage {
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  cursor: default;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}
.lightbox-caption {
  font-family: 'Playfair Display', serif;
  font-size: clamp(15px, 2.4vw, 20px);
  color: #FBF6E5;
  text-align: center;
  letter-spacing: 0.4px;
  padding: 0 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(251, 246, 229, 0.12);
  border: 1px solid rgba(251, 246, 229, 0.30);
  color: #FBF6E5;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease, transform 0.18s ease;
  padding: 0;
}
.lightbox-close:hover {
  background: rgba(139, 38, 53, 0.85);
  transform: scale(1.06);
}

/* Кликабельность фото блюд (важно для iOS Safari: cursor:pointer
   делает не-A/BUTTON элементы реагирующими на click; touch-action:manipulation
   убирает 300ms-задержку и double-tap-zoom для одиночного тапа) */
.dish-photo:not(.empty),
.pop-photo:not(.empty) {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(139, 38, 53, 0.18);
}
@media (hover: hover) {
  .dish-photo:not(.empty),
  .pop-photo:not(.empty) { cursor: zoom-in; }
}
.lightbox { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* === DESKTOP-OVERRIDE — гарантированный перекрыватель базовых правил.
   Должен идти В САМОМ НИЗУ файла, иначе позднейшие .hero/.carousel-section
   правила (max-width: 1200, прозрачные backgrounds) затрут.            === */
@media (min-width: 900px) {
  .hero,
  .carousel-section {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: rgba(245, 237, 216, 0.96) !important;
    box-shadow: none !important;
  }
  .hero { padding-left: 36px !important; padding-right: 36px !important; }
  /* Внутренний контент карусели — центрируется по 1200 */
  .carousel-section .carousel-head,
  .carousel-section .carousel-wrapper {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* hero-bg overlay (если задан hero_image_url) тоже скрываем — чтобы фон был чисто кремовым */
  .hero .hero-bg { display: none !important; }
}

/* ============================================================ */
/* DESKTOP REDESIGN — frontend-design philosophy               */
/* Editorial-сетка, смелая типографика, осмысленные анимации   */
/* ============================================================ */

@media (min-width: 900px) {
  /* Карточки блюд видны и без IO — иначе при загрузке fold пустой */
  .dish { opacity: 1 !important; transform: none !important; }
  .dish.in { opacity: 1 !important; transform: none !important; }

  /* HERO — больше воздуха, оверлей слабее, типографика крупнее */
  .hero {
    padding: 110px 36px 90px !important;
    min-height: auto;
    position: relative;
  }
  .hero-tagline-top {
    font-size: 14px;
    letter-spacing: 8px;
  }
  .hero-mark {
    font-size: clamp(72px, 9vw, 140px) !important;
    line-height: 0.92 !important;
  }
  .hero-sub {
    margin-top: 18px;
    font-size: 13px;
    letter-spacing: 8px;
  }
  .hero-meta {
    margin-top: 32px;
    gap: 32px;
  }
  /* Декоративная виньетка над hero */
  .hero::before {
    content: '◆ ◆ ◆';
    position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
    color: var(--accent2);
    font-size: 8px;
    letter-spacing: 14px;
    opacity: 0.65;
  }

  /* TABS — крупный editorial-индикатор */
  .tab {
    font-size: 16px !important;
    padding: 18px 26px 14px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif !important;
    font-weight: 600;
  }
  .tab.active { color: var(--accent1) !important; }
  .tab.active::after {
    height: 3px !important;
    background: var(--accent1) !important;
  }

  /* SECTIONS — editorial-вёрстка с крупным «номером раздела» сбоку */
  .section { padding: 110px 48px 60px !important; }
  .section-head { margin-bottom: 70px !important; }
  .section-superhead {
    font-size: 13px !important;
    letter-spacing: 8px !important;
    margin-bottom: 14px;
    color: var(--accent2);
    position: relative;
  }
  .section h2 {
    font-size: clamp(40px, 5.4vw, 60px) !important;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1.0;
  }
  /* Инициал «G» / «Г» рядом с заголовком — большая декоративная буква */
  .section-head::before {
    content: 'GIO';
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 80px;
    color: rgba(196, 145, 42, 0.16);
    letter-spacing: 8px;
    line-height: 1;
    margin-bottom: -28px;
    user-select: none;
  }
  .section .ornament {
    width: 160px !important;
    margin-top: 24px !important;
  }
  .section .ornament::after { font-size: 14px !important; }

  /* DISH GRID — magazine-стиль: первая карточка двойного размера */
  .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    max-width: 1180px !important;
  }
  /* Первая карточка занимает оба столбца — featured */
  .grid .dish:first-child {
    grid-column: 1 / -1;
  }
  .grid .dish:first-child .dish-photo {
    flex: 0 0 50% !important;
    min-height: 360px !important;
  }
  .grid .dish:first-child .dish-name {
    font-size: 30px !important;
  }
  .grid .dish:first-child .dish-price {
    font-size: 34px !important;
  }

  /* Карточка — глубже тени, тонкая золотая граница, hover с зумом фото */
  .dish {
    border-radius: 16px !important;
    border: 1px solid rgba(196, 145, 42, 0.25) !important;
    background: linear-gradient(180deg, #FFFAEC 0%, #FAF1D7 100%) !important;
    box-shadow: 0 18px 44px rgba(44, 26, 14, 0.08) !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease !important;
    overflow: hidden;
  }
  .dish:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 32px 70px rgba(139, 38, 53, 0.18) !important;
  }
  .dish-photo {
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    transform-origin: center;
  }
  .dish:hover .dish-photo {
    transform: scale(1.04) !important;
  }
  .dish-body { padding: 32px 36px 32px !important; gap: 12px !important; }
  .dish-head {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .dish-name {
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    letter-spacing: 0.3px !important;
    line-height: 1.15 !important;
  }
  .dish-weight {
    font-size: 11px !important;
    letter-spacing: 2.5px !important;
    color: var(--accent2) !important;
    margin-top: 6px !important;
  }
  .dish-price {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
    font-size: 30px !important;
    color: var(--accent1) !important;
    line-height: 1 !important;
    flex-shrink: 0;
    padding-left: 12px;
    border-left: 1px solid rgba(196, 145, 42, 0.4);
    margin-left: auto;
  }
  .dish-desc {
    font-family: 'Lora', serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--text-muted) !important;
    margin-top: 14px !important;
    padding-top: 14px;
    border-top: 1px dotted rgba(196, 145, 42, 0.4);
  }

  /* CAROUSELS — крупнее, с глубокими тенями */
  .carousel-section { padding: 70px 48px 30px !important; }
  .carousel-head h3 {
    font-size: clamp(28px, 3.6vw, 40px) !important;
    font-weight: 700 !important;
  }
  .carousel-superhead {
    font-size: 13px !important;
    letter-spacing: 8px !important;
  }
  .promo-card {
    width: 360px !important;
    border-radius: 22px !important;
    box-shadow: 0 26px 60px rgba(44, 26, 14, 0.20) !important;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s !important;
  }
  .promo-card:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 36px 80px rgba(139, 38, 53, 0.32) !important;
  }
  .promo-title {
    font-size: 24px !important;
    letter-spacing: 0.6px !important;
  }
  .pop-card {
    width: 280px !important;
    border-radius: 16px !important;
  }
  .pop-name { font-size: 17px !important; }
  .pop-price { font-size: 24px !important; }

  /* FOOTER — массивнее, с акцентной полосой сверху */
  .foot {
    margin-top: 80px !important;
    padding: 80px 48px 56px !important;
    position: relative;
  }
  .foot::before {
    content: '';
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 240px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  }
  .foot .mark {
    font-size: 44px !important;
    letter-spacing: 1px !important;
  }
}

@media (min-width: 1280px) {
  /* Двухколоночная вёрстка featured + 2x2 остальные */
  .grid .dish:first-child {
    flex-direction: row-reverse !important;
  }
  .grid .dish:first-child .dish-body {
    padding: 48px 56px !important;
  }
  .grid .dish:first-child .dish-name { font-size: 36px !important; }
  .grid .dish:first-child .dish-desc { font-size: 17px !important; line-height: 1.7 !important; }
}

/* === Sequential reveal: заголовки секций тоже плавно появляются === */
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 900px) {
    .section-head, .carousel-head { opacity: 0; transform: translateY(8px); transition: all 0.6s ease; }
    .section-head.in, .carousel-head.in { opacity: 1; transform: translateY(0); }
  }
}

/* === Плавающая кнопка «Оставить отзыв» (мобила, поверх всего) === */
.review-fab {
  position: fixed;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 13px;
  background: linear-gradient(135deg, #8B2635 0%, #6E1428 100%);
  color: #F5EDD8;
  text-decoration: none;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 999px;
  border: 1px solid rgba(212, 162, 78, 0.55);
  box-shadow: 0 8px 22px rgba(20, 14, 8, 0.35), 0 2px 6px rgba(20, 14, 8, 0.25);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  touch-action: manipulation;
}
.review-fab:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(20, 14, 8, 0.35);
}
.review-fab-icon {
  width: 18px;
  height: 18px;
  color: #D4A24E;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.15));
}
.review-fab-text { white-space: nowrap; }

@media (hover: hover) {
  .review-fab:hover {
    background: linear-gradient(135deg, #9A2D3D 0%, #7C1A30 100%);
    box-shadow: 0 12px 28px rgba(20, 14, 8, 0.4), 0 3px 8px rgba(20, 14, 8, 0.28);
  }
}

/* На десктопе — скрываем (на широких экранах не мешаем editorial-вёрстке) */
@media (min-width: 900px) {
  .review-fab { display: none; }
}
