:root {
  --paper: #fff3d6;
  --paper-2: #fbe5b8;
  --card: #fffdf7;
  --ink: #2a1d16;
  --ink-2: #6f5d50;
  --ink-3: #a08f80;
  --red: #e2231a;
  --red-d: #b3140e;
  --gold: #ffc933;
  --gold-d: #e9a31b;
  --green: #0f6b3e;
  --green-l: #1f9a5a;
  --line: rgba(42, 29, 22, 0.13);
  --line-2: rgba(42, 29, 22, 0.22);
  --hard: 3px 3px 0 var(--ink);
  --r: 20px;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bar-h: 0px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--paper);
  background-image: var(--pattern);
  background-size: 180px 180px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

svg.i {
  width: 22px;
  height: 22px;
  flex: none;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px calc(var(--bar-h) + 16px + var(--safe-b));
  min-height: 100vh;
}

.screen > * {
  animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen > *,
  .steam path,
  .steam > g {
    animation: none !important;
  }
}

/* ---------- верхняя панель ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -16px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar .spacer {
  flex: 1;
}

.topbar h1 {
  flex: 1;
  margin: 0;
  font: 800 17px/1.1 var(--display);
  letter-spacing: -0.01em;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.85;
  transform: rotate(-4deg) skewX(-6deg);
  user-select: none;
}

.logo small {
  font: 800 9px var(--display);
  letter-spacing: 0.32em;
  color: var(--ink);
  margin-left: 3px;
}

.logo b {
  font: 900 28px var(--display);
  color: var(--red);
  letter-spacing: -0.03em;
  text-shadow: 2px 2px 0 var(--gold), 3.5px 3.5px 0 var(--ink);
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}

.icon-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.icon-btn .badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 800 11px/20px var(--display);
  border: 2px solid var(--ink);
}

.lang {
  display: flex;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
}

.lang button {
  padding: 5px 7px;
  border-radius: 8px;
  font: 700 11px var(--display);
  color: var(--ink-2);
}

.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--gold);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  font: 800 15px var(--display);
  letter-spacing: -0.01em;
  border: 2.5px solid var(--ink);
  box-shadow: var(--hard);
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: var(--gold);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn .price {
  opacity: 0.9;
  font-weight: 700;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 13px var(--body);
  color: var(--red-d);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- главная ---------- */
.notice {
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 14px;
}

.notice.soft {
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1.5px dashed var(--line-2);
  font-size: 12.5px;
}

.hero {
  position: relative;
  margin-top: 14px;
  min-height: 250px;
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: var(--red);
  color: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: visible;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(from 0deg at 78% 72%, rgba(255, 255, 255, 0.09) 0deg 9deg, transparent 9deg 18deg);
  z-index: -1;
}

.hero .kicker {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--ink);
  font: 800 10px var(--display);
  letter-spacing: 0.14em;
  transform: rotate(-2deg);
}

.hero h2 {
  margin: 12px 0 8px;
  max-width: 60%;
  font: 900 33px/0.98 var(--display);
  letter-spacing: -0.03em;
  white-space: pre-line;
  text-shadow: 3px 3px 0 var(--red-d);
}

.hero p {
  max-width: 50%;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.94;
}

.hero .btn {
  position: relative;
  z-index: 2;
  min-height: 48px;
  padding: 0 16px;
  font-size: 14px;
}

.hero .from {
  display: block;
  margin-top: 10px;
  font: 700 12px var(--display);
  color: var(--gold);
}

.hero .mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 57%;
  max-width: 260px;
  pointer-events: none;
  z-index: 1;
  clip-path: inset(-400px 0 0 -80px round 0 0 25px 0);
}

.mascot svg,
.mascot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero .mascot svg {
  filter: drop-shadow(0 6px 0 rgba(42, 29, 22, 0.25));
  border-bottom-right-radius: 26px;
}

.steam > path,
.steam > g {
  animation: steam 2.6s ease-in-out infinite;
  transform-box: fill-box;
}

.steam > :nth-child(2) {
  animation-delay: 0.8s;
}

.steam > :nth-child(3) {
  animation-delay: 1.5s;
}

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  40% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-26px);
  }
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--line-2);
  font-size: 12px;
  font-weight: 700;
}

.info-pill svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}

.active-order {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: var(--hard);
  text-align: left;
}

.active-order .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255, 201, 51, 0.7);
  animation: pulse 1.6s infinite;
  flex: none;
}

.active-order b {
  font: 800 14px var(--display);
}

.active-order span {
  display: block;
  font-size: 12.5px;
  opacity: 0.9;
}

.active-order .go {
  margin-left: auto;
  transform: rotate(180deg);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(255, 201, 51, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 201, 51, 0);
  }
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 30px 0 12px;
}

.sec-head h3 {
  margin: 0;
  font: 800 21px/1.1 var(--display);
  letter-spacing: -0.02em;
}

.sec-head p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
}

.combos {
  display: flex;
  gap: 12px;
  margin: 0 -16px;
  padding: 4px 16px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.combos::-webkit-scrollbar {
  display: none;
}

.combo {
  flex: 0 0 150px;
  scroll-snap-align: start;
  padding: 10px 10px 12px;
  border-radius: 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--hard);
  text-align: left;
  transition: transform 0.12s, box-shadow 0.12s;
}

.combo:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.combo img {
  display: block;
  width: 100%;
  aspect-ratio: 136 / 110;
  object-fit: cover;
  mix-blend-mode: multiply;
  margin-bottom: 6px;
}

.combo b {
  display: block;
  font: 800 14px/1.15 var(--display);
}

.combo small {
  display: block;
  margin: 4px 0 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  font-weight: 600;
  line-height: 1.3;
}

.combo .p {
  font: 800 14px var(--display);
  color: var(--red);
}

.drinks-card {
  position: relative;
  padding: 6px 14px;
  border-radius: var(--r);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--hard);
}

.drinks-card h4 {
  margin: 14px 0 4px;
  font: 800 12px var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.drinks-head {
  position: relative;
}

.drinks-head .mascot {
  position: absolute;
  right: -6px;
  bottom: -14px;
  width: 104px;
  transform: rotate(4deg);
  pointer-events: none;
}

.drink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1.5px dashed var(--line);
}

