:root {
  --paper: #fbf5eb;
  --surface: #fffaf2;
  --ink: #2a2119;
  --muted: #75685c;
  --line: #e8d8c2;
  --tomato: #b4442f;
  --tomato-dark: #803121;
  --basil: #3f6f4f;
  --gold: #c99a49;
  --shadow: 0 18px 50px rgba(78, 47, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  overflow: hidden;
}

.shell {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 245, 235, 0.88);
  border-bottom: 1px solid rgba(232, 216, 194, 0.8);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--tomato);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 21px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-phone {
  color: var(--tomato-dark);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: var(--tomato);
  box-shadow: 0 12px 28px rgba(180, 68, 47, 0.2);
}

.button--ghost {
  color: var(--tomato-dark);
  background: rgba(255, 250, 242, 0.75);
  border-color: var(--line);
}

.button--cart {
  width: 100%;
  margin-top: 18px;
  color: var(--tomato-dark);
  background: #fff4e6;
  border-color: #f1d5b5;
}

.hero {
  min-height: min(780px, calc(100svh - 74px));
  padding: 86px 0 92px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(31, 20, 13, 0.78) 0%, rgba(31, 20, 13, 0.56) 44%, rgba(31, 20, 13, 0.12) 100%),
    url("https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1800&q=84");
  background-position: center;
  background-size: cover;
}

.hero__grid {
  display: block;
  max-width: 680px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  color: #fff5e7;
  background: rgba(180, 68, 47, 0.78);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  max-width: 610px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 250, 242, 0.84);
  font-size: 19px;
  line-height: 1.65;
}

.hero .button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin-top: 42px;
}

.stat {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 250, 242, 0.36);
}

.stat strong {
  display: block;
  font-size: 24px;
}

.stat span {
  color: rgba(255, 250, 242, 0.74);
  font-size: 13px;
}

.hero__visual {
  display: none;
}

.hero__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(251, 245, 235, 0.2), rgba(251, 245, 235, 0));
}

.hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.notice {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  width: min(260px, calc(100% - 48px));
  padding: 18px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(232, 216, 194, 0.9);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(42, 33, 25, 0.12);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 74px 0;
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active {
  color: #fff;
  background: var(--basil);
  border-color: var(--basil);
}

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

.menu-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.menu-item__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f1e2cf;
}

.menu-item__body {
  display: flex;
  min-height: 226px;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

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

.menu-item h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.menu-item p {
  margin: 12px 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.menu-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: var(--tomato-dark);
  background: #f8e2cf;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.menu-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-item__meta span {
  color: var(--muted);
}

.menu-item__meta strong {
  font-size: 22px;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 390px);
  gap: 24px;
  align-items: start;
}

.cart-panel,
.checkout-form {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(78, 47, 23, 0.08);
}

.cart-panel {
  position: sticky;
  top: 98px;
  order: 2;
  padding: 22px;
}

.checkout-form {
  order: 1;
}

.cart-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-panel__head h3 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.cart-kicker {
  display: block;
  color: var(--tomato);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: var(--basil);
  background: #edf4ec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.cart-empty {
  color: var(--muted);
}

.cart-empty {
  padding: 22px;
  text-align: center;
  background: #fff8ef;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fffaf2;
  border: 1px solid #eadcc8;
  border-radius: 8px;
}

.cart-line__image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  background: #f1e2cf;
  border-radius: 7px;
}

.cart-line strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.2;
}

.cart-line span {
  color: var(--muted);
  font-size: 14px;
}

.cart-line__controls {
  display: grid;
  grid-template-columns: 30px 26px 30px;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eadcc8;
  border-radius: 999px;
}

.cart-line__controls button {
  width: 30px;
  height: 30px;
  color: var(--tomato-dark);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cart-line__sum {
  grid-column: 2 / -1;
  justify-self: end;
  margin-top: -4px;
  color: var(--tomato-dark);
  font-size: 15px;
}

.cart-summary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  background: #f7ead8;
  border-radius: 8px;
}

.cart-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.cart-summary strong {
  color: var(--ink);
}

.cart-summary .cart-total {
  margin-top: 4px;
  padding-top: 12px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.checkout-form {
  padding: 26px;
}

.checkout-form__head {
  margin-bottom: 20px;
}

.checkout-form__head h3 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.cart-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.checkout-form textarea {
  resize: vertical;
}

.form-wide {
  grid-column: 1 / -1;
}

.checkout-submit {
  width: 100%;
  margin-top: 18px;
}

.checkout-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(42, 33, 25, 0.46);
}

.payment-modal.is-open {
  display: grid;
}

.payment-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(42, 33, 25, 0.25);
}

.payment-dialog h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.payment-dialog p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.payment-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.payment-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.payment-box div {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

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

.step {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.step h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.delivery {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: stretch;
}

.delivery-panel {
  padding: 30px;
  background: var(--basil);
  color: #fff;
  border-radius: 8px;
}

.delivery-panel h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 1;
}

.delivery-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.delivery-list {
  display: grid;
  gap: 12px;
}

.delivery-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.delivery-row strong {
  display: block;
  margin-bottom: 5px;
}

.delivery-row span {
  color: var(--muted);
}

.admin-note {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-note h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1;
}

.admin-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-list li {
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  line-height: 1.55;
}

.admin-list strong {
  color: var(--ink);
}

.footer {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 28px, 720px);
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 42px 0 56px;
  }

  .hero__grid,
  .delivery,
  .admin-note,
  .checkout {
    grid-template-columns: 1fr;
  }

  .hero__visual,
  .hero__visual img {
    min-height: 390px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    display: block;
  }

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

  .menu-grid,
  .steps,
  .form-grid,
  .payment-box {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

  .form-wide {
    grid-column: auto;
  }

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

  .notice {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .footer__inner {
    display: block;
  }
}

/* Checkout polish override */
#order .checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 390px);
  gap: 24px;
  align-items: start;
}

#order .checkout-form {
  order: 1;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(78, 47, 23, 0.08);
}

#order .cart-panel {
  position: sticky;
  top: 98px;
  order: 2;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(78, 47, 23, 0.08);
}

#order .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#order .form-wide {
  grid-column: 1 / -1;
}

#order .checkout-form label {
  display: grid;
  gap: 8px;
}

#order .checkout-form input,
#order .checkout-form select,
#order .checkout-form textarea {
  display: block;
  width: 100%;
}

@media (max-width: 880px) {
  #order .checkout,
  #order .form-grid {
    grid-template-columns: 1fr;
  }

  #order .cart-panel {
    position: static;
  }

  #order .form-wide {
    grid-column: auto;
  }
}
