/* ══════════════════════════════════════════════════════════════════════
   Цветочная витрина: карточка 4:5, цена «от …», полка «Готовы сейчас»,
   бюджет и фильтры, подробности букета с размерами, лист заказа одной
   формой, «текст скопирован», подбор.

   Подключается последним и перебивает общие правила карточки кафе. Цвета —
   только токены палитры (--ink, --on-bg, --chip-*, --accent-strong), поэтому
   любой шаблон и любые цвета владельца остаются читаемыми. Движение — только
   transform и opacity; prefers-reduced-motion гасит общее правило tokens.css.
   ══════════════════════════════════════════════════════════════════════ */

.btn-lg {
  min-height: 56px;
  font-size: 1.02rem;
}

/* ─── Карточка 4:5 ───────────────────────────────────────────────────── */

.grid {
  gap: 22px 14px;
}
.card {
  align-items: stretch;
  text-align: left;
}
.card__media {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
}
.card__body {
  align-items: flex-start;
  gap: 2px;
  padding: 10px 2px 0;
}
.card__name {
  text-align: left;
}
.card__portion {
  white-space: normal;
}
.card__foot {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}
.card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.card--unavailable .card__price {
  opacity: 0.6;
}
:root .card__foot .card__price {
  font-family: var(--font-display);
  font-weight: 700;
}

/* «+» — круг 44px; в подробностях кнопка широкая (buy--large). */
.buy:not(.buy--large) .buy__add {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--on-accent);
}
:root:not([data-card-style="list"]) .buy:not(.buy--large) .buy__add {
  min-height: 44px;
  padding: 0;
}
.buy:not(.buy--large) .buy__plus {
  width: 18px;
  height: 18px;
}
.buy__choose {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--on-bg);
  font-size: 0.9rem;
  font-weight: 600;
}
.card__notify {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card--unavailable .card__media {
  opacity: 0.6;
}
.card--unavailable .card__img,
.card--unavailable .card__placeholder {
  filter: saturate(0.25);
}
.badge--sold {
  --badge-bg: var(--danger);
  --badge-fg: #fff;
}
.badge--qty {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--on-accent);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.74rem;
}
.card__media--empty svg {
  width: 38%;
  height: 38%;
}
.skeleton--card {
  aspect-ratio: 0.8;
}

@keyframes ship-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ─── Шапка: доставка сегодня ────────────────────────────────────────── */

.hero__ship {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  margin: 6px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--hero-band-pill, rgba(255, 255, 255, 0.2));
  color: var(--hero-band-ink, inherit);
  font-size: 0.8rem;
  font-weight: 600;
  animation: ship-in 320ms var(--ease-out, ease-out);
}
.hero__ship[hidden] {
  display: none;
}
.hero__ship-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.hero__ship-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.hero__ship[data-state="open"] .hero__ship-dot {
  animation: pulse 2.4s ease-in-out infinite;
}
.hero__ship[data-state="closed"] .hero__ship-dot {
  opacity: 0.45;
}
.hero__ship[data-state="off"] .hero__ship-dot {
  display: none;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__ship,
  .hero__ship-dot {
    animation: none;
  }
}

/* ─── Полка «Готовы сейчас» ──────────────────────────────────────────── */

