@font-face {
  font-family: "Euclid Circular A";
  src: url("/fonts/EuclidCircularA-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/fonts/Manrope-var.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: #1c1c1c;
  --muted: #686868;
  --focus-ring: 2px solid var(--muted);
  --focus-on-fill: 2px solid currentColor;
  --focus-inset: -3px;
  --action: #eb3701;
  /* Обычный текст. #eb3701 на #fff — 4.13, на #f3f3f3 — 3.73, на #e7e7e7 — 3.34. */
  --action-ink: #c42c00;
  /* Белая подпись кнопки. #fff на #eb3701 — 4.13, на #dc3001 — 4.70. */
  --action-fill: #dc3001;
  --gordan-red: #eb3701;
  --cream: #f3f3f3;
  --soft: #e7e7e7;
  --white: #fff;
  --line: #dedede;
  --gordan-line: #d0d0d0;
  /* Контур поля и выключенного переключателя. #d0d0d0 на #fff — около 1.5.
     #767676 — 4.54 на #fff и 4.10 на #f3f3f3, порог компонента 3:1. */
  --field-line: #767676;
  --window-radius: 28px 0 0 28px;
  --lift: 0 8px 24px rgba(0, 0, 0, 0.12);
  --social: #f5f5f5;
  --orange: #fd6b2a;
  --shadow: 0 6px 12px rgba(0, 0, 0, 0.07);
  --dock-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
  --font: "Euclid Circular A", "Segoe UI", sans-serif;
  --display: Manrope, "Segoe UI", sans-serif;
  text-decoration-skip-ink: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

html { overflow-x: hidden; }

body {
  min-height: 100%;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
}

body.has-dock { padding-bottom: 96px; }

body {
  --support-right: 16px;
  --support-bottom: 16px;
}

body.has-dock { --support-bottom: 88px; }

body.has-cookie { --support-bottom: calc(16px + var(--cookie-space, 0px) + 16px); }

body.has-dock.has-cookie { --support-bottom: calc(88px + var(--cookie-space, 0px) + 16px); }

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

[hidden] { display: none !important; }

button { cursor: pointer; }

a { color: var(--action-ink); }

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

.icon { flex: none; }

h1 {
  margin: 8px 0 16px;
  font-size: 32px;
  line-height: 38px;
  font-weight: 400;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 32px;
}

.wrap-wide {
  width: min(1440px, 100%);
  padding: 0 28px 48px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  background: var(--white);
}

.logo { flex: none; line-height: 0; }

.logo img { width: 160px; height: auto; }

.fulfill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fulfill-desktop, .fulfill-compact { display: none; }

.fulfill-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.fulfill-icon .icon { width: 28px; height: 28px; }

.fulfill-copy { min-width: 0; }

.fulfill-line {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
}

.fulfill-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fulfill-chevron { width: 16px; height: 16px; }

.fulfill-caption { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 17px; }

.catalog-place {
  flex: none;
  inline-size: 100%;
  margin-block-end: 12px;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--cream);
}
.catalog-place .fulfill-copy { flex: 1; }
.catalog-place .fulfill-chevron { margin-inline-start: auto; }
.delivery-preorder-action { align-self: flex-start; margin-block-end: 12px; }
.fulfill-caption.has-time { color: #317043; }

.catalog-cutoff {
  flex: none;
  margin-block-end: 12px;
  padding-inline: 14px;
  font-size: 15px;
  line-height: 20px;
}
.catalog-cutoff p { margin: 0; }
.catalog-opening { display: inline-block; }
.catalog-opening time { font-weight: 600; }
.catalog-cutoff-action {
  min-block-size: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--action-ink);
  font: inherit;
  text-align: start;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
}

.cart-link { display: none; }

.login-btn,
.account-circle,
.primary,
.quiet,
.chip,
.choice,
.step {
  border: 0;
  border-radius: 999px;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 48px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 19px;
}

.login-btn > .icon { display: none; }

.account-circle {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile { position: relative; }

.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 6;
  width: 260px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--window-radius);
  box-shadow: var(--shadow);
}

.menu-pop .quiet,
.menu-pop .text-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  text-align: left;
  text-decoration: none;
}

.stage {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.chips {
  position: sticky;
  top: 64px;
  z-index: 9;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--white);
}

.chip-line {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.chip {
  flex: none;
  height: 48px;
  padding: 0 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 24px;
}

.chip.is-on { background: var(--ink); color: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .chips button:where(:hover),
  .catalog-header :is(.login-btn, .account-circle, .promo-shortcut:enabled, button.support, a.support[href]):hover {
    background-color: var(--soft);
  }
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100px;
  justify-content: center;
}

.more .chevron { width: 16px; height: 16px; }

.more.is-open .chevron,
.more.is-on .chevron { filter: brightness(0) invert(1); }

.more.is-open { background: var(--ink); color: var(--white); }

.more-pop {
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 6;
  width: 208px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--window-radius);
  box-shadow: var(--lift);
}

.more-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 24px;
}

.more-item.is-on { background: var(--ink); color: var(--white); }

.menu-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 32px;
}

.menu-col > .category { margin-top: 32px; }
.menu-col > .side-col { margin-top: 8px; padding-top: 0; padding-bottom: 8px; }
.menu-col > .side-col + .category { margin-top: 16px; }

.category > h2 {
  margin: 0 0 20px;
  font-size: 1.75rem;
  line-height: 38px;
  font-weight: 400;
}

.category { scroll-margin-top: 140px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.card {
  container-type: inline-size;
  container-name: dish;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--white);
  text-align: left;
  color: var(--ink);
}

button.card { display: flex; }

.photo {
  width: 100%;
  aspect-ratio: 250 / 220;
  height: auto;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.photo.is-empty { background: var(--cream); }

.photo.is-empty .mark {
  width: 28%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: normal;
}

.dish-name {
  display: flex;
  align-items: flex-end;
  flex: 1 1 auto;
  width: 100%;
  min-height: 44px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 22px;
}

.dish-name span {
  display: block;
  width: 100%;
  min-width: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  width: 100%;
  height: 40px;
  min-height: 40px;
  min-width: 0;
}

.price {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.arrow { width: 36px; height: 36px; flex: none; }

.arrow-plate { display: grid; flex: none; }

.card.is-photo { color: var(--white); }

.card.is-photo::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 250 / 220;
  flex: none;
}

.card.is-photo .photo {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  border-radius: 24px;
}

.card.is-photo .photo img { object-fit: cover; mix-blend-mode: normal; }

.shade {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0.82) 100%);
}

.card.is-photo .dish-name,
.card.is-photo .buy { position: relative; z-index: 1; }

.card.is-photo .dish-name {
  flex: none;
  overflow: visible;
  background-color: rgb(0 0 0 / 0.62);
  box-shadow: 0 4px 0 rgb(0 0 0 / 0.62);
}

.card.is-photo .dish-name::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 28px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0));
  pointer-events: none;
}

.sticker {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.card.is-ended {
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default;
}

.card.is-ended .photo img {
  opacity: 0.45;
  filter: grayscale(1);
}

.card.is-ended .dish-name {
  align-items: flex-start;
  color: var(--muted);
}

.stock-actions { width: 100%; }

.stock-wish {
  width: 100%;
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(0.8125rem, 8cqi, 1.125rem);
  line-height: 1.2;
  text-align: center;
}

.stock-wish[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
}

.side-col { min-width: 0; padding: 8px 0 16px; }

.promo {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
}

.promo-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 905 / 1280;
  border-radius: 28px;
}

.promo-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  border-radius: 28px;
}

.promo-track::-webkit-scrollbar { display: none; }

.promo-track.is-single {
  overflow: hidden;
  scroll-snap-type: none;
}

.promo-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.promo-hit {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  line-height: 0;
  appearance: none;
  cursor: pointer;
}

/* Внутренняя тень лежит поверх фото, а область нажатия сохраняет свой размер. */
@media (max-width: 719px) and (pointer: coarse), (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  button.promo-hit { position: relative; overflow: hidden; }
  :is(button.card, button.promo-hit)::after { content: ""; }
}
button.cart-offer::after { content: ""; }
:is(button.card, button.promo-hit, button.cart-offer)::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(44 20 12 / 12%),
              inset 0 2px 9px rgb(44 20 12 / 14%),
              inset 0 0 18px rgb(44 20 12 / 6%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 719px) and (pointer: coarse) {
  :is(button.card, button.promo-hit, button.cart-offer)::after { background: rgb(44 20 12 / 4%); }
  :is(button.card, button.promo-hit, button.cart-offer).is-touch-pressed::after { opacity: .8; }
  @media (prefers-reduced-motion: no-preference) {
    :is(button.card, button.promo-hit, button.cart-offer).is-touch-pressed::after { transition: opacity 65ms ease-out; }
  }
}

@media (hover: hover) and (pointer: fine) {
  :is(button.card, button.promo-hit, button.cart-offer):is(:hover, :focus-visible)::after { opacity: .72; }
  :is(button.card, button.promo-hit, button.cart-offer):active::after { opacity: 1; }
  .arrow-plate { border-radius: 50%; }
  :is(button.cart-offer, button.card):is(:hover, :focus-visible) .arrow-plate {
    background-color: var(--arrow-hover-bg, transparent);
  }
  @media (prefers-reduced-motion: no-preference) {
    :is(button.card, button.promo-hit, button.cart-offer)::after { transition: opacity 150ms ease-out; }
    .arrow-plate { transition: background-color 150ms ease-out, translate 150ms ease-out; }
    :is(button.cart-offer, button.card):is(:hover, :focus-visible) .arrow-plate { translate: var(--arrow-shift, none); }
  }
}

.promo-arrow { display: none; }

@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  button.card { --arrow-hover-bg: var(--soft); --arrow-shift: 2px; }
  button.card.is-photo { --arrow-hover-bg: rgb(44 20 12 / 62%); }
  .promo-arrow {
    display: block;
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgb(44 20 12 / 72%);
    color: #fff;
    opacity: 0;
    pointer-events: none;
  }
  button.promo-hit:is(:hover, :focus-visible) .promo-arrow { opacity: 1; }

  @media (prefers-reduced-motion: no-preference) {
    .promo-arrow { transition: opacity 150ms ease-out; }
  }
}

.promo-hit.is-static { cursor: default; }

.promo-photo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
}

.promo-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.promo-copy { display: none; }

.promo-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

.promo-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.promo-dot::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.promo-dot.is-on {
  width: 22px;
  background: var(--gordan-red);
}

button.promo-dot.is-on {
  background: rgba(235, 55, 1, 0.25);
}

.promo-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gordan-red);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.promo-dot:not(.is-on) .promo-fill { visibility: hidden; }

.promo-fill.is-meter {
  animation-name: promo-meter;
  animation-duration: var(--promo-interval, 8s);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.promo.is-paused .promo-fill,
body:has(dialog:modal, .cart-drawer) .promo .promo-fill { animation-play-state: paused; }

@keyframes promo-meter {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-dot.is-on .promo-fill {
    transform: scaleX(1);
    animation: none !important;
  }
}

@media (max-width: 1099px) {
  .promo-frame { aspect-ratio: auto; height: 240px; }
  .promo-photo { object-position: var(--promo-focus, center top); }
}

/* Телефон: живой заголовок слева, фото блюда справа. С 720 px снова плакат. */
@media (max-width: 719px) {
  .promo-frame { height: 188px; }
  .promo-dots { margin-top: 8px; }
  .chip-line {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 20px), transparent);
  }
  .promo-hit.promo-art {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    height: 100%;
    overflow: hidden;
    background: var(--promo-art, #c4110b);
    color: #fff;
  }
  .promo-art-giros {
    --promo-art: #c4110b;
    grid-template-columns: minmax(8.75rem, 0.92fr) minmax(0, 1.08fr);
  }
  .promo-art-danger {
    --promo-art: #2d1e1a;
    grid-template-columns: minmax(9.25rem, 1.08fr) minmax(6.5rem, 0.92fr);
  }
  .promo-art .promo-copy {
    container: copy / inline-size;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 100%;
    padding: 16px 8px 18px 14px;
    position: relative;
    z-index: 1;
    line-height: normal;
  }
  .promo-art .promo-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.375rem, 22cqi, 2.75rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
  }
  .promo-art-danger .promo-title {
    font-size: clamp(1.1875rem, 14cqi, 2.625rem);
  }
  .promo-line { display: block; white-space: nowrap; }
  .promo-note {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(0.8125rem, 7.2cqi, 1.125rem);
    line-height: 1.25;
    text-wrap: pretty;
  }
  .promo-art-giros .promo-note { max-width: 9.2em; }
  .promo-flame {
    position: absolute;
    top: 10px;
    right: 6px;
    width: 22px;
    height: 22px;
    pointer-events: none;
  }
  .promo-art .promo-picture {
    min-width: 0;
    height: 100%;
  }
  .promo-art-giros .promo-picture {
    container: dish / inline-size;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-left: 6px;
  }
  .promo-art-giros .promo-photo {
    width: auto;
    max-width: none;
    height: min(108%, calc(100cqi / 1.16));
    flex: none;
    object-fit: contain;
    object-position: left center;
  }
  .promo-art-danger .promo-picture {
    display: block;
    align-self: stretch;
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }
  /* Кадр danger-dish шире колонки: 36% 48% держит начинку в высоком кропе. */
  .promo-art-danger .promo-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 36% 48%;
    -webkit-mask-image: linear-gradient(122deg, transparent 0%, #000 20%, #000 100%);
    mask-image: linear-gradient(122deg, transparent 0%, #000 20%, #000 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  @supports (not (mask-image: linear-gradient(#000, transparent))) and (not (-webkit-mask-image: linear-gradient(#000, transparent))) {
    .promo-art-danger .promo-photo {
      -webkit-mask-image: none;
      mask-image: none;
    }
    .promo-art-danger .promo-copy::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      right: -22px;
      width: 36px;
      background: #2d1e1a;
      clip-path: polygon(0 0, 100% 0, 28% 100%, 0 100%);
      pointer-events: none;
    }
  }
}

.cookie {
  position: fixed;
  z-index: 7;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--lift);
}

body.has-dock .cookie { bottom: 88px; }

body.has-cookie { padding-bottom: calc(16px + var(--cookie-space, 0px) + 96px); }

body.has-dock.has-cookie { padding-bottom: calc(88px + var(--cookie-space, 0px) + 96px); }

.cookie p {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 19px;
}

.cookie a { color: var(--action-ink); text-decoration: underline; text-decoration-skip-ink: none; }

.cookie-accept {
  flex: none;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: 600 14px/20px var(--display);
}

@media (hover: hover) and (pointer: fine) {
  .cookie-accept:hover { background: var(--soft); }
}

.cookie-accept:active { background: var(--soft); }

.foot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 0 8px;
}

.foot-brand {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.foot-logo { width: 180px; height: auto; }

.stage > .foot {
  container: catalog-footer / inline-size;
  padding-top: 16px;
}

.catalog-foot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--action) 2%, var(--white));
}

.catalog-foot-delivery, .catalog-foot-directory {
  display: grid;
  min-width: 0;
  padding: 14px;
}

.catalog-foot-map {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.catalog-foot-card .catalog-foot-map[href]:is(:hover, :focus-visible) {
  border-color: var(--action-ink);
  color: var(--ink);
  text-decoration: none;
}
.catalog-foot-map:is(:hover, :focus-visible) .catalog-foot-map-action { text-decoration: underline; }
.catalog-foot-map-preview {
  position: relative;
  min-height: 96px;
  background: var(--soft);
}
.catalog-foot-map-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 83%;
}
@media (prefers-color-scheme: dark) {
  .catalog-foot-map-preview img { filter: brightness(.83) saturate(.82); }
}
.catalog-foot-map-pin {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d93206;
  color: #fff;
  box-shadow: 0 2px 7px #29190e42;
}
.catalog-foot-map-pin::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-block-start: -2px;
  rotate: -45deg;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle, currentColor 2px, transparent 2px);
}
.catalog-foot-map-credit {
  position: absolute;
  inset: auto 0 0 auto;
  padding: 1px 4px;
  background: #ffffffe8;
  color: #29231f;
  font-size: 9px;
}
.catalog-foot-map-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 17px;
  overflow-wrap: anywhere;
}
.catalog-foot-map-copy strong { color: var(--ink); font-size: 19px; line-height: 1.2; }
.catalog-foot-map-action {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--action-ink);
  font-weight: 700;
}
.catalog-foot-map-action::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  rotate: 45deg;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
}

.delivery-map-dialog:modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1000px, calc(100% - 48px));
  height: min(72dvh, 720px);
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--lift);
}

.delivery-map-dialog::backdrop {
  background: rgb(0 0 0 / 56%);
  overflow: hidden;
  overscroll-behavior: contain;
}

.delivery-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 20px;
  border-bottom: 1px solid var(--line);
}
.delivery-map-header h1 { margin: 0; font-size: 20px; line-height: 1.3; }
.delivery-map-close {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
}
.delivery-map-close .icon { width: 24px; height: 24px; }
.delivery-map-content { position: relative; min-height: 0; background: var(--cream); }
.delivery-map-frame { display: block; width: 100%; height: 100%; border: 0; }
.delivery-map-feedback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background: var(--cream);
}
.delivery-map-feedback p { margin: 0; }
.delivery-map-actions { display: grid; justify-items: center; gap: 12px; }
.delivery-map-actions a { color: var(--action-ink); }
.delivery-map-feedback[hidden], .delivery-map-actions[hidden] { display: none; }

@media (prefers-color-scheme: dark) {
  .delivery-map-close .icon { filter: invert(1); }
}
@media (max-width: 650px) {
  .delivery-map-dialog:modal { width: calc(100% - 16px); height: 88dvh; border-radius: 18px; }
  .delivery-map-header { padding-inline: 14px 8px; }
}

.catalog-foot-contacts { display: flex; align-items: center; gap: 10px; min-width: 0; }
.catalog-foot-flame { flex: none; }
.catalog-foot-contacts .foot-row {
  justify-content: flex-start;
  align-items: baseline;
  min-width: 0;
  gap: 2px 12px;
}
.catalog-foot-contacts :is(.phone, .mail-link) {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.catalog-foot-contacts .phone { font-size: 16px; font-weight: 700; }
.catalog-foot-contacts .mail-link { color: var(--muted); font-size: 13px; }

.catalog-foot-directory { align-content: start; gap: 10px; border-top: 1px solid var(--line); }
.catalog-foot-directory .stores { gap: 6px; }
.catalog-foot-directory .store {
  min-height: 32px;
  padding: 3px 8px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 13px;
}
.catalog-foot-directory .store .icon { width: 18px; height: 18px; }
.catalog-foot-directory .legal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  font-size: 13px;
  line-height: 17px;
}
.catalog-foot-directory .legal-row > * {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding-block: 3px;
  overflow-wrap: anywhere;
}
.catalog-foot-directory .legal-row a { color: var(--ink); }
.catalog-foot-card a:is(:hover, :focus-visible) { color: var(--action-ink); text-decoration: underline; }

.catalog-foot-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 9px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.catalog-foot-meta .foot-req { font: inherit; overflow-wrap: anywhere; }
.catalog-foot-meta .pay-mir { width: 34px; height: auto; }

@container catalog-footer (min-width: 38rem) {
  .catalog-foot-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
  .catalog-foot-delivery, .catalog-foot-directory { padding: 16px; }
  .catalog-foot-directory { border-top: 0; border-inline-start: 1px solid var(--line); }
  .catalog-foot-map { grid-template-columns: minmax(0, 1fr); }
  .catalog-foot-map-preview img { object-position: 55% 83%; }
}
@container catalog-footer (max-width: 30rem) {
  .catalog-foot-contacts .foot-row { flex-wrap: wrap; }
  .catalog-foot-meta { grid-template-columns: minmax(0, 1fr) auto; padding: 9px 14px; }
  .catalog-foot-meta .foot-req { grid-column: 1 / -1; grid-row: 2; }
  .catalog-foot-meta .pays { grid-column: 2; grid-row: 1; }
}

@container catalog-footer (max-width: 21rem) {
  .catalog-foot-delivery, .catalog-foot-directory { padding: 12px; }
  .catalog-foot-map { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .catalog-foot-map-copy { padding: 9px 10px; font-size: 12px; line-height: 16px; }
  .catalog-foot-map-copy strong { font-size: 17px; }
  .catalog-foot-directory .store {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    padding: 4px 2px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }
  .catalog-foot-directory .legal-row {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
    column-gap: 8px;
    font-size: 12px;
  }
}

.support {
  position: fixed;
  z-index: 8;
  right: var(--support-right);
  bottom: var(--support-bottom);
  width: 64px;
  height: 64px;
  margin: 0;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--dock-shadow);
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.support.is-parked {
  position: absolute;
  right: auto;
  bottom: auto;
}

.support-metrics {
  position: fixed;
  right: var(--support-right);
  bottom: var(--support-bottom);
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  visibility: hidden;
}

html:has(.chat-layer[open]) { overflow: hidden; }

.support .icon { width: 32px; height: 32px; }

.unread-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--action);
  box-shadow: 0 0 0 2px var(--white);
  flex: none;
  pointer-events: none;
}

.support .unread-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  background: var(--white);
  box-shadow: 0 0 0 2px var(--action);
}

.account-circle .unread-dot {
  position: absolute;
  top: 2px;
  right: 2px;
}

.cabinet-chat .unread-dot { margin-left: auto; }

body:has(.cart-panel, .cart-page) .support { display: none; }

.rule { height: 1px; background: var(--line); }

.foot-row,
.stores,
.socials,
.legal-row,
.pays {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.store { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }

.store:hover, .store:focus-visible { text-decoration: underline; }

.store .icon { width: 24px; height: 24px; }

.phone {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: var(--ink);
  text-decoration: none;
}

.social {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--social);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social .icon { width: 20px; height: 20px; }

.legal-row { color: var(--muted); font-size: 11px; line-height: 17px; }

.legal-row a { color: var(--muted); text-decoration: none; }

.foot-req {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.mail-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  line-height: 22px;
}

.offer-note {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.offer-note a { color: var(--action-ink); }

.pay-mir { width: 28px; height: 20px; }

.muted, .hint { margin: 4px 0 0; color: var(--muted); }

.point, .status { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

.status { color: var(--ink); }

.primary {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 24px;
  background: var(--action-fill);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  line-height: 19px;
}

.primary:disabled,
.quiet:disabled,
.step:disabled,
.choice:disabled {
  opacity: 0.45;
  cursor: default;
}

.quiet, .step {
  background: var(--cream);
  min-height: 44px;
  padding: 8px 16px;
}

.dock-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  max-width: 1120px;
  margin: 0 auto;
}

.dock {
  display: block;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--dock-shadow);
}

:is(.cart-link, .dock)[aria-disabled="true"] {
  background-color: #a95850;
}

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  background: rgba(0, 0, 0, 0.4);
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 16px 16px 28px;
  background: var(--white);
  border-radius: 28px;
}

.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sheet-kicker { margin: 0; font-size: 24px; line-height: 30px; font-weight: 400; }

.sheet-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sheet-close .icon { width: 16px; height: 16px; display: block; }

.sheet-name {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
}

.sheet-photo {
  height: 220px;
  margin-top: 12px;
  border-radius: 24px;
  background: var(--soft);
  overflow: hidden;
}

.sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.sheet-photo[data-fit="cover"] img { object-fit: cover; mix-blend-mode: normal; }

.sheet-photo[data-fit="contain"] { background: var(--cream); }

.sheet-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sheet-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sheet-head .sheet-close { display: none; }

.sheet .sheet-close .icon { width: 24px; height: 24px; }

.sheet-title {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--font);
  font-weight: 400;
  font-size: 28px;
  line-height: 34px;
  text-wrap: balance;
}

.sheet .sheet-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.sheet-scroll { min-width: 0; }

.sheet-composition {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 19px;
}


.choice {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  text-align: left;
  background: var(--soft);
}

.choices .choice { width: auto; }

.choice.is-on { background: var(--ink); color: var(--white); }

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

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.steps { display: flex; align-items: center; gap: 8px; }

.step { min-width: 44px; padding: 8px; }

.stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 136px;
  height: 44px;
  padding: 0 2px;
  border-radius: 999px;
  background: var(--soft);
  gap: 0;
}

