/* ===========================================================
   BMCN SKIN — giao diện
   Muốn đổi màu chủ đạo: sửa --xanh và --xanh-dam ở ngay dưới.
   =========================================================== */

:root {
  --xanh:      #4a6a3f;   /* xanh ô liu trên bao bì */
  --xanh-dam:  #334b2b;
  --xanh-nhat: #eef1e9;
  --kem:       #ffffff;   /* nền các mục xen kẽ — tông trắng */
  --kem-dam:   #f6f6f5;   /* nền khung ảnh sản phẩm */
  --muc:       #26281f;
  --muc-nhat:  #6b6e63;
  --vien:      #e6e6e3;
  --trang:     #ffffff;

  --rong: 1200px;
  --bo-goc: 2px;
  --bong: 0 1px 3px rgba(38, 40, 31, .06), 0 8px 24px rgba(38, 40, 31, .05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--trang);
  color: var(--muc);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
a { color: var(--xanh); text-decoration: none; }
a:hover { color: var(--xanh-dam); }
img { max-width: 100%; display: block; }

.khung { width: 100%; max-width: var(--rong); margin: 0 auto; padding: 0 20px; }

.nhan {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--xanh);
  font-weight: 600;
  margin-bottom: .9rem;
}

.gach {
  width: 44px; height: 1.5px;
  background: var(--xanh);
  border: 0; margin: 0 0 1.4rem;
}
.gach.giua { margin-left: auto; margin-right: auto; }

[hidden] { display: none !important; }

/* ---------- đầu trang: hàng trên (mạng xã hội | logo | tìm kiếm), hàng dưới (menu) ---------- */
.dau-trang {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: 0 2px 10px rgba(38, 40, 31, .06);
}
.dau-hang {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; min-height: 84px; padding-top: 8px; padding-bottom: 8px;
}
.dau-trai { display: flex; align-items: center; gap: 12px; }
.dau-phai { display: flex; justify-content: flex-end; align-items: center; }
.dau-hang .logo { justify-self: center; }

.mxh { display: flex; align-items: center; gap: 6px; }
.mxh-nho {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--muc); border-radius: 50%;
  transition: color .15s ease, background .15s ease;
}
.mxh-nho svg { width: 19px; height: 19px; }
.mxh-nho.zalo svg { width: 28px; height: 28px; }
.mxh-nho:hover { color: var(--xanh); background: var(--xanh-nhat); }

.tim {
  display: flex; align-items: center; width: 100%; max-width: 260px;
  border: 1px solid var(--vien); border-radius: 100px; background: var(--trang);
  padding: 0 4px 0 16px;
}
.tim:focus-within { border-color: var(--xanh); }
.tim input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: .88rem; color: var(--muc); padding: 9px 0;
}
.tim button, .nut-tim {
  border: 0; background: none; cursor: pointer; color: var(--muc);
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
}
.tim button svg, .nut-tim svg { width: 19px; height: 19px; }
.nut-tim { display: none; }

.logo { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; min-width: 0; }
.logo .ten {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: .14em; color: var(--xanh-dam);
}
.logo .phu {
  font-size: .64rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muc-nhat);
}
/* logo dạng ảnh (giao-dien/logo/logo-tron.png) — đổi cỡ logo ở dòng height */
.dau-trang .logo img {
  height: 68px; width: auto; max-width: 100%;
  object-fit: contain;
}

/* menu hàng dưới: chữ in hoa, căn giữa */
.menu { position: relative; border-top: 1px solid var(--vien); }
.menu-trong { display: flex; justify-content: center; align-items: center; }
.menu-trong .tim { display: none; }
.menu-ds { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 30px; }
.mi-dau { display: flex; align-items: center; gap: 5px; }
.mi > a, .mi-dau > a {
  display: block; white-space: nowrap;
  color: var(--muc); font-size: .86rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 13px 0 11px; border-bottom: 2px solid transparent;
}
.mi > a:hover, .mi-dau > a:hover, .mi a.dang-xem { color: var(--xanh); border-bottom-color: var(--xanh); }
.mi-mo {
  display: grid; place-items: center; width: 18px; height: 18px; padding: 0;
  border: 0; background: none; color: var(--muc-nhat); cursor: pointer;
  transition: transform .2s ease, color .2s ease;
}
.mi-mo svg { width: 12px; height: 12px; }
.co-con.mo .mi-mo { transform: rotate(180deg); color: var(--xanh); }

/* bảng menu con */
.menu-con ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--vien); }
.menu-con li + li a { border-top: 1px solid #efefec; }
.menu-con li a {
  display: block; padding: 9px 12px 9px 16px;
  color: var(--muc); font-size: .92rem; line-height: 1.4;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.menu-con li a:hover { color: var(--xanh-dam); background: var(--xanh-nhat); box-shadow: inset 2px 0 0 var(--xanh); }
.mc-tieu-de {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muc); padding: 0 0 12px; line-height: 1.4;
}
.mc-tieu-de a { color: inherit; }
.mc-tieu-de a:hover { color: var(--xanh); }
.mc-chan { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--vien); text-align: right; }
.mc-chan a { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--xanh); }
.mc-chan a:hover { color: var(--xanh-dam); }

