:root {
  --green: #00a885;
  --green-dark: #087764;
  --green-soft: #eaf8f4;
  --orange: #f5a623;
  --text: #263431;
  --muted: #65736f;
  --line: #e4ece9;
  --bg: #f8fbfa;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(25, 68, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(16, 52, 45, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav span {
  color: #52635f;
  font-size: 15px;
  font-weight: 700;
}

.search span {
  display: inline-flex;
  width: 168px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  background: #f5faf8;
  color: var(--muted);
}

.page {
  display: grid;
  grid-template-columns: 82px minmax(0, 720px) 300px;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.article {
  min-width: 0;
  background: #ffffff;
  border-radius: 8px;
  padding: 28px 36px 38px;
  box-shadow: var(--shadow);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs strong {
  color: var(--muted);
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.22;
  color: #153c36;
}

h1 {
  margin: 0 0 10px;
  font-size: 40px;
  letter-spacing: 0;
}

h2 {
  margin: 42px 0 14px;
  font-size: 28px;
}

h3 {
  margin: 30px 0 9px;
  font-size: 21px;
}

p {
  margin: 0 0 18px;
}

.updated {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.byline {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin: 18px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefe;
}

.byline p {
  margin: 0;
  color: #52635f;
  font-size: 14px;
  line-height: 1.45;
}

.avatar {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
}

.toc span {
  display: inline-flex;
  border: 1px solid #cbeae2;
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--green-soft);
  font-size: 14px;
  font-weight: 700;
}

.read-more {
  display: block;
  padding: 14px 16px;
  margin: 18px 0 26px;
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  background: #f3fbf8;
  color: #234d46;
  font-weight: 700;
}

.read-more span {
  color: var(--orange);
}

.hero-figure {
  margin: 26px 0 32px;
}

.medical-art {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef9f5;
}

.medical-art svg {
  display: block;
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  margin: 0 0 22px;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  margin-bottom: 10px;
  padding: 13px 16px 13px 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 15px;
  top: 13px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.tip-box {
  padding: 16px 18px;
  margin: 22px 0 0;
  border-radius: 8px;
  background: #fff8ec;
  border: 1px solid #ffe1ab;
}

.checklist {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.checklist li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 31px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-soft);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(45deg);
}

.history,
.bibliography,
.related,
.final-cta {
  padding-top: 8px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.history ul,
.bibliography ul {
  padding-left: 20px;
}

.related__grid {
  display: grid;
  gap: 12px;
}

.related__grid span {
  display: block;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfefe;
  font-weight: 800;
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  margin-top: 28px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(245, 166, 35, 0.26);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.cta-button:hover {
  background: #e99716;
  text-decoration: none;
}

.share {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.share__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--green-dark);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.share > span:first-child {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 1px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.ad-card,
.doctor-card,
.side-list {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ad-card {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed #d8e7e3;
  color: #9aa9a5;
  font-size: 13px;
}

.doctor-card,
.side-list {
  padding: 20px;
}

.doctor-card__photo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
}

.doctor-card h2,
.side-list h2 {
  margin: 16px 0 8px;
  font-size: 21px;
}

.doctor-card p {
  color: var(--muted);
  font-size: 15px;
}

.side-list__item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.play {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #fff3dd;
  color: var(--orange);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer div {
  max-width: 1160px;
  margin: 0 auto;
  padding: 26px 22px;
  color: var(--muted);
}

.footer p {
  margin: 4px 0 0;
}

@media (max-width: 1080px) {
  .page {
    grid-template-columns: minmax(0, 720px) 280px;
  }

  .share {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar__inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .search {
    flex: 0 0 100%;
    width: 100%;
  }

  .search span {
    width: 100%;
  }

  .page {
    display: block;
    padding: 18px 14px 42px;
  }

  .article {
    padding: 22px 18px 30px;
  }

  .sidebar {
    margin-top: 20px;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 24px;
  }

}

@media (max-width: 520px) {
  body {
    line-height: 1.58;
  }

  .topbar__inner {
    padding: 12px 14px;
  }

  .brand {
    font-size: 21px;
  }

  .article {
    border-radius: 0;
    box-shadow: none;
  }

  h1 {
    font-size: 28px;
  }

  .byline {
    align-items: flex-start;
  }

  .toc {
    display: grid;
  }

  .toc span {
    width: 100%;
  }

  .steps li {
    padding-right: 12px;
  }

  .cta-button {
    width: 100%;
    padding-inline: 14px;
    font-size: 15px;
  }
}
