:root {
  --desk: #172c40;
  --cover: #1765a0;
  --cover-dark: #084979;
  --paper: #f6f7ee;
  --ink: #192c40;
  --pen: #075694;
  --muted: #526271;
  --rule: #b4c7cf;
  --display: 'Montserrat Alternates', sans-serif;
  --body: 'Manrope', sans-serif;
  --hand: 'Bad Script', cursive;
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23878670' opacity='.075' filter='url(%23n)' d='M0 0h140v140H0z'/%3E%3C/svg%3E");
  --guilloche: repeating-radial-gradient(ellipse at 0 0, transparent 0 20px, #07569404 20px 21px), repeating-radial-gradient(ellipse at 100% 0, transparent 0 20px, #07569404 20px 21px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--desk); }
body { margin: 0; color: var(--ink); font: 17px/1.55 var(--body); background: var(--fibers), radial-gradient(ellipse at 50% 35%, #28485e, var(--desk) 80%); min-height: 100vh; }
a { color: var(--pen); text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #ce5b13; outline-offset: 4px; }
::selection { background: #f6d670; color: var(--ink); }
figure, dl, dd, p, h1, h2, h3 { margin: 0; }
.icon { display: block; flex: 0 0 21px; width: 21px; height: 21px; }
.hand { font-family: var(--hand); color: var(--pen); }
.site-header { background: #f9faf5; border-top: 3px solid var(--pen); border-bottom: 1px solid #ccd5d5; }
.header-inner { max-width: 1220px; margin: auto; min-height: 79px; display: flex; align-items: center; gap: 27px; padding: 8px 22px; }
.brand { display: block; flex: 0 0 192px; line-height: 0; }
.brand img { width: 100%; height: auto; }
.header-address { display: flex; flex-direction: column; gap: 2px; font-size: 13px; margin-left: auto; }
.header-address span:last-child { color: var(--muted); }
.header-phone { font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid var(--pen); border-radius: 4px; text-decoration: none; font: 600 15px/1.4 var(--display); text-align: center; }
.solid { color: #fff; background: var(--pen); box-shadow: 0 2px 0 #003967; }
.outline { color: var(--pen); background: #ffffff50; }
.button:hover { filter: brightness(.94); }
.workspace { width: min(1180px, calc(100% - 184px)); margin: 0 auto; padding: 12px 0 14px; }
.passport-label { display: flex; align-items: center; justify-content: space-between; min-height: 32px; color: #d4e3ec; font-size: 12px; padding: 0 16px 5px; }
.passport-label .hand { font-size: 17px; color: #d4e3ec; }
.book-area { position: relative; }
body:is([data-view="cover"], [data-view="back-cover"]) .book-area { width: calc(50% + 12px); margin-inline: auto; }
.passport-board { height: 744px; position: relative; z-index: 2; border-radius: 5px 16px 16px 5px; color: #dbe4e7; background: var(--fibers), linear-gradient(100deg, #084979, #1765a0 8%, #1c6da8 70%, #2675ad); box-shadow: inset 2px 0 6px #c4e9ff50, inset 15px 0 18px -15px #001c42, inset -1px 0 2px #c4e9ff65, 0 3px 0 #0a3c63, 0 25px 45px #07162390; }
.passport-board::before { content: ''; position: absolute; inset: 10px; border: 1px dashed #c4dce633; border-radius: 3px 9px 9px 3px; pointer-events: none; }
.cover-face { height: 100%; padding: 85px 36px 55px; display: flex; align-items: center; flex-direction: column; text-align: center; }
.cover-logo { width: 78%; padding: 16px 18px; background: var(--fibers), #fcfbf1; transform: rotate(-1.2deg); box-shadow: 0 3px 5px #001d4260; margin-bottom: 36px; border-radius: 2px; }
.cover-logo img { display: block; width: 100%; height: auto; }
.cover-kind, .cover-title, .cover-document, .cover-city { color: #dbe4e7; font-family: var(--display); text-shadow: 0 -1px 0 #001c4266, 0 1px 0 #ffffff20; }
.cover-kind { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.cover-title { font-size: 52px; line-height: 1.1; margin: 0; letter-spacing: -.7px; }
.cover-rule { width: 64px; height: 2px; background: #dbe4e7aa; margin: 32px 0; box-shadow: 0 -1px 0 #001c4255; }
.cover-document { font-size: 15px; font-weight: 600; letter-spacing: 1.5px; line-height: 1.6; }
.cover-document span { display: block; font-size: 12px; letter-spacing: 1.6px; margin-top: 4px; }
.cover-city { font-size: 14px; letter-spacing: 2px; margin-top: 25px; }
.cover-open { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; border-radius: inherit; }
.cover-open:focus-visible { outline-offset: 5px; }
.cover-corner { position: absolute; width: 54px; height: 54px; bottom: 0; right: 0; border-radius: 7px 0 14px 0; color: #fff; background: linear-gradient(135deg, #a3c4da66, #5a99c6 48%, #093c63 49%, #eff0e7 53%); box-shadow: -2px -2px 5px #001c4230; }
.cover-corner .icon { position: absolute; bottom: 5px; right: 5px; color: #075694; }
.cover-hint { display: none; }
body[data-view="cover"] .cover-hint { display: inline; }
body[data-view="cover"] .desktop-hint, body[data-view="cover"] .mobile-hint { display: none; }
.book-cover { z-index: 2; }
.book-cover { border: 12px solid var(--cover); border-radius: 15px; background: var(--cover); box-shadow: inset 0 0 0 1px #a4d5f0, 0 2px 0 #5c99bf, 0 25px 45px #07162390; position: relative; }
.book-cover::before { content: ''; position: absolute; inset: -7px; pointer-events: none; border: 1px dashed #a7c9e36b; border-radius: 8px; }
.book-pages { display: grid; grid-template-columns: 1fr 1fr; position: relative; background: #dbe2d9; border-radius: 3px; box-shadow: 0 3px 0 #dae0d4, 0 6px 0 #b2c6c7; }
.leaf { height: 720px; min-width: 0; position: relative; padding: 25px 31px 64px; background-color: var(--paper); background-image: var(--fibers), var(--guilloche); }
.leaf:nth-of-type(even) { background-color: #f3f6ef; }
.leaf.is-left { border-radius: 3px 0 0 3px; box-shadow: inset -20px 0 18px -16px #5264734a; }
.leaf.is-right { border-radius: 0 3px 3px 0; box-shadow: inset 20px 0 18px -16px #5264734a; }
.leaf::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--rule); opacity: .65; pointer-events: none; }
.leaf-content { display: flex; flex-direction: column; height: 100%; position: relative; z-index: 1; }
.binding { position: absolute; width: 26px; left: calc(50% - 13px); top: 0; bottom: 0; z-index: 2; background: linear-gradient(90deg, #33495300, #4b605533 40%, #d8ded9 49%, #f4f7ef 53%, #263e5120 63%, #33495300); pointer-events: none; }
.binding::after { content: ''; position: absolute; width: 2px; top: 30px; bottom: 30px; left: 12px; background: repeating-linear-gradient(180deg, #69829380 0 10px, transparent 10px 22px); }
.index-tabs { position: absolute; z-index: 5; top: 45px; right: -78px; width: 91px; display: flex; flex-direction: column; gap: 11px; }
.index-tab { min-height: 48px; padding: 7px 12px 7px 18px; display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; border: 1px solid #fff8; border-radius: 0 3px 3px 0; box-shadow: 1px 3px 4px #07162338; transform: rotate(-1deg); position: relative; }
.index-tab::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; border-left: 1px solid #192c4020; }
.index-tab span { font: 400 23px/1.1 var(--hand); }
.tab-home { background: #f5df60; }
.tab-services { background: #edacc5; transform: rotate(1deg); }
.tab-doctor { background: #add9bc; }
.tab-contacts { background: #a0cee7; transform: rotate(1deg); }
.index-tab[aria-current] { width: 101px; box-shadow: 0 3px 5px #07162355; font-weight: 700; }
.index-tab[aria-current] span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.runhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); padding: 0 0 9px; border-bottom: 3px double #506c7b; margin-bottom: 20px; }
.runhead span:last-child { text-align: right; }
h1, h2 { font-family: var(--display); font-size: 31px; line-height: 1.22; letter-spacing: -.8px; font-weight: 600; margin-bottom: 17px; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.4; }
.welcome-title { font-size: 42px; line-height: 1.15; letter-spacing: -1.6px; margin: 1px 0 16px; }
.welcome-lead { font-size: 18px; line-height: 1.6; margin-bottom: 18px; }
.intro { color: var(--muted); font-size: 16px; margin: -4px 0 18px; line-height: 1.5; }
.body-copy { font-size: 17px; margin: 3px 0 22px; }
.fields { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fields > div { display: grid; grid-template-columns: minmax(105px, max-content) minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 10px 0 8px; }
.fields > div + div { border-top: 1px solid var(--rule); }
.fields dt { font-size: 12px; color: var(--muted); }
.fields dd { font: 400 23px/1.35 var(--hand); color: var(--pen); overflow-wrap: anywhere; }
.fields a { color: inherit; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
.fine-print { font-size: 13px; color: var(--muted); line-height: 1.6; }
.welcome-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; padding-bottom: 10px; }
.phone { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.stamp { display: block; width: 119px; height: 119px; color: #1c679f; transform: rotate(-13deg); opacity: .85; flex: 0 0 119px; }
.welcome-bottom .stamp { width: 94px; height: 94px; flex-basis: 94px; }
.stamp svg { display: block; width: 100%; height: 100%; }
.stamp circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.stamp circle:first-of-type { stroke-width: 3.4; }
.stamp text { fill: currentColor; font: 500 12.8px var(--body); letter-spacing: .8px; }
.mounted-photo { border: 8px solid #fffefa; outline: 1px solid #c4d0d3; box-shadow: 1px 3px 7px #213c4526; background: #edf0e9; }
.mounted-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cats { height: 228px; margin: 1px 0 23px; transform: rotate(.6deg); }
.cats img { object-position: 50% 50%; }
.clinic-fields > div { padding: 12px 0 10px; }
.small-caption { font-size: 14px; line-height: 1.6; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; font-weight: 700; }
.leaf-bottom { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.folio { position: absolute; left: 62px; right: 62px; bottom: 15px; display: flex; align-items: center; justify-content: center; color: #506571; font-size: 10px; }
.folio span:last-child { font-size: 12px; font-weight: 700; }
.price-rows { margin-top: 2px; border-top: 1px solid #718b9a; }
.price-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 17px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.price-rows dt { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.price-rows dd { font: 800 17px/1.5 var(--body); color: var(--pen); white-space: nowrap; }
.vaccine-rows > div { padding: 21px 0; }
.surgery-rows > div { padding: 12px 0; }
.price-date { font-size: 12px; color: var(--muted); }
.paper-note { padding: 12px 0 12px 14px; border-left: 3px solid #84a7b9; font-size: 16px; line-height: 1.6; margin-top: 22px; color: #3a5363; }
.included { font-size: 13px; line-height: 1.55; margin-top: 13px; color: var(--muted); }
.subheading { margin-top: 25px; margin-bottom: 5px; }
.ink-mark { margin: 7px 0; padding: 11px; }
.ink-mark .stamp { width: 106px; height: 106px; flex-basis: 106px; }
.review-slip { border-left: 2px solid #86a7b9; padding: 3px 0 3px 16px; margin-top: 25px; }
.review-slip h3 { font-size: 14px; margin-bottom: 9px; }
.review-slip blockquote { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.review-author { font-size: 12px; color: var(--muted); }
.review-source { display: inline-flex; align-items: center; min-height: 34px; font-size: 12px; }
.portrait { width: 280px; height: 367px; margin: 0 auto 20px; transform: rotate(-.8deg); }
.portrait img { object-fit: cover; object-position: 50% 45%; }
.doctor-fields > div { grid-template-columns: minmax(105px, max-content) minmax(0, 1fr); }
.doctor-fields dd { font-size: 23px; }
.ruled-notes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.ruled-notes li { border-bottom: 1px solid var(--rule); padding: 14px 0 14px 21px; position: relative; font-size: 16px; }
.ruled-notes li::before { content: ''; width: 5px; height: 5px; position: absolute; left: 1px; top: 24px; background: var(--pen); border-radius: 50%; }
.contact-phones { display: flex; flex-direction: column; gap: 8px; margin: 3px 0 23px; }
.contact-phones .phone { font-size: 25px; }
.contact-phones .secondary-phone { font-size: 21px; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.messengers a { border: 1px solid #8fabbf; border-radius: 3px; padding: 9px 12px; font-size: 14px; font-weight: 700; text-decoration: none; background: #d8e8f04d; min-height: 43px; display: flex; align-items: center; }
.map { height: 310px; margin: 21px 0; position: relative; }
.map img { object-position: 50% 48%; }
.map-credit { position: absolute; right: 0; bottom: 0; background: #fffffff0; padding: 2px 6px; font-size: 10px; }
.address-leaf .fields > div { grid-template-columns: minmax(55px, max-content) minmax(0, 1fr); }
.detail-leaf .fields { margin: 6px 0 1px; }
.page-corner { position: absolute; z-index: 6; bottom: 0; width: 56px; height: 56px; padding: 0; border: 0; color: var(--pen); background: transparent; display: flex; align-items: flex-end; }
.page-corner:is(.previous, .mobile-previous) { left: 0; justify-content: flex-start; }
.page-corner:is(.next, .mobile-next) { right: 0; justify-content: flex-end; }
.page-corner::before { content: ''; position: absolute; bottom: 0; width: 41px; height: 41px; filter: drop-shadow(0 -1px 1px #3e586626); background: linear-gradient(45deg, #e1e5d8, #fffef5 63%, #c3cdbe); }
.page-corner:is(.previous, .mobile-previous)::before { left: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.page-corner:is(.next, .mobile-next)::before { right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); background: linear-gradient(-45deg, #e1e5d8, #fffef5 63%, #c3cdbe); }
.page-corner .icon { position: relative; margin: 0 5px 5px; width: 19px; height: 19px; flex-basis: 19px; }
.page-corner:hover::before { width: 47px; height: 47px; }
.page-corner:disabled { visibility: hidden; }
.turn-hint { text-align: center; color: #c3d5e1; font-size: 12px; margin-top: 13px; }
.mobile-hint { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 50; transform: translateY(-150%); padding: 10px; background: white; }
.skip-link:focus { transform: none; }

@media (max-width: 1250px) and (min-width: 1001px) {
  .workspace { width: calc(100% - 128px); margin-left: 20px; }
  .header-inner { gap: 18px; }
  .header-address { display: none; }
  .header-phone { margin-left: auto; }
  .leaf { padding-inline: 25px; height: 760px; }
  .passport-board { height: 784px; }
  .cover-face { padding-inline: 24px; }
  .cover-kind { font-size: 18px; }
  .cover-title { font-size: 44px; }
  .welcome-title { font-size: 35px; }
  h1, h2 { font-size: 28px; }
  .welcome-actions { flex-direction: column; align-items: flex-start; }
  .phone { font-size: 18px; }
  .welcome-bottom .stamp { flex-basis: 95px; width: 95px; height: 95px; }
  .fields > div { grid-template-columns: minmax(85px, max-content) minmax(0, 1fr); gap: 10px; }
  .fields dd { font-size: 21px; }
  .price-rows > div { gap: 10px; }
  .price-rows dd { font-size: 16px; }
  .portrait { width: 255px; height: 340px; }
}

@media (max-width: 1000px) {
  body { padding-bottom: 0; font-size: 16px; }
  .site-header { border-top-width: 2px; }
  .header-inner { min-height: 57px; gap: 10px; padding: 6px 15px; max-width: 610px; }
  .brand { flex-basis: 145px; }
  .header-address, .header-phone { display: none; }
  .header-inner > .button { margin-left: auto; min-height: 40px; font-size: 12px; padding: 8px 13px; }
  .workspace { width: min(100%, 610px); padding: 0 10px 10px; margin: auto; }
  .passport-label { display: none; }
  .book-area { display: flex; flex-direction: column; }
  body:is([data-view="cover"], [data-view="back-cover"]) .book-area { width: 100%; }
  .passport-board { height: 674px; border-radius: 4px 12px 12px 4px; }
  .cover-face { padding: 95px 23px 45px; }
  .cover-logo { width: 85%; padding: 13px 14px; margin-bottom: 37px; }
  .cover-kind { font-size: 16px; margin-bottom: 12px; white-space: nowrap; }
  .cover-title { font-size: 39px; line-height: 1.12; }
  .cover-rule { margin: 29px 0; }
  .cover-document { font-size: 12px; letter-spacing: 1.1px; }
  .cover-document span { font-size: 10px; }
  .cover-city { font-size: 12px; margin-top: 24px; }
  .index-tabs { position: relative; top: auto; right: auto; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 7px; width: auto; padding: 0 6px; height: 77px; margin-top: 3px; margin-bottom: -11px; }
  .index-tab, .index-tab[aria-current] { --tilt: -2deg; --tab-height: 58px; min-height: 44px; height: var(--tab-height); width: auto; padding: 9px 2px 19px; border-radius: 4px 2px 0 0; border: 1px solid #ffffff80; background-image: var(--fibers), linear-gradient(100deg, #ffffff23, transparent 30%, #192c400a); box-shadow: 1px -2px 4px #07162345, inset 0 1px 0 #ffffff80; transform-origin: 50% 100%; transform: rotate(var(--tilt)); }
  .index-tab.tab-services { --tilt: 1.8deg; --tab-height: 64px; border-radius: 2px 5px 0 0; }
  .index-tab.tab-doctor { --tilt: -1.4deg; --tab-height: 56px; border-radius: 5px 2px 0 0; }
  .index-tab.tab-contacts { --tilt: 2.2deg; --tab-height: 62px; border-radius: 2px 4px 0 0; }
  .index-tab::before { left: 0; right: 0; top: auto; height: 10px; bottom: 10px; border: 0; border-top: 1px solid #192c4020; background: linear-gradient(180deg, transparent, #192c4010); }
  .index-tab::after { content: ''; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-right: 1px solid #192c4014; transform: rotate(-6deg); }
  .index-tab span { font-size: clamp(17px, 5vw, 20px); line-height: 1.4; white-space: nowrap; }
  .index-tab[aria-current] { transform: translateY(-9px) rotate(-.3deg); box-shadow: 2px -3px 6px #07162365, inset 0 1px 0 #ffffffb0; }
  .book-cover { border-width: 7px; border-radius: 8px; box-shadow: 0 12px 22px #07162360; }
  .book-cover::before { inset: -4px; border-radius: 5px; }
  .book-pages { grid-template-columns: 1fr; box-shadow: 0 2px 0 #b2c6c7; }
  .binding { display: none; }
  .leaf { height: 660px; padding: 21px 20px 64px; }
  .leaf.is-left, .leaf.is-right { border-radius: 2px; box-shadow: inset 12px 0 12px -12px #263d5155; }
  .leaf::before { inset: 7px; }
  .runhead { font-size: 10px; margin-bottom: 14px; padding-bottom: 8px; gap: 9px; }
  h1, h2 { font-size: 28px; line-height: 1.22; letter-spacing: -.8px; margin-bottom: 15px; }
  h3 { font-size: 15px; }
  .welcome-title { font-size: 32px; line-height: 1.16; letter-spacing: -1px; margin: 3px 0 18px; }
  .welcome-lead { font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
  .desktop-only { display: none; }
  .fields > div { grid-template-columns: minmax(70px, max-content) minmax(0, 1fr); gap: 10px; padding: 9px 0 7px; }
  .fields dt { font-size: 11px; }
  .fields dd { font-size: 21px; line-height: 1.4; }
  .welcome-actions { gap: 8px; margin: 17px 0 12px; }
  .button { min-height: 44px; font-size: 13px; padding: 10px 13px; }
  .welcome-actions .button { flex: 1 0 auto; padding-inline: 9px; font-size: 12px; }
  .fine-print { font-size: 12px; }
  .welcome-bottom { padding-top: 10px; }
  .welcome-bottom .phone { font-size: 18px; }
  .welcome-bottom .stamp { width: 88px; height: 88px; flex-basis: 88px; }
  .cats { height: 202px; margin: 3px 0 15px; border-width: 6px; }
  .clinic-fields > div { padding-block: 10px 8px; }
  .small-caption { font-size: 13px; }
  .text-link { font-size: 14px; min-height: 44px; }
  .leaf-bottom { padding-top: 12px; gap: 9px; }
  .folio { left: 62px; right: 62px; bottom: 15px; font-size: 9px; }
  .folio span:last-child { font-size: 11px; }
  .price-rows > div { padding: 14px 0; gap: 10px; }
  .price-rows dt { font-size: 16px; line-height: 1.45; }
  .price-rows dd { font-size: 16px; line-height: 1.45; }
  .surgery-rows > div { padding: 10px 0; }
  .vaccine-rows > div { padding: 15px 0; }
  .paper-note { font-size: 16px; line-height: 1.55; padding-block: 6px; padding-left: 12px; margin-top: 16px; }
  .body-copy { font-size: 16px; line-height: 1.55; margin: 1px 0 16px; }
  .intro { font-size: 16px; margin-bottom: 18px; }
  .price-date { font-size: 11px; }
  .included { font-size: 12px; margin-top: 12px; }
  .subheading { margin-top: 18px; }
  .ink-mark { margin: 5px 0; padding: 9px; }
  .ink-mark .stamp { width: 78px; height: 78px; flex-basis: 78px; }
  .review-slip { margin-top: 22px; padding-left: 13px; }
  .review-slip h3 { font-size: 14px; }
  .review-slip blockquote { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
  .review-author { font-size: 11px; }
  .review-source { min-height: 35px; font-size: 12px; }
  .portrait { width: 240px; height: 315px; border-width: 6px; margin-bottom: 20px; }
  .doctor-fields > div { grid-template-columns: minmax(85px, max-content) minmax(0, 1fr); }
  .doctor-fields dd { font-size: 21px; }
  .ruled-notes li { font-size: 16px; padding: 8px 0 8px 17px; line-height: 1.5; }
  .ruled-notes li::before { top: 18px; }
  .contact-phones { margin: 4px 0 20px; gap: 8px; }
  .contact-phones .phone { font-size: 23px; }
  .contact-phones .secondary-phone { font-size: 19px; }
  .messengers { gap: 7px; margin-bottom: 20px; }
  .messengers a { min-height: 44px; padding: 8px 11px; font-size: 13px; }
  .appointment-leaf .fields > div { grid-template-columns: minmax(55px, max-content) minmax(0, 1fr); }
  .map { height: 266px; border-width: 6px; margin: 21px 0; }
  .map-credit a { display: inline-flex; align-items: center; min-height: 24px; }
  .address-leaf .fields > div { grid-template-columns: minmax(45px, max-content) minmax(0, 1fr); }
  .book-pages { touch-action: pan-y pinch-zoom; }
  .desktop-hint { display: none; }
  .mobile-hint { display: inline; }
  .turn-hint { font-size: 11px; margin-top: 14px; }
}

@media (max-width: 390px) and (min-width: 371px) {
  .leaf { height: 700px; }
}
@media (max-width: 370px) {
  .leaf { height: 800px; padding-inline: 17px; }
  .welcome-title { font-size: 30px; }
  .welcome-bottom .phone { font-size: 16px; }
  .welcome-bottom .stamp { width: 77px; height: 77px; flex-basis: 77px; }
  .portrait { width: 220px; height: 292px; }
  .fields dd { font-size: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color .15s, box-shadow .15s; }
  .index-tab { transition: transform .23s ease-out, box-shadow .23s ease-out; }
  .page-corner::before { transition: width .16s, height .16s; }
  .book-pages.is-turning[data-direction="next"] .leaf.is-right { animation: paper-forward .32s ease-out both; transform-origin: left center; }
  .book-pages.is-turning[data-direction="previous"] .leaf.is-left { animation: paper-back .32s ease-out both; transform-origin: right center; }
  @keyframes paper-forward { from { transform: perspective(1600px) rotateY(-17deg); filter: brightness(.94); } to { transform: perspective(1600px) rotateY(0); filter: brightness(1); } }
  @keyframes paper-back { from { transform: perspective(1600px) rotateY(17deg); filter: brightness(.94); } to { transform: perspective(1600px) rotateY(0); filter: brightness(1); } }
}
@media (max-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .book-pages.is-turning[data-direction="next"] .leaf { animation: paper-forward .32s ease-out both; transform-origin: left center; }
  .book-pages.is-turning[data-direction="previous"] .leaf { animation: paper-back .32s ease-out both; transform-origin: right center; }
}
@media print {
  body { background: white; padding: 0; }
  .site-header, .index-tabs, .page-corner, .turn-hint, .passport-label { display: none; }
  .workspace { width: 100%; margin: 0; }
  .book-cover { border: 0; box-shadow: none; }
}

/* Closing board and readable ink impressions. */
.stamp, .welcome-bottom .stamp, .ink-mark .stamp { width: 144px; height: 144px; flex-basis: 144px; }
.stamp { transform: none; overflow: clip; }
.stamp svg { transform: rotate(-13deg); }
.welcome-bottom { position: relative; min-height: 114px; }
.welcome-bottom .stamp { position: absolute; right: 0; bottom: 0; }
.passport-back-cover { border-radius: 14px 5px 4px 12px; touch-action: pan-y pinch-zoom; }
.back-cover-face { height: 100%; display: grid; place-items: center; padding: 44px; pointer-events: none; }
.back-cover-emblem { width: 240px; max-width: 72%; color: #1a4158; filter: drop-shadow(0 1px 0 #7c9ca069) drop-shadow(0 -1px 0 #0d304d80); }
.back-cover-emblem svg { display: block; width: 100%; height: auto; }
.back-cover-emblem path { fill: currentColor; }
.back-cover-open { position: absolute; left: 0; bottom: 0; width: 64px; height: 64px; border: 0; padding: 0; background: transparent; z-index: 3; }
.back-cover-open:focus-visible { outline-offset: 5px; }
.back-cover-open .cover-corner { left: 0; right: auto; transform: scaleX(-1); }
.back-cover-open .icon { transform: scaleX(-1); }
.back-cover-hint { display: none; }
body[data-view="back-cover"] .back-cover-hint { display: inline; }
body[data-view="back-cover"] .desktop-hint, body[data-view="back-cover"] .mobile-hint { display: none; }
@media (max-width: 1000px) {
  .stamp, .welcome-bottom .stamp, .ink-mark .stamp { width: 116px; height: 116px; flex-basis: 116px; }
  .ink-mark { padding-block: 6px; }
  .leaf[data-leaf="3"] .leaf-bottom { flex-direction: row; align-items: center; }
  .leaf[data-leaf="3"] .leaf-bottom, .leaf[data-leaf="13"] .leaf-bottom { padding-top: 4px; }
  .leaf[data-leaf="3"] .price-date { flex: 1; }
  .back-cover-emblem { width: 182px; }
}
@media (max-width: 370px) {
  .stamp, .welcome-bottom .stamp, .ink-mark .stamp { width: 108px; height: 108px; flex-basis: 108px; }
  .welcome-bottom { min-height: 136px; align-items: flex-start; padding-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .is-cover-turning[data-direction="next"] > .passport-board:not([hidden]),
  .is-cover-turning[data-direction="next"] > .book-cover:not([hidden]) { animation: board-forward .34s ease-out both; transform-origin: right center; }
  .is-cover-turning[data-direction="previous"] > .passport-board:not([hidden]),
  .is-cover-turning[data-direction="previous"] > .book-cover:not([hidden]) { animation: board-back .34s ease-out both; transform-origin: left center; }
  @keyframes board-forward { from { transform: perspective(1400px) rotateY(16deg); } to { transform: perspective(1400px) rotateY(0); } }
  @keyframes board-back { from { transform: perspective(1400px) rotateY(-16deg); } to { transform: perspective(1400px) rotateY(0); } }
}

.passport-cover { touch-action:pan-y pinch-zoom; }