.drinks-card h4 + .drink {
  border-top: 0;
}

.drink svg {
  width: 38px;
  height: 38px;
  flex: none;
}

.drink .nm {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 14px;
}

.drink .nm small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.drink .p {
  font: 800 14px var(--display);
  min-width: 42px;
  text-align: right;
}

.drink.off {
  opacity: 0.45;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  flex: none;
}

.stepper button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.stepper button:active {
  background: rgba(42, 29, 22, 0.12);
}

.stepper svg {
  width: 16px;
  height: 16px;
}

.stepper span {
  min-width: 20px;
  text-align: center;
  font: 800 14px var(--display);
}

.add-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  flex: none;
}

.add-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.add-btn svg {
  width: 18px;
  height: 18px;
}

.foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
}

.foot a {
  color: inherit;
}

/* ---------- нижняя панель ---------- */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(12px + var(--safe-b));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid var(--ink);
  animation: barIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes barIn {
  from {
    transform: translateY(100%);
  }
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 488px;
  margin: 0 auto;
}

.bar-in .btn {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  font-size: 14px;
  justify-content: space-between;
}

.bar-in .btn:only-child {
  justify-content: space-between;
}

.bar-in .btn > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-summary {
  max-width: 488px;
  margin: 0 auto 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-summary b {
  color: var(--ink);
}

.cart-fab {
  justify-content: space-between;
}

.cart-fab .count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--gold);
  font-size: 13px;
}

/* ---------- конструктор ---------- */
.progress {
  display: flex;
  gap: 5px;
}

.progress i {
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--line-2);
  transition: background 0.25s, width 0.25s;
}

.progress i.done {
  background: var(--red);
  width: 22px;
}

.step {
  margin-top: 22px;
  scroll-margin-top: 70px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: 900 15px var(--display);
  border: 2px solid var(--ink);
  flex: none;
  transition: background 0.25s;
}

.step.ok .num {
  background: var(--green);
}

.step-head h3 {
  margin: 0;
  font: 800 19px/1.05 var(--display);
  letter-spacing: -0.02em;
}

.step-head small {
  display: block;
  margin-top: 3px;
  font: 700 10.5px var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.step-head small.optional {
  color: var(--ink-3);
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.opt-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 3px 10px;
  border-radius: 18px;
  background: var(--card);
  border: 2px solid var(--line);
  text-align: center;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.opt img {
  width: 100%;
  aspect-ratio: 136 / 116;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.opt.sauce img {
  aspect-ratio: 92 / 76;
  width: 78%;
}

.opt .nm {
  margin-top: 4px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.opt .p {
  margin-top: 3px;
  font: 800 13px var(--display);
  color: var(--red);
}

.opt .p.muted {
  font: 700 10.5px var(--body);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.opt .hot {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
}

.opt .hot svg {
  width: 16px;
  height: 20px;
}

.drink-thumb svg {
  width: 100%;
  height: 100%;
}

.tracker .st.now::before {
  background: var(--ink);
}

.opt[aria-pressed='true'] {
  border-color: var(--ink);
  background: #fff7e0;
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.opt[aria-pressed='true'] img {
  transform: scale(1.06) rotate(-3deg);
}

.opt[aria-pressed='true']::after {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  animation: pop 0.25s cubic-bezier(0.3, 1.8, 0.5, 1);
}

@keyframes pop {
  from {
    transform: scale(0);
  }
}

.opt:disabled {
  opacity: 0.4;
  filter: grayscale(1);
}

.opt .so {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font: 800 10px var(--display);
  text-transform: uppercase;
}

.extra-group {
  margin-bottom: 12px;
}

.extra-group h4 {
  margin: 0 0 8px;
  font: 700 11px var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 13px;
  background: var(--card);
  border: 2px solid var(--line-2);
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.15s;
}

.chip em {
  font: 700 12px var(--display);
  font-style: normal;
  color: var(--red);
}

.chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip[aria-pressed='true'] em {
  color: var(--gold);
}

.chip[aria-pressed='true']::before {
  content: '✓';
  font-weight: 900;
  color: var(--gold);
}

.chip:disabled {
  opacity: 0.4;
  text-decoration: line-through;
}

.spice {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.spice button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 2px 9px;
  border-radius: 16px;
  background: var(--card);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 10.5px;
  line-height: 1.15;
  text-align: center;
  transition: all 0.15s;
}

.spice .chilis {
  display: flex;
  height: 20px;
  align-items: center;
}

.spice .chilis svg {
  width: 15px;
  height: 18px;
  margin: 0 -2.5px;
}

.chili {
  color: var(--red);
}

.chili.none {
  color: var(--ink-3);
  width: 18px !important;
}

.spice button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--gold);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.spice button[aria-pressed='true'][data-v='4'] {
  background: var(--red);
  color: #fff;
}

.spice button[aria-pressed='true'][data-v='4'] .chili {
  color: var(--gold);
}

/* ---------- корзина ---------- */
.card {
  padding: 14px;
  border-radius: var(--r);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--hard);
}

.card + .card {
  margin-top: 12px;
}

.card-title {
  margin: 26px 0 10px;
  font: 800 16px var(--display);
  letter-spacing: -0.01em;
}

.line-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1.5px dashed var(--line);
}

.line-item:first-child {
  border-top: 0;
  padding-top: 2px;
}

.line-item:last-child {
  padding-bottom: 2px;
}

.line-item .thumb {
  width: 58px;
  height: 50px;
  flex: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.line-item .thumb.drink-thumb {
  width: 44px;
  height: 44px;
  margin: 0 7px;
}

.line-item .body {
  flex: 1;
  min-width: 0;
}

.line-item .t {
  font: 800 14.5px/1.2 var(--display);
}

.line-item .s {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--paper-2);
}

.tag.extra {
  background: var(--gold);
  border: 1.5px solid var(--ink);
}

.tag.warn {
  background: #ffe1dc;
  color: var(--red-d);
}

.tag.hot {
  background: #ffe1dc;
  color: var(--red-d);
  padding: 2px 6px;
}

.tag.hot svg {
  width: 11px;
  height: 14px;
  margin: 0 -2px;
}

.line-item .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.line-item .p {
  font: 800 15px var(--display);
}

.mini-actions {
  display: flex;
  gap: 4px;
}

.mini-actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--ink-2);
}

.mini-actions button:active {
  background: var(--paper-2);
}

.mini-actions svg {
  width: 18px;
  height: 18px;
}

.add-more {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.add-more .btn {
  flex: 1;
  min-height: 46px;
  font-size: 13px;
  box-shadow: 2px 2px 0 var(--ink);
}

.upsell {
  display: flex;
  gap: 8px;
  margin: 12px -16px 0;
  padding: 2px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.upsell::-webkit-scrollbar {
  display: none;
}

.upsell button {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 6px 12px 6px 6px;
  border-radius: 14px;
  background: var(--card);
  border: 2px dashed var(--line-2);
  font-weight: 700;
  font-size: 12.5px;
}

.upsell svg {
  width: 30px;
  height: 30px;
}

.upsell em {
  font: 700 11.5px var(--display);
  font-style: normal;
  color: var(--red);
}

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
}

.seg button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all 0.15s;
}

.seg button svg {
  width: 22px;
  height: 22px;
}

.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--gold);
}

