/* === Палитра Gio Bistro === */
:root {
  --garnet: #8B2635;
  --burgundy: #6E1428;
  --bronze: #B97D3D;
  --gold: #D4A24E;
  --cream: #F4E8CD;
  --paper: #FBF3DC;
  --dark: #2E1810;
  --muted: #7A6652;
  --line: rgba(46, 24, 16, 0.12);
  --shadow-sm: 0 2px 8px rgba(46, 24, 16, .08);
  --shadow-md: 0 8px 24px rgba(46, 24, 16, .14);
  --shadow-lg: 0 18px 48px rgba(46, 24, 16, .22);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 720px; }

h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.15; color: var(--dark); margin: 0 0 .6em; }
h1 { font-size: 32px; }
h2 { font-size: 26px; letter-spacing: -.01em; }
h3 { font-size: 18px; }

.muted { color: var(--muted); font-size: 13px; }
.page-title { margin: 24px 0 18px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  background: transparent; color: var(--dark);
  white-space: nowrap;
}
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--burgundy); color: var(--cream); }
.btn--primary:hover { background: var(--garnet); }
.btn--ghost { background: var(--cream); color: var(--burgundy); border-color: var(--burgundy); }
.btn--ghost:hover { background: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.iconbtn {
  background: transparent; border: 0; padding: 8px;
  border-radius: 50%; color: var(--dark);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; line-height: 1;
}
.iconbtn:hover { background: rgba(46,24,16,.06); }
.iconbtn .badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; background: var(--burgundy); color: var(--cream); font-size: 10px; font-weight: 700; border-radius: 999px; text-align: center; }

/* === Topbar === */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(251, 243, 220, 0.92);
}
.topbar__inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--burgundy); letter-spacing: .01em; }
.brand__sub { font-family: 'EB Garamond', serif; font-style: italic; font-size: 13px; color: var(--bronze); margin-top: 2px; }