.stepper .step {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stepper .step .icon { width: 18px; height: 18px; display: block; }

.stepper span { font-size: 16px; line-height: 22px; }

.group { margin-top: 20px; }

.group-title { margin: 0 0 8px; }

.banner {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 12px;
}

.catalog-recovery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-inline-size: calc(100% - var(--sidebar-width, 0px) - var(--column-gap, 0px));
  border-radius: 16px;
}

.catalog-recovery-copy { flex: 1 1 250px; }
.catalog-recovery h2 { margin: 0; font-size: 18px; line-height: 24px; }
.catalog-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-inline-size: 0;
}
.catalog-recovery .catalog-retry { width: auto; min-height: 44px; padding: 10px 20px; }
.catalog-retry[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.catalog-wait { margin: 12px 0; color: var(--muted); }
.catalog-wait-startup { margin: 24px 16px; text-align: center; }
body:has(.catalog-screen:not([inert]) .catalog-recovery.has-vpn-hint) > .vpn-notice { display: none; }

.stop-remove {
  min-width: 44px;
  min-height: 44px;
  margin: 4px 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  text-align: center;
}

.checkout-stops {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-stops .checkout-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--gordan-line);
}

.field { margin: 16px 0; }

.field-error {
  color: var(--action-ink);
  margin: 8px 0 0;
}

.receipt-link {
  display: inline-block;
  margin: 12px 16px 0 0;
  color: var(--action-ink);
  font-family: var(--display);
  font-weight: 600;
}

.field span, .check span { display: block; margin-bottom: 8px; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0;
}

.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--action); }

input, textarea {
  width: 100%;
  padding: 16px;
  background: var(--cream);
  border: 0;
  border-radius: 12px;
}

:is(input, textarea)::placeholder {
  color: var(--muted);
  opacity: 1;
}

textarea { min-height: 120px; resize: vertical; }

.code {
  font-size: 32px;
  letter-spacing: 0.4em;
  text-align: center;
}

.line, .panel { background: var(--white); border-radius: 24px; }

.line { padding: 16px; margin-top: 12px; }

.line-top, .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.actions { display: flex; gap: 8px; margin-top: 12px; }

.number {
  margin: 8px 0;
  font-size: 64px;
  line-height: 1;
  color: var(--action);
}

.legal { max-width: 100%; min-width: 0; }

.legal h2, .legal h3 {
  margin: 20px 0 8px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 400;
}

.legal h3 { font-size: 18px; line-height: 24px; }

.legal p { white-space: pre-wrap; overflow-wrap: anywhere; }

.legal-table-wrap {
  max-width: 100%;
  margin: 12px 0;
  overflow-x: auto;
}

.legal table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.legal th, .legal td {
  padding: 8px 12px;
  border: 1px solid var(--gordan-line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
}

.wrap.cart-page {
  --cart-dock: 140px;
  --cart-clear: 0px;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding:
    calc(64px + env(safe-area-inset-top, 0px) + var(--cart-clear) + 16px)
    16px
    calc(var(--cart-dock) + 16px + 64px + 16px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
}

.cart-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 64px;
  background: var(--white);
}

.cart-head h2 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 30px;
  font-weight: 400;
}

.cart-clear-all,
.cart-close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cart-clear-all:disabled { opacity: 0.45; }

.cart-clear-all .icon,
.cart-close .icon { width: 20px; height: 20px; display: block; }

.cart-clear-all { color: var(--action); }

.cart-clear-all .icon { overflow: visible; }

.cart-trash-lid {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}

.cart-clear-all[aria-expanded="true"] .cart-trash-lid {
  transform: rotate(-32deg);
}

.cart-clear {
  display: grid;
  grid-template-rows: 0fr;
  flex: none;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  background: var(--ink);
}

.cart-clear.is-open { grid-template-rows: 1fr; }

.cart-clear.is-open,
.cart-clear.is-animating { pointer-events: auto; }

.cart-clear-clip { min-height: 0; overflow: hidden; }

.cart-clear-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
}

.cart-clear-panel p {
  margin: 0;
  flex: 1 1 140px;
  min-width: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--white);
}

.cart-clear-yes,
.cart-clear-no {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
}

.cart-clear-yes {
  border: 0;
  background: var(--action-fill);
  color: var(--white);
}

.cart-clear-no {
  border: 1px solid rgb(255 255 255 / 72%);
  background: transparent;
  color: var(--white);
}

.cart-clear-yes:disabled,
.cart-clear-no:disabled { opacity: 0.45; }

@media (prefers-reduced-motion: no-preference) {
  .cart-clear.is-animating {
    transition: grid-template-rows 280ms cubic-bezier(.2, .64, .38, 1);
  }

  .cart-page.is-clear-animating {
    overflow-anchor: none;
    transition: padding-top 280ms cubic-bezier(.2, .64, .38, 1);
  }

  .cart-trash-lid {
    transition: transform 280ms cubic-bezier(.2, .64, .38, 1);
  }
}

.cart-page:has(.cart-clear.is-open),
.cart-page.is-clear-animating { overflow-anchor: none; }

.cart-scroll { display: flex; flex-direction: column; gap: 12px; }

.cart-place {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
}

.cart-place.is-empty { box-shadow: inset 0 0 0 1.5px var(--action); }

.cart-place-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cart-place.is-empty .cart-place-icon { background: var(--white); box-shadow: inset 0 0 0 1.5px var(--action); }

.cart-place-icon .icon { width: 24px; height: 24px; }

.cart-place-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-place-title,
.cart-place-address,
.cart-place-note {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-place-title { font-size: 16px; line-height: 22px; }

.cart-place.is-empty .cart-place-title {
  color: var(--action-ink);
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.cart-place-address,
.cart-place-note { font-size: 14px; line-height: 18px; }

.cart-place-address { color: var(--muted); }

.cart-place-note { color: var(--action-ink); }

.cart-place-chevron { width: 16px; height: 16px; flex: none; rotate: -90deg; }

.cart-foot .primary.cart-go.is-place,
.phone-total .primary.cart-go.is-place {
  height: auto;
  white-space: normal;
  text-wrap: balance;
  line-height: 18px;
}

.cart-line {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px 8px 10px;
  background: var(--white);
  border-radius: 16px;
}

.cart-body { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }

.cart-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 36px;
}

.cart-photo {
  width: 72px;
  height: 72px;
  background: transparent;
  overflow: hidden;
  flex: none;
}

.cart-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.cart-line .cart-name { margin: 0; font-size: 16px; line-height: 20px; font-weight: 400; overflow-wrap: anywhere; }

.cart-portion { margin: 0; color: var(--muted); font-size: 13px; line-height: 17px; overflow-wrap: anywhere; }

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

.mod-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 1px 6px 1px 3px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  line-height: 18px;
}

.mod-chip .mod-chip-photo { width: 24px; height: 24px; object-fit: contain; }

.cart-prices { flex: 1 1 5ch; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-inline-end: auto; }
.cart-prices > * { white-space: nowrap; }

.cart-price { font-size: 18px; line-height: 22px; }

.cart-was { color: var(--muted); font-size: 13px; line-height: 16px; }

.cart-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.cart-actions > .text-btn { margin-right: auto; }

.cart-page .cart-actions .icon-x { width: 44px; height: 44px; }

.text-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  line-height: 22px;
}

.cart-edit {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cart-edit .icon { width: 20px; height: 20px; }

.cart-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 1;
}

.icon-x {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-x .icon { width: 20px; height: 20px; }

.cart-foot {
  display: grid;
  flex-shrink: 0;
  gap: 12px;
  padding: 20px 24px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.cart-delivery-minimum {
  --minimum-accent: var(--action-ink);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 5%, transparent);
  padding: 5px 10px;
}

.cart-delivery-minimum-scale {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-delivery-minimum-scale > span:first-child { color: var(--minimum-accent); }

.cart-delivery-minimum-meter {
  appearance: none;
  display: block;
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 20%, transparent);
}

.cart-delivery-minimum-meter::-webkit-meter-bar {
  background: transparent;
  border: 0;
}

.cart-delivery-minimum-meter::-webkit-meter-optimum-value {
  background: var(--minimum-accent);
  border-radius: 99px;
}

.cart-delivery-minimum-meter::-moz-meter-bar {
  background: var(--minimum-accent);
  border-radius: 99px;
}

.cart-summary-row, .cart-foot-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

.cart-summary small { font: inherit; }
.cart-summary-row {
  align-items: baseline;
  gap: 8px;
}
.cart-summary-row::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted currentColor;
  opacity: .5;
}
.cart-saving { color: var(--action-ink); }
.cart-summary-price {
  order: 1;
  font-weight: 600;
  white-space: nowrap;
}

.cart-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 12px;
  font-size: 14px;
  line-height: 19px;
  overflow-wrap: anywhere;
}

.cart-promo p { margin: 2px 0 0; }
.cart-promo-remove {
  flex: none;
  min-height: 44px;
  padding-inline: 6px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
}

.cart-foot .primary {
  flex: 0 1 min(50%, 240px);
  width: auto;
  min-height: 60px;
  padding: 8px 24px;
  border-radius: 999px;
  font: 700 18px/1.25 var(--display);
}

.sum-row {
  flex: none;
  padding-inline-start: 4px;
}

.sum-row strong {
  display: flex;
  font: 700 32px/1.15 var(--display);
}

.cart-back {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.42);
}

dialog.points-window,
dialog.status-drawer,
.cart-panel {
  border-radius: var(--window-radius);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: clamp(440px, 31.25vw, 540px);
  background: var(--cream);
}

@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .cart-drawer:not(.cart-drawer-leaving) .cart-panel { transition: transform 220ms ease-out; }
  .cart-drawer:not(.cart-drawer-leaving) .cart-back { transition: opacity 220ms ease-out; }
  @starting-style {
    .cart-drawer:not(.cart-drawer-leaving) .cart-panel { transform: translateX(100%); }
    .cart-drawer:not(.cart-drawer-leaving) .cart-back { opacity: 0; }
  }
}

.cart-panel .cart-head { height: 80px; padding: 0 20px; background: var(--white); }

.cart-panel .cart-head h2 { text-align: left; }

.cart-panel .cart-scroll { flex: 1; overflow: auto; padding: 16px 20px 24px; }

.cart-panel .cart-line { width: 100%; padding: 10px 12px; }

.cart-panel .cart-line .cart-name { line-height: 22px; }

.cart-panel .cart-photo { width: 88px; height: 88px; }

.cart-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 12px;
  font-size: 14px;
  line-height: 20px;
}
.cart-facts h3 { margin: 0; font-size: inherit; font-weight: 500; }
.cart-nutrient { white-space: nowrap; }
.cart-nutrient strong { font-weight: 400; }
.cart-nutrient abbr { color: var(--muted); text-decoration: none; }
.cart-facts p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; }

.cart-offers h3 { margin: 8px 4px; font-size: 20px; font-weight: 400; }
.cart-shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(118px, calc((100% - 24px) / 4), 136px);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}
.cart-offer {
  position: relative;
  --arrow-hover-bg: var(--soft);
  --arrow-shift: 2px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 0 6px 8px;
  gap: 4px;
  background: var(--white);
  color: var(--ink);
  border: 0;
  border-radius: 14px;
  text-align: start;
  scroll-snap-align: start;
}
.cart-offer:focus-visible { outline-offset: -3px; }
.cart-shelf .cart-offer .cart-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1.45;
  align-self: start;
}
.cart-offer .cart-photo img { object-fit: contain; }
.cart-offer strong { grid-row: 2; font-size: 14px; line-height: 18px; font-weight: 400; hyphens: auto; overflow-wrap: anywhere; }
.cart-offer-action { grid-row: 3; display: flex; justify-content: space-between; align-items: center; gap: 2px; font-size: 15px; }
.cart-offer-action .arrow { width: 24px; height: 24px; object-fit: none; }

.cart-panel .cart-actions .icon-x { width: 36px; height: 40px; }

.cart-page .cart-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 24;
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 16px 0;
  background: var(--white);
}

.cart-page .cart-head h2 { font-size: 20px; line-height: 24px; }

.cart-page .cart-clear-all,
.cart-page .cart-close { width: 44px; height: 44px; }

.cart-page .cart-clear {
  position: fixed;
  top: calc(64px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 24;
  width: auto;
  padding: 0;
}

.cart-page .cart-scroll { gap: 16px; }

.cart-page .cart-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 24;
}

/* Draw inside the control so scrolling rows cannot clip the ring. */
:where(.primary, .dock, .cart-link, .support, .points-go, .chat-send, .cart-clear-yes,
  .cart-clear-no, .is-on, .more.is-open, .card.is-photo, .promo-hit,
  .extra-kind-option:has(:checked), .extra-meat-switch:checked) {
  --focus-ring: var(--focus-on-fill);
}

@media (forced-colors: active) {
  :root { --focus-ring: 2px solid Highlight; --focus-on-fill: 2px solid Highlight; }
}

:root[data-focus-input="pointer"] {
  --focus-ring: none;
  --focus-on-fill: none;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-inset);
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 16px;
  }
  .card { padding: 16px; }
  .dish-name {
    min-height: min(56px, 22.4cqi);
    font-size: min(1.3125rem, 8.4cqi);
    line-height: min(28px, 11.2cqi);
  }
  .buy { height: min(44px, 17.6cqi); min-height: min(44px, 17.6cqi); }
  .price { font-size: min(1.25rem, 8cqi); line-height: min(26px, 10.4cqi); }
  .arrow { width: min(44px, 17.6cqi); height: min(44px, 17.6cqi); }
}

@media (min-width: 1100px) {
  .top { height: 96px; }
  .logo img { width: 202px; height: 35px; }
  .fulfill-desktop { display: flex; flex: 1; height: 44px; overflow: hidden; }
  .top-actions { width: 392px; flex: none; margin-left: 0; justify-content: space-between; }
  .cart-link {
    display: inline-flex;
    gap: 8px;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 144px;
    flex: none;
    height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--action-fill);
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    line-height: 19px;
  }
  .cart-link .icon { width: 22px; height: 22px; }
  .cart-link.is-clearing {
    display: inline-grid;
    grid-template-areas: "face";
    align-items: center;
    justify-items: center;
  }
  .cart-link.is-clearing > .cart-clear-price,
  .cart-link.is-clearing > .cart-name { grid-area: face; }
  .chips { top: 96px; }
  .cookie,
  body.has-dock .cookie { bottom: 24px; }
  .category { scroll-margin-top: 176px; }
  .stage {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    column-gap: var(--column-gap);
    align-items: start;
  }
  .menu-col { grid-column: 1; grid-row: 1; }
  .side-col { grid-column: 2; grid-row: 1; align-self: stretch; padding-top: 24px; }
  .promo { position: sticky; top: 120px; align-self: start; }
  .promo-frame { height: 620px; aspect-ratio: auto; }
  .promo-dots {
    position: absolute;
    top: 590px;
    right: 0;
    left: 0;
    z-index: 1;
    margin: 0;
  }
  .promo-dot { background: rgba(255, 255, 255, 0.45); }
  .promo-dot.is-on,
  button.promo-dot.is-on { width: 16px; background: rgba(255, 255, 255, 0.45); }
  .promo-fill { background: var(--white); }
  body,
  body.has-dock,
  body.has-cookie,
  body.has-dock.has-cookie {
    --support-right: 24px;
    --support-bottom: 24px;
  }
  .dock-bar,
  .dock { display: none; }
  body.has-dock { padding-bottom: 0; }
  body.has-cookie,
  body.has-dock.has-cookie { padding-bottom: calc(24px + var(--cookie-space, 0px) + 16px); }
  .sheet {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    display: flex;
    width: min(1120px, calc(100% - 64px));
    height: min(680px, calc(100vh - 48px));
    transform: translate(-50%, -50%);
    padding: 24px;
    overflow: hidden;
  }
  .sheet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
    gap: 32px;
    align-items: stretch;
    width: 100%;
    min-height: 0;
  }
  .sheet-photo {
    height: 100%;
    margin-top: 0;
    border-radius: 24px;
    background: var(--cream);
  }
  .sheet-phone-bar { display: none; }
  .sheet-head .sheet-close { display: inline-flex; }
  .sheet-col { height: 100%; max-width: 480px; }
  .sheet-title { font-size: 32px; line-height: 38px; }
  .sheet-scroll { flex: 1; overflow: auto; }
  .sheet .primary { flex: none; }
  .sheet .choice { width: auto; }
  .foot-row { flex-wrap: nowrap; }
  .phone { margin-left: auto; }
}

@media (min-width: 1440px) {
  .menu-col > .category:first-of-type { margin-top: 24px; }
  .grid {
    grid-template-columns: repeat(4, 230px);
    gap: 16px;
    justify-content: start;
  }
  .card {
    width: 230px;
    min-height: 360px;
    padding: 16px;
    gap: 4px;
  }
  .photo {
    width: 198px;
    height: 220px;
    aspect-ratio: auto;
  }
  .card.is-photo::before {
    width: 198px;
    height: 220px;
    aspect-ratio: auto;
  }
  .dish-name {
    min-height: 56px;
    font-size: 1.3125rem;
    line-height: 28px;
  }
  .buy { height: 44px; min-height: 44px; }
  .price { font-size: 1.25rem; line-height: 26px; }
  .arrow { width: 44px; height: 44px; }
}

@media (max-width: 719px) {
  .wrap-wide { padding: 0 16px 32px; }
  .foot-row { align-items: flex-start; }
  .phone { margin-left: 0; }

  .top { height: 56px; gap: 8px; }
  .top .logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
  }
  .top .logo img { display: block; width: 34px; height: 34px; }
  .top .fulfill-compact { display: flex; flex: 1; min-height: 44px; }
  .fulfill-compact .fulfill-copy { max-width: 100%; }
  .fulfill-compact .fulfill-chevron { flex: none; }
  .login-btn, .account-circle { width: 44px; height: 44px; }
  .login-btn > .icon { display: block; }
  .login-btn > span { display: none; }

  .fulfill-line { font-size: 14px; line-height: 17px; }
  .fulfill-caption { margin-top: 0; font-size: 12px; line-height: 14px; }

  .chips { top: 56px; height: 56px; }
  .chip-line {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .chip-line::-webkit-scrollbar { display: none; }
  .chip {
    height: 44px;
    white-space: nowrap;
    font-family: var(--font);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 19px;
  }
  .category { scroll-margin-top: 120px; }

  .grid { gap: 12px; }
  .card {
    min-height: 272px;
    padding: 0 12px;
    gap: 4px;
  }
  .photo {
    width: calc(100% + 24px);
    max-width: none;
    height: 172px;
    margin: 0 -12px;
    aspect-ratio: auto;
  }
  .dish-name { min-height: 48px; }
  .buy { height: 44px; min-height: 44px; }
  .price { font-size: 1.125rem; line-height: 24px; }
  .arrow { width: 44px; height: 44px; }
  /* Карточка ~138px: колонка цены 62px, «от 1095 ₽» при 18px ~80px.
     16px и правый отступ 12px вмещают строку; высота .buy остаётся 44px.
     Порог ниже карточки на 390px, там цена остаётся 1.125rem. */
  @container dish (max-width: 8.75rem) {
    button.card .buy {
      width: calc(100% + 12px);
      margin-right: -12px;
    }
    button.card .price { font-size: 1rem; }
  }
  .card.is-photo { padding: 12px; }
  .card.is-photo::before {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }
  .card.is-photo .photo {
    width: auto;
    height: auto;
    margin: 0;
    aspect-ratio: auto;
  }

  .cookie { padding: 10px 12px; gap: 10px; }
  .cookie-accept { padding-inline: 12px; }
  .cookie p { font-size: 13px; line-height: 18px; }
  .cookie a { white-space: nowrap; }

  body.has-dock {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 16px);
    --support-bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 16px);
  }
  body.has-dock .cookie {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 16px);
  }
  body.has-dock.has-cookie {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 16px + var(--cookie-space, 0px) + 96px);
    --support-bottom: calc(92px + env(safe-area-inset-bottom, 0px) + 16px + var(--cookie-space, 0px) + 16px);
  }

  .dock-bar {
    left: auto;
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: max-content;
  }
  .dock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 20px;
    background: var(--gordan-red);
    color: var(--white);
    border-radius: 999px;
    box-shadow: none;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 719px) and (prefers-reduced-motion: no-preference) {
  .dock-exit {
    pointer-events: none;
    animation: dock-slide-down var(--dock-duration) cubic-bezier(.62, 0, .8, .36) var(--dock-delay) both;
  }
  .dock-enter {
    translate: 0 0;
    transition: translate var(--dock-duration) cubic-bezier(.2, .64, .38, 1) var(--dock-delay);
  }
}