.field {
  display: block;
  margin-top: 12px;
}

.field > span {
  display: block;
  margin: 0 0 6px 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.input,
textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--line-2);
  font-weight: 600;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea.input {
  resize: none;
  min-height: 76px;
}

.input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 201, 51, 0.5);
}

.input.bad {
  border-color: var(--red);
  background: #fff5f3;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row .input {
  flex: 1;
  min-width: 0;
}

.side-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--gold);
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 12.5px;
}

.side-btn svg {
  width: 18px;
  height: 18px;
}

.side-btn.ok {
  background: var(--green);
  color: #fff;
}

.err-text {
  margin: 6px 2px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.hint-ok {
  margin: 6px 2px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.recent {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.recent button {
  flex: none;
  max-width: 220px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border-radius: 18px;
  background: var(--card);
  border: 2px solid var(--line-2);
  text-align: left;
  transition: all 0.15s;
}

.pay-opt svg {
  width: 28px;
  height: 28px;
  color: var(--red);
  margin-bottom: 4px;
}

.pay-opt b {
  font: 800 14px var(--display);
}

.pay-opt small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
}

.pay-opt[aria-pressed='true'] {
  border-color: var(--ink);
  background: #fff7e0;
  box-shadow: 3px 3px 0 var(--ink);
}

.change {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: var(--paper-2);
}

.change p {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
}

.change .chip {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-height: 46px;
  padding: 4px 12px;
  line-height: 1.15;
}

.change .chip small {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.75;
}

.change .chip[aria-pressed='true']::before {
  display: none;
}

.summary {
  margin-top: 26px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-weight: 600;
  font-size: 14px;
}

.sum-row.total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 2px solid var(--ink);
  font: 900 20px var(--display);
}

.sum-row .free {
  color: var(--green);
  font-weight: 800;
}

.to-free {
  margin: 8px 0 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #e2f4e9;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
}

.to-free .track {
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: rgba(15, 107, 62, 0.15);
  overflow: hidden;
}

.to-free .track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--green-l);
  transition: width 0.4s, background 0.4s;
}

/* Полоска до бесплатной доставки по третям: красная → жёлтая → зелёная */
.to-free .track {
  position: relative;
  height: 8px;
  border-radius: 4px;
}
.to-free .track b {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--card);
}
.to-free .track b:nth-of-type(1) {
  left: 33.3%;
}
.to-free .track b:nth-of-type(2) {
  left: 66.6%;
}
.to-free.z1 {
  background: #fde8e4;
  color: var(--red-d);
}
.to-free.z1 .track {
  background: rgba(226, 35, 26, 0.14);
}
.to-free.z1 .track i {
  background: var(--red);
}
.to-free.z2 {
  background: #fff4d1;
  color: #8a5a00;
}
.to-free.z2 .track {
  background: rgba(233, 163, 27, 0.2);
}
.to-free.z2 .track i {
  background: var(--gold-d);
}
.to-free.z3 .track i {
  background: var(--green-l);
}

.empty {
  padding: 30px 10px 10px;
  text-align: center;
}

.empty .mascot {
  width: 190px;
  margin: 0 auto 6px;
}

.empty h2 {
  margin: 0 0 6px;
  font: 900 24px var(--display);
}

.empty p {
  margin: 0 0 20px;
  color: var(--ink-2);
  font-weight: 600;
}

/* ---------- заказ ---------- */
.status-hero {
  position: relative;
  margin-top: 8px;
  padding: 18px 18px 18px;
  min-height: 170px;
  border-radius: 26px;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--gold);
  overflow: hidden;
  isolation: isolate;
}

.status-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 85% 85%, rgba(255, 255, 255, 0.16) 0deg 9deg, transparent 9deg 18deg);
  z-index: -1;
}

.status-hero.s-accepted {
  background: var(--red);
  color: #fff;
}

.status-hero.s-delivering,
.status-hero.s-ready {
  background: var(--green);
  color: #fff;
}

.status-hero.s-done {
  background: var(--card);
}

.status-hero.s-cancelled {
  background: #d9cfc4;
}

.status-hero .mascot {
  position: absolute;
  right: -14px;
  bottom: -46px;
  width: 42%;
  max-width: 170px;
}

.status-hero small {
  font: 800 11px var(--display);
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.status-hero h2 {
  max-width: 62%;
  margin: 8px 0 6px;
  font: 900 26px/1.02 var(--display);
  letter-spacing: -0.02em;
}

.status-hero p {
  max-width: 60%;
  margin: 0;
  font-weight: 700;
  font-size: 13.5px;
}

.status-hero .big-eta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  font: 900 22px var(--display);
}

.status-hero .big-eta small {
  font: 700 12px var(--body);
  letter-spacing: 0;
  opacity: 0.9;
}

.waiting {
  display: inline-flex;
  gap: 4px;
  margin-top: 12px;
}

.waiting i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  animation: blink 1.2s infinite both;
}

.waiting i:nth-child(2) {
  animation-delay: 0.2s;
}

.waiting i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.tracker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0 4px;
  position: relative;
}

.tracker .st {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
  position: relative;
}

