/* Парасат — печатное меню на светлой бумаге.
   Cormorant Garamond (заголовки и названия блюд) + Golos Text (интерфейс, цифры),
   тёплая слоновая кость, синие чернила герба, золото короны.
   Фотографий в меню заведения нет — витрина держится на типографике. */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  /* бумага */
  --paper: #fbf8f2;
  --paper-2: #ffffff;
  --paper-3: #f4eee3;
  --paper-4: #ece3d3;

  /* чернила герба */
  --ink: #17293f;
  --ink-1: #55677c;
  --ink-mute: #8b99a7;

  /* золото короны */
  --gold: #a97f28;
  --gold-hi: #d3aa4e;
  --gold-soft: #f0e5cd;
  --blue: #0f6fb5;
  --wine: #a4342c;
  --green-veg: #4e7f43;

  /* совместимость: checkout.css, lunch.css и шаблоны берут эти имена */
  --bg-0: #fbf8f2;
  --bg-1: #ffffff;
  --bg-2: #f4eee3;
  --bg-3: #ece3d3;
  --bg-glass: rgba(23,41,63,0.035);
  --bg-blur: rgba(251,248,242,0.9);
  --text-0: #17293f;
  --text-1: #55677c;
  --text-mute: #8b99a7;
  --terra: #a97f28;
  --terra-hi: #c39a3c;
  --terra-deep: #7d5c17;
  --ochre: #a97f28;
  --ochre-hi: #c39a3c;
  --neon-new: #a97f28;
  --brass: #a97f28;
  --brass-hi: #c39a3c;

  --border: rgba(23,41,63,0.13);
  --border-strong: rgba(169,127,40,0.5);
  --hairline: linear-gradient(90deg, transparent, rgba(169,127,40,0.5) 10%, rgba(169,127,40,0.5) 90%, transparent);
  --shadow-card: 0 2px 10px -4px rgba(23,41,63,0.14), 0 10px 34px -22px rgba(23,41,63,0.4);
  --shadow-lift: 0 4px 14px -6px rgba(23,41,63,0.2), 0 18px 44px -26px rgba(23,41,63,0.45);
  --shadow-warm: var(--shadow-lift);

  --display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --num: 'Golos Text', system-ui, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --nav-h: 96px;
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overscroll-behavior-y: contain;
}

body {
  padding-bottom: calc(150px + var(--safe-bottom));
  position: relative;
  background:
    radial-gradient(120% 70% at 50% 0%, #ffffff 0%, rgba(255,255,255,0) 55%),
    var(--paper);
  background-attachment: fixed;
}
/* едва заметное зерно бумаги */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(169,127,40,0.22); }

