/* ============ Блог: хаб «по ситуации» и статья (вариант C из work/blog-v) ============
   Подключается вместе с inner.css: @css inner,blog. Исходник макета — work/blog-v/blog-v.css. */

.kicker { display: block; font-weight: 600; font-size: 12.5px; line-height: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--rose); }

/* ---- Текст статьи ---- */
.art { min-width: 0; max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.art > * + * { margin-top: 18px; }
.art h2 {
  font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.25; color: var(--ink);
  margin-top: 52px; scroll-margin-top: 110px;
}
.art h2 + * { margin-top: 16px; }
.art strong { font-weight: 500; color: var(--ink); }
.art a:not([class]) { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(138, 74, 94, .35); }
.art a:not([class]):hover { text-decoration-color: currentColor; }

/* маркеры-точки и нумерованные шаги */
.dots { display: flex; flex-direction: column; gap: 12px; }
.dots li { position: relative; padding-left: 24px; }
.dots li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.steps { list-style: none; padding: 0; counter-reset: st; display: flex; flex-direction: column; gap: 16px; }
.steps li { position: relative; padding-left: 46px; counter-increment: st; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blush); border: 1px solid var(--pink); color: var(--rose); font-size: 14px; font-weight: 500; line-height: 1;
}
.art .check li { font-size: 16px; }

/* «Когда к врачу» */
.alert { border: 1px solid var(--pink); border-radius: var(--r-md); background: #fff; padding: 24px 28px; }
.alert__title { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 17px; line-height: 1.35; color: var(--ink); margin-bottom: 12px; }
.alert__ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; line-height: 1; }
.alert__list { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.55; }
.alert__list li { position: relative; padding-left: 38px; }
.alert__list li::before { content: '—'; position: absolute; left: 12px; color: var(--rose); }

/* Две колонки «так / иначе» */
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cmp__col { min-width: 0; border: 1px solid var(--haze); border-radius: var(--r-md); padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.cmp__k { font-family: var(--font-serif); font-size: 22px; line-height: 1.25; color: var(--rose); }
.cmp__k--sage { color: var(--sage); }
.cmp .check { gap: 10px; }
.cmp .check li { font-size: 15.5px; line-height: 1.5; }
.cmp__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--haze); font-size: 13.5px; line-height: 1.4; color: var(--ink-mute); }

/* Страх → как на самом деле */
.pairs { border-top: 1px solid var(--haze); }
.pairs__row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding-block: 20px; border-bottom: 1px solid var(--haze); }
.pairs__k { min-width: 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.3; color: var(--rose); }
.pairs__v { min-width: 0; margin: 0; font-size: 16px; line-height: 1.6; }

/* Таблицы с цифрами */
.atable { margin-inline: 0; }
.atable__scroll { overflow-x: auto; border: 1px solid var(--haze); border-radius: var(--r-md); background: #fff; }
.atable table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.atable th, .atable td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--haze); }
.atable tbody tr:last-child > * { border-bottom: 0; }
.atable thead th { background: var(--blush); font-weight: 500; font-size: 13.5px; color: var(--ink); }
.atable tbody th { font-weight: 400; color: var(--ink-soft); }
.atable td { color: var(--ink); }
.atable .n { text-align: right; font-variant-numeric: tabular-nums; }
.atable td.n { white-space: nowrap; }
.atable__note { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-mute); }

/* Мост на услугу — карточка услуги сайта */
.bridge { text-decoration: none; }
.bridge__k { font-weight: 600; font-size: 12px; line-height: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.art .bridge { margin-top: 26px; }
.art .bridge + * { margin-top: 26px; }
.art .bridge + h2 { margin-top: 48px; }

/* «Коротко», источники */
.tldr { background: var(--blush); border: 1px solid var(--haze); border-radius: var(--r-lg); padding: 28px 32px 30px; }
.tldr__t { font-family: var(--font-serif); font-size: 24px; line-height: 1.25; color: var(--ink); margin-bottom: 16px; }
.sources { margin-top: 28px !important; font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }
.sources__t { font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; }
.sources ol { padding-left: 18px; }
.sources a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--haze); }
.sources a:hover { text-decoration-color: currentColor; }
.art .faq { max-width: none; }
.art .faq__a { font-size: 15.5px; }

/* Оглавление: на десктопе — список сбоку, на мобиле — свёрнутый <details> */
.toc { min-width: 0; }
.toc__t { list-style: none; font-weight: 600; font-size: 12.5px; line-height: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.toc__t::-webkit-details-marker { display: none; }
.toc__list { list-style: none; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--haze); }
.toc__list a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); transition: color .2s, border-color .2s; }
.toc__list a:hover { color: var(--rose); }
.toc__list a.is-on { color: var(--rose); border-left-color: var(--rose); font-weight: 500; }
@media (min-width: 1025px) { .toc__t { pointer-events: none; } }