.tracker .st::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--line-2);
  z-index: 0;
}

.tracker .st:first-child::before {
  display: none;
}

.tracker .st i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--line-2);
}

.tracker .st.done {
  color: var(--ink);
}

.tracker .st.done::before {
  background: var(--ink);
}

.tracker .st.done i {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold);
}

.tracker .st.now i {
  background: var(--gold);
  border-color: var(--ink);
  animation: pulse-ink 1.6s infinite;
}

.tracker .st i svg {
  width: 14px;
  height: 14px;
}

@keyframes pulse-ink {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 29, 22, 0.35);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(42, 29, 22, 0);
  }
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-box img {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  background: #fff;
  cursor: zoom-in;
}

.qr-box .note {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.kv {
  width: 100%;
  margin-top: 12px;
}

.kv > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1.5px dashed var(--line);
  font-size: 13.5px;
}

.kv span {
  color: var(--ink-2);
  font-weight: 600;
}

.kv b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: right;
  font-weight: 800;
}

.kv button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--paper-2);
}

.kv button svg {
  width: 15px;
  height: 15px;
}

.pay-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 800;
}

.pay-state.paid {
  background: #e2f4e9;
  color: var(--green);
}

.pay-state.claimed {
  background: #fff1c4;
  color: #8a5a00;
}

.pay-state.wait {
  background: var(--paper-2);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
}

.pay-state svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.stars button {
  width: 46px;
  height: 46px;
  color: var(--line-2);
  transition: transform 0.15s, color 0.15s;
}

.stars button.on {
  color: var(--gold-d);
}

.stars button:active {
  transform: scale(0.85);
}

.stars svg {
  width: 100%;
  height: 100%;
}

.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  text-align: left;
}

.order-row + .order-row {
  margin-top: 10px;
}

.order-row .body {
  flex: 1;
  min-width: 0;
}

.order-row b {
  font: 800 15px var(--display);
}

.order-row small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: var(--paper-2);
}

.pill.new {
  background: var(--gold);
}

.pill.accepted {
  background: var(--red);
  color: #fff;
}

.pill.delivering,
.pill.ready {
  background: var(--green);
  color: #fff;
}

.pill.cancelled {
  background: #e5dcd2;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- тост и шторка ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 20px + var(--safe-b));
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.sheet-bg {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(42, 29, 22, 0.72);
  animation: fade 0.2s both;
}

.sheet-bg img {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  background: #fff;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.muted {
  color: var(--ink-2);
}

.center {
  text-align: center;
}

.loader {
  display: grid;
  place-items: center;
  min-height: 60vh;
}

.loader .logo {
  animation: wobble 1s ease-in-out infinite alternate;
}

@keyframes wobble {
  to {
    transform: rotate(3deg) skewX(-6deg) scale(1.06);
  }
}

@media (max-width: 360px) {
  .hero h2 {
    font-size: 28px;
  }
  .opt .nm {
    font-size: 11.5px;
  }
  .spice button {
    font-size: 9.5px;
  }
}

/* ---------- шторка ---------- */
.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(42, 29, 22, 0.55);
  animation: fade 0.2s both;
}

.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-bottom: 0;
  animation: sheetUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes sheetUp {
  from {
    transform: translateY(100%);
  }
}

.sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
}

.sheet header h3 {
  margin: 0;
  font: 800 20px var(--display);
}

.sheet header .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
  box-shadow: 2px 2px 0 var(--ink);
}

.sheet-body {
  overflow-y: auto;
  padding: 0 16px calc(18px + var(--safe-b));
}

.sheet-drinks {
  box-shadow: none;
}

/* ---------- подсказки адреса ---------- */
.sug {
  margin-top: 6px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--ink);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
}

.sug button {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  border-top: 1.5px dashed var(--line);
}

.sug button:first-child {
  border-top: 0;
}

.sug button:active {
  background: var(--paper-2);
}

.sug button svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  color: var(--red);
}

.sug-note {
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.geo-btn {
  min-height: 46px;
  font-size: 13px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- контакты ---------- */
.from-tg {
  font-style: normal;
  color: var(--green);
  font-weight: 800;
}

.side-btn[aria-pressed='false'] {
  background: var(--card);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--gold);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-align: left;
}

.share-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.share-btn svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.share-btn b {
  display: block;
  font: 800 15px var(--display);
}

.share-btn small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- оплата ---------- */
.pay-opts.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.pay-opts.three .pay-opt {
  padding: 10px;
}

.pay-opts.three .pay-opt b {
  font-size: 12.5px;
}

.rub {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: 900 16px var(--display);
}

.change-hint {
  margin: 10px 0 0 !important;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
}

/* ---------- промокоды ---------- */
.promo-note {
  background: var(--gold);
  color: var(--ink);
}

.promo-on {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #e2f4e9;
  border: 2px dashed var(--green);
  font-weight: 700;
}

.promo-on small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.promo-on .warn-t {
  color: var(--red-d);
}

.promo-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-height: 46px;
  padding: 4px 12px;
  line-height: 1.2;
  border-style: dashed;
}

.promo-chip small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
}

.promo-list {
  display: grid;
  gap: 8px;
}

.promo-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  border: 2px dashed var(--ink);
  text-align: left;
}

.promo-card b {
  font: 900 17px var(--display);
  letter-spacing: 0.04em;
}

.promo-card span {
  font-weight: 800;
  color: var(--red);
}

.promo-card small {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.sum-row.disc {
  color: var(--green);
}

.tags + .tags {
  margin-top: 5px;
}

.tag.hot {
  gap: 4px;
}

/* ---------- хиты меню с фото ---------- */
.hits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hit-card {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 12px;
  border-radius: 22px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--hard);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.hit-card:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.hit-card.off {
  opacity: 0.5;
  cursor: default;
}

.hit-img {
  position: relative;
  margin: -2px -2px 6px;
}

.hit-img img {
  display: block;
  width: 100%;
  aspect-ratio: 640 / 520;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hit-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font: 800 10px var(--display);
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
}

.hit-card b {
  font: 800 14px/1.15 var(--display);
  letter-spacing: -0.01em;
}

.hit-card small {
  display: block;
  margin: 4px 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
}

.hit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.hit-row .p {
  font: 900 16px var(--display);
  color: var(--red);
}

.hit-row .add-btn {
  width: 36px;
  height: 36px;
}

.opt.dish img {
  aspect-ratio: 640 / 520;
  object-fit: contain;
}

/* ---------- повтор заказа ---------- */
.repeat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: var(--hard);
}