.topbar__nav { display: flex; align-items: center; gap: 4px; }
.topbar__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--burgundy); padding: 8px 14px; border-radius: 999px;
  background: var(--cream);
}
.topbar__phone:hover { background: #fff; }

@media (max-width: 640px) {
  .topbar__phone-text { display: none; }
  .topbar__phone { padding: 8px; }
}

/* === Hero === */
.hero {
  position: relative;
  padding: 56px 16px 64px;
  background: linear-gradient(180deg, var(--paper) 0%, #FCEFCD 100%);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: 360px;
  background-repeat: no-repeat;
  background-position: 92% 50%;
  opacity: .08;
  filter: saturate(1.1);
}
.hero__inner { position: relative; max-width: 1180px; margin: 0 auto; }
.hero__eyebrow { display: inline-block; font-size: 12px; letter-spacing: .25em; color: var(--bronze); text-transform: uppercase; font-weight: 600; }
.hero__title { font-size: 44px; margin: 14px 0 12px; max-width: 740px; }
.hero__title--em { font-style: italic; color: var(--burgundy); font-family: 'EB Garamond', serif; font-weight: 500; }
.hero__lead { font-size: 17px; color: var(--muted); max-width: 580px; margin-bottom: 24px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 8px; }
.hero__feature { display: flex; flex-direction: column; }
.hero__feature b { font-family: 'Playfair Display', serif; color: var(--burgundy); font-size: 22px; font-weight: 700; }
.hero__feature span { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 720px) {
  .hero { padding: 32px 16px 40px; }
  .hero__title { font-size: 32px; }
  .hero__lead { font-size: 15px; }
  .hero__feature b { font-size: 18px; }
}

/* === Promos === */
.promos {
  display: grid; gap: 12px; margin: 18px auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.promo { background: linear-gradient(135deg, var(--garnet), var(--burgundy)); color: var(--cream); padding: 20px; border-radius: var(--radius); }
.promo__title { font-family: 'Playfair Display', serif; font-size: 20px; margin-bottom: 6px; }
.promo__text { font-size: 13px; opacity: .9; }
.promo__code { margin-top: 10px; font-size: 12px; letter-spacing: .1em; }

/* === Catnav (sticky горячие кнопки разделов) === */
.catnav {
  position: sticky; top: 64px; z-index: 90;
  background: rgba(251, 243, 220, 0.95);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(46, 24, 16, 0.04);
}
.catnav__inner {
  display: flex; gap: 6px; padding: 10px 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  max-width: 1180px; margin: 0 auto;
  scrollbar-width: none;
}
.catnav__inner::-webkit-scrollbar { display: none; }
.catnav__link {
  flex-shrink: 0;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--dark);
  background: rgba(46,24,16,.06);
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.catnav__link.active { background: var(--burgundy); color: var(--cream); }
.catnav__link:hover { background: rgba(46,24,16,.12); }
.catnav__link.active:hover { background: var(--garnet); }

/* === Catalog: горизонтальные ленты по разделам (papakado-style) === */
.catsec { margin: 28px 0 24px; scroll-margin-top: 120px; }
.catsec__title { margin-bottom: 14px; padding: 0 4px; }

.grid {
  display: flex; gap: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-left: 4px;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(110,20,40,.3) transparent;
}
.grid::-webkit-scrollbar { height: 6px; }
.grid::-webkit-scrollbar-track { background: transparent; }
.grid::-webkit-scrollbar-thumb { background: rgba(110,20,40,.3); border-radius: 3px; }
.grid::-webkit-scrollbar-thumb:hover { background: rgba(110,20,40,.5); }

.card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}
@media (max-width: 480px) {
  .card { flex: 0 0 220px; }
}
@media (min-width: 720px) {
  .card { flex: 0 0 280px; }
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--burgundy); color: var(--cream);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  z-index: 2;
}
.card__photo {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  position: relative; overflow: hidden;
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__photo-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 48px; opacity: .4; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card__title { font-size: 15px; margin: 0; line-height: 1.25; min-height: 38px; }
.card__geo { font-family: 'Noto Serif Georgian', serif; font-size: 11px; color: var(--bronze); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.card__price { display: flex; flex-direction: column; line-height: 1.1; }
.card__amount { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px; color: var(--burgundy); }
.card__weight { font-size: 11px; color: var(--muted); margin-top: 2px; }
.card__add { padding: 8px 14px; min-width: 100px; }

/* Виджет qty в карточке (вместо кнопки «+ В корзину» когда уже в корзине) */
.card__qty {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--burgundy); color: var(--cream);
  border-radius: 999px; padding: 4px;
  min-width: 100px; justify-content: space-between;
}
.card__qty button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(244, 232, 205, 0.15); color: var(--cream);
  font-size: 16px; line-height: 1; cursor: pointer; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.card__qty button:hover { background: rgba(244, 232, 205, 0.3); }
.card__qty span { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }

/* === Zones === */
.zones { margin: 48px auto 32px; }
.zones h2 { text-align: center; margin-bottom: 18px; }
.zones__grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.zones__item { background: #fff; padding: 16px 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.zones__name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--burgundy); margin-bottom: 4px; }
.zones__tariff { font-size: 13px; color: var(--muted); }

/* === Footer === */
.footer { background: var(--dark); color: var(--cream); padding: 36px 16px 36px; margin-top: 56px; }
.footer__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer__brand { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gold); }
.footer__sub { font-size: 13px; opacity: .7; margin-top: 4px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px; font-size: 13px; }
.footer__h { font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.footer a:hover { color: var(--gold); }

/* === Drawers (Cart, Checkout, Profile, Dish) === */
.cart, .checkout, .profile-modal, .dish-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
}
.cart[aria-hidden="false"], .checkout[aria-hidden="false"],
.profile-modal[aria-hidden="false"], .dish-modal[aria-hidden="false"] { display: block; }

.cart__backdrop, .checkout__backdrop, .profile-modal__backdrop, .dish-modal__backdrop {
  position: absolute; inset: 0; background: rgba(46, 24, 16, .55); animation: fadeIn .16s ease;
}
.cart__panel, .checkout__panel, .profile-modal__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100vw);
  background: var(--paper); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slideRight .22s ease;
}
.dish-modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(540px, 92vw); max-height: 92vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: zoomIn .18s ease;
}