/* ---- Хаб: шапка, ситуации, врач ---- */
.chero-list { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: end; }
.sitch { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.sitch__a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--r-pill); background: #fff; font-size: 14.5px; line-height: normal; color: var(--ink); transition: background-color .2s, color .2s; }
.sitch__a::after { content: '↓'; color: var(--rose); }
.sitch__a:hover { background: var(--rose); color: #fff; }
.sitch__a:hover::after { color: #fff; }
.docard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; background: #fff; border-radius: var(--r-lg); padding: 24px; }
.docard__ava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.docard__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.docard__k { font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.docard__name { font-family: var(--font-serif); font-size: 21px; line-height: 1.3; color: var(--ink); }
.docard__role { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 4px; }
.docard__link { font-size: 14.5px; line-height: normal; color: var(--rose); }
.docard__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Хаб: группы и карточки статей ---- */
.grp { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; padding-block: 40px; border-top: 1px solid var(--haze); scroll-margin-top: 100px; }
.grp:first-child { border-top: 0; padding-top: 0; }
.grp__head { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.grp__t { font-family: var(--font-serif); font-size: 28px; line-height: 1.25; color: var(--ink); }
.grp__x { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.grp__n { font-size: 13px; color: var(--ink-mute); }

/* ---- Статья: шапка, тело, боковая колонка ---- */
.chead { background: var(--blush); padding-block: 44px 52px; }
.chead__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.chead__copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.chead__t { font-family: var(--font-serif); font-size: 42px; line-height: 1.2; color: var(--ink); }
.chead__lead { font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.chead__m { font-size: 13.5px; color: var(--ink-mute); }
.chead__m a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--haze); }
.chead__m a:hover { color: var(--rose); text-decoration-color: currentColor; }
.chead__img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--haze); }
.chead__img img { width: 100%; height: 100%; object-fit: cover; }
.abody-sec { padding-top: 56px; }
.cbody { display: grid; grid-template-columns: minmax(0, 720px) 340px; justify-content: space-between; gap: 64px; align-items: start; }
.cside { grid-column: 2; grid-row: 1; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.cbody .art { grid-column: 1; grid-row: 1; }
.cdoc { border: 1px solid var(--haze); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.cdoc__row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.cdoc__row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cdoc__ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cdoc__k { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--sage); }
.cdoc__name { font-weight: 500; font-size: 16px; color: var(--ink); }
.cdoc__role { font-size: 13.5px; color: var(--ink-mute); }
.cdoc__btn { width: 100%; }

/* ============ Адаптив ============ */
@media (max-width: 1180px) {
  .cbody { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .chero-list { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
}
@media (max-width: 1024px) {
  /* оглавление и боковая колонка уходят наверх, в одну колонку */
  .cbody { display: block; }
  .art { max-width: none; }
  .toc { border: 1px solid var(--haze); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 32px; background: #fff; }
  .cside { position: static; gap: 0; }
  .toc__t { margin: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
  .toc__t::after { content: ''; width: 16px; height: 16px; background: url('/assets/icons/chevron-down.svg') center / contain no-repeat; transition: transform .2s; }
  .toc[open] .toc__t::after { transform: rotate(180deg); }
  .toc[open] .toc__list { margin-top: 12px; }
  .cdoc { display: none; }
  .grp { grid-template-columns: 1fr; gap: 24px; }
  .chero-list { grid-template-columns: 1fr; align-items: start; }
  .chead__in { grid-template-columns: 1fr; gap: 32px; }
  .chead__img { order: -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 768px) {
  .art { font-size: 16px; line-height: 1.65; }
  .art h2 { font-size: 24px; margin-top: 40px; scroll-margin-top: 80px; }
  .alert { padding: 20px; }
  .alert__list li { padding-left: 24px; }
  .alert__list li::before { left: 4px; }
  .cmp { grid-template-columns: 1fr; gap: 12px; }
  .cmp__col { padding: 20px; }
  .cmp__k { font-size: 20px; }
  .pairs__row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 16px; }
  .pairs__k { font-size: 18px; }
  .pairs__v { font-size: 15.5px; }
  .atable table { font-size: 14px; }
  .atable th, .atable td { padding: 10px 10px; hyphens: auto; }
  .tldr { padding: 22px 20px; }
  .tldr__t { font-size: 20px; }
  .abody-sec { padding-top: 32px; }

  .sitch__a { font-size: 14px; padding: 9px 15px; }
  .docard { padding: 18px; gap: 14px; grid-template-columns: 52px minmax(0, 1fr); }
  .docard__ava { width: 52px; height: 52px; }
  .docard__name { font-size: 18px; }
  .grp { padding-block: 32px; }
  .grp__t { font-size: 23px; }
  .chead { padding-block: 24px 32px; }
  .chead__t { font-size: 30px; line-height: 1.22; }
  .chead__lead { font-size: 16.5px; }
  .chead__img { border-radius: var(--r-md); }
}