.repeat-card img {
  width: 58px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex: none;
}

.repeat-card > div {
  flex: 1;
  min-width: 0;
}

.repeat-card b {
  display: block;
  font: 800 14px var(--display);
}

.repeat-card small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.repeat-card .btn {
  min-height: 44px;
  width: 48px;
  padding: 0;
  flex: none;
}

.repeat-top {
  margin-top: 14px;
  min-height: 48px;
}

.order-row {
  cursor: pointer;
}

.mini-repeat {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  border-radius: 12px;
  background: var(--gold);
  border: 2px solid var(--ink);
  flex: none;
}

.mini-repeat svg {
  width: 18px;
  height: 18px;
}

/* ---------- лояльность и друзья ---------- */
.loyal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 2px dashed var(--ink);
}

.loyal b {
  display: block;
  font: 800 13px/1.2 var(--display);
}

.loyal small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}

.stamps {
  display: flex;
  gap: 4px;
  flex: none;
}

.stamps i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
}

.stamps i.on {
  background: var(--green);
  border-color: var(--green);
}

.stamps i.gift {
  border-color: var(--red);
  background: #ffe1dc;
  font-size: 12px;
}

.ref-card {
  display: grid;
  gap: 6px;
  margin: 14px 0 4px;
  padding: 14px;
  border-radius: 18px;
  background: var(--gold);
  border: 2px solid var(--ink);
}

.ref-card b {
  font: 800 16px var(--display);
}

.ref-card small {
  font-size: 12.5px;
  font-weight: 600;
}

.ref-card .btn {
  margin-top: 6px;
  min-height: 44px;
  font-size: 13px;
}

/* ---------- самовывоз, подарки, СБП «скоро» ---------- */
.chips.eat {
  margin-top: 12px;
}

.pay-opt.soon {
  position: relative;
  opacity: 0.6;
  cursor: not-allowed;
  border-style: dashed;
}

.soon-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--gold);
  font: 800 10px var(--display);
  text-transform: uppercase;
}

.sum-row.gift {
  color: var(--red-d);
}

.gift-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  font-size: 26px;
  flex: none;
}

[hidden] {
  display: none !important;
}