@keyframes dock-slide-down {
  from { translate: 0 0; }
  to { translate: 0 calc(100% + 16px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.cart-link, a.dock).is-cart-ack {
    animation: cart-ack 320ms cubic-bezier(.34, 1.4, .64, 1) var(--cart-ack-delay, 0ms);
  }
}

@keyframes cart-ack {
  0% { scale: 1; }
  42% { scale: 1.08; }
  100% { scale: 1; }
}

.price-roll {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.price-digits {
  display: inline-flex;
  align-items: center;
}

.price-digit,
.roll-window,
.roll-cell {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.price-digit,
.roll-window {
  display: inline-block;
  width: 1ch;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

.roll-cell {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}

/* Inline span не входит в transformable elements: сдвиг ленты тогда не двигает цифры.
   Нулевой сдвиг держит слой ленты постоянным, пока кадры не уедут. */
.roll-strip {
  display: block;
  translate: 0 0;
}

.price-mark,
.price-currency {
  line-height: 1;
}

.price-currency { white-space: pre; }

.price-digits.is-fade {
  @media (prefers-reduced-motion: reduce) {
    animation-name: price-digit-fade;
    animation-duration: 0.12s;
    animation-timing-function: ease-out;
    animation-delay: var(--price-delay, 0ms);
    animation-fill-mode: both;
  }
}

@keyframes price-digit-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cart-clear-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

@media (min-width: 720px) and (max-width: 1099px) {
  a.dock.is-clearing {
    display: grid;
    grid-template-areas: "face";
    align-items: center;
    justify-items: center;
  }
  a.dock.is-clearing > .cart-clear-price,
  a.dock.is-clearing > .cart-name { grid-area: face; }
}

/* 640 мс ленты, затем 240 мс растворения. Отрицательная задержка продолжает
   тот же отсчёт после пересборки каталога. Ширину и высоту кнопки не анимируем. */
@media (prefers-reduced-motion: no-preference) {
  :is(.cart-link, a.dock).is-clearing .cart-clear-price {
    animation: cart-label-out 240ms ease-out calc(640ms + var(--cart-clear-delay, 0ms)) both;
  }
  :is(.cart-link, a.dock).is-clearing .cart-name {
    animation: cart-label-in 240ms ease-out calc(640ms + var(--cart-clear-delay, 0ms)) both;
  }
}

@keyframes cart-label-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cart-label-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.cart-link, a.dock).is-clearing .cart-name {
    animation: price-digit-fade 0.12s ease-out var(--cart-clear-delay, 0ms) both;
  }
}

@starting-style {
  @media (max-width: 719px) and (prefers-reduced-motion: no-preference) {
    .dock-enter { translate: 0 calc(100% + 16px + env(safe-area-inset-bottom, 0px)); }
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  background: rgba(0, 0, 0, 0.4);
}

.edit-window {
  position: fixed;
  z-index: 41;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: auto;
  padding: 16px;
  background: var(--white);
  border-radius: var(--window-radius);
}

dialog.points-window,
dialog.status-drawer {
  z-index: 41;
  left: auto;
  display: none;
  height: 100%;
  height: 100dvh;
  max-width: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font: inherit;
  overscroll-behavior: contain;
}

:is(dialog.points-window, dialog.status-drawer)[open] { display: flex; }

:is(dialog.points-window, dialog.status-drawer)::backdrop {
  background: rgb(0 0 0 / 42%);
  overscroll-behavior: contain;
}

html:has(:is(dialog.points-window, dialog.status-drawer)[open]) { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  :is(dialog.points-window, dialog.status-drawer)[open] { transition: transform 220ms ease-out; }
  :is(dialog.points-window, dialog.status-drawer)[open]::backdrop { transition: background-color 220ms ease-out; }
  @starting-style {
    :is(dialog.points-window, dialog.status-drawer)[open] { transform: translateX(100%); }
    :is(dialog.points-window, dialog.status-drawer)[open]::backdrop { background-color: transparent; }
  }
  :is(dialog.points-window.points-leaving, dialog.status-drawer.status-leaving) {
    transform: translateX(100%);
    transition: transform 220ms ease-out;
  }
  :is(dialog.points-window.points-leaving, dialog.status-drawer.status-leaving)::backdrop {
    background-color: transparent;
    transition: background-color 220ms ease-out;
  }
}

.points-panel,
.status-columns {
  --pane-space: 20px;
  display: grid;
  flex: 1;
  min-height: 0;
  min-width: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "map heading" "map pane";
}

dialog.points-window { width: min(100%, 960px); }

/* Карта получает размеры будущей панели ещё до открытия. Диалог остаётся inert. */
@media (min-width: 800px) {
  dialog.points-window.points-warming:not([open]) {
    display: flex;
    opacity: 0;
    pointer-events: none;
  }

  .points-warming:not([open]) .points-map[hidden] { display: block !important; }
  .points-warming:not([open]) .points-map-frame.is-pending { visibility: visible; }
}

@media (min-width: 800px) and (prefers-reduced-motion: no-preference) {
  dialog.points-window.points-warming:not([open]) { transform: translateX(100%); }
}

.points-pane {
  grid-area: pane;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 16px var(--pane-space) 0;
  background: var(--white);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 12px 80px;
}

.points-pane > * { flex-shrink: 0; }
.points-top {
  grid-area: heading;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 80px;
  padding: env(safe-area-inset-top, 0px) var(--pane-space) 0;
  background: var(--white);
}
.points-title {
  flex: 1;
  margin: 0;
  font: 600 24px/1.25 var(--display);
}
.points-city-row { display: flex; align-items: center; gap: 8px; }
.points-city {
  margin: 0;
  color: var(--muted);
  font: 600 14px/1.3 var(--display);
}
.points-back, .points-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
}
.points-back .icon, .points-close .icon { width: 22px; height: 22px; }

.point-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 16px;
  background: var(--cream);
  color: var(--muted);
  box-shadow: inset 0 0 0 2px var(--field-line);
}

.point-search-row:has(.point-search:focus-visible) { outline: var(--focus-ring); outline-offset: var(--focus-inset); }

.point-search-row svg { width: 22px; height: 22px; flex: none; }

.point-search {
  flex: 1;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  line-height: 19px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.point-search:focus,
.point-search:focus-visible {
  outline: none;
  box-shadow: none;
}

.point-search::-webkit-search-decoration,
.point-search::-webkit-search-cancel-button,
.point-search::-webkit-search-results-button,
.point-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.point-search::placeholder { color: var(--muted); opacity: 1; }

.points-locate {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.points-delivery-note, .points-location-status { margin: 0; font-size: 14px; }
.points-modes.segment {
  margin: 0;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.points-modes .segment-btn {
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.points-modes .segment-btn.is-on {
  border-bottom-color: var(--action-ink);
  background: transparent;
  color: var(--ink);
}
.points-address-book {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
}
.points-address-book .points-locate { justify-self: start; }
.points-address-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
}
.points-address-list, .points-address-history {
  display: grid;
  min-width: 0;
  padding: 2px;
}
.points-address-list:empty, .points-address-history:empty { display: none; }
.points-address-row {
  display: flex;
  align-items: center;
  align-items: safe center;
  gap: 4px;
  min-width: 0;
  padding-block: 6px;
}
.points-address-row + .points-address-row {
  border-top: 1px solid var(--line);
}
.points-address-row.is-editing .points-address-edit {
  background: var(--cream);
  color: var(--action-ink);
}
.points-address-entry {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  align-items: safe center;
  gap: 10px;
  min-width: 0;
  min-inline-size: 0;
  min-height: 48px;
  padding: 6px 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.points-address-mark {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--gordan-line);
  border-radius: 999px;
  background: var(--white);
}
.points-address-row.is-selected .points-address-mark {
  border-color: var(--action-ink);
  background: var(--action);
}
.points-address-check { width: 14px; height: 14px; display: block; }
.points-address-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  min-inline-size: 0;
}
.points-address-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  overflow-wrap: anywhere;
}
.points-address-detail {
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
.points-address-edit {
  flex: none;
  align-self: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--action-ink);
  cursor: pointer;
}
.points-address-edit .icon { width: 20px; height: 20px; display: block; }
.points-address-editor { display: grid; gap: 12px; min-width: 0; }
.points-address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.points-address-field {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}
.points-address-field-wide { grid-column: 1 / -1; }
.points-address-field textarea {
  min-height: 68px;
  resize: vertical;
}
.points-address-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.points-street-control { position: relative; }
.points-street-control input { padding-inline-end: 46px; }
.points-address-clear {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.points-address-input[aria-invalid="true"] {
  border-color: var(--action-ink);
  color: var(--action-ink);
}
.points-window[data-view="editor"][data-zone="outside"] :is(.points-location-status, .points-address-editor .points-locate) {
  display: none;
}
.points-address-suggest {
  display: grid;
  max-height: min(272px, 36dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
}
.points-address-suggest[hidden] { display: none; }
.points-address-option {
  width: 100%; min-height: 44px; padding: 8px 12px; text-align: left;
  font: inherit; color: var(--ink); background: var(--white);
  border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.points-address-group-title, .points-address-locality {
  color: var(--muted);
  font-size: 13px;
}
.points-address-group-title { padding: 8px 12px 4px; }
.points-address-locality { display: block; margin-top: 2px; }
.points-address-option:hover, .points-address-option.is-on { background: var(--soft); }
.points-address-credit {
  justify-self: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.points-map {
  position: relative;
  grid-area: map;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--cream);
  flex: none;
}

.points-map-frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--cream);
  pointer-events: auto;
}

.points-map-frame.is-pending { visibility: hidden; }

.map-locate {
  position: absolute;
  z-index: 3;
  bottom: 76px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
}

.map-locate:disabled { opacity: 0.55; cursor: default; }

.map-locate[hidden] { display: none; }

.map-locate svg { width: 22px; height: 22px; display: block; }

.map-stub { display: block; width: 100%; height: 100%; }

.map-street {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.point-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: none;
  margin: 0;
}

.points-count,
.points-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 17px;
}

.point-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 48px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.point-card.is-on {
  background: var(--soft);
  border-radius: 10px;
}

.point-card.is-soon,
.point-card:disabled {
  cursor: default;
}

.point-radio {
  display: grid;
  place-items: center;
  margin-inline-start: auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--gordan-line);
  border-radius: 999px;
  background: transparent;
  flex: none;
}

.point-card.is-on .point-radio {
  border-color: var(--action);
  background: var(--action);
}

.point-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.point-meta { display: flex; flex-wrap: wrap; column-gap: 8px; }
.point-list .points-count { margin-bottom: 4px; }

.point-address {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: var(--ink);
}

.point-brand,
.point-hours { color: var(--muted); font-size: 14px; line-height: 17px; }

.point-closed { color: var(--action-ink); font-size: 14px; line-height: 17px; }

.points-foot {
  display: grid;
  gap: 8px;
  position: sticky;
  bottom: 0;
  z-index: 1;
  flex: none;
  margin-top: auto;
  padding: 12px 0 calc(var(--pane-space) + env(safe-area-inset-bottom, 0px));
  background: var(--white);
}

.points-address-add, .points-go {
  display: block;
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--action-fill);
  color: var(--on-action, white);
  font: 600 16px/1.2 var(--display);
  cursor: pointer;
}

.points-go:disabled {
  background: var(--cream);
  color: var(--ink);
  opacity: 0.55;
  cursor: default;
}

.points-zone {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}
.points-zone[data-status="outside"], .points-zone[data-status="error"] {
  border-inline-start: 3px solid var(--action);
}
.points-zone-pickup {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
@media (max-width: 719px) {
  dialog.points-window, dialog.status-drawer { width: 100%; }
  .points-panel {
    --pane-space: 12px;
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "pane";
  }
  .points-panel > .points-map { display: none; }
  /* В фоне вид карты покрывает всю высоту будущего окна, центр при показе совпадает. */
  .points-panel > .points-map.is-warming {
    display: block;
    position: absolute;
    grid-area: pane;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .points-map.is-warming .points-map-frame { visibility: visible; }
  .points-window:is([data-new-address="true"], [data-map-picking="true"]) .points-panel {
    grid-template-rows: auto minmax(0, 32%) minmax(0, 1fr);
    grid-template-areas: "heading" "map" "pane";
  }
  .points-panel:has(.points-map-toggle[aria-expanded="true"]) {
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "heading" "map" "pane";
  }
  .points-window:is([data-new-address="true"], [data-map-picking="true"]) .points-map,
  .points-panel:has(.points-map-toggle[aria-expanded="true"]) .points-map { display: block; }
  .points-pane:has(.points-map-toggle[aria-expanded="true"]) > :not(.points-foot, .points-location-status, .points-alerts) { display: none; }
  .points-window[data-mode="pickup"] .points-foot {
    display: flex;
    align-items: stretch;
  }
  .points-foot .points-map-toggle { flex: none; }
  .points-panel .points-top { gap: 8px; }
  .points-pane .points-modes { gap: 4px; }
  .points-pane .segment-btn { min-width: 0; padding-inline: 2px; }
  .points-pane .points-address-fields { gap: 8px; }
  .points-pane .point-address { overflow-wrap: anywhere; }
  .points-top { min-height: calc(60px + env(safe-area-inset-top, 0px)); }
  .points-title { font-size: 22px; }
}

.segment { display: flex; gap: 8px; margin-top: 12px; }

.segment-btn {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.segment-btn.is-on { background: var(--ink); color: var(--white); }

.size-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

/* Односимвольный размер упирается в 72px и зону 44px. Длинное имя растит кнопку. */
.size-chip {
  display: flex;
  flex: 0 0 max-content;
  align-items: center;
  justify-content: center;
  min-inline-size: 72px;
  max-inline-size: 100%;
  min-block-size: 44px;
  padding-block: 0;
  padding-inline: 12px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.size-name {
  display: block;
  max-inline-size: 100%;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
  overflow-wrap: break-word;
}

.size-weight { color: var(--muted); font-size: 13px; line-height: 16px; }

.size-chip.is-on { background: var(--soft); border-color: var(--action); }

.size-chip:disabled { opacity: 0.55; cursor: default; }

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
}

.group-title {
  margin: 16px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
}

.group-head .group-title { margin: 0; }

.group-head .show-all { margin-top: 0; color: var(--muted); }

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.mod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 116px;
  margin: 0;
  padding: 8px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--cream);
  color: inherit;
  font: inherit;
  text-align: center;
}

button.mod-card { cursor: pointer; }

button.mod-card:disabled { opacity: 0.55; cursor: default; }

.mod-card.is-on { border-color: var(--action); background: var(--soft); }

.mod-photo {
  width: 88px;
  height: 88px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mod-price {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
}

.mod-name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 17px; }

.mod-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 16px; }

.mod-hit {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.show-all {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--action-ink);
  font: inherit;
  cursor: pointer;
}

.kbju {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.kbju b { display: block; font-family: var(--display); font-size: 16px; }

.kbju .kbju-label { color: var(--muted); font-size: 13px; }

.kbju-figure {
  display: inline-flex;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Место под самое длинное значение размеров этого блюда с первой отрисовки.
   Окно цифры уже глифа в наборе, поэтому мерка — число разрядов по 1ch.
   Запятая в Euclid занимает 0.41ch; пока дробь прокручивается, слот не сжимается. */
.kbju-figure.is-stable {
  --kbju-digits: 0;
  --kbju-comma: 0;
  display: inline-flex;
  justify-content: flex-end;
  align-items: baseline;
  vertical-align: baseline;
  white-space: nowrap;
  min-width: calc(var(--kbju-digits) * 1ch + var(--kbju-comma) * 0.41ch);
}

.kbju-figure.is-stable > .kbju-live {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.kbju-figure.is-stable .price-mark {
  display: inline-block;
  flex: 0 0 0.41ch;
  width: 0.41ch;
  min-width: 0.41ch;
  line-height: 1;
  text-align: center;
  overflow: visible;
}

.kbju-unit { white-space: pre; }

.sheet .primary { min-height: 56px; border-radius: 999px; margin-top: 20px; }

.sheet.no-photo .sheet-layout { display: block; }

.cabinet-chat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  cursor: pointer;
}

.cabinet-chat .icon { width: 24px; height: 24px; }

.cabinet-leave {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 4px;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
}

.cabinet-leave .icon { width: 20px; height: 20px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 32px;
  line-height: 38px;
}

.section-intro { display: flex; flex-direction: column; gap: 8px; }

.section-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--action-ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
}

.section-edit .icon { width: 20px; height: 20px; }

.edit-long { display: none; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 92px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--cream);
}

.profile-label { margin: 0; color: var(--muted); font-size: 14px; line-height: 17px; }

.profile-value {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.saved-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.saved-cards:empty, .card-status:empty, .account-panel-body .section-edit[hidden] { display: none; }
.saved-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--cream);
}
.saved-card .section-edit { min-height: 44px; }
.card-status { margin: 0; color: var(--muted); }
.account-address-status { margin: 0; color: var(--muted); }
.account-address-status:empty { position: absolute; }
.account-address-retry { min-height: 44px; }
.card-confirm {
  width: min(390px, calc(100% - 32px));
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: var(--window-radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--lift);
}
.card-confirm:modal { overscroll-behavior: contain; }
.card-confirm::backdrop {
  background: rgb(0 0 0 / 45%);
  overflow: hidden;
  overscroll-behavior: contain;
}
.card-confirm p { margin: 12px 0 24px; }
.card-confirm-actions { display: flex; gap: 8px; }
.card-confirm-actions button { flex: 1; width: auto; min-height: 46px; padding: 8px 12px; }

.profile-hello {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.ads-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--gordan-line);
  border-radius: 20px;
}

.ads-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.ads-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
}

.ads-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 17px; }

.ads-link {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: var(--action-ink);
  text-decoration: none;
}

.switch {
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  position: relative;
  flex: none;
  cursor: pointer;
  appearance: none;
  outline: 2px solid var(--field-line);
  outline-offset: 0;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.switch.is-on { background: var(--action); outline: none; }

.switch:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-inset);
}

.switch.is-on::after { left: 23px; }

.switch:disabled { opacity: 0.55; cursor: default; }

.edit-window .field input,
.field input {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid var(--gordan-line);
  border-radius: 16px;
  font: inherit;
}

.orders-count { margin: 0; color: var(--muted); font-size: 16px; line-height: 19px; }

.order-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--gordan-line);
  border-radius: 24px;
  background: var(--white);
}

.order-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.order-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
}

.order-when { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 17px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  line-height: 17px;
}

.status-chip .icon { width: 16px; height: 16px; }

.order-lines { display: flex; flex-direction: column; gap: 16px; }

.order-line { display: flex; align-items: center; gap: 16px; min-width: 0; }

.order-photo {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.order-photo.is-empty { background: var(--cream); }

.order-dish {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.order-flame { width: 36px; height: 36px; }

.order-copy { min-width: 0; }

.order-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
}

.order-caption { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 17px; }

.order-rule { height: 1px; background: var(--gordan-line); }

.order-where { margin: 0; color: var(--muted); font-size: 14px; line-height: 17px; }

.order-pay { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.order-pay-label { margin: 0; color: var(--muted); font-size: 12px; line-height: 14px; }

.order-pay-value {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
}

.order-receipts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.order-receipts .receipt-link {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
  text-decoration: none;
}

.order-foot { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }

.order-sum {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
}

.order-repeat { width: 100%; height: 48px; min-height: 48px; padding: 0 16px; }

.order-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 17px; }

.edit-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.edit-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
}

.edit-x {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.edit-x .icon { width: 24px; height: 24px; }

.edit-lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 19px; }

.edit-phone { margin: 0; color: var(--muted); font-size: 14px; line-height: 17px; }

.edit-mail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  height: 92px;
  margin: 0;
  padding: 16px 20px;
  border: 1px solid var(--gordan-line);
  border-radius: 16px;
  background: var(--white);
}

.edit-mail span { color: var(--muted); font-size: 14px; line-height: 17px; }

.edit-mail input {
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
}

.edit-mail input:focus { outline: none; }

.edit-mail input::placeholder { color: var(--ink); opacity: 1; }

.edit-mail:has(input:focus-visible) { outline: var(--focus-ring); outline-offset: var(--focus-inset); }
.edit-mail.is-bad { border-color: var(--action); }

.edit-window .primary { flex: none; margin-top: 0; }

.missing {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--soft);
}

.missing-title { margin: 0 0 4px; font-weight: 600; }

@media (min-width: 1100px) {
  .edit-window {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    width: 560px;
    height: auto;
    max-height: calc(100vh - 48px);
    transform: translate(-50%, -50%);
    padding: 32px;
    box-shadow: var(--lift);
  }
  .order-top { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .order-pay { flex-direction: row; align-items: center; justify-content: space-between; }
  .order-receipts { align-items: flex-end; }
  .order-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .order-repeat { width: 224px; flex: none; }
  .sheet.no-photo {
    width: min(560px, calc(100% - 64px));
    height: auto;
    max-height: min(680px, calc(100vh - 48px));
  }
  .sheet.no-photo .sheet-layout { display: block; }
  .sheet.no-photo .sheet-col { height: auto; max-width: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skel {
  position: relative;
  overflow: hidden;
  background-color: var(--soft);
  background-image: linear-gradient(100deg, var(--soft) 36%, rgba(255, 255, 255, 0.7) 50%, var(--soft) 64%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: skel-wave 1.4s ease-in-out infinite;
}

.chip.skel { padding: 0; }

.skel-title {
  display: inline-block;
  width: 220px;
  height: 32px;
  border-radius: 8px;
  vertical-align: middle;
}

.skel-lines {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.skel-lines .skel { height: 14px; border-radius: 7px; }

.skel-lines .skel:last-child { width: 68%; }

.skel-price {
  display: inline-block;
  width: 72px;
  height: 16px;
  border-radius: 8px;
  vertical-align: middle;
}

.photo.skel { border-radius: 12px; }

@media (max-width: 1099px) {
  .skel-grid > .card:nth-child(n + 5) { display: none; }
}

@keyframes skel-wave {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
}

.sheet.is-combo {
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: var(--wrap-sheet);
  color: var(--wrap-ink);
}

.sheet.is-combo .sheet-phone-bar {
  flex: none;
  min-height: 56px;
  padding: 6px 16px;
  background: transparent;
}

.sheet.is-combo .sheet-layout {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sheet.is-combo .combo-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--wrap-sheet);
  color: var(--wrap-ink);
}

.sheet.is-combo .combo-col .sheet-head { display: none; }

.sheet.is-combo .combo-col .sheet-scroll { padding: 0 16px 16px; }

.sheet.is-combo .sheet-composition {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 20px;
  color: var(--wrap-ink);
}

.combo-photo-desk { display: none; }

.combo-photo-mob {
  height: 260px;
  margin: 0 0 8px;
  border-radius: 24px;
  background: transparent;
}

.combo-title {
  margin: 2px 0 0;
  font-family: var(--font);
  font-size: 26px;
  line-height: 30px;
  font-weight: 400;
  overflow-wrap: break-word;
}

.combo-heading,
.combo-heading-mob {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.combo-heading-mob .combo-title {
  flex: 1;
  min-width: 0;
}

.combo-facts-button {
  flex: none;
  align-self: flex-start;
  position: relative;
  display: grid;
  place-items: center;
  /* Поле мыши чуть больше знака 16px. Линия заголовка 30px, центр знака на середине первой строки. */
  width: 24px;
  height: 24px;
  margin-top: 3px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--wrap-ink);
  cursor: pointer;
}

.combo-facts-glyph {
  display: block;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

@media (pointer: coarse) {
  /* 44×44, сдвинуто влево: справа у заголовка только 8px до крестика. */
  .combo-facts-button::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
  }
}

.combo-facts {
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--wrap-seg);
  color: var(--wrap-ink);
  max-height: min(52dvh, 420px, calc(100dvh - 380px));
  overflow: auto;
  overscroll-behavior: contain;
}

.combo-facts-row + .combo-facts-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--wrap-ink) 16%, transparent);
}

.combo-facts-name {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.combo-facts-size,
.combo-facts-measure,
.combo-facts-basis,
.combo-facts-line,
.combo-facts-missing,
.combo-facts-empty {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 18px;
}

.combo-facts-basis,
.combo-facts-missing,
.combo-facts-empty,
.combo-facts-measure {
  color: var(--wrap-muted);
}

.combo-facts-line {
  font-variant-numeric: tabular-nums;
}

.combo-slot {
  margin-top: 12px;
  padding: 16px;
  border: 1.5px solid transparent;
  border-radius: 20px;
  background: var(--wrap-seg);
  color: var(--wrap-ink);
  container: combo-slot / inline-size;
}

.combo-slot.is-current { border-color: var(--action); }

/* Без фото колонка не резервируется. Ряд включается, только когда миниатюра есть. */
.combo-slot-main {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.combo-slot:has(.combo-slot-photo) .combo-slot-main {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

@supports not selector(:has(*)) {
  .combo-slot.has-photo .combo-slot-main {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
}

.combo-slot-photo {
  inline-size: 60px;
  block-size: 46px;
  flex: none;
  overflow: clip;
  border-radius: 12px;
  /* Светлая подложка. Прозрачный кадр в тёмной теме сидит на --wrap-seg, не на белом прямоугольнике. */
  background: #fff;
}

.combo-slot-photo img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  mix-blend-mode: normal;
  background: transparent;
}

@media (min-width: 1100px) {
  .combo-slot-photo {
    inline-size: 84px;
    block-size: 64px;
    border-radius: 14px;
  }
}

@supports (container-type: inline-size) {
  @media (min-width: 1100px) {
    .combo-slot-photo {
      inline-size: 60px;
      block-size: 46px;
      border-radius: 12px;
    }
  }

  @container combo-slot (inline-size >= 300px) {
    .combo-slot-photo {
      inline-size: 72px;
      block-size: 54px;
    }
  }

  @container combo-slot (inline-size < 300px) {
    .combo-slot-photo {
      inline-size: 48px;
      block-size: 36px;
    }

    .combo-slot:has(.combo-slot-photo) .combo-slot-main,
    .combo-slot.has-photo .combo-slot-main {
      gap: 8px;
    }
  }

  @container combo-slot (inline-size >= 400px) {
    .combo-slot-photo {
      inline-size: 84px;
      block-size: 64px;
      border-radius: 14px;
    }
  }
}

.combo-slot-copy {
  flex: 1 1 auto;
  min-inline-size: 0;
}

.combo-slot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 8px;
  row-gap: 4px;
}

.combo-slot-name {
  flex: 1 1 4.75rem;
  min-inline-size: min(100%, 4.75rem);
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  color: var(--wrap-ink);
  overflow-wrap: break-word;
  text-wrap: balance;
}

.combo-slot-text {
  margin: 4px 0 0;
  color: var(--wrap-muted);
  font-size: 12px;
  line-height: 14px;
  text-wrap: pretty;
}

/* Описание позиции целиком на любой ширине. Длинное слово переносится и не раздвигает колонку. */
.combo-slot-text {
  min-inline-size: 0;
  overflow-wrap: break-word;
}

.combo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 0;
  margin-inline-start: auto;
  min-height: 40px;
  min-inline-size: max-content;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--action-ink);
  font: inherit;
  font-size: 14px;
  line-height: 17px;
  white-space: nowrap;
  cursor: pointer;
}

.combo-pill.is-chosen { cursor: default; }

/* «Заменить» в правом верхнем углу названия. flex-wrap ронял кнопку, когда фото сужало шапку. */
.combo-slot.is-replace .combo-slot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  min-inline-size: 0;
}

.combo-slot.is-replace .combo-slot-name {
  min-inline-size: 0;
}

.combo-slot.is-replace .combo-pill {
  margin-inline-start: 0;
  justify-self: end;
  align-self: start;
}

@media (pointer: coarse) {
  button.combo-pill {
    min-block-size: 44px;
    min-inline-size: max(44px, max-content);
  }
}

/* Только mode=edit. Две колонки не дают кнопке спрыгнуть под название.
   Ниже 380px шапка забирает всю карточку, фото остаётся рядом с весом. */
.combo-slot.is-edit .combo-slot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  min-inline-size: 0;
}

.combo-slot.is-edit .combo-slot-name {
  min-inline-size: 0;
}

