:root {
  --ink: #1a1410;
  --muted: #766960;
  --line: #eadfd5;
  --paper: #fffaf5;
  --white: #ffffff;
  --mist: #fff0df;
  --coral: #f47a1f;
  --coral-dark: #d65e0b;
  --gold: #ffbf3f;
  --shadow: 0 18px 46px rgba(40, 23, 10, 0.11);
  --radius: 14px;
}

html,
body {
  max-width: 100%;
}

body { background: var(--paper); }

.site-header {
  border-bottom-color: rgba(234, 223, 213, 0.9);
  background: rgba(255, 250, 245, 0.94);
}

.header-inner { min-height: 68px; gap: 18px; }
.brand { font-weight: 950; letter-spacing: -0.02em; }
.brand-mark { border-radius: 13px; box-shadow: 0 8px 22px rgba(244, 122, 31, 0.2); }
.brand-mark.has-logo { border-radius: 13px; }

.main-nav { gap: 2px; }
.main-nav a { padding: 9px 12px; font-weight: 850; color: #655950; }
.main-nav a:hover { background: #fff0df; color: var(--coral-dark); }
.install-app-btn { display: none !important; }
.phone { color: var(--ink); font-size: 0.92rem; }

.social-links { display: flex; align-items: center; gap: 6px; }
.social-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(40, 23, 10, 0.06);
  transition: transform .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.social-link:hover { transform: translateY(-1px); border-color: #f5b27c; color: var(--coral-dark); background: #fff7ef; }
.social-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.social-link[data-network="whatsapp"] svg { stroke-width: 1.75; }

.cart-pill { background: var(--ink); box-shadow: 0 10px 24px rgba(26, 20, 16, 0.2); }
.cart-count { background: var(--coral); border-color: var(--paper); }

.hero {
  min-height: clamp(370px, 54svh, 480px);
  background:
    linear-gradient(90deg, rgba(18, 12, 8, .84) 0%, rgba(18, 12, 8, .66) 38%, rgba(18, 12, 8, .15) 75%),
    linear-gradient(135deg, #1b130d 0%, #342116 55%, #7c3e12 100%);
}
.hero-content { width: min(650px, 100%); padding: 52px 0 34px; }
.hero .eyebrow { color: #ffe0bf; }
.hero .eyebrow::before { background: var(--coral); }
.hero h1 { margin-bottom: 12px; font-size: clamp(2.55rem, 5.5vw, 4.7rem); line-height: .96; letter-spacing: -.035em; }
.hero-lead { max-width: 540px; margin-bottom: 18px; font-size: clamp(1rem, 1.7vw, 1.15rem); line-height: 1.45; }
.hero-actions { gap: 9px; margin-bottom: 19px; }
.hero-actions .btn { min-height: 46px; }
.btn-primary { background: var(--coral); box-shadow: 0 12px 26px rgba(244, 122, 31, .28); }
.btn-primary:hover { background: var(--coral-dark); }
.hero-facts { gap: 7px; }
.fact { min-height: 34px; padding: 6px 10px; font-size: .82rem; background: rgba(255,255,255,.09); }
.fact span { width: 7px; height: 7px; background: var(--coral); }
.hero-dots { margin-top: 12px; }
.hero-dot.active { background: var(--coral); }

.flow-section { display: none !important; }
.target-combo-section { padding: 22px 0 28px; background: linear-gradient(180deg, #fff3e7 0%, var(--paper) 100%); }
.target-combo-panel { border-color: #f1d8c5; border-radius: 20px; padding: 16px; box-shadow: 0 12px 34px rgba(70, 35, 10, .07); }
.target-combo-title { letter-spacing: -.035em; }
.section { padding: 58px 0; }
.section-tight { padding-top: 36px; }
.section-head { margin-bottom: 18px; }
.section-kicker { color: var(--coral-dark); }
h2 { letter-spacing: -.035em; }

.filters {
  gap: 7px;
  margin-bottom: 16px;
}
.filter-btn {
  border-radius: 12px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 900;
}
.filter-btn.active,
.filter-btn[aria-pressed="true"] { border-color: var(--coral) !important; background: var(--coral) !important; color: #fff !important; }

.menu-grid { gap: 14px; }
.dish-card {
  grid-template-columns: 154px minmax(0, 1fr);
  min-height: 194px;
  border-color: #eee3da;
  border-radius: 19px;
  box-shadow: 0 10px 28px rgba(40, 23, 10, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dish-card:hover { transform: translateY(-2px); border-color: #f0cfb5; box-shadow: 0 15px 34px rgba(40, 23, 10, .11); }
.dish-photo { min-height: 194px; }
.dish-info { padding: 15px; }
.dish-title { letter-spacing: -.015em; }
.dish-desc { color: #786b61; line-height: 1.4; }
.tag-row { gap: 5px; }
.tag { padding: 4px 7px; font-size: .72rem; }
.add-btn { border-radius: 12px; background: var(--coral); box-shadow: 0 8px 18px rgba(244, 122, 31, .2); }
.add-btn:hover { background: var(--coral-dark); }

.checkout-panel, .form-block, .tracking-card, .online-payment-box { border-radius: 18px; }
.checkout-panel { box-shadow: 0 14px 34px rgba(40, 23, 10, .08); }
.segment span, .pay-card { border-radius: 13px; }
.segment input:checked + span, .pay-option input:checked + .pay-card { border-color: var(--coral); }
.submit-order { border-radius: 14px; }

/* Keep every checkout child shrinkable inside the viewport. */
.order-layout,
.checkout-form,
.checkout-panel,
.form-block,
.form-block-head,
.fields-grid,
.field,
.address-check-row,
.delivery-details-grid,
.payment-options,
.segmented,
.promo,
.cart-list,
.cart-item,
.panel-head,
.tracking-card,
.online-payment-box {
  min-width: 0;
  max-width: 100%;
}

.fields-grid > *,
.address-check-row > *,
.delivery-details-grid > *,
.payment-options > *,
.segmented > *,
.promo > *,
.cart-item > *,
.form-block-head > * {
  min-width: 0;
}

.field input,
.field textarea,
.field select,
.delivery-details-grid input,
.address-check-row input,
.promo input,
.promo button,
.delivery-map-btn,
.checkout-next,
.submit-order {
  min-width: 0;
  max-width: 100%;
}

.field label,
.form-block-head p,
.pay-card,
.segment span,
.checkout-step-link,
.cart-item,
.tracking-card,
.order-message,
.promo-note {
  overflow-wrap: anywhere;
  word-break: normal;
}

.about-band { background: #1b1511; }
.footer { padding-top: 22px; }
.footer-inner { align-items: flex-start; }
.footer-main { display: grid; gap: 8px; min-width: 0; }
.visitor-stats { display: flex; flex-wrap: wrap; gap: 7px; }
.visitor-stats[hidden] { display: none !important; }
.visitor-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--white);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}
.visitor-stats strong { color: var(--ink); }

.app-tabbar, .mobile-order-bar { background: rgba(26, 20, 16, .96) !important; }
.mobile-order-btn { background: var(--coral); }
.app-tab.active { background: rgba(244, 122, 31, .18); color: #fff; }

@media (max-width: 880px) {
  .header-inner { min-height: 64px; }
  .social-links { margin-left: auto; }
  .hero { min-height: 390px; background-position: 62% center; }
  .hero-content { padding: 42px 0 28px; }
  .section { padding: 48px 0; }
}

@media (max-width: 640px) {
  body { background: #fffaf5; }
  .container { width: calc(100% - 20px); max-width: 100%; }
  .header-inner { min-height: 58px; gap: 7px; min-width: 0; }
  .header-actions { gap: 5px; min-width: 0; flex: 0 0 auto; }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    font-size: .94rem;
    overflow: hidden;
  }
  .brand #brandName {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand-mark { width: 36px; height: 36px; flex: 0 0 36px; }
  .social-links { gap: 4px; flex: 0 0 auto; }
  .social-link { width: 34px; height: 34px; border-radius: 10px; }
  .social-link[data-network="tiktok"], .social-link[data-network="telegram"] { display: none; }
  .cart-pill { width: 40px; height: 40px; flex: 0 0 40px; }

  .hero { min-height: 350px; background-position: 60% center; }
  .hero-content { padding: 38px 0 24px; }
  .hero h1 { font-size: clamp(2.2rem, 13vw, 3.2rem); margin-bottom: 10px; }
  .hero-lead { max-width: 88%; font-size: .94rem; margin-bottom: 15px; }
  .hero-actions { margin-bottom: 14px; }
  .hero-actions .btn { min-height: 44px; }
  .hero-facts { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .hero-facts::-webkit-scrollbar { display: none; }
  .fact { flex: 0 0 auto; white-space: nowrap; }

  .section { padding: 38px 0; }
  .target-combo-section { padding: 18px 0 24px; }
  .target-combo-panel { border-radius: 17px; padding: 12px; }
  .section-head { gap: 8px; margin-bottom: 14px; }
  .section-copy { font-size: .9rem; }

  .filters { top: 63px; margin: 0 -10px 13px; padding: 8px 10px; background: rgba(255,250,245,.96); border-bottom-color: #eadfd5; }
  .filter-btn { min-height: 39px; padding: 0 12px; }

  .dish-card, .target-combo-grid .dish-card {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 148px;
    border-radius: 16px;
  }
  .dish-photo, .target-combo-grid .dish-photo { min-height: 148px; }
  .dish-info { min-height: 146px; padding: 11px; }
  .dish-title { font-size: .96rem; }
  .dish-desc { margin-bottom: 8px; font-size: .8rem; -webkit-line-clamp: 2; }
  .tag-row { display: none; }
  .add-btn { width: 44px; min-width: 44px; min-height: 44px; border-radius: 11px; }

  .order-layout,
  .checkout-form,
  .checkout-panel,
  .form-block,
  .tracking-card,
  .online-payment-box {
    width: 100%;
    max-width: 100%;
  }

  .checkout-steps {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .checkout-step-link {
    min-width: 0;
    padding: 7px 5px;
    gap: 5px;
  }
  .checkout-step-link strong { font-size: .78rem; }
  .checkout-step-link small { display: none; }

  .form-block {
    padding: 14px 12px;
    overflow: hidden;
  }
  .form-block-head { grid-template-columns: auto minmax(0, 1fr); gap: 9px; }
  .form-block-head p { font-size: .82rem; }

  .fields-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }
  .field.full { grid-column: auto; }
  .field input,
  .field textarea,
  .field select,
  .delivery-details-grid input,
  .promo input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }

  .address-check-row,
  .promo {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }
  .address-check-row .delivery-map-btn,
  .promo button,
  .checkout-next,
  .submit-order {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .address-check-row .delivery-map-btn { padding: 0 12px; }

  .delivery-details-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .payment-options,
  .segmented {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .pay-card,
  .segment span { width: 100%; min-width: 0; }

  .cart-item { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-item strong,
  .cart-item span,
  .cart-item small { max-width: 100%; overflow-wrap: anywhere; }

  .footer-inner { gap: 12px; min-width: 0; }
  .footer-main,
  .footer-links { max-width: 100%; }
  .footer-links { flex-wrap: wrap; }
  .visitor-stats { gap: 6px; }
}

@media (max-width: 430px) {
  .delivery-details-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .form-block { padding: 13px 10px; }
  .checkout-step-link { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .checkout-step-link > span { width: 28px; height: 28px; }
  .checkout-step-link strong { font-size: .76rem; }
}

@media (max-width: 360px) {
  .social-link[data-network="whatsapp"] { display: none; }
  .brand { font-size: .9rem; }
  .dish-card, .target-combo-grid .dish-card { grid-template-columns: 96px minmax(0, 1fr); }
  .dish-photo, .target-combo-grid .dish-photo { min-height: 142px; }
}
