/* Новая витрина «Соловей и Роза», версия 2 (31.10.2026). Цвета и шрифты — только из tokens.css; цифры и цены — Manrope. */

html { scroll-behavior: smooth; scroll-padding-top: 130px; }
:root { --rose: #8f5f5d; --rose-dark: #2a2a2d; --rose-mid: #a8716f; --rose-text: #7d5250; --rose-hot: #a8716f; --rose-pulse: rgba(168,113,111,.55); --night-1: #45403e; --night-2: #1d1d1f; --card: #1d1d1f; --card-glow: rgba(219,167,157,.5); }
:root { --gap: clamp(10px, 1.1vw, 14px); --tile-r: clamp(22px, 2.2vw, 32px); }
body { overflow-x: clip; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.num { font-family: var(--sans); font-variant-numeric: tabular-nums; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.04; color: var(--ink); }
h2 em, .display em, .footer-cta em { font-style: italic; color: var(--accent-deep); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 22px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link svg { width: 14px; height: 14px; }
.linklike { padding: 0; border: 0; background: none; text-decoration: underline; cursor: pointer; }
.fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.fine a { text-decoration: underline; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-note { max-width: 440px; margin: 0; color: var(--soft); }
.btn-accent { background: var(--accent); color: var(--graphite); border-color: var(--accent); }
.btn-accent:hover { background: #fff; border-color: #fff; }
.round-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.round-light:hover { background: rgba(255,255,255,.18); }

/* шапка */
.header { position: sticky; top: 0; z-index: 30; background: rgba(29,29,31,.62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo .brand { height: 19px; color: var(--brand-cream); --brand-amp: var(--accent-lit); }
.menu { display: flex; gap: 20px; margin-left: auto; white-space: nowrap; font-size: 14px; color: rgba(255,255,255,.7); }
.menu a:hover { color: #fff; }
.messengers { display: flex; align-items: center; gap: 6px; }
.msg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s; }
.msg svg { width: 21px; height: 21px; }
.msg:hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.08); box-shadow: 0 10px 22px -8px rgba(0,0,0,.7); }
.msg:active { transform: scale(.94); }
.msg-tg { background: var(--telegram); }
.msg-max { background: linear-gradient(135deg, #2bc3f5 0%, #3f5cf4 48%, #9c1ff2 100%); }
.msg-max svg { width: 20px; height: 20px; }
.msg-vk { background: var(--vk); }
.msg-vk svg { width: 24px; height: 24px; }
.msg-phone { padding: 0 16px 0 12px; margin-left: 4px; background: #27ae60; }

.burger { display: none; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); cursor: pointer; }
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) {
  .burger { display: flex; }
  .menu.open { display: flex !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 6px 16px 14px; background: #1d1d1f; color: #fff; font-size: 17px; box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); animation: menu-in .25s var(--ease); }
  .menu.open a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .menu.open a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .logo .brand { height: 14px; }
  .messengers { gap: 3px; }
  .msg { min-width: 34px !important; height: 34px !important; padding: 0 6px !important; }
  .burger { width: 34px; height: 34px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* первый экран */
.hero { --night: #1d1d1f; position: relative; display: flex; min-height: 100svh; margin-top: -64px; padding-top: 64px; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; top: -6%; right: -1%; height: 112%; aspect-ratio: 1151 / 1542; z-index: -2; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; animation: hero-photo-in 1.4s var(--ease) backwards, hero-breathe 16s ease-in-out 1.4s infinite alternate; }
@keyframes hero-breathe { to { transform: scale(1.045); } }
@keyframes hero-photo-in { from { opacity: 0; filter: brightness(.45); transform: scale(1.06); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; z-index: -1; background: linear-gradient(180deg, rgba(29,29,31,0), var(--night)); pointer-events: none; }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(40px, 9vh, 96px) 0 30px; pointer-events: none; }
.hero-inner a { pointer-events: auto; }
.hero-text { max-width: 880px; }
.hero h1 { max-width: 8.6em; font: 400 clamp(60px, 7.2vw, 124px)/.94 var(--serif); letter-spacing: -.028em; color: #fbefe9; text-wrap: balance; animation: hero-focus 1s var(--ease) backwards; }
.hero-lead { max-width: 30em; margin: 30px 0 34px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: rgba(251,239,233,.76); animation: hero-rise .8s var(--ease) .25s backwards; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: hero-rise .8s var(--ease) .4s backwards; }
.hero-actions .btn { min-height: 58px; padding-inline: 30px; font-size: 16px; }
.hero-actions .btn-ghost-light { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-facts { list-style: none; display: flex; gap: clamp(28px, 5vw, 72px); margin: 0; padding: 0; animation: hero-rise .8s var(--ease) .55s backwards; }
.hero-facts a { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: rgba(251,239,233,.58); transition: color .2s; }
.hero-facts a:hover { color: #fff; }
.hero-facts b { font-size: 15px; font-weight: 600; color: #fbefe9; }
@keyframes hero-focus { from { opacity: 0; filter: blur(18px); letter-spacing: .02em; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .hero h1, .hero-lead, .hero-actions, .hero-facts, .hero-photo img { animation: none; } }

/* бонусы */
.duo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--gap); margin-top: var(--gap); }
.bonus { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; min-height: 320px; padding: clamp(22px, 3vw, 40px); border-radius: var(--tile-r); background: radial-gradient(70% 110% at 85% 30%, var(--rose-hot) 0%, transparent 70%), linear-gradient(120deg, var(--rose-dark) 0%, var(--rose) 75%); color: #fff; }
.bonus-text { position: relative; z-index: 1; display: grid; justify-items: start; gap: 14px; }
.bonus h2 { color: #fff; font-size: clamp(28px, 2.9vw, 40px); line-height: 1.04; letter-spacing: -.01em; }
.bonus-sum { display: block; margin: 2px 0; font-size: 1.9em; font-weight: 700; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.bonus p { margin: 0; color: rgba(255,255,255,.86); font-size: 14px; }
.bonus .btn { color: var(--graphite); }
.bcard-stage { display: grid; place-items: center; perspective: 900px; }
.bcard { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; width: min(100%, 270px); aspect-ratio: 1.586; padding: 16px 18px; border-radius: 18px; background: radial-gradient(70% 90% at 90% 0%, var(--card-glow), transparent 70%), var(--card); color: #f7efe9; transform: rotateX(8deg) rotateY(-16deg) rotate(-3deg); box-shadow: 0 34px 50px -22px rgba(0,0,0,.75); animation: card-float 5s ease-in-out infinite alternate; }
.bcard > span { position: relative; z-index: 1; }
.bcard-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 500; color: rgba(247,239,233,.74); }
.bcard-top .brand { display: block; height: 18px; color: #f7efe9; --brand-amp: var(--accent-lit); }
.bcard-sum b { font-size: clamp(50px, 5vw, 66px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.bcard-sum span { margin-left: 6px; font-size: 20px; color: rgba(247,239,233,.74); }
.bcard-shine { position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.22) 50%, transparent 58%); animation: shine 5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 30% { transform: translateX(-45%); } 70%, 100% { transform: translateX(45%); } }
@keyframes card-float { to { translate: 0 -10px; } }
.trip { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 320px; padding: clamp(22px, 3vw, 34px); border-radius: var(--tile-r); background: radial-gradient(80% 100% at 80% 80%, var(--night-1), var(--night-2) 75%); color: #fff; }
.trip canvas { position: absolute; right: -24%; bottom: -44%; width: 92%; aspect-ratio: 1; transition: transform .6s var(--ease); }
.trip:hover canvas { transform: scale(1.05) rotate(-3deg); }
.trip-text { position: relative; display: grid; gap: 6px; max-width: 15em; }
.trip-text b { font: 500 clamp(26px, 2.5vw, 34px)/1.05 var(--serif); letter-spacing: -.01em; }
.trip-text span { color: rgba(255,240,235,.76); font-size: 14px; }
.trip-go { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.trip-go svg { width: 16px; height: 16px; transform: rotate(90deg); }
@media (max-width: 960px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bonus { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bcard-stage { order: -1; }
  .bcard { width: min(78%, 250px); }
  .bonus .btn { width: 100%; }
  .trip { min-height: 250px; }
  .trip canvas { width: 76%; right: -14%; bottom: -36%; }
}
@media (prefers-reduced-motion: reduce) {
  .bcard, .bcard-shine { animation: none; }
}

/* быстрый выбор */
/* каталог */
.catalog { padding: 64px 0 40px; }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-head .eyebrow { margin-bottom: 10px; }
.catalog h2 sup { font: 600 15px/1 var(--sans); color: var(--muted); vertical-align: super; }
select { appearance: none; -webkit-appearance: none; padding: 11px 38px 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d1d1f' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center; font-size: 14px; cursor: pointer; color: var(--ink); }
.filterbar { position: sticky; top: 64px; z-index: 20; background: rgba(251,250,248,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; padding: 10px 0; margin-bottom: 22px; transition: border-color .2s; }
.filterbar.stuck { border-bottom-color: var(--line); }
.filterbar .wrap { display: flex; align-items: center; gap: 8px; }
.chips-scroll { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.fchip:hover { border-color: var(--graphite); }
.fchip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; }
/* карточка: цена и кнопка лежат на фото, под фото название (выбор владельца, вариант 3) */
.pcard { display: grid; grid-template-rows: auto auto; align-content: start; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.pcard > .pcard-img { grid-area: 1 / 1; }
.pcard-img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; background: var(--surface); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.94); font: 600 11px/1 var(--sans); color: var(--ink); }
.badge-new { background: var(--graphite); color: #fff; }
.badge-hit { background: var(--rose); color: #fff; }
.badge-free { background: var(--accent); color: var(--graphite); }
.badge-sale { background: var(--graphite); color: var(--accent, #f7e7cd); }
s.old { font-weight: 500; font-size: .78em; color: var(--muted); text-decoration-thickness: 1px; margin-right: 4px; }
/* у всех карточек одна сетка: имя всегда занимает две строки, цена и кнопка на одной линии внизу */
.pcard-name { grid-row: 2; margin-top: 10px; min-height: 2.3em; font: 500 20px/1.15 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { grid-area: 1 / 1; align-self: end; z-index: 1; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard-price { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.95); font: 600 14px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.pcard-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pcard-add { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--graphite); font: 400 22px/1 var(--sans); transition: background .2s, color .2s; }
.pcard-add:hover { background: var(--graphite); color: #fff; }
.pcard-add.on { background: var(--graphite); color: #fff; font-size: 16px; }
.card-in { animation: card-in .5s var(--ease) backwards; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.empty { padding: 48px 0; text-align: center; color: var(--soft); }
.empty p { margin: 0 0 6px; }
.empty a { text-decoration: underline; }
.more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 0 0; font-size: 13px; color: var(--muted); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* единый вид заголовков блоков после каталога */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: clamp(20px, 2.6vw, 32px); }
.sec-head h2, .journey h2, .custom h2, .business h2, .faq h2 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -.02em; line-height: 1.02; }
.sec-head p { margin: 0; color: var(--soft); font-size: 16px; }
.reviews, .journey, .custom, .how, .delivery, .business, .faq { margin-top: clamp(56px, 7vw, 96px); }

/* отзывы: одна линия, карточки перескакивают по одной */
.rv-track { display: flex; gap: var(--gap); margin: 0; padding: 0 max(16px, calc((100% - 1280px) / 2)); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - 1280px) / 2)); scrollbar-width: none; }
.rv-track::-webkit-scrollbar { display: none; }
.rv { flex: none; width: clamp(290px, 30vw, 400px); scroll-snap-align: start; }
.rv a { display: flex; flex-direction: column; height: 100%; padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); transition: border-color .2s; }
.rv a:hover { border-color: var(--graphite); }
.rv-source { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }
.rv-source b { font-weight: 600; }
.rv-source time { margin-left: auto; color: var(--muted); white-space: nowrap; }
.rv-mark { flex: none; display: block; width: 24px; height: 24px; border-radius: 7px; object-fit: cover; }
.rv-vk { padding: 4px; background: #07f; color: #fff; }
.rv-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.rv-stars svg { width: 18px; height: 18px; fill: #f5b301; stroke: #f5b301; }
.rv p { flex: 1; margin: 0 0 16px; font-size: 15px; line-height: 1.5; color: var(--graphite-2); }
.rv-name { font-size: 14px; font-weight: 600; }

/* путь цветка */
.jt { position: relative; overflow: hidden; display: flex; align-items: center; height: min(calc(100svh - 96px), 720px); min-height: 560px; padding: clamp(24px, 4vw, 56px); border-radius: var(--tile-r); background: radial-gradient(70% 90% at 70% 50%, var(--night-1), var(--night-2) 75%); color: #fff; }
.jt canvas { position: absolute; top: 50%; right: 0; width: 62%; height: 100%; transform: translateY(-50%); }
.jt-text { position: relative; display: grid; justify-items: start; gap: clamp(16px, 2.4vw, 28px); width: min(46%, 520px); }
.jt h2 { color: #fff; font-size: clamp(34px, 4.6vw, 64px); }
.jt-km { font-size: clamp(50px, 6.4vw, 92px); font-weight: 700; line-height: .92; letter-spacing: -.045em; white-space: nowrap; }
.jt-km small { margin-left: .14em; font-size: .3em; letter-spacing: 0; }
.jt p { margin: 0; color: rgba(255,236,230,.74); font-size: 16px; }
.jt-play { display: inline-flex; align-items: center; gap: 14px; padding: 8px 26px 8px 8px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); text-align: left; white-space: nowrap; font: 600 16px/1.2 var(--sans); cursor: pointer; box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); transition: transform .25s var(--ease); }
.jt-play:hover { transform: scale(1.03); }
.jt-play i { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--rose); }
.jt-play i::before { content: ""; position: absolute; left: 19px; top: 15px; border-left: 15px solid #fff; border-block: 9px solid transparent; }
.jt-play i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: jt-pulse 2.2s ease-out infinite; }
@keyframes jt-pulse { from { box-shadow: 0 0 0 0 var(--rose-pulse); } to { box-shadow: 0 0 0 18px transparent; } }
.jt-play small { display: block; margin-top: 2px; color: var(--soft); font-size: 13px; font-weight: 500; }

/* окно с подробной картой */
.route { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #1d1d1f; color: #fff; }
.route[hidden] { display: none; }
html.route-open { overflow: hidden; }
.route-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-back { position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top)); left: max(16px, calc((100% - 1280px) / 2)); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px 0 14px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.route-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.route::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: min(520px, 46%); background: linear-gradient(90deg, rgba(29,29,31,.88), rgba(29,29,31,0)); pointer-events: none; }
.route-panel { position: absolute; z-index: 2; left: max(16px, calc((100% - 1280px) / 2)); bottom: 40px; width: min(390px, 100% - 32px); }
.journey-km { margin: 0 0 12px; color: rgba(255,236,230,.66); font-size: 14px; }
.journey-km b { margin-right: 4px; color: #fff; font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.02em; }
.journey-bar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 20px; }
.journey-bar button { padding: 10px 0; border: 0; background: none; cursor: pointer; }
.journey-bar i { display: block; height: 3px; border-radius: 2px; background: rgba(255,236,230,.2); transition: background .4s; }
.journey-bar button.passed i { background: #f5d6c8; }
.journey-bar button:last-child.passed i { background: var(--rose-hot); }
.journey-steps { position: relative; height: 196px; margin: 0; padding: 0; list-style: none; }
.journey-steps li { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
.journey-steps li.on { opacity: 1; transform: none; visibility: visible; }
.journey-steps h3 { margin-bottom: 10px; color: #fff; font-size: clamp(34px, 3.4vw, 48px); }
.journey-steps p { margin: 0; color: rgba(255,236,230,.8); font-size: 16px; line-height: 1.5; }
.journey-steps .btn { margin-top: 16px; }
.route-controls { display: flex; gap: 8px; margin-top: 8px; }
.route-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,236,230,.28); border-radius: 50%; background: rgba(255,236,230,.08); color: #fff; font-size: 15px; cursor: pointer; }
.route-controls svg { width: 16px; height: 16px; }
#route-prev svg { transform: rotate(180deg); }

/* под заказ */
.custom-tile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); padding: clamp(24px, 4.4vw, 64px); border-radius: var(--tile-r); background: var(--accent); }
.custom-head p { max-width: 26em; margin: 16px 0 0; color: var(--graphite-2); font-size: 17px; }
.field-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--graphite-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--graphite); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.chip-own { border-style: dashed; border-color: var(--rose-text); color: var(--rose-text); }
.own-occasion { display: block; width: 100%; margin: -8px 0 22px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 400 16px var(--sans); color: var(--ink); outline: none; }
.own-occasion:focus { border-color: var(--graphite); }
.own-occasion[hidden] { display: none; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; }
.range-head output { font-weight: 700; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; color: var(--rose); }
input[type="range"] { width: 100%; margin: 8px 0 24px; accent-color: var(--rose); }
.custom-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* как заказать: читается слева направо, по одной линии */
.how-list { counter-reset: how; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.how-list li { counter-increment: how; position: relative; padding-top: 58px; }
.how-list li::before { content: counter(how); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--rose); color: #fff; font: 600 16px var(--sans); }
.how-list li:not(:last-child)::after { content: ""; position: absolute; left: 50px; right: calc(clamp(20px, 3vw, 40px) * -1 + 12px); top: 19px; height: 1px; background: var(--line); }
.how-list h3 { margin: 0 0 6px; font-size: 24px; }
.how-list p { margin: 0; color: var(--soft); font-size: 15px; }

/* доставка */
.delivery-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--gap); }
.zones { padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--tile-r); background: var(--paper); }
.zones-note { margin: 16px 0 0; color: var(--soft); font-size: 13px; }
.dlv-zones { width: 100%; border-collapse: collapse; font-size: 15px; }
.dlv-zones th { padding: 0 8px 12px 0; text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.dlv-zones td { padding: 13px 8px 13px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlv-zones td small { display: block; margin-top: 2px; white-space: normal; font-size: 12px; color: var(--muted); }
.dlv-zones td:first-child { width: 100%; font: 500 20px/1.2 var(--serif); white-space: normal; }
.dlv-rules { display: none; }
.pickup { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 2.6vw, 34px); border-radius: var(--tile-r); background: var(--accent); }
.pickup > svg { width: 26px; height: 26px; margin-bottom: auto; color: var(--rose); }
.pickup h3 { margin: 24px 0 6px; font-size: 24px; }
.pickup p { margin: 0 0 14px; color: var(--graphite-2); font-size: 15px; }

/* организации */
.business { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--gap); }
.biz-photos { display: grid; }
.biz-photo { position: relative; overflow: hidden; min-height: 220px; border-radius: var(--tile-r); background: var(--surface); }
.biz-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biz-body { padding: clamp(24px, 3.2vw, 44px); border: 1px solid var(--line); border-radius: var(--tile-r); background: var(--paper); }
.biz-body > p { max-width: 36em; margin: 14px 0 22px; color: var(--soft); font-size: 16px; }
.biz-body h3 { margin: clamp(26px, 3vw, 38px) 0 14px; font-size: 22px; }
.clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 6px clamp(10px, 1.6vw, 22px); margin: 0; padding: 0; list-style: none; }
.clients li { display: flex; align-items: center; justify-content: center; height: 84px; text-align: center; }
.clients img { height: var(--h); max-width: 100%; object-fit: contain; }
.client-gov { gap: 9px; text-align: left !important; font: 600 12px/1.2 var(--sans); color: #2a2a2d; white-space: nowrap; }
.client-gov img { flex: none; }

/* вопросы */
:root { interpolate-size: allow-keywords; }
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); align-items: start; }
.faq h2 { position: sticky; top: 90px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 500 23px/1.2 var(--serif); transition: color .2s; }
.faq summary:hover { color: var(--rose); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 30px/1 var(--sans); color: var(--rose); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq-body { padding: 0 0 22px; max-width: 760px; color: var(--soft); }
.faq-body p, .faq-body ol { margin: 0; }
.faq-body ol { padding-left: 20px; }
.faq-body li + li { margin-top: 6px; }

@media (max-width: 820px) {
  .jt { align-items: stretch; height: min(calc(100svh - 150px), 640px); min-height: 520px; padding: 22px 18px; }
  .jt canvas { top: 44%; right: auto; left: -9%; width: 118%; height: auto; aspect-ratio: 1; }
  .jt-text { grid-template-rows: auto auto 1fr auto; width: 100%; gap: 8px; }
  .jt h2 { font-size: 32px; }
  .jt-km { font-size: 46px; }
  .jt p { display: none; }
  .jt-play { grid-row: 4; justify-self: stretch; padding-right: 16px; font-size: 15px; }
  .route::before { display: none; }
  .route::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 50%; background: linear-gradient(180deg, rgba(29,29,31,0), rgba(29,29,31,.95) 32%); pointer-events: none; }
  .route-panel { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .journey-km { margin-bottom: 2px; }
  .journey-bar { margin-bottom: 8px; }
  .journey-steps { height: 158px; }
  .journey-steps h3 { margin-bottom: 6px; font-size: 30px; }
  .journey-steps p { font-size: 15px; }
  .journey-steps .btn { margin-top: 10px; min-height: 44px; }
  .custom-tile { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 18px; }
  .custom-actions .btn { flex: 1 1 100%; justify-content: center; }
  .how-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-list li { padding: 2px 0 24px 54px; }
  .how-list li:not(:last-child)::after { left: 18px; right: auto; top: 44px; bottom: 6px; width: 1px; height: auto; }
  .how-list h3 { font-size: 22px; }
  .delivery-grid, .business { grid-template-columns: minmax(0, 1fr); }
  .pickup > svg { margin-bottom: 0; }
  .pickup h3 { margin-top: 12px; }
  .dlv-zones { font-size: 13px; }
  .dlv-zones td:first-child { font-size: 17px; }
  .biz-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .biz-body .btn { width: 100%; }
  .clients { gap: 4px 8px; }
  .clients li { height: 62px; }
  .clients img { height: calc(var(--h) * .72); }
  .client-gov { flex-direction: column; gap: 2px; font-size: 8.5px; text-align: center !important; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq h2 { position: static; }
  .faq summary { font-size: 20px; padding: 18px 0; }
}

/* подвал */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 80px 0 120px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-cta { margin: 0; font: 500 clamp(64px, 11vw, 170px)/.92 var(--serif); letter-spacing: -.03em; color: #fff; }
.footer-go { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.footer-phone { font-size: clamp(22px, 3vw, 34px); font-weight: 600; color: #fff; letter-spacing: -.02em; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0; }
.footer .brand-stacked { height: 84px; color: var(--brand-cream); --brand-amp: var(--accent-lit); }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col p { margin: 0; }
.footer-col .eyebrow { margin-bottom: 8px; color: rgba(255,255,255,.4); }
.footer-col a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; color: rgba(255,255,255,.4); }
.footer-legal p { margin: 0; }
.footer-legal a { text-decoration: underline; }

/* корзина внизу экрана */
.cart-bar { position: fixed; z-index: 40; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border: 0; border-radius: 999px; background: var(--graphite); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 16px 34px -14px rgba(29,29,31,.7); transform: translateY(160%); transition: transform .45s var(--ease), background .25s; }
.cart-bar.show { transform: none; }
.cart-bar.filled { background: var(--rose); }
.cart-bar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cart-bar.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { scale: 1.08; } }

/* появление при прокрутке */
.motion [data-reveal]:not(.in) { opacity: 0; transform: translateY(34px); }
.motion [data-reveal] { transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.motion .pcard[data-reveal] { transition-duration: .55s; }
.motion .pcard[data-reveal].in { transition: transform .2s var(--ease); }
.motion h2[data-reveal]:not(.in) { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
.motion h2[data-reveal] { transition: clip-path .9s var(--ease); }
.btn { transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.pcard:active { transform: scale(.985); }

/* карточка букета */
dialog { width: min(1080px, 100% - 32px); max-height: min(92vh, 880px); padding: 0; border: 0; border-radius: 24px; background: var(--bg); color: var(--ink); overflow: hidden; }
dialog[open] { animation: pop .4s var(--ease); }
dialog::backdrop { background: rgba(29,29,31,.6); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.d-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--paper); }
.d-layout { display: grid; grid-template-columns: 1fr 1fr; }
.d-media { position: relative; background: var(--surface); }
.d-media img { width: 100%; height: 100%; max-height: min(92vh, 880px); object-fit: cover; }
.d-body { padding: 40px 36px 32px; overflow-y: auto; max-height: min(92vh, 880px); }
.d-body h2 { margin: 8px 0 12px; font-size: clamp(30px, 3.4vw, 42px); }
.d-price { margin: 0 0 20px; font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.d-price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-right: 6px; }
.d-comp { margin: 0 0 18px; padding: 18px 20px; border-radius: var(--r-field); background: var(--surface); }
.d-comp:empty { display: none; }
.d-comp .d-wrap-h { margin-top: 14px; }
.d-bare { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 14px; cursor: pointer; }
.d-bare input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--graphite); flex: none; }
.d-comp .d-sum { margin-top: 12px; font-size: 13px; color: var(--ink, inherit); }
.d-comp .d-sum b { font-size: 16px; }
.d-ask { margin: 0 0 18px; }
.ask-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ask { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-field); color: inherit; text-decoration: none; font-size: 14px; font-weight: 500; }
.ask svg { width: 18px; height: 18px; flex: none; }
.ask:hover, .ask:focus-visible { border-color: var(--graphite); }
.d-comp h3 { margin: 0 0 10px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.d-comp ul { list-style: none; margin: 0; padding: 0; }
.d-comp li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.d-comp li:last-child { border-bottom: 0; }
.d-comp li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.d-comp p { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.d-dlv { display: flex; gap: 10px; align-items: center; margin: 0 0 24px; font-size: 14px; color: var(--soft); }
.d-dlv svg { color: var(--accent-deep); }
.d-actions, .d-submit { position: sticky; bottom: 0; z-index: 2; margin: 0 -36px -32px; padding: 14px 36px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.d-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.d-submit { margin-top: 18px; }
.d-submit .btn { margin: 0; }
#palette-field { margin-bottom: 18px; }
dialog.ordering .d-layout { grid-template-columns: minmax(0, 1fr); }
dialog.ordering .d-media { display: none; }
dialog.ordering { width: min(620px, 100% - 32px); }
dialog.ordering::before { content: "Корзина"; display: flex; align-items: center; height: 64px; padding: 0 72px 0 36px; border-bottom: 1px solid var(--line); font: 500 26px/1 var(--serif); }
dialog.ordering .d-body { max-height: calc(min(92vh, 880px) - 64px); padding-top: 18px; }
html:has(dialog[open]) { overflow: hidden; }
.toast { position: fixed; z-index: 45; left: 50%; bottom: 88px; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--graphite); color: #fff; font-size: 14px; transform: translateX(-50%); box-shadow: 0 16px 34px -14px rgba(29,29,31,.6); animation: toast-in .3s var(--ease); }
.toast[hidden] { display: none; }
.toast span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.toast button { flex: none; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--graphite); font-size: 13px; font-weight: 600; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cart-list { list-style: none; margin: 0 0 10px; padding: 0; }
.cart-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-list img { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--surface); }
.cart-name { display: block; font: 500 18px/1.15 var(--serif); }
.cart-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 4px; }
.cart-qty button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 16px; line-height: 1; color: var(--ink); cursor: pointer; }
.cart-qty b { min-width: 20px; text-align: center; font-size: 14px; }
.cart-more { display: block; margin: 0 0 22px; font-size: 14px; font-weight: 600; }
.cart-total { margin: 0 0 10px; font-size: 14px; color: var(--soft); }
.cart-total b { font-size: 18px; color: var(--ink); }

#form .field { display: block; margin-bottom: 18px; }
#form input:not([type="radio"]):not([type="checkbox"]), #form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--paper); outline: none; transition: border-color .2s; }
#form input:focus, #form textarea:focus, #form select:focus { border-color: var(--graphite); }
#form select { width: 100%; border-radius: var(--r-field); }
#form .chips { margin-bottom: 10px; }
.chip-date { position: relative; }
.chip-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip-date input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--surface); margin-bottom: 10px; }
.segmented-3 { grid-template-columns: 1fr 1fr 1fr; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 9px 6px; border-radius: 999px; text-align: center; font-size: 13px; cursor: pointer; transition: .2s; }
.segmented input:checked + span { background: var(--paper); box-shadow: 0 2px 8px -2px rgba(29,29,31,.18); font-weight: 600; }
.segmented input:focus-visible + span { outline: 1.5px solid var(--graphite); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--soft); }
.hint:empty { display: none; }
.hint b { color: var(--accent-deep); }
.only-pickup { display: none; }
#form.pickup .only-delivery, #form.pickup #d-zone-cost { display: none; }
#form.pickup .only-pickup { display: block; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--graphite); }
.toggle + textarea { margin-top: 10px; }
.consent { display: flex; gap: 10px; align-items: start; margin: 4px 0 16px; font-size: 12px; color: var(--soft); }
.consent input { margin-top: 2px; accent-color: var(--graphite); }
.consent a { text-decoration: underline; }
.form-error { margin: 0 0 12px; color: var(--danger); font-size: 13px; }
.form-error:empty { display: none; }
.field.invalid input { border-color: var(--danger) !important; }
.trap { position: absolute; left: -9999px; }
.tg-only { display: none; }
.tg .tg-only { display: block; }
.tg .no-tg { display: none !important; }
.done { padding: 40px 0; text-align: center; }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent); color: var(--accent-deep); }
.done-icon svg { width: 28px; height: 28px; }
.done h3 { font-size: 34px; margin-bottom: 8px; }
.done p { color: var(--soft); margin: 0 0 24px; }

@media (max-width: 1100px) {
  .menu { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 120px; }
  .header-inner { height: 56px; gap: 12px; }
  .logo .brand { height: 14px; }
  .messengers { margin-left: auto; gap: 4px; }
  .msg { min-width: 38px; height: 38px; padding: 0 8px; }
  .msg svg { width: 20px; height: 20px; }
  .msg-vk svg { width: 23px; height: 23px; }
  .msg-phone span { display: none; }
  .msg-phone { padding: 0 9px; margin-left: 2px; }
  .hero { margin-top: -56px; padding-top: 56px; }
  .hero-photo { top: 0; right: 0; left: 0; width: 100%; height: 58svh; aspect-ratio: auto; -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%); }
  .hero-photo img { object-position: 50% 62%; }
  .hero-inner { justify-content: flex-end; gap: 26px; padding: 37svh 0 20px; }
  .hero h1 { font-size: clamp(46px, 13.6vw, 76px); text-shadow: 0 2px 26px rgba(29,29,31,.75); }
  .hero-lead { margin: 16px 0 22px; font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; min-height: 54px; }
  .hero-facts { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; }
  .hero-facts b { white-space: nowrap; }
  .hero-facts a { font-size: 11px; }
  .hero-facts b { font-size: 13px; }
  .catalog { padding-top: 40px; }
  .filterbar { top: 56px; padding: 8px 0; }
  .chips-scroll { margin-inline: -16px; padding-inline: 16px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 26px 10px; }
  .pcard-name { font-size: 17px; }
  .pcard-price { padding: 7px 10px; font-size: 13px; }
  .pcard-add { width: 36px; height: 36px; }
  .pcard-foot { padding: 8px; }
  .footer { padding: 56px 0 120px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cart-bar { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .footer-go { align-items: flex-start; }
  dialog { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  dialog[open] { animation-name: up; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .d-layout { display: block; height: 100%; overflow-y: auto; }
  .d-media img { max-height: 70vh; height: auto; aspect-ratio: 4 / 5; }
  .d-body { max-height: none; overflow: visible; padding: 22px 16px 0; }
  .d-actions, .d-submit { margin-inline: -16px; margin-bottom: 0; padding-inline: 16px; }
  /* в корзине кнопка идёт за полями: прилипшая перекрывала бы их при открытой клавиатуре */
  .d-submit { position: static; border-top: 0; padding-top: 0; }
  dialog { height: 100dvh; max-height: 100dvh; }
  dialog.ordering { width: 100%; }
  dialog.ordering::before { height: 56px; padding: 0 64px 0 16px; }
  dialog.ordering .d-layout { height: calc(100% - 56px); }
  dialog.ordering .d-body { max-height: none; padding-top: 10px; }
  dialog.ordering .d-close { top: 8px; right: 12px; }
  /* шрифт меньше 16 px заставляет iPhone увеличивать страницу при нажатии на поле */
  #form input:not([type="radio"]):not([type="checkbox"]), #form textarea, #form select { font-size: 16px; }
  .toast { left: 10px; right: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); transform: none; justify-content: space-between; animation-name: toast-in-m; }
  @keyframes toast-in-m { from { opacity: 0; transform: translateY(12px); } }
  .logo .brand { height: 12px; }
  .fine { padding-bottom: 28px; }
}

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

/* выбор количества у моно */
.d-opts { margin-bottom: 14px; }
.d-opts .chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.d-opts .fchip { min-width: 48px; justify-content: center; }