.combo-slot.is-edit .combo-pill {
  margin-inline-start: 0;
  justify-self: end;
  align-self: start;
}

.combo-slot.is-edit:has(.combo-slot-photo) .combo-slot-main,
.combo-slot.is-edit.has-photo .combo-slot-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
}

.combo-slot.is-edit:has(.combo-slot-photo) .combo-slot-photo,
.combo-slot.is-edit.has-photo .combo-slot-photo {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.combo-slot.is-edit:has(.combo-slot-photo) .combo-slot-head,
.combo-slot.is-edit.has-photo .combo-slot-head {
  grid-column: 2;
  grid-row: 1;
}

.combo-slot.is-edit:has(.combo-slot-photo) .combo-slot-copy,
.combo-slot.is-edit.has-photo .combo-slot-copy {
  grid-column: 2;
  grid-row: 2;
  min-inline-size: 0;
}

@container combo-slot (inline-size < 380px) {
  .combo-slot.is-edit:has(.combo-slot-photo) .combo-slot-head,
  .combo-slot.is-edit.has-photo .combo-slot-head {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .combo-slot.is-edit:has(.combo-slot-photo) .combo-slot-photo,
  .combo-slot.is-edit.has-photo .combo-slot-photo {
    grid-column: 1;
    grid-row: 2;
  }

  .combo-slot.is-edit:has(.combo-slot-photo) .combo-slot-copy,
  .combo-slot.is-edit.has-photo .combo-slot-copy {
    grid-column: 2;
    grid-row: 2;
  }
}

@container combo-slot (inline-size < 300px) {
  .combo-slot.is-edit:has(.combo-slot-photo) .combo-slot-main,
  .combo-slot.is-edit.has-photo .combo-slot-main {
    column-gap: 8px;
  }

  .combo-slot.is-edit button.combo-pill {
    white-space: normal;
    text-wrap: balance;
    inline-size: 7.25rem;
    min-inline-size: 2.75rem;
    max-inline-size: 7.25rem;
    padding-inline: 10px;
    text-align: center;
  }
}

.combo-foot,
.swap-foot {
  flex: none;
  background: var(--white);
  padding: 12px 16px 16px;
}

.combo-foot .primary,
.swap-foot .primary { margin-top: 8px; }

.combo-price {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 29px;
}

.combo-now,
.combo-was,
.combo-save,
.swap-foot-line strong {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.combo-now { font-size: 24px; line-height: 29px; }

.combo-was {
  color: var(--muted);
  font-size: 16px;
  line-height: 19px;
  text-decoration: line-through;
}

.combo-save { color: var(--action-ink); font-size: 14px; line-height: 17px; }

.swap-pane { display: none; min-width: 0; min-height: 0; flex-direction: column; background: var(--cream); }

.swap-foot { display: none; }

.swap-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }

.swap-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
}

.swap-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 17px; }

.swap-back { font-size: 24px; line-height: 1; }

.swap-grid {
  display: grid;
  /* Две колонки до 173px. На 320px minmax сжимает обе, без горизонтальной прокрутки. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* auto оставляет ряд ниже max-content: цена четырёхстрочной плитки уезжает на 19px. */
  grid-auto-rows: max-content;
  gap: 12px;
  justify-content: start;
  align-items: stretch;
  align-content: start;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(173px * 2 + 12px + 32px);
  padding: 8px 16px 16px;
  overflow: auto;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.swap-card {
  box-sizing: border-box;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  align-items: safe center;
  gap: 8px;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 224px;
  padding: 12px;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1.5px transparent;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  font: inherit;
  white-space: normal;
}

.swap-card.is-on { box-shadow: inset 0 0 0 1.5px var(--action); }

/* UA гасит disabled целиком. Имя остаётся цветом текста, тускнеет только фото. */
.swap-card:disabled {
  opacity: 1;
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  cursor: default;
}

.swap-card:disabled .swap-photo img {
  opacity: 0.45;
  filter: saturate(0.35);
}

.swap-card:disabled .swap-delta {
  color: var(--muted);
  -webkit-text-fill-color: currentColor;
}

.swap-photo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 116px;
  overflow: hidden;
  background: var(--white);
}

.swap-photo.is-empty { background: var(--cream); }

.swap-photo img { width: 100%; height: 100%; object-fit: contain; }

.swap-name {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  flex: none;
  margin: 0;
  overflow: visible;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  white-space: normal;
  text-wrap: wrap;
  overflow-wrap: break-word;
}

.swap-delta {
  margin: 0;
  margin-top: auto;
  flex: none;
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
}

/* Euclid Circular A вшит только весом 400: 600 и 700 на нём один и тот же синтез.
   Доплата — живой Manrope 700, на шаг плотнее имени. «Выбрано» и «Нет в наличии»
   остаются на прежнем начертании. Запасной кегль подстраивается под x-height Manrope. */
.swap-card:not(:disabled) .swap-delta:not(.is-selected) {
  font-family: var(--display);
  font-weight: 700;
  font-synthesis: none;
  font-size-adjust: from-font;
}

.swap-delta.is-selected { color: var(--action-ink); }

.swap-foot-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.swap-picked { font-weight: 600; }

.swap-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 14px; }

.combo-photo-mob.is-empty,
.combo-photo-desk.is-empty {
  background: var(--cream);
}

.combo-photo-mob.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.combo-photo-desk.is-empty .mark,
.combo-photo-mob.is-empty .mark,
.swap-photo.is-empty .mark {
  width: 28%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: normal;
}

.sheet.is-combo .kbju { gap: 12px; }

.sheet.is-combo .kbju b {
  display: flex;
  align-items: baseline;
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.sheet.is-combo .kbju .kbju-label {
  font-size: 12px;
  line-height: 18px;
}

.combo-retry {
  display: block;
  margin-top: 8px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--action-ink);
  font: inherit;
  cursor: pointer;
}

.combo-price-error { margin: 0; }

@media (max-width: 1099px) {
  .sheet.is-combo.is-swap {
    height: 100dvh;
    max-height: 100dvh;
  }
  .sheet.is-swap .combo-col,
  .sheet.is-swap .combo-foot,
  .sheet.is-swap .sheet-phone-bar { display: none; }
  .sheet.is-swap .sheet-layout { flex: 1; min-width: 0; overflow: hidden; }
  .sheet.is-swap .swap-pane { display: flex; flex: 1; min-height: 0; }
  .sheet.is-swap .swap-foot {
    display: block;
    position: relative;
    z-index: 2;
    flex: none;
    background: var(--cream);
  }
}

@media (min-width: 1100px) {
  .sheet.is-combo {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(980px, calc(100vw - 48px));
    height: min(678px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    transform: translate(-50%, -50%);
    padding: 18px 16px 14px;
    background: var(--wrap-sheet);
    color: var(--wrap-ink);
  }
  .sheet.is-combo:not(.is-edit) {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: 24px;
    row-gap: 10px;
  }
  .sheet.is-combo:not(.is-edit) .sheet-layout { display: contents; }
  .sheet.is-combo .combo-photo-desk {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 480px;
    max-width: 480px;
    height: auto;
    margin: 0;
    border-radius: 24px;
    background: var(--wrap-sheet);
  }
  .sheet.is-combo .combo-photo-desk.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wrap-seg);
  }
  .sheet.is-combo .combo-photo-mob,
  .sheet.is-combo .combo-heading-mob { display: none; }
  .sheet.is-combo .combo-col {
    grid-column: 2;
    grid-row: 1;
    height: auto;
    max-width: none;
    min-height: 0;
    margin-inline-end: 0;
    background: var(--wrap-sheet);
    color: var(--wrap-ink);
  }
  .sheet.is-combo .combo-col .sheet-head {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 32px;
    margin: 0;
    padding: 0;
    background: var(--wrap-sheet);
  }
  .sheet.is-combo .combo-heading {
    flex: 1;
    padding-right: 40px;
  }
  .sheet.is-combo .combo-heading .sheet-title {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  .sheet.is-combo .combo-col .sheet-title {
    padding-right: 0;
    font-family: var(--font);
    font-weight: 400;
    font-size: 26px;
    line-height: 30px;
    overflow-wrap: break-word;
  }
  .sheet.is-combo .combo-facts {
    max-height: min(64dvh, 560px);
  }
  .sheet.is-combo:not(.is-edit) .combo-col .sheet-close {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    width: 32px;
    height: 32px;
  }
  .sheet.is-combo .combo-col .sheet-scroll { padding: 0 0 16px; }
  .sheet.is-combo .combo-foot {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
    box-shadow: none;
  }
  .sheet.is-combo .combo-foot .primary {
    height: 42px;
    min-height: 42px;
    margin: 8px 0 0;
    padding: 0 16px;
  }
  .sheet.is-swap .swap-pane {
    display: flex;
    grid-column: 1;
    grid-row: 1 / span 2;
    background: var(--wrap-sheet);
  }
  /* Три равные колонки внутри левой колонки 480px, как фотоопции шаурмы.
     minmax(0, 1fr) даёт длинному имени перенестись, а не раздвинуть окно. */
  .swap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 14px;
    width: 100%;
    max-width: none;
    padding: 4px 0 24px;
  }
  .swap-card { width: auto; height: auto; min-height: 236px; }
  .swap-photo { height: 128px; }
  .swap-head { padding: 0 0 12px; }
}

/* Окно блюда, ТЗ 18a. Комбо (.is-combo) эти правила не берут.
   Прокрутку фона не глушим через overflow html/body: это срывает sticky. */

.sheet:not(.is-combo) .sheet-title {
  font-family: var(--font);
  font-weight: 400;
}

.sheet:not(.is-combo) .group-title {
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
}

.sheet:not(.is-combo) .kbju {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
}

.sheet:not(.is-combo) .kbju > div {
  flex: 1 1 0;
  min-width: 0;
}

.sheet:not(.is-combo) .kbju b {
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
}

.sheet:not(.is-combo) .kbju .kbju-label {
  font-size: 12px;
  line-height: 18px;
}

.sheet:not(.is-combo) .size-chip { border-width: 1px; }

.sheet:not(.is-combo) .size-name {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
}

.sheet:not(.is-combo) .show-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 12px;
  line-height: 14px;
  color: var(--muted);
}

.sheet:not(.is-combo) .show-all .icon { width: 16px; height: 16px; }

.sheet .show-all .icon { rotate: 0deg; }

.sheet .show-all[aria-expanded="true"] .icon { rotate: 180deg; }

@media (prefers-reduced-motion: no-preference) {
  .sheet .show-all .icon { transition: rotate 240ms ease-out; }

  @starting-style {
    .sheet .show-all[data-turn="open"] .icon { rotate: 0deg; }
    .sheet .show-all[data-turn="close"] .icon { rotate: 180deg; }
  }
}

.sheet:not(.is-combo) .mod-grid { align-items: stretch; }

.sheet:not(.is-combo) .mod-card {
  gap: 2px;
  height: auto;
  min-height: 0;
  padding: 8px;
  border: 1.5px solid #dedede;
  background: var(--cream);
  justify-content: flex-start;
}

.sheet:not(.is-combo) .mod-card.is-on {
  background: #fff;
  border-color: var(--action);
  box-shadow: inset 0 0 0 1.5px var(--action);
}

.sheet:not(.is-combo) button.mod-card:hover:not(:disabled):not(.is-on) {
  background: var(--soft);
}

.sheet:not(.is-combo) .mod-card.is-locked,
.sheet:not(.is-combo) .mod-card.is-off { opacity: 0.4; }

.sheet:not(.is-combo) .mod-card:not(.has-photo) { justify-content: center; }

.sheet:not(.is-combo) .mod-photo {
  width: 88px;
  height: 88px;
  max-width: 100%;
  flex: none;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
}

.sheet:not(.is-combo) .mod-name {
  width: 100%;
  height: auto;
  max-height: 40px;
  flex: none;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sheet:not(.is-combo) .mod-price {
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
}

.sheet:not(.is-combo) .mod-card:not(.has-photo) .mod-name { height: auto; max-height: 40px; }

.sheet:not(.is-combo) .mod-status {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.sheet:not(.is-combo) .mod-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 18px;
}

.sheet:not(.is-combo) .mod-qty .step {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  line-height: 18px;
}

.sheet:not(.is-combo) .mod-qty span {
  min-width: 12px;
  font-size: 12px;
  line-height: 18px;
}

.sheet:not(.is-combo) .sheet-foot .primary {
  margin-top: 0;
  border-radius: 999px;
  white-space: nowrap;
}

.sheet:not(.is-combo) [data-sheet-add] :is(.sheet-action, .price-roll) {
  vertical-align: middle;
}

@media (max-width: 1099px) {
  .sheet:not(.is-combo) {
    inset: 0;
    display: flex;
    flex-direction: column;
    width: auto;
    height: 100dvh;
    max-height: none;
    padding: 0;
    overflow: hidden;
    transform: none;
  }

  .sheet:not(.is-combo) .sheet-phone-bar {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: flex-end;
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
    background: var(--white);
  }

  .sheet:not(.is-combo) .sheet-kicker {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    pointer-events: none;
  }

  .sheet:not(.is-combo) .sheet-phone-bar .sheet-close {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--cream);
  }

  .sheet:not(.is-combo) .sheet-layout {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: auto;
    padding: 0 16px 24px;
  }

  .sheet:not(.is-combo) .sheet-photo {
    flex: none;
    height: 260px;
    margin-top: 0;
    border-radius: 24px;
  }

  .sheet:not(.is-combo) .sheet-scroll { overflow: visible; }

  .sheet:not(.is-combo) .sheet-title {
    font-size: 24px;
    line-height: 29px;
  }

  .sheet:not(.is-combo) .sheet-composition {
    font-size: 14px;
    line-height: 17px;
  }

  .sheet:not(.is-combo) .group-title { line-height: 22px; }

  .sheet:not(.is-combo) .group-head {
    align-items: center;
    min-height: 44px;
  }

  .sheet:not(.is-combo) .mod-grid { gap: 8px; }

  .sheet:not(.is-combo) .mod-card {
    height: auto;
    min-height: 132px;
  }

  .sheet:not(.is-combo) .mod-photo {
    width: 96px;
    height: 96px;
    max-width: 100%;
  }

  .sheet:not(.is-combo) .mod-name {
    height: auto;
    max-height: 28px;
    font-size: 12px;
    line-height: 14px;
  }

  .sheet:not(.is-combo) .mod-card:not(.has-photo) .mod-name {
    height: auto;
    max-height: 28px;
  }

  .sheet:not(.is-combo) .sheet-foot {
    flex: none;
    min-height: 92px;
    padding: 12px 16px max(28px, env(safe-area-inset-bottom, 0px));
    background: var(--white);
    box-shadow: var(--dock-shadow);
  }

  .sheet:not(.is-combo) .sheet-foot .primary { min-height: 52px; }
}

@media (min-width: 1100px) {
  .sheet:not(.is-combo) {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(280px, 480px);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: 32px;
    row-gap: 16px;
    align-items: stretch;
    height: min(680px, calc(100vh - 48px));
    overflow: hidden;
  }

  .sheet:not(.is-combo)[data-kind="modifiers"] {
    height: min(864px, calc(100vh - 48px));
  }

  .sheet:not(.is-combo)[data-kind="modifiers"] .sheet-title {
    font-size: 28px;
    line-height: 34px;
  }

  .sheet:not(.is-combo)[data-kind="modifiers"] .sheet-composition { line-height: 22px; }

  .sheet:not(.is-combo)[data-kind="modifiers"] .sheet-head .sheet-close {
    width: 40px;
    height: 40px;
  }

  .sheet:not(.is-combo) .sheet-layout { display: contents; }

  .sheet:not(.is-combo) .sheet-photo {
    position: relative;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: hidden;
  }

  .sheet:not(.is-combo) .sheet-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .sheet:not(.is-combo) .sheet-col {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    height: 100%;
    max-width: none;
    min-height: 0;
    overflow: hidden;
  }

  .sheet:not(.is-combo) .sheet-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
  }

  .sheet:not(.is-combo) .sheet-head {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--white);
  }

  .sheet:not(.is-combo) .sheet-foot {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }

  .sheet:not(.is-combo) .sheet-foot .primary { min-height: 56px; }

  .sheet:not(.is-combo) .show-all {
    font-size: 14px;
    line-height: 20px;
  }

  .sheet:not(.is-combo) .kbju { gap: 12px; }

  .sheet.no-photo:not(.is-combo) {
    grid-template-columns: minmax(280px, 480px);
    width: min(560px, calc(100% - 64px));
    height: auto;
    max-height: min(680px, calc(100vh - 48px));
  }

  .sheet.no-photo:not(.is-combo) .sheet-col,
  .sheet.no-photo:not(.is-combo) .sheet-foot { grid-column: 1; }

  .sheet.no-photo:not(.is-combo) .sheet-col { min-height: 0; overflow: hidden; }

  .sheet.no-photo:not(.is-combo) .sheet-scroll {
    max-height: min(640px, calc(100vh - 220px));
    overflow: auto;
  }
}

@media (max-width: 359px) {
  .sheet:not(.is-combo) .kbju { gap: 4px; }
  .sheet:not(.is-combo) .kbju b { font-size: 15px; line-height: 18px; }
  .sheet:not(.is-combo) .kbju .kbju-label { font-size: 11px; line-height: 13px; }
}

/* Фокус при открытии мышью переносится в диалог без рамки. */
dialog.sheet:focus-visible { outline: none; }

dialog.sheet :focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-inset);
}

dialog.sheet.pointer-open :focus-visible { outline: none; }

.order-help {
  margin: 0 0 8px;
  border: 0;
  background: transparent;
  color: #c54500;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.chat-layer {
  --chat-edge: clamp(16px, 2vw, 32px);
  --chat-top: var(--chat-edge);
  --chat-bottom: var(--chat-edge);
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: clip;
  overscroll-behavior: contain;
}

.chat-layer::backdrop { background: rgb(0 0 0 / 72%); }
.chat-layer[data-launcher="top"] { --chat-top: calc(var(--launcher-gap) + var(--launcher-size) + 8px); }
.chat-layer[data-launcher="bottom"] { --chat-bottom: calc(var(--launcher-gap) + var(--launcher-size) + 8px); }

.chat-layer .chat-launcher {
  position: absolute;
  left: var(--launcher-left) !important;
  top: var(--launcher-gap) !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: var(--launcher-size);
  height: var(--launcher-size);
  background: var(--cream);
  color: var(--ink);
}

.chat-layer[data-launcher="bottom"] .chat-launcher {
  top: auto !important;
  bottom: var(--launcher-gap) !important;
}

.chat-panel {
  position: absolute;
  top: var(--chat-top);
  right: 0;
  bottom: var(--chat-bottom);
  width: min(484px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--window-radius);
  box-shadow: 0 16px 48px rgb(0 0 0 / 18%);
  overflow: hidden;
  font-family: var(--font);
}

@media (prefers-reduced-motion: no-preference) {
  .chat-layer[open] .chat-panel { transition: transform 220ms ease-out; }
  .chat-layer::backdrop { transition: background-color 220ms ease-out; }
  .chat-layer:is(.chat-entering, .chat-leaving) .chat-panel { transform: translateX(100%); }
  .chat-layer:is(.chat-entering, .chat-leaving)::backdrop { background-color: transparent; }
}

.chat-head {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  min-height: 80px;
  padding: 16px 64px;
}

.chat-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--action);
  display: grid;
  place-items: center;
  flex: none;
}

.chat-mark .icon { width: 22px; height: 22px; }

.chat-title {
  margin: 0;
  text-align: center;
  font: 600 18px/24px var(--font);
}

.chat-x,
.chat-tool,
.chat-send,
.chat-emoji-btn,
.chat-viewer-x,
.chat-photo-x {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.chat-x {
  position: absolute;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chat-x .icon { width: 20px; height: 20px; }

.chat-connection {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
}

.chat-connection.is-inline {
  padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px));
  background: var(--cream);
  color: var(--ink);
}

.chat-connection-text { margin: 0; font-size: 14px; line-height: 20px; }

.chat-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-stage[data-mode="loading"],
.chat-stage[data-mode="gate"] { justify-content: center; }

.chat-stage[data-mode="error"] {
  overflow: auto;
  padding: 16px max(20px, env(safe-area-inset-right, 0px))
           max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}

.chat-load-error {
  width: min(100%, 280px);
  margin: auto;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.chat-load-error-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--action) 12%, var(--white));
}

.chat-load-error-icon .icon { width: 36px; height: 36px; }

.chat-load-error-title {
  margin: 4px 0 6px;
  font: 600 22px/28px var(--font);
  text-wrap: balance;
}

.chat-support-contact {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 20px;
}

.chat-load-error a.chat-support-contact {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 4px 10px;
  font-weight: 600;
}

.chat-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-live,
.chat-connection:not(.is-inline) .chat-connection-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.chat-loading,
.chat-day {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.chat-gate {
  margin: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}

.chat-row.is-guest { justify-content: flex-end; }

.chat-row:not(.is-guest) { flex-wrap: wrap; }
.chat-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  color: var(--muted);
  font-size: 14px;
}

.chat-welcome { display: grid; gap: 10px; }
.chat-welcome .chat-day { margin-bottom: 8px; }
.chat-welcome .chat-bubble { width: fit-content; max-width: 100%; border-top-left-radius: 4px; }
.chat-topics { display: grid; justify-items: start; gap: 8px; margin-top: 12px; }
.chat-topic {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}
.chat-topic:hover { box-shadow: inset 0 0 0 1px var(--muted); }

.chat-bubble {
  position: relative;
  max-width: min(300px, 86%);
  padding: 10px 12px 22px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
}

.chat-row.is-guest .chat-bubble { background: var(--soft); }
.chat-bubble.has-photo { width: min(340px, 100%); max-width: min(340px, 100%); }
.chat-bubble.is-picked { outline: 1px solid var(--action); outline-offset: 0; }

.chat-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.chat-time {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 14px;
}

.chat-reply-btn {
  width: 24px;
  height: 24px;
  margin: 0 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  align-self: flex-end;
}

.chat-reply-btn .icon { width: 24px; height: 24px; }

.chat-quote {
  margin: 0 0 8px;
  padding: 4px 0 4px 8px;
  border-left: 3px solid var(--action);
}

.chat-quote-who,
.chat-reply-who {
  margin: 0;
  color: #c54500;
  font-size: 12px;
  font-weight: 700;
}

.chat-quote-text,
.chat-reply-text {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
}

.chat-deleted { margin: 0; color: var(--muted); font-style: italic; }

