/* ── The Breakfast · Café & Kitchen ─────────────────────────── */
:root {
  --brown: #8B6239;
  --brown-dark: #6B4B29;
  --brown-deep: #3E2A16;
  --espresso: #1E1207;
  --espresso-2: #2E1D0D;
  --cream: #F6EFE4;
  --bg: #FAF5EC;
  --card: #FFFFFF;
  --blue: #2364A1;
  --blue-bright: #2E7CC4;
  --ink: #14100B;
  --text: #1A1208;
  --muted: #5f5140;
  --line: rgba(20, 16, 11, 0.14);
  --line-strong: rgba(20, 16, 11, 0.82);
  --shadow: 0 10px 28px rgba(30, 18, 7, 0.10);
  --radius: 18px;
  --font: 'Poppins', 'Lato', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

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

/* ── Language switcher ── */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid rgba(62, 42, 22, 0.2);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brown-deep);
  transition: all 0.2s;
}
.lang-switch button.active {
  background: var(--brown-deep);
  color: var(--cream);
}

/* ══ COVER PAGE ══ */
.cover-page {
  background:
    radial-gradient(1100px 650px at 80% -12%, rgba(139, 98, 57, 0.13), transparent 60%),
    radial-gradient(850px 550px at -10% 108%, rgba(35, 100, 161, 0.09), transparent 55%),
    var(--bg);
}

/* фоновое видео титульной страницы */
.cover-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
body.has-video .cover-video { opacity: 1; }
.cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(18, 11, 4, 0.66) 0%,
    rgba(18, 11, 4, 0.48) 42%,
    rgba(18, 11, 4, 0.74) 100%);
}
body.has-video .cover-overlay { display: block; }

.cover {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  position: relative;
  z-index: 2;
}