@media (min-width: 1024px) {
  .mi { position: relative; }
  .mi.co-mega { position: static; }   /* bảng lớn căn theo cả thanh menu */
  .co-con:hover .mi-mo { transform: rotate(180deg); color: var(--xanh); }
  .co-con:hover > .mi-dau > a { color: var(--xanh); border-bottom-color: var(--xanh); }
  .menu-con {
    position: absolute; top: 100%; left: 50%; z-index: 70;
    min-width: 280px; padding: 26px 30px 22px;
    background: #fff; border: 1px solid var(--vien);
    box-shadow: 0 18px 40px rgba(38, 40, 31, .12);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .menu-con::before {   /* mũi nhọn chỉ lên mục menu */
    content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px;
    background: #fff; border-left: 1px solid var(--vien); border-top: 1px solid var(--vien);
    transform: translateX(-50%) rotate(45deg);
  }
  .menu-con:not(.mega) { min-width: 300px; }
  .menu-con:not(.mega) li a { white-space: nowrap; }
  .menu-con.mega { width: min(940px, calc(100vw - 40px)); }
  .menu-con.mega::before { display: none; }
  .mc-trong { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
  .co-con:hover > .menu-con, .co-con:focus-within > .menu-con, .co-con.mo > .menu-con {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
}

.nut-menu {
  display: none; background: none; border: 1px solid var(--vien);
  border-radius: var(--bo-goc); padding: 8px 10px; cursor: pointer;
  color: var(--muc); flex: none;
}

/* ---------- nút ---------- */
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--bo-goc);
  font-size: .88rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; border: 1.5px solid var(--xanh);
  background: var(--xanh); color: #fff; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.nut:hover { background: var(--xanh-dam); border-color: var(--xanh-dam); color: #fff; }
.nut.vien { background: transparent; color: var(--xanh); }
.nut.vien:hover { background: var(--xanh); color: #fff; }

/* ---------- hero ---------- */
.hero { background: var(--kem); border-bottom: 1px solid var(--vien); }
.hero .khung {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero p.dan { font-size: 1.05rem; color: var(--muc-nhat); max-width: 46ch; }
.hero-nut { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-anh {
  background: var(--trang); border: 1px solid var(--vien);
  padding: 24px; box-shadow: var(--bong);
}

/* khẩu hiệu nổi bật (cau-hinh.json → khau_hieu) */
.khau-hieu-noi {
  display: inline-block; margin: 0 0 1rem;
  padding: 7px 14px 7px 12px; border-left: 3px solid var(--xanh); background: var(--xanh-nhat);
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--xanh-dam); line-height: 1.4;
}
.gt-chu h1 + .khau-hieu-noi { margin-top: -.2em; }

/* khối "Giảm nám định hướng chuẩn y khoa" — 4 trụ cột (cau-hinh.json → dinh_huong) */
.dh-dau { max-width: 760px; }
.dh-khau-hieu {
  text-transform: uppercase; letter-spacing: .04em; color: var(--xanh-dam);
  font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.45rem); line-height: 1.25;
}
.dh-luoi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.dh-the {
  display: flex; flex-direction: column; background: var(--trang);
  border: 1px solid var(--vien); border-top: 3px solid var(--xanh); padding: 26px 22px 22px;
}
.dh-so { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; line-height: 1; color: var(--xanh); opacity: .45; margin-bottom: 12px; }
.dh-the h3 { font-size: 1.12rem; margin-bottom: .5em; color: var(--muc); }
.dh-the p { font-size: .9rem; color: var(--muc-nhat); margin-bottom: 16px; }
.dh-link { margin-top: auto; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 1023px) { .dh-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dh-luoi { grid-template-columns: 1fr; gap: 14px; } .khau-hieu-noi { font-size: .74rem; letter-spacing: .08em; } }

/* đầu trang chủ: dải ảnh lớn giới thiệu bác sĩ (cau-hinh.json → chuyen_gia) */
.banner { padding-top: 12px; }
.banner-hop {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: linear-gradient(100deg, #f7f5f2 0%, #ebe7e3 60%, #e4dfdb 100%);
  min-height: 560px; overflow: hidden;
}
.banner-chu { align-self: center; padding: 56px 24px 56px 64px; }
.banner-anh { position: relative; min-height: 420px; }
.banner-anh img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 12%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%);
}
.banner h1 { margin-bottom: .5em; }
.tieu-de-hoa { text-transform: uppercase; letter-spacing: .06em; }
.ket-qua-tim {
  margin-top: 14px; padding: 12px 16px; background: var(--xanh-nhat);
  border-left: 2.5px solid var(--xanh); font-size: .92rem;
}

.hero-cg .khung { grid-template-columns: 1.1fr .9fr; }
.cg-chuc-danh {
  font-size: .95rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--xanh-dam); margin-bottom: .35rem;
}
.hero-cg h1 { margin-bottom: .5em; }
.cg-thong-tin { list-style: none; margin: 0; padding: 0; max-width: 48ch; }
.cg-thong-tin li { padding: 14px 0; border-bottom: 1px solid var(--vien); font-size: 1.02rem; }
.cg-thong-tin li:first-child { padding-top: 0; }
.cg-nhan {
  display: block; font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--xanh); margin-bottom: 2px;
}
.cg-anh {
  justify-self: end; width: 100%; max-width: 440px;
  background: var(--trang); border: 1px solid var(--vien); padding: 14px; box-shadow: var(--bong);
}
.cg-anh img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }

/* ---------- lưới sản phẩm ---------- */
.muc { padding: 76px 0; }
.muc.nen-kem { background: var(--kem); border-top: 1px solid var(--vien); border-bottom: 1px solid var(--vien); }
.dau-muc { max-width: 60ch; margin-bottom: 42px; }
.dau-muc.giua { margin-left: auto; margin-right: auto; text-align: center; }

.luoi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.the {
  display: flex; flex-direction: column;
  background: var(--trang);
  border: 1px solid var(--vien);
  border-radius: var(--bo-goc);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.the:hover { border-color: var(--xanh); transform: translateY(-3px); box-shadow: var(--bong); }
.the .anh { background: var(--kem-dam); aspect-ratio: 1 / 1; overflow: hidden; }
.the .anh img { width: 100%; height: 100%; object-fit: cover; }
.the .than { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.the .nhom-nho {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--xanh); font-weight: 600; margin-bottom: 8px;
}
.the h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--muc); }
.the .dung-tich { font-size: .8rem; color: var(--muc-nhat); margin-bottom: 12px; }
.the .tom-tat {
  font-size: .86rem; color: var(--muc-nhat); margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.the .xem {
  margin-top: auto; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--xanh);
}

/* ---------- cơ chế 3 bước ---------- */
.buoc-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.buoc { background: var(--trang); border: 1px solid var(--vien); padding: 30px 26px; }
.buoc .so {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem; color: var(--xanh); opacity: .4; line-height: 1; margin-bottom: 12px;
}
.buoc h3 { margin-bottom: .4em; }
.buoc p { font-size: .9rem; color: var(--muc-nhat); margin: 0; }

/* ---------- trang chi tiết sản phẩm ---------- */
.duong-dan { font-size: .8rem; color: var(--muc-nhat); padding: 20px 0; }
.duong-dan a { color: var(--muc-nhat); }
.duong-dan a:hover { color: var(--xanh); }

.sp-dau { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-bottom: 64px; }
.sp-anh-lon {
  background: var(--kem); border: 1px solid var(--vien);
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
}
.sp-anh-lon img { width: 100%; height: 100%; object-fit: cover; }
.sp-thong-tin h1 { margin-bottom: .3em; }
.sp-thong-tin .dung-tich-lon {
  font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muc-nhat); margin-bottom: 20px;
}
.sp-thong-tin .mo-ta { font-size: 1.02rem; color: var(--muc-nhat); }
.sp-danh-cho {
  background: var(--xanh-nhat); border-left: 2.5px solid var(--xanh);
  padding: 16px 20px; font-size: .92rem; margin: 24px 0 28px;
}
.sp-danh-cho strong { color: var(--xanh-dam); }
.sp-nut { display: flex; gap: 14px; flex-wrap: wrap; }

.khoi { padding: 44px 0; border-top: 1px solid var(--vien); }
.khoi h2 { font-size: 1.4rem; }

.khoi-dau { border-top: 0; padding-top: 8px; }
.chu-lon { font-size: 1.04rem; max-width: 78ch; color: #3b3e34; }
.ghi-chu-nho { font-size: .82rem; color: var(--muc-nhat); margin-top: -8px; margin-bottom: 24px; }
.cong-bo { font-size: .85rem; color: var(--muc-nhat); margin-top: 18px; }

/* phân tích hoạt chất */
.hc-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 20px; }
.hc-the {
  border: 1px solid var(--vien); border-left: 2.5px solid var(--xanh);
  padding: 24px 26px; background: var(--trang);
  display: flex; flex-direction: column;
}
.hc-dau { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.hc-the h3 { font-size: 1.08rem; color: var(--xanh-dam); margin: 0 0 4px; }
.hc-nong-do {
  flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: var(--xanh-nhat); color: var(--xanh-dam);
  padding: 4px 9px; border-radius: 2px; white-space: nowrap;
}
.hc-vai-tro {
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  color: var(--xanh); margin-bottom: 12px;
}
.hc-co-che { font-size: .92rem; color: var(--muc-nhat); margin-bottom: 16px; }
.hc-them {
  margin-top: auto; font-size: .76rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}

/* hiệu quả */
.hai-cot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
ul.tick { list-style: none; margin: 0; padding: 0; }
ul.tick li {
  position: relative; padding-left: 28px; margin-bottom: 12px; font-size: .96rem;
}
ul.tick li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--xanh); font-weight: 700;
}

