/* TD Agri × PHS Trí Việt – nông nghiệp hiện đại, mobile-first
   Bảng màu lấy từ logo: xanh rừng, xanh lá mạ, nâu đất */
:root {
  --c: #0b6b3a; --cd: #06331f; --cn: #eaf4e2;      /* màu riêng từng sản phẩm (ghi đè trong từng trang) */
  --rung: #0a5a32; --rung-9: #062a18; --rung-8: #0b3d24;
  --ma: #8dc63f; --ma-sang: #b5e27a;
  --dat: #774c29; --dat-9: #3b2412;
  --kem: #f7f4ec; --cat: #efe7d6;
  --chu: #17241c; --chu-2: #4a5a50; --vien: #e2ddd0;
  --zalo: #0068ff; --zalo-d: #0050c8;
  --todo-nen: #fff3b0; --todo-chu: #6b4e00;
  --bo: 18px; --bo-lon: 26px;
  --bong: 0 1px 2px rgba(6, 42, 24, .06), 0 8px 24px rgba(6, 42, 24, .08);
  --bong-lon: 0 2px 4px rgba(6, 42, 24, .08), 0 18px 44px rgba(6, 42, 24, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --z-header: 40; --z-noi: 50; --z-tiendo: 60; --z-toast: 70;
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; scroll-padding-bottom: 104px; }
body {
  margin: 0; background: #fff; color: var(--chu);
  font: 400 17px/1.65 var(--font);
  padding-bottom: 92px; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rung); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 7.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 5.8vw, 2.35rem); color: var(--rung-9); }
