/*
 * Свой лекарь. Верстка повторяет прежний сайт: зелёные заголовки и ссылки,
 * пунктирные разделители, левое меню разделов, шапка-слайдер 1300x460.
 */

:root {
  --green: #8cc63f;
  --green-dark: #6d9f2a;
  --ink: #333;
  --muted: #7a7a7a;
  --line: #d8d8d8;
  --page: #f2f2f2;
  --shell: #fff;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shell-width: 1300px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.65 var(--sans);
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

/* ---- шапка ---- */
.topbar {
  background: #fff;
  padding: 14px 20px;
  text-align: center;
}

.topbar__logo {
  color: var(--green);
  font: bold 18px/1 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar__logo:hover { text-decoration: none; }

/* ---- слайдер ---- */
/* Высотой, а не пропорцией: с `aspect-ratio` браузер, упираясь в max-height,
   пересчитывает и ширину -- шапка переставала быть во всю ширину и прижималась
   влево, разъезжаясь с отцентрованным содержимым. Кадр 1300x460 всё равно
   кадрируется по object-fit. */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: clamp(160px, 25vw, 460px);
  background: #eee;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__slide.is-current { opacity: 1; }

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(60, 60, 60, 0.55);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.hero__arrow:hover { background: rgba(40, 40, 40, 0.75); }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  gap: 9px;
  justify-content: center;
}

.hero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.hero__dot.is-current { background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15); }

/* ---- каркас страницы ---- */
.shell {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 16px 26px 40px;
  background: var(--shell);
}

.today { color: var(--muted); font-size: 12px; margin: 0 0 12px; }

.crumbs {
  border: 1px solid #ececec;
  background: #fafafa;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 20px;
}

.crumbs__sep { color: #bbb; margin: 0 6px; }
.crumbs__current { color: var(--muted); }

.page {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ---- левое меню ---- */
.sidebar__title {
  font: bold 16px/1.3 var(--sans);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--line);
}

.menu { list-style: none; margin: 0 0 28px; padding: 0; }

.menu a {
  display: block;
  padding: 7px 8px;
  color: #3d3d3d;
  font-size: 13px;
}

.menu a:hover { color: var(--green); text-decoration: none; }
.menu .is-active a { background: #f0f0f0; color: #222; }

.search input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: 13px var(--sans);
}

/* ---- содержимое ---- */
.entry__title {
  color: var(--green);
  font: bold 26px/1.3 var(--serif);
  margin: 0 0 14px;
}

.entry__title--article { font-size: 32px; margin-bottom: 22px; }

.entry__meta { color: var(--muted); font-size: 12px; margin: -6px 0 18px; }

.entry__body { text-align: justify; }
.entry__body p { margin: 0 0 14px; }
.entry__body ul, .entry__body ol { margin: 0 0 14px; padding-left: 22px; }
.entry__body img { max-width: 100%; height: auto; }

/* Подзаголовки внутри материала -- как на прежнем сайте: тёмный жирный
   рубленый шрифт и пунктир под строкой. */
.entry__body h2, .entry__body h3, .entry__body h4 {
  color: #333;
  font: bold 17px/1.4 var(--sans);
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--line);
  text-align: left;
}

.entry__body h3 { font-size: 15px; }

.block-title {
  font: bold 16px/1.3 var(--sans);
  margin: 34px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--line);
}

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px dotted var(--line); }

.link-list a {
  display: block;
  padding: 11px 0;
  color: var(--green);
  font: bold 17px/1.4 var(--sans);
}

.link-list--compact li { border-bottom: 0; }
.link-list--compact a { padding: 5px 0; font: normal 13px/1.5 var(--sans); }

.empty { color: var(--muted); padding: 14px 0; }

/* ---- подвал ---- */
.footer {
  background: var(--page);
  border-top: 1px solid #e6e6e6;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  padding: 18px 20px 26px;
}

.footer p { margin: 2px 0; }

/* ---- узкий экран ---- */
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; gap: 26px; }
  .shell { padding: 14px 16px 30px; }
  .entry__title--article { font-size: 26px; }
  .hero__arrow { width: 34px; height: 34px; font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

/* ---- сводка по трафику ---- */
.stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 10px;
}

.stats th,
.stats td {
  text-align: left;
  padding: 7px 10px 7px 0;
  border-bottom: 1px dotted var(--line);
  vertical-align: top;
  word-break: break-word;
}

.stats th { font-weight: bold; white-space: nowrap; }
.stats__muted { color: var(--muted); }

/* Evidence-based editorial section, within the site's original visual language. */
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; background: #fff; padding: 12px 18px; color: #345b17; }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible { outline: 3px solid #426b25; outline-offset: 4px; }
.health-hub a, .health-article a, .health-related a, .health-bridge a, .health-home a, .archive-notice a { color: #426b25; }
.health-body a, .health-note a, .health-review a, .archive-notice a { text-decoration: underline; text-underline-offset: 3px; }
.health-eyebrow { color: #557142; font-size: 12px; font-weight: bold; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 12px; }
.health-lead { font: 22px/1.45 var(--serif); margin: 0 0 24px; }
.health-meta, .health-review { color: #60665c; font-size: 13px; }
.health-review { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.health-article .entry__title, .health-hub .entry__title { color: #456725; }
.health-article .entry__body, .health-hub .entry__body { font-size: 17px; line-height: 1.8; text-align: left; }
.health-body { max-width: 780px; overflow-wrap: break-word; }
.health-body h2 { font-size: 22px; margin-top: 36px; }
.health-body table { width: 100%; border-collapse: collapse; font: 14px/1.6 var(--sans); }
.health-body th, .health-body td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.health-body th { background: #f3f6ee; }
.health-toc, .health-note, .health-bridge, .health-home { padding: 22px 26px; margin: 26px 0; background: #f4f7f0; border-left: 3px solid #82a55f; }
.health-toc p { font-weight: bold; margin-top: 0; }
.health-toc ul, .health-bridge ul, .health-home ul { margin-bottom: 0; padding-left: 20px; }
.health-toc li, .health-bridge li { padding: 3px 0; }
.health-bridge h2, .health-home h2 { margin-top: 0; font: bold 20px/1.4 var(--sans); }
.health-topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.health-topics a { padding: 8px 14px; border: 1px solid #cad8bd; border-radius: 3px; background: #fff; }
.health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.health-card { padding: 22px; border: 1px solid #dce4d5; background: #fff; }
.health-card h3 { font: bold 19px/1.4 var(--serif); margin: 0 0 12px; }
.health-card p { margin: 0; color: #62675e; font-size: 14px; }
.health-group .block-title { font-size: 22px; }
.health-sources { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 16px; overflow-wrap: anywhere; }
.health-sources li { margin: 10px 0; }
.health-sources p { color: #666; font-size: 13px; }
.health-related .link-list a { font-size: 16px; padding: 8px 0; }
.archive-notice { color: #676252; background: #faf8f0; padding: 12px 16px; font: 13px/1.6 var(--sans); }
.health-article [id], .health-hub [id] { scroll-margin-top: 20px; }
@media (max-width: 900px) {
  .page > .content { order: -1; min-width: 0; }
  .health-grid { grid-template-columns: 1fr; }
  .health-toc, .health-note, .health-bridge, .health-home { padding: 18px; }
  .health-article .entry__body { font-size: 16px; }
  .health-body th, .health-body td { padding: 7px; overflow-wrap: anywhere; }
}