.display { font-family: var(--display); font-weight: 500; }
/* Cormorant по умолчанию рисует старостильные цифры — в меню нужны прописные */
.display, .dish-name, .cat-title, .item-detail-name, .meta-v, .cart-name,
.pair-name, .search-result-name, .modal-title, .topbar-title, .hero-desc,
.hero-title, .brand-word, .footer-word, .pairs-title, .collection-title {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ===== Шапка ===== */
.topbar {
  position: relative; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: calc(14px + var(--safe-top)) 20px 12px;
  max-width: 760px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo, .brand img { height: 34px; width: auto; }
.brand-word {
  font-family: var(--display); font-weight: 600; font-size: 22px;
  letter-spacing: 0.14em; color: var(--ink); text-transform: uppercase;
}
.topbar-right { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: flex; gap: 2px; padding: 3px;
  background: var(--paper-3); border: 1px solid var(--border); border-radius: 999px;
}
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 26px; padding: 0 9px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--ink-mute); border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.lang.active { background: var(--ink); color: var(--paper); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--border);
  color: var(--ink); transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover, .icon-btn:active { border-color: var(--border-strong); background: var(--paper-3); }
.icon-btn svg { width: 18px; height: 18px; }

.item-topbar { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; }
.brand-min { justify-self: center; display: inline-flex; }
.brand-min img { height: 32px; }
.topbar-title { font-family: var(--display); font-weight: 500; font-size: 24px; text-align: center; }

/* ===== Обложка: карточка меню на бумаге ===== */
.hero { max-width: 760px; margin: 0 auto; padding: 12px 20px 26px; }
.hero-frame {
  position: relative; text-align: center;
  padding: 32px 22px 26px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
}
/* тонкая золотая рамка внутри */
.hero-frame::before {
  content: ''; position: absolute; inset: 9px;
  border: 1px solid rgba(169,127,40,0.35); border-radius: 2px; pointer-events: none;
}
.hero-logo-wrap { margin: 0; font-weight: 400; position: relative; }
.hero-logo { display: block; width: min(236px, 72%); height: auto; margin: 0 auto; }
.hero-kicker {
  display: block; font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 11vw, 60px); line-height: 1.02;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink);
}
/* двойная линейка как в печатном меню */
.hero-rule {
  width: 120px; height: 4px; margin: 22px auto 18px;
  border-top: 1px solid rgba(169,127,40,0.75);
  border-bottom: 1px solid rgba(169,127,40,0.35);
}
.hero-desc {
  font-family: var(--display); font-size: 20px; font-weight: 500;
  color: var(--ink); letter-spacing: 0.01em; text-wrap: balance;
}
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 20px; }
.fact {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 12.5px; color: var(--ink-1);
}
.fact i { color: var(--gold); font-size: 15px; }
.hero-table {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.hero-table b {
  font-family: var(--num); font-size: 15px; font-weight: 700;
  color: var(--gold-hi); letter-spacing: 0; font-variant-numeric: tabular-nums;
}

/* ===== Липкая навигация ===== */
.nav {
  position: sticky; top: 0; z-index: 45;
  background: var(--bg-blur);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-sections {
  display: flex; align-items: stretch; gap: 2px;
  max-width: 760px; margin: 0 auto; padding: 0 14px;
  border-bottom: 1px solid rgba(23,41,63,0.08);
}
.sec-tab {
  flex: 1 1 0; min-width: 0;
  padding: 14px 6px 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); text-align: center;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sec-tab.active { color: var(--ink); border-bottom-color: var(--gold); }
.nav-search {
  flex: 0 0 auto; width: 42px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-1);
}
.nav-search svg { width: 17px; height: 17px; }

.nav-cats { overflow: hidden; }
.cat-nav-inner {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  max-width: 760px; margin: 0 auto; padding: 9px 16px;
  scroll-snap-type: x proximity;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto; scroll-snap-align: center;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-1); border: 1px solid transparent;
  white-space: nowrap; transition: all .15s ease;
}
.cat-chip.active { color: var(--ink); border-color: var(--border-strong); background: var(--gold-soft); }

/* ===== Меню ===== */
.menu { max-width: 760px; margin: 0 auto; padding: 4px 20px 40px; }
.sec-block[hidden] { display: none; }

.cat-section { padding-top: 36px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.cat-head { display: flex; align-items: baseline; gap: 13px; }
.cat-num {
  font-family: var(--num); font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--gold); flex: 0 0 auto;
}
.cat-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(27px, 6.4vw, 34px); line-height: 1.12;
  color: var(--ink); letter-spacing: 0.005em;
}
.cat-rule { height: 1px; background: var(--hairline); margin: 13px 0 4px; }

