/* Типографику основного текста наследуем от шаблона sh_popov.
   Блок «Мнение эксперта» не стилизуем: он оставлен в исходном виде. */
/* uvildy.ru | Статья «Лечение опорно-двигательного аппарата»
   Активный шаблон: /bitrix/templates/sh_popov/
   Все правила ограничены .ux-oda-article. */

.ux-oda-article {
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: break-word;
}
.ux-oda-article *,
.ux-oda-article *::before,
.ux-oda-article *::after { box-sizing: border-box; }
.ux-oda-article > p { margin: 0 0 16px; }
.ux-oda-article > h2,
.ux-oda-article .oda-summary-title {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 48px;
  letter-spacing: .01em;
  color: #073f51;
  margin: 42px 0 30px;
  padding: 0;
}
.ux-oda-article h3.oda-box-heading {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #073f51;
  margin: 0 0 10px;
  padding: 0;
}
.ux-oda-article a { color: #007da1; text-decoration: none; }
.ux-oda-article a:hover,
.ux-oda-article a:focus { color: #005d7a; text-decoration: underline; }
.ux-oda-article ul { margin: 10px 0 17px; padding-left: 22px; }
.ux-oda-article li { margin-bottom: 6px; }
.ux-oda-article small { font-size: smaller; }

/* Карточки заболеваний */
.ux-oda-article .oda-disease-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin: 18px 0 30px;
}
.ux-oda-article .oda-disease-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 19px 20px;
  background: #f3f9fb;
  border: 1px solid #d9e9ee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(8, 64, 83, .035);
}
.ux-oda-article .oda-disease-card p {
  font-size: inherit;
  line-height: inherit;
  margin: 0 0 12px;
}
.ux-oda-article .oda-disease-card > a {
  display: inline-block;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #007da1;
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.ux-oda-article .oda-disease-card > a:hover,
.ux-oda-article .oda-disease-card > a:focus {
  background: transparent;
  border: 0;
  color: #005d7a;
  text-decoration: underline;
}
/* Заголовки карточек: фирменный Oswald и темно-бирюзовый цвет */
.ux-oda-article .oda-disease-card h3.oda-disease-title {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  color: #053c4f;
  margin: 0 0 14px;
  padding: 0;
}
.ux-oda-article .oda-disease-card h3.oda-disease-title a,
.ux-oda-article .oda-disease-card h3.oda-disease-title a:visited {
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.ux-oda-article .oda-disease-card h3.oda-disease-title a:hover,
.ux-oda-article .oda-disease-card h3.oda-disease-title a:focus {
  color: #00a3d2;
  text-decoration: none;
}

/* Показания и противопоказания */
.ux-oda-article .oda-indications {
  overflow: hidden;
  margin: 16px 0 30px;
  border: 1px solid #d8e8ed;
  border-radius: 8px;
  background: #fff;
}
.ux-oda-article .oda-indications-head,
.ux-oda-article .oda-indications-body { padding: 22px 24px; }
.ux-oda-article .oda-indications-head {
  background: #f0f8fa;
  border-bottom: 1px solid #d8e8ed;
}
.ux-oda-article .oda-indications ul { margin-bottom: 0; }
.ux-oda-article .oda-indications-body p { margin: 15px 0 0; color: #536b76; }

/* Таблица методик */
.ux-oda-article .oda-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 30px;
  border: 1px solid #d5e6eb;
  border-radius: 8px;
}
.ux-oda-article .oda-table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: inherit;
  line-height: inherit;
}
.ux-oda-article .oda-table-head { background: #e6f3f7; }
.ux-oda-article .oda-table-th,
.ux-oda-article .oda-table-cell {
  padding: 15px 18px;
  border: 0;
  border-bottom: 1px solid #deebef;
  text-align: left;
  vertical-align: top;
}
.ux-oda-article .oda-table-th {
  color: #073f51;
  font-size: inherit;
  font-weight: 700;
}
.ux-oda-article .oda-table th:first-child,
.ux-oda-article .oda-table td:first-child { width: 32%; font-weight: 600; }
.ux-oda-article .oda-table tbody tr:nth-child(even) { background: #f7fbfc; }
.ux-oda-article .oda-table tbody tr:last-child td { border-bottom: 0; }

/* Четыре шага лечения: обычный маркированный список, как в ТЗ (стр. 5). */
.ux-oda-article ul.oda-steps {
  display: block;
  list-style: disc outside;
  margin: 14px 0 30px;
  padding-left: 34px;
}
.ux-oda-article .oda-steps > li.oda-step {
  display: list-item;
  list-style: disc outside;
  padding: 0;
  margin: 0 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.ux-oda-article .oda-step-title {
  display: block;
  font: inherit;
  font-weight: 700;
  color: inherit;
  margin: 0 0 5px;
}
.ux-oda-article .oda-step-description {
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

@media (max-width: 991px) {
  .ux-oda-article .oda-disease-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ux-oda-article > h2 { margin: 34px 0 24px; }
  .ux-oda-article .oda-disease-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .ux-oda-article .oda-disease-card { padding: 17px; }
  .ux-oda-article .oda-indications-head,
  .ux-oda-article .oda-indications-body { padding: 18px; }

}

/* Блок «В программу включено» из ТЗ, стр. 5 */
.ux-oda-article .oda-program-included {
  margin: 18px 0 26px;
  background: #eff8fb;
  padding: 8px;
}
.ux-oda-article .oda-program-included-heading {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  color: #073f51;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 10px;
  padding: 0 4px;
}
.ux-oda-article .oda-program-included-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border-bottom: 4px solid #dceef3;
}
.ux-oda-article .oda-program-included-item + .oda-program-included-item {
  margin-top: 6px;
}
.ux-oda-article .oda-program-included-check {
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid #14a5c4;
  border-radius: 50%;
  color: #078cae;
  font-size: 23px;
  font-weight: bold;
  line-height: 1;
}
.ux-oda-article .oda-program-included-item > div { min-width: 0; }
.ux-oda-article .oda-program-included-item h4 {
  font-family: 'Oswald', 'Roboto', Arial, sans-serif;
  color: #073f51;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 10px;
}
.ux-oda-article .oda-program-included-item p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
@media (max-width: 600px) {
  .ux-oda-article .oda-program-included-heading { font-size: 23px; }
  .ux-oda-article .oda-program-included-item { gap: 12px; padding: 14px 12px; }
  .ux-oda-article .oda-program-included-item h4 { font-size: 20px; }
}

/* Полезные статьи: компактный дизайн по образцу на стр. 7 ТЗ.
   Только этот блок, без изменений типографики статьи и общего сайта. */
.oda-related {
  margin: 40px 0 50px;
  padding: 24px 28px 28px;
  background: #edf8fb;
}
.oda-related > h2 {
  margin: 0 0 22px;
}
.oda-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.oda-related-item {
  min-width: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.oda-related-image {
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
}
.oda-related-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.oda-related .oda-related-name {
  margin: 0 0 9px;
  padding: 0;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  text-align: left;
}
.oda-related .oda-related-name a {
  color: #053c4f;
  text-decoration: none;
}
.oda-related .oda-related-name a:hover,
.oda-related .oda-related-name a:focus {
  color: #007da1;
  text-decoration: underline;
}
.oda-related-date {
  margin: 0 0 12px;
  color: #8c9da4;
  font-size: 13px;
  line-height: 1.4;
}
.oda-related-excerpt {
  margin: 0;
  color: #243c46;
  font-size: inherit;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
@media (max-width: 850px) {
  .oda-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .oda-related { margin: 30px 0; padding: 18px 16px; }
  .oda-related-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