@media (max-width: 640px) {
  .cart__panel, .checkout__panel, .profile-modal__panel {
    top: auto; bottom: 0; right: 0; left: 0; width: 100vw; height: 90vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: slideUp .22s ease;
  }
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideRight { from { transform: translateX(20px); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes zoomIn { from { transform: translate(-50%, -50%) scale(.96); opacity: 0 } to { transform: translate(-50%, -50%) scale(1); opacity: 1 } }

.cart__head, .checkout__head {
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper); position: sticky; top: 0; z-index: 5;
}
.cart__head h2, .checkout__head h2 { margin: 0; font-size: 20px; flex: 1; }
.drawer__back {
  color: var(--burgundy); background: var(--cream);
  width: 38px; height: 38px;
}
.drawer__back:hover { background: #fff; }
.dish-modal__back {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: rgba(255,255,255,.9); color: var(--burgundy);
  width: 38px; height: 38px;
}

/* Карточка бонусов / QR в ЛК */
.bonus-card {
  background: linear-gradient(135deg, var(--burgundy), var(--garnet));
  color: var(--cream); padding: 18px 20px; border-radius: var(--radius);
  margin-bottom: 18px; box-shadow: var(--shadow-md);
}
.bonus-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bonus-card__label { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.bonus-card__amount { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; margin-top: 4px; color: var(--gold); }
.bonus-card__top .btn--ghost { background: rgba(244,232,205,.15); color: var(--cream); border-color: rgba(244,232,205,.3); }
.bonus-card__top .btn--ghost:hover { background: rgba(244,232,205,.25); }
.bonus-card__hint { font-size: 12px; opacity: .8; margin-top: 10px; line-height: 1.4; }
.bonus-qr {
  margin-top: 14px; background: var(--cream); border-radius: var(--radius-sm);
  padding: 10px; display: flex; flex-direction: column; align-items: center;
}
.bonus-qr img { max-width: 220px; width: 100%; height: auto; }
.cart__body, .profile-modal__body, .checkout__body { flex: 1; overflow-y: auto; padding: 16px 18px 100px; }
.cart__totals { padding: 12px 18px; border-top: 1px solid var(--line); }
.cart__cta { padding: 12px 18px 16px; border-top: 1px solid var(--line); background: var(--paper); }

.cart__empty { padding: 60px 20px; text-align: center; }
.cart__empty-icon { font-size: 56px; margin-bottom: 14px; opacity: .6; }
.cart__empty-text { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 6px; }
.cart__empty-sub { color: var(--muted); font-size: 13px; }

.cartline { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cartline:last-child { border-bottom: 0; }
.cartline__photo { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--cream); flex-shrink: 0; overflow: hidden; }
.cartline__photo img { width: 100%; height: 100%; object-fit: cover; }
.cartline__body { flex: 1; min-width: 0; }
.cartline__name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.cartline__price { color: var(--muted); font-size: 12px; margin-top: 4px; }
.cartline__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.qty__btn { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; font-size: 16px; color: var(--burgundy); cursor: pointer; }
.qty__btn:hover { background: var(--cream); }
.qty__val { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }
.qty--lg { padding: 6px; gap: 8px; border-color: var(--burgundy); }
.qty--lg .qty__btn { width: 36px; height: 36px; background: var(--burgundy); color: var(--cream); font-size: 18px; font-weight: 700; }
.qty--lg .qty__btn:hover { background: var(--garnet); }
.qty--lg .qty__val { font-size: 18px; min-width: 32px; font-family: 'Playfair Display', serif; color: var(--burgundy); }
.cartline__total { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--burgundy); font-size: 16px; }
.cartline__remove { background: transparent; border: 0; color: var(--muted); font-size: 12px; padding: 0; }
.cartline__remove:hover { color: var(--burgundy); }

.totals__row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.totals__row--total { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--burgundy); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.totals__row--free { color: var(--bronze); font-size: 13px; }
.totals__hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* === Dish modal === */
.dish-modal__close { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.85); z-index: 2; }
.dish-modal__inner { padding-bottom: 16px; }
.dish-modal__photo { aspect-ratio: 4/3; background: var(--cream); }
.dish-modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-modal__body { padding: 18px 22px; }
.dish-modal__title { font-family: 'Playfair Display', serif; font-size: 26px; margin-bottom: 4px; }
.dish-modal__geo { font-family: 'Noto Serif Georgian', serif; color: var(--bronze); margin-bottom: 12px; }
.dish-modal__desc { color: var(--muted); margin-bottom: 18px; line-height: 1.55; }
.dish-modal__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.dish-modal__price { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--burgundy); font-size: 26px; }
.dish-modal__weight { color: var(--muted); font-size: 13px; }
.dish-modal__cart {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border-radius: 999px; padding: 6px;
  border: 1px solid var(--line);
}
.dish-modal__qbtn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--burgundy); color: var(--cream);
  font-size: 18px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.dish-modal__qbtn:hover:not(:disabled) { background: var(--garnet); }
