/* РСП – демо редизайна. Палитра и шрифт: см. brief.md, раздел «Дизайн демо» */
:root {
  --paper: #f2f5f7;
  --white: #ffffff;
  --ink: #13212b;
  --ink-2: #4a5963;
  --line: #d6dee3;
  --cobalt: #1f4bb5;
  --cobalt-deep: #183c93;
  --cobalt-tint: #e6edfb;
  --open: #157347;
  --open-tint: #e3f3ea;
  --soon: #9a4a06;
  --night: #0f1b33;
  --night-2: #1b2a4a;
  --night-ink: #e9eefb;
  --night-soft: #a9b6d3;
  --fs: 1rem;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

* { box-sizing: border-box; }
html { font-size: calc(17px * var(--scale, 1)); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", system-ui, sans-serif;
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.018em; margin: 0; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- демо-плашка (для показа заказчику, на сдаче удаляется) ---------- */
.demo { background: var(--ink); color: #cfd8de; font-size: .82rem; }
.demo .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; padding-block: .45rem; }
.demo b { color: #fff; font-weight: 500; }
.demo nav { display: flex; flex-wrap: wrap; gap: .2rem .75rem; }
.demo a { color: #fff; }

/* ---------- служебная строка ---------- */
.util { border-bottom: 1px solid var(--line); background: var(--white); font-size: .86rem; }
.util .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; padding-block: .5rem; }
.util__call { margin-right: auto; color: var(--ink-2); }
.util__call a { color: var(--ink); font-weight: 600; text-decoration: none; }
.a11y-btn {
  font: inherit; color: var(--ink); background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem .85rem; cursor: pointer; display: inline-flex; gap: .45rem; align-items: center;
}
.a11y-btn:hover { border-color: var(--ink); }
.a11y-btn svg { width: 1.2em; height: 1.2em; }
.a11y-panel { display: none; gap: .5rem; align-items: center; flex-wrap: wrap; }
.is-a11y .a11y-panel { display: flex; }
.a11y-panel button {
  font: inherit; border: 2px solid currentColor; background: none; color: inherit; border-radius: 6px;
  min-width: 2.4rem; padding: .15rem .5rem; cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }

/* ---------- шапка ---------- */
.head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.mark { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.mark__sq {
  width: 46px; height: 46px; border-radius: 12px; background: var(--cobalt); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; letter-spacing: .02em; flex: none;
}
.mark { flex-shrink: 0; }
.mark__txt { font-weight: 600; line-height: 1.15; font-size: .95rem; width: 16.5rem; }
.mark__txt small { display: block; font-weight: 400; color: var(--ink-2); font-size: .78rem; margin-top: .15rem; }
.nav { display: flex; gap: .2rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .55rem .6rem; border-radius: var(--r-sm); font-size: .93rem; white-space: nowrap; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--cobalt); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
  font: inherit; font-weight: 600; border-radius: 12px; padding: .85rem 1.35rem; min-height: 52px; cursor: pointer;
  border: 2px solid var(--cobalt); background: var(--cobalt); color: #fff;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--cobalt); }
.btn--ghost:hover { background: var(--cobalt-tint); color: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.btn--sm { min-height: 44px; padding: .55rem 1rem; font-size: .95rem; }
.menu-btn { display: none; }

/* на узких экранах и в версии для слабовидящих меню – под кнопкой */
.is-a11y .nav { display: none; }
.is-a11y .head .btn--sm { display: none; }
.is-a11y .menu-btn {
  display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; color: var(--ink); cursor: pointer;
}
.is-a11y.is-menu .nav {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gut) 1rem;
}
.is-a11y.is-menu .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .head .btn--sm { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600;
    background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; color: var(--ink); cursor: pointer;
  }
  .is-menu .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gut) 1rem;
  }
  .is-menu .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .head .wrap { gap: .75rem; }
  .mark { flex-shrink: 1; min-width: 0; }
  .mark__txt { width: auto; min-width: 0; }
  .menu-btn { flex-shrink: 0; }
  .is-a11y .menu-btn__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .is-a11y .mark__sq { width: 2.4em; height: 2.4em; font-size: .8rem; }
  .is-a11y .mark { gap: .5rem; }
}
@media (max-width: 520px) {
  .mark__txt small { display: none; }
  .mark__txt { font-size: .9rem; }
  .mark__sq { width: 40px; height: 40px; }
}

/* ---------- первый экран ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: -.028em; max-width: 14ch; }
.hero__lead { margin-top: 1.4rem; font-size: 1.15rem; color: var(--ink-2); max-width: 36ch; }
.hero__act { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__facts { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem 2.25rem; justify-content: start; }
.hero__facts li { border-left: 3px solid var(--cobalt); padding-left: .85rem; font-size: .92rem; color: var(--ink-2); max-width: 18ch; line-height: 1.35; }
.hero__facts strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero__facts strong, .board__list li span:last-child { white-space: normal; }
  .hero h1 { max-width: 18ch; }
}
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__act .btn { flex: 1 1 100%; }
}

/* ---------- табличка «Сейчас» – фирменный элемент ---------- */
.board {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem); box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgb(19 33 43 / .35);
  transition: background-color .6s, color .6s, border-color .6s;
}
.board__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.board__label { font-size: .92rem; color: var(--ink-2); }
.board__clock { font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.board__day { font-size: 1rem; color: var(--ink-2); }
.board__sum { margin-top: 1.25rem; font-size: 1.15rem; font-weight: 600; }
.board__list { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .1rem; }
.board__list li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.board__list li span:last-child { color: var(--ink-2); white-space: nowrap; }
.board__list a { color: inherit; text-decoration: none; }
.board__list a:hover { text-decoration: underline; }
.board__urgent { margin-top: 1.25rem; border-radius: var(--r-md); padding: 1rem 1.1rem; background: var(--paper); font-size: .95rem; }
.board__urgent strong { display: block; font-size: 1.02rem; margin-bottom: .2rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--open); margin-right: .45rem; vertical-align: .08em; box-shadow: 0 0 0 4px var(--open-tint); }
.dot--off { background: #9aa6ae; box-shadow: none; }
.board__note { margin-top: 1rem; font-size: .8rem; color: var(--ink-2); }

.board.is-night { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.board.is-night .board__label, .board.is-night .board__day, .board.is-night .board__note,
.board.is-night .board__list li span:last-child { color: var(--night-soft); }
.board.is-night .board__list li { border-color: var(--night-2); }
.board.is-night .board__urgent { background: var(--night-2); }
.board.is-night .board__urgent.is-on { background: #f5f7fb; color: var(--night); }
.board.is-night .board__urgent.is-on a { color: var(--cobalt); }
.board.is-night a { color: #c9d6ff; }
.board__urgent.is-on { background: var(--cobalt-tint); }

/* ---------- секции ---------- */
.sec { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.sec--white { background: var(--white); border-block: 1px solid var(--line); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.sec__head p { color: var(--ink-2); max-width: 46ch; }

/* как записаться */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.way { padding: 1.5rem 1.75rem 1.75rem 0; display: flex; flex-direction: column; gap: .6rem; }
.way + .way { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.way__for { font-size: .9rem; color: var(--ink-2); }
.way h3 { font-size: 1.35rem; }
.way p { color: var(--ink-2); }
.way__go { margin-top: auto; padding-top: .75rem; font-weight: 600; }
.way__go a { font-size: 1.05rem; }
.tip { margin-top: 2.25rem; display: grid; grid-template-columns: auto minmax(0, 1fr); overflow-wrap: break-word; hyphens: auto; gap: 1rem 1.25rem; padding: 1.25rem 1.5rem; background: var(--cobalt-tint); border-radius: var(--r-md); }
.tip svg { width: 28px; height: 28px; color: var(--cobalt); }
.tip p + p { margin-top: .4rem; }
.before { margin-top: 2.75rem; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.before ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.before li { padding-left: 1.4rem; position: relative; color: var(--ink-2); }
.before li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: 2px; background: var(--ink); }
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; }
  .way, .way + .way { padding: 1.4rem 0; border-left: 0; }
  .way + .way { border-top: 1px solid var(--line); }
  .before { grid-template-columns: 1fr; }
  .before ul { grid-template-columns: 1fr; }
}

/* подразделения */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip {
  font: inherit; font-size: .95rem; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: .5rem 1rem; cursor: pointer; min-height: 44px;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.branches { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.br {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 11.5rem;
  gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.br[hidden] { display: none; }
.br__n { font-weight: 600; font-size: 1.4rem; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.br__n small { display: block; font-size: .78rem; color: var(--ink-2); font-weight: 400; }
.br__addr { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.br__how { margin-top: .4rem; font-size: .9rem; color: var(--ink-2); }
.br__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.tag { font-size: .8rem; padding: .2rem .6rem; border-radius: 6px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.br__k { font-size: .82rem; color: var(--ink-2); display: block; }
.br__tel a { color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.br__tel a:hover { color: var(--cobalt); text-decoration: underline; }
.br__tel div + div { margin-top: .45rem; }
.br__hours { font-size: .92rem; font-variant-numeric: tabular-nums; }
.br__hours div { display: flex; justify-content: space-between; gap: .75rem; }
.br__hours dt, .br__hours dd { margin: 0; }
.br__hours dt { color: var(--ink-2); }
.state { font-size: .9rem; font-weight: 600; padding: .45rem .7rem; border-radius: 10px; background: var(--paper); color: var(--ink-2); line-height: 1.3; }
.state.is-open { background: var(--open-tint); color: var(--open); }
.state.is-soon { background: #fdf1e3; color: var(--soon); }
.branches__empty { padding: 2rem 0; color: var(--ink-2); }
@media (max-width: 1080px) {
  .br { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1fr); }
  .br__hours { grid-column: 2; }
  .br .state { grid-column: 3; align-self: start; }
}
@media (max-width: 640px) {
  .br { grid-template-columns: 1fr; gap: .8rem; padding: 1.25rem 0; }
  .br__n { display: flex; align-items: baseline; gap: .6rem; font-size: 1.1rem; }
  .br__n small { display: inline; }
  .br__hours, .br .state { grid-column: auto; }
  .br .state { justify-self: start; order: -1; }
}

/* ОМС и платно */
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.pay__col { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; }
.pay__col + .pay__col { border-left: 1px solid var(--line); }
.pay__col h3 { font-size: 1.5rem; }
.pay__col > p { color: var(--ink-2); }
.pay__photo { grid-column: 1 / -1; aspect-ratio: 16 / 6; overflow: hidden; border-bottom: 1px solid var(--line); }
.pay__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .65rem 0; border-top: 1px solid var(--line); }
.docs a { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; text-decoration: none; color: var(--ink); padding: .2rem 0; }
.docs a:hover span:last-child { text-decoration: underline; color: var(--cobalt); }
.ext {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: #b42318; border: 1.5px solid currentColor;
  border-radius: 4px; padding: .05rem .3rem; margin-top: .25em; line-height: 1.3;
}
.ext--doc { color: var(--cobalt); }
@media (max-width: 860px) {
  .pay { grid-template-columns: 1fr; }
  .pay__col + .pay__col { border-left: 0; border-top: 1px solid var(--line); }
  .pay__photo { aspect-ratio: 16 / 9; }
}

/* новости и вопрос-ответ */
.newsqa { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.news { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news li { padding: 1.25rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.news time { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: .95rem; padding-top: .1rem; }
.news a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.news a:hover { color: var(--cobalt); text-decoration: underline; }
.news p { margin-top: .3rem; color: var(--ink-2); font-size: .95rem; }
.more { display: inline-block; margin-top: 1.25rem; font-weight: 600; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2rem); align-self: start; }
.qa h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.qa > p { color: var(--ink-2); }
.qa blockquote { margin: 1.4rem 0 0; padding: 0; }
.qa__q { font-weight: 600; }
.qa__q span, .qa__a span { display: block; font-size: .82rem; font-weight: 400; color: var(--ink-2); margin-bottom: .2rem; }
.qa__a { margin-top: 1rem; padding-left: 1rem; border-left: 3px solid var(--cobalt); color: var(--ink-2); }
.qa .btn { margin-top: 1.5rem; width: 100%; }
@media (max-width: 860px) {
  .newsqa { grid-template-columns: 1fr; }
  .news li { grid-template-columns: 1fr; gap: .2rem; }
}

/* все разделы */
.map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.map h3 { font-size: 1.1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--ink); margin-bottom: .5rem; }
.map h3 a { color: inherit; text-decoration: none; }
.map ul { list-style: none; margin: 0; padding: 0; }
.map li a { display: block; padding: .38rem 0; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.map li a:hover { color: var(--cobalt); text-decoration: underline; }
@media (max-width: 900px) { .map { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .map { grid-template-columns: 1fr; } }

/* горячие линии */
.lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lines div { background: var(--white); padding: 1.1rem 1.25rem; }
.lines a { font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines a:hover { color: var(--cobalt); }
.lines p { font-size: .88rem; color: var(--ink-2); margin-top: .2rem; }
@media (max-width: 900px) { .lines { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lines { grid-template-columns: 1fr; } }

/* госуслуги «Решаем вместе» – место под официальный виджет */
.pos { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border: 1px dashed #9fb2d6; border-radius: var(--r-md); background: var(--white); }
.pos strong { display: block; font-size: 1.15rem; }
.pos p { color: var(--ink-2); font-size: .92rem; }

/* подвал */
.foot { background: var(--ink); color: #c4ced5; padding: 3.5rem 0 2.5rem; font-size: .92rem; }
.foot a { color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem 3rem; }
.foot strong { color: #fff; font-weight: 600; display: block; margin-bottom: .5rem; font-size: 1rem; }
.foot p + p { margin-top: .6rem; }
.foot__warn { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #2c3d49; font-size: 1.05rem; color: #fff; }
.foot__copy { margin-top: .75rem; font-size: .82rem; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- внутренняя страница ---------- */
.crumbs { font-size: .9rem; color: var(--ink-2); padding: 1.5rem 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: #9aa6ae; }
.crumbs a { color: var(--ink-2); }
.page-head { padding: 1.5rem 0 2.5rem; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -.026em; max-width: 18ch; }
.page-head p { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; }
.layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding-bottom: 5rem; align-items: start; }
.side { position: sticky; top: 100px; }
.side strong { display: block; font-size: .9rem; color: var(--ink-2); font-weight: 500; margin-bottom: .6rem; }
.side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side a { display: block; padding: .5rem 0 .5rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: .95rem; line-height: 1.3; }
.side a:hover { color: var(--cobalt); }
.side a[aria-current="page"] { border-left-color: var(--cobalt); color: var(--cobalt); font-weight: 600; }
.side__toc { margin-top: 2rem; }
.side__toc ul { border-left: 0; }
.side__toc a { padding-left: 0; border: 0; color: var(--ink-2); font-size: .9rem; padding-block: .3rem; }
.content { min-width: 0; }
.block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.25rem); scroll-margin-top: 100px; }
.block + .block { margin-top: 1.25rem; }
.block h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 1rem; }
.block > p { color: var(--ink-2); max-width: 64ch; }
.block > p + p { margin-top: .75rem; }
.kinds { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.kinds li { padding: .8rem 0; border-top: 1px solid var(--line); }
.kinds li strong { display: block; font-weight: 600; }
.kinds li span { color: var(--ink-2); font-size: .93rem; }
.facts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 1.5rem; border: 1px solid var(--line); }
.facts3 div { background: var(--paper); padding: 1rem 1.15rem; font-size: .93rem; color: var(--ink-2); }
.facts3 strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: .2rem; }
.docs-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.docs-list li { border-top: 1px solid var(--line); }
.docs-list li:last-child { border-bottom: 1px solid var(--line); }
.docs-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: .95rem 0; color: var(--ink); text-decoration: none; }
.docs-list a:hover .docs-list__t { color: var(--cobalt); text-decoration: underline; }
.docs-list__m { font-size: .85rem; color: var(--ink-2); white-space: nowrap; }
.docs-list .ext { margin-top: 0; }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary {
  list-style: none; cursor: pointer; padding: 1rem 2.5rem 1rem 0; font-weight: 600; position: relative; font-size: 1.05rem;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.5rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
details.acc[open] summary::after { transform: rotate(-135deg); margin-top: -.15rem; }
.acc__body { padding: 0 0 1.25rem; color: var(--ink-2); max-width: 64ch; }
.acc__body p + p, .acc__body ul { margin-top: .6rem; }
.acc__body ul { padding-left: 1.2rem; }
.wait { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.5rem; margin-top: 1.25rem; align-items: baseline; }
.wait b { font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wait span { color: var(--ink-2); }
.staff { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .side ul { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; }
  .side a { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; margin: 0; background: var(--white); }
  .side a[aria-current="page"] { border-color: var(--cobalt); background: var(--cobalt-tint); }
  .side__toc { display: none; }
}
@media (max-width: 640px) {
  .kinds, .staff { grid-template-columns: 1fr; }
  .facts3 { grid-template-columns: 1fr; }
  .docs-list a { grid-template-columns: auto 1fr; }
  .docs-list__m { grid-column: 2; }
  .wait { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .wait b { white-space: normal; }
  .wait span { margin-bottom: .8rem; }
}

/* ---------- версия для слабовидящих ---------- */
.is-a11y.a11y-contrast body, .is-a11y.a11y-contrast .head, .is-a11y.a11y-contrast .util,
.is-a11y.a11y-contrast .sec--white, .is-a11y.a11y-contrast .block, .is-a11y.a11y-contrast .qa,
.is-a11y.a11y-contrast .pay, .is-a11y.a11y-contrast .board, .is-a11y.a11y-contrast .lines div,
.is-a11y.a11y-contrast .pos, .is-a11y.a11y-contrast .facts3 div, .is-a11y.a11y-contrast .tip,
.is-a11y.a11y-contrast .board__urgent, .is-a11y.a11y-contrast .state, .is-a11y.a11y-contrast .chip,
.is-a11y.a11y-contrast .tag, .is-a11y.a11y-contrast .side a {
  background: #fff !important; color: #000 !important; border-color: #000 !important; box-shadow: none !important;
}
.is-a11y.a11y-contrast * { color: #000 !important; }
.is-a11y.a11y-contrast a { text-decoration: underline !important; }
.is-a11y.a11y-contrast .btn, .is-a11y.a11y-contrast .chip[aria-pressed="true"], .is-a11y.a11y-contrast .mark__sq {
  background: #000 !important; color: #fff !important; border-color: #000 !important;
}
.is-a11y.a11y-contrast .btn *, .is-a11y.a11y-contrast .mark__sq { color: #fff !important; }
.is-a11y.a11y-contrast .a11y-panel button[aria-pressed="true"] { background: #000 !important; color: #fff !important; }
.is-a11y.a11y-contrast .board__urgent .dot, .is-a11y.a11y-contrast .board__sum .dot { background: #000 !important; box-shadow: none !important; }
.is-a11y.a11y-contrast .foot, .is-a11y.a11y-contrast .demo { background: #000 !important; }
.is-a11y.a11y-contrast .foot *, .is-a11y.a11y-contrast .demo * { color: #fff !important; }
.is-a11y.a11y-noimg img { display: none !important; }
@media (max-width: 560px) {
  .is-a11y .hero__facts { grid-template-columns: minmax(0, 1fr); }
  .is-a11y .br__tel a, .is-a11y .lines a, .is-a11y .board__list li span, .is-a11y .docs-list__m { white-space: normal; }
  .is-a11y .board__list li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
}
.is-a11y.a11y-noimg .pay__photo { display: none; }
.is-a11y * { transition: none !important; animation: none !important; }

/* ---------- одно движение: «пульс» у статуса «открыто» (без скрытия контента) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .board__sum .dot:not(.dot--off) { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px var(--open-tint); } }