button.chat-photo {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chat-photo {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
}

.chat-file-row { margin: 0 0 6px; }

.chat-download,
.chat-retry {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  text-decoration: underline;
  cursor: pointer;
}

.chat-retry { display: block; min-height: 24px; margin: 4px 0 0 auto; }
@media (pointer: coarse) {
  .chat-retry { min-height: 44px; }
}
.chat-time.is-failed { color: #c54500; }

.chat-emoji-img { width: 1.15em; height: 1.15em; vertical-align: -0.15em; }

.chat-compose {
  flex: none;
  padding: 8px 20px 20px;
  background: var(--white);
}

.chat-reply,
.chat-attach {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-reply { border-left: 3px solid var(--action); padding-left: 8px; }

.chat-reply-copy,
.chat-attach-copy { flex: 1; min-width: 0; }

.chat-attach-name { margin: 0; font-size: 14px; font-weight: 600; }

.chat-attach-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex: none;
}

.chat-photo-x {
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-photo-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 8px;
}

.chat-photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-photo-title { margin: 0; font-size: 16px; line-height: 20px; font-weight: 600; }

.chat-photo-large {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: var(--cream);
}

.chat-photo-actions { display: flex; align-items: center; gap: 16px; }

.chat-replace {
  border: 0;
  background: var(--soft);
  color: #c54500;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
}

.chat-remove-text {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 8px 0;
}

.chat-emoji {
  flex: 1;
  min-height: 0;
  margin: 0;
  overflow: auto;
  padding: 16px;
}

.chat-emoji-title {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

.chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.chat-emoji-btn { border-radius: 8px; }
.chat-emoji-btn img { width: 28px; height: 28px; display: block; margin: 0 auto; }
.chat-emoji-btn:hover,
.chat-emoji-btn:focus-visible { background: var(--soft); }

.chat-row-input {
  padding: 4px;
  background: var(--cream);
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.chat-panel .chat-input {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 40px;
  max-height: 96px;
  resize: none;
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.chat-panel :focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-inset);
}

.chat-row-input:has(.chat-input:focus-visible) { outline: var(--focus-ring); outline-offset: var(--focus-inset); }
.chat-panel .chat-input:focus-visible { outline: none; }

.chat-input::placeholder { color: var(--muted); }

.chat-tool {
  width: 36px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chat-tool .icon { width: 22px; height: 22px; }
.chat-tool.is-on { background: var(--soft); border-radius: 12px; }

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chat-send:disabled { opacity: 1; cursor: default; }
.chat-send .icon { width: 18px; height: 18px; }

.chat-note {
  margin: 8px 0 0;
  color: #c54500;
  font-size: 13px;
  line-height: 16px;
}

.chat-jump {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 2;
  border: 1px solid var(--gordan-line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 16px;
  cursor: pointer;
}

.chat-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.chat-viewer {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.chat-viewer-card {
  border-radius: var(--window-radius);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(960px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 16px;
  background: #161616;
}

.chat-viewer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.chat-viewer-x {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.chat-viewer-x .icon { width: 24px; height: 24px; }

.chat-viewer-frame { min-height: 0; }

.chat-viewer-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.chat-viewer-meta { color: var(--white); text-align: left; min-width: 0; }
.chat-viewer-who,
.chat-viewer-time,
.chat-viewer-caption { margin: 0; }
.chat-viewer-time { color: var(--gordan-line); }
.chat-viewer-caption { color: var(--white); margin-top: 8px; }

@media (max-width: 719px) {
  .chat-layer {
    --chat-edge: 8px;
    --chat-top: max(8px, env(safe-area-inset-top));
    --chat-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .chat-head { min-height: 64px; }
  .chat-x { right: 12px; }
  .chat-body { padding: 10px 14px; }
  .chat-compose { padding: 8px 12px 12px; }

  .chat-emoji-grid { grid-template-columns: repeat(7, 1fr); }

  .chat-viewer { background: #0f0f0f; padding: 16px 12px; }
  .chat-viewer-img { max-height: 70vh; }
}

@media (max-width: 719px), (pointer: coarse) and (max-height: 500px) {
  .chat-layer:has(.chat-compose) .chat-panel {
    --chat-safe-bottom: env(safe-area-inset-bottom, 0px);
    inset: 0;
    width: 100%;
    border-radius: 0;
  }
  .chat-layer:has(.chat-compose) .chat-launcher { display: none; }
  .chat-layer[data-viewport-reduced] .chat-panel { --chat-safe-bottom: 0px; }
  /* Safari показывает фон страницы сквозь полупрозрачные панели клавиатуры. */
  body:has(> .chat-layer[data-viewport-reduced]:modal .chat-compose) #app { visibility: hidden; }
  .chat-layer[data-viewport-reduced]:has(.chat-compose)::backdrop { background: var(--white); }

  .chat-panel:has(.chat-compose) .chat-head {
    min-height: calc(64px + env(safe-area-inset-top, 0px));
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-bottom: 12px;
  }
  .chat-panel:has(.chat-compose) .chat-x {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
  }
  .chat-body {
    padding: 10px max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
  }
  .chat-body > :first-child { margin-block-start: auto; }
  .chat-panel .chat-compose {
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) max(8px, var(--chat-safe-bottom)) max(12px, env(safe-area-inset-left, 0px));
  }
  .chat-panel .chat-input {
    min-height: 44px;
    font-size: 16px;
    line-height: 24px;
  }
  .chat-tool, .chat-send { width: 44px; height: 44px; }
  .chat-jump { bottom: calc(72px + var(--chat-safe-bottom)); }
}

/* Figma D10/M10 + D11/M11; native modal and readable touch controls. */
dialog.sheet { border: 0; margin: 0; max-width: none; color: var(--ink); overscroll-behavior: contain; }
dialog.sheet:not([open]) { display: none; }
dialog.sheet :is(.sheet-scroll, .sheet-layout, .swap-grid) { overscroll-behavior: contain; }
dialog.sheet::backdrop, .auth-dialog::backdrop { background: rgb(44 20 12 / 40%); overflow: hidden; overscroll-behavior: contain; }
.sheet:not(.is-combo) .mod-qty { min-height: 48px; height: auto; gap: 0; }
.sheet:not(.is-combo) .mod-qty .step { width: 48px; min-width: 48px; height: 48px; min-height: 48px; font-size: 20px; }
.sheet:not(.is-combo) .mod-card { min-width: 0; }
.sheet:not(.is-combo) .show-all { min-height: 48px; padding-block: 12px; }
.auth-dialog {
  border-radius: var(--window-radius);
  --auth-away: translateX(100%);
  --auth-top: 0px;
  position: fixed;
  inset: calc(var(--auth-viewport-top, 0px) + var(--auth-top)) 0 auto auto;
  width: clamp(440px, 31.25vw, 540px);
  max-width: 100%;
  height: calc(var(--auth-viewport-height, 100dvh) - var(--auth-top));
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--white);
  overscroll-behavior: contain;
}
.auth-dialog[open] { display: flex; flex-direction: column; }
.auth-dialog::backdrop { background-color: rgb(0 0 0 / 42%); }
.auth-header {
  position: relative;
  display: grid;
  flex: none;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 80px;
  padding: 12px 20px;
}
.auth-back, .auth-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
}
.auth-back { grid-column: 1; }
.auth-close { grid-column: 3; }
.auth-close .icon, .auth-back .icon { width: 24px; height: 24px; }
.auth-recipient {
  grid-column: 2;
  justify-self: center;
  font-size: clamp(16px, 3.8vw, 20px);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.auth-content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.auth-body {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 360px);
  min-width: 0;
  text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .auth-dialog {
    --auth-slide: 220ms ease-out;
    transition: transform var(--auth-slide);
  }
  .auth-dialog::backdrop { transition: background-color 220ms ease-out; }
  @starting-style {
    .auth-dialog[open] { transform: var(--auth-away); }
    .auth-dialog[open]::backdrop { background-color: transparent; }
  }
  .auth-dialog.auth-leaving { transform: var(--auth-away); }
  .auth-dialog.auth-leaving::backdrop { background-color: transparent; }
}
.auth-progress {
  display: flex;
  flex: none;
  gap: 4px;
  margin: 0 24px;
}
.auth-progress::before, .auth-progress::after {
  content: "";
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: var(--line);
}
.auth-progress::before, .auth-progress[aria-valuenow="2"]::after { background: var(--action); }
.auth-form .auth-phone {
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  outline: none;
  border-radius: 0;
  background: transparent;
  font: 500 clamp(28px, 2.6vw, 36px)/1.3 var(--font);
  text-align: center;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  caret-color: var(--action-ink);
}
.auth-form .primary { min-height: 52px; margin: 0; border-radius: 999px; width: 100%; }
.auth-sber {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 24px;
  border: 0;
  border-radius: 999px;
  background: #21a038;
  color: #fff;
  font: 600 18px/24px var(--font);
}
.auth-sber:not(.auth-pending)::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url("/img/figma/sber-login-mark.svg") center / contain no-repeat;
}
.auth-sber:enabled:hover { background: #18872e; }
.auth-sber:disabled { opacity: .55; }
.auth-method-divider { display: flex; align-items: center; gap: 12px; width: 100%; color: var(--muted); font-size: 14px; }
.auth-method-divider::before, .auth-method-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-method-divider + .quiet { min-height: 48px; width: 100%; }
.auth-code-entry {
  --code-cell: clamp(44px, 13vw, 56px);
  --code-gap: 8px;
  position: relative;
  overflow: clip;
  border-radius: 8px;
}
.auth-code-slots { display: flex; gap: var(--code-gap); }
.auth-code-slots > span {
  display: grid;
  place-items: center;
  width: var(--code-cell);
  height: 60px;
  border-radius: 8px;
  background: var(--cream);
  font: 500 32px/1 var(--font);
  font-variant-numeric: tabular-nums;
}
.auth-code-entry:focus-within :is(.is-current, .is-selected) { background: var(--soft); }
/* Leave room for the trailing letter spacing so the fourth digit never scrolls the first out of view. */
.auth-form .auth-code-entry .code {
  position: absolute;
  inset: 0 auto 0 0;
  --digit-inset: calc((var(--code-cell) - 1ch) / 2);
  width: calc(100% + var(--digit-inset) + var(--code-gap) + 2px);
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0 0 0 var(--digit-inset);
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 32px/1 ui-monospace, monospace;
  letter-spacing: calc(var(--code-cell) + var(--code-gap) - 1ch);
  text-align: left;
  cursor: text;
}
.auth-form [data-resend] {
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--action-ink);
  font: 500 14px/20px var(--font);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.auth-form [data-resend]:disabled { color: var(--muted); opacity: 1; }
.auth-form [data-resend]:enabled:hover { text-decoration: underline; }
.auth-terms {
  flex: none;
  margin: 0 24px;
  padding: 16px 0 max(20px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.auth-terms p { max-width: 40ch; margin: 0 auto 4px; text-wrap: balance; }
.auth-terms a { color: var(--ink); text-underline-offset: 2px; }
.auth-form h2 { margin: 0; }
.auth-ads {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-align: start;
  cursor: pointer;
}
.auth-ads input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--action); }
.auth-form a { color: var(--ink); text-underline-offset: 2px; }
.auth-form .quiet { min-height: 44px; }
.auth-form .field-error { margin: 0; }
.checkout-wrap.wrap { display: flex; flex-direction: column; width: 100%; max-width: none; margin: 0; padding: 0; background: var(--cream); min-height: 100dvh; overflow-anchor: none; }
.checkout-wrap > .top { padding-inline: max(24px, calc((100% - 1200px) / 2 + 24px)); background: var(--cream); }
.checkout-wrap > .top.checkout-header { position: static; z-index: auto; height: auto; min-height: 56px; padding-block: 8px; background: var(--cream); align-items: center; }
.checkout { width: 100%; max-width: none; flex: 1 0 auto; min-height: 100dvh; margin: 0; padding: 0 0 64px; background: var(--white); border-radius: 32px 32px 0 0; }
.checkout-layout { width: min(1200px, 100%); margin-inline: auto; padding-inline: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); column-gap: 40px; row-gap: 16px; align-items: start; }
.checkout-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; margin-block-start: 128px; }
.checkout-sheet { container: checkout-form / inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; background: transparent; border-radius: 0; padding: 56px 0 48px; }
.checkout-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 16px; }
.checkout-titlebar h1 { font-family: var(--font); font-size: 40px; line-height: 44px; font-weight: 400; margin: 0; text-wrap: balance; }
.checkout-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--cream); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 18px; white-space: nowrap; }
.checkout-back .icon, .checkout-cart-back .icon { width: 20px; height: 20px; flex: none; }
.checkout-sheet > a.checkout-cart-back { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.checkout-cart-back .icon { filter: brightness(0) invert(1); }
.checkout-sheet .banner:empty { display: none; }
.checkout-panel { background: var(--white); border-radius: 24px; padding: 20px 24px; min-width: 0; box-shadow: 0 0 0 1px rgb(28 28 28 / 6%), 0 8px 24px rgb(28 28 28 / 8%); }
.checkout-panel-title { margin: 0 0 12px; color: var(--ink); font-family: var(--display); font-size: 22px; line-height: 28px; font-weight: 700; }
.checkout-place { display: flex; flex-direction: column; gap: 0; margin: 0; }
.checkout-pickup-prompt { position: relative; border: 1px solid var(--line); }
.checkout-pickup-prompt::before {
  content: "";
  position: absolute;
  inset-block-start: -6px;
  inset-inline-start: 39px;
  inline-size: 10px;
  block-size: 10px;
  background: var(--white);
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  rotate: 45deg;
}
.checkout-pickup-prompt .checkout-panel-title { margin-block-end: 6px; }
.checkout-pickup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }
.checkout-pickup-actions button { width: auto; min-height: 44px; padding-inline: 16px; border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
  .checkout-pickup-prompt-enter { transition: opacity 200ms ease-out, translate 240ms cubic-bezier(.22, 1, .36, 1); }
  @starting-style {
    .checkout-pickup-prompt-enter { opacity: 0; translate: 0 10px; }
  }
}
.checkout-kicker { margin: 0 0 12px; }
.checkout-address-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.checkout-address-copy { flex: 1 1 auto; min-width: 0; }
.checkout-address, .checkout-address-line { margin: 0; background: transparent; padding: 0; border-radius: 0; }
.checkout-address { font-size: 18px; line-height: 24px; color: var(--ink); }
.checkout-address-line { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 22px; }
.checkout-pencil { width: 48px; height: 48px; flex: none; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; }
.checkout-pencil .icon { width: 20px; height: 20px; }
.checkout-pencil:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-inset); }
.checkout-place-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 4px 8px 4px 4px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
}
.checkout-place-open.is-empty {
  display: flex;
  width: 100%;
  min-height: 64px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--action-ink);
  box-shadow: inset 0 0 0 1.5px var(--action);
}
.checkout-place-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.checkout-place-icon .icon { width: 24px; height: 24px; }
.checkout-place-label { min-width: 0; }
.checkout-place-note { margin: 8px 0 0; color: var(--action-ink); font-size: 14px; line-height: 18px; }
.checkout-static { background: var(--cream); border-radius: 16px; }
.checkout-card { background: var(--white); border-radius: 24px; padding: 24px; min-width: 0; box-shadow: 0 0 0 1px rgb(28 28 28 / 6%), 0 8px 24px rgb(28 28 28 / 8%); }
.checkout-card h2 { font: 400 24px/29px var(--font); margin: 0 0 20px; }
.checkout-card p { line-height: 1.5; }
.checkout-slots { margin: 0; border: 0; min-width: 0; }
.checkout-time-options { clear: both; width: 100%; display: flex; flex-wrap: wrap; gap: 8px; min-inline-size: 0; }
.checkout-panel.checkout-slots { padding: 20px 24px; }
/* Legend fieldset садится на верхнюю рамку и не видит padding панели. float возвращает её в поток, как h2 адреса и контактов. */
.checkout-slots legend { padding: 0; float: left; width: 100%; }
.checkout-slots legend.checkout-panel-title { color: var(--ink); font-family: var(--display); font-size: 22px; line-height: 28px; font-weight: 700; margin: 0 0 12px; }
.checkout-slots .choice { width: auto; min-height: 48px; margin: 0; border: 0; border-radius: 999px; background: var(--cream); color: var(--ink); }
.checkout-slots .choice.is-on { background: var(--action-fill); color: white; }
.checkout-slots .choice.is-busy { background: var(--soft); color: var(--muted); outline: 1px dashed var(--field-line); cursor: not-allowed; text-decoration: line-through; }
.checkout-preorder-panel { clear: both; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gordan-line); display: flex; flex-direction: column; gap: 12px; }
.checkout-preorder-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.checkout-preorder-date-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 200px; }
.checkout-preorder-date-label input.checkout-preorder-date { min-height: 48px; padding: 10px 14px; border-radius: 14px; color: var(--ink); }
.checkout-preorder-days { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-preorder-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-preorder-status { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 14px; line-height: 20px; }
.checkout-sheet .field { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; }
.checkout-sheet .field > label, .checkout-sheet .field > span { color: var(--muted); font-size: 14px; line-height: 18px; }
.checkout-sheet .field-error:empty { display: none; }
.checkout-sheet input, .checkout-sheet textarea, .checkout-static { width: 100%; border-radius: 16px; border: 0; padding: 16px; font: 400 16px/22px var(--font); background: var(--cream); }
.checkout-sheet input, .checkout-sheet textarea { outline: 2px solid var(--field-line); outline-offset: 0; }
.checkout-sheet :is(input, textarea):focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-inset); }
.checkout-static { margin: 0; }
.checkout-sheet :is(input, textarea)[aria-invalid=true] { box-shadow: inset 0 0 0 2px var(--action); }
.checkout-pencil.checkout-place-open {
  width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
}
.checkout-phone-block, .field-mail { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.checkout-contact-label { margin: 0; color: var(--ink); font-size: 14px; line-height: 18px; }
.checkout-receipt-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 18px; }
.checkout-promo { display: grid; gap: 8px; margin: 12px 0; }
.checkout-promo-editor { display: grid; gap: 8px; }
.checkout-promo-applied { background: var(--cream); border-color: var(--line); }
.checkout-promo .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.checkout-sheet .checkout-promo input { flex: 1 1 120px; min-width: 0; width: auto; }
.checkout-promo .choice { min-height: 44px; }
.checkout-phone, .checkout-sheet .field-mail input { margin: 0; color: var(--muted); font: 400 16px/22px var(--font); overflow-wrap: anywhere; }
.checkout-phone-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.checkout-contacts { display: flex; flex-direction: column; gap: 16px; }
.checkout-sheet .field-mail input {
  height: 22px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.checkout-sheet .field-mail input:placeholder-shown { border-bottom: 1px solid var(--field-line); }
.checkout-sheet .field-mail input:not(:focus-visible):not([aria-invalid=true]) { outline: none; }
.checkout-line-top { display: flex; gap: 24px; align-items: start; justify-content: space-between; }
.checkout-summary { position: static; box-shadow: inset 0 0 0 1px var(--line), var(--lift); }
.checkout-summary > h2 { font: 700 24px/29px var(--display); }
.checkout-summary-time { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.checkout-totals { margin-block-end: 16px; }
.checkout-totals .row { gap: 24px; align-items: start; }
.checkout-totals .checkout-line { padding: 12px 0; border-bottom: 1px solid var(--line); }
.checkout-line-name { min-width: 0; overflow-wrap: anywhere; }
.checkout-qty { color: var(--muted); }
.checkout-totals .row > :last-child { white-space: nowrap; }
.checkout-breakdown { display: grid; gap: 8px; margin: 12px 0 0; }
.checkout-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.checkout-breakdown dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.checkout-discount { padding: 4px 0; }
.checkout-discount dd { color: var(--action-ink); font-weight: 700; }
.checkout-sum { padding: 12px 16px; border-radius: 16px; background: var(--cream); font-weight: 700; }
.checkout-sum dd { font: 700 30px/36px var(--display); }
.checkout-summary .primary { width: 100%; min-height: 52px; border-radius: 999px; margin: 8px 0 16px; border: 0; }
.checkout-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pay-method { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; background: var(--cream); border-radius: 16px; }
.pay-pictogram { width: 36px; height: 24px; flex: none; color: var(--ink); }
.pay-method-copy { display: flex; flex-direction: column; min-width: 0; }
.pay-method-name { font-size: 16px; line-height: 20px; }
.pay-method-detail { color: var(--muted); font-size: 13px; line-height: 16px; }
.pay-method-detail:empty { display: none; }
.checkout-pay-note { margin: 0; }
.order-steps-nav { margin-left: auto; min-width: 0; flex: 1 1 220px; display: flex; justify-content: flex-end; }
.order-steps { display: flex; align-items: flex-start; width: min(440px, 100%); margin: 0; padding: 0; list-style: none; }
.order-step { position: relative; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; color: var(--muted); font-size: 12px; line-height: 14px; }
.order-step::before { content: ""; position: absolute; z-index: 0; top: 13px; right: 50%; left: -50%; height: 2px; background: var(--gordan-line); }
.order-step:first-child::before { content: none; }
.order-step.is-done::before, .order-step.is-current::before { background: var(--action); }
.step-mark { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--gordan-line); background: white; color: var(--muted); font-size: 13px; line-height: 1; }
.order-step.is-done .step-mark, .order-step.is-current .step-mark { background: var(--action-fill); border-color: var(--action-fill); color: white; }
.order-step.is-current .step-label { color: var(--ink); }
.step-label { max-width: 100%; overflow-wrap: break-word; }
.step-check { width: 14px; height: 14px; display: block; }
html:has(main.checkout) { scroll-padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 24px; background: var(--white); border: 2px solid var(--action); border-radius: 16px; }
.skip-link:focus { top: 12px; }
@media (max-width: 719px) {
  .auth-dialog {
    --auth-top: max(24px, env(safe-area-inset-top));
    inset-inline: 0;
    width: 100%;
  }
  /* Safari показывает страницу сквозь свои панели даже ниже visualViewport. */
  #app:has(> .auth-dialog[data-viewport-reduced]:modal) > :is(.wrap, .catalog-screen) { visibility: hidden; }
  .auth-dialog[data-viewport-reduced]::backdrop { background: var(--white); }
  .auth-dialog.swipe-dragging:not(.auth-leaving) { translate: 0 var(--swipe-pull, 0px); }
  .auth-header { min-height: 64px; padding: 10px 12px 6px; }
  .auth-header::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    border-radius: 4px;
    background: var(--gordan-line);
  }
  .auth-progress, .auth-terms { margin-inline: 20px; }
  .auth-body { padding: 24px 20px; }
  .checkout { padding: 0 0 24px; border-radius: 20px 20px 0 0; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 12px; padding-inline: 16px; }
  .checkout-sheet { padding: 16px 0 0; border-radius: 0; background: transparent; }
  .checkout-titlebar { margin-bottom: 8px; }
  .checkout-titlebar h1 { font-size: 28px; line-height: 32px; }
  .checkout-sheet .field { margin-top: 12px; }
  .checkout-slots { margin-top: 12px; }
  .checkout-side { margin-block-start: 12px; padding: 0; gap: 12px; }
  .checkout-card, .checkout-panel, .checkout-panel.checkout-slots { padding: 16px; border-radius: 16px; }
  .checkout-card h2, .checkout-panel-title, .checkout-slots legend.checkout-panel-title { font-size: 20px; line-height: 26px; margin-bottom: 12px; }
  .checkout-address-row { min-block-size: 50px; }
  .checkout-address:not(.checkout-delivery-address), .checkout-address-line {
    overflow: clip;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .checkout-delivery-address {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-block-size: 2lh;
    overflow: clip;
    overflow-wrap: anywhere;
  }
  .checkout-time-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
    margin: -2px;
  }
  .checkout-time-options > :is(.choice, .checkout-other-time) { flex: none; min-block-size: 50px; white-space: nowrap; }
  .checkout-summary { position: static; }
  .checkout-sheet :is(input, textarea, select, button, a) { scroll-margin-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
}

.current-order { margin: 0 0 16px; padding: 24px; border-radius: 24px; background: var(--soft); display: flex; align-items: center; gap: 32px; }
.current-order-copy { flex: 1; min-width: 0; }
.current-order p { margin: 0; font-size: 14px; line-height: 20px; }
.current-order .current-order-caption { font-size: 12px; color: var(--muted); }
.current-order h2 { font: 400 24px/29px var(--font); margin: 8px 0; }
.current-order-steps { flex: 1; display: flex; gap: 8px; padding: 0; margin: 0; list-style: none; }
.current-order-steps li { flex: 1; padding-top: 12px; border-top: 4px solid var(--gordan-line); color: var(--muted); font-size: 12px; }
.current-order-steps .is-complete { color: var(--action-ink); border-color: var(--action); }
.current-order-actions { display: flex; flex-direction: column; width: 200px; }
.current-order-actions a, .current-order-actions button { min-height: 48px; display: flex; align-items: center; font-size: 14px; padding: 0; text-align: left; }
.payment-result { margin: 48px auto; padding: 40px; width: min(560px, calc(100% - 32px)); background: white; border-radius: 24px; display: flex; flex-direction: column; gap: 16px; }
.payment-result h1 { font: 400 32px/38px var(--font); text-align: center; margin: 0; }
.payment-caption { text-align: center; color: var(--muted); margin: 0 0 8px; }
.payment-badge { align-self: center; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--action); font-size: 48px; }
.payment-result .row { background: var(--cream); padding: 16px; border-radius: 16px; gap: 16px; }
.payment-result .primary { min-height: 52px; border-radius: 999px; margin: 0; }
@media (max-width: 719px) {
  .current-order { padding: 20px; margin-top: 16px; flex-direction: column; align-items: stretch; gap: 16px; }
  .current-order h2 { font-size: 20px; line-height: 26px; }
  .current-order-actions { flex-direction: row; justify-content: space-between; width: auto; gap: 16px; }
  .current-order-actions a, .current-order-actions button { font-size: 12px; }
  .payment-result { margin: 24px auto; padding: 24px; }
  .payment-result h1 { font-size: 28px; line-height: 34px; }
}