.dish-modal__qbtn:disabled { background: rgba(46,24,16,.15); cursor: not-allowed; }
.dish-modal__qval {
  min-width: 32px; text-align: center; font-size: 18px; font-weight: 700;
  font-family: 'Playfair Display', serif; color: var(--burgundy);
}

/* === Checkout === */
.checkout__back { font-size: 22px; padding: 4px 8px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--dark); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; font: inherit; color: var(--dark);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--burgundy); outline-offset: -1px; }
.field textarea { min-height: 70px; resize: vertical; }
.field__hint { font-size: 12px; color: var(--muted); }
.field--row { flex-direction: row; gap: 8px; }
.field--row input { flex: 1; }
.fieldset { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }

.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  flex: 1; min-width: 110px;
  padding: 10px 14px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  text-align: center;
}
.choice.active { border-color: var(--burgundy); background: var(--burgundy); color: var(--cream); }

.payment-list { display: grid; gap: 8px; }
.payment-list .choice { flex: 1; text-align: left; }

.checkout__step { animation: fadeIn .16s ease; }
.checkout__sumcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 14px 0;
}

.error { color: #b00020; font-size: 13px; margin-top: 4px; }
.success-block { padding: 30px 16px; text-align: center; }
.success-block__icon { font-size: 60px; margin-bottom: 16px; }
.success-block__title { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 8px; color: var(--burgundy); }
.success-block__num { font-size: 18px; font-weight: 700; padding: 6px 14px; background: var(--cream); border-radius: 999px; display: inline-block; margin: 8px 0; }

/* === Order tracker === */
.order-form { display: flex; gap: 8px; margin: 12px 0 24px; }
.order-form input { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); width: 120px; font-size: 18px; text-align: center; letter-spacing: .25em; }
.order-status-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.order-status-item { display: flex; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.order-status-item.done { background: var(--cream); border-color: var(--bronze); }
.order-status-item.current { border-color: var(--burgundy); border-width: 2px; }

/* === Mobile sticky CTA (отключаем — заменён на bottomnav) === */
.mobile-cta { display: none !important; }

/* === Summary bar — большая кнопка корзины при наполнении === */
.summary-bar {
  position: fixed; left: 12px; right: 12px; bottom: 76px;
  z-index: 92; max-width: 760px; margin: 0 auto;
  animation: slideUp .25s ease;
}
@media (min-width: 880px) {
  .summary-bar { left: auto; right: 24px; bottom: 90px; max-width: 380px; }
}
.summary-bar__btn {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--burgundy); color: var(--cream);
  border: 0; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(110, 20, 40, 0.4);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.summary-bar__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(110, 20, 40, 0.5); }