/* ---------- часы работы ---------- */
.closed-card {
  display: grid;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--hard);
}
.cc-art {
  position: relative;
  width: 86px;
  flex: none;
  align-self: flex-end;
  margin: -4px 0 -12px -6px;
}
.cc-art .mascot {
  width: 100%;
  filter: saturate(0.85) brightness(0.92);
}
.cc-art .mascot .steam {
  display: none;
}
/* сонное «z z z» над маскотом */
.zzz {
  position: absolute;
  top: -6px;
  right: -2px;
  font: 900 15px var(--display);
  color: var(--gold);
  pointer-events: none;
}
.zzz i {
  position: absolute;
  font-style: normal;
  opacity: 0;
  animation: zzz 2.4s ease-in infinite;
}
.zzz i:nth-child(2) {
  animation-delay: 0.8s;
  font-size: 12px;
}
.zzz i:nth-child(3) {
  animation-delay: 1.6s;
  font-size: 10px;
}
@keyframes zzz {
  0% {
    transform: translate(0, 10px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translate(14px, -18px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zzz i {
    animation: none;
    opacity: 1;
  }
}
.cc-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
/* Кнопки под текстом на всю ширину карточки: одинаковые, подпись в одну строку */
.cc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.closed-card .cc-acts {
  display: grid;
  gap: 8px;
  margin: 0;
}
.cc-acts .btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}
.btn-ghost-d {
  background: transparent;
  color: var(--gold);
  border-color: rgba(255, 201, 51, 0.5) !important;
}
.pre-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: #22284a;
  color: #f1edff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.pre-slots {
  margin-top: 10px;
}
.moon {
  font-size: 40px;
  margin-top: 6px;
}
.call-sheet {
  display: grid;
  gap: 12px;
  text-align: center;
  padding: 6px 0 12px;
}
.call-num {
  font: 900 26px var(--display);
  letter-spacing: -0.01em;
  user-select: all;
}
.call-sheet p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.call-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.call-acts .btn {
  min-width: 0;
  padding: 0 10px;
  font-size: 13.5px;
}
.call-acts a.btn {
  text-decoration: none;
}
.chat-who {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.chat-who b {
  font-size: 13.5px;
}
.via-tg {
  color: var(--ink-3);
}
.cmsg .media {
  font-style: normal;
  opacity: 0.8;
}
.closed-card .cc-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.closed-card b {
  font: 800 16px var(--display);
  color: var(--gold);
}
.closed-card small {
  font-size: 12.5px;
  line-height: 1.35;
  opacity: 0.9;
}
.closed-card .btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12.5px;
  border-color: var(--gold);
  box-shadow: none;
}
.closed-ok {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
}
.countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 4px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff4d1;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.countdown b {
  display: block;
  font: 800 13.5px var(--display);
}
.countdown small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.cd-time {
  font: 900 24px var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown.hot {
  background: var(--red);
  color: #fff;
}
.countdown.hot small {
  color: #ffe3dc;
}
.countdown.hot .cd-time {
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

/* ---------- корзина: очистка, поля с крестиком ---------- */
.clear-cart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.clear-cart svg {
  width: 18px;
  height: 18px;
}
.clear-cart:active {
  background: var(--paper-2);
}
.input-wrap {
  position: relative;
}
.input-wrap .input {
  padding-right: 44px;
}
.clear-x {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
}
.clear-x:active {
  background: var(--line-2);
}
.input:placeholder-shown + .clear-x {
  display: none;
}
.field label > span {
  display: block;
  margin: 0 0 6px 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.field-hint {
  margin: 6px 2px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.sug-head {
  padding: 8px 12px 4px;
  border-top: 1.5px dashed var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sug-head:first-child {
  border-top: 0;
}
.sug button small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}
.sug button svg[class] {
  color: var(--red);
}
.sug .sug-map {
  color: var(--red-d);
  font-weight: 800;
}
.geo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.geo-row .btn {
  padding: 0 10px;
  font-size: 12.5px;
}
.geo-set {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #e2f4e9;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}
.geo-set span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.geo-set svg {
  width: 18px;
  height: 18px;
}
.geo-set .link-btn {
  color: var(--green);
}
.add-phone2 {
  margin: 10px 2px 0;
}
.via-q {
  margin: 16px 2px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.chips.via .chip {
  font-size: 13px;
}

/* ---------- карта с пином ---------- */
.map-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.map-sheet header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.map-sheet header b {
  display: block;
  font: 800 16px var(--display);
}
.map-sheet header small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.map-box {
  position: relative;
  flex: 1;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
#map {
  position: absolute;
  inset: 0;
  background: #e9e4d8;
}
.map-loading {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--ink-2);
}
.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 500;
  width: 46px;
  height: 46px;
  margin: -44px 0 0 -23px;
  color: var(--red);
  pointer-events: none;
  filter: drop-shadow(0 3px 0 rgba(42, 29, 22, 0.35));
  transition: transform 0.15s;
}
.map-pin svg {
  width: 46px;
  height: 46px;
}
.map-pin svg path {
  fill: var(--red);
  stroke: var(--ink);
}
.map-pin svg circle {
  fill: #fff;
}
.map-pin.lift {
  transform: translateY(-10px);
}
.map-me {
  position: absolute;
  right: 12px;
  bottom: 16px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.map-me svg {
  width: 18px;
  height: 18px;
  color: var(--red);
}
.map-sheet footer {
  padding: 12px 16px calc(14px + var(--safe-b));
}
.map-addr {
  margin: 0 0 10px;
  min-height: 2.6em;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

/* ---------- отзыв и Instagram ---------- */
.review-card {
  margin-top: 14px;
}
.tags-q {
  margin: 0 0 10px;
  font: 800 14px var(--display);
}
.review-tags .chip {
  font-size: 13px;
}
.review-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.review-note textarea.input {
  min-height: 60px;
}
.center {
  text-align: center;
}
.ig-card {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--r);
  background: linear-gradient(135deg, #fff1d6, #ffe0ec);
  border: 2px solid var(--ink);
  box-shadow: var(--hard);
}
.ig-card summary {
  list-style: none;
  cursor: pointer;
}
.ig-card summary::-webkit-details-marker {
  display: none;
}
.ig-card b {
  display: block;
  font: 800 15px var(--display);
}
.ig-card small {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
}
.ig-card .input {
  margin-top: 10px;
}
.ig-card .btn {
  margin-top: 12px;
}

/* ---------- мои заказы: подписка и чат ---------- */
.subs-row,
.chat-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  text-align: left;
  cursor: pointer;
}
.subs-row span,
.chat-row span {
  flex: 1;
  min-width: 0;
}
.subs-row b,
.chat-row b {
  display: block;
  font: 800 14px var(--display);
}
.subs-row small,
.chat-row small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.chat-row > svg {
  width: 26px;
  height: 26px;
  color: var(--red);
}
.badge-n {
  flex: none !important;
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.subs-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.subs-row .sw {
  flex: none;
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  background: var(--line-2);
  border: 2px solid var(--ink);
  transition: background 0.2s;
}
.subs-row .sw::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  transition: transform 0.2s;
}
.subs-row input:checked + .sw {
  background: var(--green-l);
}
.subs-row input:checked + .sw::after {
  transform: translateX(18px);
}

/* ---------- чат с кафе ---------- */
.chat-note {
  margin: 4px 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: center;
}
.chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}
.cmsg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}
.cmsg .bubble {
  padding: 10px 13px;
  border-radius: 18px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  word-wrap: break-word;
}
.cmsg small {
  margin: 3px 8px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}
.cmsg.in {
  align-self: flex-end;
  align-items: flex-end;
}
.cmsg.in .bubble {
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}
.cmsg.out .bubble {
  background: var(--card);
  border: 2px solid var(--ink);
  border-bottom-left-radius: 6px;
}
.chat-empty .mascot {
  width: 160px;
  margin: 0 auto;
}
.chat-empty p {
  font-weight: 600;
  color: var(--ink-2);
}
.chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 488px;
  margin: 0 auto;
}
.chat-compose textarea.input {
  flex: 1;
  min-height: 46px;
  max-height: 140px;
  padding: 11px 14px;
  resize: none;
}
.chat-compose .btn {
  flex: none;
  width: 52px;
  min-height: 46px;
  padding: 0;
}
.send-i {
  transform: rotate(180deg);
}

/* ---------- заглушка для картинки ---------- */
img.img-ph {
  object-fit: contain !important;
  background: var(--paper-2);
}
.mascot.mini img {
  display: block;
  width: 100%;
}

a.icon-btn {
  color: var(--ink);
}
.leaflet-container {
  font-family: var(--body);
}

/* ---------- подарок в составе заказа: цена зачёркнута «маркером» ---------- */
.gift-line .t {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.gift-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2f4e9;
  color: var(--green);
  font: 800 11px var(--body);
}
.gift-price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.gift-price b {
  color: var(--green);
}
.brush {
  position: relative;
  text-decoration: none;
  color: var(--ink-3);
  font-weight: 700;
}
/* мазок кистью: тонкий слева, широкий справа, чуть наискосок */
.brush::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -8px;
  top: 50%;
  height: 16px;
  transform: translateY(-50%) rotate(-8deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M1 16.8 C28 15.6 62 12.2 118 4.2 L119 12.6 C86 15.4 46 17.8 2 18.2 Z' fill='%23E2231A'/%3E%3Cpath d='M20 16.2 C55 13.6 85 10.6 116 6.4' stroke='%23FF6A50' stroke-width='1.2' fill='none' opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.time-slots {
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.time-slots .chip {
  flex: none;
  font-variant-numeric: tabular-nums;
}

/* ---------- «Мои заказы»: вкладки, плитки промокодов ---------- */
.tabs2 {
  margin: 4px 0 14px;
}
.tabs2 button {
  flex-direction: row;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  font: 800 14px var(--display);
}
.tabs2 button svg {
  width: 18px;
  height: 18px;
}
.tabs2 em {
  font-style: normal;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: 800 11px var(--body);
}
.promo-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.promo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 118px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 2px dashed var(--ink);
  text-align: left;
  overflow: hidden;
}
.promo-tile.gift {
  background: #fff4d1;
}
.promo-tile .pt-what {
  font: 800 15px/1.2 var(--display);
  color: var(--red);
}
.promo-tile b {
  font: 800 13px var(--display);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.promo-tile small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.3;
}
.promo-tile .pt-use {
  margin-top: auto;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font: 800 11.5px var(--body);
}
.ref-card.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.ref-card.compact > div {
  flex: 1;
  min-width: 0;
}
.ref-card.compact small {
  display: block;
  margin-top: 3px;
}
.ref-card.compact .btn {
  flex: none;
  min-height: 42px;
  padding: 0 14px;
  font-size: 13px;
}
.promo-on + .promo-on {
  margin-top: 8px;
}
.promo-on.gift {
  background: #fff4d1;
}
.promo-on + .input-row {
  margin-top: 12px;
}
/* ---------- колокольчик «сообщить, когда появится» ---------- */
.opt.is-off {
  position: relative;
  opacity: 1;
  filter: none;
}
.opt.is-off img {
  filter: grayscale(1);
  opacity: 0.55;
}
.bell-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  font: 800 11.5px var(--body);
  white-space: nowrap;
}
.bell-btn.on {
  background: var(--gold);
}
.ig-plat {
  margin: 10px 0 6px;
}
.ig-how {
  display: block;
  margin-bottom: 4px;
}
.cc-top .cc-art {
  align-self: center;
  margin: -4px 0 0 -6px;
}

/* Колокольчик на позиции из стопа */
.watch-slot {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
}
.opt.is-off {
  cursor: pointer;
}
.bell-btn.compact {
  padding: 3px 8px;
  font-size: 13px;
}
.chip.chip-off {
  border-style: dashed;
}
.chip.chip-off s {
  text-decoration-thickness: 1.5px;
}
.chip.chip-off em {
  color: var(--gold);
}

/* Ярлык на экран телефона */
.hs-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px 36px 12px 14px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--hard);
}
.hs-ic {
  font-size: 28px;
}
.hs-card b {
  display: block;
  font: 800 14px var(--display);
  color: var(--gold);
}
.hs-card small {
  font-size: 12.5px;
  opacity: 0.9;
}
.hs-card > div {
  flex: 1;
  min-width: 0;
}
.hs-card .btn {
  min-height: 36px;
  padding: 0 14px;
  flex: none;
}
.hs-x {
  position: absolute;
  top: 6px;
  right: 8px;
  padding: 2px 6px;
  color: var(--paper);
  opacity: 0.6;
  font-size: 13px;
}
.made-by {
  display: flex;
  align-items: center;
  gap: 6px;
  /* по центру свободного места под меню: сверху столько же, сколько снизу (отступ экрана + зона жестов iPhone).
     Без корзины оба отступа меньше на четверть, с корзиной на треть: там зона жестов уже внутри самой кнопки */
  --gap: calc(16px + var(--safe-b));
  margin: calc(var(--gap) * 0.75) auto calc(var(--gap) * -0.25);
  padding: 4px 10px;
  font: 600 12.5px var(--body);
  color: var(--ink-3, #a08f80);
}
.has-bar .made-by {
  margin: calc(var(--gap) * 2 / 3) auto calc(var(--gap) / -3);
}
.made-by img {
  flex: none;
  border-radius: 4px;
}
.made-by b {
  font-weight: 800;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- эффекты: вспышка заказа, монетки, купюры ---------- */
.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
  perspective: 600px;
}
.fx-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 24px rgba(255, 201, 51, 0.7);
}
.fx-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.fx-emoji {
  position: absolute;
  font-size: 44px;
  line-height: 1;
}
.fx-coin {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1b0, #ffc933 45%, #d99a0b);
  border: 2px solid #b37a00;
  color: #7a4d00;
  font: 900 16px var(--display);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.fx-bill {
  position: absolute;
  display: grid;
  place-items: center;
  width: 74px;
  height: 36px;
  border-radius: 5px;
  background: linear-gradient(135deg, #7fd3a0, #3aa55c 60%, #2d8a4b);
  border: 2px solid #1f6b3b;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.fx-bill span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: #1f5a33;
  font: 900 13px var(--display);
}

/* ---------- гид «сторис и отзывы» ---------- */
.sg-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 14px;
  padding: 12px;
  border-radius: 20px;
  background: var(--red);
  color: var(--paper);
  box-shadow: var(--hard);
}
.sg-hero img {
  width: 74px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--paper);
  transform: rotate(-4deg);
  flex: none;
}
.sg-hero b {
  display: block;
  font: 900 17px var(--display);
  color: var(--gold);
}
.sg-hero small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.sg-seg {
  margin-bottom: 12px;
}
.sg-seg button {
  flex-direction: row;
  justify-content: center;
  min-height: 42px;
  font: 800 14px var(--display);
}
.sg-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.sg-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card, #fffdf7);
  border: 2px solid var(--ink);
  animation: sg-in 0.25s ease-out both;
}
.sg-step:nth-child(2) {
  animation-delay: 0.05s;
}
.sg-step:nth-child(3) {
  animation-delay: 0.1s;
}
.sg-step:nth-child(4) {
  animation-delay: 0.15s;
}
.sg-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--gold);
  font: 900 15px var(--display);
  box-shadow: 2px 2px 0 var(--ink);
}
.sg-step b {
  font: 800 15px var(--display);
}
.sg-step p {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
}
.sg-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.sg-acts .btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}
.sg-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.sg-tips ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}
.sg-link {
  display: block;
  margin: 8px 0 2px;
  font-weight: 800;
}
@keyframes sg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- маршрут до заведения (самовывоз) ---------- */
.route-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--r);
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: var(--hard);
}
.route-where b {
  display: block;
  font-weight: 800;
}
.route-where small {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-weight: 600;
}
.route-btn {
  width: 100%;
}
.route-btn {
  gap: 8px;
}
.route-btn .nv {
  width: 22px;
  height: 22px;
  flex: none;
}
.nav-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3, #a08f80);
}
.nav-ic {
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-ic .nv {
  display: block;
  width: 32px;
  height: 32px;
}

/* карта: пока плитки грузятся, фон цвета суши OSM вместо узора приложения */
.leaflet-container {
  background: #f2efe9;
}

.sg-back {
  display: inline-block;
  margin: 0 0 10px;
  font-weight: 800;
}

/* логотип картинкой */
.logo.logo-img {
  transform: rotate(-3deg);
}
.logo.logo-img img {
  display: block;
  height: 42px;
  width: auto;
}
.loader .logo.logo-img img {
  height: 64px;
}

/* картинка маскота под статус: во всю высоту карточки, прижата к правому нижнему углу */
.status-hero .mascot.st-art {
  right: 0;
  bottom: 0;
  width: auto;
  max-width: 50%;
  height: 158px;
}
.status-hero .mascot.st-art img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right bottom;
}
.status-hero > :not(.mascot) {
  position: relative;
  z-index: 1;
  max-width: 64%;
}
.status-hero.s-cancelled .mascot.st-art {
  filter: grayscale(0.35);
}
.drinks-head .mascot.st-art img,
.empty .mascot.st-art img,
.cc-art .mascot.st-art img {
  width: 100%;
  height: auto;
}

