/* =========================================================
   Saigon Legal — base.css
   Cấu trúc + component dùng chung cho cả 3 phiên bản.
   Màu, font, bo góc... là biến; v1.css / v2.css / v3.css ghi đè biến + "skin".
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f5f4;
  --surface: #ffffff;
  --ink: #17191c;
  --ink-2: #3a3f44;
  --muted: #646b71;
  --line: #e0e3e1;
  --primary: #0f4c3a;
  --primary-hover: #0b3a2c;
  --on-primary: #ffffff;
  --accent: #0f4c3a;
  --accent-soft: #e4efea;
  --topbar-bg: #0f4c3a;
  --topbar-ink: #d7e6df;
  --footer-bg: #13201b;
  --footer-ink: #b9c6c0;
  --ph-bg: #e3e7e5;
  --ph-ink: #7b8580;
  --danger: #b42318;
  --success: #1f7a4d;
  --live: #d92d20;

  --f-head: system-ui, sans-serif;
  --f-body: system-ui, sans-serif;
  --head-weight: 700;
  --head-tracking: -0.015em;
  --radius: 4px;
  --radius-lg: 8px;
  --btn-radius: 4px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 4px 16px rgba(16, 24, 20, .06);
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
h1, h2, h3, h4, h5 { font-family: var(--f-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); line-height: 1.22; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.14; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--sm { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--bg-alt); }
.stack > * + * { margin-top: 16px; }
.text-center { text-align: center; }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Section head ---------- */
.sh { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.sh__main { max-width: 680px; }
.sh__label { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.sh h2 { margin: 0; }
.sh p { color: var(--muted); margin: 10px 0 0; font-size: 1.05rem; }
.sh--center { justify-content: center; text-align: center; }
.sh--center .sh__main { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: var(--btn-radius);
  font-size: .95rem; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn .icon { width: 16px; height: 16px; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link .icon { width: 16px; height: 16px; transition: transform .2s; }
.link:hover .icon { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .875rem; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; }
.badge--live { background: #fde8e7; color: var(--live); }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: blink 1.4s infinite; }
.badge--muted { background: var(--bg-alt); color: var(--ink-2); }
.badge--free { background: #e5f4ec; color: var(--success); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Image placeholder (thay bằng ảnh thật) ---------- */
.ph { position: relative; background: var(--ph-bg); color: var(--ph-ink); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 10; }
.ph > span:first-child { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; padding: 12px; }
.ph > span:first-child::before { content: ""; width: 28px; height: 22px; border: 1.5px solid currentColor; border-radius: 3px; background: radial-gradient(circle at 70% 35%, currentColor 2.5px, transparent 3px), linear-gradient(135deg, transparent 55%, currentColor 55%, currentColor 62%, transparent 62%); opacity: .7; }
.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--1x1 { aspect-ratio: 1; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--wide { aspect-ratio: 21 / 9; }

/* ---------- Topbar + Header ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-ink); font-size: .84rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__group { display: flex; align-items: center; gap: 20px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; }

.header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__image { display: block; width: 218px; height: auto; max-width: none; }
.footer .logo__image { content: url("../assets/brand/saigon-legal-logo-dark.svg"); }
.portal-bar .logo__image { content: url("../assets/brand/saigon-legal-logo-dark.svg"); }
html[data-v="4"] .header .logo__image { content: url("../assets/brand/saigon-legal-logo-dark.svg"); }
html[data-palette="4"] .footer .logo__image,
html[data-palette="5"] .footer .logo__image,
html[data-palette="6"] .footer .logo__image { content: url("../assets/brand/saigon-legal-logo.svg"); }
.logo__mark { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-family: var(--f-head); font-weight: 700; font-size: 1rem; letter-spacing: .02em; border-radius: var(--radius); }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__text b { font-family: var(--f-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.logo__text small { font-size: .76rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: .95rem; font-weight: 500; color: var(--ink-2); border-radius: var(--radius); white-space: nowrap; }
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--ink); background: var(--bg-alt); }
.nav__link.is-active { color: var(--accent); font-weight: 600; }
.nav__link .icon { width: 14px; height: 14px; transition: transform .2s; }
.nav__item:hover .nav__link .icon { transform: rotate(180deg); }
.dd { position: absolute; top: 100%; left: 0; min-width: 540px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.dd--narrow { min-width: 260px; grid-template-columns: 1fr; }
.nav__item:hover .dd, .nav__item:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.dd a { display: block; padding: 10px 12px; border-radius: var(--radius); }
.dd a:hover { background: var(--bg-alt); }
.dd a b { display: block; font-weight: 600; font-size: .94rem; }
.dd a small { color: var(--muted); font-size: .8rem; }
.dd__foot { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }

/* ---------- Page head (trang con) ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 64px) 0; }
.page-head h1 { margin-bottom: 10px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; font-size: 1.06rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .icon { width: 14px; height: 14px; }

/* ---------- Home hero ---------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero__kicker { font-weight: 600; color: var(--accent); margin-bottom: 14px; display: block; }
.hero h1 { margin-bottom: 18px; }
.hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 560px; margin-bottom: 28px; }
.hero__search { display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); max-width: 600px; }
.hero__search .icon { margin: 0 4px 0 10px; color: var(--muted); align-self: center; }
.hero__search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 10px 4px; font-size: 1rem; }
.hero__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.hero__popular a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.hero__popular a:hover { color: var(--accent); text-decoration-color: currentColor; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__media { position: relative; }
.hero__card { position: absolute; left: -28px; bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 14px 18px; display: flex; gap: 12px; align-items: center; max-width: 300px; }
.hero__card .avatar { width: 44px; height: 44px; }
.hero__card b { display: block; font-size: .95rem; }
.hero__card small { color: var(--muted); }

.creds { border-bottom: 1px solid var(--line); background: var(--surface); }
.creds__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred { padding: 22px 20px; display: flex; gap: 14px; align-items: center; }
.cred + .cred { border-left: 1px solid var(--line); }
.cred__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cred b { display: block; font-size: 1rem; line-height: 1.3; }
.cred small { color: var(--muted); }

.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--ph-bg); color: var(--ph-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* ---------- Practice areas ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.area:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.area .ph { border-radius: 0; aspect-ratio: 16 / 8; }
.area__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.area h3 { margin-bottom: 6px; }
.area p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.area ul { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.area li { font-size: .8rem; padding: 3px 9px; background: var(--bg-alt); border-radius: 999px; color: var(--ink-2); }
.area .link { margin-top: auto; }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; }
.checks .icon { color: var(--accent); margin-top: 4px; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: .95rem; }

/* ---------- Steps (quy trình) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Article cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.post { display: flex; flex-direction: column; }
.post .ph { margin-bottom: 14px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .84rem; color: var(--muted); margin-bottom: 8px; }
.post h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 8px; }
.post h3 a:hover { color: var(--accent); }
.post p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.post--row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post--row:first-child { padding-top: 0; }
.post--row .ph { margin: 0; }
.post--row h3 { font-size: 1.25rem; }

/* ---------- Live / course teasers on home ---------- */
.live-feature { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.live-feature .ph { border-radius: 0; height: 100%; aspect-ratio: auto; min-height: 280px; }
.live-feature__body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.live-feature__body h3 { font-size: 1.5rem; margin: 0; }
.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.meta-list li { display: flex; gap: 10px; align-items: center; }
.meta-list .icon { color: var(--accent); }

.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 64px; padding: 10px 8px; text-align: center; background: var(--bg-alt); border-radius: var(--radius); }
.countdown b { display: block; font-family: var(--f-head); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: .75rem; }

.course-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.course-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.course-card .ph { border-radius: 0; }
.course-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { font-size: 1.1rem; line-height: 1.35; margin: 0; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); }
.course-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card__meta .icon { width: 14px; height: 14px; }
.course-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; }
.price del { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: 6px; font-family: var(--f-body); }
.price--free { color: var(--success); }

.video-card { display: flex; flex-direction: column; gap: 10px; }
.video-card .ph { position: relative; }
.video-card .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 4px; }
.video-card .ph > span:first-child, .price-card .ph > span:first-child { opacity: 0; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .play i { width: 52px; height: 52px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; transition: transform .2s, background .2s; }
.video-card .play i::after { content: ""; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.video-card:hover .play i { transform: scale(1.08); background: var(--primary); }
.video-card h3 { font-size: 1.02rem; line-height: 1.4; margin: 0; }
.video-card h3 a:hover { color: var(--accent); }

.schedule { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.schedule__row { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 18px 20px; }
.schedule__row + .schedule__row { border-top: 1px solid var(--line); }
.schedule__date { text-align: center; padding: 8px; border-radius: var(--radius); background: var(--bg-alt); line-height: 1.2; }
.schedule__date b { display: block; font-family: var(--f-head); font-size: 1.6rem; }
.schedule__date small { color: var(--muted); }
.schedule__row h4 { margin: 0 0 4px; font-size: 1.05rem; }
.schedule__row p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--primary); color: var(--on-primary); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: inherit; margin: 0 0 6px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.cta p { margin: 0; opacity: .85; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Layout with sidebar ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.with-aside--left { grid-template-columns: 260px minmax(0, 1fr); }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.box + .box { margin-top: 20px; }
.box h4 { margin-bottom: 12px; }
.box--primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.box--primary h4 { color: inherit; }
.box--primary p { opacity: .85; }
.box--soft { background: var(--accent-soft); border-color: transparent; }
.service-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); margin-top: 18px; }
.service-scope__item { padding: 4px 0; }
.service-scope__item h4 { margin-bottom: 12px; }
.service-scope__item ul { margin: 0; padding-left: 22px; color: var(--ink-2); }
.service-scope__item li + li { margin-top: 5px; }
.service-related { margin-top: 30px; padding: 0 4px; }
.service-related h4 { margin: 0 0 10px 12px; }

.filter-list { list-style: none; padding: 0; margin: 0 0 20px; }
.filter-list button, .filter-list a { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 0; background: none; border-radius: var(--radius); cursor: pointer; text-align: left; font-size: .95rem; color: var(--ink-2); }
.filter-list button:hover, .filter-list a:hover { background: var(--bg-alt); }
.filter-list .is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filter-list small { color: var(--muted); }

.searchbox { display: flex; max-width: 640px; margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: none; padding: 14px 16px; background: transparent; }
.searchbox .btn { border-radius: 0; }

.pagination { display: flex; gap: 6px; margin-top: 32px; }
.pagination a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .9rem; }
.pagination a.is-active, .pagination a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* ---------- Prose (bài viết) ---------- */
.prose { font-size: 1.06rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.lead { font-size: 1.18rem; color: var(--ink-2); }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-alt); font-size: .94rem; color: var(--ink-2); }
.note .icon { color: var(--accent); margin-top: 3px; }
.refs { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.refs__head { padding: 12px 18px; background: var(--bg-alt); font-weight: 600; }
.refs ul { list-style: none; padding: 0; margin: 0; }
.refs li { padding: 12px 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.author { display: flex; gap: 14px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.author .avatar { width: 56px; height: 56px; }
.author b { display: block; }
.author small { color: var(--muted); }
.toc { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.toc a:hover, .toc a.is-active { border-left-color: var(--accent); color: var(--accent); }
.share { display: flex; gap: 8px; }
.share a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.share a:hover { border-color: var(--ink); }
.share .icon { width: 16px; height: 16px; }

/* ---------- Accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.acc__btn:hover { color: var(--accent); }
.acc__btn .icon { transition: transform .25s; color: var(--muted); }
.acc__item.is-open .acc__btn .icon { transform: rotate(180deg); color: var(--accent); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__inner { padding: 0 4px 20px; color: var(--ink-2); }
.acc__inner p:last-child { margin: 0; }
.acc__src { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 12px 16px; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: .95rem; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg-alt); font-weight: 600; font-size: .88rem; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Timeline (hồ sơ) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline time { font-weight: 600; color: var(--accent); }
.timeline h4 { margin: 0 0 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Service detail ---------- */
.fee-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.docs-list { columns: 2; column-gap: 32px; }
.docs-list li { break-inside: avoid; }

/* ---------- Course detail ---------- */
.course-hero { background: var(--footer-bg); color: #fff; padding: clamp(36px, 5vw, 64px) 0; }
.course-hero h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.course-hero .crumbs { color: rgba(255, 255, 255, .7); }
.course-hero p { color: rgba(255, 255, 255, .82); font-size: 1.08rem; max-width: 720px; }
.course-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: rgba(255, 255, 255, .8); margin-top: 18px; }
.course-hero__meta span { display: inline-flex; gap: 6px; align-items: center; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; list-style: none; padding: 22px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.learn-grid li { display: flex; gap: 10px; font-size: .96rem; }
.learn-grid .icon { color: var(--accent); margin-top: 4px; }
.curriculum .acc__btn { font-size: 1rem; }
.curriculum .acc__btn small { font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: auto; margin-right: 12px; white-space: nowrap; }
.lessons { list-style: none; margin: 0; padding: 0 4px 12px; }
.lessons li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: .95rem; border-top: 1px dashed var(--line); }
.lessons li:first-child { border-top: 0; }
.lessons .icon { color: var(--muted); width: 16px; height: 16px; }
.lessons .t { margin-left: auto; color: var(--muted); font-size: .85rem; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.price-card .ph { border-radius: 0; }
.price-card__body { padding: 22px; }
.price-card .price { font-size: 1.8rem; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .92rem; }
.price-card li { display: flex; gap: 10px; }
.price-card li .icon { color: var(--accent); width: 16px; height: 16px; margin-top: 4px; }
.course-hero .with-aside { align-items: start; }

/* ---------- Student portal (hoc-bai) ---------- */
.portal-bar { background: var(--footer-bg); color: #fff; }
.portal-bar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; }
.portal-bar a:hover { opacity: .8; }
.portal-bar .logo__text b { color: #fff; }
.portal-bar .logo__text small { color: rgba(255, 255, 255, .6); }
.portal { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.portal__side { border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; max-height: calc(100vh - 60px); position: sticky; top: 0; }
.portal__side-head { padding: 20px; border-bottom: 1px solid var(--line); }
.progress { height: 8px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.p-chapter { border-bottom: 1px solid var(--line); }
.p-chapter > b { display: block; padding: 14px 20px; background: var(--bg-alt); font-size: .92rem; }
.p-lesson { display: flex; gap: 10px; align-items: flex-start; padding: 12px 20px; font-size: .92rem; border-top: 1px solid var(--line); }
.p-lesson:hover { background: var(--bg-alt); }
.p-lesson.is-current { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.p-lesson .st { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); margin-top: 2px; display: grid; place-items: center; }
.p-lesson.is-done .st { background: var(--success); border-color: var(--success); }
.p-lesson.is-done .st::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.p-lesson small { display: block; color: var(--muted); }
.portal__main { padding: 28px clamp(20px, 3vw, 44px) 60px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; color: #aaa; }
.player__play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; }
.player__play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.player__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; display: flex; align-items: center; gap: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: .82rem; }
.player__bar i { flex: 1; height: 4px; background: rgba(255, 255, 255, .3); border-radius: 2px; position: relative; }
.player__bar i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 35%; background: var(--accent); border-radius: 2px; }
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 24px 0 8px; flex-wrap: wrap; }
.lesson-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.notes textarea { width: 100%; min-height: 140px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); resize: vertical; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.file-row + .file-row { margin-top: 10px; }
.file-row .ext { width: 40px; height: 40px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.file-row small { color: var(--muted); display: block; }
.file-row .btn { margin-left: auto; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-step + .form-step { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-step__title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.form-step__title span { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: .85rem; font-weight: 700; flex: none; }
.form-step__title h3 { margin: 0; font-size: 1.12rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.field .error, .consent .error { display: none; font-size: .84rem; color: var(--danger); margin-top: 6px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .error, .consent.is-invalid .error { display: block; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; margin: 0; background: var(--surface); }
.option label b { display: block; font-weight: 600; }
.option label small { color: var(--muted); }
.option .icon { color: var(--accent); margin-top: 3px; }
.option input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.option input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; }
.slot label { display: block; padding: 10px 6px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: .9rem; margin: 0; background: var(--surface); }
.slot label small { display: block; color: var(--muted); font-size: .75rem; }
.slot input:checked + label { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.slot input:checked + label small { color: inherit; opacity: .8; }
.slot input:disabled + label { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; cursor: pointer; background: var(--bg-alt); transition: border-color .15s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); }
.dropzone .icon { margin: 0 auto 8px; width: 26px; height: 26px; color: var(--accent); }
.dropzone small { display: block; color: var(--muted); margin-top: 4px; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 6px; font-size: .9rem; }
.file-list button { border: 0; background: none; color: var(--danger); cursor: pointer; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.consent a { color: var(--accent); text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; }
.success { display: none; text-align: center; padding: 32px 12px; }
.success .icon { width: 52px; height: 52px; color: var(--success); margin: 0 auto 12px; }
.is-done > form { display: none; }
.is-done > .success { display: block; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.contact-card .cred__icon { margin-bottom: 14px; }
.contact-card h4 { margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-ink); font-size: .94rem; margin-top: 0; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 48px; }
.footer .logo__text b { color: #fff; }
.footer .logo__text small { color: var(--footer-ink); }
.footer h5 { color: #fff; font-size: .95rem; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: 9px; }
.footer a:hover { color: #fff; }
.footer__about { margin-top: 18px; max-width: 320px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.socials a:hover { border-color: #fff; }
.socials .icon { width: 16px; height: 16px; }
.subscribe { display: flex; gap: 6px; margin-top: 12px; }
.subscribe input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; outline: none; }
.subscribe input::placeholder { color: var(--footer-ink); }

/* ---------- Floating actions: gọi / Zalo / chat ---------- */
.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); color: #fff; border: 0; cursor: pointer; }
.fab .icon { width: 22px; height: 22px; }
.fab--call { background: var(--success); }
.fab--zalo { background: #0068ff; font-weight: 800; font-size: .72rem; letter-spacing: .02em; }
.fab--chat { width: auto; height: 50px; padding: 0 20px 0 16px; border-radius: 999px; gap: 8px; display: flex; align-items: center; background: var(--primary); font-weight: 600; font-size: .92rem; }

.chat { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0, 0, 0, .2); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; overflow: hidden; }
.chat.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--primary); color: var(--on-primary); }
.chat__head .avatar { width: 38px; height: 38px; background: rgba(255, 255, 255, .18); color: #fff; }
.chat__title { flex: 1; line-height: 1.3; }
.chat__title b { display: block; }
.chat__title small { opacity: .8; }
.chat__close { width: 32px; height: 32px; border: 0; background: rgba(255, 255, 255, .15); color: #fff; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.chat__close .icon { width: 16px; height: 16px; }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-alt); }
.msg { max-width: 88%; padding: 10px 14px; font-size: .93rem; line-height: 1.55; border-radius: 14px; }
.msg--ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.msg__src { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .84rem; }
.msg__src b { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.msg__src a { display: block; color: var(--accent); }
.msg__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .84rem; cursor: pointer; }
.quick button:hover { border-color: var(--accent); color: var(--accent); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; outline: none; }
.chat__form input:focus { border-color: var(--accent); }
.chat__form button { width: 44px; border: 0; border-radius: 50%; background: var(--primary); color: var(--on-primary); cursor: pointer; display: grid; place-items: center; }
.chat__note { padding: 0 14px 10px; font-size: .74rem; color: var(--muted); text-align: center; }

/* ---------- Version switcher (chỉ giai đoạn chọn thiết kế) ---------- */
.vswitch { position: fixed; left: 20px; bottom: 90px; z-index: 95; max-width: calc(100vw - 110px); overflow-x: auto; scrollbar-width: none; display: flex; align-items: center; gap: 4px; padding: 5px; background: #1b1b1b; color: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font: 500 13px/1 system-ui, "Segoe UI", sans-serif; letter-spacing: 0; }
.vswitch span { flex: none; white-space: nowrap; padding: 0 8px 0 10px; opacity: .6; }
.vswitch button { flex: none; white-space: nowrap; border: 0; background: none; color: #fff; padding: 8px 12px; border-radius: 999px; cursor: pointer; font: inherit; }
.vswitch button:hover { background: rgba(255, 255, 255, .12); }
.vswitch button.is-active { background: #fff; color: #111; }

.only-v3, .only-v4 { display: none; }
.with-aside--profile { grid-template-columns: 380px minmax(0, 1fr); }
.options--3 { grid-template-columns: repeat(3, 1fr); }
[data-remind].is-done { pointer-events: none; opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav { position: fixed; top: var(--nav-top, 114px); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); padding: 12px 20px 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; border-top: 1px solid var(--line); }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.02rem; }
  .nav__link .icon { display: none; }
  .dd { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; grid-template-columns: 1fr; display: none; }
  .nav__item.is-expanded .dd { display: grid; }
  .dd a small { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 960px) {
  .topbar__group--right { display: none; }
  .hero__in, .split, .live-feature, .with-aside, .with-aside--left, .portal { grid-template-columns: minmax(0, 1fr); }
  .service-scope { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__media { max-width: 520px; }
  .hero__card { left: 12px; }
  .aside-sticky { position: static; }
  .creds__in { grid-template-columns: 1fr 1fr; }
  .cred:nth-child(3) { border-left: 0; }
  .cred:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .areas, .grid--3, .grid--4, .contact-cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .portal__side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .with-aside--course > aside { order: -1; }
  .with-aside--profile { grid-template-columns: minmax(0, 1fr); }
  .with-aside--profile .ph--4x5 { max-width: 420px; }
  .options--3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .topbar__group a:nth-child(2) { display: none; }
  .header__actions .btn { display: none; }
  .logo__text small { display: none; }
  .creds__in, .areas, .grid--2, .grid--3, .grid--4, .steps, .contact-cards, .footer__top, .form-grid, .options, .learn-grid { grid-template-columns: 1fr; }
  .cred { border-left: 0 !important; border-top: 1px solid var(--line); }
  .cred:first-child { border-top: 0; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .post--row { grid-template-columns: 1fr; gap: 14px; }
  .schedule__row { grid-template-columns: 72px 1fr; }
  .schedule__row > :last-child { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .docs-list { columns: 1; }
  .countdown div { min-width: 0; flex: 1; }
  .fab-stack { right: 14px; bottom: 76px; }
  .fab--chat span { display: none; }
  .fab--chat { width: 50px; padding: 0; justify-content: center; }
  .vswitch { left: 12px; right: auto; bottom: 84px; max-width: calc(100vw - 90px); }
  .chat { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
