:root {
  --ink: #191714;
  --muted: #6f6a60;
  --paper: #fbfaf6;
  --surface: #fff;
  --line: #e5dfd4;
  --accent: #b9362f;
  --accent-dark: #8f2924;
  --gold: #d69e35;
  --leaf: #426f45;
  --shadow: rgba(48, 35, 20, 0.08);
}

body[data-theme="dark"] {
  --ink: #f6efe5;
  --muted: #c8bbae;
  --paper: #11100e;
  --surface: #1e1a17;
  --line: #3b332c;
  --accent: #df3f35;
  --accent-dark: #b9362f;
  --gold: #f0b441;
  --leaf: #8ac083;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(25, 23, 20, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #170806;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.language-switch {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch button,
.theme-toggle {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.language-switch button {
  min-width: 38px;
  height: 30px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.language-switch button.active {
  background: #fff;
  color: #21180c;
}

.theme-toggle {
  width: 42px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: var(--gold);
  color: #21180c;
}

.theme-icon {
  grid-area: 1 / 1;
  display: inline-grid;
  place-items: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.theme-icon svg,
.cart-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-sun {
  opacity: 0;
  transform: scale(0.6) rotate(-40deg);
}

body[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: scale(0.6) rotate(40deg);
}

body[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.ghost-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.cart-link {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.cart-link [data-cart-count] {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #21180c;
  font-size: 12px;
}

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

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: #21180c;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 14, 10, 0.84), rgba(17, 14, 10, 0.36) 58%, rgba(17, 14, 10, 0.12)),
    linear-gradient(0deg, rgba(17, 14, 10, 0.74), transparent 42%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12vh;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  width: min(580px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-icon,
.footer-icon,
.map-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon {
  width: 18px;
  height: 18px;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.menu-toolbar,
.contact-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.menu-toolbar h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.category-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
}

.category-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.menu-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 88px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.menu-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.image-preview {
  width: 100%;
  border: 0;
  display: block;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-preview img,
.menu-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: color-mix(in srgb, var(--surface), var(--line));
}

.menu-body {
  padding: 18px;
}

.menu-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.menu-meta h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.price {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 800;
}

.menu-body p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.add-cart {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
}

.add-cart:hover {
  background: var(--accent-dark);
}

.card-cart-count {
  min-width: 28px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  padding: 0 7px;
}

.card-cart-count[hidden] {
  display: none;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(66, 111, 69, 0.1);
  color: var(--leaf);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.contact-band {
  margin-bottom: 70px;
  border-top: 1px solid var(--line);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface), var(--accent) 5%), var(--surface));
  box-shadow: 0 14px 38px var(--shadow);
  overflow: hidden;
}

.footer-main,
.map-section {
  padding: 26px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
}

.footer-brand h2,
.map-section h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.footer-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.footer-links h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.footer-links a {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.footer-links a:hover,
.map-links a:hover span {
  color: var(--accent);
}

.map-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  gap: 22px;
  align-items: start;
}

.map-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.map-links a {
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.map-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.map-links strong {
  font-size: 18px;
}

.map-links span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 26px;
  background: color-mix(in srgb, var(--paper), var(--surface) 45%);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.footer-bottom a:hover {
  color: var(--accent);
}
.footer-copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.footer-copy a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.footer-copy a:hover {
  text-decoration: underline;
}
.footer-dev-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-dev-links a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: 0.2s ease;
}

.footer-dev-links a:hover {
  transform: translateY(-2px);
  background: rgba(244, 179, 79, 0.16);
  border-color: rgba(244, 179, 79, 0.45);
}
.footer-dev-links svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.cart-panel {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px var(--shadow);
  padding: 22px;
}

.cart-head,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.clear-cart {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 0 14px;
}

.cart-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cart-empty {
  margin-top: 18px;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.quantity-controls {
  display: grid;
  grid-template-columns: 34px 30px 34px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.quantity-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.quantity-controls b {
  font-size: 14px;
}

.line-total {
  color: var(--accent);
  white-space: nowrap;
}

.cart-total {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 20px;
}

.cart-total strong {
  color: var(--accent);
  font-size: 28px;
}

.image-dialog {
  width: min(920px, calc(100% - 24px));
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(17, 14, 10, 0.28);
}

.image-dialog::backdrop {
  background: rgba(17, 14, 10, 0.68);
  backdrop-filter: blur(6px);
}

.image-dialog img {
  width: 100%;
  max-height: 76vh;
  border-radius: 8px;
  object-fit: contain;
  background: #111;
}

.image-dialog strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 20px;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(25, 23, 20, 0.86);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 48px;
  height: 48px;
  border: 1px solid color-mix(in srgb, var(--gold), #fff 22%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #21180c;
  box-shadow: 0 14px 34px var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  background: #ffd36b;
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 860px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-toolbar,
  .contact-band {
    align-items: start;
    flex-direction: column;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .footer-main,
  .map-section {
    grid-template-columns: 1fr;
  }

  .map-links {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 64px 1fr auto;
  }

  .line-total {
    grid-column: 2 / -1;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    width: calc(100% - 24px);
    max-width: 1180px;
  }

  .brand small {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .language-switch button {
    min-width: 34px;
  }

  .theme-toggle,
  .cart-link {
    min-height: 36px;
  }

  .ghost-link,
  .cart-link {
    font-size: 14px;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-content {
    width: calc(100% - 24px);
    max-width: 1180px;
    padding-bottom: 8vh;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.05;
  }

  .hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .menu-grid {
    width: calc(100% - 24px);
    max-width: 1180px;
    grid-template-columns: 1fr;
  }

  .cart-panel {
    width: calc(100% - 24px);
    max-width: 1180px;
    margin-top: -44px;
    padding: 16px;
  }

  .cart-head,
  .cart-total {
    align-items: start;
    flex-direction: column;
  }

  .cart-item {
    grid-template-columns: 58px 1fr;
  }

  .cart-item img {
    width: 58px;
    height: 58px;
  }

  .quantity-controls,
  .line-total {
    grid-column: 2;
  }

  .menu-toolbar,
  .contact-band {
    width: calc(100% - 24px);
    max-width: 1180px;
    padding-top: 54px;
  }

  .site-footer {
    width: calc(100% - 24px);
    max-width: 1180px;
  }

  .footer-main,
  .map-section {
    padding: 18px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}