.checkout-other-time { min-height: 48px; min-inline-size: 0; flex: 0 1 auto; border: 1px solid var(--gordan-line); border-radius: 16px; padding: 12px 48px 12px 16px; max-width: 100%; color: var(--ink); font: inherit; font-size: max(1rem, 1em); background-color: var(--cream); background-image: url("/img/figma/icon-chevron-down.svg"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px; -webkit-appearance: none; appearance: none; }
@media (forced-colors: active) {
  .checkout-other-time { -webkit-appearance: auto; appearance: auto; background-image: none; padding-right: 16px; }
  .checkout-panel { border: 1px solid CanvasText; box-shadow: none; }
  .checkout-pencil.checkout-place-open { border: 1px solid ButtonText; background: ButtonFace; forced-color-adjust: auto; }
  .checkout-back .icon, .checkout-cart-back .icon { filter: none; forced-color-adjust: auto; }
}
.map-fallback {
  position: absolute;
  inset: 50% 6px auto;
  transform: translateY(-50%);
  width: fit-content;
  max-width: calc(100% - 12px);
  margin: 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.chat-bubble { padding: 16px; border-radius: 18px; min-width: 0; }
.chat-row:not(.is-guest) .chat-bubble { border-bottom-left-radius: 4px; }
.chat-row.is-guest .chat-bubble { border-bottom-right-radius: 4px; }
.chat-time { position: static; display: block; text-align: right; margin-top: 8px; overflow-wrap: anywhere; }
.chat-reply-btn { width: 48px; height: 48px; flex: 0 0 48px; justify-content: center; margin-bottom: 0; }
.chat-row:not(.is-guest) .chat-bubble { max-width: calc(100% - 56px); }

.checkout-pay { display: grid; gap: 12px; }
.checkout-pay .offer-note { margin: 0; }
@media (max-width: 719px) {
  .checkout-pay .primary { width: 100%; margin: 0; }
  .checkout-pay .offer-note { font-size: 12px; line-height: 16px; text-align: center; }
}

.checkout-header { justify-content: space-between; gap: 16px; }
.checkout-header .logo img { width: 148px; height: auto; }
@media (min-width: 1100px) {
  .checkout-wrap > .top.checkout-header { min-height: 64px; }
  .checkout-header .logo img { width: 148px; height: auto; }
}
@media (max-width: 719px) {
  .checkout-wrap > .top.checkout-header { padding-inline: 12px; }
  .checkout-header .logo img { width: 34px; height: 34px; }
  .checkout-header { gap: 8px; }
  .order-steps { width: 100%; }
  .order-step { font-size: 11px; line-height: 13px; }
}

@media (max-width: 719px) {
  .foot .support { display: none; }
}

@media (max-width: 719px) and (prefers-reduced-motion: no-preference) {
  .cart-motion-layer, #app.cart-opening {
    position: fixed;
    inset: 0;
    isolation: isolate;
    overflow: hidden;
    background: var(--white);
  }
  .cart-motion-layer { z-index: 10; pointer-events: none; }
  #app.cart-opening, .cart-motion-layer.cart-closing { z-index: 11; }
  :root { --sheet-slide: 600ms cubic-bezier(.2, .64, .38, 1); }
  #app.cart-opening, .cart-motion-layer.cart-closing { animation: panel-slide 220ms ease-out both; }
  dialog.sheet.dish-closing {
    animation: cart-sheet-rise var(--sheet-slide) both;
  }
  .cart-motion-layer.cart-closing, dialog.sheet.dish-closing { animation-direction: reverse; }
  dialog.sheet.dish-closing::backdrop { background: transparent; transition: background-color var(--sheet-slide); }
  .cart-closing:has(.swipe-dragging) { background: transparent; }
  .cart-closing:has(.swipe-dragging) :is(.cart-catalog-strip, .phone-cart-back) { visibility: hidden; }
  :is(.phone-cart, .cart-page, dialog.sheet:not(.is-swap)) { transition: translate 160ms ease-out; }
  dialog.sheet.dish-opening:where([open]) {
    transition: translate 160ms ease-out, transform var(--sheet-slide);
  }
  dialog.sheet.dish-opening:where([open])::backdrop {
    transition: background-color var(--sheet-slide);
  }
  @starting-style {
    dialog.sheet.dish-opening:where([open]) { transform: translateY(100%); }
    dialog.sheet.dish-opening:where([open])::backdrop { background-color: transparent; }
  }
  :is(.phone-cart, .cart-page, dialog.sheet).swipe-dragging {
    translate: 0 var(--swipe-pull, 0px);
    transition: none;
  }
}

@keyframes cart-sheet-rise {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 719px) {
  body:has(#app .phone-cart) { overflow: hidden; }
  .cart-catalog-strip { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
  .phone-cart-back { position: fixed; inset: 0; width: 100%; border: 0; background: rgb(44 20 12 / 18%); }
  .phone-cart {
    position: fixed; inset: max(24px, env(safe-area-inset-top)) 0 0;
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--cream); border-radius: var(--window-radius); box-shadow: var(--lift);
  }
  .phone-cart .cart-head {
    position: relative; z-index: 1; padding: 8px 14px; min-height: 60px;
    background: rgb(255 255 255 / 84%); border-bottom: 1px solid var(--line);
  }
  .phone-cart .cart-head h2 { font-size: 22px; }
  :is(.phone-cart, .cart-page) .cart-head::before,
  dialog.sheet:not(.is-combo) .sheet-phone-bar::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    border-radius: 4px;
    background: var(--muted);
    opacity: .45;
    pointer-events: none;
  }
  .phone-cart :is(.cart-clear-all,.cart-close) {
    width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white);
  }
  .phone-cart .cart-scroll {
    flex: 1; min-height: 0; padding: 12px 12px 20px;
    overflow: auto; overscroll-behavior: contain; gap: 10px;
  }
  .phone-cart .cart-line { display: flex; gap: 4px; padding: 8px 8px 6px; border-radius: 16px; }
  .phone-cart .cart-replacement { width: 100%; min-width: 0; max-width: 100%; }
  .phone-cart .cart-photo { width: 64px; height: 64px; }
  .phone-cart .cart-photo img { object-fit: contain; }
  .phone-cart .cart-name { font-size: 16px; line-height: 20px; }
  .phone-cart .cart-portion { font-size: 13px; line-height: 17px; }
  .phone-cart .cart-price { font-size: 16px; line-height: 20px; }
  .phone-cart .cart-actions { justify-content: flex-end; gap: 4px; }
  .phone-cart .cart-actions > .text-btn { margin-right: auto; color: var(--ink); min-height: 44px; }
  .phone-cart .stepper { border: 0; background: var(--cream); border-radius: 999px; padding: 0; gap: 0; }
  .phone-cart .stepper .step, .phone-cart .icon-x, .phone-cart .cart-edit { width: 44px; min-width: 44px; height: 44px; }
  .phone-cart .stepper span { min-width: 22px; text-align: center; }
  .phone-cart .cart-replacement { min-width: 0; max-width: 100%; min-height: 44px; }
  .phone-cart .cart-clear {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--white);
    text-align: left;
  }
  .phone-cart .cart-clear-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    padding-inline: 12px;
  }
  .phone-cart .cart-clear-panel p {
    grid-column: 1 / -1;
    flex: 1 0 100%;
    min-width: 0;
  }
  .phone-cart .cart-clear-panel :is(.cart-clear-yes, .cart-clear-no) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    white-space: nowrap;
  }
  .cart-shelf { grid-auto-columns: 120px; }
  .phone-total small { display: block; }
  .phone-cart .offer-note { margin: 0 4px; }
  .phone-cart .phone-total {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 0;
    background: var(--ink); color: var(--white);
  }
  .phone-total .cart-saving { color: var(--orange); }
  .phone-total .cart-delivery-minimum { --minimum-accent: var(--orange); }
  .phone-total .cart-summary { color: var(--gordan-line); font-size: 12px; line-height: 16px; }
  .phone-total small { font-size: 12px; line-height: 16px; color: var(--gordan-line); }
  .phone-total strong { font-size: 23px; line-height: 28px; font-weight: 400; }
  .phone-total .primary { flex-basis: 50%; min-height: 48px; padding: 8px 12px; font-size: 16px; }
}
@media (max-width: 719px) {
  .phone-combo-slot { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 0; border-top: 1px solid var(--line); }
  .phone-combo-copy { min-width: 0; flex: 1; }
  .phone-combo-slot small { display: block; color: var(--muted); overflow-wrap: anywhere; }
  .phone-combo-slot strong { font-weight: 400; overflow-wrap: anywhere; }
  .phone-combo-slot .text-btn,
  .phone-combo-slot .cart-edit { margin-left: auto; flex: none; }
  .phone-combo-slot .text-btn { min-height: 44px; }
  .phone-combo-slot .cart-photo { width: 40px; height: 40px; }
}

@media (pointer: coarse) {
  .cart-edit,
  .cart-remove.icon-x {
    width: 44px;
    height: 44px;
  }
}

@media (forced-colors: active) {
  .cart-edit,
  .cart-remove {
    border: 1px solid ButtonText;
  }
}

/* Карточка блюда на столе: три первые группы без прокрутки, ползунок в своём зазоре.
   Только .sheet:not(.is-combo). Комбо, телефон и .size-chip/.kbju не трогаем.
   scrollbar-gutter на overlay не занимает место, поэтому зазор держит padding. */
@media (min-width: 1100px) {
  .sheet:not(.is-combo)[data-kind="modifiers"] {
    height: min(920px, calc(100dvh - 32px));
    max-height: min(920px, calc(100dvh - 32px));
    padding-block: 16px;
  }

  .sheet:not(.is-combo) .sheet-composition { margin-top: 8px; }

  .sheet:not(.is-combo) .sheet-scroll > .group-title { margin-top: 8px; }

  .sheet:not(.is-combo) .size-row { margin-top: 8px; }

  .sheet:not(.is-combo) .group { margin-top: 10px; }

  .sheet:not(.is-combo) .group-head {
    align-items: center;
    margin-top: 0;
  }

  .sheet:not(.is-combo) .mod-grid { margin-top: 8px; }

  .sheet:not(.is-combo) .mod-card { padding: 6px 6px 4px; }

  .sheet:not(.is-combo) .mod-photo {
    width: 64px;
    height: 64px;
  }

  .sheet:not(.is-combo) .mod-name { line-height: 18px; }

  .sheet:not(.is-combo) .show-all {
    min-height: 32px;
    padding-block: 4px;
  }

  .sheet:not(.is-combo) .sheet-col { margin-inline-end: -24px; }

  .sheet:not(.is-combo) .sheet-scroll {
    --scrollbar-thumb: #5c5c5c;
    --scrollbar-track: var(--cream);
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
    scrollbar-gutter: stable;
    padding-inline-end: 24px;
  }
}

@supports not (scrollbar-color: auto) {
  @media (min-width: 1100px) {
    .sheet:not(.is-combo) .sheet-scroll { scrollbar-width: auto; }

    .sheet:not(.is-combo) .sheet-scroll::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }

    .sheet:not(.is-combo) .sheet-scroll::-webkit-scrollbar-thumb {
      background: var(--scrollbar-thumb);
      border-radius: 8px;
    }

    .sheet:not(.is-combo) .sheet-scroll::-webkit-scrollbar-track {
      background: var(--scrollbar-track);
    }
  }
}

/* Знак × поворачивается на 90° за 0,2 с и так же возвращается.
   Круг, фон и хитзона кнопки не крутятся. Правило только для мыши:
   на таче :hover залипает после касания. Стрелка «назад» — тот же
   .sheet-close, но без знака и с классом .swap-back. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(
    .sheet-close,
    .cart-close,
    .points-close,
    .delivery-map-close,
    .auth-close,
    .account-close,
    .chat-x,
    .chat-photo-x,
    .chat-viewer-x,
    .icon-x
  ):not(.swap-back) > .icon {
    rotate: 0deg;
    transition: rotate 0.2s ease-out;
  }

  :is(
    .sheet-close,
    .cart-close,
    .points-close,
    .delivery-map-close,
    .auth-close,
    .account-close,
    .chat-x,
    .chat-photo-x,
    .chat-viewer-x,
    .icon-x
  ):not(.swap-back):hover > .icon {
    rotate: 90deg;
  }
}

@media (max-width: 719px) and (pointer: coarse) {
  :where(button, a[href]) { -webkit-tap-highlight-color: transparent; }
  :where(button, a[href]).is-touch-pressed:not(.card, .promo-hit, .cart-offer) {
    opacity: 1;
    --press-shadow: inset 0 2px 5px rgb(0 0 0 / 24%);
    box-shadow: var(--press-shadow);
  }
  :is(.dock, .primary, .points-go, .chat-send).is-touch-pressed:not(:disabled) {
    opacity: 1;
    filter: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    :where(button, a[href]).is-touch-pressed:not(.card, .promo-hit, .cart-offer) > .icon {
      scale: .92;
      transition: scale 65ms ease-out;
    }
  }
}

/* Оболочка карточки блюда взята у шаурмы. Селектор без .is-wrap,
   чтобы остальные категории получили те же размеры и ряды.
   Лаваш, состав, соусы и добавка мяса остаются на .sheet.is-wrap. */
.sheet.is-wrap,
.sheet:not(.is-wrap) {
  overscroll-behavior: contain;
  /* Пара фона и содержимого. Тёмная тема меняет только переменные, не отдельные color/background. */
  --wrap-sheet: #fff;
  --wrap-ink: #3d2914;
  --wrap-muted: #686868;
  --wrap-seg: #f3f1ef;
  --wrap-on-seg: #3d2914;
  --wrap-classic: #fff;
  --wrap-on-classic: #3d2914;
  --wrap-cheese: #f6e7d4;
  --wrap-on-cheese: #3d2914;
  --wrap-garlic: #e5f0df;
  --wrap-on-garlic: #3d2914;
  --wrap-selected: #fff;
  --wrap-on-selected: #3d2914;
  --wrap-chip: #f3f1ef;
  --wrap-on-chip: #3d2914;
  --wrap-chip-on: #3d2914;
  --wrap-on-chip-on: #fff;
  --wrap-mod: #fff;
  --wrap-on-mod: #3d2914;
  --wrap-mod-line: #e4d3c3;
  --wrap-cut: #f3f1ef;
  --wrap-on-cut: #3d2914;
  --wrap-mark: #c56a32;
  --wrap-mark-line: #a65324;
  --wrap-on-mark: #fff;
  --wrap-mark-out: #c56a32;
  --wrap-mark-out-line: #a65324;
  --wrap-on-mark-out: #fff;
  --wrap-ring: #e25b2a;
  background: var(--wrap-sheet);
  color: var(--wrap-ink);
}

.sheet:not(.is-combo):not(.is-swap) :is(.sheet-scroll, .sheet-layout, .sheet-col) {
  overflow-anchor: none;
}

.sheet:not(.is-combo):not(.is-swap) .sheet-title,
.sheet:not(.is-combo):not(.is-swap) .sheet-composition,
.sheet:not(.is-combo):not(.is-swap) .group-title,
.sheet:not(.is-combo):not(.is-swap) .group-chosen,
.sheet.is-wrap:not(.is-combo) .seg,
.sheet:not(.is-combo):not(.is-swap) .mod-name,
.sheet:not(.is-combo):not(.is-swap) .mod-price,
.sheet.is-wrap:not(.is-combo) .seg-price,
.sheet:not(.is-combo):not(.is-swap) .size-chip {
  color: var(--wrap-ink);
}