/* trang tra cứu thành phần */
.chip-hang { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip {
  font-size: .8rem; font-weight: 600; padding: 8px 16px;
  border: 1px solid var(--vien); border-radius: 100px; color: var(--muc);
}
.chip:hover { border-color: var(--xanh); color: var(--xanh); }

.tra-cuu { border-top: 1px solid var(--vien); }
.tra-muc {
  display: grid; grid-template-columns: 300px 1fr; gap: 36px;
  padding: 28px 0; border-bottom: 1px solid var(--vien);
  scroll-margin-top: 16px;
}
.tra-muc:target { background: var(--xanh-nhat); padding-left: 18px; padding-right: 18px; }
.tra-trai h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--xanh-dam); }
.tra-vai-tro { font-size: .84rem; font-weight: 600; color: var(--xanh); }
.tra-phai p { font-size: .95rem; color: var(--muc-nhat); margin-bottom: 12px; }
.tra-sp { font-size: .82rem; color: var(--muc-nhat); }
.tra-sp span { font-weight: 600; color: var(--muc); }

/* trang giới thiệu: chữ bên trái, logo đầy đủ bên phải */
.gt-dau { max-width: 760px; }
.gt-dau.co-logo {
  max-width: 1040px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 64px; align-items: center;
}
.gt-logo { background: var(--kem); border: 1px solid var(--vien); padding: 40px 36px; }
.gt-logo img { width: 100%; max-width: 240px; height: auto; margin: 0 auto; }

.hop-chu {
  background: var(--kem); border: 1px solid var(--vien);
  padding: 24px 26px; font-size: .95rem;
}
.hop-chu p:last-child { margin-bottom: 0; }

.thanh-phan-chu {
  font-size: .82rem; line-height: 1.9; color: var(--muc-nhat);
  word-break: break-word;
}

/* ===========================================================
   KIẾN THỨC VỀ NÁM — thẻ bài viết, trang bài viết, sơ đồ
   =========================================================== */
.the-bai-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bai-the {
  display: flex; flex-direction: column;
  background: var(--trang); color: var(--muc);
  border: 1px solid var(--vien); border-top: 3px solid var(--xanh);
  padding: 24px 24px 22px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bai-the:hover { color: var(--muc); border-color: var(--xanh); transform: translateY(-3px); box-shadow: var(--bong); }
.bai-so {
  font-family: "Playfair Display", Georgia, serif; font-size: 1.7rem; line-height: 1;
  color: var(--xanh); opacity: .45; margin-bottom: 12px;
}
.bai-nhom {
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--xanh); font-weight: 600; margin-bottom: 8px;
}
.bai-the h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 10px; }
.bai-the p { font-size: .9rem; color: var(--muc-nhat); margin-bottom: 18px; }
.bai-meta {
  margin-top: auto; display: flex; justify-content: space-between; gap: 12px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--xanh);
}
.bai-meta span:first-child { color: var(--muc-nhat); font-weight: 500; }
/* thẻ bài có ảnh bìa (kiểu tạp chí): ảnh trơn · tiêu đề đậm · ngày · gạch ngắn · tóm tắt */
.bai-the.co-anh { padding: 0; border: 0; background: transparent; }
.bai-the.co-anh:hover { transform: none; box-shadow: none; }
.bai-anh { overflow: hidden; background: var(--kem-dam); margin-bottom: 16px; }
.bai-anh img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease; }
.bai-the.co-anh:hover .bai-anh img { transform: scale(1.04); }
.bai-the.co-anh h3 {
  font-family: "Be Vietnam Pro", system-ui, sans-serif; font-weight: 700;
  font-size: 1.06rem; line-height: 1.45; letter-spacing: 0; margin: 0 0 6px; color: var(--muc);
  transition: color .15s ease;
}
.bai-the.co-anh:hover h3 { color: var(--xanh); }
.bai-ngay { font-size: .8rem; color: var(--muc-nhat); }
.bai-gach { width: 28px; height: 2px; border: 0; background: var(--muc); margin: 12px 0 12px; }
.bai-the.co-anh p {
  margin: 0; font-size: .9rem; line-height: 1.65; color: var(--muc-nhat);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 1024px) {
  .the-bai-luoi:has(> .co-anh) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
}
/* ảnh bìa đầu bài viết */
.bai-bia { margin: 26px 0 0; }
.bai-bia img { display: block; width: 100%; height: auto; border: 1px solid var(--vien); }
.xem-them { text-align: center; margin-top: 36px; }
.muc-kt + .muc-kt { padding-top: 0; }

.tac-gia { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tac-gia img {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  object-fit: cover; object-position: 50% 15%; border: 1px solid var(--vien);
}
.tg-ten { font-size: .9rem; font-weight: 600; color: var(--muc); line-height: 1.4; }
.tg-meta { font-size: .8rem; color: var(--muc-nhat); }

/* trang bài viết */
.bai-dau { padding-top: 8px; padding-bottom: 0; }
.bai-dau > * { max-width: 900px; }
.bai-dau::after { content: ""; display: block; max-width: none; border-bottom: 1px solid var(--vien); padding-top: 32px; }
.bai-dau h1 { font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.55rem); margin-bottom: .45em; }
.bai-sapo { font-size: 1.1rem; color: var(--muc-nhat); max-width: 64ch; margin: 0; }

