/* Breskva menu — aligned with home brand (orange #fb5607) */
:root {
  --orange: #fb5607;
  --orange-light: #ff8c5a;
  --orange-lighter: #ffa076;
  --orange-mid: #fd6b2a;
  --orange-dark: #e04d06;
  --orange-rgb: 251, 86, 7;
  --menu-bg: #FFFBF8;
  --menu-ink: #5C5249;
  --menu-ink-mid: #8A8076;
  --menu-accent: var(--orange);
  --menu-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --menu-cols: 2;
  --menu-gap: clamp(8px, 2vw, 14px);
  --menu-pad: clamp(16px, 5vw, 32px);
  /* Резерв під плаваючу кнопку «в додаток» + safe area */
  --menu-cta-stack: calc(56px + 28px + max(12px, env(safe-area-inset-bottom)));
}

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

html { overflow-x: hidden; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px var(--menu-pad);
  background: rgba(255, 251, 248, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(var(--orange-rgb), 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.site-header__logo {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--menu-ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-header__logo img {
  width: 34px;
  height: 34px;
  border-radius: 22%;
  margin-right: 8px;
  object-fit: cover;
}

.lang-switch {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(212, 132, 92, 0.22);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(184, 111, 74, 0.06);
}

.lang-switch a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--menu-ink-mid);
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-lighter) 0%, var(--orange) 55%, var(--orange-dark) 100%);
  box-shadow: 0 2px 8px rgba(var(--orange-rgb), 0.32);
}

.site-header__title {
  margin: 0;
  line-height: inherit;
  grid-column: 3;
  justify-self: end;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--menu-ink-mid);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--menu-cols), 1fr);
  gap: var(--menu-gap);
  padding: var(--menu-pad);
  padding-bottom: clamp(48px, 12vw, 80px);
}

/* Коли видно кнопку «в додаток» — не перекривати останні картки */
body.menu-has-app-cta .grid {
  padding-bottom: max(var(--menu-cta-stack), clamp(88px, 20vw, 120px));
}

.card__photo-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 88%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(var(--orange-rgb), 0.1);
}

.card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card__photo { transform: scale(1.03); }

.card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: rgba(92, 82, 73, 0.12);
  background: rgba(255, 248, 242, 0.8);
}

.card__body { padding: 10px 0 0; text-align: center; }

.card__name {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--menu-ink);
}

.card__price {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-weight: 700;
  color: var(--menu-accent);
}

@media (min-width: 560px) { :root { --menu-cols: 3; } }
@media (min-width: 860px) { :root { --menu-cols: 4; } }

.state {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--menu-ink-mid);
  padding: 40px var(--menu-pad);
  text-align: center;
}

.state--error { color: var(--orange-dark); }

/* Лише позиціонування плаваючої кнопки — без склa/фону */
.app-cta-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 10px var(--menu-pad) max(14px, env(safe-area-inset-bottom));
  pointer-events: none;
  background: none;
}

/* Увесь «liquid glass» — тільки на кнопці, трохи контрастніше щоб не зливалась з фоном */
.app-cta {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 26px 13px 22px;
  font-family: var(--menu-font);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2d2824;
  text-decoration: none;
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.75);
  outline: 1px solid rgba(0, 0, 0, 0.06);
  outline-offset: -1px;
  background:
    linear-gradient(
      152deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 252, 248, 0.45) 38%,
      rgba(255, 236, 220, 0.35) 100%
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(40, 28, 20, 0.14),
    0 4px 12px rgba(var(--orange-rgb), 0.18),
    0 0 0 1px rgba(var(--orange-rgb), 0.1);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  backdrop-filter: blur(32px) saturate(200%);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.app-cta > * {
  position: relative;
  z-index: 1;
}

.app-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 58%,
    rgba(var(--orange-rgb), 0.1) 100%
  );
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.app-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  border-radius: 100px 100px 55% 55%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.42;
  pointer-events: none;
  z-index: -1;
}

.app-cta:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 36px rgba(40, 28, 20, 0.16),
    0 6px 16px rgba(var(--orange-rgb), 0.22),
    0 0 0 1px rgba(var(--orange-rgb), 0.14);
}

.app-cta:active {
  transform: translateY(0) scale(0.99);
}

.app-cta__logo {
  width: 26px;
  height: 26px;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 4px 12px rgba(0, 0, 0, 0.1);
}

@supports not (backdrop-filter: blur(1px)) {
  .app-cta {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(var(--orange-rgb), 0.22);
    outline: none;
    box-shadow:
      0 10px 28px rgba(40, 28, 20, 0.12),
      0 4px 12px rgba(var(--orange-rgb), 0.15);
  }
}
