/* Bác sĩ Trĩ — restored stylesheet */

:root {
  --green: #397438;
  --green-dark: #2b5a2a;
  --orange: #e9673a;
  --ink: #222;
  --muted: #777;
  --line: #e1e6e6;
  --tint: #f6f7f6;
  --wrap: 1100px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3 { margin: 0; line-height: 1.35; }
p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }

:where(a, button):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.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;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }

/* ---------- header ---------- */

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { flex: none; }
.brand img { width: 88px; height: auto; }

.hotline { font-size: 20px; font-weight: 700; color: var(--orange); }
.hotline a { color: inherit; }

.header-banner { margin-left: auto; max-width: 280px; }

.nav-bar { background: var(--green); }
.nav-bar__inner { display: flex; align-items: center; }

.primary-nav ul { display: flex; flex-wrap: wrap; }
.primary-nav a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.primary-nav a:hover { background: var(--green-dark); color: #fff; text-decoration: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 40px;
  margin: 4px 0;
  padding: 0;
  background: var(--green-dark);
  border: 0; border-radius: 4px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute; left: 50%;
  width: 20px; height: 2px; margin-left: -10px;
  background: #fff; content: "";
}
.nav-toggle__bars { top: 19px; }
.nav-toggle__bars::before { top: -6px; left: 0; margin-left: 0; }
.nav-toggle__bars::after { top: 6px; left: 0; margin-left: 0; }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: start;
  padding-top: 25px;
  padding-bottom: 35px;
}

.page-intro { margin-bottom: 25px; }
.page-intro h1 { font-size: 26px; color: var(--green); margin-bottom: 8px; }
.page-intro p { color: var(--muted); }

/* ---------- block ---------- */

.block { margin-bottom: 30px; }
.block__head {
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--green);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--green);
}
.block__body { padding: 0; }

/* ---------- cards ---------- */

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards > * { min-width: 0; }

.card { display: flex; flex-direction: column; }
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
}
.card__body { padding-top: 10px; }
.card h3 { font-size: 15px; font-weight: 700; }
.card--lead { grid-column: span 2; }
.card--lead h3 { font-size: 19px; }
.card--noimg .card__body {
  padding: 18px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 3px;
  height: 100%;
}

.meta { margin-top: 5px; font-size: 13px; color: var(--muted); }

/* ---------- sidebar ---------- */

.expert { text-align: center; }
.expert img { width: 100%; max-width: 190px; margin: 0 auto 10px; border-radius: 3px; }
.expert__name { font-weight: 700; }
.expert__role { font-size: 13px; color: var(--muted); }

.mini li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mini li:last-child { border-bottom: 0; }
.mini img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.mini h3 { font-size: 14px; font-weight: 700; }

.cats li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14px;
}
.cats li:last-child { border-bottom: 0; }
.cats span { color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  padding: 32px 0 18px;
  background: var(--green);
  color: #dbe6da;
  font-size: 14px;
}
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer a:hover { color: #ffd9c8; }
.site-footer h2 {
  margin-bottom: 10px;
  font-size: 15px;
  text-transform: uppercase;
  color: #fff;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__grid > * { min-width: 0; }
.footer__logo { background: #fff; padding: 6px 10px; border-radius: 4px; margin-bottom: 10px; max-width: 220px; }
.footer__col li { padding: 3px 0; }

.copyright {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 14px 15px 0;
  border-top: 1px solid rgba(255, 255, 255, .2);
  text-align: center;
  font-size: 13px;
}

/* ---------- scroll top ---------- */

.scroll-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  width: 42px; height: 42px;
  padding: 0;
  background: var(--green);
  border: 0; border-radius: 50%;
  cursor: pointer;
}
.scroll-top svg { width: 25px; height: 25px; margin: 0 auto; fill: #fff; }

/* ---------- responsive ---------- */

@media (max-width: 991px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .card--lead { grid-column: span 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav li + li { border-top: 1px solid rgba(255, 255, 255, .2); }

  .site-header__inner { justify-content: center; text-align: center; }
  .header-banner { margin-left: 0; }

  .cards--3 { grid-template-columns: minmax(0, 1fr); }
  .card--lead { grid-column: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