/* длинные заголовки статуса («Ждём подтверждения», предзаказ): мельче, чтобы не наезжать на картинку */
.status-hero.s-new h2,
.status-hero.s-scheduled h2 {
  font-size: 21px;
}
.status-hero.s-new .mascot.st-art,
.status-hero.s-scheduled .mascot.st-art {
  max-width: 44%;
}

/* узор из значков заказа на фоне карточки статуса */
.status-hero .op {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  color: #fff;
  opacity: 0.24;
  pointer-events: none;
}
.status-hero.s-new .op,
.status-hero.s-scheduled .op,
.status-hero.s-done .op,
.status-hero.s-cancelled .op {
  color: var(--ink);
  opacity: 0.11;
}
/* подложка под строку времени: текст читается, даже если рядом картинка */
.status-hero p {
  display: block;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(42, 29, 22, 0.22);
}
.status-hero.s-new p,
.status-hero.s-scheduled p,
.status-hero.s-done p,
.status-hero.s-cancelled p {
  background: rgba(255, 255, 255, 0.6);
}

/* «z z z» над шляпой слева: справа у новой картинки луна, а рядом заголовок карточки */
.cc-art .zzz {
  right: auto;
  left: 6px;
  top: -14px;
}

/* Твои данные: уведомление о данных, права гостя и удаление */
.privacy {
  display: grid;
  gap: 12px;
  padding: 4px 16px 32px;
}
.privacy .card {
  padding: 14px 16px;
}
.privacy h3 {
  margin: 0 0 4px;
  font: 800 15px var(--display);
}
.privacy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.forget-ask {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}
.forget-ask .row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.forget-ask .err {
  color: var(--red);
  font-weight: 700;
}
/* строчка согласия под кнопкой «Оформить» */
.bar .consent {
  max-width: 488px;
  margin: 6px auto 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-2, #6f5d50);
  text-align: center;
}
.bar .consent a {
  color: inherit;
  font-weight: 700;
}
.foot a {
  color: inherit;
}

