:root { --passport-motion-ready:1; }
.passport-viewport-small,.passport-viewport-large { position:fixed;top:0;left:0;width:0;visibility:hidden;pointer-events:none;contain:strict; }
.passport-viewport-small { height:100svh; }
.passport-viewport-large { height:100lvh; }
.reading-hint { display:none; }
/* A stationary scene contains the physical book. Only a leaf or a cover turns. */
body[data-passport-layout] .book-area { width:100%; margin-inline:0; }
body[data-passport-layout] .book-stage { --board-height:744px; position:relative; height:var(--board-height); margin-bottom:calc(18px + env(safe-area-inset-bottom, 0px)); }
body[data-passport-layout] .book-cover { position:absolute; inset:0; height:100%; }
body[data-passport-layout] .passport-board { position:absolute; top:0; left:calc(25% - 6px); width:calc(50% + 12px); height:100%; }
body[data-passport-layout] .book-pages { height:100%; grid-template-rows:100%; }
body[data-passport-layout] .leaf { height:100%; min-height:0; padding-top:22px; padding-bottom:58px; }
body[data-passport-layout] .leaf-content { height:100%; min-height:0; flex:none; }
body[data-passport-layout] .is-measuring { visibility:hidden; pointer-events:none; }
body[data-passport-layout] .is-measuring .leaf { grid-column:1; grid-row:1; }
body[data-passport-production] .cover-face { padding-top:clamp(25px,8vh,85px); padding-bottom:25px; justify-content:center; }
body[data-passport-production] .cover-logo { margin-bottom:clamp(14px,3vh,36px); }
body[data-passport-production] .cover-rule { margin-block:clamp(12px,3vh,32px); }
body[data-passport-production] .cover-city { margin-top:clamp(12px,2vh,25px); }
body[data-passport-layout] :is(.doctor-profile,.doctor-introduction) { display:flex;flex-direction:column; }
body[data-passport-layout] .leaf { container:passport-leaf / size; }
@container passport-leaf (max-height:120px) and (min-width:400px) {
 body[data-passport-layout] .leaf .runhead { padding-bottom:0;margin-bottom:1px;border-bottom-width:1px; }
 body[data-passport-layout] .leaf h1 { margin-block:0; }
}
body[data-passport-layout] .portrait { max-height:min(var(--portrait-height,744px),max(96px,calc(var(--board-height) - 120px))); width:auto; max-width:100%; align-self:flex-start; }
body[data-passport-layout] .portrait img { width:auto;max-width:100%;object-fit:contain; }
body[data-passport-layout] .cats { max-height:min(var(--cats-height,744px),max(96px,calc(var(--board-height) - 120px))); }
body[data-passport-layout] .cats[style*="--cats-height"] img { object-fit:contain; }
/* The two real mounted photos keep their backing when their paper turns. */
body[data-passport-layout] :is(.cats,.portrait) { will-change:transform; }
body[data-passport-layout] .map { max-height:max(96px,calc(var(--board-height) - 120px)); }
body[data-passport-layout] .leaf-bottom { margin-top:auto; }
body[data-passport-layout] .welcome-bottom { margin-top:auto; }
/* Measured overflow selects compact spacing, independently of device models.
   The original text and image sizes remain the minimum reading contract. */
body[data-passport-layout] .leaf.flow-compact .runhead { margin-bottom:10px; }
body[data-passport-layout] .leaf.flow-compact :is(h1,h2) { margin-bottom:12px; }
body[data-passport-layout] .leaf.flow-compact :is(.body-copy,.welcome-lead,.intro) { margin-bottom:10px; }
body[data-passport-layout] .leaf.flow-compact .fields > div { padding-block:5px 4px; }
body[data-passport-layout] .leaf.flow-compact .price-rows > div { padding-block:10px; }
body[data-passport-layout] .leaf.flow-compact .paper-note { margin-top:10px; }
body[data-passport-layout] .leaf.flow-compact .leaf-bottom { padding-top:6px; gap:4px; }
/* Preserve complete introductory/booking sheets at ordinary laptop and phone
   heights by using their whitespace, without changing type or photograph sizes. */