.summary-bar__left { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.summary-bar__icon { display: inline-flex; }
.summary-bar__count { font-size: 13px; opacity: .85; }
.summary-bar__total { flex: 1; text-align: center; font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; }
.summary-bar__cta { font-size: 13px; flex-shrink: 0; }
@media (max-width: 480px) {
  .summary-bar__cta { display: none; }
  .summary-bar__total { text-align: right; }
}

/* === Order Type tabs (papakado-style) — НЕ sticky, скроллится с контентом === */
.ordertype {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.ordertype__inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ordertype__tabs {
  display: inline-flex; gap: 4px; padding: 3px;
  background: rgba(46,24,16,.06); border-radius: 999px;
}
.ordertype__tab {
  padding: 8px 16px; border: 0; background: transparent; color: var(--dark);
  font-size: 13px; font-weight: 600; border-radius: 999px;
  transition: background .12s, color .12s;
}
.ordertype__tab.active { background: var(--burgundy); color: var(--cream); box-shadow: 0 2px 6px rgba(110,20,40,.2); }
.ordertype__tab:hover:not(.active) { background: rgba(46,24,16,.08); }

.ordertype__address {
  flex: 1; min-width: 200px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--dark);
  text-align: left; cursor: pointer;
}
.ordertype__address:hover { border-color: var(--burgundy); }
.ordertype__caret { margin-left: auto; opacity: .6; }
.ordertype__address svg { color: var(--burgundy); flex-shrink: 0; }

@media (max-width: 480px) {
  .ordertype__inner { gap: 8px; padding: 8px 12px; }
  .ordertype__tabs { width: 100%; }
  .ordertype__tab { flex: 1; padding: 8px 8px; font-size: 12px; }
  .ordertype__address { width: 100%; min-width: 0; }
}


/* === Тонкая инфо-полоса под переключателем === */
.infobar {
  background: linear-gradient(135deg, var(--burgundy), var(--garnet));
  color: var(--cream);
  padding: 10px 12px;
  font-size: 13px;
}
.infobar__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.infobar__item b { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15px; }
.infobar__item .muted { color: rgba(244, 232, 205, 0.7); }
.infobar__sep { opacity: .4; }

/* === Bottom navigation (papakado-style) === */
.bottomnav {
  display: flex; align-items: stretch; justify-content: space-around;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(46, 24, 16, .08);
}
.bottomnav__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 8px 4px 6px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 11px; font-weight: 500;
  transition: color .12s ease;
}
.bottomnav__item:hover, .bottomnav__item.active { color: var(--burgundy); }
.bottomnav__item span:not(.bottomnav__cart-icon):not(.bottomnav__badge) { letter-spacing: .01em; }
.bottomnav__cart-icon { position: relative; display: inline-flex; }
.bottomnav__badge {
  position: absolute; top: -5px; right: -8px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--burgundy); color: var(--cream);
  border-radius: 999px; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
}
.bottomnav__item--cta { color: var(--burgundy); }

/* Bottomnav фиксированный — резерв под него на ВСЕХ экранах */
body { padding-bottom: 70px; }
.footer { margin-bottom: 0; }
body.has-cart { padding-bottom: 70px; }
@media (min-width: 721px) {
  .bottomnav__item span:not(.bottomnav__cart-icon):not(.bottomnav__badge) { font-size: 12px; }
}

/* === Плашка согласия (papakado-style) === */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 78px; z-index: 90;
  background: var(--dark); color: var(--cream);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-md);
  animation: slideUp .3s ease;
  max-width: 760px; margin: 0 auto;
}
@media (min-width: 721px) {
  .consent { bottom: 76px; left: auto; right: 16px; max-width: 380px; }
}
.consent.hidden { display: none; }
.consent__inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.consent__text { flex: 1; min-width: 200px; font-size: 12px; line-height: 1.4; }
.consent__text a { color: var(--gold); text-decoration: underline; }