/* «Удалить мои данные»: тихая ссылка внизу экрана, не кнопка */
.link-btn {
  justify-self: center;
  margin: 8px auto 0;
  display: block;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 600 13px var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* «Мои заказы»: тёмный ползунок переезжает между вкладками, кнопки поверх него прозрачные */
.tabs2 {
  position: relative;
}
.tabs2 .thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 12px) / 2);
  border-radius: 12px;
  background: var(--ink);
  transition: transform 0.34s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.tabs2[data-tab='bonus'] .thumb {
  transform: translateX(calc(100% + 4px));
}
.tabs2 button,
.tabs2 button[aria-pressed='true'] {
  position: relative;
  z-index: 1;
  background: transparent;
  transition: color 0.3s;
}
.tabs2 button[aria-pressed='true'] {
  color: var(--gold);
}
@media (prefers-reduced-motion: reduce) {
  .tabs2 .thumb {
    transition: none;
  }
}
.quiet-link {
  margin: 22px 0 8px;
  text-align: center;
  font-size: 12.5px;
}
.quiet-link a {
  color: var(--ink-2);
  font-weight: 600;
}
/* удаление данных: три шага, «оставить» ярче, «удалить» тихой обводкой */
.forget-ask b {
  font: 800 15px var(--display);
}
.forget-ask .forget-del {
  border-color: var(--ink-2);
  color: var(--ink-2);
  font-weight: 700;
}
.forget-ask .row .btn {
  flex: 1 1 140px;
}

/* подарок от друга ждёт минимальной суммы */
.gift-hint {
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1.5px dashed var(--line, #d9c9b4);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

/* перевод в чате: оригинал под спойлером */
.cmsg details.tr-orig { margin-top: 6px; font-size: 12px; opacity: 0.75; }
.cmsg details.tr-orig summary { cursor: pointer; }

/* подарок первым гостям: выбор прямо в корзине */
.lgift { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff6dc; border: 2px solid var(--gold, #ffc933); }
.lgift-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lgift-h b { font-weight: 800; }
.lgift-h small { flex: none; padding: 2px 8px; border-radius: 99px; background: var(--ink, #2a1d16); color: var(--gold, #ffc933); font-weight: 800; font-size: 12px; }
.lgift p { margin: 6px 0 8px; font-size: 13px; color: var(--ink-2, #6f5d50); font-weight: 600; }
.lgift-ch { display: flex; flex-wrap: wrap; gap: 6px; }
.lgift-ch button { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line-2, rgba(42, 29, 22, 0.22)); background: #fff; font-weight: 700; font-size: 13.5px; color: var(--ink, #2a1d16); }
.lgift-ch button s { font-size: 11.5px; opacity: 0.5; }
.lgift-ch button.on { border-color: var(--ink, #2a1d16); background: var(--ink, #2a1d16); color: #fff; }
.lgift-ch button:disabled { opacity: 0.5; }