.bai-bo-cuc {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 64px;
  padding-top: 36px; padding-bottom: 64px; align-items: start;
}
.bai-ben { order: 2; position: sticky; top: 150px; }
.muc-luc { border-left: 2px solid var(--vien); padding-left: 18px; }
.muc-luc summary {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--xanh); cursor: pointer; list-style: none; margin-bottom: 12px;
}
.muc-luc summary::-webkit-details-marker { display: none; }
.muc-luc ol { list-style: none; margin: 0; padding: 0; }
.muc-luc li { margin-bottom: 9px; font-size: .86rem; line-height: 1.45; }
.muc-luc a { color: var(--muc-nhat); }
.muc-luc a:hover { color: var(--xanh); }

.bai-than { max-width: 760px; font-size: 1.04rem; line-height: 1.8; color: #34372d; }
.bai-than > :first-child { margin-top: 0; }
.bai-than h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); margin: 2.1em 0 .7em; color: var(--muc); }
.bai-than h3 { font-size: 1.1rem; margin: 1.6em 0 .45em; color: var(--xanh-dam); }
.bai-than p { margin-bottom: 1.05em; }
.bai-than ul, .bai-than ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.bai-than li { margin-bottom: .45em; }
.bai-than li::marker { color: var(--xanh); }
.bai-than strong { color: var(--muc); }
.bai-than a {
  text-decoration: underline; text-decoration-color: rgba(74, 106, 63, .35);
  text-underline-offset: 3px;
}
.bai-than a:hover { text-decoration-color: var(--xanh); }
.ghi-chu-bai {
  background: var(--xanh-nhat); border-left: 3px solid var(--xanh);
  padding: 16px 20px; margin: 1.4em 0; font-size: .97rem;
}
.ghi-chu-bai p { margin: 0; }

.bang-cuon { overflow-x: auto; margin: 1.4em 0 1.8em; -webkit-overflow-scrolling: touch; }
.bang { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem; line-height: 1.6; }
.bang th {
  text-align: left; background: var(--xanh-nhat); color: var(--xanh-dam); font-weight: 600;
  padding: 10px 14px; border-bottom: 2px solid var(--xanh); vertical-align: bottom;
}
.bang td { padding: 10px 14px; border-bottom: 1px solid var(--vien); vertical-align: top; }

.bai-luu-y {
  margin-top: 48px; padding: 18px 22px; background: #f7f7f5; border: 1px solid var(--vien);
  font-size: .86rem; line-height: 1.7; color: var(--muc-nhat);
}
.bai-chuyen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.bai-chuyen a {
  display: block; border: 1px solid var(--vien); padding: 16px 18px;
  color: var(--muc); font-weight: 600; font-size: .95rem; line-height: 1.45;
  text-decoration: none;
}
.bai-chuyen a:hover { border-color: var(--xanh); color: var(--xanh-dam); }
.bai-chuyen span {
  display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--xanh); font-weight: 600; margin-bottom: 4px;
}
.bai-chuyen .sau { text-align: right; }

/* hình minh hoạ (noi-dung/kien-thuc/hinh/*.svg) */
.hinh { margin: 1.8em 0 2.2em; }
.hinh-ve {
  max-width: 640px; margin: 0 auto; padding: 18px;
  background: var(--trang); border: 1px solid var(--vien);
}
.hinh-ve svg {
  display: block; width: 100%; height: auto;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.hinh figcaption {
  max-width: 640px; margin: 10px auto 0; text-align: center;
  font-size: .86rem; line-height: 1.6; color: var(--muc-nhat);
}

/* ảnh trước – sau của khách hàng (anh/phan-hoi/) */
.hinh-thuc-te { max-width: 680px; margin: 2em auto 2.2em; background: var(--trang); border: 1px solid var(--vien); }
.ht-nhan {
  padding: 10px 16px; border-bottom: 1px solid var(--vien);
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--xanh);
}
.hinh-thuc-te img { display: block; width: 100%; height: auto; }
.hinh-thuc-te figcaption { padding: 12px 16px 14px; font-size: .92rem; line-height: 1.6; color: var(--muc); }
.ht-luu-y { display: block; margin-top: 6px; font-size: .78rem; line-height: 1.55; color: var(--muc-nhat); font-style: italic; }

