/* The phone boards 1:1 (V-home-phone, 390 wide): 24 side padding, one column, flex gap 24, 32 spacers.
   Shown under 1024 px (V-ad-834 keeps the phone chrome on tablets); above it the desktop boards (board.css). Values read off V-home-phone.dc.html. */

.hp, .ph, .pf, .tabs { display: none; }

@media (max-width: 1023px) {
  :root { --phone-tabs-space: calc(96px + env(safe-area-inset-bottom)); }
  .hd, .bh, .bf { display: none !important; }
  .hp { display: flex; flex-direction: column; gap: 24px; position: relative; padding-bottom: 0; }
  .ph { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 16px 24px 0; }
  .pf { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 24px; position: relative; margin-top: 24px; }
  .tabs { display: flex; }
  body { padding-bottom: var(--phone-tabs-space); }
  main + .bf, .bf { margin-top: 0; }
  main { margin-top: 24px; }
  .page-main-home main { margin-top: 24px; }
}

/* header */
.ph .district { width: auto; justify-self: center; }
.ph .district-frame { width: 100%; height: 100%; }
.ph .district-loc { width: 34px; flex-shrink: 0; }
.ph .district-name { gap: 4px; padding: 0 12px 0 12px; font-size: 14px; }
.ph .district-name .ico { width: 16px; height: 16px; }
/* the mark at the left (owner, 12.10): the circle (guest) on the tile (place), 36 high */
.ph-logo { justify-self: start; display: flex; height: 36px; }
.ph-logo svg { height: 36px; width: auto; display: block; }
.ph-tools { justify-self: end; }
/* the pill opens the district menu (owner, 12.10): near me, all Minsk, the districts with places */
.district-sum { position: relative; display: flex; align-items: stretch; width: 100%; height: 100%; list-style: none; cursor: pointer; }
.district-sum::-webkit-details-marker { display: none; }
.geo[open] .district-name .ico { transform: rotate(180deg); }
.geo-menu { position: absolute; left: 0; top: 48px; z-index: 30; width: 248px; max-height: 60vh; overflow-y: auto; box-sizing: border-box; padding: 8px; display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sheet); box-shadow: var(--shadow-float, 0 10px 28px rgba(29, 26, 24, 0.22)); }
.geo-t { padding: 8px 12px 4px; font: 400 22px/1 var(--font-hand, 'Marck Script', cursive); color: var(--orange); }
.geo-menu a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-m); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.geo-menu a:hover { background: var(--paper); color: var(--ink); }
.geo-menu a.on { color: var(--orange-deep); }
.geo-menu a.on::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: var(--radius-round); background: var(--orange); }
.geo-menu .geo-near { color: var(--orange-deep); border-bottom: 1px solid var(--line); border-radius: var(--radius-m) var(--radius-m) 0 0; margin-bottom: 4px; }
.geo-menu .geo-near .ico { width: 18px; height: 18px; }
.ph-tools { display: flex; align-items: center; gap: 4px; }
.ph-btn { width: 40px; height: 40px; box-sizing: border-box; flex-shrink: 0; border-radius: var(--radius-s); border: var(--bw) solid var(--rule); display: flex; align-items: center; justify-content: center; background: none; padding: 0; color: var(--ink); cursor: pointer; }
.ph-btn svg { width: 24px; height: 24px; }
.ph-btn svg[stroke="#2a2a28"], .ph-btn svg [stroke="#2a2a28"], .hp-sq svg[stroke="#2a2a28"], .hp-sq svg [stroke="#2a2a28"], .hp-fav svg[stroke="#2a2a28"], .hp-fav svg [stroke="#2a2a28"] { stroke: var(--ink); }
.ph-btn .lamp-on { display: none; }
:root[data-theme="dark"] .ph-btn .lamp-on { display: inline-flex; }
:root[data-theme="dark"] .ph-btn .lamp-off { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ph-btn .lamp-on { display: inline-flex; } :root:not([data-theme="light"]) .ph-btn .lamp-off { display: none; } }