/* === Login tabs (телефон / telegram) === */
.login-tabs {
  display: flex; gap: 8px; margin-bottom: 18px;
  background: rgba(46,24,16,.06); padding: 4px; border-radius: 999px;
}
.login-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border: 0; background: transparent; color: var(--dark);
  font-size: 13px; font-weight: 600; border-radius: 999px;
  transition: background .12s, color .12s;
}
.login-tab.active { background: var(--burgundy); color: var(--cream); box-shadow: 0 2px 6px rgba(110,20,40,.25); }
.login-tab svg { flex-shrink: 0; }

/* === Toast === */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: var(--cream);
  padding: 12px 18px; border-radius: 999px; font-size: 14px;
  z-index: 300; box-shadow: var(--shadow-md);
  animation: toastIn .25s ease;
}
@keyframes toastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0 } to { transform: translateX(-50%) translateY(0); opacity: 1 } }

@media (max-width: 720px) {
  .toast { bottom: 80px; }
}

/* ==================================================== */
/* Акции и спецпредложения (общие с QR-меню)            */
/* ==================================================== */
.featured-section {
  padding: 24px 0 4px;
  max-width: 1200px;
  margin: 0 auto;
}
.featured-head {
  padding: 0 16px;
  margin-bottom: 12px;
}
.featured-superhead {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 4px;
}
.featured-head h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--burgundy);
  font-size: clamp(22px, 4vw, 30px);
  margin: 0;
}
.featured-wrapper {
  position: relative;
}
.featured-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  padding: 6px 16px 18px;
  scrollbar-width: none;
}
.featured-track::-webkit-scrollbar { display: none; }
.featured-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--burgundy);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.featured-arrow:hover { transform: translateY(-50%) scale(1.05); }
.featured-arrow-prev { left: 4px; }
.featured-arrow-next { right: 4px; }
@media (max-width: 720px) {
  .featured-arrow { display: none; }
}

.featured-card {
  flex: 0 0 auto;
  width: 78vw;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  scroll-snap-align: center;
  text-decoration: none;
  color: inherit;
  background: #E8DFC8;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: block;
}
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-card:active { transform: scale(0.98); }
.featured-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.featured-photo.empty {
  background: linear-gradient(135deg, var(--burgundy), #5d1822);
}
.featured-photo.empty::after {
  content: '🎉';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 64px; opacity: 0.55;
}
.featured-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(46, 24, 16, 0.88));
  color: var(--paper);
}
.featured-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.featured-short {
  font-family: 'EB Garamond', 'Lora', serif;
  font-style: italic;
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.94;
  line-height: 1.4;
}

/* ==================================================== */
/* Страница акции /promo/<slug>                         */
/* ==================================================== */
.promo-page {
  max-width: 760px;
  margin: 16px auto 60px;
  padding: 0 20px;
}
.promo-back {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--burgundy);
  text-decoration: none;
  padding: 8px 0;
  margin-bottom: 14px;
}
.promo-back:hover { text-decoration: underline; }
.promo-hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  background: #E8DFC8 center/cover no-repeat;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.promo-h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--burgundy);
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: 0.4px;
  text-align: center;
  margin: 14px 0 0;
}
.promo-divider {
  width: 100px; height: 1px; margin: 16px auto 22px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.promo-divider::after {
  content: '◆';
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--paper); padding: 0 8px;
  color: var(--gold); font-size: 10px;
}
.promo-lead {
  font-family: 'EB Garamond', 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--garnet);
  text-align: center;
  margin-bottom: 20px;
}
.promo-text {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--dark);
  line-height: 1.7;
  white-space: pre-wrap;
}
@media (min-width: 900px) {
  .promo-hero { aspect-ratio: 16 / 9; max-height: 480px; }
}