p { margin: 0 0 .9em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.nho { font-size: .9rem; color: var(--chu-2); }
.an { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ico { width: 24px; height: 24px; flex: none; }
.ico-nho { width: 18px; height: 18px; }
a, button, summary, label { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #ffb400; outline-offset: 3px; }

/* Placeholder – cố ý nổi bật */
.todo { background: var(--todo-nen); color: var(--todo-chu); font-weight: 700; padding: 1px 7px; border-radius: 6px; border: 1px dashed #c9a400; font-size: .9em; }
.o-trong { border: 2px dashed #c9a400; background: #fffbe0; border-radius: var(--bo); padding: 20px; margin: 16px 0; text-align: center; }
.o-toi { background: rgba(255, 251, 224, .95); }
.cho-duyet { display: inline-block; background: #ffe7c2; color: #7a4300; font-size: .8rem; font-weight: 700; border-radius: 99px; padding: 3px 12px; }

/* Thanh tiến độ đọc */
.tien-do { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: var(--z-tiendo); background: linear-gradient(90deg, var(--ma), var(--ma-sang)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.cuon { border-color: var(--vien); box-shadow: 0 6px 20px rgba(6, 42, 24, .06); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--rung-9); }
.logo img { width: 40px; height: 40px; transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-12deg) scale(1.06); }
.logo-chu { display: grid; line-height: 1.1; }
.logo-chu strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.logo-chu small { font-size: .74rem; color: var(--dat); font-weight: 600; }

/* ---------- Nút ---------- */
.btn-zalo, .btn-chinh {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 13px 24px; border-radius: 99px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn-zalo { background: var(--zalo); color: #fff; box-shadow: 0 8px 22px rgba(0, 104, 255, .32); }
.btn-zalo:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 104, 255, .4); }
.btn-zalo:active, .btn-chinh:active { transform: translateY(0) scale(.98); }
/* vệt sáng lướt qua nút */
.btn-zalo::after, .btn-chinh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.hero-cta .btn-zalo::after { animation: vet-sang 3s ease-in-out 1.6s 2; }
@keyframes vet-sang { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-chinh { background: var(--ma); color: var(--rung-9); box-shadow: 0 8px 22px rgba(141, 198, 63, .35); }
.btn-chinh:hover { transform: translateY(-2px); background: var(--ma-sang); }
.btn-to { width: 100%; font-size: 1.1rem; }
.btn-nho { min-height: 44px; padding: 8px 16px; font-size: .95rem; box-shadow: none; }
.btn-nho::after { display: none; }
.btn-noi {
  position: fixed; z-index: var(--z-noi); right: 14px; bottom: calc(16px + env(safe-area-inset-bottom));
  font-size: 1.05rem; padding: 15px 24px; overflow: visible;
  transform: translateY(140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.btn-noi::after { display: none; }
.btn-noi.hien, html:not(.js) .btn-noi { transform: none; opacity: 1; }
.btn-noi.hien::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--zalo); opacity: 0; animation: song 2.4s ease-out 1s 3; z-index: -2; }
@keyframes song { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.18); opacity: 0; } }
.btn-noi-dai { left: 14px; }
.btn-sang { background: #fff; color: var(--zalo); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.btn-sang:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 80% at 85% 10%, color-mix(in srgb, var(--c) 70%, transparent) 0%, transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(141, 198, 63, .22) 0%, transparent 60%),
    linear-gradient(160deg, var(--rung-8) 0%, var(--rung-9) 100%);
  padding: 30px 0 70px;
}
.hero::before { /* lưới chấm mờ kiểu bản đồ ruộng */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero-in { position: relative; display: flex; flex-direction: column; gap: 10px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--ma); }
.nhan { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 700; color: var(--ma-sang); background: rgba(141, 198, 63, .14); border: 1px solid rgba(141, 198, 63, .35); border-radius: 99px; padding: 5px 13px; margin-bottom: 16px; }
.hero-mota { font-size: 1.08rem; color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero-cta { margin-top: 8px; }
.goi-y { font-size: .84rem; color: rgba(255, 255, 255, .62); text-align: center; margin-top: 10px; }
.hero .cho-duyet { margin-bottom: 14px; }
.chip { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.chip li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 600; font-size: .9rem; border-radius: 99px; padding: 6px 13px; }
.chip .ico { color: var(--ma); }

.hero-anh { position: relative; margin: 6px auto 0; width: 62vw; max-width: 270px; }
.hero-anh img { position: relative; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); animation: noi 6s ease-in-out infinite; }
.hao-quang { position: absolute; inset: 8% -6%; border-radius: 50%; background: radial-gradient(circle, rgba(141, 198, 63, .55) 0%, transparent 65%); filter: blur(10px); }
@keyframes noi { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes tho { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.05); opacity: 1; } }

/* chồng 5 gói ở trang chủ */
.hero-xep { position: relative; height: 220px; margin: 10px auto 0; width: 100%; max-width: 420px; }
.hero-xep img { position: absolute; left: 50%; bottom: 0; width: 112px; transform-origin: 50% 100%;
  transform: translateX(calc(-50% + var(--i) * 40px)) rotate(calc(var(--i) * 6deg)); filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4));
  transition: transform .5s var(--ease); z-index: calc(10 - var(--i) * var(--i)); }
.hero-xep:hover img { transform: translateX(calc(-50% + var(--i) * 62px)) rotate(calc(var(--i) * 9deg)) translateY(-6px); }

/* lá bay nền */
.hero-la { position: absolute; inset: 0; pointer-events: none; }
.la { position: absolute; width: 34px; fill: var(--ma); opacity: .22; }
.la1 { top: 14%; right: 8%; }
.la2 { top: 62%; left: 4%; width: 22px; animation-delay: -5s; animation-duration: 18s; }
.la3 { top: 34%; left: 46%; width: 16px; animation-delay: -9s; opacity: .15; }
@keyframes la-bay { 0%, 100% { transform: translate(0, 0) rotate(0); } 33% { transform: translate(14px, -18px) rotate(24deg); } 66% { transform: translate(-10px, 10px) rotate(-14deg); } }

/* đường cong đất */
.cong { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 44px; fill: #fff; pointer-events: none; }
.cong-tren { top: -1px; bottom: auto; transform: scaleY(-1); }

/* Hiệu ứng vào trang của hero */
.js .hero-a { opacity: 0; transform: translateY(16px); animation: len .55s var(--ease) forwards; animation-delay: calc(var(--d, 0ms) + 60ms); }
.js .hero-anh.hero-a { transform: translateY(30px) scale(.94); }
@keyframes len { to { opacity: 1; transform: none; } }

/* ---------- Khối ---------- */
.khoi { position: relative; padding: 52px 0; }
.khoi-nen { background: var(--kem); }
.khoi-so { padding: 8px 0 28px; }
.kh-dau { margin-bottom: 26px; max-width: 40em; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--cd); margin-bottom: 10px; }
.eyebrow span .ico { width: 15px; height: 15px; }
.eyebrow span { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--cd); color: #fff; letter-spacing: 0; font-size: .82rem; }
.eyebrow::after { content: ""; flex: 0 1 60px; height: 2px; background: linear-gradient(90deg, var(--c), transparent); border-radius: 2px; }
.eyebrow-sang { color: var(--ma-sang); }
.eyebrow-sang::after { background: linear-gradient(90deg, var(--ma), transparent); }
.kh-phu { color: var(--chu-2); font-size: 1.04rem; margin: 0; max-width: 65ch; }

/* Hiện dần khi cuộn tới */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].vao { opacity: 1; transform: none; }

/* Dải số liệu */
.so-lieu { list-style: none; padding: 0; margin: -54px 0 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.so-lieu li { background: #fff; border-radius: var(--bo); box-shadow: var(--bong-lon); padding: 16px 6px 14px; text-align: center; border-top: 4px solid var(--ma); }
.so { display: block; font-weight: 800; font-size: clamp(1.2rem, 5.6vw, 2.2rem); color: var(--rung-9); line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tien-to, .don-vi { font-size: .6em; color: var(--cd); font-weight: 700; }
.so-nhan { display: block; margin-top: 6px; font-size: .76rem; color: var(--chu-2); line-height: 1.3; font-weight: 600; }
.so-chu { text-align: center; margin: 14px 0 0; }
.o-vuon { margin-top: 20px; }

/* So sánh vấn đề → giải pháp */
.so-sanh { display: grid; gap: 14px; }
.cot { border-radius: var(--bo-lon); padding: 22px 20px 12px; }
.cot ul { list-style: none; padding: 0; margin: 0; }
.cot li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.cot .dau { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cot .dau .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.cot-nhan { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.cot-van-de { background: #f6eee4; color: var(--dat-9); }
.cot-van-de .cot-nhan { color: var(--dat); }
.cot-van-de .dau { background: var(--dat); color: #fff; }
.cot-giai-phap { background: linear-gradient(160deg, var(--rung-8), var(--rung-9)); color: #fff; box-shadow: var(--bong-lon); }
.cot-giai-phap .cot-nhan { color: var(--ma); }
.cot-giai-phap .dau { background: var(--ma); color: var(--rung-9); }
.mui-ten { justify-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ma); color: var(--rung-9); box-shadow: 0 0 0 8px rgba(141, 198, 63, .2); margin: -26px 0; position: relative; z-index: 1; }
@keyframes moc { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Lưới công dụng */
.luoi-cd { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.the-cd { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--bo); padding: 18px; box-shadow: var(--bong); border: 1px solid rgba(6, 42, 24, .05); transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .8s var(--ease); }
.the-cd:hover { transform: translateY(-3px); box-shadow: var(--bong-lon); }
.the-cd p { margin: 0; }
.cd-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cn); color: var(--cd); transition: transform .4s var(--ease); }
.the-cd:hover .cd-icon { transform: rotate(-8deg) scale(1.08); }
.chi-tiet { background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 4px 18px; }
.chi-tiet summary { font-weight: 700; cursor: pointer; color: var(--rung); padding: 12px 0; }
.chi-tiet p { font-size: .95rem; }

/* Dòng thời gian bón */
.dong-tg { list-style: none; padding: 0; margin: 0 0 22px; position: relative; display: grid; gap: 12px; }
.dong-tg::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: linear-gradient(var(--ma), var(--c)); transform-origin: top; }
.js .dong-tg::before { transform: scaleY(0); transition: transform .9s var(--ease) .15s; }
.js .dong-tg.vao::before { transform: scaleY(1); }
.dong-tg li { position: relative; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.dong-tg li > span:last-child { flex: 1; background: var(--kem); border-radius: 14px; padding: 12px 16px; }
.tg-cham { flex: none; z-index: 1; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: var(--cd); color: #fff; font-weight: 800; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--cn); }
.o-cach { display: grid; gap: 12px; margin-bottom: 16px; }
.the-cach { border-radius: var(--bo); padding: 18px 20px; background: var(--cn); border-left: 6px solid var(--c); }
.cach-ten { display: inline-block; font-weight: 800; color: var(--cd); font-size: 1.05rem; margin-bottom: 4px; }
.the-cach p { margin: 0; font-size: 1.04rem; }
.mot-goi { display: flex; gap: 16px; align-items: center; border-radius: var(--bo-lon); padding: 20px; background: linear-gradient(135deg, var(--rung-8), var(--rung-9)); color: #fff; margin: 4px 0 18px; box-shadow: var(--bong-lon); }
.mot-goi p { margin: 4px 0 0; color: rgba(255, 255, 255, .88); }
.mot-goi strong { color: var(--ma-sang); }
.mot-goi-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(141, 198, 63, .2); color: var(--ma); }
.mot-goi-icon .ico { width: 30px; height: 30px; }
.ds-luu-y { list-style: none; padding: 0; margin: 0 0 1em; }
.ds-luu-y li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.ds-luu-y li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--ma); }
.bang-wrap { overflow-x: auto; margin-bottom: 16px; }
.bang { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; font-size: .95rem; border-radius: var(--bo); overflow: hidden; box-shadow: var(--bong); }
.bang th { background: var(--cd); color: #fff; text-align: left; padding: 12px; }
.bang td { border-bottom: 1px solid var(--vien); padding: 12px; vertical-align: top; }
.bang td:first-child { font-weight: 700; color: var(--cd); }

/* Khối đất (bằng chứng) */
.khoi-dat { background: linear-gradient(180deg, var(--dat), var(--dat-9)); color: #fff; padding: 76px 0 84px; overflow: hidden; }
.khoi-dat h2 { color: #fff; }
.khoi-dat .eyebrow { color: var(--ma-sang); }
.khoi-dat .eyebrow span { background: var(--ma); color: var(--rung-9); }
.chung-thuc { margin: 14px 0; background: rgba(255, 255, 255, .08); border-left: 5px solid var(--ma); border-radius: 14px; padding: 16px 18px; }
.chung-thuc footer { font-weight: 700; color: var(--ma-sang); }
.khoi-dat figure { margin: 14px 0; }
.khoi-dat figcaption { font-size: .9rem; opacity: .8; margin-top: 6px; }

/* Pháp lý */
.phap-ly { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.phap-ly li, .giao-hang li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 14px 16px; }
.phap-ly .ico, .giao-hang .ico { color: var(--cd); width: 28px; height: 28px; }
.phap-ly small, .giao-hang small { display: block; font-size: .8rem; color: var(--chu-2); font-weight: 600; }
.phap-ly strong, .giao-hang strong { font-weight: 700; }
.nhan-bb { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nhan-bb span { display: inline-flex; align-items: center; gap: 4px; }
.nhan-bb a { text-decoration: none; text-align: center; font-size: .88rem; font-weight: 600; color: var(--chu-2); }
.nhan-bb img { border-radius: 14px; box-shadow: var(--bong); margin-bottom: 8px; transition: transform .35s var(--ease); }
.nhan-bb a:hover img { transform: translateY(-4px) rotate(-1deg); }

/* Giá */
.ds-gia { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.the-gia { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; background: #fff; border-radius: var(--bo); padding: 16px 18px; box-shadow: var(--bong); border: 2px solid transparent; transition: border-color .25s, transform .3s var(--ease), opacity .8s var(--ease); }
.the-gia:hover { border-color: var(--ma); transform: translateY(-2px); }
.gia-icon { grid-row: 1 / span 3; align-self: start; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cn); color: var(--cd); }
.gia-ten { font-weight: 800; font-size: 1.05rem; }
.gia-sl { grid-row: 2; grid-column: 2; color: var(--chu-2); font-size: .92rem; }
.gia-so { grid-column: 2; font-weight: 800; font-size: 1.3rem; color: var(--rung); margin-top: 6px; }
.gia-ghichu { grid-column: 1 / -1; font-size: .9rem; color: var(--cd); margin-top: 6px; }
.gia-ship { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 600; margin: 4px 0 18px; }
.gia-ship .ico { color: var(--cd); }
.khuyen-mai { background: #fff1d6; border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.giao-hang { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--vien); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 46px 18px 0; position: relative; list-style: none; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background-color: var(--cn); background-image: linear-gradient(var(--cd), var(--cd)), linear-gradient(var(--cd), var(--cd)); background-repeat: no-repeat; background-position: center; background-size: 12px 2px, 2px 12px; transition: transform .35s var(--ease), background-size .35s; }
.faq details[open] summary::after { transform: rotate(180deg); background-size: 12px 2px, 2px 0; }
.faq-tl p { margin: 0 0 18px; color: var(--chu-2); }
.js .faq details[open] .faq-tl { animation: mo .45s var(--ease); }
@keyframes mo { from { opacity: 0; transform: translateY(-6px); } }

/* CTA cuối */
.cta-cuoi { background: radial-gradient(100% 80% at 100% 0%, rgba(141, 198, 63, .25), transparent 60%), linear-gradient(160deg, var(--rung-8), var(--rung-9)); color: #fff; padding: 84px 0 60px; overflow: hidden; }
.cta-cuoi h2 { color: #fff; }
.cta-cuoi p { color: rgba(255, 255, 255, .86); }
.khoi-nen + .cta-cuoi .cong-tren { fill: var(--kem); }
.cta-in { display: grid; gap: 26px; }
.cta-mot { text-align: center; max-width: 640px; }
.cta-mot .eyebrow { justify-content: center; }
.form-sdt { text-align: left; background: #fff; color: var(--chu); border-radius: var(--bo-lon); padding: 22px 18px; display: grid; gap: 12px; box-shadow: var(--bong-lon); }
.cta-cuoi .form-sdt p { color: var(--chu); }
.form-tieude { display: flex; gap: 10px; align-items: center; font-weight: 800; margin: 0; color: var(--rung-9) !important; }
.form-tieude .ico { color: var(--cd); }
.form-sdt { gap: 4px; }
.form-sdt label { font-weight: 600; font-size: .92rem; margin-top: 8px; }
.form-tieude { margin-bottom: 4px !important; }
.loi-o { margin: 2px 0 0; min-height: 0; font-size: .88rem; font-weight: 600; color: #b3261e !important; }
.loi-o:empty { display: none; }
.form-sdt input { font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid #cfd6cf; border-radius: 12px; min-height: 52px; width: 100%; background: #fbfcfa; transition: border-color .2s, box-shadow .2s; }
.form-sdt input:focus { outline: none; border-color: var(--cd); box-shadow: 0 0 0 4px var(--cn); }
.form-sdt input[aria-invalid="true"] { border-color: #d32f2f; background: #fff5f5; }
.btn-phu { margin-top: 12px; min-height: 52px; border-radius: 99px; border: 2px solid var(--rung); background: #fff; color: var(--rung); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.btn-phu:hover { background: var(--rung); color: #fff; }
.btn-phu:active { transform: scale(.98); }
.btn-phu:disabled { opacity: .6; cursor: progress; }
.form-ketqua { margin: 0; font-weight: 700; }
.form-ketqua.ok { color: #1b7a35 !important; }
.form-ketqua.loi { color: #c62828 !important; }

/* Khối chéo */
.ds-cheo { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ds-cheo a { position: relative; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--chu); font-weight: 700; background: var(--cn); border-radius: var(--bo); padding: 10px 12px; min-height: 76px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.ds-cheo a:hover { transform: translateY(-3px); box-shadow: var(--bong); }
.ds-cheo img { width: 46px; transition: transform .4s var(--ease); }
.ds-cheo a:hover img { transform: rotate(-6deg) scale(1.08); }
.cheo-mt { margin-left: auto; color: var(--cd); display: grid; transition: transform .25s var(--ease); }
.ds-cheo a:hover .cheo-mt { transform: translateX(4px); }

/* Thẻ sản phẩm trang chủ */
.ds-the { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.the-sp a { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--chu); background: #fff; border-radius: var(--bo-lon); padding: 14px; box-shadow: var(--bong); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.the-sp a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.the-sp a:hover { transform: translateY(-4px); box-shadow: var(--bong-lon); }
.the-anh { position: relative; display: grid; place-items: center; background: var(--cn); border-radius: 18px; padding: 10px 8px; }
.the-anh img { transition: transform .5s var(--ease); }
.the-sp a:hover .the-anh img { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.the-chu { display: grid; gap: 4px; }
.the-ten { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--cd); }
.the-dau { font-size: 1.08rem; line-height: 1.3; color: var(--rung-9); }
.the-mo { font-size: .9rem; color: var(--chu-2); }
.the-nut { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: var(--cd); }
.the-nut .ico { transition: transform .25s var(--ease); }
.the-sp a:hover .the-nut .ico { transform: translateX(4px); }

/* 3 bước mua */
.buoc-mua { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: b; }
.buoc-mua li { position: relative; counter-increment: b; display: grid; grid-template-columns: 52px 1fr; gap: 2px 14px; align-items: center; background: #fff; border-radius: var(--bo); padding: 18px; box-shadow: var(--bong); }
.buoc-mua .ico { grid-row: 1 / span 2; width: 52px; height: 52px; padding: 12px; border-radius: 16px; background: var(--cn); color: var(--cd); }
.buoc-mua li::after { content: counter(b); position: absolute; right: 16px; top: 8px; font-size: 2.6rem; font-weight: 800; color: var(--cn); line-height: 1; }
.buoc-mua strong { font-size: 1.05rem; color: var(--rung-9); }
.buoc-mua span { color: var(--chu-2); font-size: .95rem; }
.luoi-anh { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* YouTube lazy */
.yt { position: relative; aspect-ratio: 16/9; border-radius: var(--bo); overflow: hidden; margin: 14px 0; background: #000; box-shadow: var(--bong-lon); }
.yt button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.yt button:hover img { transform: scale(1.04); }
.yt .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: var(--ma); color: var(--rung-9); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(141, 198, 63, .3); }
.yt .play .ico { width: 30px; height: 30px; margin-left: 4px; }
.yt iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.footer { position: relative; background: var(--rung-9); color: rgba(255, 255, 255, .72); padding: 36px 0 34px; font-size: .92rem; }
.footer a { color: #fff; }
.footer p { margin-bottom: .55em; }
.footer .nho { color: rgba(255, 255, 255, .5); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo strong { display: block; color: #fff; font-size: 1.15rem; }
.footer-logo span { color: var(--ma); font-size: .88rem; }
.link-home { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1rem; padding: 8px 0; color: var(--ma-sang) !important; }

/* Thông báo nhỏ */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: var(--z-toast); background: var(--rung-9); color: #fff; padding: 14px 18px; border-radius: 14px; text-align: center; font-weight: 600; box-shadow: var(--bong-lon); animation: len .35s var(--ease); }


/* ---------- Hồ sơ năng lực (trang chủ) ---------- */
.so-lieu-4 { grid-template-columns: 1fr 1fr; }
.moc { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; }
.moc li { position: relative; background: #fff; border-radius: var(--bo); padding: 18px 18px 14px 18px; box-shadow: var(--bong); border-top: 4px solid var(--ma); }
.moc-nam { display: inline-block; font-weight: 800; font-size: 1.35rem; color: var(--rung); letter-spacing: -.02em; }
.moc strong { display: block; color: var(--rung-9); margin: 2px 0 4px; }
.moc p { margin: 0; color: var(--chu-2); font-size: .95rem; }
.luoi-nm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.luoi-nm figure { margin: 0; position: relative; border-radius: var(--bo); overflow: hidden; box-shadow: var(--bong); background: var(--rung-9); }
.luoi-nm img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease); }
.luoi-nm figure:hover img { transform: scale(1.04); }
.luoi-nm figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: .78rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(6, 42, 24, .88)); line-height: 1.3; }
.luoi-nm figure:first-child { grid-column: 1 / -1; }
.luoi-nm figure:first-child img { aspect-ratio: 16 / 9; }
.luoi-nm figure:nth-child(4) { grid-column: 1 / -1; }
.luoi-nm figure:nth-child(4) img { aspect-ratio: 16 / 8; }
.nm-thongtin { display: grid; gap: 12px; margin-bottom: 16px; }
.the-nm { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--bo); padding: 18px; box-shadow: var(--bong); }
.the-nm strong { color: var(--rung-9); }
.the-nm ul { margin: 6px 0 0; padding-left: 18px; color: var(--chu-2); font-size: .95rem; }
.the-nm li { margin-bottom: 2px; }
.chung-nhan { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.chung-nhan li { display: grid; justify-items: center; text-align: center; gap: 6px; background: var(--rung-9); color: #fff; border-radius: var(--bo); padding: 16px 8px; }
.chung-nhan .ico { color: var(--ma); width: 28px; height: 28px; }
.chung-nhan strong { display: block; font-size: .98rem; }
.chung-nhan small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .78); line-height: 1.3; }
.khoi-nen .chung-nhan + .cho-duyet { margin-bottom: 16px; }
.ds-rd { list-style: none; padding: 0; margin: 14px 0 26px; display: grid; gap: 10px; }
.ds-rd li { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); padding: 14px 16px; }
.rd-chu { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--rung), var(--rung-9)); color: var(--ma-sang); font-weight: 800; font-size: 1.15rem; }
.ds-rd strong { display: block; color: var(--rung-9); }
.ds-rd small { display: block; color: var(--chu-2); font-size: .88rem; line-height: 1.35; }
.cam-ket { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cam-ket li { background: var(--kem); border-radius: var(--bo); padding: 18px; }
.cam-ket .cd-icon { margin-bottom: 10px; }
.cam-ket strong { display: block; font-size: 1.08rem; color: var(--rung-9); }
.cam-ket p { margin: 4px 0 0; color: var(--chu-2); }

/* Dải "Sản xuất bởi Trí Việt" ở trang sản phẩm */
.tv-dai { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--chu); background: var(--kem); border-radius: var(--bo); padding: 12px; margin: 4px 0 18px; transition: transform .3s var(--ease), box-shadow .3s; }
.tv-dai:hover { transform: translateY(-2px); box-shadow: var(--bong); }
.tv-dai img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }
.tv-chu { display: grid; gap: 2px; }
.tv-chu small { font-size: .78rem; color: var(--chu-2); font-weight: 600; }
.tv-chu strong { color: var(--rung-9); line-height: 1.3; }
.tv-chu > span:not(.the-nut) { font-size: .86rem; color: var(--chu-2); }
.tv-dai:hover .the-nut .ico { transform: translateX(4px); }

.hero-404 { min-height: 52vh; display: flex; align-items: center; }
.hero-404 .wrap { position: relative; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 599px) {
  .bang { box-shadow: none; background: none; overflow: visible; }
  .bang thead { display: none; }
  .bang tr { display: block; background: #fff; border-left: 6px solid var(--c); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; box-shadow: var(--bong); }
  .bang td { display: block; border: 0; padding: 3px 0; }
  .bang td:first-child { font-size: 1.08rem; }
  .bang td:not(:first-child)::before { content: attr(data-nhan) ": "; font-weight: 700; color: var(--chu-2); }
}

@media (max-width: 359px) {
  .so { white-space: normal; font-size: 1.15rem; }
  .so-nhan { font-size: .7rem; }
  .hero-xep { height: 190px; }
  .hero-xep img { width: 92px; transform: translateX(calc(-50% + var(--i) * 30px)) rotate(calc(var(--i) * 6deg)); }
  .the-sp a { grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; }
  .btn-noi { font-size: .95rem; padding: 13px 18px; }
  .btn-to { font-size: 1rem; padding: 13px 18px; }
}

/* ---------- Màn hình lớn ---------- */
@media (min-width: 860px) {
  body { font-size: 18px; }
  .khoi { padding: 84px 0; }
  .hero { padding: 64px 0 110px; }
  .hero-in { flex-direction: row; align-items: center; gap: 40px; }
  .hero-chu { flex: 1; }
  .hero-anh { flex: 0 0 380px; max-width: 380px; width: auto; margin: 0; }
  .hero-xep { flex: 0 0 440px; height: 360px; }
  .hero-xep img { width: 170px; transform: translateX(calc(-50% + var(--i) * 70px)) rotate(calc(var(--i) * 7deg)); }
  .btn-to { width: auto; min-width: 320px; }
  .goi-y { text-align: left; }
  .cta-mot .btn-to { min-width: 360px; }
  .so-lieu { gap: 20px; margin-top: -80px; }
  .so-lieu li { padding: 26px 16px 22px; }
  .so-nhan { font-size: .92rem; }
  .so-sanh { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .mui-ten { margin: 0 -26px; align-self: center; transform: rotate(-90deg); }
  .js .mui-ten[data-reveal].vao { transform: rotate(-90deg); }
  .luoi-cd { grid-template-columns: 1fr 1fr; gap: 16px; }
  .o-cach { grid-template-columns: 1fr 1fr; }
  .ds-cheo { grid-template-columns: repeat(4, 1fr); }
  .ds-the { grid-template-columns: 1fr 1fr; gap: 20px; }
  .the-sp a { grid-template-columns: 150px 1fr; padding: 18px; }
  .phap-ly { grid-template-columns: 1fr 1fr; }
  .giao-hang, .ds-gia, .buoc-mua { grid-template-columns: repeat(3, 1fr); }
  .nhan-bb { max-width: 560px; }
  .cta-in { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .cta-mot { grid-template-columns: 1fr; }
  .btn-noi-dai { left: auto; }
  .cong { height: 70px; }
  .so-lieu-4 { grid-template-columns: repeat(4, 1fr); }
  .moc { grid-template-columns: repeat(4, 1fr); }
  .luoi-nm { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
  .luoi-nm figure:first-child { grid-column: auto; grid-row: 1 / span 2; }
  .luoi-nm figure:first-child img { aspect-ratio: auto; }
  .luoi-nm figure:nth-child(4) { grid-column: 2 / span 2; }
  .luoi-nm figure:nth-child(4) img { aspect-ratio: 16 / 7; }
  .nm-thongtin { grid-template-columns: 1fr 1fr; }
  .chung-nhan { gap: 16px; }
  .ds-rd { grid-template-columns: 1fr 1fr; }
  .cam-ket { grid-template-columns: repeat(3, 1fr); }
  .tv-dai { grid-template-columns: 180px 1fr; max-width: 640px; }
}

/* Người dùng tắt chuyển động → tắt hết hiệu ứng */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .hero-a { opacity: 1 !important; transform: none !important; }
  .js .dong-tg::before { transform: none; }
  .btn-noi { transform: none; opacity: 1; }
}