@container passport-leaf (min-height:400px) and (max-height:744px) {
 body[data-passport-layout] .detail-leaf .leaf-bottom { gap:4px; width:100%; }
 body[data-passport-layout] .prices-leaf .leaf-bottom:has(.ink-mark) { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; align-items:center; width:100%; }
 body[data-passport-layout] .prices-leaf .leaf-bottom:has(.ink-mark) .price-date { grid-column:1; grid-row:1; }
 body[data-passport-layout] .prices-leaf .leaf-bottom:has(.ink-mark) .ink-mark { grid-column:2; grid-row:1 / span 2; padding:0; margin:0; }
 body[data-passport-layout] .prices-leaf .leaf-bottom:has(.ink-mark) > .text-link { grid-column:1; grid-row:2; }
 body[data-passport-layout] .runhead { margin-bottom:16px; }
 body[data-passport-layout] .leaf :is(h1,h2) { margin-bottom:16px; }
 body[data-passport-layout] .leaf.welcome-leaf .runhead { margin-bottom:16px; }
 body[data-passport-layout] .leaf.welcome-leaf .welcome-title { margin-bottom:6px; }
 body[data-passport-layout] .leaf.welcome-leaf .welcome-lead { margin-bottom:6px; }
 body[data-passport-layout] .leaf.welcome-leaf .welcome-actions { margin-top:8px; margin-bottom:6px; }
 body[data-passport-layout] :is(.welcome-leaf,.clinic-leaf,.appointment-leaf,.address-leaf,.detail-leaf) .fields > div { padding-block:8px 6px; }
 body[data-passport-layout] .welcome-leaf .fields > div { padding-block:6px 4px; }
 body[data-passport-layout] :is(.clinic-leaf,.appointment-leaf,.address-leaf,.detail-leaf) .leaf-bottom { padding-top:10px; gap:6px; }
 body[data-passport-layout] .appointment-leaf .intro { margin-bottom:12px; }
 body[data-passport-layout] .appointment-leaf .paper-note { margin-top:8px; padding-block:0; }
 body[data-passport-layout] .appointment-leaf .city-contact { margin-bottom:4px; }
 body[data-passport-layout] .appointment-leaf .fields > div { padding-block:6px 4px; }
 body[data-passport-layout] .address-leaf .map { max-height:max(96px,calc(var(--board-height) - 440px)); }
}
body[data-passport-layout] .book-pages.is-turning .leaf,
body[data-passport-layout] .book-area.is-cover-turning { animation:none; }
/* Blurred ground shadow lives outside the perspective scene. Printed surfaces
   keep sharp edges and material textures, so WebKit can reuse their backing layers. */
body[data-passport-layout] .book-area::after { content:'';box-sizing:border-box;position:absolute;top:var(--scene-top);left:0;width:100%;height:var(--scene-height);border:10px solid transparent;border-image-source:url("assets/material/book-shadow.bc900189f53e.png");border-image-slice:40 fill;border-image-width:40px;border-image-outset:30px;border-image-repeat:stretch;box-shadow:none;pointer-events:none;z-index:0;transform:translateZ(0);transition:transform .78s cubic-bezier(.42,0,.18,1); }
body[data-passport-layout] .book-stage { z-index:1; }
body[data-passport-layout] .book-stage *,body[data-passport-layout] .book-stage *::before,body[data-passport-layout] .book-stage *::after { box-shadow:none;filter:none; }
body[data-passport-layout] .passport-board,body[data-passport-layout] .book-pages > .leaf { will-change:transform;transform:translateZ(0);transform-origin:left center;backface-visibility:hidden;-webkit-backface-visibility:hidden; }
body[data-passport-layout] .passport-board { z-index:0; }
@media(min-width:1001px) { body[data-passport-layout] .book-cover[aria-hidden="true"]:not(.turn-live-binding) { clip-path:inset(0 25%); } }
body[data-passport-layout]:is([data-view="cover"],[data-view="back-cover"]) .passport-board:not([aria-hidden]) { z-index:3; }
body[data-passport-layout] .book-pages > .leaf[data-page-prepared] { z-index:0; }
/* A cached scrollable review must not paint through the active paper. Keep
   only the surfaces participating in this turn visible until cleanup. */
