:root {
  --ink: #211814;
  --muted: #6d625b;
  --paper: #fffaf2;
  --cream: #f3eadb;
  --green: #2f5a46;
  --sage: #dce9dc;
  --clay: #bc6544;
  --gold: #d99b42;
  --line: rgba(33, 24, 20, .14);
  --shadow: 0 18px 45px rgba(47, 38, 29, .14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

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

.hero {
  display: grid;
  background: #241813;
  color: #fffaf2;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fffaf2;
  color: var(--green);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
}

.brand > span:last-child {
  font-family: Georgia, serif;
}

.nav-links {
  font-weight: 700;
  font-size: .95rem;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 242, .12);
  backdrop-filter: blur(8px);
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 28px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero .eyebrow {
  margin: 0;
  color: #f3c16e;
  white-space: nowrap;
}

.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;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 720px;
  font-size: clamp(3.4rem, 7.4vw, 7rem);
  line-height: .93;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 250, 242, .9);
  font-size: 1.05rem;
  line-height: 1.4;
}

.hero-actions,
.tabs,
.basket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
}

.button.primary {
  background: var(--green);
  color: #fffaf2;
}

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

.button.ghost {
  background: rgba(255, 250, 242, .15);
  color: #fffaf2;
  border: 1px solid rgba(255, 250, 242, .35);
}

.service-band {
  width: min(1180px, calc(100% - 32px));
  margin: -56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fffaf2;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-item {
  min-height: 112px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--line);
}

.service-item:last-child {
  border-right: 0;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 900;
}

.service-item strong,
.service-item span:last-child {
  display: block;
}

.service-item span:last-child {
  color: var(--muted);
  margin-top: 4px;
}

.menu-section,
.order-layout,
.visit {
  width: min(1180px, calc(100% - 32px));
  margin: 86px auto;
}

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

.section-heading.compact {
  display: block;
}

.section-heading h2,
.visit h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.tabs {
  margin-bottom: 22px;
}

.offer-strip {
  margin-bottom: 22px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border: 1px solid rgba(47, 90, 70, .2);
  border-radius: 8px;
  background: linear-gradient(135deg, #f9f2e7, #eaf3ea);
}

.offer-strip span {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--green);
  font-weight: 900;
  line-height: 1.25;
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.tab.active {
  background: var(--ink);
  color: #fffaf2;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.menu-card {
  min-height: 222px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-card.is-added {
  border-color: rgba(47, 90, 70, .48);
  box-shadow: inset 0 0 0 2px rgba(47, 90, 70, .12);
}

.menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.dish-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--green);
  overflow: hidden;
}

.dish-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.menu-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.menu-card p {
  color: var(--muted);
  line-height: 1.45;
}

.menu-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price {
  font-weight: 900;
  font-size: 1.08rem;
}

.add-button,
.qty-button,
.text-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.add-button {
  min-width: 108px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--sage);
  color: var(--green);
}

.add-button.is-added {
  background: var(--green);
  color: #fffaf2;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 28px;
}

.order-panel,
.basket,
.visit {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.order-panel,
.basket {
  padding: 28px;
}

.mode-picker,
.payment-picker,
.account-picker {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mode-picker {
  grid-template-columns: repeat(3, 1fr);
}

.payment-picker,
.account-picker {
  grid-template-columns: repeat(2, 1fr);
}

.mode-picker legend,
.payment-picker legend,
.account-picker legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.mode-picker label,
.payment-picker label,
.account-picker label {
  cursor: pointer;
}

.mode-picker input,
.payment-picker input,
.account-picker input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.mode-picker span,
.payment-picker span,
.account-picker span {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.payment-picker span,
.account-picker span {
  min-height: 74px;
  place-items: start;
  align-content: center;
  padding: 12px;
}

.payment-picker small,
.account-picker small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.mode-picker input:checked + span,
.payment-picker input:checked + span,
.account-picker input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: #fffaf2;
}

.payment-picker input:checked + span small,
.account-picker input:checked + span small {
  color: rgba(255, 250, 242, .82);
}

.account-status {
  margin: -12px 0 24px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.35;
}

.account-status.is-saved {
  background: var(--sage);
  color: var(--green);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

label[hidden] {
  display: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--ink);
  padding: 12px 13px;
}

.field-help {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.field-help.is-good {
  color: var(--green);
}

.field-help.is-warning {
  color: var(--clay);
}

textarea {
  resize: vertical;
}

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

.hidden {
  display: none;
}

.basket {
  position: sticky;
  top: 18px;
}

.basket-header,
.basket-row,
.totals div,
.visit {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.basket-header {
  align-items: center;
  margin-bottom: 18px;
}

.basket h2 {
  margin: 0;
}

.text-button {
  background: transparent;
  color: var(--clay);
}

.basket-list {
  min-height: 136px;
  display: grid;
  gap: 12px;
}

.promo-entry {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.promo-controls {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.promo-controls .button {
  min-height: 44px;
  padding: 10px 16px;
}

.promo-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.4;
}

.promo-status.is-good {
  color: var(--green);
}

.promo-status.is-warning {
  color: #9a4d28;
}

.empty {
  color: var(--muted);
  padding: 26px 0;
}

.basket-row {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.basket-name {
  display: block;
  font-weight: 900;
}

.basket-meta {
  color: var(--muted);
  font-size: .9rem;
}

.basket-options {
  max-width: 230px;
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.qty-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
}

.totals {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.totals div {
  color: var(--muted);
}

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

.totals .discount-row,
.totals .discount-row strong {
  color: var(--green);
}

.totals .grand {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.25rem;
}

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

.basket-note {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: .92rem;
  line-height: 1.45;
}

.payment-note {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: #f4edf8;
  color: #3d2549;
  font-size: .92rem;
  line-height: 1.4;
}

.payment-note strong {
  color: #211814;
}

.visit {
  align-items: flex-start;
  padding: 30px;
  margin-bottom: 48px;
}

.visit-details {
  display: grid;
  gap: 8px;
  min-width: min(100%, 430px);
}

.visit-details p {
  margin: 0;
  color: var(--muted);
}

.visit-details strong {
  color: var(--ink);
}

dialog {
  width: min(440px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(19, 15, 12, .58);
}

dialog h2 {
  margin-bottom: 10px;
}

.options-dialog {
  width: min(620px, calc(100% - 32px));
}

.dialog-intro {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.45;
}

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

.dialog-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

@media (max-width: 900px) {
  .service-band,
  .menu-grid,
  .order-layout,
  .offer-strip {
    grid-template-columns: 1fr;
  }

  .service-band {
    margin-top: 0;
  }

  .service-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-item:last-child {
    border-bottom: 0;
  }

  .basket {
    position: static;
  }

  .visit {
    display: block;
  }

  .visit-details {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 0;
  }

  .topbar,
  .nav-links,
  .form-grid,
  .mode-picker {
    align-items: stretch;
  }

  .topbar {
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  .hero-content {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 0 28px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .section-heading {
    display: block;
  }

  .form-grid,
  .mode-picker,
  .payment-picker,
  .account-picker,
  .option-grid {
    grid-template-columns: 1fr;
  }
}
