.leaf[data-leaf-key="welcome"] { --leaf-material:url("assets/material/leaf-00.41784bc88464.webp"); }
.leaf[data-leaf-key="clinic"] { --leaf-material:url("assets/material/leaf-01.5476ed8bce90.webp"); }
.leaf[data-leaf-key="doctor-profile"] { --leaf-material:url("assets/material/leaf-08.48bab1bcb662.webp"); }
.leaf[data-leaf-key="doctor-approach"] { --leaf-material:url("assets/material/leaf-09.71372d8de75c.webp"); }
.leaf[data-leaf-key="consultations"] { --leaf-material:url("assets/material/leaf-02.b43d841218dd.webp"); }
.leaf[data-leaf-key="grooming-prices"] { --leaf-material:url("assets/material/leaf-06.052cc473766b.webp"); }
.leaf[data-leaf-key="procedures-prices"] { --leaf-material:url("assets/material/leaf-07.f31abf69275d.webp"); }
.leaf[data-leaf-key="other-prices"] { --leaf-material:url("assets/material/leaf-05.e6da10a02665.webp"); }
.leaf[data-leaf-key="vaccination-info"] { --leaf-material:url("assets/material/leaf-12.fc1ed0be9fd7.webp"); }
.leaf[data-leaf-key="vaccination-cost"] { --leaf-material:url("assets/material/leaf-13.f8aa5b8020f0.webp"); }
.leaf[data-leaf-key="sterilization-info"] { --leaf-material:url("assets/material/leaf-14.a731f814a351.webp"); }
.leaf[data-leaf-key="sterilization-cost"] { --leaf-material:url("assets/material/leaf-15.9442ba95afdb.webp"); }
.leaf[data-leaf-key="dental-info"] { --leaf-material:url("assets/material/leaf-16.0fe7ff137cc2.webp"); }
.leaf[data-leaf-key="dental-cost"] { --leaf-material:url("assets/material/leaf-17.4c2c2105316d.webp"); }
.leaf[data-leaf-key="appointment"] { --leaf-material:url("assets/material/leaf-10.2ad938fc4ef0.webp"); }
.leaf[data-leaf-key="reviews"] { --leaf-material:url("assets/material/leaf-11.2cd76852be68.webp"); }
.leaf[data-leaf-key="address"] { --leaf-material:url("assets/material/leaf-11.2cd76852be68.webp"); }
/* Paper grows with enlarged text, disclosure copy and narrow browser windows. */
.leaf { display:flex; flex-direction:column; height:auto; min-height:720px; }
.leaf-content { height:auto; flex:1; }
.leaf-content > * { flex-shrink:0; }
.phone, .messengers a, .review-source, .text-link { min-height:44px; }
.phone { display:inline-flex; align-items:center; }
.header-inner > .button { min-height:44px; }
.map { overflow:hidden; }
.map-fallback, [data-map-canvas] { position:absolute; inset:0; }
.map-fallback { background:center / cover url("assets/location-map.e40f303065dc.png"); }
[data-map-canvas] { width:100%; height:100%; z-index:1; background:transparent; }
.map-credit { z-index:500; }
.rp-map-marker { display:block; width:26px; height:26px; border:4px solid #fff; border-radius:50% 50% 50% 0; background:#1f6695; transform:rotate(-45deg); box-shadow:0 2px 5px #13263466; }
.passport-notes { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 22px; margin-top:14px; color:#d4e3ec; font-size:12px; }
.passport-notes > details > summary, .rd-consent-settings { min-height:44px; display:flex; align-items:center; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.passport-notes > details[open] { flex-basis:100%; order:2; }
.note-sheet { padding:28px; background:var(--fibers),var(--paper); color:var(--ink); border:1px solid var(--rule); box-shadow:0 4px 12px #0003; font-size:16px; }
.note-sheet > p, .note-sheet blockquote { margin:20px 0; }
.note-sheet blockquote { padding:16px 0; border-top:1px solid var(--rule); }
.note-sheet blockquote p { white-space:pre-line; }
.note-sheet footer { margin-top:12px; font-size:13px; color:var(--muted); }
.faq-item { padding:10px 0; border-top:1px solid var(--rule); }
.faq-item summary { min-height:44px; cursor:pointer; font-weight:700; }
.faq-item p { padding:10px 0; }
.rd-consent-settings { border:0; padding:0; color:inherit; background:transparent; font:inherit; }
/* Functional notices live above the book so none of its corners or text is covered. */
.rd-consent { background:#f2ead9; color:var(--ink); display:flex; justify-content:center; align-items:center; gap:16px; padding:6px 20px; border-bottom:1px solid #aab5b8; font-size:13px; }
.rd-consent-text { max-width:660px; }
.rd-consent-actions { display:flex; gap:12px; flex-shrink:0; }
.rd-consent-accept, .rd-consent-close { min-height:44px; min-width:44px; border:1px solid #7893a1; border-radius:3px; background:var(--paper); color:var(--ink); }
.rd-consent-accept { padding:8px 18px; font-weight:700; }
.rd-consent-close { display:flex; align-items:center; justify-content:center; }
.promo-widget { position:relative; right:auto; bottom:auto; width:min(610px,calc(100% - 32px)); margin:4px auto 24px; justify-items:center; z-index:10; }
.promo-card { background:var(--fibers),var(--paper); border-radius:4px; }
.promo-trigger { border-radius:4px; background:var(--pen); min-height:44px; }
.promo-trigger > span:first-child { display:none; }
@media (min-width:1001px) and (max-width:1250px) { .leaf {min-height:760px;} }
@media (max-width:1000px) { .leaf {min-height:660px;} .server-secondary {display:none;} .rd-consent {gap:9px;padding:6px 12px;} .rd-consent-text {font-size:12px;} .rd-consent-actions {gap:7px;} .rd-consent-accept {padding:8px 10px;} }
@media (max-width:390px) and (min-width:371px) { .leaf {min-height:700px;} }
@media (max-width:370px) { .leaf {min-height:800px;} .rd-consent {align-items:flex-start;} }
@media print { .passport-board,.passport-notes,.rd-consent,.promo-widget {display:none!important;} .book-cover[hidden],.leaf[hidden],.leaf.server-secondary {display:block!important;} .book-pages {display:block;} .leaf {break-after:page;} }

.notes-link { color:inherit; min-height:44px; display:flex; align-items:center; }
.reviews-workspace {width:min(760px,calc(100% - 32px));margin:28px auto;}

.contact-actions {display:flex;flex-direction:column;margin:3px 0 0;}
.federal-contact {display:contents;}
.federal-contact > .phone {order:1;font-size:25px;}
.city-contact {order:2;margin-top:8px;margin-bottom:23px;}
.city-contact .phone {font-size:21px;}
.contact-actions .messengers {order:3;}
@media(max-width:1000px){.federal-contact > .phone{font-size:23px;}.city-contact .phone{font-size:19px;}.city-contact{margin-bottom:20px;}}
/* Reserve the entire ink impression even when user text metrics expand. */
.welcome-bottom { min-height:144px; }
@media(max-width:1000px) { .welcome-bottom { min-height:116px; } }
@media(max-width:370px) { .welcome-bottom { min-height:136px; } }
/* Override the old floating-widget offset: both notices participate in layout. */
body:has(.rd-consent:not([hidden])) .promo-widget { bottom:auto; }
.promo-card .promo-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border-radius:3px; background:var(--pen); color:#fff; font-weight:700; text-decoration:none; }
/* Native one-leaf links also work when scripts are allowed but fail to download. */
.mobile-corner {display:none;}
@media(max-width:1000px) {
  body:not([data-passport-enhanced]) .page-corner.previous,
  body:not([data-passport-enhanced]) .page-corner.next {display:none;}
  body:not([data-passport-enhanced]) .mobile-corner {display:flex;}
}
/* Enlarged type may wrap, while the stamp keeps its physical size and its own space. */
h1,h2,h3 {overflow-wrap:anywhere;}
.phone {max-width:100%;white-space:normal;overflow-wrap:anywhere;}
.welcome-bottom {flex-wrap:wrap;padding-block:0;gap:10px;}
.welcome-bottom .stamp {position:static;margin-left:auto;}
.header-phones, .phone-pair { display:flex; }
.header-phones { gap:16px; }
.header-phones .header-phone { display:flex; align-items:center; min-height:44px; }
.phone-pair { flex-direction:column; flex-shrink:0;min-width:0;max-width:100%; }
@media(min-width:1001px) and (max-width:1250px) { .header-phones {gap:9px;} .header-phone {font-size:14px;} .header-inner {gap:16px;} }
@media(max-width:1000px) { .header-phones { display:none; } }

/* Лист «Отзывы»: карусель записей владельцев из локальной копии 2ГИС.
   Возвращено по просьбе владельца 31.10.2026 (в прежнем паспорте был лист
   «Отзывы» с такой же листаемой каруселью). Карточка занимает высоту окна
   карусели; длинный текст читается прокруткой внутри карточки — ничего
   не обрезается и не прячется. Прокручиваемая область помечена
   data-measure-flat: движок компоновки меряет её как единый блок и не
   учитывает внутренние строки в высоте листа. */
.review-carousel { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
.review-viewport { flex:1 1 auto; min-height:0; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; padding:2px 2px 10px; }
.review-track { height:100%; display:grid; grid-auto-columns:100%; grid-auto-flow:column; gap:12px; align-items:stretch; }
.review-card { min-height:0; overflow-y:auto; overscroll-behavior-y:contain; padding:16px 0; border-block:1px solid var(--rule); background:transparent; scroll-snap-align:start; }
.review-card .review-date { display:flex; justify-content:space-between; align-items:baseline; gap:10px; color:var(--muted); font-family:var(--display); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.review-card .review-date span:last-child { color:#c98a2d; letter-spacing:.12em; font-size:13px; }
.review-card .review-text { margin-top:8px; font-size:16px; line-height:1.55; }
.review-card .review-sign { text-align:left; color:var(--ink); font-family:var(--body); font-size:16px; font-weight:600; line-height:1.5; margin:12px 0 0; }
.review-bar { flex:none; display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-top:10px; }
.review-arrow { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #8fabbf; border-radius:3px; background:#d8e8f04d; color:var(--pen); }
.review-arrow:disabled { opacity:.35; cursor:default; }
.review-note { flex:1 1 auto; min-width:0; }
.review-position { font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; }
.review-bar > .text-link { margin-left:0; }
@media(max-width:1000px) { .review-card .review-sign { font-size:16px; } }

/* Ландшафт телефона: пометка карусели уступает место записям — источник
   остаётся доступным по ссылке «Все отзывы и источник» рядом. */
@media(max-height:420px) and (max-width:1000px) {
 .review-note { display:none; }
 .review-bar { margin-top:6px; gap:6px 10px; }
}
/* On short sheets the source stays beside the controls; provenance remains
   available in the full document, leaving the paper to the review itself. */
@container passport-leaf (max-height:400px) {
 /* The running title identifies this compact sheet; keep the reading area. */
 .reviews-leaf h2 { display:none; }
 .reviews-leaf .review-note { display:none; }
 .reviews-leaf .review-bar { gap:6px; margin-top:6px; }
 .reviews-leaf .review-card { padding:8px 10px; }
 .reviews-leaf .review-bar > .text-link { flex:1 1 75px; max-width:98px; font-size:12px; line-height:1.3; text-wrap:balance; }
}
@container passport-leaf (max-height:120px) and (min-width:400px) {
 .reviews-leaf .runhead { line-height:1; padding-bottom:0; margin-bottom:0; border-bottom-width:1px; }
 .reviews-leaf .review-carousel { display:grid; grid-template-columns:minmax(0,1fr) 98px; gap:8px; }
 .reviews-leaf .review-viewport { padding:2px; }
 .reviews-leaf .review-card { padding:4px 8px; }
 .reviews-leaf .review-text { margin-top:4px; }
 .reviews-leaf .review-bar { display:grid; grid-template-columns:44px 44px; grid-template-rows:44px 44px; column-gap:6px; row-gap:0; margin:0; align-self:start; }
 .reviews-leaf .review-bar > .text-link { grid-column:1 / -1; margin:0; }
 .reviews-leaf .review-position { position:absolute; top:0; left:0; width:1px; height:1px; overflow:hidden; white-space:nowrap; clip-path:inset(50%); }
}

.service-links { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px; padding-block:8px; border-bottom:1px solid var(--rule); }
.service-links .text-link { display:flex; align-items:center; min-height:44px; }

/* All three service pages use the same reading order and left edge. */
body[data-passport-layout] .detail-leaf .service-footer { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:4px 16px; align-items:start; }
.service-footer .booking-link { grid-column:1 / -1; margin-bottom:8px; }
.review-card { scrollbar-color:#718b9a transparent; }
.leaf :is(.body-copy,.paper-note,.small-caption,.review-text) { text-wrap:pretty; }
