:root {
  color-scheme: light;
  --ink: #271d32;
  --muted: #605967;
  --accent: #62409b;
  --accent-deep: #482b7a;
  --tint: #f0ebf8;
  --line: #ded8e5;
  --paper: #fff;
  --sans: "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box }
html { scroll-padding-bottom: 5rem }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.58 var(--sans); overflow-wrap: anywhere }
h1,h2,h3,p,figure,dl,dd { margin: 0 }
h1,h2,h3 { line-height: 1.1; letter-spacing: -.038em; text-wrap: pretty }
h1 { font-size: clamp(2.4rem,5.2vw,4.7rem); max-width: 22ch }
h2 { font-size: clamp(1.55rem,3.1vw,2.55rem) }
h3 { font-size: 1.23rem }
a { color: var(--accent-deep); text-underline-offset: .21em; text-decoration-thickness: 1px }
a:hover { color: #962e33 }
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible { outline: 3px solid #8843ab; outline-offset: 3px }
button,input,summary { font: inherit }
button,summary { cursor: pointer }
img { display: block; max-width: 100%; height: auto }
[hidden] { display: none !important }
.wrap { width: min(1240px,calc(100% - 6rem)); margin-inline: auto }
.skip { position: absolute; z-index: 20; left: 1rem; top: -10rem; background: white; padding: 1rem }
.skip:focus { top: 0 }
header { background: white; border-bottom: 1px solid var(--line) }
.bar,.nav,.brand,.actions,.section-head,.foot-brand,.profile-next { display: flex; align-items: center }
.bar { justify-content: space-between; gap: 1.5rem; min-height: 78px }
.brand { gap: .55rem; width: fit-content; color: var(--ink); text-decoration: none; line-height: .96; font-size: 1.42rem; font-weight: 800; letter-spacing: -.055em }
.brand svg { width: 34px; height: 39px; color: var(--accent) }
.brand small { display: block; margin-top: .32rem; font-size: .73rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase }
.nav { gap: clamp(.85rem,2.4vw,2.5rem) }
.nav a,.header-search,.menu-links a { color: var(--ink); text-decoration: none; font-weight: 600 }
.nav a,.header-search,summary,footer a,.plainlink { display: inline-flex; align-items: center; min-height: 44px }
.nav a:hover,.menu-links a:hover,.header-search:hover { color: var(--accent); text-decoration: underline }
.header-search { gap: .55rem; font-size: .91rem }
.header-search::before { content: ''; width: 18px; height: 18px; background: radial-gradient(circle at 39% 39%,transparent 29%,currentColor 32% 42%,transparent 46%),linear-gradient(48deg,transparent 41%,currentColor 42% 60%,transparent 61%) right bottom/8px 8px no-repeat }
.mobile-menu { display: none }
.hero { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); align-items: center; gap: clamp(1.5rem,4vw,4rem); padding-block: clamp(2.4rem,5vw,4.8rem) }
.hero-copy { min-width: 0 }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--accent) }
.hero .eyebrow { display: flex; align-items: center; gap: .65rem }
.hero .eyebrow::before { content: ''; width: 1.9rem; height: 3px; background: #e15349 }
.hero h1 { font-size: clamp(2.5rem,5.4vw,5.15rem); line-height: .99; letter-spacing: -.062em; margin: .28em 0 }
.hero h1 span { display: block; color: var(--accent) }
.intro { font-size: clamp(1.04rem,1.4vw,1.22rem); line-height: 1.5; color: var(--muted); max-width: 66ch }
.hero .intro { max-width: 41ch }
.actions { flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem }
.primary,.secondary,.cta,.sticky,.button,.search button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: .5rem;
  padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: .65rem;
  font: 650 1rem/1.35 var(--sans); text-decoration: none
}
.primary,.cta,.sticky,.search button { background: var(--ink); color: white }
.primary:hover,.cta:hover,.sticky:hover,.search button:hover { color: white; background: var(--accent-deep) }
.secondary,.button { color: var(--ink); background: white; border-color: #bfb4cc }
.secondary:hover,.button:hover { color: var(--accent-deep); background: var(--tint) }
.art { overflow: hidden; border-radius: 1.25rem; background: #dfd4f1 }
.art img { width: 100%; aspect-ratio: 3/2; object-fit: cover }
.task-strip { padding-block: 1.6rem 2rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.task-strip h2 { font-size: 1.4rem; margin-bottom: .95rem }
.choices,.pager,.profile-next { display: flex; flex-wrap: wrap; gap: .5rem }
.choices a,.pager a { display: inline-flex; align-items: center; min-height: 44px; padding: .46rem .88rem; border: 1px solid #d5ccdf; border-radius: 2rem; text-decoration: none; color: #4a365c; background: #f7f4fb; font-weight: 550; font-size: .96rem }
.choices a:hover,.pager a:hover { background: #e8ddf5; color: var(--accent-deep) }
.band { padding-block: clamp(2.2rem,4.5vw,4.2rem) }
.section-head { justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem }
.section-head .plainlink,.profile-next a,.row-links a { font-weight: 600 }
.features,.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); gap: 1.3rem }
.features { grid-template-columns: repeat(3,minmax(0,1fr)) }
.feature-card { display: block; color: var(--ink); text-decoration: none }
.feature-card img { width: 100%; aspect-ratio: 1.95; object-fit: cover; background: var(--tint); border-radius: .8rem }
.feature-card div { padding: .8rem 0 }
.feature-card h3 { margin-bottom: .35rem; font-size: clamp(1.2rem,1.7vw,1.55rem) }
.feature-card:hover h3 { color: var(--accent); text-decoration: underline }
.feature-card p,.tile p { color: var(--muted) }
.city-band { background: var(--tint); padding-block: 2.4rem }
.city-band>.wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem }
.city-band p { margin-top: .6rem; color: #4e425c; max-width: 62ch }
.city-band .primary { flex: none }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; color: var(--muted); font-size: .88rem; padding-top: .55rem }
.crumb [aria-current] { flex: 1 1 10rem }
.page { min-height: 54vh; padding: 1.7rem 0 clamp(3rem,6vw,5.3rem) }
.page>h1 { margin-bottom: .35em }
.page>.intro { margin-bottom: 1.8rem }
.page>h2,.page>section:not(.tile)>h2,.guide-text h2,.story h2 { margin: 1.4em 0 .45em }
.page>p:not(.intro),.guide-text p { max-width: 73ch; margin-block: .8rem }
.tile { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: .8rem; background: #fbf9fd }
.tile h3 a,.clinic-row h2 a { color: var(--ink); text-decoration: none }
.tile h3 a:hover,.clinic-row h2 a:hover { color: var(--accent); text-decoration: underline }
.tile h3 .plainlink { min-height: 40px }
.tariff-nav { margin-block: 1.25rem 1.8rem }
.tariff-group { max-width: 56rem; margin-block: 0 2.2rem; scroll-margin-top: 1rem }
.tariff-group h3,#drugie-uslugi { font-size: clamp(1.35rem,2.4vw,1.8rem); margin-bottom: .65rem }
.tariff-group dl { margin: 0; border-top: 2px solid var(--line) }
.tariff-group dl > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line) }
.tariff-group dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums }
.tariff-group dd small { display: block; color: var(--muted) }
.tariff-group > p { margin: .55rem 0 0; color: var(--muted) }
.list,.questions { padding-left: 1.35rem; max-width: 74ch }
.list li::marker,.questions li::marker,.story li::marker { color: var(--accent) }
.questions li { padding: .35rem 0 }
.questions+.grid { margin-top: 1rem }
.search { background: var(--tint); padding: 1.25rem clamp(1rem,3vw,2rem); border-radius: .85rem; margin: 1.25rem 0 1.65rem }
.search label { display: block; font-weight: 650 }
.search input { width: min(100%,34rem); min-height: 46px; padding: .65rem .85rem; border: 1px solid #b6a8c6; border-radius: .55rem; margin: .45rem .22rem .2rem 0; background: white; color: var(--ink) }
.search output { display: block; color: var(--muted); font-size: .92rem }
.directory-list { border-top: 2px solid var(--ink) }
.clinic-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) minmax(9.4rem,.6fr); align-items: start; gap: clamp(1rem,3vw,3rem); padding: 1.3rem 0; border-bottom: 1px solid var(--line) }
.clinic-row h2 { font-size: clamp(1.18rem,2vw,1.65rem); margin: 0 }
.clinic-row h2 a { min-height: 0; padding-block: .36rem }
.address { font-size: .96rem; color: var(--muted) }
.row-description { color: var(--muted); font-size: .99rem }
.row-links { display: flex; flex-direction: column; align-items: flex-start }
.row-links a,.calltext { min-height: 44px; display: inline-flex; align-items: center }
.calltext { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums }
.profile { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1fr); align-items: start; gap: clamp(1.4rem,4vw,4rem); margin: 2rem 0 }
.profile h2 { margin: 0 0 .65em; font-size: 1.65rem }
.profile h3 { margin: 1.5rem 0 .3rem }
.visit { padding: clamp(1.15rem,3vw,2rem); background: var(--tint); border-radius: .9rem }
.visit dl { margin-bottom: 1.1rem }
.visit dl>div { padding: .5rem 0; border-bottom: 1px solid #d7cde2 }
.visit dt,.source,.preview-label,.credit { color: var(--muted); font-size: .9rem }
.visit dd { font-weight: 550 }
.profile-next { border-top: 1px solid var(--line); gap: 1.3rem; padding-top: .7rem }
.source { margin-block: 1rem }
.guide-text,.story { max-width: 730px }
.story { margin: 1rem auto 3rem; font-size: 1.075rem }
.story p,.story ul,.story ol { margin-block: .85rem }
.story h1 { font-size: clamp(2.3rem,4.5vw,3.8rem); margin: .25em 0 .55em }
.story article>p:first-child { font-size: 1.19rem }
.story h3 { margin: 1.2em 0 .35em }
.story .sources,.illustrations { border-top: 1px solid var(--line); margin-top: 1.5rem }
.story .sources .list { font-size: .95rem }
.article-photo { margin: 1.5rem 0 }
.article-photo img { width: 100%; max-height: 23rem; object-fit: contain; background: #f3f0f7; border-radius: .7rem }
.story figcaption { margin-top: .5rem; line-height: 1.45; font-size: .94rem }
.credit { display: block }
.illustrations>div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.3rem 1rem }
.illustrations img { width: 100%; border: 1px solid var(--line); border-radius: .5rem }
.note { border-left: 3px solid var(--accent); padding: .8rem 1.2rem; background: var(--tint); margin: 1rem 0 }
.comparison { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); border-radius: .7rem; overflow: hidden; margin: 1rem 0 }
.comparison>* { padding: .8rem 1rem }
.comparison h3 { grid-column: 1/-1; background: var(--tint); font-size: 1.1rem }
.comparison strong { display: block }
.table-scroll { overflow: auto; margin: 1rem 0; max-width: 100% }
table { width: 100%; border-collapse: collapse }
td,th { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: .6rem .8rem }
th { background: var(--tint) }
.check { max-width: 48rem; margin: 1rem 0 }
.check label { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .6rem 0; border-bottom: 1px solid var(--line) }
.check input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--accent) }
.pager { margin-top: 1rem }
.sticky { display: none }
footer { border-top: 1px solid var(--line); padding: 1.5rem 0; background: #faf8fc }
footer .wrap,footer nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1.6rem }
footer nav a { font-size: .93rem; color: var(--muted) }
@media(max-width: 960px) {
  .wrap { width: calc(100% - 3rem) }
  .header-search { display: none }
}
@media(max-width: 760px) {
  .wrap { width: calc(100% - 2rem) }
  .bar { min-height: 65px }
  .nav { display: none }
  .mobile-menu { display: block; position: relative }
  summary { font-weight: 650; gap: .5rem; list-style: none }
  summary::-webkit-details-marker { display: none }
  summary::before { content: ''; display: inline-block; width: 1.1rem; height: .64rem; border-block: 2px solid currentColor }
  .menu-links { position: absolute; background: white; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: .65rem; box-shadow: 0 6px 24px #271d321a; right: 0; min-width: 13rem; z-index: 5 }
  .menu-links a { min-height: 44px; display: flex; align-items: center }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 1.45rem; padding: 1.9rem 0 1.5rem }
  .hero h1 { font-size: clamp(2.45rem,9.5vw,3.85rem) }
  .actions { margin-top: 1.1rem }
  .art { border-radius: .85rem }
  .task-strip { padding-block: 1.4rem }
  .features { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .section-head { flex-wrap: wrap; gap: 0 1rem }
  .city-band>.wrap,.profile { display: grid; grid-template-columns: 1fr; justify-items: start }
  .visit { width: 100% }
  .clinic-row { grid-template-columns: 1fr; gap: .45rem }
  .row-links { flex-direction: row; gap: 1rem; flex-wrap: wrap }
  .page { padding-top: 1rem }
  footer .wrap { align-items: flex-start; flex-direction: column; gap: .75rem }
  footer nav { justify-content: start; gap: 0 1rem }
}
@media(max-width: 500px) {
  .features,.illustrations>div { grid-template-columns: 1fr }
  .features { gap: 1.15rem }
  .choices { gap: .4rem }
  .choices a { font-size: .9rem; padding-inline: .75rem }
  .search input { width: 100%; margin-right: 0 }
  .search button { margin: .3rem 0 }
  .feature-card h3 { font-size: 1.35rem }
}
@media print {
  header,footer,.sticky,.crumb,.print-hide,.cta,.search,.nav,.skip { display: none!important }
  body { padding: 0; background: white; color: black }
  .wrap,.story { width: 100%; max-width: none }
  .page { padding: 0 }
  h1 { font-size: 24pt }
  a { color: inherit }
  .check label { break-inside: avoid }
}

.home-cover { display:grid; grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr); margin-block:clamp(1rem,3vw,2.4rem); border-radius:1.55rem; background:#f4eff6; overflow:hidden }
.home-copy { align-self:center; padding:clamp(1.65rem,3.8vw,3.8rem) }
.home-copy h1 { font-size:clamp(2.4rem,4.7vw,4.85rem); line-height:1; letter-spacing:-.06em; margin:0 0 .35em }
.home-copy h1 span { display:block; color:var(--accent-deep) }
.home-copy p { color:#514759; max-width:39ch; font-size:clamp(1.04rem,1.36vw,1.2rem); line-height:1.5 }
.home-copy .primary { background:var(--accent-deep) }
.home-copy .actions { margin-top:1.4rem }
.home-catalog-link { display:inline-flex; min-height:44px; align-items:center; font-size:.94rem; margin-top:.3rem }
.home-photo { background:#eee2e2; min-width:0 }
.home-photo img { width:100%; height:100%; max-height:37rem; object-fit:cover; object-position:50% 43% }
.home-cover+.task-strip { border-top:0; padding-top:.35rem }
.home-routes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1rem,3vw,3rem) }
.home-routes section { border-top:3px solid #b1a0c6; padding-top:1.1rem }
.home-routes section:nth-child(2) { border-color:#c69177 }
.home-routes section:nth-child(3) { border-color:#8ba8a1 }
.home-routes h3 { font-size:1.45rem; margin-bottom:.55rem }
.home-routes p,.home-directory>p { color:var(--muted); line-height:1.55 }
.home-routes ul,.home-directory ul { list-style:none; padding:0 }
.home-routes li a { display:inline-flex; align-items:center; min-height:40px }
.home-directory { border-block:1px solid var(--line) }
.home-directory>.section-head { margin-bottom:.65rem }
.home-directory>p { max-width:64ch }
.home-directory details { margin-top:1rem }
.home-directory summary { width:fit-content; min-height:44px; color:var(--accent-deep); text-decoration:underline; text-underline-offset:.2em }
.home-directory summary::before { content:none }
.home-directory summary::after { content:"+"; display:inline-block; padding-left:.55rem; font-weight:500; text-decoration:none }
.home-directory details[open] summary::after { content:"−" }
.home-directory ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.8rem 1.6rem; margin:1.1rem 0 0 }
.home-directory li { padding:.65rem 0; border-top:1px solid var(--line) }
.home-directory li a,.home-directory li strong,.home-directory li span { display:block }
.home-directory li span { color:var(--muted); font-size:.93rem }
.home-book { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1.5rem; background:#38254e; color:white; border-radius:1.3rem; padding:clamp(1.5rem,3.8vw,3.25rem); margin-block:1rem 3rem }
.home-book h2 { margin:0 0 .45rem }
.home-book p { max-width:58ch; color:#f1e9fa }
.home-book-actions { display:grid; gap:.3rem; justify-items:start }
.home-book-actions .primary { color:var(--ink); background:#fff }
.home-phone { color:white; display:inline-flex; min-height:44px; align-items:center; font-variant-numeric:tabular-nums }
.home-phone:hover { color:white }

@media(max-width:760px) {
  .home-cover { grid-template-columns:minmax(0,1fr); border-radius:1rem }
  .home-copy { padding:1.35rem 1.15rem .85rem }
  .home-photo img { height:auto; aspect-ratio:2/1; object-position:50% 40% }
  .home-routes { grid-template-columns:minmax(0,1fr) }
  .home-book { margin-block:0 1.7rem }
}
@media(max-width:760px) {
  .home-copy .actions a { padding-inline:.82rem }
}

.cookie-notice { position:fixed; z-index:6; bottom:1rem; right:1rem; width:min(27rem,calc(100% - 2rem)); max-height:60vh; overflow:auto; background:white; border:1px solid var(--line); border-radius:.85rem; box-shadow:0 .4rem 1.8rem #271d3224; padding:.9rem 1rem; font-size:.92rem }
.cookie-notice h2 { font-size:1.2rem; margin-bottom:.45rem }
.cookie-notice p { margin:0 0 .8rem; color:var(--muted); line-height:1.45 }
.cookie-notice .button { min-height:44px; padding:.45rem .8rem }
#cookie { scroll-margin-top:1rem }
.metrics-actions { display:flex; flex-wrap:wrap; gap:.45rem }
.metrics-actions button { min-height:44px; padding:.4rem .8rem }
@media(max-width:760px) { .cookie-notice { bottom:calc(5.5rem + env(safe-area-inset-bottom)) } }
@media print { .cookie-notice { display:none!important } }

.journal-entries { list-style: none; padding: 0; max-width: 76ch; }
.journal-entries li { padding: 1.1rem 0; border-bottom: 1px solid var(--line, #d6dcda); }
.journal-entries a { font-size: 1.15rem; font-weight: 650; }
.journal-entries p { margin: .4rem 0 0; }
.article-deck { font-size: 1.15rem; line-height: 1.55; }
.article-contents { margin: 1.4rem 0; padding: .8rem 1rem; border: 1px solid var(--line, #d6dcda); border-radius: .5rem; }
.article-contents summary { cursor: pointer; font-weight: 650; }
.article-contents li { margin: .45rem 0; }
.story h2[id] { scroll-margin-top: 6rem; }
