@font-face {
  font-family: 'Vezitsa';
  src: url('/fonts/vezitsa.ttf') format('truetype');
  font-display: swap;
  font-weight: 400;
}

:root {
  --paper: #efe3cc;
  --paper-warm: #f4ead4;
  --paper-soft: #fbf1dc;
  --paper-edge: #d8c8a8;
  --red: #a1191b;
  --red-deep: #7a1216;
  --gold: #c9a24b;
  --ink: #3e2a1e;
  --ink-soft: #5b3a29;
  --ink-mute: rgba(62,42,30,.66);
  --line: rgba(62,42,30,.18);
  --cream: #f4ead4;
  --font-display: 'Vezitsa', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .46;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.24 0 0 0 0 0.12 0 0 0 0.13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(161,25,27,.94);
  color: var(--cream);
  box-shadow: 0 12px 32px rgba(62,42,30,.16);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(244,234,212,.42);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: .9;
}
.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(244,234,212,.68);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.topbar__links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.topbar__links a, .ghost-link {
  border: 1px solid rgba(244,234,212,.28);
  padding: 9px 12px;
  color: var(--cream);
  background: rgba(244,234,212,.06);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 54px) 38px;
  background: var(--red);
  color: var(--cream);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: radial-gradient(circle, var(--cream) 2px, transparent 2px);
  background-size: 42px 42px;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero .eyebrow { color: rgba(244,234,212,.72); }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .015em;
}
.hero h1 {
  max-width: 780px;
  font-size: clamp(58px, 11vw, 142px);
  color: var(--cream);
}
.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(244,234,212,.78);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.62;
}
.hero__media {
  position: relative;
  transform: rotate(1.2deg);
  border: 10px solid var(--paper-warm);
  background: var(--paper-warm);
  box-shadow: 0 28px 70px rgba(37,13,9,.38);
}
.hero__media::before,
.hero__media::after {
  content: '';
  position: absolute;
  top: -18px;
  width: 98px;
  height: 26px;
  background: rgba(244,234,212,.42);
  box-shadow: 0 5px 12px rgba(37,13,9,.16);
}
.hero__media::before { left: -28px; transform: rotate(-24deg); }
.hero__media::after { right: -28px; transform: rotate(24deg); }
.hero__media img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}
.hero__note {
  position: absolute;
  right: 14px;
  bottom: -18px;
  padding: 9px 14px;
  background: var(--paper-warm);
  color: var(--red);
  font-family: var(--font-hand);
  font-size: 24px;
  transform: rotate(-3deg);
}
.tear {
  height: 42px;
  margin-top: -1px;
  background:
    linear-gradient(177deg, var(--red) 0 45%, transparent 46%),
    linear-gradient(183deg, transparent 54%, var(--paper) 55%);
}

.section {
  padding: clamp(34px, 5vw, 72px) clamp(18px, 4vw, 54px);
}
.shell {
  max-width: 1180px;
  margin: 0 auto;
}
.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}
.mode-tabs button {
  min-height: 58px;
  border: 1px solid var(--line);
  background: rgba(244,234,212,.58);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 0 10px 26px rgba(62,42,30,.08);
}
.mode-tabs button.active {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
}
.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}
.panel-head h2 {
  max-width: 650px;
  font-size: clamp(42px, 7vw, 86px);
}
.panel-head p {
  margin: 0;
  color: var(--ink-mute);
  line-height: 1.65;
}