/* блюдо */
.dish {
  display: grid; grid-template-columns: 1fr 40px; column-gap: 12px;
  padding: 16px 0 15px;
  border-bottom: 1px solid rgba(23,41,63,0.09);
}
.dish:last-child { border-bottom: 0; }
/* цена держится последней строки названия, а не первой */
.dish-line { display: flex; align-items: flex-end; align-items: last baseline; }
.dish-name {
  font-family: var(--display); font-weight: 500;
  font-size: 21px; line-height: 1.22; color: var(--ink);
  flex: 0 1 auto;
}
.dish-leader {
  flex: 1 1 auto; min-width: 18px; height: 1px; align-self: flex-end;
  margin: 0 10px 7px;
  background-image: radial-gradient(circle, rgba(23,41,63,0.32) 1px, transparent 1.2px);
  background-size: 6px 2px; background-repeat: repeat-x; background-position: bottom;
}
.dish-price {
  flex: 0 0 auto; font-family: var(--num); font-size: 15.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.dish-price .cur { color: var(--gold); font-weight: 500; font-size: 13px; margin-left: 2px; }
.dish-old { font-size: 12.5px; color: var(--ink-mute); text-decoration: line-through; margin-right: 7px; }
.dish-desc {
  margin-top: 5px; font-size: 13.5px; line-height: 1.5;
  color: var(--ink-1); max-width: 48ch; text-wrap: pretty;
}
.dish-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dish-weight {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
}
.dish-add {
  grid-column: 2; grid-row: 1;
  align-self: start; justify-self: end; margin-top: 3px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--gold);
  background: var(--paper-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.dish-add svg { width: 15px; height: 15px; }
.dish-add:active { transform: scale(0.92); background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) {
  .dish-add:hover { background: var(--gold-soft); box-shadow: 0 2px 8px -3px rgba(169,127,40,0.5); }
}

.dish.is-off { opacity: 0.5; }
.dish.is-off .dish-add { display: none; }
.dish-off-tag {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--wine); font-weight: 700;
  border: 1px solid rgba(164,52,44,0.35); border-radius: 999px; padding: 2px 8px;
}

/* метки */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--gold); background: var(--gold-soft);
}
.badge-new, .badge-hit { color: var(--terra-deep); }
.badge-age { color: var(--wine); border-color: rgba(164,52,44,0.35); background: rgba(164,52,44,0.07); }
.badge-icon { color: var(--green-veg); border-color: rgba(78,127,67,0.35); background: rgba(78,127,67,0.08); padding: 3px 7px; }
.badge-icon i { font-size: 12px; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--ink-mute); }
.empty-state a { color: var(--gold); border-bottom: 1px solid var(--border-strong); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 6px 18px -10px rgba(23,41,63,0.8);
}
.btn-primary:hover { filter: brightness(1.15); }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #fff; }
.btn-lg { width: 100%; padding: 17px 24px; font-size: 13px; }
.btn-disabled { background: var(--paper-3); color: var(--ink-mute); border: 1px solid var(--border); cursor: not-allowed; }
.btn-ghost-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gold); font-weight: 600; }

/* ===== Карточка блюда ===== */
.page-item .item-hero, .page-item .pairs { max-width: 760px; margin: 0 auto; }
.item-hero { padding: 8px 20px 26px; }
.item-plate {
  position: relative; text-align: center;
  padding: 34px 22px 28px;
  background: var(--paper-2); border: 1px solid var(--border); border-radius: 3px;
  box-shadow: var(--shadow-card);
}
.item-plate::before {
  content: ''; position: absolute; inset: 9px;
  border: 1px solid rgba(169,127,40,0.3); border-radius: 2px; pointer-events: none;
}
.item-cat {
  font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.item-detail-name {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 8vw, 42px); line-height: 1.1; color: var(--ink);
  text-wrap: balance;
}
.item-detail-desc {
  margin: 14px auto 0; max-width: 42ch;
  font-size: 15px; line-height: 1.55; color: var(--ink-1); text-wrap: pretty;
}
.item-badges-big { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.item-price-big {
  font-family: var(--num); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ink); margin-top: 18px;
}
.item-price-big .cur { color: var(--gold); font-size: 19px; font-weight: 500; margin-left: 3px; }
.item-detail-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
}
.item-detail-meta > div { display: flex; flex-direction: column; gap: 3px; }
.meta-k { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.meta-v { font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--ink); }

.modifiers { margin-top: 18px; text-align: left; display: flex; flex-direction: column; }
.mod-row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 2px; border-bottom: 1px solid rgba(23,41,63,0.09);
  font-size: 14.5px; cursor: pointer;
}
.mod-row input { accent-color: var(--gold); width: 17px; height: 17px; }
.mod-name { flex: 1; }
.mod-delta { font-family: var(--num); font-weight: 600; color: var(--gold); font-size: 13px; }

