/* ==========================================================================
   Якудза — ресторан японской кухни в Череповце
   Дизайн-система: тёплый графит + крем + фирменный красно-терракотовый акцент
   ========================================================================== */

:root {
  --ink: #171210;
  --ink-2: #221a15;
  --ink-3: #2e241d;
  --paper: #fbf7f0;
  --paper-2: #f6efe4;
  --cream: #f1e7d6;
  --white: #fffdf9;
  --accent: #b13110;
  --accent-2: #cf4a22;
  --accent-dark: #8c2509;
  --accent-soft: #f4dbd0;
  --gold: #b98a2e;
  --muted: #75675b;
  --line: rgba(23, 18, 16, 0.12);
  --line-light: rgba(251, 247, 240, 0.16);
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 30px 70px -38px rgba(60, 30, 10, 0.5);
  --shadow-soft: 0 18px 44px -26px rgba(60, 30, 10, 0.4);
  --font-display: 'Prata', 'Times New Roman', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --head-h: 76px;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body.nav-open, body.lb-open { overflow: hidden; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }

.h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.05rem);
  line-height: 1.14;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.2;
}

.h2--light, .h3--light { color: var(--paper); }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 18px 0 0;
}

.lead--light { color: rgba(251, 247, 240, 0.78); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.kicker--light { color: #e9967a; }

.wrap {
  width: min(1240px, 100% - 40px);
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .kicker { color: #e9967a; }
.section--dark .lead { color: rgba(251, 247, 240, 0.78); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.sec-note {
  max-width: 42ch;
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.sec-note--light { color: rgba(251, 247, 240, 0.7); }
.sec-note a { color: var(--accent); border-bottom: 1px solid rgba(177, 49, 16, 0.35); }
.sec-note a:hover { border-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 34px -18px rgba(177, 49, 16, 0.75);
}
.btn--accent:hover { background: var(--accent-2); box-shadow: 0 24px 40px -18px rgba(177, 49, 16, 0.85); }

.btn--ghost {
  border-color: currentColor;
  color: inherit;
  background: transparent;
  opacity: 0.92;
}
.btn--ghost:hover { background: rgba(23, 18, 16, 0.06); opacity: 1; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(251, 247, 240, 0.12); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
}
.skip:focus { left: 10px; top: 10px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--paper);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--paper);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 9, 0.72), rgba(15, 11, 9, 0));
  pointer-events: none;
  transition: opacity 0.4s;
}
.site-head.is-scrolled::before, .site-head--solid::before { opacity: 0; }
.site-head.is-scrolled, .site-head--solid {
  background: rgba(20, 15, 12, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(251, 247, 240, 0.08), 0 24px 50px -30px rgba(0, 0, 0, 0.7);
}

.head-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--head-h);
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo img { width: 64px; height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)); }
.logo-txt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--paper);
}
.logo-txt small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.6);
}

.head-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 600;
}
.head-nav a { position: relative; opacity: 0.86; padding: 6px 0; }
.head-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.head-nav a:hover { opacity: 1; }
.head-nav a:hover::after { width: 100%; }