.sheet:not(.is-combo):not(.is-swap) .sheet-head {
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.sheet:not(.is-combo):not(.is-swap) .sheet-title {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 26px;
  line-height: 30px;
  overflow-wrap: break-word;
}

.sheet:not(.is-combo):not(.is-swap) .sheet-head .sheet-title {
  flex: 1;
  min-width: 0;
  padding-right: 0;
}

.dish-facts {
  max-height: none;
  margin: 6px 0;
}

.dish-facts .sheet-weight {
  font-size: 16px;
  color: var(--wrap-ink);
  white-space: nowrap;
}

.sheet:not(.is-combo):not(.is-swap) .sheet-composition {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 20px;
}

.sheet.is-wrap:not(.is-combo) .sheet-composition:has(> .cut) {
  line-height: 25px;
}

.sheet:not(.is-combo):not(.is-swap) .kbju-line {
  margin: 2px 0 0;
  color: var(--wrap-muted);
  font-size: 13px;
  line-height: 16px;
}

/* Та же строка у обычного блюда и комбо. Колонки больше не растягивают блок. */
.sheet .kbju.kbju-line {
  display: block;
  width: auto;
  margin: 2px 0 0;
  color: var(--wrap-muted);
  font-family: var(--font);
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
}

.sheet .kbju.kbju-line b,
.sheet.is-wrap:not(.is-combo) .kbju-line b {
  display: inline;
  font: inherit;
  font-weight: 400;
  color: inherit;
}

.sheet.is-wrap:not(.is-combo) .size-row.is-wrap-sizes {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.sheet:not(.is-combo):not(.is-swap) .size-chip {
  display: grid;
  flex: 1 1 0;
  place-items: center;
  width: auto;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: var(--wrap-chip);
  color: var(--wrap-on-chip);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.sheet:not(.is-combo):not(.is-swap) .size-chip .size-name {
  display: block;
  font: inherit;
  line-height: 1;
  text-align: center;
}

.sheet:not(.is-combo):not(.is-swap) .size-chip.is-on {
  background: var(--wrap-chip-on);
  color: var(--wrap-on-chip-on);
}

.sheet:not(.is-combo):not(.is-swap) .group { margin-top: 10px; }

.sheet:not(.is-combo):not(.is-swap) .group-head {
  align-items: center;
  min-height: 0;
  height: 18px;
  margin: 0;
  gap: 8px;
  overflow: visible;
}

.sheet:not(.is-combo):not(.is-swap) .group-title {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 18px;
}

.sheet:not(.is-combo):not(.is-swap) .group-chosen {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet:not(.is-combo):not(.is-swap) .show-all {
  flex: none;
  height: 23px;
  min-height: 23px;
  margin: -2px 0 -3px;
  padding: 0 2px;
  font-size: 13px;
  line-height: 16px;
}

.sheet:not(.is-combo):not(.is-swap) .show-all .icon {
  width: 14px;
  height: 14px;
}

.sheet.is-wrap:not(.is-combo) .seg-grid {
  display: grid;
  gap: 6px;
  margin-top: 3px;
  container: wrap-segs / inline-size;
}

.sheet.is-wrap .seg-grid.is-thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sheet.is-wrap .seg-grid.is-pair,
.sheet.is-wrap .seg-grid.is-lyulya { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sheet.is-wrap:not(.is-combo) .seg {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  align-items: safe center;
  justify-content: center;
  align-content: center;
  gap: 0 4px;
  min-width: 0;
  min-inline-size: 0;
  height: auto;
  min-height: 32px;
  margin: 0;
  padding: 3px 5px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--wrap-seg);
  color: var(--wrap-on-seg);
  font: inherit;
  font-size: 13px;
  line-height: 15px;
  text-align: center;
  cursor: pointer;
}

.sheet.is-wrap:not(.is-combo) .seg-name,
.sheet.is-wrap:not(.is-combo) .seg-price,
.sheet.is-wrap:not(.is-combo) .seg-status,
.sheet.is-wrap:not(.is-combo) .seg-count {
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
  text-align: center;
  line-height: 15px;
}

.sheet.is-wrap:not(.is-combo) .seg-name {
  flex: 0 1 auto;
  max-height: none;
  height: auto;
  display: block;
  white-space: normal;
  text-overflow: clip;
  text-wrap: balance;
  -webkit-line-clamp: unset;
}

.sheet.is-wrap:not(.is-combo) .seg-price,
.sheet.is-wrap:not(.is-combo) .seg-status,
.sheet.is-wrap:not(.is-combo) .seg-count {
  flex: 0 1 auto;
}

.sheet.is-wrap:not(.is-combo) .seg-price,
.sheet:not(.is-combo):not(.is-swap) .mod-price {
  margin: 0;
  color: inherit;
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
}

/* Короткое имя оставляло цену на 16px выше двухстрочного. Euclid есть только 400. */
.sheet:not(.is-combo):not(.is-swap) .mod-grid .mod-card > .mod-price {
  margin-block-start: auto;
  font-weight: 600;
}

.sheet.is-wrap:not(.is-combo) .seg .mod-price {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.sheet.is-wrap:not(.is-combo) .seg.is-classic {
  background: var(--wrap-classic);
  color: var(--wrap-on-classic);
}

.sheet.is-wrap:not(.is-combo) .seg.is-cheese {
  background: var(--wrap-cheese);
  color: var(--wrap-on-cheese);
}

.sheet.is-wrap:not(.is-combo) .seg.is-garlic {
  background: var(--wrap-garlic);
  color: var(--wrap-on-garlic);
}

.sheet.is-wrap:not(.is-combo) .seg.is-on {
  background: var(--wrap-selected);
  color: var(--wrap-on-selected);
  border-color: var(--wrap-ring);
  box-shadow: inset 0 0 0 1.5px var(--wrap-ring);
}

.sheet.is-wrap:not(.is-combo) .seg.is-classic.is-on {
  background: var(--wrap-classic);
  color: var(--wrap-on-classic);
}

.sheet.is-wrap:not(.is-combo) .seg.is-cheese.is-on {
  background: var(--wrap-cheese);
  color: var(--wrap-on-cheese);
}

.sheet.is-wrap:not(.is-combo) .seg.is-garlic.is-on {
  background: var(--wrap-garlic);
  color: var(--wrap-on-garlic);
}

.sheet.is-wrap .seg:disabled,
.sheet:not(.is-combo):not(.is-swap) .size-chip:disabled,
.sheet:not(.is-combo):not(.is-swap) button.mod-card:disabled:not(.is-locked) {
  opacity: 1;
  cursor: default;
}

/* 1fr при высоте по содержимому берёт максимум max-content: все ряды как самый высокий.
   align-content не раздаёт лишнее место самой сетке. */
.sheet:not(.is-combo):not(.is-swap) .mod-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-content: start;
  gap: 6px;
  margin-top: 5px;
  align-items: stretch;
}

.sheet:not(.is-combo):not(.is-swap) .mod-card {
  height: auto;
  min-height: 0;
  padding: 4px 6px 4px;
  gap: 0;
  border: 1px solid var(--wrap-mod-line);
  border-radius: 16px;
  background: var(--wrap-mod);
  color: var(--wrap-on-mod);
  justify-content: flex-start;
}

.sheet:not(.is-combo):not(.is-swap) .mod-card.is-on {
  background: var(--wrap-mod);
  color: var(--wrap-on-mod);
  border-color: var(--action);
  box-shadow: inset 0 0 0 1px var(--action), var(--press-shadow, inset 0 0 0 transparent);
}

.sheet:not(.is-combo):not(.is-swap) button.mod-card:hover:not(:disabled):not(.is-on) {
  background: var(--wrap-mod);
  color: var(--wrap-on-mod);
}

/* 100cqi — ширина самой плитки, не окна. На 320 колонка уже 90px, квадрат сжимается целиком. */
.sheet:not(.is-combo):not(.is-swap) .mod-card.has-photo {
  container-type: inline-size;
  container-name: mod-tile;
}

.sheet:not(.is-combo):not(.is-swap) .mod-photo {
  width: min(90px, 100cqi);
  height: min(90px, 100cqi);
  max-width: 100%;
  flex: none;
  object-fit: contain;
}

.sheet:not(.is-combo):not(.is-swap) .mod-name {
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  color: inherit;
  font-size: 13px;
  line-height: 16px;
}

/* Короткое имя фото-варианта не схлопывает плитку. Длиннее двух строк остаётся целиком. */
.sheet:not(.is-combo):not(.is-swap) .mod-card.has-photo .mod-name {
  min-block-size: 2lh;
}

.sheet.is-wrap:not(.is-combo) .mod-count,
.sheet.is-wrap:not(.is-combo) .mod-card .mod-qty,
.sheet.is-wrap:not(.is-combo) .mod-card .steps { display: none; }

.sheet.is-wrap:not(.is-combo) .seg-count {
  margin: 0;
  color: inherit;
  font-size: 13px;
  line-height: 16px;
}

.sheet.is-wrap .cut {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  vertical-align: baseline;
  cursor: pointer;
}

.sheet.is-wrap:not(.is-combo) .sheet-composition > .cut {
  gap: 4px;
}

.sheet.is-wrap:not(.is-combo) .cut-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  vertical-align: middle;
}

.sheet.is-wrap:not(.is-combo) .cut-extra .cut {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wrap-cut);
  color: var(--wrap-on-cut);
  white-space: normal;
}

.sheet.is-wrap:not(.is-combo) .cut.is-out .cut-label {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* Волна только у текста совпавшего ингредиента. Прямой потомок состава:
   чип .cut-extra, иконка .cut-mark и обычные слова не попадают. */
.sheet.is-wrap:not(.is-combo) .sheet-composition > .cut:not(.is-out) .cut-label,
.sheet:not(.is-wrap):not(.is-combo) .sheet-composition .cut-word:not(.is-out) {
  text-decoration: underline wavy currentColor;
  text-decoration-skip-ink: none;
  text-underline-offset: 0.2em;
}

.sheet:not(.is-wrap):not(.is-combo) .sheet-composition .cut-word.is-out {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.sheet.is-wrap:not(.is-combo) .cut-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--wrap-mark-line);
  border-radius: 50%;
  background: var(--wrap-mark);
  color: var(--wrap-on-mark);
  flex: none;
  transform: none;
}

.sheet.is-wrap:not(.is-combo) .cut.is-out .cut-mark {
  background: var(--wrap-mark-out);
  border-color: var(--wrap-mark-out-line);
  color: var(--wrap-on-mark-out);
  transform: none;
}

.sheet.is-wrap:not(.is-combo) .cut-glyph {
  display: inline-flex;
  width: 10px;
  height: 10px;
  transform-origin: center;
}

.sheet.is-wrap:not(.is-combo) .cut-glyph svg {
  display: block;
  width: 10px;
  height: 10px;
}

.sheet.is-wrap .limit-note {
  margin: 6px 0 0;
  color: var(--wrap-muted);
  font-size: 13px;
  line-height: 16px;
}

/* Ряд «Мясо» фиксирован на 18px. С переключателем строка растёт сама
   и переносит группу, когда рядом с заголовком ей не хватает места. */
:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .group-head:has(> .extra-meat),
:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .group-head:has(> .extra-meat-tools) {
  height: auto;
  min-block-size: 22px;
  flex-wrap: wrap;
  align-items: safe center;
  row-gap: 2px;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .group-head:has(> .extra-meat) > .group-title,
:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .group-head:has(> .extra-meat-tools) > .group-title {
  flex: none;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-tools {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 8px;
  row-gap: 4px;
  max-inline-size: 100%;
  margin-inline-start: auto;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-tools .extra-meat {
  margin-inline-start: 0;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-kind {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-kind-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wrap-chip);
  color: var(--wrap-on-chip);
  font-size: 13px;
  line-height: 16px;
  cursor: pointer;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-kind-option:has(.extra-kind-input:checked) {
  background: var(--wrap-chip-on);
  color: var(--wrap-on-chip-on);
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-kind-input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-kind-option:has(.extra-kind-input:focus-visible) {
  outline: var(--focus-ring);
  outline-offset: var(--focus-inset);
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-held {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 6px;
  font-size: 13px;
  line-height: 16px;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-held-remove {
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 16px;
  text-decoration: underline;
  cursor: pointer;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-held-remove:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-inset);
}

@media (pointer: coarse) {
  :is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-kind-option {
    min-block-size: 32px;
    padding-inline: 10px;
  }
}

@media (forced-colors: active) {
  :is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-kind-option,
  :is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-held-remove {
    border: 1px solid CanvasText;
  }
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: flex-end;
  column-gap: 6px;
  row-gap: 2px;
  max-inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 24px;
  margin-block: 0;
  margin-inline-start: auto;
  padding-block: 1px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  line-height: 18px;
}

/* Подпись — зона нажатия. На сенсоре поля уходят в пустой зазор ряда,
   не в кнопки вида мяса: те рисуются следом и забирают свой клик. */
@media (pointer: coarse) {
  :is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat {
    padding-block: 8px 2px;
    margin-block: -8px -2px;
  }
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-copy {
  flex: 0 1 auto;
  min-inline-size: 0;
  text-align: end;
  overflow-wrap: break-word;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-price {
  flex: none;
  font-size: 15px;
  line-height: 18px;
  white-space: nowrap;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-switch {
  appearance: none;
  inline-size: 42px;
  block-size: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f1ef;
  position: relative;
  flex: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--field-line);
  outline: 2px solid var(--field-line);
  outline-offset: 0;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-switch::after {
  content: "";
  position: absolute;
  inset-block-start: 2px;
  inset-inline-start: 2px;
  inline-size: 18px;
  block-size: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 16%);
  transform: translateX(0);
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-switch:checked {
  background: var(--action);
  box-shadow: none;
  outline: none;
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-switch:checked::after {
  transform: translateX(20px);
}

:is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-switch:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-inset);
}

@media (forced-colors: active) {
  :is(.sheet.is-wrap:not(.is-combo), .sheet.is-slot-edit) .extra-meat-switch {
    border: 1px solid CanvasText;
  }

  .point-search-row {
    outline: 2px solid CanvasText;
  }
}

@container wrap-segs (inline-size < 360px) {
  .sheet.is-wrap:not(.is-combo) .seg {
    padding-inline: 3px;
    font-size: 12px;
    line-height: 14px;
  }

  .sheet.is-wrap:not(.is-combo) .seg-name,
  .sheet.is-wrap:not(.is-combo) .seg-price,
  .sheet.is-wrap:not(.is-combo) .seg-status,
  .sheet.is-wrap:not(.is-combo) .seg-count {
    line-height: 14px;
  }
}

@media (max-width: 719px) {
  .sheet.is-wrap:not(.is-combo) .seg {
    min-height: 32px;
    padding-block: 4px;
    padding-inline: 3px;
  }

  .sheet:not(.is-combo):not(.is-swap) .sheet-foot {
    padding: 8px 16px max(12px, env(safe-area-inset-bottom, 0px));
    background: var(--wrap-sheet);
    box-shadow: none;
  }

  .sheet:not(.is-combo):not(.is-swap) .sheet-foot .primary {
    height: auto;
    min-height: 48px;
  }

  .sheet.is-combo .combo-foot,
  .sheet.is-combo .swap-foot {
    padding: 8px 16px max(12px, env(safe-area-inset-bottom, 0px));
    background: var(--wrap-sheet);
    box-shadow: none;
  }

  .sheet.is-combo .combo-foot .primary,
  .sheet.is-combo .swap-foot .primary {
    height: auto;
    min-height: 48px;
  }
}

@media (min-width: 1100px) {
  .sheet:not(.is-combo):not(.is-swap) {
    width: min(980px, calc(100vw - 48px));
    height: min(678px, calc(100vh - 48px));
    max-height: calc(100vh - 48px);
    padding: 18px 16px 14px;
    grid-template-columns: 480px minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 10px;
  }

  /* Боевой margin-inline-end: -24px рассчитан на padding окна 24px. У шаурмы слева и справа 16px, колонка вылезает. Зазор прокрутки внутри колонки остаётся. */
  .sheet:not(.is-combo):not(.is-swap) .sheet-col { margin-inline-end: 0; }

  .sheet:not(.is-combo):not(.is-swap)[data-kind="modifiers"] {
    height: min(678px, calc(100vh - 48px));
  }

  /* Круг целиком внутри колонки. Отрицательный top резал верх о scrollport,
     а relative увозил кнопку вместе с заголовком. */
  .sheet:not(.is-combo):not(.is-swap) .sheet-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 32px;
    background: var(--white);
  }

  .sheet:not(.is-combo):not(.is-swap) .sheet-head .sheet-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
  }

  .sheet:not(.is-combo):not(.is-swap) .sheet-head { padding-right: 40px; }

  .sheet:not(.is-combo):not(.is-swap) .sheet-photo {
    width: 480px;
    max-width: 480px;
    border-radius: 24px;
  }

  .sheet:not(.is-combo):not(.is-swap) .sheet-foot {
    margin: 0;
    padding: 0;
    min-height: 0;
    background: transparent;
    box-shadow: none;
  }

  .sheet:not(.is-combo):not(.is-swap) .sheet-foot .primary {
    height: 42px;
    min-height: 42px;
    margin: 0;
    padding: 0 16px;
  }
}

/* Простое блюдо без фото не оставляет пустую левую колонку.
   Шаурма без фото остаётся на прежней оболочке .is-wrap.
   :has() смотрит на отсутствие фото; .no-photo — тот же запасной класс. */
@media (min-width: 1100px) {
  .sheet.no-photo:not(.is-combo):not(.is-wrap) {
    grid-template-columns: minmax(0, 1fr);
    width: min(520px, calc(100vw - 48px));
    height: auto;
    max-height: min(678px, calc(100vh - 48px));
  }

  .sheet:not(.is-combo):not(.is-wrap):not(:has(.sheet-photo)) {
    grid-template-columns: minmax(0, 1fr);
    width: min(520px, calc(100vw - 48px));
    height: auto;
    max-height: min(678px, calc(100vh - 48px));
  }

  .sheet.no-photo:not(.is-combo):not(.is-wrap) .sheet-col,
  .sheet.no-photo:not(.is-combo):not(.is-wrap) .sheet-foot,
  .sheet:not(.is-combo):not(.is-wrap):not(:has(.sheet-photo)) .sheet-col,
  .sheet:not(.is-combo):not(.is-wrap):not(:has(.sheet-photo)) .sheet-foot {
    grid-column: 1;
  }

  .sheet.no-photo:not(.is-combo):not(.is-wrap) .sheet-scroll,
  .sheet:not(.is-combo):not(.is-wrap):not(:has(.sheet-photo)) .sheet-scroll {
    max-height: min(520px, calc(100vh - 180px));
  }
}

.payment-options { border: 0; min-inline-size: 0; padding: 0; margin: 8px 0; }
.payment-options > legend { padding: 0; }
.payment-option { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.payment-options label { display: flex; gap: 12px; align-items: center; min-height: 48px; flex: 1; cursor: pointer; }
.payment-option label span { overflow-wrap: anywhere; }
.payment-method-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.payment-method-label img { width: 24px; height: 24px; padding: 3px; border-radius: 5px; background: #fff; flex: none; pointer-events: none; }
.payment-options input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--action-fill); }
.payment-options input:focus-visible, .payment-forget:focus-visible, .widget-back:focus-visible {
  outline: var(--focus-ring); outline-offset: var(--focus-inset);
}
.payment-forget { min-height: 48px; font: inherit; padding: 0 6px; color: var(--muted); border: 0; background: transparent; text-decoration: underline; }
.payment-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  color: var(--ink);
  text-align: start;
}
.payment-more::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.payment-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.payment-more:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-inset); }
.payment-more-options:not([hidden]) { margin-top: 6px; }
.payment-option:has(+ .payment-consent:not([hidden])) { border-bottom: 0; }
.payment-option:has(+ .payment-consent:not([hidden])) label { padding-block-start: 16px; }
.payment-consent { padding-inline-start: 24px; font-size: 14px; }
.payment-consent label { min-height: 36px; padding-bottom: 12px; gap: 8px; }
.payment-consent input {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1.5px solid var(--field-line);
  border-radius: 50%;
  outline: 0;
  background: transparent;
}
.payment-consent input:checked { border-color: var(--action-fill); background: var(--action-fill); color: #fff; }
.payment-consent input:checked::before {
  content: "";
  width: 7px;
  height: 4px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.payment-consent input:focus-visible { outline-offset: 2px; }
@media (forced-colors: active) {
  .payment-consent input:checked { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
}
@media (pointer: coarse) {
  .payment-consent label { min-height: 44px; }
}
.widget-page { min-height: 100vh; min-height: 100dvh; background: var(--cream); color: var(--ink); }
.widget-column { width: min(100% - 32px, 460px); margin: 0 auto; padding: clamp(28px, 8vh, 80px) 0; text-align: center; }
.widget-column picture img { margin-inline: auto; }
.widget-column h1 { font: 500 18px/1.4 var(--display); margin: 24px 0 4px; }
#order-amount { font: 700 clamp(36px, 6vw, 48px)/1.12 var(--display); margin: 0 0 24px; }
.widget-panel { background: var(--white); border-radius: 20px; padding: 16px; }
.widget-panel #widget-status { margin: 0; }
.widget-panel #widget-status:empty { display: none; }
.widget-panel button { margin-top: 12px; }
.widget-panel button[hidden] { display: none; }
#payment-title:focus { outline:none; }
#payment-countdown { margin:0; color:var(--muted); }
#payment-countdown [role="timer"] { font-variant-numeric:tabular-nums; }
.widget-page:has(#payment-countdown:not([hidden])) .widget-column { width:min(100% - 32px, 320px); }
.widget-column .widget-back.primary { justify-content:center; color:var(--on-action, #fff); margin-top:20px; }
.widget-back { display: inline-flex; align-items: center; min-height: 48px; margin-top: 12px; color: var(--ink); }
@media (max-width: 351px) { .widget-panel { padding-inline: 0; } }

/* Текущий заказ */
.order-short {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 84px;
  padding: 15px 16px 15px 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.order-short-copy { display: grid; min-width: 0; gap: 6px; overflow-wrap: anywhere; }
.order-short-copy strong, .order-short.is-pay h2 { font: 700 20px/26px var(--display); }
.order-short-copy .muted { margin: 0; font: 400 14px/18px var(--font); }
.order-short.is-pay {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 0 12px;
  padding-block: 8px;
}
.order-short.is-pay h2 { margin: 0; overflow-wrap: anywhere; }
.pay-clock {
  display: inline-flex;
  justify-self: end;
  color: var(--action-ink);
  font: 700 20px/26px var(--display);
  font-variant-numeric: tabular-nums;
}
.pay-clock .is-digit { width: .62em; text-align: center; }
.pay-links {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 14px;
}
.pay-links a, .pay-links button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 400 14px/18px var(--font);
}
.pay-links a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.pay-links button { position: relative; }
.pay-links .pay-continue { color: var(--action-ink); }
.pay-links :is(a, button):hover { text-decoration: underline; }
.order-short.is-pay .pay-note { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.order-short-mark {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--action-ink);
  font-size: 22px;
}
.order-short-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--action);
  border-radius: inherit;
  opacity: .31;
}
.order-short-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.order-short-mark circle { fill: none; stroke: var(--action); stroke-width: 3; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .order-short-mark:not(.is-ready) circle { stroke-dasharray: 36 100; }
  .order-short-mark:where(.is-entering, .is-awaiting-kitchen) svg { animation: order-ring-turn 3.2s linear; }
  .order-short-mark.is-awaiting-kitchen svg { animation-iteration-count: infinite; }
}
@keyframes order-ring-turn { to { transform: rotate(1turn); } }
.order-short-mark.is-ready { --order-mark-icon: url("/img/figma/order-ready-check.svg"); }
.order-short-mark.is-cancelled {
  --order-mark-icon: url("/img/figma/icon-close-ink.svg");
  border: 2px solid currentColor;
  color: var(--muted);
}
.order-short-mark.is-cancelled::before { content: none; }
.order-short-mark:is(.is-ready, .is-cancelled) { background-color: var(--cream); }
.order-short-mark:is(.is-ready, .is-cancelled)::after {
  content: "";
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask: var(--order-mark-icon) center / contain no-repeat;
  mask: var(--order-mark-icon) center / contain no-repeat;
}
.order-short-mark.is-cancelled::after { width: 28px; height: 28px; }
@media (forced-colors: active) {
  .order-short-mark circle { stroke: LinkText; }
  .order-short-mark.is-ready::after { background-color: LinkText; forced-color-adjust: none; }
  .order-short-mark.is-cancelled::after { background-color: CanvasText; forced-color-adjust: none; }
}
.menu-col > .side-col:empty { display: none; }
.status-columns:has(.status-map[hidden]) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "heading" "pane";
}
dialog.status-drawer:has(.status-map:not([hidden])) { width: min(100%, 960px); }
.points-map-toggle, .status-map-toggle { display: none; }
.status-drawer .status-layout {
  grid-area: pane;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--pane-space) max(20px, env(safe-area-inset-bottom));
}
.status-layout > * { flex: none; }
.status-panel,.status-layout .payment-result,.status-notice { box-sizing:border-box; width:100%; margin:0; padding:16px 20px; background:var(--white); color:var(--ink); border-radius:22px; overflow-wrap:anywhere; }
.status-layout .status-panel { display:block; text-align:left; }
.status-layout .status-panel :is(h1,h2,p) { margin:0; text-align:left; }
.status-layout .status-panel h2 { font:700 20px/26px var(--display); }
.status-layout .status-panel p { font:400 15px/19px var(--font); }
.status-layout .status-summary { position:relative; padding:19px 20px 22px; }
.status-layout .status-summary h1 { font:700 29px/37px var(--display); margin-top:15px; }
.status-layout .status-summary h1 + p,.status-layout .status-summary p + p:not(.status-date) { margin-top:8px; }
.status-layout .status-summary .status-id { font:700 16px/21px var(--display); padding-right:42px; }
.status-layout .status-summary .status-date { font-size:14px; line-height:18px; margin-top:4px; }
.status-check { position:absolute; right:21px; top:19px; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#e6f5eb; }
.status-check::before { content:""; width:20px; height:20px; background:#107b45; mask:url("/img/figma/order-status-check.svg") center/contain no-repeat; }
.status-track { display:flex; list-style:none; margin:23px 0 0; padding:0; gap:5px; }
.status-track li { flex:1; min-width:0; text-align:left; font:400 12px/16px var(--font); color:var(--muted); }
.status-track [aria-current="step"] { font-family:var(--display); font-weight:700; color:var(--ink); }
.status-bar { display:block; position:relative; overflow:hidden; height:4px; border-radius:2px; margin-bottom:10px; background:var(--soft); }
.passed .status-bar { background:#eb3701; }
@media(prefers-reduced-motion:no-preference) {
  .passed .status-bar.moving { background:var(--soft); }
  .status-bar.moving::before { content:""; display:block; width:40%; height:100%; background:#eb3701; border-radius:inherit; animation:stage-travel 1.1s linear infinite; }
}
@keyframes stage-travel { from { transform:translateX(-100%); } to { transform:translateX(250%); } }
.status-map { grid-area: map; min-width: 0; min-height: 0; }
.status-map-frame { display:block; width:100%; height:100%; border:0; background:var(--cream); }
.status-below { display:grid; gap:9px; }
.status-address-line { display:block; margin:7px 0 0; font:400 16px/21px var(--font); }
.status-layout .status-address .status-time { display:block; margin:6px 0 1px; color:var(--muted); font:400 14px/18px var(--font); }
.status-layout details > summary { list-style:none; cursor:pointer; }
.status-layout details > summary::-webkit-details-marker { display:none; }
.status-place-info[open] > p { margin-top:6px; }
.status-layout .status-help { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:65px; padding-block:11px 10px; border-radius:20px; }
.status-layout .status-help h2 { font:700 17px/22px var(--display); }
.status-help summary { display:flex; align-items:center; min-height:44px; }
.status-help > h2 { align-self:center; }
.status-chat { display:inline-flex; align-items:center; min-height:44px; padding:0; border:0; background:none; color:var(--action-ink); font:400 15px/19px var(--font); }
.status-chat::after { content:""; width:14px; height:20px; background:currentColor; mask:url("/img/figma/order-help-chevron.svg") center/20px no-repeat; }
.status-layout .status-contents { padding:17px 20px 18px; border-radius:20px; }
.status-order-lines { display:grid; gap:12px; margin:14px 0 0; padding:0; list-style:none; }
.status-contents .order-copy .order-name { font:700 16px/21px var(--display); }
.status-contents .order-copy .order-caption { margin-top:5px; font:400 14px/18px var(--font); }
.status-layout .status-contents h2 { font:700 19px/24px var(--display); }
.status-receipts { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:12px; padding-top:13px; border-top:1px solid var(--line); }
.status-receipts .receipt-link { margin:0; color:var(--action-ink); text-decoration:none; font:400 15px/19px var(--font); }
.status-layout [hidden] { display:none; }
.status-phone { display:inline-flex; align-items:center; min-height:40px; color:var(--action-ink); }
@media(prefers-color-scheme:dark) {
  .status-check { background:#22382b; }
  .status-check::before { background:#83d39e; }
}
@media(max-width:719px) {
  .status-columns { --pane-space: 12px; }
  .points-map-toggle, .status-map-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 4px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
    font: 600 14px/1.2 var(--font);
    cursor: pointer;
  }
  .is-map-expanded .status-columns:has(.status-map:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "map";
  }
  .is-map-expanded .status-layout { display: none; }
  .status-drawer .status-layout { padding-inline: 8px; }
  .status-layout .status-panel { padding-inline: 12px; }
  .status-layout .status-summary h1 { font-size: 23px; line-height: 1.2; }
  .status-layout .status-panel h2 { font-size: 17px; line-height: 1.25; }
  .status-layout .status-help { flex-wrap: wrap; }
  .status-track { flex-direction: column; gap: 4px; margin-top: 16px; }
  .status-track li { display: flex; align-items: center; gap: 8px; }
  .status-bar { width: 16px; margin: 0; }
}
.current-order-slot { display: grid; gap: 8px; margin-block-end: 12px; }
.current-order-slot:empty { display:none; }

/* Цена и управление количеством образуют последнюю строку позиции. */
.cart-extra-meat, .cart-lavash { padding-inline: 8px; }
.cart-extra-meat strong { color: var(--action-ink); }
.cart-line.cart-line-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 2px 10px;
}
.cart-line-inline .cart-body { display: contents; }
.cart-line-inline .cart-photo { grid-column: 1; grid-row: 1 / span 2; }
.cart-line-inline .cart-copy, .cart-line-inline .cart-actions { grid-column: 2; }
.cart-line-inline .cart-actions { align-self: end; }

.cart-line > .mod-chips { grid-column: 1 / -1; }
.cart-line > .mod-chips .mod-chip { font-size: 13px; padding-inline: 5px; }
.cart-line > .mod-chips .mod-chip-photo { width: 20px; height: 20px; }
.cart-line-inline:has(> .mod-chips) .cart-photo {
  grid-row: 1;
  width: 64px;
  height: 64px;
}
.cart-line-inline:has(> .mod-chips) .cart-copy { align-self: center; }
.cart-line-inline > .mod-chips + .cart-actions { grid-column: 1 / -1; }

@media (max-width: 374px) {
  .cart-line-inline .cart-photo { grid-row: 1; }
  .cart-line-inline .cart-actions { grid-column: 1 / -1; }
}

/* Две равные кнопки над колонкой баннера и отдельная круглая поддержка. */
.catalog-header .top-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 8px;
  width: var(--sidebar-width, 392px);
  min-width: 0;
  margin-inline-start: auto;
}
.catalog-header .profile { min-width: 0; }
.catalog-header :is(.login-btn, .account-circle, .promo-shortcut) {
  width: 100%;
  height: 48px;
  gap: 8px;
  padding-inline: 14px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid var(--field-line);
  color: var(--ink);
  font-weight: 600;
}
.catalog-header .promo-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: currentColor;
  color: var(--action-ink);
}
.promo-shortcut-icon {
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  mask: url("/img/figma/icon-offer-tag.svg") center / contain no-repeat;
}
.promo-shortcut:disabled { opacity: .6; cursor: default; }
.catalog-header :is(.login-btn, .account-circle) > .icon { display: block; }
.catalog-header :is(.login-btn, .account-circle) > span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.catalog-header .support {
  position: relative;
  inset: auto;
  flex: none;
  width: 48px;
  height: 48px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: none;
}
.catalog-header .support .icon,
.chat-layer .chat-launcher .icon {
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url("/img/figma/icon-support-headset.svg") center / contain no-repeat;
  object-fit: none;
  object-position: -100px -100px;
}
.catalog-header .support .unread-dot {
  width: 9px;
  height: 9px;
  top: 8px;
  right: 8px;
  background: var(--action);
  box-shadow: 0 0 0 2px var(--cream);
}
@media (min-width: 720px) and (max-width: 1099px) {
  .catalog-header .top-actions { width: 320px; }
}
@media (max-width: 719px) {
  .catalog-header .top-actions { width: 300px; gap: 4px; }
  .catalog-header .support { width: 44px; height: 44px; }
  .catalog-header :is(.login-btn, .account-circle, .promo-shortcut) {
    height: 44px;
    gap: 4px;
    padding-inline: 6px;
    font-size: 14px;
  }
  .catalog-header :is(.login-btn, .account-circle) > .icon,
  .promo-shortcut-icon { width: 16px; height: 16px; }
}
@media (min-width: 1100px) {
  .wrap-wide {
    --sidebar-width: 392px;
    --column-gap: 24px;
  }
  .wrap-wide:has(> .catalog-header > .catalog-place) { --catalog-header-height: 156px; }
  .catalog-header:has(> .catalog-place) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    grid-template-rows: 48px 64px;
    row-gap: 8px;
    height: var(--catalog-header-height);
    padding-block-start: 24px;
  }
  .catalog-header > .catalog-place {
    grid-area: 2 / 2;
    margin: 0;
  }
  .wrap-wide:has(> .catalog-header > .delivery-preorder-action:not([hidden])) { --catalog-header-height: 205px; }
  .catalog-header > .delivery-preorder-action { grid-area: 3 / 2; justify-self: start; }
  .catalog-header > .chips {
    grid-area: 2 / 1;
    position: relative;
    top: auto;
    z-index: auto;
    min-width: 0;
  }
  .catalog-header:has(> .chips) + .main .category { scroll-margin-top: calc(var(--catalog-header-height) + 16px); }
  .stage > .foot { grid-column: 1; grid-row: 2; min-width: 0; padding-bottom: 56px; }
  body.has-cookie:has(.stage > .foot) { padding-bottom: 0; }
  body.has-cookie .stage > .foot { padding-bottom: calc(56px + var(--cookie-space, 0px)); }
  .wrap-wide:has(.stage > .foot) { padding-bottom: 0; }
  .stage:has(> .foot) > .side-col { grid-row: 1 / span 2; }
  .stage > .side-col {
    position: sticky;
    top: var(--catalog-header-height, 96px);
    align-self: start;
    display: flex;
    flex-direction: column;
    block-size: calc(100dvh - var(--catalog-header-height, 96px));
  }
  .catalog-header:has(> .catalog-place) + .main .side-col { padding-top: 0; }
  .catalog-cart-actions { display: contents; }
  .catalog-cart-actions > .current-order-slot {
    flex: none;
    max-block-size: 50%;
    overflow-y: auto;
  }
  .side-col .promo {
    position: relative;
    top: auto;
    flex: 0 1 620px;
    min-block-size: 0;
    margin-block-end: clamp(32px, 6dvh, 64px);
  }
  .catalog-cart-actions:has(> .current-order-slot:not(:empty)) > .promo {
    flex-grow: 1;
    margin-block-end: 8px;
  }
  .side-col .promo-frame { height: 100%; }
  .side-col .cart-link {
    width: 100%;
    margin-block-start: auto;
    position: sticky;
    bottom: 16px;
  }
  .menu-col > .cookie {
    --wrap-edge: max(28px, calc((100% - 1440px) / 2 + 28px));
    left: var(--wrap-edge);
    right: calc(var(--wrap-edge) + var(--sidebar-width) + var(--column-gap));
  }
  .side-col .promo-dots { top: auto; bottom: 14px; }
}

/* Личный кабинет */
.account-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(460px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--window-radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--lift);
  overflow: hidden;
}
.account-dialog[open] { display: flex; flex-direction: column; }
.account-dialog:modal { overscroll-behavior: contain; }
.account-dialog::backdrop { background: rgb(18 13 10 / 52%); overflow: hidden; overscroll-behavior: contain; }
.account-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 0;
  flex: none;
}
.account-panel-top:has(.account-back[hidden]) {
  position: absolute;
  inset: 0 0 auto auto;
  z-index: 1;
}
.account-close, .account-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}
.account-close { margin-inline-start: auto; }
.account-back[hidden], .account-email-form .field-error:empty, .account-birthday-form .field-error:empty, .ads-copy .field-error:empty { display: none; }
.account-panel-top .icon { height: 22px; width: 22px; }
.account-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 20px;
  min-height: 0;
  padding: 22px 24px 24px;
  overflow: auto;
  overscroll-behavior: contain;
}
.account-panel-body > * { flex-shrink: 0; }
.offers-body { gap: 18px; }
.offers-title { padding-inline-end: 54px; margin: 5px 0 2px; font: 700 30px/1.1 var(--display); }
.offers-caption { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.offers-loading { margin: 0; color: var(--muted); }
.offers-empty { margin-block-start: 8px; }
.offers-empty-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(56px, 24%);
  border-radius: 22px;
  overflow: hidden;
  background: color-mix(in srgb, var(--action) 10%, var(--white));
}
.offers-empty-copy { padding: 24px 18px; }
.offers-empty-copy h2 { margin: 0; font: 700 21px/1.2 var(--display); }
.offers-empty-copy p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.offers-empty-stub {
  position: relative;
  display: grid;
  place-items: center;
  border-inline-start: 1px dashed color-mix(in srgb, var(--action-ink) 65%, transparent);
  color: var(--action-ink);
}
.offers-empty-stub::before,
.offers-empty-stub::after {
  position: absolute;
  inset-inline-start: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  content: "";
}
.offers-empty-stub::before { inset-block-start: 0; transform: translateY(-50%); }
.offers-empty-stub::after { inset-block-end: 0; transform: translateY(50%); }
.offers-empty-stub .promo-shortcut-icon { width: 32px; height: 32px; transform: rotate(-9deg); }
.offer-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.offer-card {
  display: grid;
  grid-template-columns: minmax(64px, 28%) minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--action) 25%, var(--line));
  background: var(--cream);
}
.offer-art {
  display: grid;
  place-items: center;
  margin: 14px 0 14px 14px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: color-mix(in srgb, var(--action) 10%, var(--white));
  color: var(--action-ink);
}
.offer-art > * { grid-area: 1 / 1; }
.offer-art .promo-shortcut-icon { width: 28px; height: 28px; }
.offer-art:has(.offer-photo) .promo-shortcut-icon { visibility: hidden; }
.offer-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.offer-copy { min-width: 0; padding: 14px 15px 14px 0; }
.offer-title { margin: 0 0 8px; font: 700 19px/1.25 var(--display); overflow-wrap: anywhere; }
.offer-detail { margin: 4px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.offer-reward {
  display: inline-block;
  margin-top: 6px;
  color: var(--action-ink);
  font: 700 14px/1.15 var(--display);
  overflow-wrap: anywhere;
}
.offer-stub { position: relative; grid-column: 1 / -1; padding: 11px 15px 13px; }
.offer-stub::before {
  content: "";
  position: absolute;
  inset: 0 8px auto;
  border-top: 1px dashed var(--field-line);
}
.offer-stub::after {
  content: "";
  position: absolute;
  inset: -6px -1px auto;
  height: 12px;
  background:
    radial-gradient(circle at left center, var(--white) 5px, transparent 6px) left / 8px 12px no-repeat,
    radial-gradient(circle at right center, var(--white) 5px, transparent 6px) right / 8px 12px no-repeat;
  pointer-events: none;
}
.offer-use { width: 100%; min-height: 44px; padding: 8px 14px; font-size: 14px; }
.offer-instructions { padding-top: 12px; }
.offer-instructions p { margin: 0 0 8px; font-size: 14px; }
.offer-code { display: inline-block; padding: 8px 10px; background: var(--white); border-radius: 8px; font-weight: 700; overflow-wrap: anywhere; }
.offer-feedback:empty { display: none; }
.offer-app-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.offer-app-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 9px; font-size: 13px; }
@media (max-width: 374px) {
  .offers-body { padding-inline: 16px; }
  .offer-card { column-gap: 10px; }
  .offer-title { font-size: 17px; }
  .offer-reward { max-width: 78px; font-size: 13px; }
}
.account-overview { padding-top: 0; }
.account-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 -24px;
  padding: 32px 72px 26px 24px;
  background: linear-gradient(125deg, color-mix(in srgb, var(--action) 9%, var(--white)), var(--white));
  border-bottom: 1px solid var(--line);
}
.account-mark { flex: none; width: 40px; height: 40px; }
.account-caption, .account-phone { color: var(--muted); margin: 0; font-size: 14px; }
.account-name, .account-history h2 { color: var(--ink); margin: 0; font-family: var(--display); }
.account-name { font-size: 30px; font-weight: 750; line-height: 1.16; overflow-wrap: anywhere; }
.account-caption { margin-bottom: 4px; }
.account-phone { margin-top: 5px; font-variant-numeric: tabular-nums; }
.account-history-head, .account-latest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-history h2 { font-size: 20px; letter-spacing: -.025em; }
.account-history-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--action-ink);
  font-size: 14px;
  text-decoration: none;
}
.account-history-box {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.account-history-note, .account-latest { padding: 18px; min-height: 86px; }
.account-history-note { display: flex; align-items: center; gap: 12px; }
.account-history-note .icon { width: 28px; height: 28px; }
.account-history-note p { margin: 0; color: var(--muted); }
.account-latest { color: var(--ink); text-decoration: none; border-radius: inherit; }
.account-order-summary { display: grid; gap: 5px; }
.account-order-summary > span { color: var(--muted); font-size: 14px; }
.account-order-price { white-space: nowrap; }
.account-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 100px;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
  font: 700 16px/1.25 var(--display);
  text-decoration: none;
  text-align: start;
  cursor: pointer;
}
.account-tile::before { content: ""; display: block; }
.account-addresses::before {
  width: 16px;
  height: 16px;
  margin: 1px 0 3px 3px;
  border: 2px solid var(--action-ink);
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
  background: radial-gradient(circle, var(--action-ink) 2px, transparent 2.5px);
}
.account-cards-link::before {
  width: 24px;
  height: 17px;
  margin: 2px 0;
  border: 2px solid var(--action-ink);
  border-radius: 4px;
  background: linear-gradient(to bottom, transparent 3px, var(--action-ink) 3px 5px, transparent 5px);
}
.account-actions { display: grid; }
.account-actions > * {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: 0;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 650 16px/1.3 var(--display);
  cursor: pointer;
}
.account-personal::before {
  content: "";
  width: 24px;
  height: 24px;
  background: center / 20px no-repeat url("/img/figma/icon-pencil.svg");
}
.account-actions > *::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 6px 0 auto;
  border: solid var(--muted);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.account-panel-body > .cabinet-leave { min-height: 44px; align-self: flex-start; cursor: pointer; }