.tools {
  position: sticky;
  top: 74px;
  z-index: 20;
  display: grid;
  gap: 12px;
  padding: 12px 0 18px;
  background: linear-gradient(180deg, var(--paper) 76%, rgba(239,227,204,0));
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  padding: 0 14px;
  min-height: 50px;
  box-shadow: 0 10px 22px rgba(62,42,30,.07);
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.categories button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: rgba(244,234,212,.66);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}
.categories button.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  display: grid;
  background: var(--paper-warm);
  border: 1px solid rgba(62,42,30,.12);
  box-shadow: 0 16px 34px rgba(62,42,30,.12);
}
.food-card:nth-child(3n+1) { transform: rotate(-.4deg); }
.food-card:nth-child(3n+2) { transform: rotate(.35deg); }
.food-card__photo {
  aspect-ratio: 1.3 / .82;
  overflow: hidden;
  border-bottom: 1px solid rgba(62,42,30,.1);
}
.food-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.food-card__body {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.food-card h3 {
  color: var(--ink);
  font-size: clamp(27px, 3.4vw, 38px);
}
.meta {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.food-card p, details {
  margin: 0;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.5;
}
details summary {
  color: var(--red);
  cursor: pointer;
  font-weight: 700;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.price {
  color: var(--red);
  font-size: 18px;
  font-weight: 850;
}
.add, .primary, .mini {
  background: var(--red);
  color: var(--cream);
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.add {
  width: 38px;
  height: 38px;
  font-size: 26px;
  line-height: 1;
}
.stepper {
  display: inline-grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  background: rgba(161,25,27,.04);
}
.stepper button {
  height: 34px;
  background: transparent;
  color: var(--red);
  font-size: 20px;
}
.stepper span {
  text-align: center;
  font-weight: 850;
}
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 28px), 620px);
  min-height: 58px;
  padding: 0 18px;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--cream);
  box-shadow: 0 22px 50px rgba(62,42,30,.32);
  font-weight: 850;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 28px;
}
.booking__photo {
  position: relative;
  align-self: start;
  border: 10px solid var(--paper-warm);
  background: var(--paper-warm);
  transform: rotate(-.8deg);
  box-shadow: 0 18px 42px rgba(62,42,30,.16);
}
.booking__photo img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  object-fit: cover;
}
.booking__copy {
  padding: 20px 4px;
}
.booking__copy h3 {
  font-size: clamp(42px, 6vw, 74px);
}
.booking__copy p {
  color: var(--ink-mute);
  line-height: 1.65;
}
.form-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--paper-warm);
  border: 1px solid rgba(62,42,30,.13);
  box-shadow: 0 16px 34px rgba(62,42,30,.12);
}
.field {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(255,250,243,.72);
  color: var(--ink);
  padding: 12px;
}
.field textarea { resize: vertical; min-height: 86px; }
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.slot-grid button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,250,243,.72);
  color: var(--ink);
  font-weight: 800;
}
.slot-grid button.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--cream);
}
.slot-grid button:disabled {
  cursor: not-allowed;
  opacity: .42;
}
.primary {
  min-height: 48px;
  padding: 0 18px;
}
.primary:disabled {
  opacity: .6;
  cursor: wait;
}
.notice {
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid rgba(161,25,27,.24);
  background: rgba(161,25,27,.07);
  color: var(--red-deep);
  font-weight: 700;
}
.notice.ok {
  border-color: rgba(91,100,48,.28);
  background: rgba(111,106,70,.11);
  color: #4f5527;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(37,13,9,.42);
}
.sheet__panel {
  width: min(100%, 620px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--paper-warm);
  border: 1px solid rgba(62,42,30,.18);
  box-shadow: 0 24px 70px rgba(37,13,9,.38);
}
.sheet__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.sheet__head h2 {
  font-size: 48px;
}
.icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: var(--cream);
  font-size: 26px;
}
.cart-lines {
  display: grid;
  gap: 10px;
  padding: 0 20px 18px;
}
.cart-line {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cart-line img {
  width: 54px;
  height: 54px;
  object-fit: cover;
}
.cart-line span {
  display: block;
  color: var(--ink-mute);
  font-size: 13px;
}
.checkout {
  display: grid;
  gap: 13px;
  padding: 0 20px 20px;
}
.payment {
  display: grid;
  gap: 8px;
}
.payment button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255,250,243,.72);
  color: var(--ink);
  font-weight: 800;
}
.payment button.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--cream);
}
.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 850;
}

.admin {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) 18px 80px;
}
.admin h1 {
  font-size: clamp(54px, 9vw, 104px);
}
.admin-login {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 24px 0;
}
.admin-list {
  display: grid;
  gap: 16px;
}
.admin-card {
  padding: 16px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(62,42,30,.1);
}
.admin-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.admin-card h3 {
  font-size: 34px;
}
.status {
  color: var(--red);
  font-weight: 850;
}
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.status-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(255,250,243,.72);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}
.status-actions button.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--cream);
}
.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  color: var(--ink-mute);
  text-align: center;
}

@media (max-width: 900px) {
  .hero__grid, .panel-head, .booking { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .topbar { align-items: flex-start; }
  .topbar__links { flex-direction: column; align-items: stretch; }
  .topbar__links a { text-align: center; }
  .hero { padding-top: 34px; }
  .mode-tabs { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-login { grid-template-columns: 1fr; }
}