.head-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
  opacity: 0.94;
}
.head-phone:hover { color: #f0a184; }

.head-cta { flex: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: var(--paper); transition: 0.3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  background: rgba(20, 15, 12, 0.98);
  backdrop-filter: blur(16px);
  padding: 12px 20px 26px;
  display: grid;
  gap: 8px;
}
.mobile-nav nav { display: grid; gap: 2px; margin-bottom: 12px; }
.mobile-nav nav a {
  padding: 13px 6px;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line-light);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--head-h) + 40px) 0 clamp(90px, 12vh, 140px);
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: -10% 0 0; z-index: 0; }
.hero-bg img { width: 100%; height: 115%; object-fit: cover; transform: scale(1.04); will-change: transform; }
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 11, 9, 0.78) 0%, rgba(15, 11, 9, 0.18) 42%, rgba(15, 11, 9, 0.88) 100%),
    radial-gradient(90% 70% at 20% 100%, rgba(177, 49, 16, 0.4), transparent 60%);
}
.hero-in { position: relative; z-index: 2; max-width: 900px; }
.hero-kicker {
  margin: 0 0 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.78);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.hero-sub {
  max-width: 54ch;
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: rgba(251, 247, 240, 0.86);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.badge {
  padding: 9px 16px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(15, 11, 9, 0.4);
  backdrop-filter: blur(6px);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-foot {
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.6);
}
.hero-line { width: 1px; height: 56px; background: linear-gradient(180deg, rgba(251, 247, 240, 0.7), transparent); }

/* ---------- Facts ---------- */
.facts { background: var(--ink-2); color: var(--paper); border-top: 1px solid rgba(251, 247, 240, 0.06); }
.facts-in {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 44px 0;
}
.fact { display: flex; flex-direction: column; gap: 6px; }
.fact b { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 400; }
.fact span { font-size: 0.9rem; color: rgba(251, 247, 240, 0.62); line-height: 1.45; }

/* ---------- About ---------- */
.about-in {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.about-media { position: relative; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about-img--main { width: 88%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.about-img--sub {
  position: absolute;
  right: 0;
  bottom: -8%;
  width: 52%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid var(--paper);
}
.about-stamp {
  position: absolute;
  left: -12px;
  top: 8%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  box-shadow: 0 24px 44px -20px rgba(177, 49, 16, 0.7);
  transform: rotate(-8deg);
}
.about-list { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 18px; }
.about-list li { padding-left: 26px; position: relative; color: #4a3f36; }
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(177, 49, 16, 0.14);
}
.about-list b { color: var(--ink); }

/* ---------- Menu catalog ---------- */
.menu-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.venue-switch {
  display: inline-flex;
  padding: 5px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 4px;
}
.vsw {
  border: 0;
  background: transparent;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: 0.3s var(--ease);
  white-space: nowrap;
}
.vsw.active { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-soft); }

.menu-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
  max-width: 400px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.menu-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(177, 49, 16, 0.12); }
.menu-search input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  width: 100%;
}
.menu-search-clear {
  border: 0;
  background: var(--paper-2);
  color: var(--muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.cat-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 16px;
  margin: 0 -2px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s var(--ease);
  white-space: nowrap;
}
.chip span { font-size: 0.74rem; color: var(--muted); font-weight: 700; }
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.active span { color: rgba(255, 255, 255, 0.72); }

.menu-status {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 18px;
  min-height: 1.4em;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.dish {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.dish:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(177, 49, 16, 0.3);
}
.dish-ph { position: relative; aspect-ratio: 10 / 7; overflow: hidden; background: var(--paper-2); }
.dish-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.dish:hover .dish-ph img { transform: scale(1.07); }
.dish-ph--empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(177, 49, 16, 0.12), transparent 55%),
    var(--paper-2);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dish-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.dish-name { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; line-height: 1.3; letter-spacing: 0; }
.dish-meta { margin: 0; font-size: 0.76rem; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.dish-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dish-price { font-size: 1.12rem; font-weight: 800; }
.dish-links { display: inline-flex; align-items: center; gap: 6px; }
.dish-order, .dish-book {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: 0.3s var(--ease);
  white-space: nowrap;
}
.dish-order { background: var(--accent); color: #fff; }
.dish-order:hover { background: var(--accent-2); }
.dish-book { border: 1px solid var(--line); color: var(--ink); }
.dish-book:hover { border-color: var(--accent); color: var(--accent); }

.menu-more { display: flex; justify-content: center; margin-top: 34px; }
.menu-cta {
  margin-top: 44px;
  padding: 26px 30px;
  border: 1px dashed rgba(177, 49, 16, 0.4);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.6);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.menu-cta p { margin: 0; flex: 1; min-width: 220px; color: var(--muted); }

/* ---------- Promos ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.promo-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}
.promo-card:hover { transform: translateY(-5px); border-color: rgba(233, 150, 122, 0.4); }
.promo-ph { min-height: 220px; }
.promo-ph img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.promo-body h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.75rem); color: var(--paper); }
.promo-body p { margin: 0; font-size: 0.92rem; color: rgba(251, 247, 240, 0.72); }
.promo-link {
  margin-top: auto;
  align-self: flex-start;
  color: #f0a184;
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(240, 161, 132, 0.4);
  padding-bottom: 3px;
}
.promo-link:hover { border-color: #f0a184; }

.week-deals { margin-top: clamp(36px, 5vw, 64px); }
.week-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 22px; }
.week-col {
  padding: 26px 30px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(251, 247, 240, 0.04);
}
.week-col h4 { font-size: 1rem; font-weight: 800; color: #f0a184; margin: 0 0 14px; letter-spacing: 0.04em; }
.week-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.week-col li { padding-left: 20px; position: relative; color: rgba(251, 247, 240, 0.82); font-size: 0.94rem; }
.week-col li::before { content: '—'; position: absolute; left: 0; color: var(--accent-2); }

/* ---------- Gallery ---------- */
.gal-filter { display: inline-flex; gap: 8px; }
.masonry { columns: 4; column-gap: 18px; }
.gal-item {
  margin: 0 0 18px;
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}
.gal-item button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.gal-item img { width: 100%; transition: transform 0.8s var(--ease); }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15, 11, 9, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: 0.45s var(--ease);
}
.gal-item:hover figcaption { opacity: 1; transform: none; }
.gal-item figcaption b { font-size: 0.95rem; }
.gal-item figcaption span { font-size: 0.76rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(12, 9, 7, 0.94);
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  padding: 40px 20px;
  animation: lbIn 0.3s var(--ease);
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-height: 100%; }
.lb-figure img { max-width: min(1100px, 100%); max-height: 80vh; object-fit: contain; border-radius: 14px; }
.lb-figure figcaption { color: rgba(251, 247, 240, 0.8); font-size: 0.92rem; }
.lb-close, .lb-prev, .lb-next {
  background: rgba(251, 247, 240, 0.08);
  border: 1px solid var(--line-light);
  color: var(--paper);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.3s;
  justify-self: center;
}
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-prev, .lb-next { font-size: 1.8rem; line-height: 1; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Delivery ---------- */
.delivery-in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.deliv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 22px; }
.deliv-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.deliv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.deliv-card b { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.deliv-card span { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.deliv-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.deliv-list li { padding-left: 24px; position: relative; color: #4a3f36; font-size: 0.94rem; }
.deliv-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.deliv-zones { margin-bottom: 26px; font-size: 0.92rem; }
.deliv-zones summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.deliv-zones p { margin: 12px 0 0; color: var(--muted); }
.deliv-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.delivery-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- Bonus ---------- */
.bonus-in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.bonus-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 30px 0 24px; }
.bonus-card {
  padding: 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(251, 247, 240, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.bonus-card:hover { border-color: rgba(233, 150, 122, 0.45); transform: translateY(-4px); }
.bonus-card b { font-family: var(--font-display); font-size: 1.6rem; color: #f0a184; }
.bonus-card span { font-size: 0.86rem; color: rgba(251, 247, 240, 0.72); line-height: 1.5; }
.bonus-details { color: rgba(251, 247, 240, 0.85); font-size: 0.92rem; }
.bonus-details summary { cursor: pointer; font-weight: 700; color: #f0a184; }
.bonus-text { margin-top: 14px; }
.bonus-text p { margin: 0 0 10px; color: rgba(251, 247, 240, 0.72); }
.bonus-media img { border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }

/* ---------- Booking ---------- */
.booking-in {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.booking-media { position: relative; }
.booking-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.booking-quote {
  position: absolute;
  left: -22px;
  bottom: 30px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 20px 24px;
  max-width: 260px;
  box-shadow: var(--shadow);
}
.booking-quote p { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.35; }
.booking-quote span { font-size: 0.78rem; color: rgba(251, 247, 240, 0.6); }

.booking-form { margin-top: 30px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2375675b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(177, 49, 16, 0.12); }
.field .is-error, input.is-error, select.is-error { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.check.is-error span { color: #c0392b; }
.form-hint { margin: 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

.booking-success {
  margin-top: 30px;
  padding: 34px;
  border: 1px solid rgba(177, 49, 16, 0.3);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
  justify-items: start;
}
.ok-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(177, 49, 16, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.booking-success h3 { font-family: var(--font-display); font-size: 1.5rem; }
.booking-success p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.booking-success-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Venues ---------- */
.venue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 34px; }
.venue-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}
.venue-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.venue-ph { min-height: 100%; background: var(--ink); display: grid; place-items: center; padding: 22px; }
.venue-ph img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; }
.venue-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.venue-body h3 { font-family: var(--font-display); font-size: 1.5rem; }
.venue-addr { margin: 0; color: var(--muted); font-size: 0.94rem; }
.venue-schedule { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 6px; }
.venue-schedule li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.venue-schedule span { color: var(--muted); }
.venue-phone { margin: 4px 0 0; font-weight: 800; font-size: 1.05rem; }
.venue-tip { margin: 0; font-size: 0.84rem; }
.venue-tip a { color: var(--accent); border-bottom: 1px solid rgba(177, 49, 16, 0.3); }
.venue-tip a:hover { border-color: var(--accent); }
.venue-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.venue-actions .btn { padding: 10px 18px; font-size: 0.86rem; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { display: block; filter: saturate(0.9); }

/* ---------- Vacancies ---------- */
.vac-list { display: grid; gap: 14px; max-width: 900px; }
.vac-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.vac-item[open] { border-color: rgba(177, 49, 16, 0.35); box-shadow: var(--shadow-soft); }
.vac-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.vac-item summary::-webkit-details-marker { display: none; }
.vac-title { font-family: var(--font-display); font-size: 1.3rem; }
.vac-meta { font-size: 0.86rem; color: var(--accent); font-weight: 700; }
.vac-body { padding: 4px 26px 28px; display: grid; gap: 18px; }
.vac-group h4 { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; }
.vac-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.vac-group li { padding-left: 20px; position: relative; font-size: 0.92rem; color: #4a3f36; }
.vac-group li::before { content: '·'; position: absolute; left: 6px; color: var(--accent); font-weight: 900; }

/* ---------- Contacts ---------- */
.contacts-in {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.contacts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 28px; }
.contact-card {
  padding: 24px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: rgba(251, 247, 240, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(233, 150, 122, 0.5); }
.contact-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(177, 49, 16, 0.2);
  color: #f0a184;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.contact-card b { font-size: 1rem; color: var(--paper); }
.contact-card span { font-size: 0.82rem; color: rgba(251, 247, 240, 0.6); }
.legal { margin-bottom: 28px; }
.legal ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal li { font-size: 0.84rem; color: rgba(251, 247, 240, 0.6); }
.tips-note { margin: 16px 0 0; font-size: 0.84rem; color: rgba(251, 247, 240, 0.6); }
.tips-note a { color: #f0a184; border-bottom: 1px solid rgba(240, 161, 132, 0.35); }
.tips-note a:hover { border-color: #f0a184; }
.contacts-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.contacts-media img { border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }

/* ---------- Footer ---------- */
.site-foot { background: #100c0a; color: rgba(251, 247, 240, 0.72); border-top: 1px solid rgba(251, 247, 240, 0.07); }
.foot-in {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 64px 0 40px;
}
.foot-brand img { margin-bottom: 16px; }
.foot-brand p { margin: 0; font-size: 0.9rem; max-width: 34ch; }
.foot-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.45);
  margin: 0 0 14px;
}
.foot-col p { margin: 0 0 12px; font-size: 0.88rem; line-height: 1.7; }
.foot-col a:hover { color: #f0a184; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(251, 247, 240, 0.07);
  font-size: 0.78rem;
  color: rgba(251, 247, 240, 0.4);
}

/* ---------- Mobile bar ---------- */
.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(20, 15, 12, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(251, 247, 240, 0.12);
  border-radius: 20px;
  padding: 8px;
  transform: translateY(120%);
  transition: transform 0.45s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  color: rgba(251, 247, 240, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 14px;
}
.mobile-bar a:active { background: rgba(251, 247, 240, 0.08); }
.mobile-bar-main { background: var(--accent); color: #fff !important; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Страница полного меню (menu.html)
   ========================================================================== */

.page-menu { background: var(--paper); }
.menu-hero { padding: calc(var(--head-h) + 64px) 0 clamp(30px, 5vw, 60px); background: var(--paper); }
.menu-hero .lead { margin-bottom: 28px; }

.mtabs { display: inline-flex; gap: 8px; padding: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.mtab {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: 0.3s var(--ease);
}
.mtab span { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.mtab:hover { background: var(--white); }
.mtab.active { background: var(--ink); color: var(--paper); }
.mtab.active span { color: rgba(251, 247, 240, 0.6); }

.mvenue { padding: 20px 0 0; }
.mvenue-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(30px, 5vw, 60px) 0 26px;
  border-top: 1px solid var(--line);
}
.mvenue-addr { margin: 10px 0 0; color: var(--muted); font-size: 0.94rem; }
.mvenue-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.mcat { padding: 26px 0; scroll-margin-top: calc(var(--head-h) + 20px); }
.mcat-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mcat-title span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.mdish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

@media (max-width: 1100px) {
  .dish-grid, .mdish-grid { grid-template-columns: repeat(3, 1fr); }
  .head-nav { display: none; }
  .burger { display: flex; }
  .head-cta { margin-left: auto; }
  .head-phone { display: none; }
  .about-in, .delivery-in, .bonus-in, .booking-in, .contacts-in { grid-template-columns: 1fr; }
  .delivery-media, .bonus-media, .contacts-media { order: -1; }
  .about-media { margin-bottom: 26px; }
  .venue-grid { grid-template-columns: 1fr; }
  .masonry { columns: 3; }
}

@media (max-width: 820px) {
  :root { --head-h: 64px; }
  .wrap { width: min(1240px, 100% - 32px); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .head-cta { display: none; }
  .burger { margin-left: auto; }
  .about-stamp { left: 6px; width: 96px; height: 96px; }
  .dish-grid, .mdish-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid, .week-cols { grid-template-columns: 1fr; }
  .promo-card { grid-template-columns: 1fr; }
  .promo-ph { min-height: 200px; max-height: 260px; }
  .deliv-cards { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-bottom { padding-bottom: 104px; }
  .masonry { columns: 2; }
  .facts-in { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .mobile-bar { display: grid; }
  .hero { min-height: 92svh; }
  .hero-foot { display: none; }
  .about-img--main { width: 100%; }
  .about-img--sub { width: 62%; bottom: -6%; }
  .booking-quote { left: 12px; }
  .lightbox { grid-template-columns: 48px 1fr 48px; padding: 24px 8px; }
  .lb-close, .lb-prev, .lb-next { width: 42px; height: 42px; }
  .mvenue-head { flex-direction: column; align-items: flex-start; }
  body { padding-bottom: 0; }
}

@media (max-width: 560px) {
  .dish-grid, .mdish-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .venue-card { grid-template-columns: 1fr; }
  .venue-ph { min-height: 200px; max-height: 240px; }
  .foot-in { grid-template-columns: 1fr; }
  .hero-title { text-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
  .btn { padding: 13px 22px; }
  .hero-cta .btn { width: 100%; }
  .promo-body { padding: 24px; }
  .menu-bar { flex-direction: column; align-items: stretch; }
  .venue-switch { width: 100%; justify-content: space-between; }
  .vsw { flex: 1; padding: 11px 12px; }
  .menu-search { max-width: none; }
  .menu-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .mobile-bar, .preloader, .lightbox { display: none !important; }
}