/* headline: «Куда / сегодня?», the note and the dice */
.hp-h { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 24px; }
.hp-h1 { margin: 0; font: 400 40px/44px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.hp-line { position: absolute; left: -3%; width: 106%; bottom: -8px; height: 12px; }
.hp-note { position: absolute; left: 203px; top: -18px; font: 400 28px/1 'Marck Script', 'Caveat', cursive; color: var(--orange); transform: rotate(-5deg); white-space: nowrap; display: inline-block; }
.hp-arrow { position: absolute; left: 267px; top: 7px; width: 65px; height: 51px; }
.hp-dice-wrap { padding-bottom: 6px; display: flex; }
.hp-dice { width: 56px; height: 40px; box-sizing: border-box; flex-shrink: 0; border-radius: var(--radius-s); background: var(--ink); display: flex; align-items: center; justify-content: center; }
.hp-dice .dice { width: 30px; height: 30px; display: inline-flex; }

/* chips and the count row */
.hp-chips { display: flex; gap: 8px; padding: 0 24px; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; scrollbar-width: none; }
.hp-chips::-webkit-scrollbar { display: none; }
.hp-chip { padding: 0 18px 0 10px; }
.hp-count { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 0 24px; }
.hp-count > span { font-size: 17px; line-height: 24px; font-weight: 600; }
.hp-count > div { display: flex; align-items: center; gap: 8px; }
.hp-sq { width: 48px; height: 32px; box-sizing: border-box; flex-shrink: 0; border-radius: var(--radius-s); border: var(--bw) solid var(--rule); display: flex; align-items: center; justify-content: center; }
.hp-sq svg { width: 24px; height: 24px; }

/* the place card */
.hp-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 24px; }
.hp-photo { display: block; position: relative; width: 100%; aspect-ratio: 342 / 196; box-sizing: border-box; border-radius: var(--radius-m); background: var(--paper); text-decoration: none; }
.hp-badge { position: absolute; left: 12px; top: 12px; }
.hp-badge .bbadge { background: var(--cream); }
.hp-fav { position: absolute; right: 36px; top: 12px; width: 40px; height: 32px; box-sizing: border-box; border-radius: var(--radius-s); display: flex; align-items: center; justify-content: center;
  background: rgba(255, 251, 248, 0.78); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.9); }
:root[data-theme="dark"] .hp-fav { background: rgba(29, 26, 24, 0.7); border-color: rgba(255, 255, 255, 0.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-fav { background: rgba(29, 26, 24, 0.7); border-color: rgba(255, 255, 255, 0.12); } }
.hp-fav svg { width: 18px; height: 18px; }
.hp-card-txt { display: flex; flex-direction: column; gap: 2px; }
.hp-name-row { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
.hp-name-row .bcard-title { color: var(--ink); text-decoration: none; }
.hp-rate { display: flex; align-items: center; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 600; flex-shrink: 0; }
.hp-stars { display: inline-flex; gap: 1px; align-items: center; }
.hp-stars svg { width: 14px; height: 14px; }
.hp-rv .hp-stars svg { width: 14px; height: 14px; }
.hp-meta { display: flex; align-items: baseline; gap: 6px; font-size: 13px; line-height: 18px; color: var(--graphite); }
.hp-meta .bprice { font-size: 13px; line-height: 18px; }
.hp-slots { display: flex; align-items: center; gap: 8px; }
.hp-slot { height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--radius-s); border: var(--bw) solid var(--orange); color: var(--orange-deep); text-decoration: none; font: 600 13px/1 'Nunito Sans', sans-serif; }
.hp-slot.off { border-style: dashed; border-color: var(--rule); color: var(--rule); font-weight: 400; }
.hp-today { margin-left: auto; font-size: 13px; line-height: 18px; color: var(--graphite); }

/* festival inside the list */
.hp-pad { padding: 0 24px; }
.hp-fest { position: relative; width: 100%; height: 208px; border-radius: var(--radius-sheet); background: var(--fest-bg); overflow: hidden; }
.hp-fest img { position: absolute; }
.hp-fest .pf1 { left: calc(100% - 128px); top: 18px; width: 78px; } .hp-fest .pf2 { left: calc(100% - 50px); top: 22px; width: 48px; }
.hp-fest .pf3 { left: calc(100% - 42px); top: 92px; width: 46px; } .hp-fest .pf4 { left: calc(100% - 110px); top: 112px; width: 52px; }
.hp-fest-body { position: absolute; left: 20px; top: 20px; bottom: 20px; width: 188px; display: flex; flex-direction: column; }
.hp-fest-title { font: 400 22px/26px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); margin-top: 6px; }
.hp-fest-act { display: flex; margin-top: auto; }
.hp-fest-btn { padding: 0 14px 0 16px; }
.hp-more { width: 100%; }
.hp-more .ico { width: 20px; height: 20px; }
.hp-spacer { height: 32px; }
.hp-spacer-48 { height: 48px; }

