:root {
  --bg: #eef5ea;
  --bg-soft: #f7fbf5;
  --text: #1e2a1c;
  --text-muted: #5a6b58;
  --accent: #3f7a45;
  --accent-soft: rgba(63, 122, 69, 0.12);
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(30, 42, 28, 0.1);
  --font-display: "Literata", Georgia, serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(
      to top,
      var(--bg-soft) 0%,
      rgba(247, 251, 245, 0.88) 4%,
      transparent 14%
    ),
    linear-gradient(
      180deg,
      rgba(247, 251, 245, 0.88) 0%,
      rgba(247, 251, 245, 0.25) 35%,
      transparent 58%
    ),
    url("/assets/bg-leaves.webp");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center bottom, center top, center bottom;
  background-size: 100% 100%, 100% 55%, cover;
  background-attachment: fixed, fixed, fixed;
}

.site-header {
  text-align: center;
  padding: 1.75rem 1.25rem 0.75rem;
}

.logo {
  width: min(220px, 58vw);
  height: auto;
  display: block;
  margin: 0 auto;
  animation: fade-up 0.7s ease both;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(63, 122, 69, 0.28);
}

.panel[hidden] {
  display: none;
}

.panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dish-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .dish-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.dish {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(30, 42, 28, 0.04);
  animation: fade-up 0.45s ease both;
}

.dish-photo-btn {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  flex-shrink: 0;
  border-radius: 10px;
  line-height: 0;
}

.dish-photo-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dish-photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition: transform 0.2s ease;
}

.dish-photo-btn:hover .dish-photo {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(20, 28, 18, 0.78);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.lightbox.is-open,
.lightbox:not([hidden]) {
  display: flex;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-img {
  max-width: min(92vw, 720px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  cursor: default;
  animation: fade-up 0.25s ease both;
}

.lightbox-close {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0px));
  right: max(0.85rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  max-width: 2.5rem;
  max-height: 2.5rem;
  padding: 0;
  margin: 0;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 50%;
  background: rgba(247, 251, 245, 0.95);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.lightbox-close:hover {
  background: #fff;
}

body.lightbox-open {
  overflow: hidden;
}

.dish-body {
  flex: 1;
  min-width: 0;
}

.dish-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.dish-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.3;
}

.dish-price {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.dish-desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dish-kbju {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.9;
}

.empty {
  text-align: center;
  color: var(--text-muted);
}

.site-footer {
  position: relative;
  text-align: center;
  margin-top: 0.5rem;
  padding: 1.5rem 1.5rem 2rem;
  color: var(--text);
  background: transparent;
}

.site-footer.is-text-only {
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
}

.site-footer .footer-inner {
  max-width: 28rem;
  margin: 0 auto;
}

.footer-phone {
  margin: 0;
}

.footer-phone a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  letter-spacing: 0.01em;
}

.footer-phone a:hover {
  color: var(--accent);
}

.footer-info {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer.is-text-only .footer-info {
  margin-top: 0;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  body {
    background-attachment: scroll, scroll, scroll;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 100% 100%, 100% 50%, cover;
    background-position: center bottom, center top, center bottom;
  }
}