.shelf {
  position: relative;
  max-width: calc(var(--page-max) + var(--page-gutter) * 2);
  margin: 8px auto 0;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line-bg);
}
.shelf[hidden] {
  display: none;
}
.shelf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 8px var(--page-gutter) 6px;
}
.shelf__title {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--on-bg);
}
.shelf__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent-on-bg);
  animation: pulse 2.4s ease-in-out infinite;
}
.shelf__sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--on-bg-soft);
}
.shelf__track {
  display: flex;
  gap: 12px;
  padding: 4px var(--page-gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--page-gutter);
  scrollbar-width: none;
}
.shelf__track::-webkit-scrollbar {
  display: none;
}
.card--shelf {
  flex: none;
  width: 148px;
  min-width: 0;
  max-width: 148px;
  scroll-snap-align: start;
}
.card--shelf .card__body {
  min-width: 0;
}
.card--shelf .card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 0.9rem;
}
.card--shelf .card__note {
  display: none;
}
.shelf__tail,
.shelf__more {
  flex: none;
  align-self: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--on-bg);
  font-weight: 600;
}
.shelf__more {
  display: flex;
  align-items: center;
  background: none;
  color: var(--on-bg-soft);
  font-weight: 400;
  max-width: 160px;
}
@media (prefers-reduced-motion: reduce) {
  .shelf__title::before {
    animation: none;
  }
}
/* Кнопка текст не переносит; цена и кнопка в узкой карточке — колонкой. */
.buy__choose,
.card__notify {
  white-space: nowrap;
  flex-shrink: 0;
}
.card--shelf .card__foot {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.card--shelf .card__foot .card__price {
  text-align: center;
}
.card--shelf .card__foot .buy,
.card--shelf .card__foot .buy__choose {
  width: 100%;
  justify-content: center;
}
.card--shelf .card__foot .buy:has(.buy__add) {
  width: auto;
  align-self: center;
}
.card__foot {
  flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .card--shelf {
    width: 200px;
    max-width: 200px;
  }
  .shelf__track {
    padding-inline: max(var(--page-gutter), calc((100% - var(--page-max)) / 2));
  }
}

/* ─── Бюджет, фильтры ────────────────────────────────────────────────── */

.bar-filter {
  position: relative;
}
.bar-filter[hidden] {
  display: none;
}
.bar-search {
  display: inline-flex;
  gap: 6px;
}
.bar-filter__count,
.bar-filter__count[hidden] {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.bar-filter__count[hidden] {
  display: none;
}
.budget {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
}
.budget[hidden] {
  display: none;
}
.budget__pick {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.budget__track {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.budget__track::-webkit-scrollbar {
  display: none;
}
.chip--budget,
.chip--tag,
.chip--window {
  min-height: 44px;
  padding: 6px 16px;
}
.fbar__drop {
  display: none;
}
@media (min-width: 1024px) {
  .fbar__drop:not([hidden]) {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--chip-line, var(--line-strong));
    border-radius: 999px;
    background: var(--chip-bg, var(--surface));
    color: var(--chip-ink, var(--ink));
    cursor: pointer;
  }
  .fbar__drop[data-count]:not([data-count="0"]) {
    border-color: var(--chip-active-bg, var(--accent));
  }
  .bar-filter {
    display: none;
  }
}
.fsum {
  margin: 0 0 12px;
}
.fsum[hidden] {
  display: none;
}
.fsum__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--on-bg);
}
.fsum__reset {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--accent-on-bg);
  font-weight: 600;
  cursor: pointer;
}
.fsum__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fsum__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--chip-line, var(--line-strong));
  border-radius: 999px;
  background: var(--chip-bg, var(--surface));
  color: var(--chip-ink, var(--ink));
  font-size: 0.85rem;
  cursor: pointer;
}
.fsheet__group {
  display: grid;
  gap: 10px;
}
.fsheet__heading {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.fsheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fsheet__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
}
.dot {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 72px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 0.74rem;
  cursor: pointer;
}
.dot__swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dot);
  color: var(--dot-ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.dot[data-color="mix"] .dot__swatch {
  background: conic-gradient(#c62840, #f2cb3d, #5b8fd4, #ee9bb3, #c62840);
}
.dot__swatch svg {
  display: none;
}
.dot[aria-pressed="true"] .dot__swatch {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.dot[aria-pressed="true"] .dot__swatch svg {
  display: block;
}
.dot__label {
  text-align: center;
  line-height: 1.2;
}
.isheet--filters .isheet__btn.is-disabled {
  opacity: 0.55;
}
.fpop {
  position: absolute;
  z-index: 60;
  width: 320px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.switch-row__text {
  display: grid;
  gap: 2px;
}
.switch-row__title {
  font-weight: 600;
}
.switch-row__hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.switch-row__input {
  flex: none;
  width: 44px;
  height: 26px;
  accent-color: var(--accent-strong);
}

/* ─── Подробности букета ─────────────────────────────────────────────── */

.sheet__hero--bouquet {
  display: block;
  aspect-ratio: auto;
  max-height: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
@media (min-width: 720px) {
  .sheet__hero--bouquet {
    aspect-ratio: auto;
    max-height: none;
  }
}
.sheet__hero--bouquet .sheet__figure {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62dvh;
  background: var(--surface-raised);
}
.sheet__hero--bouquet .sheet__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sheet__hero--bouquet .gallery[data-variant="sheet"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-width: none;
}
.sheet__figure--empty {
  display: grid !important;
  place-items: center;
  color: var(--accent-quiet);
}
.sheet__figure--empty svg {
  width: 30%;
}
.sheet__price {
  font-size: clamp(2.2rem, 11vw, 3rem);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.sizes {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px;
}
.sizes__opt {
  display: grid;
  flex: none;
  place-content: center;
  justify-items: center;
  gap: 2px;
  min-width: 76px;
  min-height: 56px;
  padding: 6px 14px;
  border: 1px solid var(--chip-line, var(--line-strong));
  border-radius: 16px;
  background: var(--chip-bg, var(--surface));
  color: var(--chip-ink, var(--ink));
  scroll-snap-align: start;
  cursor: pointer;
}
.sizes__opt[aria-checked="true"] {
  background: var(--chip-active-bg, var(--accent));
  border-color: var(--chip-active-bg, var(--accent));
  color: var(--chip-active-ink, var(--on-accent));
}
.sizes__opt[aria-disabled="true"] {
  opacity: 0.55;
  text-decoration: line-through;
  cursor: not-allowed;
}
.sizes__name {
  font-size: 0.94rem;
  font-weight: 600;
}
.sizes__hint {
  font-size: 0.74rem;
}
.sheet__dock {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 12px var(--page-gutter) calc(12px + var(--safe-b, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sheet__dock .btn {
  min-height: 48px;
}
.sheet__dock .buy--large .buy__add {
  background: var(--accent-strong);
  color: var(--on-accent);
}
.sheet__dock .buy--large .buy__label {
  font-size: 1.05rem;
  font-weight: 700;
}
.buy[data-just="true"] .buy__add {
  display: inline-flex;
}
.buy[data-just="true"] .step {
  display: none;
}
.sheet__wa {
  border: 1px solid var(--accent-strong);
  color: var(--accent-strong);
}
/* ─── Полки в подробностях: «Дополнить подарок» и «Похожие букеты» (N8) ──
   Причина прежней поломки: лента была flex-строкой, а у карточки стояли
   `min-width: 0` и сжатие по умолчанию — четыре-шесть карточек втискивались в
   ширину листа (≈75px), имя рвалось по слогам (`overflow-wrap: anywhere`), цена
   шла в три строки, а `align-items: start` из menu.css давал разную высоту. Сама
   секция — элемент сетки `.sheet__body` без `min-width: 0`: широкая лента
   растягивала лист вбок. Теперь это полка, как «Хиты»: ширина карточки
   постоянная, лента листается, край следующей карточки виден. */
.sheet__related {
  min-width: 0;
}
.sheet__related-list {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-inline: calc(var(--page-gutter) * -1);
  padding: 2px var(--page-gutter) 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--page-gutter);
  scrollbar-width: none;
}
.sheet__related-list::-webkit-scrollbar {
  display: none;
}
.sheet__related-list .related-card {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 148px;
  min-width: 148px;
  max-width: 148px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: none;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.sheet__related-list .related-card:hover {
  background: none;
}
.sheet__related-list .related-card:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}
.sheet__related-list .related-card picture {
  display: block;
  width: 100%;
}
.sheet__related-list .related-card__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--surface-raised, var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--dur-fast, 160ms) var(--ease-out, ease-out);
}
@media (hover: hover) {
  .sheet__related-list .related-card:hover .related-card__media {
    transform: translateY(-2px);
  }
}
/* Имя — две строки с многоточием; слово рвётся, только если само не влезает в
   строку. Две строки держатся всегда, поэтому цены в ряду стоят на одной линии. */
.sheet__related-list .related-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.25em);
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.sheet__related-list .related-card__price {
  margin-top: auto;
  padding-top: 4px;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (min-width: 1024px) {
  .sheet__related-list .related-card {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }
}
@media (min-width: 720px) {
  .sheet {
    width: min(960px, 94vw);
  }
  .sheet__scroll {
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    max-height: 88dvh;
  }
  .sheet__scroll .sheet__hero--bouquet {
    grid-row: 1 / span 2;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  }
  .sheet__scroll .sheet__body {
    overflow-y: auto;
    min-height: 0;
  }
  .sheet__dock {
    border-top: 1px solid var(--line);
  }
}

/* ─── Лист заказа ────────────────────────────────────────────────────── */

.order-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.order-hint[hidden] {
  display: none;
}
.order-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.order-label[hidden],
.windows[hidden],
.order-delivery[hidden],
.order-pickup[hidden] {
  display: none;
}
.order-pickup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.order-pickup__line {
  margin: 0;
}
.order-pickup__route {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-strong);
  font-weight: 600;
}
.order-delivery {
  display: grid;
  gap: 10px;
}

.windows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip--window:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.segmented__btn[aria-disabled="true"] {
  opacity: 0.45;
}
.windows + .field-error {
  margin: 0;
}
.order-count {
  justify-self: end;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.order-count[data-near="true"] {
  color: var(--danger);
}
.cart-sums {
  display: grid;
  gap: 4px;
}
.cart-sum {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.cart-sum[hidden] {
  display: none;
}

.isheet--cart .isheet__foot {
  max-height: 46dvh;
  overflow-y: auto;
}
@media (min-width: 1024px) {
  .isheet--cart {
    width: 520px;
    max-height: none;
    height: 100dvh;
    margin: 0 0 0 auto;
    border-radius: 0;
    opacity: 1;
    transform: translateX(100%);
  }
  .isheet--cart[data-open="true"] {
    transform: none;
  }
}

/* «Текст скопирован» */
.handoff {
  display: grid;
  gap: 14px;
}
.handoff__check {
  display: flex;
  align-items: center;
  gap: 12px;
}
.handoff__tick {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--on-accent);
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: tick 420ms 120ms ease-out forwards;
}
@keyframes tick {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .handoff__tick {
    animation: none;
    stroke-dashoffset: 0;
  }
}
.handoff__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.handoff__steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.handoff__preview {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  resize: none;
}
.handoff__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ─── Подбор ─────────────────────────────────────────────────────────── */

.pick__dots {
  display: flex;
  gap: 6px;
}
.pick__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--line-strong);
  transition: width 280ms ease, background-color 280ms ease;
}
.pick__dot.is-on {
  width: 24px;
  background: var(--accent-strong);
}
.pick__step {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.pick__q,
.pick__result {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.pick__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pick__tile {
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease;
}
.pick__tile[data-chosen="true"] {
  background: var(--chip-active-bg, var(--accent));
  color: var(--chip-active-ink, var(--on-accent));
}
.pick__stage {
  animation: pick-step 280ms var(--ease-drawer, ease-out);
}
@keyframes pick-step {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
}
.pick__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}
@media (prefers-reduced-motion: reduce) {
  .pick__stage {
    animation: none;
  }
}

/* ─── Мелочи, чтобы не было горизонтальной прокрутки на 360px ───────── */

.page,
.section,
.grid > *,
.card__body {
  min-width: 0;
}
@media (max-width: 400px) {
  .sheet__price {
    font-size: 2.4rem;
  }
}
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

/* Нижняя часть листа заказа не шире листа: кнопки каналов переносятся. */
.isheet--cart .isheet__foot {
  grid-template-columns: minmax(0, 1fr);
}
.isheet--cart .isheet__foot > *,
.cart-sums > * {
  min-width: 0;
}

.cart-note {
  overflow-wrap: anywhere;
}

/* ══════════════════════════════════════════════════════════════════════
   Карточка товара «как в образце» (стиль photo; список и компактные — свои).
   Сетка: кадр 4:5, название по центру (до 2 строк), серая подпись размера,
   ниже ОДНА пилюля цены. Пилюля у товара без размеров кладёт в корзину и
   превращается в степпер, у товара с размерами открывает выбор размера;
   без корзины просто показывает цену. Один ряд — отдельный блок ниже.
   Полка «Хиты» и выдача поиска рисуются тем же renderCard.
   ══════════════════════════════════════════════════════════════════════ */

:root:not([data-card-style="list"]) .card {
  text-align: center;
}
:root:not([data-card-style="list"]) .card__body {
  align-items: center;
  gap: 4px;
  padding: 12px 2px 0;
}
:root:not([data-card-style="list"]) .card__name {
  text-align: center;
}
:root:not([data-card-style="list"]) .card__portion {
  max-width: 100%;
  color: var(--ink-soft);
  font-size: 0.78rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
:root:not([data-card-style="list"]) .card__foot {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
/* Единая пилюля: серая подложка, «+ 280 ₽». Мишень 44px за счёт высоты. */
:root:not([data-card-style="list"]) .buy--pill:not(.buy--large) .buy__add,
:root:not([data-card-style="list"]) .card__pill {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
  gap: 6px;
  border-radius: var(--radius-pill);
  background: var(--pill-bg);
  color: var(--on-bg);
}
:root:not([data-card-style="list"]) .buy--pill:not(.buy--large) .buy__add::before {
  content: none;
}
:root:not([data-card-style="list"]) .buy--pill:not(.buy--large) .buy__plus,
:root:not([data-card-style="list"]) .card__pill--choose .buy__plus {
  width: 14px;
  height: 14px;
}
.card__pill--choose {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.card__pill--choose:active {
  transform: scale(0.96);
}
.card__pill--off {
  opacity: 0.6;
  font-size: 0.85rem;
  font-weight: 600;
}
:root:not([data-card-style="list"]) .card .card__notify {
  align-self: center;
}
.card--shelf .card__foot .card__pill,
.card--shelf .card__foot .buy--pill {
  align-self: center;
  width: auto;
}

/* ─── Одна колонка: кадр слева (≈40%), справа название, размер, описание
   в 2 строки и пилюля цены внизу слева ───────────────────────────────── */
@media (max-width: 639px) {
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card:not(.card--shelf) {
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    text-align: left;
  }
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card:not(.card--shelf) .card__media {
    flex: none;
    width: 40%;
    min-width: 0;
    max-width: none;
    align-self: flex-start;
  }
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card:not(.card--shelf) .card__body {
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    padding: 2px 0 0;
    gap: 4px;
  }
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card:not(.card--shelf) .card__name,
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card:not(.card--shelf) .card__portion {
    text-align: left;
  }
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card:not(.card--shelf) .card__note {
    -webkit-line-clamp: 2;
    text-align: left;
  }
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card:not(.card--shelf) .card__foot {
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 6px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Повод внутри «Фильтров»: карточка «Скоро …», сегменты и сетка кругов
   (4 в ряд в листе, 5 в выпадающем списке на компьютере). Движение — только
   transform и opacity.
   ══════════════════════════════════════════════════════════════════════ */

.occg-block {
  display: grid;
  gap: 16px;
}
.occg-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  padding: 0 16px 0 10px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.occg-soon[aria-pressed="true"] {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 0 0 1px var(--accent);
}
.occg-soon__disc {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.occg-soon__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.occg-soon__n {
  flex: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
}
.occg {
  display: grid;
  gap: 12px;
}
.occg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.occg-title {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.occg-seg {
  display: flex;
  gap: 2px;
  height: 32px;
  padding: 2px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.occg-seg__btn {
  position: relative;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.occg-seg__btn::before {
  content: "";
  position: absolute;
  inset: -8px -2px;
}
.occg-seg__btn[aria-checked="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.occg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 6px;
}
.occg[data-cols="5"] .occg-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.occg-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: center;
  cursor: pointer;
  animation: occg-in 240ms var(--ease-out) backwards;
  animation-delay: min(calc(var(--i, 0) * 30ms), 360ms);
}
.occg-tile__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--chip-bg, var(--surface-2));
  color: var(--chip-ink, var(--ink));
}
.occg-tile[aria-pressed="true"] .occg-tile__disc {
  box-shadow: 0 0 0 2px var(--accent);
}
.occg-tile__badge {
  position: absolute;
  inset-block-start: -2px;
  inset-inline-end: -2px;
  display: none;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.occg-tile[aria-pressed="true"] .occg-tile__badge {
  display: grid;
}
.occg-tile__name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.occg-tile__date,
.occg-tile__n {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  line-height: 1.1;
}
.occg-tile:active .occg-tile__disc,
.occg-soon:active {
  transform: scale(0.96);
}
@keyframes occg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .occg-tile {
    animation: none;
  }
}
.fpop--occ {
  width: 460px;
  max-height: min(72vh, 640px);
  overflow-y: auto;
}

/* ══════════════════════════════════════════════════════════════════════
   Лист корзины «чек-подарок»: позиции, «К подарку», доставка, строки-настройки
   с раскрывающимися редакторами, липкий низ. Кнопки визуально маленькие
   (32–36px), мишень до 44px даёт ::before. Движение — transform/opacity.
   ══════════════════════════════════════════════════════════════════════ */

.isheet--cart .isheet__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
}
.isheet--cart .isheet__head {
  padding-bottom: 8px;
}
.isheet--cart .isheet__body {
  display: block;
  padding: 0 16px 16px;
}
.isheet--cart .isheet__foot {
  gap: 8px;
  padding: 12px 16px calc(12px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.ck-block {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.ck-block[hidden] {
  display: none;
}
.ck-ico {
  flex: none;
  width: 20px;
  height: 20px;
}

/* «Очистить» в шапке: текст 14, мишень растёт ::before */
.ck-clear {
  position: relative;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.ck-clear::before,
.ck-chip::before,
.ck-zone::before,
.ck-addon::before,
.ck-toggle::before,
.ck-done-btn::before,
.ck-alt__link::before,
.ck-toast__undo::before,
.ck-line__remove::before,
.ck-step__btn::before {
  content: "";
  position: absolute;
  inset: -6px;
}
.ck-clear[data-armed="true"] {
  color: var(--danger);
}

/* Позиции */
.ck-lines {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ck-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 64px;
  padding: 6px 0;
}
.ck-line[data-new="true"] {
  animation: ck-pop 420ms var(--spring);
}
.ck-line__img-box,
.ck-addon__img,
.ck-pick__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}
.ck-line__img-box img,
.ck-line__img-box picture,
.ck-addon__img img,
.ck-addon__img picture,
.ck-pick__media img,
.ck-pick__media picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ck-line__img-box {
  width: 48px;
  height: 60px;
  border-radius: 10px;
}
.ck-line__main {
  display: grid;
  min-width: 0;
  gap: 2px;
  align-content: start;
}
.ck-line__name {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-line__size {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.ck-line__gone {
  margin: 0;
  color: var(--danger);
  font-size: 0.8125rem;
}
.ck-line__side {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.ck-line__sum {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ck-line__remove {
  position: relative;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.ck-line[data-unavailable="true"] .ck-line__name,
.ck-line[data-unavailable="true"] .ck-line__img-box {
  opacity: 0.55;
}

/* Степпер 96×32 */
.ck-step {
  display: flex;
  align-items: center;
  width: 96px;
  height: 32px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.ck-step__btn {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.ck-step__btn:active {
  transform: scale(0.88);
}
.ck-step__ico {
  width: 16px;
  height: 16px;
}
.ck-step__qty {
  flex: 1;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* К подарку */
.ck-addons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ck-addons__label {
  flex: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ck-addons__strip {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
  padding-block: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ck-addons__strip::-webkit-scrollbar {
  display: none;
}
.ck-addon {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.ck-addon::before {
  inset: -4px -2px;
}
.ck-addon__img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.ck-addon__text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.ck-addon__name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ck-addon__price {
  color: var(--accent-strong);
  font-weight: 600;
}
.ck-addon[data-done="true"] {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.ck-addon__tick {
  width: 14px;
  height: 14px;
  align-self: center;
}
.ck-addon[data-done="true"] .ck-addon__text {
  align-items: center;
}

/* Доставка */
.ck-ship {
  display: grid;
  gap: 10px;
}
.ck-ship__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.ck-ship__title {
  font-size: 0.9375rem;
  font-weight: 600;
}
.ck-ship__text {
  margin-inline-start: auto;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: end;
}
.ck-ship__zones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
}
.ck-ship__zones:empty {
  display: none;
}
.ck-zone,
.ck-chip {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.ck-zone::before,
.ck-chip::before {
  inset: -4px -2px;
}
.ck-zone[aria-checked="true"],
.ck-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.ck-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ck-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.ck-free {
  display: grid;
  gap: 6px;
}
.ck-free[hidden] {
  display: none;
}
.ck-free__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}
.ck-free__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
html[dir="rtl"] .ck-free__fill {
  transform-origin: right;
}
.ck-free__text {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.ck-free__tick {
  display: none;
  width: 14px;
  height: 14px;
  color: var(--accent-strong);
}
.ck-free[data-done="true"] .ck-free__tick {
  display: block;
}
.ck-free[data-done="true"] .ck-free__text {
  color: var(--accent-strong);
  font-weight: 600;
}

/* Строки-настройки */
.ck-rows {
  padding-block: 6px;
}
.ck-rowwrap {
  border-radius: 12px;
}
.ck-rowwrap + .ck-rowwrap {
  border-top: 1px solid var(--line);
}
.ck-rowwrap[data-flash="true"] {
  box-shadow: 0 0 0 2px var(--accent);
}
.ck-row {
  display: grid;
  grid-template-columns: 24px auto minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.ck-row .ck-ico {
  color: var(--ink-soft);
}
.ck-row__label {
  font-size: 0.9375rem;
  font-weight: 600;
}
.ck-row__value {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-align: end;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-row__value[data-needs="true"] {
  color: var(--accent-strong);
  font-weight: 600;
}
.ck-row__chev {
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
  transition: transform 180ms var(--ease-out);
}
html[dir="rtl"] .ck-row__chev {
  transform: scaleX(-1);
}
.ck-row[aria-expanded="true"] .ck-row__chev {
  transform: rotate(90deg);
}
html[dir="rtl"] .ck-row[aria-expanded="true"] .ck-row__chev {
  transform: scaleX(-1) rotate(90deg);
}
.ck-edit {
  display: grid;
  gap: 12px;
  padding: 2px 0 14px;
}
.ck-edit[hidden] {
  display: none;
}
.ck-edit:not([hidden]) {
  animation: ck-in 180ms var(--ease-out);
}
.ck-done-btn {
  position: relative;
  justify-self: start;
  height: 36px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.ck-days {
  display: flex;
  gap: 8px;
  margin-inline: -2px;
  padding: 4px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ck-days::-webkit-scrollbar {
  display: none;
}
.ck-windows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 8px;
}
.ck-windows[hidden] {
  display: none;
}
.ck-windows .ck-chip {
  padding: 0 4px;
}

/* Поля */
.ck-field {
  display: grid;
  gap: 4px;
}
.ck-field__label,
.ck-sublabel {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
}
.ck-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.ck-input--area {
  height: auto;
  padding: 10px 12px;
  line-height: 1.4;
  resize: none;
}
.ck-input:focus {
  border-color: var(--accent);
  outline: none;
}
.ck-input[aria-invalid="true"] {
  border-color: var(--danger);
}
.ck-input--date[hidden] {
  display: none;
}
.ck-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ck-group {
  display: grid;
  gap: 12px;
}
.ck-group[hidden],
.ck-toggle[hidden] {
  display: none;
}
.ck-seg {
  display: flex;
  gap: 4px;
  padding: 2px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.ck-seg__btn {
  flex: 1;
  height: 36px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.ck-seg__btn[aria-checked="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.ck-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--ink);
  font-size: 0.875rem;
}
.ck-remember input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

/* Открытка: бумага с линейкой */
.ck-postcard {
  position: relative;
  padding: 16px 16px 24px;
  border-radius: 6px;
  background: #fffdf8;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.35);
  transform: rotate(-1deg);
}
.ck-postcard__input {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 0;
  border: 0;
  background-color: transparent;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--line) 31px 32px);
  color: #2b2622;
  font-family: var(--font-sign, var(--font-display, cursive));
  font-size: 22px;
  line-height: 32px;
  resize: none;
}
.ck-postcard__input:focus {
  outline: none;
}
.ck-postcard__input::placeholder {
  color: #9a928a;
}
.ck-postcard__count {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 6px;
  color: #7a726a;
  font-size: 0.75rem;
}

/* Переключатели */
.ck-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
}
.ck-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.ck-toggle::before {
  inset: -6px -2px;
}
.ck-toggle__tick {
  display: none;
  width: 14px;
  height: 14px;
}
.ck-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.ck-toggle[aria-pressed="true"] .ck-toggle__tick {
  display: block;
}

/* Пустая корзина */
.ck-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 0 8px;
  text-align: center;
}
.ck-empty[hidden] {
  display: none;
}
.ck-empty__icon {
  width: 48px;
  height: 48px;
  color: var(--ink-soft);
}
.ck-empty__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}
.ck-empty__text {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.ck-empty__hits {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
}
.ck-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.ck-picks[hidden],
.ck-empty__hits[hidden] {
  display: none;
}
.ck-pick {
  display: grid;
  gap: 6px;
  text-align: start;
}
.ck-pick__media {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
}
.ck-pick__name {
  margin: 0;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-pick__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.ck-pick__plus {
  width: 14px;
  height: 14px;
}

/* «Удалено · Вернуть» над липким низом */
.ck-toast-wrap {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  height: 0;
}
.ck-toast {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 2px 8px 2px 16px;
  border-radius: 14px;
  background: #26211e;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  animation: ck-in 240ms var(--spring);
}
.ck-toast[hidden] {
  display: none;
}
.ck-toast__undo {
  position: relative;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Липкий низ */
.ck-sumline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.ck-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
/* Итог не сжимается никогда; если кнопка рядом не помещается, она уходит строкой ниже. */
.ck-total {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  max-width: 100%;
}
.ck-total__label {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.ck-total__value {
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ck-main {
  display: inline-flex;
  flex: 1 1 auto;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 20px;
  text-align: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}
.ck-main:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ck-main__icon {
  width: 18px;
  height: 18px;
}
.ck-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.ck-alt[hidden] {
  display: none;
}
.ck-alt__link {
  position: relative;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ck-alt__link::before {
  inset: -10px -4px;
}

/* «Заказ отправлен» */
.ck-sent {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 4px 0 12px;
  text-align: center;
}
.ck-sent__tick {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: var(--on-accent);
  animation: ck-pop 520ms var(--spring);
}
.ck-sent__mark {
  width: 32px;
  height: 32px;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: tick 420ms 160ms ease-out forwards;
}
.ck-sent__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.ck-sent__facts {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 0.875rem;
  font-weight: 600;
  list-style: none;
}
.ck-sent__row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.ck-btn40 {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.ck-btn40--main {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

@keyframes ck-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes ck-pop {
  0% {
    opacity: 0.4;
    transform: scale(0.94);
  }
  60% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ck-line[data-new="true"],
  .ck-edit:not([hidden]),
  .ck-toast,
  .ck-sent__tick {
    animation: none;
  }
  .ck-sent__mark {
    animation: none;
    stroke-dashoffset: 0;
  }
  .ck-free__fill,
  .ck-row__chev,
  .ck-step__btn {
    transition: none;
  }
}

/* ─── Верх витрины «как в образце» ──────────────────────────────────────
   Заказчик: шапка просто стоит (без плавающей плашки при прокрутке), ниже —
   одна тихая строка «лупа · фильтры · разделы» маленькими плашками. Разделы
   больше не уходят строкой в шапку (data-nav всегда "overflow"), поэтому эта
   строка видна и на компьютере. Бюджет, повод и цвет живут в листе фильтров:
   отдельная строка «Подобрать букет · до 4 000 ₽ …» на главной убрана. */

.budget {
  display: none;
}
@media (min-width: 1024px) {
  .bar-filter:not([hidden]) {
    display: inline-grid;
  }
}

/* Кружки поиска и фильтров: 36px на вид, мишень 44px — через ::before. */
.search-toggle--bar {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  background: color-mix(in srgb, var(--on-bg) 7%, transparent);
  color: var(--on-bg);
}
.search-toggle--bar::before {
  content: "";
  position: absolute;
  inset: -4px;
}
.search-toggle--bar svg {
  width: 18px;
  height: 18px;
}
.search-toggle--bar[aria-expanded="true"] {
  background: var(--on-bg);
  color: var(--bg);
}
.bar-search {
  gap: 6px;
}

/* Плашки разделов: маленькие, без рамки, без значков; выбранная — тёмная. */
.category-bar .chip {
  position: relative;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  background: color-mix(in srgb, var(--on-bg) 7%, transparent);
  color: var(--on-bg);
  font-size: 0.875rem;
  font-weight: 600;
}
.category-bar .chip::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}
.category-bar .chip--icon {
  padding-left: 14px;
}
.category-bar .chip .cat-glyph {
  display: none;
}
.category-bar .chip:hover {
  color: var(--on-bg);
  background: color-mix(in srgb, var(--on-bg) 11%, transparent);
}
.category-bar .chip[aria-pressed="true"] {
  background: var(--on-bg);
  color: var(--bg);
}
.category-bar__track,
.category-bar[data-stuck="true"] .category-bar__track {
  gap: 6px;
}

/* Прилипшая строка — ровная полоса во всю ширину с фоном страницы и тонкой
   тенью снизу, а не «плавающая таблетка»: над ней больше нет шапки, к которой
   она пристраивалась. */
.category-bar[data-stuck="true"],
.category-bar[data-stuck="true"] .category-bar__plate {
  padding-left: 0;
  padding-right: 0;
}
.category-bar[data-stuck="true"] {
  padding-bottom: 0;
  background: var(--bg);
  box-shadow: 0 6px 12px -10px rgba(0, 0, 0, 0.35);
}
.category-bar[data-stuck="true"] .category-bar__plate,
[data-catbar="stuck"] .category-bar[data-stuck="true"] .category-bar__plate {
  padding: 6px var(--page-gutter);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* «Подобрать букет» — первая строка листа фильтров (с главной он ушёл). */
.fsheet__pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.fsheet__pick::after {
  content: "›";
  font-size: 1.2rem;
  line-height: 1;
}

/* ─── Шапка: одна, маленькая (решение заказчика) ────────────────────────
   Как в образце: слева логотип или название одной строкой, под ним мелко
   адрес «ул. … ›»; справа язык, если их больше одного. Без цветной полосы,
   без «Доставка сегодня до …», без рукописной подписи и без строки разделов:
   выбор вида шапки из админки убран, и десять видов из header.css витрине
   больше не нужны (атрибут `data-header-style` никто не ставит). Префикс
   `html` — чтобы перебить базовые правила header.css той же формы. */
html .hero {
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 0 4px;
  margin-bottom: 0;
  border-radius: 0;
  background: transparent;
  color: var(--on-bg);
}
html .hero__inner {
  grid-template-areas:
    "brand tools"
    "pill tools";
  row-gap: 0;
}
html .hero .brand {
  gap: 8px;
}
html .hero .brand__word,
html:root[data-brand="both"] .hero .brand__word {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
html .hero .brand__mark[data-logo="true"] .brand__logo,
html:root[data-brand="both"] .hero .brand__mark[data-logo="true"] .brand__logo {
  height: 40px;
  max-width: 160px;
}
html .hero__ship,
html .hero__sign,
html .hero__nav,
html .hero__edge,
html .search-toggle--hero {
  display: none !important;
}

/* Лёгкий параллакс шапки: при прокрутке логотип и адрес уходят медленнее
   страницы, чуть уменьшаются и растворяются (первые 140px). Только CSS по шкале
   прокрутки — ни строчки скрипта на кадр; нет поддержки или «меньше движения» —
   шапка просто уезжает вместе со страницей. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html .hero__inner {
      animation: hero-drift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 140px;
    }
  }
}
@keyframes hero-drift {
  to {
    opacity: 0;
    transform: translateY(36px) scale(0.94);
  }
}

/* Шапка маленькая, поэтому баннер встаёт сразу под ней: прежние 16px у меню и
   14px над баннером были рассчитаны на высокую цветную полосу и давали пустоту. */
html #menu-main,
html #menu-main:has(> .banners:not([hidden])) {
  padding-top: 6px;
}
html .banners {
  margin-top: 4px;
}

/* «Хиты» — просто заголовок, без точки слева. */
.shelf__title {
  padding-left: 0;
}
.shelf__title::before,
#shelf .shelf__title::before {
  content: none;
  display: none;
}

/* Шапка — одна строка: бренд слева, кнопка меню справа (sitemenu.css). */

/* ─── Открытый поиск: ровная полоса с полем, без логотипа ──────────────
   Плашка `.site-header` выезжает только ради поиска, поэтому логотип и адрес в
   ней не нужны (они уже в шапке): только поле и «Отмена». Вид — как у
   прилипшей ленты разделов: полоса во всю ширину с фоном страницы, поле — та же
   серая пилюля, что у плашек разделов. */
html .site-header {
  padding: 0;
}
html .site-header .site-header__inner {
  display: none;
}
html .site-header .site-header__plate {
  max-width: none;
  border: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  backdrop-filter: none;
}
html .site-header .search-panel {
  max-width: var(--page-max);
  padding: 10px var(--page-gutter) 6px;
}
html .search-panel__inner {
  gap: 6px;
  padding: 0 4px 0 14px;
  border: 0;
  background: color-mix(in srgb, var(--on-bg) 7%, transparent);
  color: var(--on-bg);
}
html .search-panel__inner:focus-within {
  border: 0;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-bg) 35%, transparent);
}
html .search-panel__icon {
  color: color-mix(in srgb, var(--on-bg) 60%, transparent);
}
html .search-panel__input {
  min-height: 40px;
  color: var(--on-bg);
  /* 16px: меньший шрифт в поле заставил бы iPhone приблизить страницу. */
  font-size: 1rem;
}
html .search-panel__input::placeholder {
  color: color-mix(in srgb, var(--on-bg) 55%, transparent);
}
html .search-panel__cancel {
  min-height: 40px;
  padding: 0 10px;
  color: var(--on-bg);
  font-size: 0.9rem;
  font-weight: 600;
}
html .search-recent {
  margin-top: 8px;
}
html .search-recent .chip {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  background: color-mix(in srgb, var(--on-bg) 7%, transparent);
  color: var(--on-bg);
  font-size: 0.85rem;
}
html .search-recent__clear {
  color: color-mix(in srgb, var(--on-bg) 65%, transparent);
  text-decoration: none;
}
/* В поиске «Вся витрина» стоит первой — левый край ленты не затухает. */
.category-bar[data-search="open"] .category-bar__track {
  --fade-l: 0px;
}
/* «Открыть раздел …» в выдаче — та же тихая серая плашка, что в ленте. */
html .chip--jump {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  background: color-mix(in srgb, var(--on-bg) 7%, transparent);
  color: var(--on-bg);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Запасные цвета для браузеров без color-mix(): без них плашки и кружки ленты
   становились прозрачными. Правило с color-mix ниже по файлу их перекрывает. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .search-toggle--bar,
  .category-bar .chip,
  html .chip--jump,
  html .search-panel__inner,
  html .search-recent .chip {
    background: rgba(40, 20, 30, 0.07);
  }
}
/* Подложка прилипшей ленты появляется сразу, без перехода: на быстрой прокрутке
   переход успевал показать ленту прозрачной поверх снимков. */
.category-bar,
.category-bar__plate {
  transition: none;
}

/* Плавающая плашка без поиска имеет высоту 0 (строка логотипа в ней спрятана),
   поэтому и запасное значение её «отрицательного отступа» — 0, а не 74px:
   иначе до первого замера шапка с логотипом и адресом уезжала за верх экрана. */
html .site-header {
  margin-bottom: calc(var(--header-h, 0px) * -1);
}

/* ─── Стрелки и перетаскивание лент на компьютере (js/rail.js) ───────── */

[data-rail-host] {
  position: relative;
}
.rail__btn {
  position: absolute;
  z-index: 3;
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line, transparent);
  border-radius: 50%;
  place-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.rail__btn::before {
  content: "";
  position: absolute;
  inset: -4px;
}
.rail__btn svg {
  width: 18px;
  height: 18px;
}
@media (hover: hover) and (pointer: fine) {
  .rail__btn:not([hidden]) {
    display: grid;
  }
  .rail__btn:hover {
    background: var(--surface);
  }
  [data-rail-scrollable="true"] {
    cursor: grab;
  }
  [data-rail-scrollable="true"][data-dragging="true"] {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
}

/* ─── Товар без фото: значок линией на мягкой подложке ───────────────── */

.card__media--empty,
.sheet__figure--empty,
.related-card__media--empty,
.is-glyph {
  background: var(--chip-bg, var(--surface-2));
  color: var(--chip-ink, var(--accent-strong));
}
.related-card__media--empty,
.is-glyph {
  display: grid;
  place-items: center;
}
.related-card__media--empty {
  border: 0;
}
.related-card__media--empty svg {
  width: 44%;
  height: 44%;
}
.is-glyph svg {
  width: 62%;
  height: 62%;
}
.card__media--empty svg,
.sheet__figure--empty svg {
  opacity: 0.9;
}

/* ─── Приглашение «О нас» и отзывы: компактно, как всё в витрине ─────────
   Приглашение — одна нажимаемая строка (вся целиком ссылка), отзывы — тихая
   карточка со звёздами сразу. Поля страницы обязательны: без них блок прилипал
   к краям экрана и левый край казался обрезанным. */
html .about-teaser {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: var(--page-max);
  min-height: 64px;
  margin: 8px var(--page-gutter) 0;
  padding: 10px 14px 10px 10px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--on-bg) 6%, transparent);
  box-shadow: none;
  color: var(--on-bg);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast) var(--ease-out);
}
@media (min-width: 1180px) {
  html .about-teaser {
    margin-inline: auto;
  }
}
html .about-teaser[hidden] {
  display: none;
}
html .about-teaser:hover,
html .about-teaser:active {
  background: color-mix(in srgb, var(--on-bg) 10%, transparent);
}
html .about-teaser:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.about-teaser__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--line-bg);
}
.about-teaser__icon svg {
  width: 24px;
  height: 24px;
}
html .about-teaser__text {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}
html .about-teaser__title {
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-bg);
}
html .about-teaser__hint {
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--on-bg-soft);
}
html .about-teaser__hint[hidden] {
  display: none;
}
.about-teaser__go {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--on-bg-soft);
}
[dir="rtl"] .about-teaser__go {
  transform: scaleX(-1);
}

/* Отзывы */
html .tips {
  padding: 12px var(--page-gutter) 24px;
}
html .tips__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-items: unset;
  gap: 4px 16px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--on-bg) 6%, transparent);
  box-shadow: none;
  text-align: start;
}
html .tips[data-tone="accent"] .tips__inner,
html .tips[data-tone="outline"] .tips__inner {
  border: 0;
  background: color-mix(in srgb, var(--on-bg) 6%, transparent);
  box-shadow: none;
}
html .tips__lead {
  flex: 1 1 100%;
  min-width: 0;
}
html .tips__eyebrow {
  margin: 0 0 1px;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--on-bg-soft);
}
html .tips__title,
html .tips[data-tone="outline"] .tips__title {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--on-bg);
}
html .tips__text,
html .tips[data-tone="outline"] .tips__text {
  margin: 2px 0 0;
  max-width: none;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--on-bg-soft);
}
html .tips .rating {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
html .tips .rating__stars {
  margin-inline-start: -4px;
}
html .tips .rating__star {
  width: 44px;
  height: 44px;
  color: var(--on-bg-soft);
}
html .tips .rating__star svg {
  width: 28px;
  height: 28px;
}
html .tips .rating__star[data-on="true"] {
  color: var(--accent-strong);
}
html .tips .rating__label {
  min-height: 0;
  margin: 0;
  font-size: 0.84rem;
  color: var(--on-bg-soft);
}
html .tips .rating__label:empty {
  display: none;
}
html .tips__cta {
  margin: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: color-mix(in srgb, var(--on-bg) 9%, transparent);
  color: var(--on-bg);
  font-size: 0.9rem;
  font-weight: 600;
}
html .tips__cta:hover {
  background: color-mix(in srgb, var(--on-bg) 14%, transparent);
}
html .tips-form {
  margin: 8px auto 0;
  padding: 16px;
  border-radius: 16px;
}
html .tips-form__title {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}
.to-top[data-over="true"] {
  opacity: 0;
  pointer-events: none;
}

/* ═══ M3: «Осталось N», подписка, свадьбы и мероприятия ═══════════════════
   Слова карточек — владельца; цвета берутся от карточки (--surface/--ink),
   поэтому тёмные шаблоны не ломаются. Движение — только transform/opacity,
   при prefers-reduced-motion его нет. */

/* ── «Осталось 2»: мягкая точка и короткая подпись ── */
.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.stock[data-low="false"] {
  color: var(--ink-soft);
}
.card .stock {
  justify-self: center;
}
.stock__dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.stock__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: stock-pulse 1.8s ease-out infinite;
}
@keyframes stock-pulse {
  from {
    opacity: 0.55;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}
.stock--hurry {
  margin: 8px 0 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, currentColor 11%, transparent);
  font-size: 0.8125rem;
}
.sheet__body .stock--hurry {
  display: flex;
  width: fit-content;
}
.ck-line__stock {
  margin: 2px 0 0;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
}
.ck-step__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (prefers-reduced-motion: reduce) {
  .stock__dot::after {
    animation: none;
    opacity: 0;
  }
}

/* ── Карточки в ленте: подписка и мероприятия — компактно, как «О нас» ── */
.offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: var(--page-max);
  margin: 8px var(--page-gutter) 0;
  padding: 10px 12px 10px 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--on-bg) 6%, transparent);
  color: var(--on-bg);
}
.offer[hidden] {
  display: none;
}
@media (min-width: 1180px) {
  .offer {
    margin-inline: auto;
  }
}
.offer__body {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.offer__title {
  margin: 0;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offer__text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--on-bg-soft);
  font-size: 0.8125rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.offer__meta {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--accent-on-bg);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offer__cta {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}
.offer__cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.offer__cta:focus-visible {
  outline: none;
}
.offer__cta:focus-visible::after {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.offer:active {
  background: color-mix(in srgb, var(--on-bg) 10%, transparent);
}
.offer__go {
  width: 16px;
  height: 16px;
}
html[dir="rtl"] .offer__go {
  transform: scaleX(-1);
}
.offer__art {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--line-bg);
}
.offer__flower {
  width: 24px;
  height: 24px;
}
.offer__collage {
  display: flex;
  flex: none;
  gap: 3px;
  width: 112px;
  height: 56px;
}
.offer__shot {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
}
.offer__shot picture,
.offer__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.offer__collage--empty {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--line-bg);
}
.offer__rings {
  width: 24px;
  height: 24px;
}

/* ── Лист подписки и лист заявки ── */
.ck-wrapchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ck-swatch {
  flex: none;
  width: 14px;
  height: 14px;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: var(--sw, #ccc);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}
.ck-chip[aria-pressed="true"] .ck-swatch {
  box-shadow: 0 0 0 2px var(--on-accent);
}
.ck-hint--sub {
  padding: 2px 0 4px;
  color: var(--accent-strong);
  font-weight: 600;
}
.ck-hint--sub[hidden] {
  display: none;
}
.ck-discline {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.8125rem;
  font-weight: 700;
}
.ck-discline[hidden] {
  display: none;
}
.ck-sur {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}
.ck-sur[hidden] {
  display: none;
}
.ck-sur__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ck-sur__ico {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.ck-sur__headtext {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.ck-sur__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}
.ck-sur__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.ck-sur__tag {
  justify-self: start;
  margin: 0;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8125rem;
  font-weight: 700;
}
.ck-sur__group {
  display: grid;
  gap: 6px;
}
.ck-sur__own {
  position: relative;
  justify-self: start;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ev {
  display: grid;
  gap: 14px;
  padding-bottom: 6px;
}
.ev__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ev__types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
}
.ev__type {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.ev__type:active {
  transform: scale(0.97);
}
.ev__type-ico {
  flex: none;
  width: 24px;
  height: 24px;
}
.ev__type[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.ev__need {
  margin: 0;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 600;
}
.ev__need[hidden] {
  display: none;
}
.ev__send {
  width: 100%;
}
.isheet--events .isheet__foot {
  display: grid;
  gap: 8px;
}

/* ─── Полки M6: контейнеры, надпись над заголовком, «Очистить» ───────────── */

.shelves[hidden] {
  display: none;
}
.shelves--after {
  margin-top: 8px;
}
.shelf__head {
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px 12px;
}
.shelf__heading {
  min-width: 0;
}
.shelf__eyebrow {
  margin: 0 0 2px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent-on-bg);
  overflow-wrap: anywhere;
}
.shelf__clear {
  position: relative;
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--on-bg-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.shelf__clear::before {
  content: "";
  position: absolute;
  inset: -6px -4px;
}

/* ─── Скорость: разделы по мере листания, сеть, цены перед заказом ────────
   Разделы ниже второго браузер не рисует, пока до них не домотали
   (`data-defer` ставит скрипт). Место они занимают по оценке --section-h
   (скрипт считает её по двум нарисованным разделам), поэтому полоса прокрутки
   почти не прыгает. Перемотка к разделу дорисовывает все (`data-sections-all`):
   ей нужны настоящие высоты. */
.section[data-defer="true"] {
  content-visibility: auto;
  contain-intrinsic-size: auto var(--section-h, 900px);
}
html[data-sections-all] .section[data-defer="true"] {
  content-visibility: visible;
}

/* «Нет сети — показываем сохранённую витрину»: узкая плашка сверху, под вырезом экрана. */
.net-note {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 50%;
  z-index: 60;
  translate: -50% 0;
  box-sizing: border-box;
  max-width: min(92vw, 420px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

/* В листе корзины: почему кнопки отправки закрыты. */
.ck-netnote {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent-quiet, rgba(0, 0, 0, 0.06));
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.35;
  text-align: center;
}
.ck-netnote[hidden] {
  display: none;
}

/* ─── Подробности на телефоне: первый экран (M15) ────────────────────────
   Кадр ограничен по высоте и стоит по центру, 4:5, без обрезки; ниже без
   прокрутки видны название, цена, размеры и начало описания. Нижняя панель —
   одна строка: «Добавить · цена» и квадратная кнопка WhatsApp. */
.sheet__wa-icon {
  display: none;
}
@media (max-width: 719px) {
  /* Лист — почти во весь экран (сверху полоска 12px), кадр снова крупный
     (во всю ширину, 4:5, как до M15 — решение заказчика). Высота кадра
     ограничена лишь настолько, чтобы на первом экране остались название,
     цена и нижняя панель: 320px = отступы + название + цена + две кнопки. */
  .sheet {
    max-height: calc(100dvh - 12px);
  }
  .sheet__hero--bouquet {
    margin: 8px 8px 0;
  }
  .sheet__hero--bouquet .sheet__figure {
    display: flex;
    justify-content: center;
    align-items: stretch;
    aspect-ratio: auto;
    max-height: none;
    height: min(calc((100vw - 16px) * 1.25), calc(100dvh - 320px));
  }
  .sheet__hero--bouquet .sheet__figure > picture {
    display: block;
    height: 100%;
    aspect-ratio: 4 / 5;
    max-width: 100%;
  }
  .sheet__hero--bouquet .sheet__figure img {
    object-fit: contain;
  }
  .sheet__hero--bouquet .gallery[data-variant="sheet"] {
    position: relative;
    inset: auto;
    flex: none;
    height: 100%;
    width: auto;
    aspect-ratio: 4 / 5;
    max-width: 100%;
  }
  .sheet__hero--bouquet .gallery[data-variant="sheet"] img {
    object-fit: contain;
  }
  .sheet__hero--bouquet .sheet__figure--empty {
    align-items: center;
  }
  /* Порядок на первом экране: ярлыки, название, цена, размеры, описание. */
  .sheet__body {
    gap: 10px;
    padding-top: 12px;
  }
  .sheet__labels {
    order: -5;
  }
  .sheet__title {
    order: -4;
    margin: 0;
    font-size: clamp(1.25rem, 5.4vw, 1.6rem);
    line-height: 1.15;
  }
  .sheet__priceblock {
    order: -3;
    margin-top: -4px;
  }
  .sheet__price {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }
  .sheet__body .sizes {
    order: -2;
  }
  .sheet__body .sizes .sizes__opt {
    min-height: 44px;
    min-width: 64px;
    padding: 4px 12px;
  }
  .sheet__description {
    order: -1;
    line-height: 1.45;
    margin: 0;
  }
  /* Нижняя панель — как была: «Добавить» и под ней кнопка «Заказать сразу в
     WhatsApp» во всю ширину с надписью (решение заказчика вернуть её). */
}

/* ═══ N1: условия доставки, доверие, после отправки ═══════════ */

/* ─── Строка «Доставка сегодня до …» ──────────────────────────────────────
   Живёт в меню сайта (первой строкой) и в подвале; под шапкой её больше нет.
   Движение — только transform и opacity: у открытого состояния от точки
   расходится кольцо (раз в 2 с), у закрытого точка серая и стоит. Появление
   в подвале — при подходе к экрану (`data-reveal`, ставит скрипт: сломался
   скрипт — строка просто стоит на месте). */
.ship-line {
  --sl-dot: var(--accent-strong);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: start;
}
button.ship-line {
  cursor: pointer;
}
.ship-line__text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ship-line__dot {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sl-dot);
}
.ship-line__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sl-dot);
  opacity: 0;
  pointer-events: none;
}
.ship-line[data-state="open"] .ship-line__ring {
  animation: ship-ring 2s ease-out infinite;
}
.ship-line[data-state="closed"] .ship-line__dot {
  opacity: 0.45;
}
@keyframes ship-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* В меню: карточка с лёгким оттенком акцента и стрелкой справа. */
.ship-line--menu {
  padding: 12px 14px 12px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent-strong) 11%, var(--surface-2, var(--surface)));
  color: var(--ink);
  font-size: 0.95rem;
}
button.ship-line--menu::after {
  content: "›";
  margin-inline-start: auto;
  padding-inline-start: 6px;
  color: var(--ink-soft);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}
[dir="rtl"] button.ship-line--menu::after {
  transform: scaleX(-1);
}
button.ship-line--menu:active {
  transform: scale(0.99);
}

/* В подвале: строка колонки, пара цветов — от подвала (--rf-*), в простом — от страницы. */
.ship-line--footer {
  --sl-dot: var(--rf-accent, var(--accent-strong));
  gap: 10px;
  font-size: inherit;
  font-weight: 600;
  color: var(--rf-ink, inherit);
}
.ship-line--footer .ship-line__dot {
  width: 8px;
  height: 8px;
}
@media (hover: hover) {
  button.ship-line--footer:hover .ship-line__text {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.rf__row--ship {
  padding: 0;
}
/* Точка и текст встают в те же колонки, что у строк «Часы» и «Доставка — от …»;
   мишень 44px держит высота, а лишний воздух снят отрицательным полем. */
.rf__row--ship .ship-line--footer {
  gap: 11px;
  margin-block: -8px;
  padding-inline-start: 4px;
  line-height: 1.5;
}
.rf__row--ship::before,
.rf__row--ship::after {
  content: none;
}
.contact-line--ship .ship-line--footer {
  --sl-dot: var(--accent-strong);
  color: inherit;
  min-height: 32px;
}
.ship-line[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(8px);
}
.ship-line[data-reveal="shown"] {
  transition:
    opacity 420ms var(--ease-out, ease-out),
    transform 520ms var(--ease-out, ease-out);
}
@media (prefers-reduced-motion: reduce) {
  .ship-line__ring {
    animation: none !important;
    opacity: 0 !important;
  }
  .ship-line[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Лист «Как мы доставляем». */
.ship-sheet {
  display: grid;
  gap: 10px;
  padding: 2px 0 8px;
  color: var(--ink);
}
.ship-sheet__label {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ship-sheet__zones {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ship-sheet__zone {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.ship-sheet__name {
  font-weight: 600;
}
.ship-sheet__price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ship-sheet__free,
.ship-sheet__note {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-line;
}
.ship-sheet__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ship-sheet__slot {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.ship-sheet__ok {
  margin-top: 8px;
}

/* ─── Строка условий ─────────────────────────────────────────────────── */

.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.terms__part {
  overflow-wrap: anywhere;
}
.terms__part + .terms__part::before {
  content: "·";
  margin-inline: 8px;
}
.ck-terms {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}
.ck-terms:empty {
  display: none;
}
.ck-terms .terms {
  margin: 0;
  font-size: inherit;
}
.ck-guarantees {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* ─── Доверие ────────────────────────────────────────────────────────────
   На странице — секция перед «Где нас найти», без коробки. В подробностях —
   сжатая версия под строкой условий. Текст на фоне страницы: `--on-bg`. */
.trust {
  padding: 8px var(--page-gutter) 12px;
}
.trust[hidden] {
  display: none;
}
.trust__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  color: var(--on-bg);
}
.trust__title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
}
.trust__label {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--on-bg) 72%, transparent);
  font-size: 0.8125rem;
}
.trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.trust__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--chip-line, var(--line-bg));
  border-radius: 999px;
  background: var(--chip-bg, var(--surface));
  color: var(--chip-ink, var(--on-bg));
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.trust__link::after {
  content: "›";
  margin-inline-start: 8px;
}
html[dir="rtl"] .trust__link::after {
  content: "‹";
}
.trust__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.trust__tick {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--accent-strong);
}
.trust-mini {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.trust-mini__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.trust-mini__chip .trust__tick {
  width: 14px;
  height: 14px;
  margin: 0;
}
.trust-mini .trust-mini__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trust-mini .trust-mini__link::after {
  content: none;
}

/* Кадр карточки — опора для отметок и значков поверх него. */
.card__media {
  position: relative;
}

/* ─── Подробности: «Написать» / «Позвонить», подпись под кнопкой ─────── */

.sheet__dock-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
}
.sheet__write {
  min-height: 48px;
}
.sheet__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sheet__similar {
  margin-top: 6px;
}

/* ─── Лист корзины: выбор района ─────────────────────────────────────── */

.ck-zones {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.ck-zones[hidden] {
  display: none;
}
.ck-zones__title {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ck-zone {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.ck-zone__name {
  font-size: 0.9375rem;
  font-weight: 600;
}
.ck-zone__price {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ck-zone[aria-checked="true"] {
  border-color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px var(--accent-strong);
}
.ck-zone[aria-checked="true"] .ck-zone__name::after {
  content: "✓";
  margin-inline-start: 8px;
  color: var(--accent-strong);
}

/* ─── После нажатия канала ───────────────────────────────────────────── */

.ck-sent .ck-sent__mark {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
}
.ck-sent__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}
.ck-sent__next {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-raised, var(--surface-2));
  text-align: start;
}
.ck-sent__next-label {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ck-sent__next-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-line;
}
.ck-sent__actions {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.ck-sent__btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}
.ck-sent__btn--main {
  border: 1px solid var(--accent-strong);
  background: var(--accent-strong);
  color: var(--on-accent);
}
.ck-sent__btn--ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.ck-sent__clear {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ═══ N3: низ недоступной карточки ═════════════════════════════════════════
   Причина прежней поломки: у `.card__foot` стоит `flex-wrap: nowrap` с
   `justify-content: center`, а серая пилюля «Нет в наличии» и ссылка «Написать,
   когда будет» не сжимаются (`white-space: nowrap`, `flex-shrink: 0`). Две такие
   детки шире карточки в две колонки, и при центровке излишек уходил поровну
   влево и вправо: пилюля за левый край, ссылка на соседнюю карточку.
   Теперь пилюли нет вовсе (отметка «Нет в наличии» уже на кадре), а низ —
   колонка: приглушённая цена, под ней одно действие, которое переносится. */
:root:not([data-card-style="list"]) .card--unavailable .card__foot {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  container-type: inline-size;
}
.card--unavailable .card__price--off {
  font-size: 0.92rem;
  white-space: nowrap;
}
/* Цена не помещается в узкой карточке — её не показываем, а не режем. */
@container (max-width: 96px) {
  .card__price--off {
    display: none;
  }
}
.card--unavailable .card__notify {
  flex: 0 1 auto;
  justify-content: center;
  max-width: 100%;
  padding: 4px 2px;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.card__off-note {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}
@media (max-width: 639px) {
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card--unavailable:not(.card--shelf) .card__foot {
    align-items: flex-start;
  }
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card--unavailable:not(.card--shelf) .card__notify,
  :root[data-menu-layout="row"]:not([data-card-style="list"]):not([data-card-style="compact"]) .card--unavailable:not(.card--shelf) .card__off-note {
    align-self: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
}
/* Список: цена остаётся на пунктирной строке, ссылка идёт отдельной строкой ниже. */
:root[data-card-style="list"] .card--unavailable .card__foot {
  display: contents;
}
:root[data-card-style="list"] .card--unavailable .card__foot > :not(.card__notify) {
  grid-column: 3;
}
:root[data-card-style="list"] .card--unavailable .card__notify {
  grid-column: 1 / -1;
  justify-content: flex-start;
  justify-self: start;
  text-align: start;
}

/* ═══ N7: движение при прокрутке (`scrollFx.js`, `appearance.scrollFx`) ════
   Всё висит на `data-fx-ready` (soft | rich) — его ставит скрипт, и только
   при «Спокойном» и «Живом», без prefers-reduced-motion и экономии трафика.
   Узел ждёт появления с `data-fx="wait"` и играет его с `data-fx="in"` один
   раз; видимое при загрузке не анимируется. Только transform/opacity
   (`translate`, `scale`, `transform`): вёрстка не сдвигается, `transform`
   у карточек и кадров остаётся за их собственными правилами. */

@keyframes fx-rise {
  from {
    opacity: 0;
    translate: 0 var(--fx-y, 14px);
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes fx-side {
  from {
    opacity: 0;
    translate: -16px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes fx-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes fx-breathe {
  from {
    scale: 1.04;
  }
  to {
    scale: 1;
  }
}

/* ── Карточки и блоки: подъём и проявление, каскад по строке (--fx-d) ── */
[data-fx-ready] :is(.card, .trust, .tips, .place, .site-footer, .about-teaser)[data-fx="wait"] {
  opacity: 0;
  translate: 0 var(--fx-y, 14px);
}
[data-fx-ready] :is(.card, .trust, .tips, .place, .site-footer, .about-teaser)[data-fx="in"] {
  animation: fx-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) var(--fx-d, 0ms) both;
}
[data-fx-ready] :is(.trust, .tips, .place, .site-footer, .about-teaser) {
  --fx-y: 18px;
}
[data-fx-ready="rich"] .card[data-fx="in"] .card__media img {
  animation: fx-breathe 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--fx-d, 0ms) both;
}

/* ── Полка: шапка и первые карточки каскадом (вбок они не въезжают) ── */
[data-fx-ready] .shelf[data-fx="wait"] :is(.shelf__head, .shelf__track > *) {
  opacity: 0;
  translate: 0 14px;
}
[data-fx-ready] .shelf[data-fx="in"] :is(.shelf__head, .shelf__track > *) {
  animation: fx-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-fx-ready] .shelf[data-fx="in"] .shelf__track > :nth-child(1) {
  animation-delay: 60ms;
}
[data-fx-ready] .shelf[data-fx="in"] .shelf__track > :nth-child(2) {
  animation-delay: 110ms;
}
[data-fx-ready] .shelf[data-fx="in"] .shelf__track > :nth-child(3) {
  animation-delay: 160ms;
}
[data-fx-ready] .shelf[data-fx="in"] .shelf__track > :nth-child(n + 4) {
  animation-delay: 210ms;
}
[data-fx-ready="rich"] .shelf[data-fx="in"] .card__media img {
  animation: fx-breathe 760ms cubic-bezier(0.22, 1, 0.36, 1) 60ms both;
}

/* ── Заголовок раздела: под ним вырастает тонкая акцентная черта ── */
/* Черта лежит в нижнем поле заголовка (12px) абсолютно: высоты не добавляет. */
[data-fx-ready] .section__head {
  position: relative;
}
[data-fx-ready] .section__head::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-on-bg, var(--accent));
  transform-origin: left center;
  pointer-events: none;
}
[data-fx-ready] .section__head:dir(rtl)::after {
  right: 0;
  left: auto;
  transform-origin: right center;
}
[data-fx-ready] .section__head[data-fx="wait"]::after {
  transform: scaleX(0);
}
[data-fx-ready] .section__head[data-fx="in"]::after {
  animation: fx-grow 620ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}
/* В «Живом» название раздела въезжает сбоку. */
[data-fx-ready="rich"] .section__head[data-fx="wait"] .section__title {
  opacity: 0;
  translate: -16px 0;
}
[data-fx-ready="rich"] .section__head[data-fx="in"] .section__title {
  animation: fx-side 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-fx-ready="rich"] .section__head:dir(rtl)[data-fx="wait"] .section__title {
  translate: 0 14px;
}
[data-fx-ready="rich"] .section__head:dir(rtl)[data-fx="in"] .section__title {
  animation-name: fx-rise;
}

/* ── Прилипшая лента разделов: тень проявляется, а не включается ── */
[data-fx-ready] .category-bar[data-stuck="true"] {
  box-shadow: none;
}
[data-fx-ready] .category-bar::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 14px;
  background: linear-gradient(to bottom, rgb(24 14 20 / 0.12), rgb(24 14 20 / 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-out);
}
[data-fx-ready] .category-bar[data-stuck="true"]::after {
  opacity: 1;
}
/* В «Живом» прилипшая лента ещё и матовая: каталог проходит под ней размыто. */
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  [data-fx-ready="rich"] .category-bar[data-stuck="true"] {
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
  }
}

/* ── Скользящая подложка выбранной плашки ── */
/* Два круга и середина (`scaleX` от 100px): скругление не искажается. Пока
   подложки нет (скрипт не дошёл, режим «без движения»), плашка красится сама. */
.chip-ind {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.chip-ind[data-on="true"] {
  opacity: 1;
}
.chip-ind > span {
  position: absolute;
  top: var(--ind-y, 0px);
  left: 0;
  height: var(--ind-h, 36px);
  background: var(--on-bg);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.chip-ind__cap {
  width: var(--ind-h, 36px);
  border-radius: 50%;
  transform: translateX(var(--ind-x, 0px));
}
.chip-ind__mid {
  width: 100px;
  transform: translateX(var(--ind-x, 0px)) scaleX(var(--ind-s, 0));
  transform-origin: left center;
}
.chip-ind[data-instant] > span,
.chip-ind[data-instant] {
  transition: none;
}
[data-fx-ready] .category-bar .chip {
  z-index: 1;
  transition:
    color 260ms var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
[data-fx-ready] .category-bar__track[data-ind="true"] .chip[aria-pressed="true"] {
  background: transparent;
}

/* ── Кольцо прочитанного у «Наверх» ── */
.to-top .to-top__ring {
  display: none;
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  rotate: -90deg;
  pointer-events: none;
}
[data-fx-ready] .to-top .to-top__ring {
  display: block;
}
.to-top__ring circle {
  fill: none;
  stroke: var(--accent-strong, var(--accent));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--fx-p, 0) * 100);
}

/* ── «Живое»: линия прогресса у верха ── */
.fx-progress {
  display: none;
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent-on-bg, var(--accent));
  transform: scaleX(var(--fx-p, 0));
  transform-origin: left center;
  pointer-events: none;
}
.fx-progress:dir(rtl) {
  transform-origin: right center;
}
[data-fx-ready="rich"] .fx-progress {
  display: block;
}

/* Где браузер умеет scroll-driven анимации, прогресс и параллакс считает он
   сам — без единого обработчика прокрутки. */
@keyframes fx-ring {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}
/* Параллакс снимка баннера: ≤ 4 % высоты кадра за первый экран прокрутки. */
@keyframes fx-parallax {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 4%;
  }
}
@supports (animation-timeline: scroll()) {
  [data-fx-ready] .to-top__ring circle {
    animation: fx-ring linear both;
    animation-timeline: scroll(root block);
  }
  [data-fx-ready="rich"] .fx-progress {
    animation: fx-grow linear both;
    animation-timeline: scroll(root block);
  }
  /* Только у `cover` и `split`, не у баннера-картинки. Кадр чуть увеличен
     (`transform`), чтобы край не открывался; «наезд» (`scale`) не мешает. */
  [data-fx-ready="rich"] .banners .banner:not([data-bare="true"]):is([data-variant="cover"], [data-variant="split"]) .banner__media {
    transform: scale(1.08);
    animation: fx-parallax linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 90vh;
  }
  [data-fx-ready="rich"]:is([data-banner-motion="zoom"], [data-banner-motion="both"]) .banners .banner:not([data-bare="true"]):is([data-variant="cover"], [data-variant="split"]) .banner__media {
    animation:
      banner-zoom 24s ease-in-out infinite alternate,
      fx-parallax linear both;
    animation-timeline: auto, scroll(root block);
    animation-range: normal, 0 90vh;
  }
}

/* «Живое» на компьютере: тонкая полоса прокрутки в цветах темы. */
@media (hover: hover) and (pointer: fine) {
  html[data-fx-ready="rich"] {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--bg)) transparent;
  }
}

/* ─── Полка в виде «Список» ──────────────────────────────────────────────
   В списке карточка без кадра: тело — сетка «название · пунктир · цена» на всю
   строку. В полке карточка стоит в ленте шириной 148px, и три колонки сжимали
   название до буквы в столбик. Здесь карточка полки — узкая колонка: название
   сверху, под ним порция и отметки, цена внизу; пунктир не нужен. */
:root[data-card-style="list"] .card--shelf {
  padding: 12px 12px 14px;
  border: 1px solid var(--line-bg);
  border-radius: 16px;
}
:root[data-card-style="list"] .card--shelf .card__body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
:root[data-card-style="list"] .card--shelf .card__name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: left;
}
:root[data-card-style="list"] .card--shelf .card__leader {
  display: none;
}
:root[data-card-style="list"] .card--shelf .card__badges {
  order: 3;
}
:root[data-card-style="list"] .card--shelf .card__foot {
  order: 4;
  width: 100%;
  justify-content: flex-start;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════════════
   N10: лист корзины крупнее и читаемее (заказчик: «как будто маленькое»).

   Телефон — лист почти на весь экран (94dvh с запасом под вырез), середина
   прокручивается, липкий низ с итогом и кнопкой всегда на виду. Кнопки
   остаются 32–40px на вид, мишень 44px даёт ::before (правило выше). Правила
   стоят под `.isheet` (а не `.isheet--cart`), чтобы перебить и поздние блоки
   выше, и `.isheet:not(.isheet--full)` из order.css: из-за его веса прежняя
   «шторка справа от 1024px» на деле не включалась и лист был окном по центру.
   Те же размеры у листов «Подписка» (isheet--sub), «Заказать сразу» (тот же
   лист) и заявки на мероприятие (isheet--events).
   ══════════════════════════════════════════════════════════════════════ */

.isheet.isheet--cart,
.isheet.isheet--sub {
  width: min(560px, 100vw);
  height: min(94dvh, calc(100dvh - 12px - env(safe-area-inset-top, 0px)));
  max-height: none;
}
.isheet.isheet--cart .isheet__head,
.isheet.isheet--sub .isheet__head {
  padding: 2px 12px 8px 20px;
}
.isheet.isheet--cart .isheet__title,
.isheet.isheet--sub .isheet__title {
  font-size: 1.375rem;
}
.isheet.isheet--cart .isheet__textbtn,
.isheet.isheet--sub .isheet__textbtn {
  font-size: 1rem;
}
.isheet.isheet--cart .isheet__body,
.isheet.isheet--sub .isheet__body {
  padding: 0 20px 20px;
}
.isheet.isheet--cart .isheet__foot,
.isheet.isheet--sub .isheet__foot {
  gap: 10px;
  padding: 14px 20px calc(14px + var(--safe-b));
  max-height: 50dvh;
  box-shadow: 0 -8px 20px -14px rgba(0, 0, 0, 0.28);
}
@media (min-width: 720px) {
  .isheet.isheet--cart:not(.isheet--full),
  .isheet.isheet--sub:not(.isheet--full) {
    height: min(92dvh, 920px);
    max-height: none;
  }
}
/* Компьютер: шторка справа, высотой в экран. */
@media (min-width: 1024px) {
  .isheet.isheet--cart:not(.isheet--full),
  .isheet.isheet--sub:not(.isheet--full) {
    width: min(580px, 100vw);
    height: 100dvh;
    margin: 0 0 0 auto;
    border-radius: 0;
    opacity: 1;
    transform: translateX(100%);
    transition: transform 380ms var(--ease-drawer);
  }
  .isheet.isheet--cart:not(.isheet--full)[data-open="true"],
  .isheet.isheet--sub:not(.isheet--full)[data-open="true"] {
    transform: none;
  }
  .isheet.isheet--cart .isheet__body,
  .isheet.isheet--sub .isheet__body {
    padding-inline: 28px;
  }
  .isheet.isheet--cart .isheet__head,
  .isheet.isheet--sub .isheet__head {
    padding-inline: 28px 20px;
    padding-top: 16px;
  }
  .isheet.isheet--cart .isheet__foot,
  .isheet.isheet--sub .isheet__foot {
    padding-inline: 28px;
  }
}

/* Позиции: кадр 64×80 (4:5), название от 16px в две строки, цена заметнее. */
.isheet .ck-line {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 92px;
  padding: 10px 0;
}
.isheet .ck-line__img-box {
  width: 64px;
  height: 80px;
  border-radius: 12px;
}
.isheet .ck-line__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.isheet .ck-line__size,
.isheet .ck-line__gone {
  font-size: 0.9375rem;
}
.isheet .ck-line__stock {
  font-size: 0.8125rem;
}
.isheet .ck-line__side {
  gap: 8px;
}
.isheet .ck-line__sum {
  font-size: 1.0625rem;
}
.isheet .ck-line__remove,
.isheet .ck-clear {
  min-height: 36px;
  font-size: 1rem;
}
.isheet .ck-step {
  width: 112px;
  height: 40px;
  border-radius: 20px;
}
.isheet .ck-step__btn {
  width: 40px;
  height: 40px;
}
.isheet .ck-step__btn::before {
  inset: -4px;
}
.isheet .ck-step__ico {
  width: 18px;
  height: 18px;
}
.isheet .ck-step__qty {
  font-size: 1rem;
}

/* «К подарку» и доставка. */
.isheet .ck-block {
  padding: 18px 0;
}
.isheet .ck-addons__label {
  font-size: 0.9375rem;
}
.isheet .ck-addon {
  height: 44px;
  padding-inline: 6px 14px;
}
.isheet .ck-addon__img {
  width: 34px;
  height: 34px;
}
.isheet .ck-addon__text {
  font-size: 0.9375rem;
}
.isheet .ck-addon__name {
  max-width: 120px;
}
.isheet .ck-ship__title {
  font-size: 1rem;
}
.isheet .ck-ship__text,
.isheet .ck-hint,
.isheet .ck-free__text {
  font-size: 0.9375rem;
}
.isheet .ck-free__bar {
  height: 6px;
  border-radius: 3px;
}
.isheet .ck-zone__name,
.isheet .ck-zone__price {
  font-size: 1rem;
}
.isheet .ck-zone,
.isheet .ck-chip {
  height: 44px;
  padding-inline: 16px;
  font-size: 0.9375rem;
}
.isheet .ck-zone {
  height: auto;
  min-height: 56px;
}
.isheet .ck-zones__title {
  font-size: 0.9375rem;
}

/* Строки-настройки: подпись 16px, значение 15px, мишень не ниже 60. */
.isheet .ck-rows {
  padding-block: 4px;
}
.isheet .ck-row {
  grid-template-columns: 26px auto minmax(0, 1fr) 18px;
  gap: 14px;
  min-height: 60px;
}
.isheet .ck-row .ck-ico {
  width: 24px;
  height: 24px;
}
.isheet .ck-row__label {
  font-size: 1rem;
}
.isheet .ck-row__value {
  font-size: 0.9375rem;
}
.isheet .ck-row__chev {
  width: 18px;
  height: 18px;
}
.isheet .ck-edit {
  gap: 14px;
  padding: 4px 0 18px;
}
.isheet .ck-done-btn {
  height: 44px;
  padding-inline: 26px;
  font-size: 1rem;
}
.isheet .ck-field {
  gap: 6px;
}
.isheet .ck-field__label,
.isheet .ck-sublabel {
  font-size: 0.875rem;
}
.isheet .ck-input {
  height: 48px;
  padding-inline: 14px;
  font-size: 1rem;
}
.isheet .ck-input--area {
  height: auto;
  padding-block: 12px;
}
.isheet .ck-duo {
  gap: 10px;
}
.isheet .ck-seg {
  padding: 3px;
  border-radius: 22px;
}
.isheet .ck-seg__btn {
  height: 44px;
  border-radius: 19px;
  font-size: 0.9375rem;
}
.isheet .ck-remember {
  min-height: 44px;
  font-size: 1rem;
}
.isheet .ck-remember input {
  width: 22px;
  height: 22px;
}
.isheet .ck-toggle {
  height: 40px;
  padding-inline: 16px;
  font-size: 0.9375rem;
}
.isheet .ck-postcard__input {
  min-height: 140px;
}
.isheet .ck-postcard__count {
  font-size: 0.8125rem;
}
.isheet .ck-sur__text {
  font-size: 0.9375rem;
}
.isheet .ck-sur__tag {
  font-size: 0.875rem;
}

/* Пустая корзина. */
.isheet .ck-empty {
  gap: 8px;
  padding: 32px 0 12px;
}
.isheet .ck-empty__icon {
  width: 64px;
  height: 64px;
}
.isheet .ck-empty__title {
  font-size: 1.25rem;
}
.isheet .ck-empty__text {
  font-size: 1rem;
}
.isheet .ck-empty__hits {
  font-size: 1rem;
}
.isheet .ck-pick__name {
  font-size: 0.9375rem;
}
.isheet .ck-pick__btn {
  height: 44px;
  font-size: 0.9375rem;
}

/* Липкий низ: итог крупно (Manrope — цифры), кнопка во всю ширину, 54px. */
.isheet .ck-sumline {
  font-size: 0.9375rem;
}
.isheet .ck-buy {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.isheet .ck-total {
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  max-width: none;
}
.isheet .ck-total__label {
  font-size: 1rem;
}
.isheet .ck-total__value {
  font-size: 1.625rem;
  line-height: 1.1;
}
.isheet .ck-main {
  width: 100%;
  min-height: 54px;
  padding: 10px 22px;
  font-size: 1.0625rem;
}
.isheet .ck-main__icon {
  width: 22px;
  height: 22px;
}
.isheet .ck-alt {
  gap: 6px 18px;
  font-size: 0.9375rem;
}
.isheet .ck-alt__link {
  min-height: 28px;
}
.isheet .ck-toast {
  min-height: 48px;
  font-size: 1rem;
}
.isheet .ck-toast__undo {
  min-height: 44px;
}
.isheet .ck-netnote,
.isheet .ck-discline {
  font-size: 0.9375rem;
}
.isheet .ck-terms,
.isheet .ck-guarantees {
  font-size: 0.875rem;
}

/* N10 (приёмка): условия в низу корзины — строкой с промежутком, без точек-разделителей:
   при переносе точка оставалась в начале строки («· сегодня до 19:00»). */
.isheet .ck-terms .terms {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}
.isheet .ck-terms .terms__part + .terms__part::before {
  content: none;
}

/* ══════════════════════════════════════════════════════════════════════
   N11: лист корзины по снимкам с телефона 360px — чипы по содержимому,
   короткий липкий низ, строки-настройки как понятный список, затухание у
   краёв прокрутки. Правила стоят под `.isheet`, как в N10.
   ══════════════════════════════════════════════════════════════════════ */

/* Чипы: ширина по содержимому, надпись не выходит за пилюлю; перенос — только у очень длинного перевода. */
.isheet .ck-chip {
  height: auto;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 16px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.isheet .ck-days .ck-chip {
  white-space: nowrap;
}
.isheet .ck-windows,
.isheet .ck-wrapchips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
}
.isheet .ck-windows[hidden] {
  display: none;
}
.isheet .ck-windows .ck-chip {
  padding: 8px 16px;
}
/* Прошедшее окно: не бледное пятно, а понятно «закрыто» — приглушённо, пунктиром и зачёркнуто. */
.isheet .ck-chip:disabled {
  border-style: dashed;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: color-mix(in srgb, var(--ink) 62%, var(--surface));
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 1;
}

/* Выбранный район: светлая заливка акцентом и рамка — галочка и текст читаются (раньше заливка съедала галочку). */
.isheet .ck-zone[aria-checked="true"] {
  border-color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--ink);
}
.isheet .ck-zone[aria-checked="true"] .ck-zone__name::after {
  color: var(--accent-strong);
  font-weight: 800;
}

/* Строки-настройки: чистый список с разделителями во всю ширину. Подпись сверху, значение под ней. */
.isheet .ck-rows {
  padding: 4px 0 0;
  border-top: 0;
}
.isheet .ck-rowwrap {
  border-radius: 0;
  border-top: 1px solid var(--line);
}
.isheet .ck-rowwrap:last-child {
  border-bottom: 1px solid var(--line);
}
.isheet .ck-row {
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-content: center;
  width: calc(100% + 16px);
  min-height: 64px;
  margin-inline: -8px;
  padding: 12px 8px;
  border-radius: 12px;
}
.isheet .ck-row:active {
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.isheet .ck-row .ck-ico {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.isheet .ck-row__label {
  grid-column: 2;
  grid-row: 1;
  line-height: 1.25;
}
.isheet .ck-row__value {
  display: -webkit-box;
  grid-column: 2;
  grid-row: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-align: start;
  white-space: normal;
}
.isheet .ck-row__chev {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.isheet .ck-row[data-state="needs"] .ck-row__value {
  color: var(--accent-strong);
  font-weight: 700;
}
.isheet .ck-row[data-state="needs"] .ck-ico,
.isheet .ck-row[data-state="needs"] .ck-row__chev {
  color: var(--accent-strong);
}
.isheet .ck-row[data-state="quiet"] .ck-row__value {
  color: var(--ink-soft);
  font-weight: 400;
}
.isheet .ck-toggles {
  border-top: 0;
  padding-top: 16px;
}

/* Условия доставки и гарантии — в прокручиваемой части над строками, а не в липком низу. */
.isheet .ck-rows .ck-terms {
  padding: 8px 0 14px;
  border-top: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.isheet .ck-rows .ck-terms .terms {
  margin: 0;
  line-height: 1.4;
}
.isheet .ck-rows .ck-guarantees {
  padding-bottom: 14px;
  font-size: 0.875rem;
}

/* Липкий низ: «Итого» и кнопка; разбивка — мелкой строкой, когда район выбран. */
.isheet.isheet--cart .isheet__foot,
.isheet.isheet--sub .isheet__foot {
  gap: 4px;
  padding: 8px 20px calc(8px + var(--safe-b));
}
.isheet .ck-sumline {
  font-size: 0.875rem;
  line-height: 1.3;
}
.isheet .ck-sumline[hidden] {
  display: none;
}
.isheet .ck-buy {
  gap: 8px;
}
.isheet .ck-total__value {
  font-size: 1.5rem;
  line-height: 1;
}
.isheet .ck-main {
  min-height: 50px;
}
.isheet .ck-alt {
  gap: 2px 18px;
}

/* Затухание у верхней и нижней границы прокрутки: видно, что содержимое листается. */
.isheet--cart .isheet__scroll,
.isheet--sub .isheet__scroll {
  --fade-t: 0px;
  --fade-b: 0px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent 100%);
}
.isheet--cart .isheet__scroll[data-scrolled="true"],
.isheet--sub .isheet__scroll[data-scrolled="true"] {
  --fade-t: 20px;
}
.isheet--cart .isheet__scroll[data-more="true"],
.isheet--sub .isheet__scroll[data-more="true"] {
  --fade-b: 28px;
}

/* ══════════════════════════════════════════════════════════════════════
   N11: лист «Фильтры» — выбранное сверху, ровные сетки, своя цена «от — до».
   Движение — только transform/opacity (при prefers-reduced-motion — без него).
   ══════════════════════════════════════════════════════════════════════ */

.isheet.isheet--filters {
  width: min(560px, 100vw);
  height: min(93dvh, calc(100dvh - 12px - env(safe-area-inset-top, 0px)));
  max-height: none;
}
@media (min-width: 720px) {
  .isheet.isheet--filters:not(.isheet--full) {
    height: min(90dvh, 880px);
  }
}
.isheet--filters .isheet__head {
  padding: 2px 12px 8px 20px;
}
.isheet--filters .isheet__title {
  font-size: 1.375rem;
}
.isheet--filters .isheet__body {
  display: grid;
  gap: 24px;
  padding: 8px 20px 32px;
}
.isheet--filters .isheet__foot {
  gap: 8px;
  padding: 10px 20px calc(10px + var(--safe-b));
  box-shadow: 0 -8px 20px -14px rgba(0, 0, 0, 0.28);
}
.isheet--filters .fsheet__reset:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Выбранное: одна строка плашек, высота постоянная. */
.fsheet__active {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 20px;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  scrollbar-width: none;
}
.fsheet__active::-webkit-scrollbar {
  display: none;
}
.fsheet__none {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.fsheet__active .fsum__chip {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent-strong);
  font-size: 0.9375rem;
  font-weight: 600;
}

.fsheet__headrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.fsheet__value {
  min-width: 0;
  color: var(--accent-strong);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: end;
}
.isheet--filters .fsheet__group {
  gap: 14px;
}
.isheet--filters .fsheet__heading {
  font-size: 0.8125rem;
}

/* Повод: подпись «6 букетов» словами, выбранная плитка — заливка акцентом и галочка. */
.occg-soon {
  height: auto;
  min-height: 56px;
  padding-block: 8px;
}
.occg-soon__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
}
.occg-soon__n {
  font-size: 0.8125rem;
  white-space: nowrap;
}
.occg-grid {
  align-items: start;
  gap: 16px 6px;
}
.occg-tile__disc {
  transition: transform 160ms var(--ease-out);
}
.occg-tile[aria-pressed="true"] .occg-tile__disc {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--accent);
}
.occg-tile[aria-pressed="true"] .occg-tile__badge {
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: 0 0 0 1px var(--accent);
}
.occg-tile__name {
  min-height: 2.4em;
  font-size: 0.8125rem;
  hyphens: auto;
  overflow-wrap: break-word;
}
.occg-tile[aria-pressed="true"] .occg-tile__name {
  color: var(--accent-strong);
  font-weight: 700;
}
.occg-tile__date,
.occg-tile__n {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.occg-tile__n {
  font-size: 0.75rem;
}

/* Цвет: ровная сетка (число колонок — --cols, неполный последний ряд по центру), подпись до двух строк. */
.fsheet__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 8px;
}
.fsheet__dots .dot {
  align-content: start;
  width: calc((100% - (var(--cols, 5) - 1) * 8px) / var(--cols, 5));
  min-width: 0;
  min-height: 44px;
}
.fsheet__dots .dot__swatch {
  width: 40px;
  height: 40px;
  transition: transform 160ms var(--ease-out);
}
.fsheet__dots .dot__swatch svg {
  width: 20px;
  height: 20px;
  stroke-width: 3;
}
.fsheet__dots .dot[aria-pressed="true"] .dot__swatch {
  outline: 0;
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 4px var(--accent-strong);
}
.fsheet__dots .dot__label {
  display: -webkit-box;
  max-width: 100%;
  min-height: 2.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.75rem;
  hyphens: auto;
  overflow-wrap: break-word;
}
.fsheet__dots .dot[aria-pressed="true"] .dot__label {
  color: var(--accent-strong);
  font-weight: 700;
}

/* Подсказка и кнопка внизу. */
.fsheet__hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  text-align: center;
}
.fsheet__hint[hidden] {
  display: none;
}
.fsheet__apply[data-mode="fix"] {
  border: 2px solid var(--accent);
  background: var(--surface);
  color: var(--accent-strong);
}
.isheet--filters .isheet__btn.is-disabled {
  opacity: 0.55;
}

/* Переключатели «Показывать»: настоящие, а не квадратики. */
.isheet--filters .switch-row {
  min-height: 52px;
}
.isheet--filters .switch-row__input {
  position: relative;
  width: 52px;
  height: 32px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--ink) 20%, var(--surface));
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.isheet--filters .switch-row__input::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 160ms var(--ease-out);
}
.isheet--filters .switch-row__input:checked {
  background: var(--accent);
}
.isheet--filters .switch-row__input:checked::after {
  transform: translateX(20px);
}
html[dir="rtl"] .isheet--filters .switch-row__input:checked::after {
  transform: translateX(-20px);
}
.isheet--filters .switch-row__input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

/* Своя цена: гистограмма, двойной ползунок и два поля. */
.prange {
  display: grid;
  gap: 14px;
}
.prange__plot {
  display: grid;
  gap: 2px;
  padding-inline: 14px;
}
.prange__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
}
.prange__bar {
  flex: 1;
  height: var(--h, 0%);
  min-height: 3px;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}
.prange__bar[data-empty="true"] {
  opacity: 0.55;
}
.prange__bar[data-on="true"] {
  background: var(--accent);
}
.prange__bar[data-on="true"][data-empty="true"] {
  opacity: 0.4;
}
.prange[data-all="true"] .prange__bar[data-on="true"] {
  background: color-mix(in srgb, var(--accent) 55%, var(--surface));
}
.prange__track {
  position: relative;
  height: 44px;
  touch-action: none;
  cursor: pointer;
}
.prange__rail {
  position: absolute;
  inset-block-start: 50%;
  inset-inline: 0;
  height: 4px;
  margin-block-start: -2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}
.prange__fill {
  position: absolute;
  inset-block: 0;
  inset-inline-start: calc(var(--lo, 0) * 1%);
  inset-inline-end: calc((100 - var(--hi, 100)) * 1%);
  border-radius: 2px;
  background: var(--accent);
}
.prange__thumb {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: calc(var(--p, 0) * 1%);
  width: 44px;
  height: 44px;
  margin-inline-start: -22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
}
.prange__thumb[data-which="lo"] {
  --p: var(--lo, 0);
}
.prange__thumb[data-which="hi"] {
  --p: var(--hi, 100);
}
.prange__thumb::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 140ms var(--ease-out);
}
.prange__thumb[data-drag="true"] {
  cursor: grabbing;
}
.prange__thumb[data-drag="true"]::after {
  transform: scale(1.14);
}
.prange__thumb:focus-visible {
  outline: 0;
}
.prange__thumb:focus-visible::after {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}
.prange__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
.prange__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.prange__caption {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
}
.prange__box {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding-inline: 14px;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 12px;
  background: var(--surface);
}
.prange__box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.prange__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  outline: 0;
}
.prange__symbol {
  flex: none;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.prange__dash {
  padding-block-end: 12px;
  color: var(--ink-soft);
}

/* Компьютер: выпадающий список «Бюджет» у кнопки панели. */
.fpop--price {
  display: grid;
  gap: 14px;
  width: 360px;
}

/* Затухание у границ прокрутки (как у корзины). */
.isheet--filters .isheet__scroll {
  --fade-t: 0px;
  --fade-b: 0px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 var(--fade-t), #000 calc(100% - var(--fade-b)), transparent 100%);
}
.isheet--filters .isheet__scroll[data-scrolled="true"] {
  --fade-t: 20px;
}
.isheet--filters .isheet__scroll[data-more="true"] {
  --fade-b: 28px;
}
@media (prefers-reduced-motion: reduce) {
  .prange__thumb::after,
  .occg-tile__disc,
  .fsheet__dots .dot__swatch,
  .isheet--filters .switch-row__input::after {
    transition: none;
  }
}
