/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/font-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/font-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/font-2.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/font-3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/font-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/font-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Fixed hero text: Прямо у вас дома. */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/hero-italic.woff2') format('woff2');
  unicode-range: U+20, U+2e, U+41f, U+430, U+432, U+434, U+43c, U+43e, U+440-441, U+443, U+44f;
}

:root {
  --wine: #64132e;
  --wine-dark: #451121;
  --wine-deep: #37111e;
  --cream: #fff7e8;
  --gold: #f7ca72;
  --gold-light: #ffdc94;
  --bg: #faf4eb;
  --paper: #fffcf7;
  --ink: #2e2121;
  --muted: #6b5652;
  --line: #e8d8cb;
  --rose: #f3e6e1;
  --gutter: clamp(14px, 4vw, 40px);
  --header-height: 68px;
  --shadow: 0 10px 32px #5f382614;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Manrope, Arial, sans-serif;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
svg {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 3px solid #ae591a; outline-offset: 3px; }
[hidden] { display: none !important; }
.container, .header-inner { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

.header {
  position: sticky; top: 0; z-index: 20;
  background: #faf4ebf5; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; min-height: var(--header-height); align-items: center; gap: clamp(8px, 3vw, 24px); }
.brand { display: block; width: 100px; height: 47px; overflow: hidden; flex: none; position: relative; background: #56132e; border-radius: 12px; }
.brand img { position: absolute; width: 112px; height: 112px; left: -6px; top: -33px; }
.header-location, .desktop-label, .nav-link.desktop-menu-link { display: none; }
.header-nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav-link {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px; border-radius: 12px; color: var(--wine-dark); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.call-header, .icon-button {
  display: inline-grid; place-items: center; width: 44px; min-width: 44px; height: 44px;
  flex: none; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--wine);
}
.call-header svg, .icon-button svg { width: 20px; height: 20px; }

.hero {
  position: relative; overflow: hidden; margin-top: 12px; border-radius: 24px;
  background: var(--wine-dark); color: var(--cream); box-shadow: var(--shadow);
}
.hero-photo {
  height: clamp(155px, 47vw, 235px);
  background: linear-gradient(180deg, #45112100 58%, #451121 100%),
    url('/assets/pizza.jpg') 57% 62% / cover no-repeat;
}
.hero-copy { position: relative; margin-top: -17px; padding: 0 18px 21px; }
.hero-copy .eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  color: #f6d6a4; font-size: 10px; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; font-weight: 800;
}
.hero-copy .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 {
  font-size: clamp(27px, 8.2vw, 40px); line-height: 1.09; letter-spacing: -.055em;
  font-weight: 800; margin: 0 0 19px;
}
.hero h1 em {
  display: block; color: #ffe4b5; font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; letter-spacing: -.04em; margin-top: 6px;
}
.action-pill {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 54px; width: 100%; padding: 6px 7px 6px 16px;
  border-radius: 15px; font-size: 13px; line-height: 1.3; text-align: left; font-weight: 850;
}
.action-icon {
  display: grid; place-items: center; width: 39px; height: 39px; flex: none;
  border-radius: 11px;
}
.action-icon svg { width: 21px; height: 21px; }
.hero-cta { background: var(--gold); color: var(--wine-deep); box-shadow: 0 3px 0 #ae632b; }
.hero-cta .action-icon { color: var(--gold); background: var(--wine-dark); }
.hero-cta:focus-visible, .chat-head .icon-button:focus-visible { outline-color: var(--gold-light); }
.perks {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px; margin: 15px 0 28px;
}
.perks > div {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  border: 1px solid var(--line); border-radius: 14px; background: #fff9f1;
  padding: 9px 7px; font-size: 11px; line-height: 1.35;
}
.perk-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--rose); color: var(--wine); }
.perk-icon svg { width: 16px; height: 16px; }

.section-top { display: grid; gap: 12px; margin-bottom: 12px; }
.section-top h2, .support-copy h2 { font-size: clamp(28px, 7vw, 40px); margin: 0; line-height: 1.12; letter-spacing: -.045em; font-weight: 800; }
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 48px;
  color: var(--muted); border: 1px solid var(--line); background: var(--paper); border-radius: 14px;
}
.search:focus-within { border-color: var(--wine); box-shadow: 0 0 0 2px #64132e22; }
.search svg { width: 19px; height: 19px; color: var(--wine); }
.search input { min-width: 0; width: 100%; height: 46px; outline: none; border: 0; background: transparent; font-size: 16px; color: var(--ink); }
.category-row {
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #ccb9ab transparent;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; margin-bottom: 17px;
}
.category-row button {
  flex: none; min-height: 44px; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap; border: 1px solid var(--line); border-radius: 99px;
  background: var(--paper); color: var(--wine-dark); padding: 0 12px; font-size: 13px; font-weight: 750;
}
.category-row button.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.category-icon { font-size: 16px; line-height: 1; }
.menu-products { min-width: 0; }
.menu-subtitle {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 0 0 11px;
  font-size: 16px; font-weight: 850;
}
.menu-subtitle span { color: var(--muted); font-size: 12px; font-weight: 650; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.dish-card {
  min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 17px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 14px #4b2b1609;
}
.dish-image { position: relative; aspect-ratio: 1.32; background: #efded1; overflow: hidden; }
.dish-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dish-badge {
  position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); overflow-wrap: anywhere;
  background: var(--gold-light); color: var(--wine-deep); padding: 4px 8px; border-radius: 8px;
  font-size: 10px; line-height: 1.3; font-weight: 850;
}
.dish-info { min-width: 0; padding: 10px; flex: 1; display: flex; flex-direction: column; }
.dish-meta { color: var(--muted); font-size: 10px; margin-bottom: 4px; overflow-wrap: anywhere; }
.dish-card h3 { font-size: clamp(14px, 3.8vw, 17px); line-height: 1.25; font-weight: 850; margin: 0 0 6px; overflow-wrap: anywhere; }
.dish-description { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 12px; overflow-wrap: anywhere; }
.dish-bottom { display: grid; gap: 7px; margin-top: auto; }
.dish-price { color: var(--wine-deep); font-size: 17px; font-weight: 850; white-space: nowrap; }
.add-button {
  width: 100%; min-height: 46px; display: inline-flex; align-items: center; justify-content: space-between; gap: 5px;
  border: 1px solid #e4cfca; border-radius: 12px; padding: 4px 5px 4px 9px;
  background: var(--rose); color: var(--wine); font-size: 11px; font-weight: 850; line-height: 1.2;
}
.add-button b {
  width: 31px; height: 31px; display: grid; place-items: center; flex: none; border-radius: 9px;
  background: var(--wine); color: #fff; font-size: 21px; font-weight: 500;
}
.quantity {
  min-height: 46px; display: grid; grid-template-columns: minmax(36px, 1fr) minmax(22px, auto) minmax(36px,1fr);
  align-items: center; border: 1px solid #e4cfca; border-radius: 12px;
  background: var(--rose); color: var(--wine); text-align: center;
}
.quantity button { min-height: 44px; border-radius: 11px; font-size: 22px; line-height: 1; }
.quantity button:focus-visible { outline-offset: -4px; }
.quantity span { min-width: 22px; font-size: 13px; font-weight: 850; }
.loading-card, .empty-state {
  padding: 36px 18px; text-align: center; color: var(--muted); background: var(--paper);
  border: 1px dashed #d6bdac; border-radius: 16px; grid-column: 1/-1; font-size: 14px;
}

.cart-panel { display: none; min-width: 0; }
.cart-scrim, .overlay { background: #2d182596; backdrop-filter: blur(3px); }
.cart-scrim { position: fixed; inset: 0; z-index: 68; }
.cart-panel.mobile-open {
  display: block; position: fixed; inset: auto 0 0; z-index: 70;
  width: min(100%, 620px); max-height: min(90dvh, 860px); margin-inline: auto; overflow-y: auto;
  overscroll-behavior: contain; background: var(--paper); border: 1px solid var(--line);
  padding: 19px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; box-shadow: var(--shadow);
}
.cart-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 3px;
}
.cart-title h3 { font-size: 21px; line-height: 1.2; margin: 0; font-weight: 850; letter-spacing: -.035em; }
.cart-title h3 > span {
  display: inline-grid; place-items: center; padding-inline: 5px; min-width: 25px; height: 25px;
  background: var(--rose); color: var(--wine); font-size: 12px; border-radius: 8px; margin-left: 5px;
}
.empty-cart { text-align: center; padding: 23px 7px; }
.empty-cart svg { width: 51px; height: 51px; color: var(--wine); stroke-width: 1.2; }
.empty-cart strong { display: block; margin: 10px 0 3px; font-size: 15px; }
.empty-cart p { color: var(--muted); font-size: 13px; margin: 0; }
.cart-items { max-height: 35dvh; overflow-y: auto; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { flex: none; width: 43px; height: 43px; border-radius: 10px; object-fit: cover; }
.cart-item-main { flex: 1; min-width: 0; }
.cart-item strong { display: block; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 6px; font-size: 13px; font-weight: 800; }
.cart-item .quantity { grid-template-columns: 34px minmax(18px,auto) 34px; min-height: 42px; }
.cart-item .quantity button { min-height: 42px; font-size: 19px; }
.cart-progress { color: var(--muted); font-size: 12px; padding: 12px 0; }
.progress-track { height: 5px; background: #efe0d4; margin-top: 7px; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--wine); }
.cart-totals { display: grid; gap: 6px; padding: 11px 0; border-top: 1px dashed #dcbdac; font-size: 14px; }
.cart-totals > div { display: flex; justify-content: space-between; gap: 8px; }
.cart-totals .total { font-size: 19px; font-weight: 850; color: var(--wine-deep); margin-top: 3px; }
.primary {
  background: var(--wine); color: #fff; padding: 10px 15px; min-height: 48px; border: 1px solid var(--wine);
  border-radius: 13px; font-size: 14px; font-weight: 800; line-height: 1.35;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 10px;
}
.wide { width: 100%; }
.cart-cta { justify-content: space-between; margin-top: 3px; padding: 6px 7px 6px 15px; }
.cart-cta span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--gold); color: var(--wine); font-size: 19px; }
.cart-caption { text-align: center; color: var(--muted); font-size: 11px; margin-top: 9px; }

.bottom-banner {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 15px 11px;
  margin: 30px 0; padding: 16px; border-radius: 19px; background: #f1e2d8; border: 1px solid #ead4c0;
}
.support-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--wine); background: #fff6e6; border: 1px solid #f0cfaa; border-radius: 15px; }
.support-icon svg { width: 27px; height: 27px; }
.support-copy h2 { font-size: clamp(22px, 5.7vw, 33px); color: var(--wine-deep); }
.support-copy p { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.support-cta { grid-column: 1/-1; background: var(--wine); color: #fff; }
.support-cta .action-icon { background: var(--gold); color: var(--wine-deep); }

.site-footer { border-top: 1px solid var(--line); padding: 16px 0 12px; }
.footer-inner { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 13px 16px; }
.footer-inner strong { display: block; font-size: 18px; letter-spacing: -.04em; color: var(--wine); font-weight: 850; }
.footer-inner strong span { font-size: 8px; vertical-align: top; margin-left: 2px; }
.footer-phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine); font-size: 13px; font-weight: 800; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.footer-links a, .footer-links button, .footer-end button {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 9px; border-radius: 10px;
  text-align: left; color: var(--wine-dark); font-size: 12px; font-weight: 700;
}
.footer-links { margin-left: -9px; }
.footer-end { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 11px; }

.quick-actions {
  position: fixed; z-index: 30; inset: auto 0 0; display: flex; align-items: stretch; gap: 8px;
  padding: 9px var(--gutter) calc(9px + env(safe-area-inset-bottom));
  background: #fff9f1f5; backdrop-filter: blur(15px); border-top: 1px solid var(--line);
}
.mobile-cart {
  display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; min-height: 50px;
  padding: 7px 11px; border-radius: 14px; background: var(--wine); color: #fff;
  font-weight: 850; font-size: 13px; white-space: nowrap;
}
.quick-cart-label { display: inline-flex; align-items: center; gap: 5px; }
.mobile-cart svg { width: 19px; height: 19px; }
.mobile-cart b { display: inline-grid; place-items: center; min-width: 21px; padding: 2px 4px; border-radius: 7px; background: #ffffff24; font-size: 11px; }
.mobile-cart strong { color: var(--gold-light); font-size: 13px; }
.chat-fab {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 10px; min-width: 66px; min-height: 50px; background: var(--gold); color: var(--wine-dark);
  border-radius: 14px; font-size: 13px; font-weight: 850;
}
.chat-fab svg { width: 20px; height: 20px; }
#chat-dot { position: absolute; right: 6px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); outline: 2px solid var(--gold); }

.overlay { position: fixed; inset: 0; z-index: 72; display: grid; place-items: end center; }
.modal {
  width: min(100%, 600px); max-height: 96dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 23px 23px 0 0; position: relative;
  padding: 24px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow);
}
.modal:focus { outline: none; }
.modal-close { position: absolute; top: 11px; right: 11px; }
.modal h2 { color: var(--wine-deep); font-size: clamp(24px, 6vw, 31px); line-height: 1.18; letter-spacing: -.04em; padding-right: 47px; margin: 0 0 7px; }
.modal-subtitle { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 45px 20px 0; }
.form-grid { display: grid; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 750; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; border: 1px solid #d9c8ba; border-radius: 12px; background: white;
  padding: 10px 12px; color: var(--ink); font-size: 16px; font-weight: 500;
}
.field textarea { resize: vertical; min-height: 76px; }
.payment-title { font-size: 16px; margin: 18px 0 4px; font-weight: 850; }
.payment-note { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.payment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.payment-option { min-width: 0; display: flex; align-items: start; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 7px; background: white; cursor: pointer; }
.payment-option:has(input:checked) { border-color: var(--wine); background: var(--rose); }
.payment-option input, .payment-detail input[type=checkbox] { accent-color: var(--wine); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.payment-option b { display: block; font-size: 12px; line-height: 1.3; }
.payment-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.payment-detail { background: #f6ece0; border-radius: 12px; padding: 11px; margin-top: 10px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.payment-detail label { display: flex; align-items: center; gap: 7px; }
.payment-detail input[type=number] { min-height: 44px; max-width: 100%; }
.checkout-summary { display: flex; justify-content: space-between; align-items: center; gap: 6px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 15px; font-size: 18px; font-weight: 850; }
.checkout-summary small { font-size: 12px; color: var(--muted); font-weight: 500; }
.checkout-submit { margin-top: 12px; }
.form-error { color: #a32841; font-size: 13px; margin-top: 10px; }
.privacy { color: var(--muted); font-size: 11px; margin-bottom: 0; }
.success-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 16px; background: #e5eddb; color: #3e6533; font-size: 25px; margin-bottom: 11px; }
.success-card, .order-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: white; font-size: 13px; line-height: 1.65; margin: 12px 0; overflow-wrap: anywhere; }
.order-card-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.status-pill { color: var(--wine); background: var(--rose); border-radius: 6px; padding: 3px 7px; font-size: 11px; }
.info-block { margin: 16px 0; font-size: 14px; line-height: 1.65; }
.info-block h3 { font-size: 16px; margin: 0 0 3px; }
.info-block p { color: var(--muted); margin: 0; }
.delivery-contact { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px; background: #f6ece0; border-radius: 12px; margin: 13px 0; }
.delivery-contact strong { color: var(--wine); white-space: nowrap; }
.delivery-contact .primary { font-size: 13px; min-height: 44px; }

.chat-panel {
  position: fixed; inset: 0; width: 100%; height: 100dvh; z-index: 80; background: var(--paper);
  display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); overflow: hidden;
}
.chat-head { display: flex; align-items: center; flex: none; gap: 10px; background: var(--wine-dark); color: var(--cream); padding: 11px 13px; }
.chat-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--gold); color: var(--wine-dark); font-size: 14px; font-weight: 850; }
.chat-head strong, .chat-head small { display: block; }
.chat-head strong { font-size: 14px; }
.chat-head small { color: #f2cdbd; font-size: 12px; }
.chat-head > button { margin-left: auto; color: var(--cream); border-color: #ffffff36; background: #ffffff12; }
.chat-intro { color: var(--muted); font-size: 12px; line-height: 1.5; background: #f6ece0; margin: 0; padding: 10px 13px; }
.chat-messages { flex: 1; overflow-y: auto; overscroll-behavior: contain; min-height: 0; display: flex; flex-direction: column; gap: 9px; padding: 13px; }
.chat-empty { padding: 24px 9px; text-align: center; color: var(--muted); font-size: 13px; }
.message { align-self: flex-start; max-width: 90%; border-radius: 13px 13px 13px 3px; background: #f3e7dc; padding: 8px 11px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.message.mine { align-self: flex-end; border-radius: 13px 13px 3px 13px; background: var(--wine); color: white; }
.message time { display: block; opacity: .75; font-size: 10px; text-align: right; margin-top: 3px; }
.message img { max-width: 100%; max-height: 200px; border-radius: 6px; }
.message a { text-decoration: underline; }
.chat-form { display: flex; align-items: center; gap: 5px; padding: 5px; margin: 7px 9px 0; border: 1px solid var(--line); border-radius: 15px; background: white; }
.chat-form > input { min-width: 0; min-height: 44px; flex: 1; border: 0; background: transparent; padding: 4px; font-size: 16px; }
.attachment-btn { position: relative; cursor: pointer; }
.attachment-btn input { position: absolute; inset: 0; margin: 0; opacity: 0; width: 100%; cursor: pointer; }
.attachment-btn:focus-within { outline: 2px solid #ae591a; outline-offset: 2px; }
.send-button { border-color: var(--wine); background: var(--wine); color: #fff; font-size: 23px; }
.chat-foot { font-size: 11px; text-align: center; color: var(--muted); padding: 6px 8px 7px; }
#chat-attachment:not(:empty) { padding: 5px 13px; color: var(--wine); font-size: 12px; }
#chat-attachment button { padding: 4px 7px; border-radius: 8px; background: var(--rose); color: var(--wine); font-size: 14px; }
.chat-retry { color: #8d3628; background: #ffede1; font-size: 12px; line-height: 1.45; border-radius: 9px; margin: 5px 10px; padding: 7px 10px; }
.toast {
  position: fixed; z-index: 150; bottom: calc(82px + env(safe-area-inset-bottom)); left: 50%;
  width: max-content; max-width: calc(100% - 30px); transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  background: var(--wine-deep); color: white; border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 14px; font-size: 13px; font-weight: 700; text-align: center;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 919px) {
  body:has(.cart-panel.mobile-open, .chat-panel:not([hidden])) { overflow: hidden; }
}
@media (min-width: 620px) {
  .hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.02fr); min-height: 300px; }
  .hero-photo {
    height: 100%; grid-column: 2; grid-row: 1;
    background: linear-gradient(90deg,#451121 0%,#45112120 27%,#45112100 55%),
      url('/assets/pizza.jpg') 65% 52% / cover no-repeat;
  }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: center; margin-top: 0; padding: 32px 10px 32px clamp(22px,4vw,60px); }
  .hero h1 { font-size: clamp(32px, 4.6vw, 63px); margin-bottom: 24px; }
  .action-pill { width: auto; min-width: 235px; min-height: 55px; gap: 18px; font-size: 14px; }
  .perks > div { padding: 9px 13px; font-size: 13px; }
  .perks { gap: 12px; }
  .section-top { grid-template-columns: minmax(0,1fr) minmax(240px,320px); align-items: end; }
  .dish-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .dish-info { padding: 13px; }
  .bottom-banner { grid-template-columns: auto minmax(0,1fr) auto; padding: 19px; }
  .support-cta { grid-column: auto; min-width: 192px; }
  .overlay { place-items: center; padding: 15px; }
  .modal { max-height: calc(100dvh - 30px); padding: 26px; border-radius: 21px; }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field.full { grid-column: 1/-1; }
}
@media (min-width: 920px) {
  :root { --header-height: 78px; }
  body { padding-bottom: 0; }
  .brand { width: 124px; height: 58px; }
  .brand img { width: 140px; height: 140px; left: -8px; top: -42px; }
  .header-location { display: block; color: var(--muted); line-height: 1.45; }
  .header-location a, .header-location small { display: block; }
  .delivery-phone { color: var(--wine); font-weight: 850; font-size: 14px; white-space: nowrap; }
  .header-location small { font-size: 12px; }
  .header-nav { gap: 7px; }
  .nav-link { font-size: 14px; padding: 0 13px; }
  .nav-link.desktop-menu-link { display: inline-flex; }
  .desktop-label { display: inline; }
  .mobile-label { display: none; }
  .call-header {
    width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--wine); color: white; border-color: var(--wine); padding: 0 12px; font-size: 13px; font-weight: 800;
  }
  .hero { min-height: clamp(330px,33vw,460px); margin-top: 21px; border-radius: 28px; }
  .hero-copy .eyebrow { font-size: 11px; margin-bottom: 13px; }
  .hero-cta { padding-left: 19px; }
  .perks { margin: 18px 0 33px; }
  .perks > div { padding: 10px 14px; }
  .category-row { margin-inline: 0; padding-inline: 5px; flex-wrap: wrap; overflow: visible; }
  .category-row button { padding: 0 15px; }
  .menu-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(254px,292px); align-items: start; gap: 20px; }
  .dish-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
  .dish-description { font-size: 13px; }
  .dish-bottom { display: flex; align-items: center; justify-content: space-between; }
  .dish-bottom .add-button { width: auto; gap: 8px; padding-left: 10px; }
  .dish-bottom .quantity { grid-template-columns: 35px minmax(20px,auto) 35px; }
  .cart-panel, .cart-panel.mobile-open {
    display: block; position: sticky; inset: auto; top: calc(var(--header-height) + 14px); z-index: auto;
    width: auto; max-height: calc(100dvh - var(--header-height) - 28px); overflow-y: auto;
    padding: 16px; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow);
  }
  .cart-scrim, .mobile-close, .mobile-cart { display: none; }
  .bottom-banner { margin: 36px 0; padding: 22px 26px; gap: 16px; }
  .support-icon { width: 52px; height: 52px; }
  .footer-end { width: auto; flex-direction: column; align-items: end; gap: 0; }
  .footer-links { margin-left: 0; }
  .quick-actions { inset: auto 24px 23px auto; padding: 0; background: none; border: 0; backdrop-filter: none; }
  .chat-fab { gap: 8px; padding: 0 14px; border-radius: 15px; box-shadow: 0 5px 18px #4a201939; }
  .chat-panel {
    inset: auto 22px 22px auto; width: 379px; height: min(540px,calc(100dvh - 44px));
    padding: 0; border-radius: 19px; border: 1px solid var(--line); box-shadow: 0 15px 65px #39152135;
  }
  .toast { bottom: 24px; }
}
@media (min-width: 1140px) {
  .dish-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
  .menu-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 23px; }
}
@media (hover: hover) and (pointer: fine) {
  .action-pill, .primary, .add-button, .nav-link, .call-header, .category-row button, .quantity button, .chat-fab, .icon-button, .footer-links a, .footer-links button, .footer-end button { transition: background-color .16s, color .16s, border-color .16s, transform .16s; }
  .hero-cta:hover, .chat-fab:hover { background: var(--gold-light); transform: translateY(-2px); }
  .support-cta:hover, .primary:hover, .call-header:hover, .send-button:hover { background: var(--wine-dark); color: white; }
  .nav-link:hover, .category-row button:not(.active):hover, .quantity button:hover, .footer-links a:hover, .footer-links button:hover, .footer-end button:hover { background: var(--rose); color: var(--wine); }
  .add-button:hover { background: #ead4d3; border-color: #c8969a; }
  .icon-button:not(.send-button):hover { border-color: #c8969a; }
  .dish-card img { transition: transform .2s; }
  .dish-card:hover .dish-image img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .toast { transition: opacity .16s, transform .16s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
