/* mrt-vspb.ru, new design (2026-11). One file, no framework. Mobile first; the page widens at 760px and 1100px.
   Palette and type follow the approved mockups: Golos Text, dark-blue ink, one teal accent for actions;
   bold is for names and prices only. */
@font-face {
  font-family: "Golos Text";
  src: url(/v2/fonts/golos-text.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #1c2733; --sub: #56626e; --faint: #7d8995; --ground: #f3f5f7; --surface: #fff; --line: #e1e6ea;
  --accent: #0b7b74; --accent-ink: #086660; --accent-soft: #e6f3f1; --metro: #c8102e; --star: #b86f00;
  --foot: #1c2733; --foot-ink: #c3ced8;
  --f: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
  --wide: 1120px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--f); }
img { max-width: 100%; height: auto; }
button, select, input { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 27px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 20px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.small { font-size: 13px; color: var(--sub); }
.h-small { font-size: 16px; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* header */
.hdr { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.hdr__in { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gut-r) 0 var(--gut); min-height: 56px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
/* icons are inline SVG in currentColor: CSS-drawn lines vanished in the owner's iPhone Safari */
.burger { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; margin-left: -12px; padding: 0; border: 0; background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.burger svg, .brand__logo, .lk-ico { display: block; flex: none; }
.brand__logo { color: var(--accent); }
.nav { display: none; }
.nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(28,39,51,.08); }
.nav__list { display: flex; flex-direction: column; padding: 4px var(--gut-r) 12px var(--gut); }
.nav__list a, .nav__list span { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__list span[aria-current] { color: var(--accent-ink); }
.hdr__r { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.hdr__tel { font-weight: 600; color: var(--ink); white-space: nowrap; }
.hdr__hours { font-size: 12px; color: var(--sub); }
.hdr__lk { display: flex; align-items: center; gap: 6px; color: var(--ink); min-height: 44px; }
.hdr__lk-t { display: none; font-size: 14px; }
.lk-ico { color: var(--ink); }

/* breadcrumbs */
.crumbs { font-size: 13.5px; color: var(--sub); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--faint); }
.crumbs span[aria-current] { color: var(--sub); }

/* text from the page's own content */
.text { max-width: 760px; }
.text h2, .text h3 { font-size: 17px; margin: 14px 0 6px; }
.text p { margin: 0 0 10px; }
.text ul, .text ol { margin: 0 0 10px; padding-left: 20px; list-style: disc; }
.text li + li { margin-top: 4px; }

/* page blocks */
main { display: block; }
.hero, .sect { max-width: var(--wide); margin: 0 auto; background: var(--surface); padding: 20px var(--gut-r) 20px var(--gut); display: flex; flex-direction: column; gap: 12px; }
.sect { margin-top: 10px; }
.hero { padding-top: 16px; }
.lead { color: var(--sub); display: flex; flex-wrap: wrap; gap: 2px 0; font-variant-numeric: tabular-nums; }
.lead span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--faint); }
.hero__act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.btn { min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-align: center; }
a.btn:hover { color: #fff; text-decoration: none; background: var(--accent-ink); }
button.btn:hover { background: var(--accent-ink); }
.ghost { min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid #c4ced7; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 500; cursor: pointer; text-align: center; }
a.ghost:hover { text-decoration: none; border-color: var(--accent); }

/* study links with prices */
.plinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; border-top: 1px solid var(--line); }
.plinks a, .plinks__item { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.3; }
.plinks a:hover { text-decoration: none; }
.plinks a:hover .plinks__name { color: var(--accent-ink); text-decoration: underline; }
.plinks__name { font-size: 15px; }
.plinks__meta { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }

/* catalogue */
.cat details { border-bottom: 1px solid var(--line); }
.cat summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary h3 { font-size: 16px; flex: 1; min-width: 0; }
.cat__n { color: var(--sub); font-size: 13px; flex: none; }
.cat summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; width: 16px; text-align: center; flex: none; }
.cat details[open] summary::after { content: "−"; }
.cat ul { margin-bottom: 10px; }
.cat li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; border-top: 1px dashed var(--line); }
.cat li a { min-width: 0; }
.cat li span { flex: none; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat__all a { font-weight: 500; }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 15px; }
.pills a:hover { border-color: var(--accent); text-decoration: none; color: var(--accent-ink); }
.pills a span { color: var(--sub); margin-left: 8px; font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* clinic list */
.sect_list { background: transparent; padding-left: var(--gut); padding-right: var(--gut-r); }
/* list filter: place, «Рядом со мной», modifier chips */
.flt { display: flex; flex-direction: column; gap: 10px; }
.flt__row { display: flex; gap: 8px; flex-wrap: wrap; }
.place { position: relative; flex: 1 1 140px; min-width: 0; }
.place__btn { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #c4ced7; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.place__btn svg { color: var(--accent); flex: none; }
.place__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place__btn[aria-expanded="true"] { border-color: var(--accent); }
.place__panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: max(100%, min(340px, calc(100vw - 32px))); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(28, 39, 51, .16); padding: 8px; }
.place__search { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #c4ced7; border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.place__list { max-height: min(50vh, 360px); overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; }
.place__group { margin: 10px 10px 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--sub); }
.place__opt { display: block; width: 100%; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.place__opt:hover, .place__opt:focus-visible { background: var(--accent-soft); }
.place__opt[aria-selected="true"] { color: var(--accent-ink); font-weight: 600; }
.place__empty { padding: 10px; font-size: 14px; color: var(--sub); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; white-space: nowrap; cursor: pointer; }
.chip svg { color: var(--accent); }
a.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.chip[aria-pressed="true"] svg { color: #fff; }
.chip:disabled { opacity: .6; cursor: progress; }
.flt__row .chip { min-height: 44px; border-radius: 12px; }
.flt__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.flt__note { margin: 0; font-size: 14px; color: var(--sub); }
.flt__reset { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; text-decoration: underline; cursor: pointer; }
.list.is-loading { opacity: .45; transition: opacity .15s; }
.cl__dist { margin: 2px 0 0; font-size: 13.5px; color: var(--accent-ink); }
@media (max-width: 599px) {
  /* phones: the chips scroll sideways in one row */
  .flt__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .flt__chips::-webkit-scrollbar { display: none; }
}
.list__bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--sub); }
.list__bar select { min-height: 40px; margin-left: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.switch button { -webkit-appearance: none; appearance: none; border: 0; background: transparent; min-height: 40px; padding: 0 14px; font-size: 14px; color: var(--ink); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.map { height: 70vh; min-height: 380px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.map__note { padding: 16px; color: var(--sub); }
.map .btn { min-height: 40px; margin-top: 4px; }
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.list__note { color: var(--sub); }
.list__more { width: 100%; }
.cl { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cl__top { display: flex; gap: 12px; align-items: flex-start; }
.cl__logo-link { flex: none; display: block; line-height: 0; }
.cl__logo { width: 56px; height: 46px; object-fit: contain; flex: none; border-radius: 6px; }
.cl__t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl__name a { color: var(--ink); }
.cl__rt { font-size: 13.5px; color: var(--sub); }
.star { color: var(--star); }
.cl__facts { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: var(--sub); }
.mm { display: flex; align-items: center; gap: 6px; }
.mm::before { content: "М"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--metro); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pl { margin: 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pl dt { min-width: 0; }
.pl div.hl { background: var(--accent-soft); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; border-bottom-color: transparent; font-weight: 500; }
.pl dd { margin: 0; text-align: right; white-space: nowrap; }
.pl s { color: var(--faint); margin-right: 4px; }
.pl small { display: block; font-size: 12.5px; color: var(--sub); }
.pl__one { font-size: 15px; }
.cl__more { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
/* «Записаться» and the phone as two equal buttons (owner 07.11: calls come first); one per row on narrow phones */
.cl__act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cl__act > :only-child { grid-column: 1 / -1; }
.call { color: var(--ink); font-size: 15px; font-weight: 600; white-space: nowrap; padding: 0 8px; }
@media (max-width: 389px) { .cl__act { grid-template-columns: 1fr; gap: 8px; } }
.cl__nobook { font-size: 14px; color: var(--sub); }
.cl_black { opacity: .85; }
.cl_paid { border: 2px solid var(--accent); }
.cl__rec { align-self: flex-start; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: #fff; }
/* the list, «Показать ещё» and the pages keep the section's spacing inside the list/map wrapper */
.list-view { display: flex; flex-direction: column; gap: 10px; }
.pager { font-size: 14px; }
.ajax-pager__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; }
.ajax-pager__num-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.ajax-pager__button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.ajax-pager__button:hover { text-decoration: none; border-color: var(--accent); }
/* phones: «Назад» and «Дальше» become arrows so the row fits; the words stay for screen readers and wider screens */
@media (max-width: 599px) {
  .ajax-pager__buttons, .ajax-pager__num-buttons { gap: 5px; }
  .ajax-pager__button { min-width: 38px; padding: 0 6px; }
  .ajax-pager__prev, .ajax-pager__next { font-size: 0; width: 38px; }
  .ajax-pager__prev::before { content: "‹"; font-size: 22px; line-height: 1; }
  .ajax-pager__next::before { content: "›"; font-size: 22px; line-height: 1; }
}
@media (max-width: 359px) {
  .ajax-pager__buttons, .ajax-pager__num-buttons { gap: 4px; }
  .ajax-pager__button, .ajax-pager__prev, .ajax-pager__next { min-width: 32px; width: auto; padding: 0 4px; }
}
.ajax-pager__button.current { border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.ajax-pager__hidden { display: none !important; }

/* tables, faq, reviews, tiles */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.t th, table.t td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
table.t thead th { font-size: 12.5px; color: var(--sub); border-bottom-color: var(--ink); padding-top: 4px; }
table.t .r { text-align: right; white-space: nowrap; }
table.t .b { font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 16px; font-weight: 500; flex: 1; min-width: 0; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq__a { padding-bottom: 14px; }
.faq__a p + p { margin-top: 8px; }
.revs { display: flex; flex-direction: column; }
.rev { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.rev__who { font-size: 13px; color: var(--sub); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tiles li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--sub); }
.tiles b { color: var(--ink); font-size: 16px; font-weight: 600; }
.arts { display: flex; flex-direction: column; }
.art { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 4px; }
.art a { font-weight: 600; color: var(--ink); }
.expert__who { display: flex; gap: 12px; align-items: center; }
.expert__ava { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.disc { font-size: 13px; color: var(--sub); }

/* clinic page */
.clh { display: flex; align-items: center; gap: 12px; }
.clh__logo { width: 72px; height: 59px; object-fit: contain; flex: none; border-radius: 8px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15px; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.kv_wide { max-width: 860px; }
@media (max-width: 599px) {
  .kv_wide { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv_wide dt { font-size: 13px; padding-top: 10px; }
  .kv_wide dt:first-child { padding-top: 0; }
  .kv_wide dd { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .kv_wide dd:last-child { border-bottom: 0; }
}
.shots { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.shots li { flex: none; }
.shots img { display: block; width: 200px; height: 133px; object-fit: cover; border-radius: 10px; background: var(--ground); }
.shots_lic img { width: 120px; height: 180px; object-fit: contain; }
.prc__search { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.prc__search input { min-height: 46px; padding: 0 12px; border: 1px solid #c4ced7; border-radius: 12px; font-size: 16px; background: var(--surface); }
.prc { border-bottom: 1px solid var(--line); }
.prc summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; }
.prc summary::-webkit-details-marker { display: none; }
.prc summary h3 { flex: 1; min-width: 0; }
.prc summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; flex: none; }
.prc[open] summary::after { content: "−"; }
.prc h4 { margin: 14px 0 4px; font-size: 14px; color: var(--sub); font-weight: 600; }
.prc .pl { margin-bottom: 8px; }
.prc__na { color: var(--faint); }
.rate { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.rate__v b { font-size: 22px; }
.bars { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; margin: 0; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.bars dd { margin: 0; }
.bars i { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bars i b { display: block; height: 100%; background: var(--star); border-radius: 3px; }
.rev__reply { font-size: 14px; color: var(--sub); border-left: 3px solid var(--line); padding-left: 10px; }
.stars { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.stars legend { padding: 0; margin-bottom: 4px; }
.stars label { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }
.form textarea { width: 100%; padding: 10px 12px; border: 1px solid #c4ced7; border-radius: 12px; font: inherit; font-size: 16px; background: var(--surface); }
details.more > summary { cursor: pointer; color: var(--accent-ink); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
details.more[open] > summary { margin-bottom: 8px; }
.docs { display: grid; gap: 12px; }
.doc { display: flex; gap: 12px; align-items: flex-start; }
.doc img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ground); }
.near { display: flex; flex-direction: column; }
.near li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.near a { font-weight: 600; }
.map_one { height: 320px; min-height: 0; }

/* booking form */
.form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.form__row { display: flex; flex-direction: column; gap: 4px; }
.form .f { font-size: 13.5px; color: var(--sub); }
.form input[type="text"], .form input[type="tel"], .form select { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #c4ced7; border-radius: 12px; background: var(--surface); font-size: 16px; color: var(--ink); }
.form [aria-invalid="true"] { border-color: #b3261e; }
.form__clinic { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; }
.cons { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--sub); }
.cons input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.form__status { font-size: 14.5px; min-height: 1.5em; }
.form__status.is-ok { color: #1d6b3a; }
.form__status.is-err { color: #b3261e; }

/* footer and the bottom bar on phones */
.foot { background: var(--foot); color: var(--foot-ink); margin-top: 10px; font-size: 13.5px; }
.foot__in { max-width: var(--wide); margin: 0 auto; padding: 22px var(--gut-r) calc(96px + env(safe-area-inset-bottom, 0px)) var(--gut); display: flex; flex-direction: column; gap: 10px; }
.foot b { color: #fff; }
.foot a { color: #e2ebf2; }
.foot__tel { font-weight: 600; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__legal { font-size: 12.5px; }
.foot__social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.foot__social iframe { border: 0; display: block; }
.foot__small { font-size: 12px; color: #9fb0bf; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px var(--gut-r) calc(8px + env(safe-area-inset-bottom, 0px)) var(--gut); background: rgba(243,245,247,.96); border-top: 1px solid var(--line);
  visibility: hidden; transform: translateY(110%); transition: transform .2s ease, visibility 0s linear .2s; }
.dock.is-on { visibility: visible; transform: none; transition: transform .2s ease; }
/* the cookie notice: a small card at the bottom, above the phone dock while the dock is shown (dock: 8 + 48 + 8 + 1 px) */
.ck { position: fixed; z-index: 12; left: var(--gut); right: var(--gut-r); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 16px rgba(28,39,51,.12); font-size: 13.5px; line-height: 1.4; transition: bottom .2s ease; }
.ck[hidden] { display: none; }
.ck__t { margin: 0; flex: 1; min-width: 0; }
.ck__ok { min-height: 40px; padding: 0 16px; flex: none; }
@media (max-width: 759px) { .dock.is-on ~ .ck { bottom: calc(73px + env(safe-area-inset-bottom, 0px)); } }

/* small phones (320–379px): logo without the name, phone in the hero on its own row, one column of studies */
@media (max-width: 379px) {
  .brand span { display: none; }
  .hdr__in { gap: 8px; }
  .hero__act { grid-template-columns: 1fr; }
  .plinks { grid-template-columns: minmax(0, 1fr); }
}
.brand span, .hdr__tel, .hero__act a { white-space: nowrap; }
@media (min-width: 760px) {
  h1 { font-size: 34px; }
  h2 { font-size: 23px; }
  .hero, .sect { padding-top: 26px; padding-bottom: 26px; border-radius: 16px; }
  .hero { margin-top: 12px; }
  .sect { margin-top: 12px; }
  .sect_list { padding-left: 0; padding-right: 0; }
  .hero__act { display: flex; }
  .plinks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots img { width: 240px; height: 160px; }
  .cat { columns: 2; column-gap: 32px; }
  .cat details { break-inside: avoid; }
  .faq, .revs { max-width: 760px; }
  .hdr__lk-t { display: inline; }
  .foot__in { padding-bottom: 28px; }
  .dock { display: none; }
}
@media (min-width: 1100px) {
  .burger { display: none; }
  .nav { display: block; }
  .nav__list { flex-direction: row; gap: 18px; padding: 0; }
  .nav__list a, .nav__list span { border: 0; min-height: 56px; font-size: 15px; }
  .hero, .sect { margin-left: auto; margin-right: auto; }
  .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) and (max-width: 1160px) {
  .hero, .sect { border-radius: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* static pages (о сервисе, контакты, FAQ, оферта, политики): the admin's text in the reading column */
.hero_text { padding-bottom: 0; }
.static { max-width: 760px; }
.static h1 { margin: 0 0 12px; }
.static img { height: auto; border-radius: 12px; }
.static .tw { margin: 10px 0; }

/* HTML sitemaps: names in columns, a letter before each run */
.az { columns: 2 220px; column-gap: 24px; margin: 0; padding: 0; list-style: none; }
.az li { break-inside: avoid; padding: 3px 0; }
.az__letter { margin-top: 10px; font-weight: 700; color: var(--accent-ink); }
.az__letter:first-child { margin-top: 0; }

/* articles: the text in a reading column, as the admin wrote it */
.art-page { max-width: 760px; }
.art-page h1 { margin: 0 0 8px; }
.art-meta, .art-by { margin: 0 0 6px; font-size: 14px; color: var(--sub); }
.art-img { display: block; width: 100%; height: auto; margin: 12px 0; border-radius: 12px; }
.art-toc { margin: 12px 0; }
.art-toc:empty { display: none; }
/* the contents the admin builds (div.article__content: a title and a link per heading) as a list in a box */
.art-toc .article__content { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; }
.art-toc .h4 { font-weight: 600; color: var(--ink); }
/* a heading jumped to from the contents is not hidden under the sticky header */
.art-text [id] { scroll-margin-top: 72px; }
.art-text img { max-width: 100%; height: auto; }
/* long source addresses (links or plain text in the sources list) wrap instead of widening the page (594 px on a
   390 px screen before); ordinary words still wrap at spaces */
.art-text, .art-toc { overflow-wrap: anywhere; }
.art-text .tw, .art-text table { max-width: 100%; }
.art__lead { margin: 2px 0 0; color: var(--sub); font-size: 14.5px; }
.mini { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mini__item { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.mini__item p { margin: 0; }
.mini__name a { font-weight: 600; color: var(--ink); }
.mini__price { font-size: 15px; }
.mini__price s { color: var(--faint); margin-right: 4px; }

/* a hub's metro pages, collapsed: dozens of stations */
.more-geo { margin-top: 10px; }
.more-geo > summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 6px 0; }
.more-geo .pills { margin-top: 8px; }
/* doctor's text of a page (MedicalText); the draft note shows only on the test stand */
.med__draft { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #7a4b00; font-size: 14px; }
.med__text h3 { font-size: 17px; margin: 16px 0 6px; }
.med__text h3:first-child { margin-top: 0; }
.med__src summary { cursor: pointer; color: var(--sub); font-size: 14px; }
.med__src ul { margin: 6px 0 0; padding-left: 20px; list-style: disc; font-size: 13px; color: var(--sub); }
/* clinic page: pinned contents under the sticky header */
.toc { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 5; max-width: var(--wide); margin: 10px auto 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.toc ul { display: flex; gap: 6px; overflow-x: auto; margin: 0; padding: 8px var(--gut-r) 8px var(--gut); list-style: none; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14.5px; white-space: nowrap; }
.toc a:hover { border-color: var(--accent); text-decoration: none; }
#ceny, #usloviya, #vrachi, #otzyvy, #licenzii, #kak-dobratsya, #zapis { scroll-margin-top: 120px; }
/* blog: preparation articles and articles by study (first page) */
.blog-links { margin: 0; padding-left: 18px; list-style: disc; display: flex; flex-direction: column; gap: 6px; }
.blog-studies { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.blog-studies h3 { font-size: 16px; margin: 0 0 6px; }
@media (min-width: 720px) { .blog-studies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