/* sections */
.hp-sec { display: flex; flex-direction: column; gap: 16px; }
.hp-head { display: flex; align-items: flex-end; gap: 12px; justify-content: space-between; padding: 0 24px; }
.hp-head-t { display: flex; flex-direction: column; gap: 2px; }
.hp-head-t h2 { margin: 0; font: 400 28px/32px 'Dela Gothic One', 'Arial Black', sans-serif; color: var(--orange); }
.hp-head-t span { font-size: 13px; line-height: 18px; color: var(--graphite); }
.hp-head-link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--orange-deep); }
.hp-head-link .ico { width: 16px; height: 16px; }
.hp-rev-wrap { display: flex; flex-direction: column; }
.hp-hint { height: 30px; margin-bottom: -4px; display: flex; justify-content: flex-end; align-items: flex-end; padding: 0 24px; pointer-events: none; }
.hp-hint > span { position: relative; z-index: 2; transform: translateY(-10px) rotate(2deg); display: inline-flex; align-items: center; gap: 4px; }
.hand-24 { font: 400 24px/1 'Marck Script', 'Caveat', cursive; color: var(--orange); white-space: nowrap; }
.hp-scroll { display: flex; gap: 12px; padding: 0 24px; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; scroll-snap-type: x mandatory; scroll-padding: 0 24px; scrollbar-width: none; }
.hp-scroll::-webkit-scrollbar { display: none; }
.hp-rv { width: 296px; flex: 0 0 296px; scroll-snap-align: start; }
.hp-rv .rv-top { gap: 8px; }
.hp-ph { width: 80px; height: 64px; }
.hp-empty { padding: 20px; }
.hp-colls { gap: 16px; }
.hp-coll { display: flex; flex-direction: column; gap: 10px; width: 240px; flex: 0 0 240px; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.hp-coll-grid { position: relative; display: grid; grid-template-columns: 116px 116px; gap: 8px; }
.hp-coll-grid > div { width: 116px; height: 80px; border-radius: var(--radius-m); background: var(--paper); }
.hp-coll-sticker { position: absolute; left: 88px; top: 52px; width: 64px; height: 64px; border-radius: var(--radius-round); background: var(--cream); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 var(--bw) var(--line); }
.hp-coll-sticker img { width: 40px; height: 40px; }
.hp-coll-t { display: flex; flex-direction: column; }
.hp-coll-t span:first-child { font-size: 17px; line-height: 24px; font-weight: 600; }

/* journal */
.hp-art { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.hp-art-photo { position: relative; width: 100%; aspect-ratio: 342 / 190; border-radius: var(--radius-m); background: var(--paper); }
.hp-art-note { position: absolute; right: 12px; top: 10px; font: 400 24px/1 'Marck Script', 'Caveat', cursive; color: var(--orange); transform: rotate(-4deg); white-space: nowrap; display: inline-block; pointer-events: none; }
.hp-art-row { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); padding: 0 24px; }
.hp-art-thumb { width: 96px; height: 72px; border-radius: var(--radius-m); background: var(--paper); flex-shrink: 0; }
.hp-art-row > div { display: flex; flex-direction: column; gap: 2px; }
.hp-art-small { font-size: 17px; line-height: 24px; font-weight: 600; }

/* the page's pencil lines */
.hp-bgline { pointer-events: none; position: relative; height: 0; margin-top: -24px; z-index: 0; }
.hp-bgline svg { position: absolute; left: -44px; width: calc(100% + 88px); height: auto; max-width: none; }
.hp-bgline-1 svg { top: 12px; }
.hp-bgline-2 svg { top: 8px; }

/* phone footer and tab bar */
.tabs { position: fixed; left: max(12px, calc(50% - 240px)); right: max(12px, calc(50% - 240px)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; height: 64px; box-sizing: border-box; padding: 0 8px; border-radius: var(--radius-sheet);
  justify-content: space-between; align-items: center;
  /* liquid glass (owner, 12.10): thin tint so the page shows through, strong blur and saturation, a lit top edge */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 251, 248, 0.22)); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -1px 0 rgba(42, 42, 40, 0.06), 0 8px 24px rgba(29, 26, 24, 0.14); }