/* biểu đồ cột ngang (thang log) — bài so sánh hoạt chất */
.bieu-do { border: 1px solid var(--vien); padding: 20px 22px 16px; margin: 1.6em 0 2em; background: var(--trang); }
.bd-tieu-de { font-weight: 600; color: var(--muc); font-size: .98rem; line-height: 1.45; }
.bd-phu { font-size: .82rem; color: var(--muc-nhat); margin: 2px 0 16px; line-height: 1.55; }
.bd-hang { display: grid; grid-template-columns: 158px minmax(0, 1fr); align-items: center; gap: 12px; padding: 5px 0; }
.bd-hang:hover .bd-nhan { color: var(--xanh-dam); }
.bd-nhan { font-size: .86rem; color: var(--muc); line-height: 1.3; text-align: right; }
.bd-hang.noi-bat .bd-nhan { font-weight: 700; color: var(--xanh-dam); }
.bd-ray {
  position: relative; height: 26px; display: flex; align-items: center;
  border-left: 1px solid #b9bcb2; border-right: 1px solid var(--vien);
  background: linear-gradient(90deg, var(--vien) 1px, transparent 1px) 0 0 / 33.333% 100% repeat-x;
}
.bd-thanh { height: 20px; min-width: 4px; background: #9fbb91; border-radius: 0 4px 4px 0; }
.bd-hang.noi-bat .bd-thanh { background: var(--xanh-dam); }
.bd-thanh.mo { border-radius: 0; background: linear-gradient(90deg, #9fbb91 var(--dac, 80%), rgba(159, 187, 145, 0) 100%); }
.bd-thanh.trong { display: flex; align-items: center; padding-left: 8px; }
.bd-thanh.trong span { font-size: .8rem; font-weight: 700; color: #1f2a1a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bd-so { margin-left: 8px; font-size: .82rem; font-weight: 600; color: var(--muc); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bd-truc { position: relative; margin-left: 170px; height: 20px; font-size: .74rem; color: var(--muc-nhat); }
.bd-truc span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.bd-truc span:first-child { transform: none; }
.bd-truc span:last-child { transform: translateX(-100%); }
.bd-ghi { font-size: .78rem; color: var(--muc-nhat); margin-top: 10px; line-height: 1.55; }

/* ma trận hoạt chất × 8 điểm */
.ma-tran { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 640px; font-size: .84rem; }
.ma-tran th { font-weight: 600; color: var(--muc); padding: 6px 6px; text-align: center; line-height: 1.3; vertical-align: bottom; }
.ma-tran thead th small { display: block; font-weight: 400; color: var(--muc-nhat); font-size: .74rem; }
.ma-tran tbody th { text-align: left; white-space: nowrap; padding-right: 10px; }
.ma-tran td { height: 40px; text-align: center; background: #f6f6f4; color: #c3c5bd; border-radius: 3px; font-weight: 700; }
.ma-tran td.m2 { background: #e3eadc; color: #26281f; }
.ma-tran td.m3 { background: #c3d4b8; color: #1f2a1a; }
.ma-tran td.m4 { background: #93b183; color: #1f2a1a; }
.ma-tran td.m5 { background: #4a6a3f; color: #fff; }
.mt-chu-giai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .78rem; color: var(--muc-nhat); margin: -1em 0 2em; }
.mt-chu-giai i { display: inline-block; width: 18px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; }

/* sơ đồ 4 giai đoạn */
.so-do-buoc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 1.6em 0 2.2em; }
.sd-buoc {
  position: relative; background: var(--trang);
  border: 1px solid var(--vien); border-top: 3px solid var(--xanh); padding: 16px 14px;
}
.sd-buoc:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  width: 12px; text-align: center; color: var(--xanh); font-weight: 700; line-height: 1;
}
.sd-so {
  font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; line-height: 1;
  color: var(--xanh); margin-bottom: 8px;
}
.sd-ten { font-weight: 600; color: var(--muc); font-size: .95rem; line-height: 1.35; margin-bottom: 6px; }
.sd-mo-ta { font-size: .84rem; color: var(--muc-nhat); line-height: 1.55; }

/* sơ đồ 8 điểm */
.so-do-8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 1.6em 0 2.2em; }
.sd8 {
  background: var(--xanh-nhat); padding: 14px 14px 16px;
  font-size: .88rem; font-weight: 600; line-height: 1.4; color: var(--xanh-dam);
}
.sd8 .sd-so { display: block; font-size: 1.35rem; margin-bottom: 6px; }

/* hệ phục hồi 5 tầng */
.so-do-tang { display: flex; flex-direction: column; gap: 6px; margin: 1.6em 0 2em; }
.sd-tang { display: grid; grid-template-columns: 210px 1fr; align-items: stretch; }
.sd-tang-ten {
  background: var(--xanh); color: #fff; padding: 12px 16px;
  font-weight: 600; font-size: .92rem; line-height: 1.35;
}
.sd-tang-ten span {
  display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .8; font-weight: 600;
}
.sd-tang-chat { background: var(--xanh-nhat); padding: 12px 16px; font-size: .9rem; line-height: 1.6; color: var(--muc); }
.sd-tang:nth-child(1) .sd-tang-ten { background: #7d9773; }
.sd-tang:nth-child(2) .sd-tang-ten { background: #6b8661; }
.sd-tang:nth-child(3) .sd-tang-ten { background: #5a7850; }
.sd-tang:nth-child(4) .sd-tang-ten { background: #4a6a3f; }
.sd-tang:nth-child(5) .sd-tang-ten { background: #334b2b; }

/* ---------- chân trang ---------- */
.chan-trang {
  background: var(--trang); color: var(--muc-nhat);
  border-top: 1px solid var(--vien);
  padding: 60px 0 28px; margin-top: 20px;
}
.muc.nen-kem + .chan-trang { border-top: 0; margin-top: 0; }   /* tránh hai đường kẻ sát nhau */
.chan-trang h4 {
  color: var(--muc); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 600;
}
.chan-luoi { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 44px; }
.chan-trang a { color: var(--muc); }
.chan-trang a:hover { color: var(--xanh); }
.chan-trang ul { list-style: none; margin: 0; padding: 0; }
.chan-trang li { margin-bottom: 9px; font-size: .9rem; }
.chan-trang .logo .ten { color: var(--xanh-dam); }
.chan-trang .logo .phu { color: var(--muc-nhat); }
.chan-gioi-thieu .logo { margin-bottom: 14px; }
/* logo chân trang: logo đầy đủ (giao-dien/logo/logo.png) + khẩu hiệu căn giữa bên dưới */
.chan-trang .logo-anh { width: 200px; max-width: 100%; display: block; margin-bottom: 8px; }
.chan-trang .logo-anh img { width: 140px; max-width: 100%; height: auto; margin: 0 auto; }
.chan-trang .khau-hieu {
  width: 200px; max-width: 100%; text-align: center;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--xanh); font-weight: 600; margin-bottom: 18px;
}
.chan-trang .nho { font-size: .85rem; line-height: 1.8; }
.ban-quyen {
  border-top: 1px solid var(--vien);
  margin-top: 40px; padding-top: 20px;
  font-size: .8rem; color: var(--muc-nhat);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- cột biểu tượng nổi bên phải (Facebook, TikTok, Zalo, Gọi) ---------- */
.noi {
  position: fixed; z-index: 60;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.noi-ds {
  display: flex; flex-direction: column; gap: 10px; padding: 9px;
  background: var(--trang); border: 1px solid var(--vien); border-radius: 100px;
  box-shadow: 0 6px 22px rgba(38, 40, 31, .14);
}
.noi-nut {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  transition: transform .15s ease;
}
.noi-nut svg { width: 22px; height: 22px; }
.noi-nut.zalo svg { width: 36px; height: 36px; }
.noi-nut.facebook { background: #1877f2; }
.noi-nut.tiktok { background: #111111; }
.noi-nut.zalo { background: #0068ff; }
.noi-nut.goi { background: #2fa84f; }
.noi-nut:hover { color: #fff; transform: scale(1.08); }
.noi-dong {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  background: var(--xanh); color: #fff; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(38, 40, 31, .22);
}
.noi-dong svg { width: 22px; height: 22px; }
.noi.gon .noi-ds { display: none; }

/* ===========================================================
   ĐA THIẾT BỊ
   ≥1024  máy tính, tablet ngang      — bố cục đầy đủ
   701–1023 tablet dọc                 — menu gọn, vẫn 2 cột ở phần đầu trang
   ≤700   điện thoại                   — 1 cột, nút bấm to
   =========================================================== */

/* máy cảm ứng: bỏ hiệu ứng nhấc thẻ khi chạm */
@media (hover: none) {
  .the:hover { transform: none; box-shadow: none; }
}

/* màn hình nhỏ hơn máy tính bàn: thu khoảng cách lưới */
@media (max-width: 1180px) {
  .luoi { gap: 20px; }
  .hero .khung { gap: 40px; }
  .sp-dau { gap: 40px; }
}

/* ---------- tablet dọc và nhỏ hơn: menu gọn ---------- */
@media (max-width: 1023px) {
  html { scroll-padding-top: 84px; }
  /* đầu trang gọn: ☰ bên trái, logo giữa, kính lúp bên phải */
  .nut-menu {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0; font-size: 1.2rem;
  }
  .mxh, .dau-phai > .tim { display: none; }
  .nut-tim { display: grid; width: 44px; height: 44px; }
  .dau-hang { min-height: 72px; }
  .dau-trang .logo img { height: 56px; }

  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--vien);
    box-shadow: 0 12px 24px rgba(38, 40, 31, .08);
  }
  .menu.mo { display: block; }
  .menu .menu-trong { flex-direction: column; align-items: stretch; gap: 0; padding-top: 14px; padding-bottom: 12px; }
  .menu-trong .tim { display: flex; max-width: none; margin-bottom: 6px; }
  .menu { max-height: calc(100vh - 72px); overflow-y: auto; }
  body.menu-mo .noi { display: none; }   /* menu ☰ đang mở: ẩn cột biểu tượng nổi cho khỏi che */
  .menu-ds { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .mi { border-bottom: 1px solid var(--vien); }
  .mi:last-child { border-bottom: 0; }
  .mi-dau { justify-content: space-between; }
  .mi > a, .mi-dau > a { flex: 1; padding: 14px 0; border-bottom: 0; font-size: .95rem; }
  .mi a.dang-xem { border-bottom-color: transparent; }
  .mi-mo { width: 44px; height: 44px; }
  .mi-mo svg { width: 14px; height: 14px; }
  .menu-con { display: none; padding: 0 0 14px 6px; }
  .co-con.mo > .menu-con { display: block; }
  .mc-trong { display: grid; gap: 16px; }
  .mc-tieu-de { padding-bottom: 6px; color: var(--xanh); }
  .menu-con li a { padding: 9px 10px 9px 14px; font-size: .93rem; }
  .mc-chan { text-align: left; margin-top: 12px; }

  .banner-hop { min-height: 480px; }
  .banner-chu { padding: 40px 12px 40px 36px; }

  .hero .khung { grid-template-columns: 1.1fr .9fr; gap: 32px; padding-top: 52px; padding-bottom: 52px; }
  .sp-dau { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 48px; }
  .muc { padding: 60px 0; }

  .chan-luoi { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .chan-luoi > :first-child { grid-column: 1 / -1; }
  .chan-trang { padding-bottom: 90px; }

  .tra-muc { grid-template-columns: 220px 1fr; gap: 24px; }

  /* bài viết: mục lục lên trên, nội dung một cột */
  .bai-bo-cuc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .bai-ben { order: 0; position: static; }
  .muc-luc { border: 1px solid var(--vien); padding: 14px 18px; }
  .muc-luc summary { margin-bottom: 0; display: flex; justify-content: space-between; }
  .muc-luc summary::after { content: "+"; font-size: 1rem; line-height: 1; }
  .muc-luc[open] summary { margin-bottom: 12px; }
  .muc-luc[open] summary::after { content: "−"; }
  .bai-than { max-width: none; }
}

@media (max-width: 860px) {
  .the-bai-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- tablet dọc hẹp: lưới sản phẩm 2 cột ---------- */
@media (max-width: 860px) {
  .luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* trang giới thiệu: logo lên trên, chữ xuống dưới */
  .gt-dau.co-logo { grid-template-columns: 1fr; gap: 36px; max-width: 760px; }
  .gt-logo { order: -1; justify-self: center; width: 100%; max-width: 320px; padding: 30px 28px; }
}

/* ---------- điện thoại ---------- */
@media (max-width: 700px) {
  .khung { padding: 0 16px; }
  .dau-trang .logo img { height: 52px; }
  .dau-hang { min-height: 66px; }
  .gt-logo { max-width: 260px; padding: 24px 22px; }
  .duong-dan { padding: 12px 0; }

  /* dải ảnh lớn: ảnh tràn hết bề ngang, chữ xuống dưới */
  .banner { padding-top: 0; }
  .banner .khung { padding: 0; }
  .banner-hop {
    grid-template-columns: 1fr; min-height: 0;
    background: linear-gradient(180deg, #e7e3df 0%, #f2efec 55%, #f7f5f2 100%);
  }
  .banner-anh { order: -1; min-height: 0; aspect-ratio: 1 / 1.05; }
  .banner-anh img {
    object-position: 50% 8%;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .banner-chu { padding: 4px 16px 36px; }

  .hero .khung { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 40px; }
  .hero-anh { padding: 14px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-cg .khung { grid-template-columns: 1fr; }
  .cg-anh { order: -1; justify-self: center; max-width: 380px; padding: 10px; }

  .sp-dau { grid-template-columns: 1fr; gap: 24px; padding-bottom: 36px; }
  .sp-anh-lon { max-width: 520px; width: 100%; margin: 0 auto; }

  .hai-cot { grid-template-columns: 1fr; gap: 20px; }
  .tra-muc { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .buoc { padding: 24px 22px; }
  .hc-the { padding: 20px; }

  .muc { padding: 48px 0; }
  .khoi { padding: 34px 0; }
  .dau-muc { margin-bottom: 28px; }

  .luoi { gap: 14px; }
  .the .than { padding: 14px 14px 16px; }
  .the h3 { font-size: .95rem; }
  .the .tom-tat { display: none; }
  .the .xem { font-size: .7rem; }

  .hero-nut .nut, .sp-nut .nut { flex: 1 1 100%; }

  .chan-luoi { grid-template-columns: 1fr; gap: 28px; }

  /* kiến thức */
  .the-bai-luoi { grid-template-columns: 1fr; gap: 14px; }
  .the-bai-luoi:has(> .co-anh) { gap: 36px; }
  .bai-the { padding: 20px 18px 18px; }
  .bai-than { font-size: 1rem; line-height: 1.75; }
  .so-do-buoc { grid-template-columns: 1fr; gap: 20px; }
  .sd-buoc:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -18px; transform: translateX(-50%); }
  .so-do-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-tang { grid-template-columns: 1fr; }
  .bai-chuyen { grid-template-columns: 1fr; }
  .bai-chuyen .sau { text-align: left; }
  .bai-chuyen > div:empty { display: none; }
  .hinh-ve { padding: 10px; }
  .bieu-do { padding: 16px 14px 12px; }
  .bd-hang { grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
  .bd-nhan { font-size: .78rem; }
  .bd-truc { margin-left: 112px; }
}

/* điện thoại: cột biểu tượng nổi nhỏ lại, sát mép phải */
@media (max-width: 700px) {
  .noi { right: calc(10px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .noi-ds { padding: 7px; gap: 8px; }
  .noi-nut { width: 40px; height: 40px; }
  .noi-nut svg { width: 19px; height: 19px; }
  .noi-nut.zalo svg { width: 32px; height: 32px; }
  .noi-dong { width: 40px; height: 40px; }
  .chan-trang { padding-bottom: 28px; }
}

/* điện thoại rất nhỏ */
@media (max-width: 380px) {
  .logo .phu { display: none; }
  .dau-trang .logo img { height: 46px; }
  .the .nhom-nho { font-size: .6rem; letter-spacing: .1em; }
}