.account-session-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: auto; }
.account-session-actions .cabinet-leave { min-height: 44px; cursor: pointer; }
.account-session-actions .account-delete { color: var(--action-ink); }
.account-session-actions .field-error { flex-basis: 100%; }
.account-session-actions .field-error:empty { display: none; }
.account-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.account-fields:has(> .account-birthday-form) { grid-template-columns: minmax(0, 1fr); }
.account-fields .profile-field { padding: 12px 14px; height: auto; min-height: 76px; }
.account-fields .profile-value { font-size: 16px; }
.account-email-form, .account-birthday-form { display: grid; gap: 10px; }
.account-email-form input, .account-birthday-form input { color: var(--ink); }
.account-email-form .primary, .account-birthday-form .primary { margin: 0; }
.account-birthday-form { grid-column: 1 / -1; min-width: 0; }
.account-birthday-form input { min-width: 0; }
.account-birthday-note { margin: 0; color: var(--muted); font-size: 14px; }
.account-panel-body .order-card { padding: 16px; }
.account-panel-body .order-foot { flex-wrap: wrap; }
.account-panel-body .order-repeat { width: auto; max-width: 100%; }
.account-dialog :focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-inset); }
@media (hover: hover) {
  .account-tile:hover, .account-close:hover, .account-back:hover { background-color: var(--soft); }
  .account-history-link:hover, .account-actions > :hover, .account-latest:hover { color: var(--action-ink); }
}
@media (prefers-color-scheme: dark) {
  .account-panel-top .icon { filter: invert(1); }
}
@media (max-width: 719px) {
  .account-dialog {
    inset: 0;
    width: 100%;
    height: 100dvh;
    padding-top: env(safe-area-inset-top);
  }
  .account-panel-body { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .account-panel-top:has(.account-back[hidden]) { top: env(safe-area-inset-top); }
  .account-dialog.swipe-dragging { translate: 0 var(--swipe-pull, 0px); }
}
@media (prefers-reduced-motion: no-preference) {
  .account-dialog { transition: transform 220ms ease-out; }
  .account-dialog::backdrop { transition: background-color 220ms ease-out; }
  @starting-style {
    .account-dialog[open]:where(:not(.screen-restored)) { transform: translateX(100%); }
    .account-dialog[open]:where(:not(.screen-restored))::backdrop { background-color: transparent; }
  }
  .account-dialog.account-leaving { transform: translateX(100%); }
  .account-dialog.account-leaving::backdrop { background-color: transparent; }
}

/* Полноэкранные маршруты используют снимок предыдущей страницы, пока новая выезжает. */
@media (prefers-reduced-motion: no-preference) {
  :root[data-section-motion] :is(.account-dialog, .status-drawer):modal { view-transition-name: guest-panel; }
  :root[data-page-motion] :is(.account-dialog, .status-drawer, .cart-panel, .auth-dialog) { transition: none; }
  /* В снимок каталога при смене раздела сразу попадает установившееся затемнение. */
  :root[data-section-motion] .account-dialog::backdrop { transition: none; }
  :root[data-page-motion]::view-transition-group(*) { animation-duration: 220ms; }
  :root[data-page-motion]::view-transition-image-pair(*) { isolation: isolate; }
  :root[data-page-motion]::view-transition-old(*),
  :root[data-page-motion]::view-transition-new(*) { animation: none; mix-blend-mode: normal; }
  :root[data-page-motion="forward"]:not([data-section-motion])::view-transition-new(root),
  :root[data-page-motion="forward"]::view-transition-new(guest-panel) { animation: panel-slide 220ms ease-out backwards; }
  :root[data-page-motion="back"]:not([data-section-motion])::view-transition-old(root),
  :root[data-page-motion="back"]::view-transition-old(guest-panel) { z-index: 1; animation: panel-slide 220ms ease-out reverse forwards; }
  html:has(.widget-page), .widget-page { overflow-x: clip; }
  .widget-column { animation: panel-slide 220ms ease-out; }
  .widget-column.widget-leaving { animation: panel-slide-out 220ms ease-out forwards; }
  .account-section-enter { animation: panel-slide 220ms ease-out; }
  .account-section-exit { animation: panel-slide 220ms ease-in reverse forwards; }
}
@keyframes panel-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes panel-slide-out { to { transform: translateX(100%); } }

.featured-promotion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  width: 100%;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.featured-promotion[hidden] { display: none; }
.featured-promotion .promo-shortcut-icon {
  color: var(--action-ink);
  width: 32px;
  height: auto;
  align-self: stretch;
}

.featured-shine { display: none; }
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  @supports (offset-path: inset(1px round 15px)) and (mask-composite: exclude) {
    .featured-shine {
      display: block;
      position: absolute;
      inset: -1px;
      padding: 2px;
      border-radius: inherit;
      pointer-events: none;
      mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      mask-composite: exclude;
    }
    .featured-shine::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 124px;
      height: 34px;
      background: radial-gradient(ellipse, #ffe8aa 4%, #ecaa43 32%, rgb(231 127 46 / 62%) 55%, transparent 74%);
      offset-path: inset(1px round 15px);
      animation: featured-shine-lap 10s linear infinite;
    }
    .featured-promotion:focus-visible .featured-shine::before,
    [inert] .featured-shine::before { animation-play-state: paused; }
  }
}
@keyframes featured-shine-lap { to { offset-distance: 100%; } }

.featured-details {
  --coupon-padding: clamp(18px, 5vw, 28px);
  inline-size: min(436px, calc(100% - 32px));
  max-inline-size: none;
  max-block-size: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  overflow-wrap: anywhere;
  overflow: auto;
  overscroll-behavior: contain;
  filter: drop-shadow(0 12px 26px rgb(0 0 0 / 25%));
}
.featured-details::backdrop {
  background: rgb(0 0 0 / 56%);
  overflow: hidden;
  overscroll-behavior: contain;
}
.featured-details p { margin: 0; }
.featured-coupon-hero {
  padding: 16px var(--coupon-padding) 24px;
  background: linear-gradient(120deg, #a92706, var(--action-fill));
  color: #fff;
}
.featured-coupon-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 12px;
}
.featured-coupon-mark {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid rgb(255 255 255 / 57%);
  border-radius: 14px;
  rotate: -8deg;
}
.featured-coupon-mark .promo-shortcut-icon { inline-size: 22px; block-size: 22px; }
.featured-coupon-close {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  margin-inline-end: -4px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.featured-coupon-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.featured-coupon-close .icon { filter: none; }
.featured-coupon-hero h1 {
  margin: 0;
  font: 800 clamp(24px, 5.6vw, 32px)/1.14 var(--display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.featured-coupon-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px var(--coupon-padding) var(--coupon-padding);
  background: var(--white);
}
.featured-coupon-body::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: var(--coupon-padding);
  border-block-start: 1px dashed var(--field-line);
}
@supports (mask-composite: intersect) {
  .featured-coupon-hero {
    mask-image: radial-gradient(circle at 0 100%, transparent 10px, #000 11px),
      radial-gradient(circle at 100% 100%, transparent 10px, #000 11px);
    mask-composite: intersect;
  }
  .featured-coupon-body {
    mask-image: radial-gradient(circle at 0 0, transparent 10px, #000 11px),
      radial-gradient(circle at 100% 0, transparent 10px, #000 11px);
    mask-composite: intersect;
  }
}
.featured-coupon-conditions { white-space: pre-line; }
.featured-coupon-terms {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.featured-coupon-terms time { color: var(--ink); font-weight: 700; }
.featured-coupon-code {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 12px;
  border: 1px dashed var(--field-line);
  border-radius: 14px;
  background: var(--cream);
  text-align: center;
}
.featured-coupon-code span { color: var(--muted); font-size: 13px; line-height: 18px; }
.featured-coupon-code strong {
  max-inline-size: 100%;
  font: 800 25px/1.18 var(--display);
  letter-spacing: .08em;
  user-select: all;
}
.featured-coupon-app, .featured-coupon-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}
.featured-details .featured-coupon-status:not(:empty) { margin-block-start: 8px; }
.featured-coupon-actions .offer-use { margin: 0; }
@media (forced-colors: active) {
  .featured-details { border: 1px solid CanvasText; }
  .featured-coupon-close { border: 1px solid #111; forced-color-adjust: none; }
}

.vpn-notice {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 8px auto;
  padding: 4px 6px 4px 12px;
  background: #a72c0d;
  color: #fff;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
}
.vpn-symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
}
.vpn-notice button {
  flex: none;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
}

.sheet-ogni-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.sheet [data-sheet-add] > .ogni-coin { margin-inline-end: 5px; }
.ogni-coin {
  flex: none;
  object-fit: contain;
}
.catalog-header .ogni-shortcut {
  color: var(--ink);
  border-color: var(--field-line);
  font-variant-numeric: tabular-nums;
}
/* Две карточки каталога по 230px, промежуток 16px и поля по 16px. */
.account-dialog.ogni-dialog { width: min(508px, 100%); }
.ogni-body { gap: 16px; padding-inline: 16px; overflow: hidden; }
.ogni-body > .ogni-tab-panel {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}
.ogni-tab-panel > * { flex-shrink: 0; }
.ogni-body > .ogni-tab-panel[hidden] { display: none; }
.ogni-body > .offers-body { gap: 18px; }
.ogni-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(262px, calc(100% - 52px));
  padding: 3px;
  border-radius: 14px;
  background: var(--cream);
}
.ogni-nav button {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  font: inherit;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.ogni-nav [aria-selected="true"] {
  background: var(--white);
  color: var(--action-ink);
  font-weight: 700;
}
.ogni-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 16px;
  background: color-mix(in srgb, #e6a435 14%, var(--cream));
}
.ogni-summary p { margin: 0; }
.ogni-summary .ogni-balance {
  margin-inline-start: auto;
  color: var(--ink);
  font: 700 21px/1.15 var(--display);
}
.ogni-login { margin-block-start: 4px; }
.ogni-status { margin: 0; color: var(--muted); }
.ogni-status:empty { display: none; }
.ogni-retry { align-self: flex-start; }
.ogni-rewards > .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ogni-rewards .card { width: 100%; }
.ogni-rewards .card:disabled { cursor: default; }
.ogni-rewards .card:disabled::after { content: none; }
.ogni-rewards .card:disabled .photo img { filter: grayscale(1); }
.ogni-rewards .card:disabled .buy {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: auto;
  gap: 0;
}
.ogni-lock-reason { font-size: .8125rem; line-height: 1.3; }
.ogni-card-price { display: flex; align-items: center; gap: 4px; }
.ogni-card-plus {
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
}

@media (min-width: 1440px) {
  .ogni-rewards .card:not(.is-photo) > .photo,
  .ogni-rewards .card.is-photo::before { max-width: 100%; }
}
.ogni-detail {
  width: min(410px, calc(100% - 28px));
  padding: 20px;
  border: 1px solid var(--field-line);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
}
.ogni-detail::backdrop { background: rgb(18 13 10 / 52%); }
.ogni-detail-copy h2 { margin: 0 0 8px; }
.ogni-detail-copy p { margin: 8px 0 0; color: var(--muted); }
.ogni-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 16px;
}
.ogni-pick-btn { flex: 1 1 auto; justify-content: center; }
.ogni-picked {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--field-line);
  background: var(--cream);
}
.ogni-picked[hidden] { display: none; }
.ogni-picked-copy { min-width: 0; flex: 1 1 auto; }
.ogni-picked-copy strong { display: block; color: var(--ink); font-size: 14px; }
.ogni-picked-copy p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.ogni-picked-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-shrink: 0; }
.ogni-picked-go { min-height: 44px; padding-inline: 12px; font-size: 14px; }
.ogni-picked-remove { min-height: 44px; padding-inline: 10px; font-size: 13px; }
.ogni-menu-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block: 4px 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--field-line);
  background: var(--cream);
}
.ogni-menu-copy {
  min-width: 180px;
  flex: 1 1 200px;
}
.ogni-menu-copy strong {
  display: block;
  color: var(--ink);
  font: 700 16px/1.25 var(--display);
}
.ogni-menu-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.ogni-menu-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.ogni-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 46px;
  margin: 0;
  padding-inline: 16px;
  font-size: 14px;
  white-space: nowrap;
}
.sheet-ogni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block: 10px 4px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--field-line);
  background: var(--cream);
}
.sheet-ogni[hidden] { display: none; }
.sheet-ogni-copy {
  min-width: 150px;
  flex: 1 1 170px;
}
.sheet-ogni-copy strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}
.sheet-ogni-copy p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.sheet-ogni .sheet-ogni-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 46px;
  margin: 0;
  margin-inline-start: auto;
  padding-inline: 16px;
  font-size: 14px;
  white-space: nowrap;
}
.checkout-ogni-wrap[hidden],
.checkout-ogni-wrap > [hidden] {
  display: none;
}
.cart-ogni-open {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--field-line);
  background: color-mix(in srgb, #e6a435 12%, var(--cream));
  color: var(--ink);
  font: 600 14px/1.2 var(--sans);
  cursor: pointer;
  text-align: start;
}
.cart-ogni-open .icon { margin-inline-start: auto; width: 16px; height: 16px; opacity: 0.72; }
.cart-ogni-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-ogni-amount {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  white-space: nowrap;
  color: light-dark(#79500c, #f7c768);
}
.cart-ogni-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: light-dark(#fff0cb, #413017);
}
.phone-total .cart-ogni-amount { color: #f7c768; }
.cart-foot:has(.cart-pay-label) .cart-summary-row::after { content: none; }
.cart-foot:has(.cart-pay-label) .cart-foot-actions {
  padding-block-start: 10px;
  border-block-start: 1px solid var(--line);
}
.cart-pay-label { display: block; font-size: 14px; line-height: 20px; }
.checkout-ogni-saving dd { color: var(--ink); font-weight: 700; }
.account-ogni {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--cream);
}
.account-ogni .icon { margin-inline-start: auto; width: 16px; height: 16px; }

@media (max-width: 719px) {
  .ogni-body { padding-inline: 12px; }
  .ogni-picked { flex-wrap: wrap; }
  .ogni-menu-bar { margin-block: 12px 14px; padding: 12px; }
  .ogni-menu-actions { width: 100%; }
  .ogni-menu-btn { flex: 1 1 auto; justify-content: center; }
  .sheet-ogni .sheet-ogni-btn { width: 100%; justify-content: center; }
}