/* режим поверх видео: светлый текст, стеклянные карточки */
body.has-video .cover-logo { filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45)); }
body.has-video .cover-tagline { color: rgba(246, 239, 228, 0.82); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4); }
body.has-video .cover-footer { color: rgba(246, 239, 228, 0.72); }
body.has-video .cover-footer .hours { color: #fff; }
body.has-video .cover-footer a { color: #9CC4E8; }
body.has-video .lang-switch { background: rgba(18, 11, 4, 0.4); border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
body.has-video .lang-switch button { color: rgba(246, 239, 228, 0.85); }
body.has-video .lang-switch button.active { background: var(--cream); color: var(--espresso); }
body.has-video .btn-menu {
  background: var(--cream);
  color: var(--espresso);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
body.has-video .btn-menu:hover { background: #fff; }
body.has-video .btn-menu .sub { color: var(--blue); }
body.has-video .cover-link {
  background: rgba(18, 11, 4, 0.38);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
body.has-video .cover-link:hover {
  transform: translateY(-3px);
  background: rgba(18, 11, 4, 0.55);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}
body.has-video .cover-link:active { transform: translateY(0); box-shadow: none; }
body.has-video .cover-link svg * { stroke: #F1E6D2; }
body.has-video .cover-link svg [fill]:not([fill="none"]) { fill: #F1E6D2; stroke: none; }
body.has-video .cover-link span { color: rgba(246, 239, 228, 0.92); }
.cover-lang { position: absolute; top: 20px; right: 20px; }
.cover-logo { width: min(360px, 82vw); margin-bottom: 14px; animation: fadeUp 0.7s ease both; }
.cover-divider {
  width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  margin: 0 auto 26px;
  animation: fadeUp 0.7s 0.05s ease both;
}
.cover-tagline {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.02em;
  margin-bottom: 44px;
  animation: fadeUp 0.7s 0.08s ease both;
}

.btn-menu {
  display: block;
  width: min(380px, 100%);
  background: var(--espresso);
  color: var(--cream);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 21px 24px;
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(30, 18, 7, 0.32);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  animation: fadeUp 0.7s 0.16s ease both;
  position: relative;
  overflow: hidden;
}
.btn-menu::after {
  content: '';
  position: absolute; inset: 16px auto 16px 0; width: 5px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
}
.btn-menu:hover { transform: translateY(-3px); background: var(--espresso-2); box-shadow: 0 22px 46px rgba(30, 18, 7, 0.4); }
.btn-menu:active { transform: translateY(0); }
.btn-menu .sub {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #9CC4E8;
  margin-top: 4px;
}

.cover-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: min(380px, 100%);
  margin-top: 16px;
  animation: fadeUp 0.7s 0.24s ease both;
}
.cover-link {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 17px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.18s;
  width: 100%;
  box-shadow: 4px 4px 0 rgba(20, 16, 11, 0.9);
}
.cover-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(20, 16, 11, 0.9);
}
.cover-link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgba(20, 16, 11, 0.9);
}
.cover-link svg { width: 27px; height: 27px; }
.cover-link span { font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: 0.03em; }

.cover-footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 13.5px;
  font-family: 'Lato', sans-serif;
  line-height: 1.85;
  animation: fadeUp 0.7s 0.32s ease both;
}
.cover-footer a { color: var(--blue); font-weight: 700; letter-spacing: 0.02em; }
.cover-footer .hours {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Wi-Fi modal ── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 14, 6, 0.5);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 22px;
  padding: 30px 26px 24px;
  width: min(400px, 100%);
  text-align: center;
  color: var(--text);
  box-shadow: 8px 8px 0 rgba(20, 16, 11, 0.85);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s;
}
.modal-backdrop.open .modal { transform: none; }
.modal h3 {
  color: var(--ink);
  font-size: 19px;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.wifi-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg);
  border: 1.5px dashed rgba(20, 16, 11, 0.45);
  border-radius: 13px;
  padding: 13px 16px;
  margin-bottom: 10px;
  text-align: left;
}
.wifi-row .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  display: block; margin-bottom: 3px;
}
.wifi-row .value { font-size: 17.5px; font-weight: 700; color: var(--ink); font-family: 'Lato', sans-serif; letter-spacing: 0.03em; }
.copy-btn {
  background: var(--blue); color: #fff;
  font-size: 12.5px; font-weight: 700;
  padding: 9px 15px; border-radius: 9px;
  transition: all 0.15s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(35, 100, 161, 0.35);
}
.copy-btn:hover { background: var(--blue-bright); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.copied { background: #2e8b57; }
.modal-close {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 22px;
}
.modal-close:hover { color: var(--ink); }

/* ══ MENU PAGE ══ */
.menu-page {
  background:
    radial-gradient(1000px 500px at 85% -5%, rgba(139, 98, 57, 0.07), transparent 60%),
    var(--bg);
}

.menu-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(62, 42, 22, 0.18);
  box-shadow: 0 4px 18px rgba(62, 42, 22, 0.07);
}
.menu-header-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 8px;
}
.back-btn {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 6px 10px 6px 0;
  border-radius: 10px;
  flex-shrink: 0;
}
.back-btn svg { width: 20px; height: 20px; color: var(--ink); }
.menu-header-logo { height: 32px; }

.group-tabs {
  max-width: 860px; margin: 0 auto;
  display: flex; gap: 8px;
  padding: 6px 16px 10px;
}
.group-tab {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-deep);
  background: rgba(107, 75, 41, 0.08);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.group-tab.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
  box-shadow: 0 6px 16px rgba(30, 18, 7, 0.28);
}

.cat-nav {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 2px 16px 14px;
  max-width: 860px; margin: 0 auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px;
  background: var(--card);
  border: 1px solid rgba(62, 42, 22, 0.18);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brown-deep);
  white-space: nowrap;
  transition: all 0.18s;
}
.cat-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(35, 100, 161, 0.35);
}

.menu-body { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }

.promo-banner {
  display: flex; align-items: center; gap: 14px;
  background: var(--espresso);
  color: var(--cream);
  border-left: 5px solid var(--blue-bright);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 26px;
  font-size: 14.5px;
  line-height: 1.55;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 12px 28px rgba(30, 18, 7, 0.22);
}
.promo-banner .gift { font-size: 26px; flex-shrink: 0; }

.search-wrap { position: relative; margin-bottom: 26px; }
.search-wrap svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1px solid rgba(62, 42, 22, 0.22);
  border-radius: 14px;
  background: var(--card);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35, 100, 161, 0.15); }
.search-input::placeholder { color: var(--muted); }

.menu-section { margin-bottom: 42px; scroll-margin-top: 138px; }
.section-head {
  display: flex; align-items: center; gap: 11px;
  border-bottom: 2px solid rgba(62, 42, 22, 0.5);
  padding-bottom: 10px;
  margin-bottom: 4px;
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 56px; height: 2px;
  background: var(--blue);
}
.section-head h2 {
  color: var(--brown-deep);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-head .icon { font-size: 20px; }
.section-head .vol {
  margin-left: auto;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 10px;
}
.menu-item:hover { background: rgba(20, 16, 11, 0.035); }
.menu-item:last-child { border-bottom: none; }
.item-content { flex: 1; min-width: 0; }
.item-thumb {
  order: -1;
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(62, 42, 22, 0.14);
  box-shadow: 0 3px 10px rgba(62, 42, 22, 0.14);
  background: var(--cream);
}
.item-row {
  display: flex; align-items: baseline; gap: 10px;
}
.item-name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0.005em;
}
.item-portion {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
  font-family: 'Lato', sans-serif;
  white-space: nowrap;
}
.item-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(62, 42, 22, 0.26);
  transform: translateY(-4px);
  min-width: 18px;
}
.item-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--blue);
  font-family: 'Lato', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.item-desc {
  margin-top: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-notes {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid rgba(62, 42, 22, 0.14);
  color: var(--muted);
  border-radius: 16px;
  padding: 22px 24px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  box-shadow: 0 8px 24px rgba(62, 42, 22, 0.08);
}
.menu-notes p + p { margin-top: 5px; }

/* ── Dish modal ── */
.dish-backdrop { padding: 18px; }
.dish-card {
  background: var(--card);
  border-radius: 22px;
  width: min(440px, 100%);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 26px 70px rgba(30, 18, 7, 0.4);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s;
  scrollbar-width: none;
}
.dish-card::-webkit-scrollbar { display: none; }
.modal-backdrop.open .dish-card { transform: none; }
.dish-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(253, 250, 244, 0.92);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(30, 18, 7, 0.25);
  transition: transform 0.15s;
}
.dish-close svg { width: 17px; height: 17px; }
.dish-close:active { transform: scale(0.93); }
.dish-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(56dvh, 500px);
  overflow: hidden;
  border-bottom: 1px solid rgba(62, 42, 22, 0.12);
  background: var(--cream);
}
.dish-photo-wrap[hidden] { display: none; }
.dish-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.dish-info { padding: 20px 22px 22px; text-align: left; }
.dish-title-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px;
}
.dish-title-row h3 {
  flex: 1;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.dish-portion {
  flex-shrink: 0;
  background: var(--cream);
  border: 1px solid rgba(62, 42, 22, 0.2);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  color: var(--ink);
  white-space: nowrap;
  margin-top: 2px;
}
.dish-portion[hidden] { display: none; }
.dish-desc {
  font-family: 'Lato', sans-serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}
.dish-desc[hidden] { display: none; }
.dish-price {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(35, 100, 161, 0.35);
}

.no-results {
  text-align: center;
  color: var(--muted);
  padding: 50px 0;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
}

@media (max-width: 480px) {
  .item-name { font-size: 15px; }
  .item-price { font-size: 15.5px; }
  .section-head h2 { font-size: 17px; }
  .menu-section { scroll-margin-top: 132px; }
  .item-thumb { width: 64px; height: 64px; border-radius: 12px; }
  .menu-item { gap: 12px; }
}
