.table-order-nav { justify-content: center; }
.table-order-nav a[aria-current="page"] { color: var(--accent-deep); border-color: var(--accent); }
.table-order-intro { max-width: 780px; }
.table-order-intro h1 { max-width: 18ch; }
.table-order-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: start; gap: 20px; }
.table-order-main { min-width: 0; }
.selected-dish { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(0, 1.1fr); overflow: hidden; padding: 0; }
.selected-dish__photo { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; background: #e9e2d5; }
.selected-dish__copy { padding: clamp(18px, 3vw, 28px); }
.selected-dish__badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.selected-dish__status { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; border-radius: 999px; color: #246b42; background: #e7f3e9; font-size: 12px; font-weight: 750; }
.selected-dish__status [aria-hidden="true"] { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #cdebd5; font-size: 11px; line-height: 1; }
.selected-dish__category { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border: 1px solid #d8d8d8; border-radius: 999px; color: #5a5a5a; background: #f7f7f7; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.selected-dish__copy h2 { margin: 7px 0 8px; font: 600 clamp(21px, 3vw, 28px)/1.2 var(--font-display); color: var(--ink); }
.selected-dish__copy p { color: #5a5a5a; line-height: 1.55; }
.selected-dish__price { display: block; margin-top: 16px; font-size: 19px; }
.table-order-kicker { color: var(--warm); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.suggestions { margin-top: 30px; }
.suggestions__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.suggestions__head h2 { margin: 5px 0 0; font: 600 clamp(22px, 3vw, 28px) var(--font-display); color: var(--ink); }
.suggestions__head p { max-width: 34ch; margin: 0; color: #5a5a5a; font-size: 14px; }
.suggestion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.suggestion-card { min-width: 0; overflow: hidden; border: 1px solid #d8d8d8; border-radius: 12px; background: #fff; }
.suggestion-card__photo { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e9e2d5; }
.suggestion-card__copy { padding: 13px; }
.suggestion-card__copy small { color: var(--warm); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.suggestion-card__copy h3 { margin: 6px 0; font: 600 16px/1.25 var(--font-display); color: var(--ink); }
.suggestion-card__copy p { min-height: 38px; margin: 0; color: #5a5a5a; font-size: 13px; line-height: 1.45; }
.suggestion-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.suggestion-card__bottom strong { white-space: nowrap; }
.suggestion-card .btn { min-height: 42px; padding: 0 11px; font-size: 13px; }
.order-summary { position: sticky; top: 16px; }
.order-summary__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-summary h2 { margin: 0 0 8px; font: 600 22px var(--font-display); }
.order-summary__table { color: var(--warm); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.order-summary__count { flex: none; padding: 5px 10px; border: 1px solid #d8d8d8; border-radius: 999px; color: #333; font-size: 12px; font-weight: 650; }
.order-summary__items { display: grid; gap: 0; margin: 12px 0; }
.order-summary__item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ebebeb; font-size: 14px; }
.order-summary__item-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.order-summary__item-name b { flex: none; color: #555; font-size: 12px; }
.order-summary__item-name span { min-width: 0; }
.order-summary__item > span:last-child { white-space: nowrap; font-weight: 700; }
.order-summary .field { margin: 15px 0; }
.order-summary .field textarea { min-height: 76px; }
.order-summary .hint { line-height: 1.45; }
.order-summary .sum { margin-bottom: 12px; }
.order-summary .btn { min-height: 48px; }
.sent-order { max-width: 760px; }
.sent-order h2 { margin-top: 8px; font: 600 26px var(--font-display); }
.sent-order__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.sent-order__actions .btn { min-height: 48px; }
.sent-order__status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #e7f5ec; color: #000000; font-size: 13px; font-weight: 750; }
.sent-order__status.is-paid { background: #e8eef8; color: #355384; }
.table-order-back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 16px; color: #000000; font-size: 14px; font-weight: 650; }
.mobile-order-bar { display: none; }
@media (max-width: 820px) {
  .table-order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .selected-dish { grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); }
}
@media (max-width: 600px) {
  .table-order-nav { justify-content: flex-start; }
  .app-main { padding: 20px 14px calc(190px + env(safe-area-inset-bottom)); }
  .intro { margin-bottom: 16px; }
  .table-order-intro h1 { max-width: 16ch; margin-top: 6px; font-size: clamp(28px, 7.8vw, 33px); line-height: 1.06; }
  .table-order-intro p { max-width: 44ch; font-size: 14px; line-height: 1.45; }
  .table-order-back { margin-bottom: 12px; }
  .selected-dish { grid-template-columns: 104px minmax(0, 1fr); align-items: stretch; border-radius: 14px; }
  .selected-dish__photo { width: 104px; height: 100%; min-height: 150px; max-height: 190px; }
  .selected-dish__copy { align-self: center; padding: 14px; }
  .selected-dish__copy h2 { margin: 6px 0; font-size: 20px; }
  .selected-dish__copy p { display: -webkit-box; overflow: hidden; margin: 0; font-size: 13px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .selected-dish__price { margin-top: 9px; font-size: 17px; }
  .table-order-kicker { font-size: 10px; letter-spacing: .1em; }
  .suggestions { margin-top: 22px; }
  .suggestions__head { align-items: start; flex-direction: column; }
  .suggestions__head { gap: 5px; margin-bottom: 11px; }
  .suggestions__head p { font-size: 13px; line-height: 1.4; }
  .suggestion-grid { grid-template-columns: 1fr; gap: 9px; }
  .suggestion-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); border-radius: 11px; }
  .suggestion-card__photo { height: 100%; min-height: 124px; aspect-ratio: auto; }
  .suggestion-card__copy { display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; }
  .suggestion-card__copy small { font-size: 9px; }
  .suggestion-card__copy h3 { margin: 4px 0; font-size: 15px; }
  .suggestion-card__copy p { font-size: 12px; line-height: 1.35; }
  .suggestion-card__bottom { margin-top: 8px; }
  .suggestion-card__copy p { min-height: 0; }
  .suggestion-card .btn { min-height: 40px; padding: 0 12px; font-size: 12px; }
  .order-summary { padding: 16px; border-radius: 14px; }
  .order-summary .field { margin: 10px 0; }
  .order-summary .field textarea { min-height: 64px; }
  .order-summary .hint { margin: 8px 0; font-size: 12px; }
  .order-summary .btn[data-send-order] { display: none; }
  .mobile-order-bar { position: fixed; z-index: 45; inset-inline: 0; bottom: calc(56px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; padding: 9px 14px; border-top: 1px solid #e2e8e2; background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px rgba(20,43,42,.12); backdrop-filter: blur(12px); }
  .mobile-order-bar__summary { display: grid; gap: 2px; min-width: 0; }
  .mobile-order-bar__summary span { color: #68756e; font-size: 11px; font-weight: 700; }
  .mobile-order-bar__summary strong { color: var(--ink); font-size: 18px; }
  .mobile-order-bar .btn { min-height: 48px; flex: 0 0 auto; justify-content: center; padding-inline: 17px; }
  body[data-order-stage="sent"] .mobile-order-bar { display: none; }
  .sent-order__actions { grid-template-columns: 1fr; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .app-main { padding: 22px 24px 96px; }
  .table-order-intro { max-width: none; margin-bottom: 10px; }
  .table-order-intro h1 { max-width: none; margin: 5px 0 6px; font-size: clamp(31px, 3.6vw, 37px); line-height: 1.12; }
  .table-order-intro p { max-width: 68ch; font-size: 14px; line-height: 1.4; }
  .table-order-back { margin-bottom: 6px; }
  .table-order-layout { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .92fr); gap: 16px; }
  .selected-dish { grid-template-columns: minmax(170px, .82fr) minmax(0, 1.18fr); }
  .selected-dish__photo { min-height: 196px; }
  .selected-dish__copy { padding: 18px 20px; }
  .selected-dish__copy h2 { font-size: 24px; }
  .selected-dish__price { margin-top: 11px; }
  .table-order-kicker { display: inline-flex; align-items: center; gap: 6px; color: #246b42; letter-spacing: .08em; }
  .table-order-kicker [aria-hidden="true"] { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e7f3e9; font-size: 12px; }
  .suggestions { margin-top: 18px; }
  .suggestions__head { margin-bottom: 10px; }
  .suggestions__head h2 { font-size: 23px; }
  .suggestions__head p { font-size: 13px; }
  .suggestion-grid { gap: 10px; }
  .suggestion-card__copy { padding: 10px; }
  .suggestion-card__copy p { min-height: 0; font-size: 12px; }
  .suggestion-card__copy h3 { font-size: 15px; }
  .suggestion-card .btn { min-height: 44px; }
  .order-summary { top: 12px; padding: 14px 16px; border-top: 3px solid #171717; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
  .order-summary__table { color: #4b4b4b; }
  .order-summary h2 { margin-bottom: 0; font-size: 21px; }
  .order-summary__items { margin: 9px 0; }
  .order-summary__item { padding: 5px 0; }
  .order-summary .field { margin: 7px 0; gap: 5px; }
  .order-summary .field textarea { min-height: 46px; padding: 8px 10px; }
  .order-summary .sum { margin: 4px 0 7px; padding: 6px 0; }
  .order-summary .hint { margin: 4px 0 6px; font-size: 11px; line-height: 1.3; }
  .order-summary .btn { min-height: 48px; }
}
@media (max-width: 380px) {
  .selected-dish { grid-template-columns: 84px minmax(0, 1fr); }
  .selected-dish__photo { width: 84px; min-height: 136px; }
  .selected-dish__copy { padding: 11px; }
  .selected-dish__copy h2 { font-size: 18px; }
  .suggestion-card { grid-template-columns: 82px minmax(0, 1fr); }
  .suggestion-card__photo { min-height: 120px; }
  .suggestion-card__copy { padding: 8px 10px; }
  .suggestion-card__copy h3 { font-size: 14px; }
  .suggestion-card__bottom { gap: 6px; }
  .suggestion-card .btn { padding-inline: 9px; font-size: 11px; }
  .mobile-order-bar { gap: 8px; padding-inline: 10px; }
  .mobile-order-bar .btn { padding-inline: 12px; font-size: 13px; }
}

.table-order-extension{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px 16px;width:min(1120px,calc(100% - 32px));margin:14px auto 0;padding:11px 15px;border:1px solid #d8d8d8;border-radius:12px;background:#fff}
.table-order-extension__tag{padding:6px 9px;border-radius:999px;background:#eef3f8;color:#344054;font-size:10px;font-weight:800;letter-spacing:.08em}
.table-order-extension p{margin:0;color:#5a5a5a;font-size:12px;line-height:1.45}
.table-order-extension p strong{color:#1c1c1c}
.table-order-extension>a{display:inline-flex;align-items:center;gap:5px;min-height:40px;color:#1c1c1c;font-size:12px;font-weight:700}
.table-order-extension>a span{color:#006aff}
@media(max-width:600px){.table-order-extension{grid-template-columns:auto 1fr;width:calc(100% - 24px);margin-top:10px;padding:10px 11px;gap:7px 9px}.table-order-extension__tag{font-size:9px}.table-order-extension p{grid-column:1/-1;font-size:11px}.table-order-extension>a{grid-column:1/-1;min-height:36px;padding-left:2px}}