body[data-passport-layout] .book-pages > .leaf[data-page-prepared]:not(.turn-live-surface) { visibility:hidden; }
body[data-passport-layout] .book-pages > .leaf[data-page-current] { z-index:2; }
body[data-passport-layout] .leaf::after { content:'';position:absolute;inset:0;background:linear-gradient(90deg,#655f4a12,transparent 5%,transparent 96%,#655f4a0d);pointer-events:none; }
/* Existing paper/cloth layers are precomposed once, leaving print and photos as real DOM.
   The paper frame stays above the opaque material just as it did above transparent wear. */
body[data-passport-production] .leaf { background-image:var(--leaf-material);background-size:100% 100%; }
body[data-passport-production] .leaf::before { z-index:1; }
body[data-passport-production] .leaf::after { background:none; }
body[data-passport-layout] .passport-board { background-image:url("assets/material/cover-front-composite.3eb6d17535e1.webp");background-size:100% 100%; }
body[data-passport-layout] .passport-back-cover { background-image:url("assets/material/cover-back-composite.a8f1785b5df1.webp"); }
body[data-passport-layout] .passport-board::after { background:none; }
body[data-passport-layout] .book-cover:not(.turn-live-binding) { background-color:var(--cover);background-image:url("assets/material/binding-composite.70f1b96029eb.webp");background-size:100% 100%; }
@media(min-width:1001px) { body[data-passport-layout]:is([data-view="cover"],[data-view="back-cover"]) .book-area::after { transform:translateZ(0) scaleX(.5); } }
body[data-passport-layout] .book-stage { perspective:10000px; }
body[data-passport-layout] .book-pages { perspective:10000px; }
body[data-passport-layout] .book-pages > .leaf { grid-row:1; grid-column:1; }
@media(min-width:1001px) { body[data-passport-layout] .book-pages > .leaf.is-right { grid-column:2; } body[data-passport-layout] .book-pages > .leaf.is-left,body[data-passport-layout] .passport-back-cover { transform-origin:right center; } }
.turn-live-surface { backface-visibility:hidden; -webkit-backface-visibility:hidden; will-change:transform; }
.book-cover.turn-live-binding, .book-cover.turn-live-binding::before, .book-cover.turn-live-binding .book-pages { background:none;box-shadow:none;border-color:transparent; }
.book-cover.turn-live-binding :is(.binding,.page-corner) { visibility:hidden; }
.book-turn.turn-decoration { z-index:0; perspective:none; transform-style:flat; }
.turn-live-board { position:absolute;top:0;bottom:0;background:var(--cover);backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:8px; }
.book-turn { position:absolute;inset:0;pointer-events:none; }

@media(min-width:1001px) {
 body[data-passport-layout] .address-spread > .leaf-content > .button { margin-top:24px; align-self:flex-start; }
 body[data-passport-layout] .address-map-page .map { flex:1; min-height:96px; height:auto; max-height:none; margin:0; }
}

@media(max-width:1000px) {
 /* The touch target stays inside the smallest reserved paper footer. */
 body[data-passport-layout] .page-corner { height:48px; }
 body[data-passport-layout] .portrait { aspect-ratio:1086 / 1448;max-width:calc(100% - 4px); }
 body[data-passport-layout] .book-stage { flex:none; }
 body[data-passport-layout] .passport-board { left:0; width:100%; }
 body[data-passport-layout] .leaf { padding:18px 20px 55px; }
 body[data-passport-production] .cover-face { padding:24px 23px; }
 body[data-passport-production] .cover-logo { width:85%; }
 body[data-passport-production] .cover-kind { margin-bottom:10px; }
 body[data-passport-production] .cover-document { letter-spacing:.8px; }
 body[data-passport-production] .cover-document span { letter-spacing:.9px; }
}
@media(max-width:370px) {
 body[data-passport-layout] .leaf { padding-inline:17px; }
 body[data-passport-production] .cover-title { font-size:32px; }
 body[data-passport-production] .cover-kind { font-size:16px; }
}
@media(max-height:560px) and (max-width:1000px) {
 body[data-passport-production] .header-inner { min-height:48px; padding-block:2px; }
 body[data-passport-production] .brand { flex-basis:120px; }
 body[data-passport-production] .index-tabs { height:57px; }
 body[data-passport-production] .index-tab { --tab-height:44px; padding-block:2px 12px; }
 body[data-passport-production] .index-tab.tab-services { --tab-height:49px; }
 body[data-passport-production] .index-tab.tab-doctor { --tab-height:44px; }
 body[data-passport-production] .index-tab.tab-contacts { --tab-height:47px; }
 body[data-passport-production] .cover-face { padding:16px 25px; display:grid; grid-template-columns:1fr 1fr; gap:10px 20px; align-content:center; }
 body[data-passport-production] .cover-logo { width:100%; margin:0; grid-row:1 / 4; padding:10px; }
 body[data-passport-production] .cover-kind { margin:0; }
 body[data-passport-production] .cover-title { font-size:32px; }
 body[data-passport-production] .cover-rule { display:none; }
 body[data-passport-production] .cover-city { margin:0; }
 body[data-passport-layout] .leaf { padding-top:12px; padding-bottom:50px; }
 body[data-passport-layout] .runhead { margin-bottom:10px; }
}
@media(prefers-reduced-motion:reduce) { .book-turn { display:none; } body[data-passport-layout] .book-area::after { transition:none; } }
@media print {
 body[data-passport-production] .leaf { background-image:none; }
 body[data-passport-layout] .book-stage,body[data-passport-layout] .book-cover { position:static;height:auto; }
 body[data-passport-layout] .book-pages { height:auto; }
 body[data-passport-layout] .leaf { height:auto;min-height:720px;container-type:normal;transform:none!important;visibility:visible!important;will-change:auto; }
 body[data-passport-layout] :is(.book-stage,.book-pages) { perspective:none; }
 body[data-passport-layout] .book-cover[aria-hidden="true"]:not(.turn-live-binding) { clip-path:none; }
 body[data-passport-layout] .book-area::after,.book-turn { display:none; }
}
@media(min-width:1001px) { body[data-passport-layout] .passport-board { left:25%;width:50%; } }
@media(min-width:1001px) {
 body[data-passport-layout] .welcome-leaf .runhead { margin-bottom:16px; }
 body[data-passport-layout] .welcome-lead { margin-bottom:14px; }
 body[data-passport-layout] .welcome-actions { margin-top:16px;margin-bottom:10px; }
}

body[data-passport-layout] .continuation-heading { line-height:1.3;padding-bottom:4px;margin-bottom:6px;border-bottom-width:1px; }
body[data-passport-layout] .leaf-content > .review-slip { margin-top:10px; }
.contact-actions .phone-pair { gap:4px;margin-bottom:12px; }
.contact-actions .city-contact { margin:0; }
@media(min-width:1001px) {
 body[data-passport-production]:not([data-passport-layout]):is([data-view="cover"],[data-view="back-cover"]) .book-area { width:50%; }
 body[data-passport-layout]:is([data-view="cover"],[data-view="back-cover"]) .index-tabs { transform:translateX(calc(-1 * var(--closed-tabs-offset,0px))); }
}

body[data-passport-layout] .welcome-bottom:not(:has(.stamp)) { min-height:0; }
body[data-passport-layout] .leaf-content > .review-slip { padding-top:16px; }
@media(max-height:420px) and (max-width:1000px) {
 body[data-passport-layout] .doctor-profile:has(.portrait) { display:grid;grid-template-columns:minmax(0,1fr) 28%;column-gap:16px;align-items:start; }
 body[data-passport-layout] .doctor-introduction { display:contents; }
 body[data-passport-layout] .doctor-introduction h1 { grid-column:1;grid-row:1;margin-bottom:0; }
 body[data-passport-layout] .doctor-introduction .portrait { grid-column:2;grid-row:1 / 3;align-self:start; }
 body[data-passport-layout] .doctor-profile .doctor-fields { grid-column:1;grid-row:2; }
 body[data-passport-layout] .doctor-fields > div { padding-block:3px; }
 body[data-passport-layout] .welcome-title br { display:none; }
 body[data-passport-layout] .ink-mark { padding:0;margin:0; }
 body[data-passport-layout] .leaf-bottom { padding-top:0; }
 body[data-passport-layout] .contact-actions .phone-pair { margin-bottom:0; }
 body[data-passport-layout] .mounted-photo { margin-block:0; }
 body[data-passport-layout] :is(.cats,.portrait) { width:auto; align-self:flex-start; }
 body[data-passport-layout] .cats { aspect-ratio:1400 / 788; }
 body[data-passport-layout] .portrait { aspect-ratio:1086 / 1448; }
 body[data-passport-layout] .cats img { object-fit:contain; }
}

/* Short landscape keeps the same top paper tabs and native consent controls.
   Only the page furniture becomes tighter; reading type stays unchanged. */
@media(max-height:360px) and (max-width:1000px) and (orientation:landscape) {
 body[data-passport-production] .rd-consent { padding-block:4px; }
 body[data-passport-production] .header-inner { min-height:44px; padding-block:0; }
 body[data-passport-production] .index-tabs { height:49px; }
 body[data-passport-production] .index-tab { --tab-height:44px; padding-block:2px 10px; }
 body[data-passport-production] .index-tab.tab-services { --tab-height:46px; }
 body[data-passport-production] .index-tab.tab-doctor { --tab-height:44px; }
 body[data-passport-production] .index-tab.tab-contacts { --tab-height:45px; }
 body[data-passport-production] .index-tab[aria-current] { transform:translateY(-4px) rotate(-.3deg); }
 body[data-passport-layout] .book-stage { margin-bottom:calc(8px + env(safe-area-inset-bottom, 0px)); }
 body[data-passport-layout] .leaf { padding-top:8px; padding-bottom:48px; }
 body[data-passport-layout] :is(.stamp,.welcome-bottom .stamp,.ink-mark .stamp) { width:96px; height:96px; flex-basis:96px; }
 body[data-passport-layout] .welcome-bottom { min-height:96px; padding-block:0; }
 body[data-passport-production] .cover-face { padding:8px 25px; gap:6px 20px; grid-template-areas:'logo kind' 'logo title' 'city document'; }
 body[data-passport-production] .cover-logo { grid-area:logo; }
 body[data-passport-production] .cover-kind { grid-area:kind; }
 body[data-passport-production] .cover-title { grid-area:title; }
 body[data-passport-production] .cover-document { grid-area:document; }
 body[data-passport-production] .cover-city { grid-area:city; }
}

body[data-passport-production] .passport-board { container:passport-board / size; }
@container passport-board (max-height:400px) {
 body[data-passport-production] .cover-face { padding-block:12px; gap:6px; }
 body[data-passport-production] .cover-logo { width:75%; padding:10px; margin-bottom:0; }
 body[data-passport-production] .cover-kind { margin-bottom:0; }
 body[data-passport-production] .cover-rule { margin-block:4px; }
 body[data-passport-production] .cover-city { margin-top:0; }
}

/* Короткое окно настольного браузера: обложка уплотняется, чтобы паспорт
   целиком оставался в видимой области (воспроизведённый дефект 31.10.2026:
   при высоте окна ниже ~670px обложка уходила за нижнюю границу). Текст,
   композиция и порядок элементов сохраняются; сужаются только наклейка
   логотипа и декоративные отступы. Телефоны и планшеты не задействованы —
   тир ограничен настольными ширинами. */
@media (min-width:1001px) {
 @container passport-board (max-height:530px) {
  body[data-passport-production] .cover-face { padding-block:10px; }
  body[data-passport-production] .cover-logo { width:min(78%,230px); padding:8px 12px; margin-bottom:0; }
  body[data-passport-production] .cover-kind { margin-bottom:0; }
  body[data-passport-production] .cover-rule { margin-block:5px; }
  body[data-passport-production] .cover-city { margin-top:0; }
 }
}
/* Лист «Как добраться»: при низкой доске карта получает больший резерв, иначе
   её блок с полями не помещается даже на пустой лист и пагинация циклически
   поднимает высоту всей книги (воспроизведено на 1920×560, 31.10.2026).
   При обычной высоте доски ограничение не действует: карта 310px остаётся
   без изменений, пока доска не станет ниже 510px. Настольные ширины только:
   на телефонах и планшетах утверждённый размер карты сохраняется. */
@media (min-width:1001px) {
 body[data-passport-layout] .map { max-height:max(96px,calc(var(--board-height) - 200px)); }
}

/* The server-rendered closed cover already occupies its final viewport space.
   Ordinary no-JS paper pages keep their natural, scrollable document height. */
body[data-passport-production]:not([data-passport-layout]):is([data-view="cover"],[data-view="back-cover"]) {
 display:flex; flex-direction:column; height:100svh; padding-bottom:0;
}
body[data-passport-production]:not([data-passport-layout]):is([data-view="cover"],[data-view="back-cover"]) .workspace { flex:1; min-height:0; }
body[data-passport-production]:not([data-passport-layout]) :is(.site-header,.rd-consent,.index-tabs) { flex-shrink:0; }
body[data-passport-production]:not([data-passport-layout]):is([data-view="cover"],[data-view="back-cover"]) .book-area { height:min(744px,calc(100% - 36px - env(safe-area-inset-bottom,0px))); }
body[data-passport-production]:not([data-passport-layout]) .passport-board { height:100%; }
@media(max-width:1000px) {
 body[data-passport-production]:not([data-passport-layout]):is([data-view="cover"],[data-view="back-cover"]) .book-area { height:min(813px,calc(100% - 8px - env(safe-area-inset-bottom,0px))); }
 body[data-passport-production]:not([data-passport-layout]) .passport-board { height:auto; flex:1; min-height:0; }
}

@media(max-height:360px) and (max-width:1000px) and (orientation:landscape) {
 body[data-passport-production]:not([data-passport-layout]):is([data-view="cover"],[data-view="back-cover"]) .book-area { height:calc(100% + 2px - env(safe-area-inset-bottom,0px)); }
}

/* Larger text can wrap header groups instead of squeezing the address into a narrow column. */
@media(min-width:1001px) {
 body[data-passport-production] .header-inner { flex-wrap:wrap; }
 body[data-passport-production] .header-address { min-width:16ch; }
 body[data-passport-production] .header-phones { flex-wrap:wrap; }
 /* Handwriting has tall ink bounds. Let each paper tab and its outside
    gutter grow with the text while preserving the ordinary 91px tab. */
 body[data-passport-production] .workspace { --desktop-tab-width:max(91px,5.35em);width:min(1180px,calc(100% - (var(--desktop-tab-width) + 1px) * 2)); }
 body[data-passport-production] .index-tabs { width:var(--desktop-tab-width);right:calc(13px - var(--desktop-tab-width)); }
 body[data-passport-production] .index-tab { padding-block:0; }
 body[data-passport-production] .index-tab span { line-height:2; }
 body[data-passport-production] .index-tab[aria-current] { width:calc(var(--desktop-tab-width) + 10px); }
}
body[data-passport-production] .cover-kind { white-space:normal; }

/* Paper tabs keep their intrinsic label width when text is enlarged. If they
   need a second row, its real height becomes part of the viewport measurement. */
@media(max-width:1000px) {
 body[data-passport-production] .index-tabs { display:flex;flex-flow:row wrap;align-items:flex-end;align-content:flex-end;height:auto;min-height:77px;row-gap:14px; }
 body[data-passport-production] .index-tab { flex:1 1 0;min-width:max-content;height:auto;min-height:var(--tab-height);padding-inline:6px;padding-top:max(2px,calc(var(--tab-height) - 49px)); }
}
@media(max-height:560px) and (max-width:1000px) {
 body[data-passport-production] .index-tabs { min-height:57px; }
}
@media(max-height:360px) and (max-width:1000px) and (orientation:landscape) {
 body[data-passport-production] .index-tabs { min-height:49px; }
}

/* The portrait and credentials form a passport record on a full spread.
   A narrow sheet keeps the same reading order in a single column. */
@media (min-width:1001px) and (min-height:700px) {
 @container passport-leaf (min-width:440px) {
 body[data-passport-layout] .doctor-profile { display:grid; grid-template-columns:minmax(0,280px) minmax(0,1fr); gap:24px; align-items:start; }
 body[data-passport-layout] .doctor-profile .portrait { width:100%; height:auto; aspect-ratio:1086 / 1448; }
 body[data-passport-layout] .doctor-profile .portrait img { width:100%; height:100%; }
 body[data-passport-layout] .doctor-fields { margin-top:62px; }
 body[data-passport-layout] .doctor-fields > div { display:flex; flex-direction:column; gap:8px; padding-block:12px; }
 }
}

/* Contact numbers and the price date share the footer's horizontal space.
   Keep both numbers, original type sizes and the full date on one normal leaf. */
@container passport-leaf (min-width:300px) and (min-height:400px) {
 body[data-passport-layout] .leaf-bottom:has(> .phone-pair) { flex-direction:row; flex-wrap:wrap; column-gap:20px; align-items:end; }
 body[data-passport-layout] .leaf-bottom > .phone-pair { flex:0 1 auto; }
 body[data-passport-layout] .leaf-bottom:has(> .phone-pair) > .price-date { flex:1 1 10ch; }
}

/* A phone keeps the authored leaves. Browser chrome must never repaginate
   their content or move the page corners below its expanded toolbars. */
@media screen and (max-width:1000px) {
 @container passport-leaf (max-width:320px) {
  body[data-passport-layout] .leaf :is(h1,h2):not(.welcome-title) { font-size:26px; }
 }
 body[data-passport-layout] .leaf-content { overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;touch-action:pan-y pinch-zoom;scrollbar-width:thin;scrollbar-color:#8fa5ad transparent;scroll-padding-block:8px;padding:3px; }
 body[data-passport-layout] .leaf-content:focus-visible { outline:2px solid var(--pen);outline-offset:3px; }
 body[data-passport-layout] .leaf :is(.cats,.portrait) { max-height:none; }
 body[data-passport-layout] .leaf .portrait { height:315px;width:240px;max-width:calc(100% - 4px); }
 body[data-passport-layout] .reviews-leaf .review-viewport { min-height:180px; }
 body[data-passport-layout] .reviews-leaf .review-bar > .text-link { flex-basis:auto;max-width:100%;overflow-wrap:anywhere; }
 body[data-passport-layout] .leaf[data-reading-overflow]:not([data-reading-end]) > .reading-hint { display:block;position:absolute;bottom:31px;left:48px;right:48px;text-align:center;font-size:11px;line-height:1.2;color:var(--muted);pointer-events:none; }
 body[data-passport-layout] .passport-cover { overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin; }
 body[data-passport-layout] .cover-face { height:auto;min-height:100%;display:flex;justify-content:flex-start; }
 body[data-passport-layout] .cover-face > * { flex-shrink:0; }
 body[data-passport-layout] .cover-logo { margin-top:auto; }
 body[data-passport-layout] .cover-city { margin-bottom:auto; }
}
