/* ===================================================================
   Медик-Сервис — оформление статей блога
   Палитра синхронизирована с карточками товаров (схема .ms2):
   акцент #2679b6, заголовки #17557f, подложка #f2f7fb
   Все правила скоплены на .post_page — списки записей не затрагиваются.
   =================================================================== */

/* ---------- 1. Базовая типографика: работает на ВСЕХ старых статьях ---------- */

.post_page h1 {
  font-size: 2.15rem;
  line-height: 1.25;
  font-weight: 800;
  color: #17557f;
  margin-bottom: .6rem;
}

.post_page .text {
  max-width: 780px;          /* было на всю ширину — строки по 150 знаков */
  margin-right: 0;
  font-size: 17px;
  line-height: 1.72;
  color: #1c1c1c;
}

.post_page .text p { margin: 0 0 1.05rem; }

/* h2 c фирменной полосой слева */
.post_page .text h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: #17557f;
  margin: 2.4rem 0 1rem;
  padding-left: 14px;
  border-left: 4px solid #2679b6;
}

.post_page .text h3 {
  font-size: 1.18rem;        /* перебивает .post h3 { font-size: 2em } из базовой темы */
  line-height: 1.35;
  font-weight: 700;
  color: #17557f;
  margin: 1.8rem 0 .7rem;
}

.post_page .text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #17557f;
  margin: 1.5rem 0 .6rem;
}

.post_page .text ul,
.post_page .text ol { padding-left: 1.4rem; margin: 0 0 1.05rem; }
.post_page .text li { margin-bottom: .45rem; }

.post_page .text a { color: #17557f; text-decoration: underline; }
.post_page .text a:hover { color: #2679b6; }

.post_page .text img { border-radius: 12px; margin: 1.2rem 0; }

.post_page .text blockquote {
  margin: 1.5rem 0;
  padding: 14px 20px;
  background: #f2f7fb;
  border-left: 4px solid #2679b6;
  border-radius: 0 8px 8px 0;
  color: #333;
}

.post_page .text code {
  background: #f2f7fb;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .93em;
}

/* Таблицы — приводим к виду таблиц в карточках товаров */
.post_page .text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.post_page .text th {
  background: #2679b6;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.post_page .text td {
  padding: 9px 14px;
  border-bottom: 1px solid #dfe7ee;
  vertical-align: top;
}
.post_page .text tr:nth-child(even) td { background: #f2f7fb; }

.post_page .credentials { color: #6b7c8a; font-size: .92rem; }

/* ---------- 2. Блоки для новых статей ---------- */

/* Лид-врезка в начале материала */
.ms2-intro {
  background: #f2f7fb;
  border-left: 6px solid #2679b6;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 0 0 2rem;
}
.ms2-intro b { color: #17557f; font-size: 1.15rem; display: block; margin-bottom: 8px; }
.ms2-intro p:last-child { margin-bottom: 0; }

/* Акцентная плашка-заметка */
.ms2-note {
  background: #2679b6;
  color: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 1.5rem 0;
  font-size: .97rem;
}
.ms2-note b { color: #fff; }
.ms2-note a { color: #fff; text-decoration: underline; }

/* Предупреждение / ограничение метода */
.ms2-warn {
  background: #fff8e6;
  border-left: 4px solid #e0a800;
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 1.5rem 0;
  font-size: .97rem;
}
.ms2-warn b { color: #8a6100; }

/* Карточки-плитки */
.ms2-cards { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.5rem 0; }
.ms2-card { flex: 1; min-width: 210px; background: #eaf3fa; border-radius: 10px; padding: 16px; }
.ms2-card b { display: block; color: #17557f; margin-bottom: 8px; }
.ms2-card span { font-size: .93rem; color: #333; }

/* Блок «читайте также» */
.ms2-related {
  background: #f7fafc;
  border: 1px solid #dfe7ee;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 2rem 0;
}
.ms2-related b { display: block; color: #17557f; margin-bottom: 10px; }
.ms2-related ul { margin: 0; }

/* Финальный призыв с телефоном */
.ms2-cta {
  background: #f2f7fb;
  border: 2px solid #2679b6;
  border-radius: 10px;
  padding: 22px 26px;
  margin-top: 2.5rem;
}
.ms2-cta b { color: #17557f; font-size: 1.05rem; }
.ms2-cta a { color: #17557f; font-weight: 700; white-space: nowrap; }
.ms2-cta p:last-child { margin-bottom: 0; }

/* ---------- 3. Мобильные ---------- */

@media (max-width: 760px) {
  .post_page h1 { font-size: 1.6rem; }
  .post_page .text { font-size: 16px; }
  .post_page .text h2 { font-size: 1.28rem; margin-top: 1.9rem; }
  .post_page .text h3 { font-size: 1.08rem; }

  /* таблицы не ломают вёрстку, а скроллятся */
  .post_page .text table { display: block; overflow-x: auto; white-space: nowrap; }

  .ms2-intro, .ms2-cta { padding: 16px 18px; }
  .ms2-card { min-width: 100%; }
}
