:root {
  --bg: #fff8f2;
  --surface: #ffffff;
  --text: #151515;
  --muted: #695f57;
  --line: #eadfd6;
  --brand: #f36b16;
  --brand-dark: #ca4c00;
  --ink: #070707;
  --soft: #fff0e3;
  --ok: #168d48;
  --closed: #b42318;
  --shadow: 0 20px 60px rgba(34, 20, 9, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0, rgba(243, 107, 22, .18), transparent 28rem),
    linear-gradient(180deg, #fffaf5 0, var(--bg) 44%, #fff 100%);
}

button, input, textarea, select { font: inherit; }

.page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 82px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(22, 141, 72, .12);
}

.status.closed::before {
  background: var(--closed);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, .12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  padding: 26px 0 32px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  max-width: 690px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: .96;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0 0 20px;
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 32px rgba(243, 107, 22, .28);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.hero-card {
  position: relative;
  min-height: 360px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .16), transparent 12rem),
    linear-gradient(145deg, #17110d, #050505);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #fff;
}

.hero-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-top: 22px;
}

.plate {
  position: absolute;
  left: 50%;
  bottom: -96px;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 54%, #fff8e8 0 22%, transparent 23%),
    radial-gradient(circle at 36% 38%, #d85b28 0 11%, transparent 12%),
    radial-gradient(circle at 66% 37%, #2f8f3d 0 10%, transparent 11%),
    radial-gradient(circle at 55% 70%, #f8c24a 0 13%, transparent 14%),
    radial-gradient(circle at 41% 66%, #7a3f22 0 12%, transparent 13%),
    #f7f0e9;
  border: 14px solid #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.hero-card-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
}

.hero-card-note strong {
  display: block;
  margin-bottom: 3px;
}

.hero-card-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 16px;
}

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

.section-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 22px;
  align-items: start;
  padding-bottom: 42px;
}

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

.item {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(34, 20, 9, .08);
}

.food {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 38%, #fef0c7 0 18%, transparent 19%),
    radial-gradient(circle at 64% 34%, #4c9f48 0 15%, transparent 16%),
    radial-gradient(circle at 44% 66%, #b64a23 0 18%, transparent 19%),
    radial-gradient(circle at 72% 67%, #f7c247 0 15%, transparent 16%),
    #fff7ea;
  border: 1px solid #f1dfcd;
}

.item h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.item p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 950;
}

.add {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.cart {
  position: sticky;
  top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
}

.cart h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.cart-empty {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.4;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
}

.cart-row strong {
  display: block;
  margin-bottom: 3px;
}

.cart-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.qty button {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

label {
  font-size: 14px;
  font-weight: 900;
}

input, textarea, select {
  width: 100%;
  border: 1px solid #dfd2c7;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px;
  outline: none;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(243, 107, 22, .14);
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 950;
}

.send {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.send:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.notice {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff0e3;
  color: #8c3900;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.notice.show { display: block; }

@media (max-width: 980px) {
  .hero, .layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 320px;
    max-width: 520px;
  }

  .cart {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .brand img {
    width: 72px;
    height: 52px;
  }

  .hero {
    padding-top: 10px;
  }

  .hero-copy h1 {
    font-size: 39px;
  }

  .hero-actions, .btn {
    width: 100%;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 7px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

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

  .food {
    width: 74px;
    height: 74px;
  }
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eefaf1;
  color: #116537;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.stock-badge.out {
  background: #fff1ee;
  color: var(--closed);
}

.add:disabled,
.choice-option.disabled {
  opacity: .48;
  cursor: not-allowed;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 11px;
}

.daily-box {
  margin: 10px 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(34, 20, 9, .08);
}

.section-head.compact {
  margin-top: 0;
}

.daily-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.daily-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffaf6;
}

.daily-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.daily-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.daily-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.daily-option.out {
  text-decoration: line-through;
  opacity: .55;
}

.daily-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .52);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.modal-head strong {
  display: block;
  font-size: 21px;
}

.modal-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
}

.choice-content {
  display: grid;
  gap: 14px;
  padding: 17px;
}

.choice-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fffaf6;
}

.choice-group-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.choice-group-title strong {
  display: block;
}

.choice-group-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.choice-options {
  display: grid;
  gap: 8px;
}

.choice-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.choice-option input {
  width: auto;
}

.choice-option small {
  color: var(--muted);
  font-weight: 850;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 17px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.cart-choice-list {
  margin: 4px 0 0;
  padding-left: 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .daily-groups {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    display: grid;
  }

  .choice-option {
    grid-template-columns: auto 1fr;
  }

  .choice-option small {
    grid-column: 2;
  }
}

.cart-item-options {
  display: block;
  margin-top: 7px;
  color: #5f554d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-line;
}