:root[data-theme="dark"] .tabs { background: linear-gradient(180deg, rgba(60, 54, 49, 0.42), rgba(29, 26, 24, 0.34)); border-color: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs { background: linear-gradient(180deg, rgba(60, 54, 49, 0.42), rgba(29, 26, 24, 0.34)); border-color: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.4); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabs { background: rgba(255, 251, 248, 0.94); } :root[data-theme="dark"] .tabs { background: rgba(29, 26, 24, 0.94); } }
.tabs a { position: relative; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-m); text-decoration: none; }
.tabs a svg { width: 28px; height: 28px; }
.tabs .tab-on { width: auto; height: 48px; box-sizing: border-box; gap: 6px; padding: 0 18px 0 12px; background: var(--orange); color: #fff; font: 600 15px/1 'Nunito Sans', sans-serif; }
.tab-badge { position: absolute; right: 4px; top: 4px; min-width: 16px; height: 16px; box-sizing: border-box; padding: 0 4px; border-radius: var(--radius-xs); background: var(--orange); color: #fff; font: 600 11px/16px 'Nunito Sans', sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--cream); }

/* the tab drawings: the chosen one is white on the orange pill, the rest orange (the boards stroke them so) */
.tabs a svg { stroke: var(--orange); }
.tabs .tab-on svg { stroke: #fff; }

/* ---------------------------------------------------------------- journal feed V-j-feed, article V-j-article (390, 24 sides) */
@media (max-width: 833px) {
  .bare main { margin-top: 0; }
  .jf { margin: 0; padding: var(--space-24) 0 0; gap: 24px; overflow: visible; }
  .jf-cup, .jf-line, .jf-sub, .jf-foot-line, .jf-hero-mark, .jf-hero-lead, .pc { display: none; }
  .mob { display: inline; }
  .jf-top { padding: 0 24px; gap: 12px; align-items: flex-end; }
  .jf-h1 { font-size: 40px; line-height: 44px; }
  .jf-teapot { display: block; align-self: flex-start; margin: -14px 0 0 2px; flex-shrink: 0; }
  .jf-teapot svg { transform: rotate(-6deg); }
  .jf-chips { padding: 0 24px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .jf-chips::-webkit-scrollbar { display: none; }
  .jf-hero { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 24px; }
  .jf-hero-photo { flex: none; width: 100%; aspect-ratio: 342 / 220; border-radius: var(--radius-m); }
  .jf-hero-col { flex: none; gap: 8px; }
  .jf-hero-t { font-size: 28px; line-height: 32px; }
  .jf-hero-note { font-size: 15px; line-height: 20px; }
  .jf-empty { padding: 24px; font-size: 17px; line-height: 24px; }
  .jf-grid { display: flex; flex-direction: column; gap: 0; padding: 0 24px; }
  .jf-grid .jcard { flex-direction: row; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
  .jf-grid .jcard:first-child { border-top: 0; }
  .jf-grid .jcard-photo { width: 104px; height: 80px; aspect-ratio: auto; border-radius: var(--radius-m); }
  .jf-grid .jcard-txt { gap: 2px; }
  .jf-grid .jcard-t, .art-more .jcard-t { font-size: 17px; line-height: 24px; }

  /* the article: the cover (here the map) first and full width, «назад» and «поделиться» on glass over it */
  .art { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: visible; }
  .art-cheese, .art-line, .art-sparkle, .art > .crumbs, .art-head .art-meta { display: none; }
  .art-hero { order: -1; margin: 0; }
  .art > .post-cover { margin: 16px var(--gut, 16px) 0; border-radius: var(--radius-m); } /* gutter and a gap under the title (owner, 07.11) */
  .art-map { height: 300px; border-radius: 0 0 var(--radius-m) var(--radius-m); }
  .art-hero-label { top: auto; bottom: 16px; left: 24px; }
  .art-back, .art-share-ph { display: flex; position: absolute; top: 16px; z-index: 3; width: 56px; height: 40px; box-sizing: border-box; border-radius: var(--radius-s); align-items: center; justify-content: center;
    background: rgba(255, 251, 248, 0.78); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.9); color: #2a2a28; padding: 0; cursor: pointer; }
  .art-back { left: 16px; }
  .art-share-ph { right: 16px; }
  .art-share-ph .ico { width: 20px; height: 20px; }
  .art-head { padding: 24px 24px 0; gap: 10px; }
  .art-meta-ph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--graphite); }
  .art-meta-ph .jrub { color: inherit; }
  .art-head .art-share-m { display: inline-flex; align-self: flex-start; margin-top: var(--space-12); }
  .art-head .art-share-m[hidden] { display: none; }
  .art-body { padding: 0 24px; margin-top: 24px; }
  .art > .sec { padding: 0 24px; }
  .art-more-grid { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .art-more-grid .jcard { flex: 0 0 240px; }
}
@media (max-width: 833px) { .art-map .maplibregl-ctrl-top-right { top: 56px; } }
/* the feed's end on the phone (V-home-phone, 12.10): the document links, then «Есть заведение?» for owners */
.pf-owner { margin-top: 16px; height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 16px; border-radius: var(--radius-s); background: var(--orange-strong); color: #fff; font: 600 15px/1 'Nunito Sans', sans-serif; text-decoration: none; }
.pf-owner:hover { color: #fff; }
.pf-owner .ico { width: 18px; height: 18px; }
@media (max-width: 374px) { .pf { padding-left: 16px; padding-right: 16px; } .ph { padding-left: 16px; padding-right: 16px; gap: 6px; } }
/* the owner from the v4 cast beside «Есть заведение?» (owner, 13.10) */
.pf-cta { margin-top: 16px; display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.pf-cta .pf-owner { margin-top: 0; }
.pf-owner-art { height: 64px; width: auto; display: block; }

/* ---------------------------------------------------------------- app motion on phones (owner, 13.10)
   Cross-document view transitions: deeper pages push in from the right, back pops from the left, tabs cross-fade.
   The tab bar and its orange pill keep their own names, so the bar stays still and the pill glides to the new tab.
   Presses answer with a short squeeze. Everything is off with «reduce motion». */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .tabs { view-transition-name: tabbar; }
  .tabs .tab-on { view-transition-name: tab-pill; }
  ::view-transition-group(root) { animation-duration: .36s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
  ::view-transition-group(tab-pill) { animation-duration: .34s; animation-timing-function: cubic-bezier(.3, 1.3, .5, 1); }
  ::view-transition-old(tab-pill), ::view-transition-new(tab-pill) { height: 100%; object-fit: none; overflow: clip; }
  ::view-transition-old(tabbar), ::view-transition-new(tabbar) { animation: none; }
  html:active-view-transition-type(forward)::view-transition-old(root) { animation: .36s cubic-bezier(.22, .8, .24, 1) both vt-push-out; }
  html:active-view-transition-type(forward)::view-transition-new(root) { animation: .36s cubic-bezier(.22, .8, .24, 1) both vt-push-in; }
  html:active-view-transition-type(back)::view-transition-old(root) { animation: .32s cubic-bezier(.22, .8, .24, 1) both vt-pop-out; }
  html:active-view-transition-type(back)::view-transition-new(root) { animation: .32s cubic-bezier(.22, .8, .24, 1) both vt-pop-in; }
  html:active-view-transition-type(tab)::view-transition-old(root) { animation: .18s ease-out both vt-fade-out; }
  html:active-view-transition-type(tab)::view-transition-new(root) { animation: .24s ease-out both vt-rise-in; }

  a, button, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
  .tabs a, .ph-btn, .district-sum, .wow-locked, .dc, .wow-card, .card, .chip, .bbtn, .btn, .hlink, .wow-heart, .vp-map-link, .vp-top-all, .wow-book, .lb-btn {
    transition: transform .14s cubic-bezier(.3, .7, .4, 1), opacity .14s;
  }
  .tabs a:active, .ph-btn:active, .district-sum:active, .chip:active, .bbtn:active, .btn:active, .wow-heart:active, .vp-map-link:active, .vp-top-all:active, .wow-book:active { transform: scale(.94); }
  .wow-locked:active, .dc:active, .wow-card:active, .card:active { transform: scale(.975); }
  .tabs .tab-on svg { animation: tab-pop .42s cubic-bezier(.3, 1.6, .5, 1) both; }
  .geo[open] .geo-menu { animation: sheet-pop .2s cubic-bezier(.22, .8, .24, 1) both; transform-origin: top center; }
}
@keyframes vt-push-out { to { transform: translateX(-28%); opacity: .55; } }
@keyframes vt-push-in { from { transform: translateX(100%); box-shadow: -12px 0 32px rgba(0, 0, 0, .12); } to { transform: none; box-shadow: -12px 0 32px rgba(0, 0, 0, 0); } }
@keyframes vt-pop-out { to { transform: translateX(100%); } }
@keyframes vt-pop-in { from { transform: translateX(-28%); opacity: .55; } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes tab-pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes sheet-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }

/* the place page on phones: «Это ваше заведение?» moves from the column into the footer, under the documents */
.pf-claim { position: relative; overflow: hidden; margin: 20px 0 0; padding: 22px 120px 22px 22px; border-radius: var(--radius-sheet); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-float); text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pf-claim h2 { margin: 0; font: 400 20px/24px var(--font-display); color: var(--ink); }
.pf-claim p { margin: 0; font: 400 15px/21px var(--font-text); color: var(--ink); max-width: 26ch; }
.pf-claim .btn { width: auto; margin-top: 4px; }
.pf-claim .pf-claim-art { position: absolute; right: 12px; bottom: -4px; width: 96px; height: auto; }
@media (max-width: 1023px) { .vp aside .claim { display: none; } }
@media (max-width: 374px) { .pf-claim { padding-right: 96px; } .pf-claim .pf-claim-art { width: 80px; } }

/* the place page on phones: the call or the booking and the route, pinned over the tab bar (owner, 13.10) */
.vp-dock { display: none; }
@media (max-width: 1023px) {
  .vp-dock { position: fixed; left: max(12px, calc(50% - 240px)); right: max(12px, calc(50% - 240px)); bottom: 88px; z-index: 29; display: flex; align-items: center; gap: 8px; padding: 8px; box-sizing: border-box; border-radius: var(--radius-sheet);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 251, 248, 0.22)); -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 24px rgba(29, 26, 24, 0.14); view-transition-name: place-dock; }
  :root[data-theme="dark"] .vp-dock { background: linear-gradient(180deg, rgba(60, 54, 49, 0.42), rgba(29, 26, 24, 0.34)); border-color: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.4); }
  .vp-dock-main { flex: 1 1 auto; min-width: 0; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: var(--radius-m); background: var(--orange); color: #fff; font: 600 15px/1 'Nunito Sans', sans-serif; text-decoration: none; white-space: nowrap; }
  .vp-dock-main .ico, .vp-dock-main svg { width: 20px; height: 20px; flex: none; }
  .vp-dock .vp-maps { display: flex; gap: 6px; width: auto; flex: none; }
  .vp-dock .vp-map-link { width: 48px; height: 48px; box-sizing: border-box; display: grid; place-items: center; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); }
  .vp-dock .vp-map-link:active { transform: scale(.94); }
  .vp-dock .vp-map-link svg { width: 26px; height: 26px; display: block; }
  .vp-dock:not(:has(.vp-dock-main)) { justify-content: center; }
  .vp aside .vp-maps { display: none; }
}
@media (max-width: 1023px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vp-dock { background: linear-gradient(180deg, rgba(60, 54, 49, 0.42), rgba(29, 26, 24, 0.34)); border-color: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.4); } }
@media (max-width: 374px) { .vp-dock .vp-map-link { width: 44px; } .vp-dock-main { font-size: 14px; padding: 0 10px; } }
/* the place page gives the tab bar's spot to the dock: booking and the route matter more here (owner, 13.10) */
@media (max-width: 1023px) {
  body:has(.vp-dock) .tabs { display: none; }
  body:has(.vp-dock) .vp-dock { bottom: max(16px, env(safe-area-inset-bottom)); }
  body:has(.vp-dock) { padding-bottom: var(--phone-tabs-space); }
}
/* the place page on phones, spacing (owner, 13.10): the menu runs into the cards at the cards' own gap, the call card
   goes (the dock calls), the owner's card is as wide as the cards above and the documents sit under it */
@media (max-width: 1023px) {
  .vp .place-body { row-gap: 24px; }
  .vp .place-body .wow-menu-section:last-child { margin-bottom: 0; }
  .vp .place-body .wow-menu-section:last-child .wow-dishes { padding-bottom: 0; }
  .vp aside .panel:has(#book) { display: none; }
  .wow-place.vp { padding-bottom: 0; }
  body:has(.vp-dock) .pf { margin-top: 24px; padding-left: 24px; padding-right: 24px; }
  .pf-claim { align-self: stretch; margin-top: 0; }
  .pf-claim + .pf-legal { margin-top: 16px; }
}
@media (max-width: 767px) { body:has(.vp-dock) .pf { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 374px) { body:has(.vp-dock) .pf { padding-left: 16px; padding-right: 16px; } }

/* Keep the existing journal header within the smallest supported viewport. */
@media (max-width: 374px) { .jf .jf-h1 { font-size: 30px; line-height: 34px; } }

/* phone footer: the documents under the wordmark */
.pf-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 8px 0 4px; font-size: 13px; line-height: 18px; }
.pf-legal a { color: var(--graphite); text-decoration: none; }
.pf-legal a:hover { text-decoration: underline; }

/* /business/ and /business/claim/ are for owners: no guest tab bar (Места, Избранное, Журнал) over their buttons */
body:has(.bw-root) > .tabs, body:has(.claim-page) > .tabs { display: none; }