.item-detail-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.qty {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px; background: var(--paper-2);
}
.qty-btn {
  width: 36px; height: 36px; font-size: 18px; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.qty-btn:active { background: var(--paper-3); }
.qty-val, .cart-qty span {
  min-width: 30px; text-align: center; font-family: var(--num);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.add-detail { flex: 1; }
.add-price { font-variant-numeric: tabular-nums; }

.pairs { padding: 4px 0 30px; }
.pairs-title { font-family: var(--display); font-weight: 600; font-size: 25px; padding: 0 20px 12px; }
.pairs-rail { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 8px; scrollbar-width: none; }
.pairs-rail::-webkit-scrollbar { display: none; }
.pair-card {
  flex: 0 0 auto; width: 182px; padding: 16px 15px;
  background: var(--paper-2); border: 1px solid var(--border); border-radius: 3px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pair-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.pair-name { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.25; color: var(--ink); }
.pair-price { font-family: var(--num); font-size: 13.5px; font-weight: 600; color: var(--gold); }

/* ===== Корзина ===== */
.cart-page { max-width: 760px; margin: 0 auto; padding: 10px 20px 40px; }
.cart-table-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 8px 15px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600;
}
.cart-table-tag b { font-family: var(--num); font-size: 15px; font-weight: 700; color: var(--gold-hi); letter-spacing: 0; }
.cart-list { display: flex; flex-direction: column; }
.cart-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid rgba(23,41,63,0.09);
}
.cart-row:last-child { border-bottom: 0; }
.cart-name { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.25; }
.cart-price { font-family: var(--num); font-size: 13px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.cart-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--paper-2); }
.cart-qty .qty-btn { width: 32px; height: 32px; font-size: 16px; }
.cart-empty { padding: 70px 0; text-align: center; color: var(--ink-mute); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cart-form { margin-top: 24px; display: flex; flex-direction: column; }
.cart-other { align-self: center; margin-top: 14px; }
.cart-summary { padding: 18px 0; border-top: 1px solid var(--border-strong); margin-bottom: 16px; }
.cart-sum-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600;
}
.cart-sum-line b {
  font-family: var(--num); font-size: 26px; font-weight: 700;
  color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums;
}

/* ===== Плавающие кнопки ===== */
.cart-fab {
  position: fixed; left: 20px; right: 20px; bottom: calc(18px + var(--safe-bottom));
  z-index: 60; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 34px -12px rgba(23,41,63,0.75);
  transition: opacity .2s ease, transform .2s ease;
}
.cart-fab.hidden { opacity: 0; pointer-events: none; transform: translateY(14px); }
.cart-count {
  min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px;
  background: var(--gold-hi); color: #2a2010;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-label { flex: 1; font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.cart-total { font-family: var(--num); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* кнопка вызова официанта живёт в липкой панели: плавающая наезжала на текст */
.waiter-fab {
  flex: 0 0 auto; width: 40px; align-self: stretch;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-1); transition: color .15s ease;
}
.waiter-fab i { font-size: 19px; }
.waiter-fab:active { color: var(--gold); }

/* ===== Модалка ===== */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(23,41,63,0.35); backdrop-filter: blur(3px); }
.modal-sheet {
  position: relative; width: 100%; max-width: 540px; margin: 0 auto;
  background: var(--paper-2); border-radius: 18px 18px 0 0;
  padding: 14px 22px calc(30px + var(--safe-bottom));
  display: flex; flex-direction: column; gap: 15px;
  box-shadow: 0 -14px 50px -20px rgba(23,41,63,0.5);
  animation: sheet-up .26s cubic-bezier(.2,.8,.3,1);
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--paper-4); margin: 2px auto 4px; }
.modal-title { font-family: var(--display); font-weight: 600; font-size: 25px; text-align: center; }
.modal-text { text-align: center; color: var(--ink-1); font-size: 14.5px; }
.reason-list { display: flex; flex-direction: column; gap: 8px; }
.reason-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 17px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 15px; text-align: left; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.reason-btn i { font-size: 19px; color: var(--gold); }
.reason-btn:active { background: var(--gold-soft); border-color: var(--border-strong); }
.success-mark {
  width: 58px; height: 58px; border-radius: 50%; margin: 6px auto 0;
  border: 1px solid var(--gold); color: var(--gold); background: var(--gold-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.success-mark i { font-size: 27px; }

/* ===== Поиск ===== */
.search-overlay { position: fixed; inset: 0; z-index: 95; background: var(--paper); display: flex; flex-direction: column; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: calc(14px + var(--safe-top)) 18px 14px;
  border-bottom: 1px solid var(--border); background: var(--paper-2);
}
.search-bar input {
  flex: 1; background: transparent; border: 0; outline: none;
  color: var(--ink); font-size: 20px; font-family: var(--display); font-weight: 500;
}
.search-bar input::placeholder { color: var(--ink-mute); font-family: var(--sans); font-size: 15px; font-weight: 400; }
.search-results { flex: 1; overflow-y: auto; padding: 4px 18px 30px; max-width: 760px; margin: 0 auto; width: 100%; }
.search-result {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 0; border-bottom: 1px solid rgba(23,41,63,0.09);
}
.search-result-main { display: flex; align-items: flex-end; align-items: last baseline; }
/* у поля поиска свой крестик — браузерный убираем, иначе их два */
.search-bar input::-webkit-search-cancel-button,
.search-bar input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search-result-name { flex: 0 1 auto; font-family: var(--display); font-weight: 500; font-size: 18px; }
.search-result-leader {
  flex: 1 1 auto; min-width: 14px; height: 1px; align-self: flex-end; margin: 0 9px 6px;
  background-image: radial-gradient(circle, rgba(23,41,63,0.3) 1px, transparent 1.2px);
  background-size: 6px 2px; background-repeat: repeat-x; background-position: bottom;
}
.search-result-cat { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-mute); font-family: var(--sans); font-weight: 600; }
.search-result-price { flex: 0 0 auto; font-family: var(--num); font-weight: 600; font-size: 14px; color: var(--ink); }

/* ===== Тост ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(150px + var(--safe-bottom)); z-index: 100;
  transform: translateX(-50%);
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 13.5px; box-shadow: var(--shadow-lift); animation: toast-in .2s ease;
  max-width: calc(100vw - 40px);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== Подвал ===== */
.footer {
  max-width: 760px; margin: 0 auto;
  padding: 40px 20px 30px; text-align: center;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 13px;
}
.footer-logo { width: auto; height: 64px; }
.footer-word { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .2em; text-transform: uppercase; }
.footer-sub { font-size: 13.5px; color: var(--ink-1); line-height: 1.65; }
.footer-socials { display: flex; gap: 9px; margin-top: 4px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--ink-1); background: var(--paper-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s ease, border-color .15s ease;
}
.social-btn i { font-size: 19px; }
.social-btn:hover { color: var(--gold); border-color: var(--border-strong); }
.footer-tiny { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; }

/* ===== Подборки ===== */
.collections { max-width: 760px; margin: 0 auto; padding: 4px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.collection-card {
  padding: 22px 20px; border-radius: 3px;
  background: var(--paper-2); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
.collection-kicker { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.collection-title { font-family: var(--display); font-weight: 600; font-size: 27px; margin-top: 6px; }
.collection-count { font-size: 13.5px; color: var(--ink-1); margin-top: 4px; }

/* ===== Планшет и шире ===== */
@media (min-width: 720px) {
  .menu { padding-bottom: 60px; }
  .dish { grid-template-columns: 1fr 44px; padding: 18px 0 17px; }
  .dish-name { font-size: 22px; }
  .dish-price { font-size: 17px; }
  .cart-fab { left: auto; right: 28px; width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
