/* ==========================================================================
   Kroo8 — Page layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page header (ใช้ร่วมทุกหน้าภายใน)
   -------------------------------------------------------------------------- */
.phead { padding-block: var(--s-7) var(--s-5); }
.phead h1 { font-size: var(--fs-2xl); margin-bottom: 6px; }
.phead .lead { max-width: 66ch; }
.phead-row { display: flex; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }

/* ==========================================================================
   HOME — hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: var(--s-10) var(--s-9); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 150%;
  background: var(--brand-wash); opacity: .85; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--page)); z-index: -1;
}
.hero-in { max-width: 880px; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5.4vw, var(--fs-hero));
  letter-spacing: -.03em; line-height: 1.14; margin-bottom: var(--s-4);
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--cat-food), var(--cat-clothing) 46%, var(--cat-modern));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(15px, 2vw, 19px); color: var(--text-2); max-width: 60ch; margin: 0 auto var(--s-7); line-height: 1.68; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s-5);
  padding: 6px 8px 6px 14px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--hairline); box-shadow: var(--sh-1);
  font-size: var(--fs-xs); font-weight: 650; color: var(--text-2);
  backdrop-filter: blur(6px);
}
.hero-badge .hb-tag { background: var(--btn-primary-bg); color: var(--btn-primary-fg); padding: 2px 9px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; }
.hero-search { max-width: 660px; margin: 0 auto var(--s-4); text-align: left; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--s-4); }
.hero-note { margin-top: var(--s-5); font-size: var(--fs-xs); color: var(--text-3); }

.trustrow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5);
  margin-top: var(--s-9);
}
.trust { display: flex; gap: var(--s-3); align-items: flex-start; text-align: left; }
.trust-ico {
  width: 40px; height: 40px; border-radius: var(--r-md); flex: 0 0 auto;
  background: var(--surface); border: 1px solid var(--hairline);
  display: grid; place-items: center; font-size: 19px; box-shadow: var(--sh-1);
}
.trust b { display: block; font-size: var(--fs-sm); margin-bottom: 2px; }
.trust span { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.6; }
@media (max-width: 760px) { .trustrow { grid-template-columns: 1fr; } }

/* category cards */
.catgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
@media (max-width: 1080px) { .catgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .catgrid { grid-template-columns: 1fr; } }

.catcard {
  display: flex; flex-direction: column; gap: 10px; padding: var(--s-5);
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--hairline); box-shadow: var(--sh-1);
  text-decoration: none; color: var(--text); min-height: 168px;
  position: relative; overflow: hidden;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.catcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent);
}
.catcard:hover { transform: translateY(-4px); box-shadow: var(--sh-3); text-decoration: none; }
.catcard .cc-ico {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--accent-soft); display: grid; place-items: center; font-size: 24px;
}
.catcard .cc-th { font-weight: 750; font-size: var(--fs-md); letter-spacing: -.01em; }
.catcard .cc-en { font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .02em; margin-top: -2px; }
.catcard .cc-n  { margin-top: auto; font-size: var(--fs-xs); color: var(--accent-ink); font-weight: 650; }

/* how it works */
.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); counter-reset: s5; }
@media (max-width: 1080px) { .steps5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .steps5 { grid-template-columns: 1fr; } }
.s5 { position: relative; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline); }
.s5::before {
  counter-increment: s5; content: counter(s5);
  position: absolute; top: -13px; left: var(--s-5);
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
}
.s5 h4 { margin: 8px 0 6px; font-size: var(--fs-base); }
.s5 p { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.68; margin: 0; }
.s5-time { margin-top: 10px; font-size: 11px; color: var(--text-3); font-weight: 650; }

/* ==========================================================================
   Course cards (library / home samples)
   ========================================================================== */
.ccard {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--hairline); box-shadow: var(--sh-1);
  text-decoration: none; color: var(--text);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.ccard:hover { transform: translateY(-3px); box-shadow: var(--sh-3); text-decoration: none; }
.ccard-art { aspect-ratio: 16 / 10; background: var(--surface-2); position: relative; }
.ccard-art svg { width: 100%; height: 100%; }
.ccard-art .st-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.ccard-b { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard-ttl { font-weight: 750; font-size: var(--fs-base); line-height: 1.42; letter-spacing: -.01em; }
.ccard-en { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.ccard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ccard-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-2); }

/* ==========================================================================
   CATEGORY page
   ========================================================================== */
.cathero {
  border-radius: var(--r-xl); padding: var(--s-7); position: relative; overflow: hidden;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.cathero-ico { font-size: 46px; line-height: 1; }
.cathero h1 { font-size: var(--fs-2xl); margin: var(--s-3) 0 4px; }
.cathero .en { font-size: var(--fs-sm); color: var(--accent-ink); font-weight: 650; letter-spacing: .04em; }
.cathero p { max-width: 62ch; margin-top: var(--s-4); color: var(--text-2); }
.cathero-deco { position: absolute; right: -30px; top: -30px; font-size: 190px; opacity: .07; line-height: 1; pointer-events: none; user-select: none; }

.subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-3); }
.subcard {
  display: flex; flex-direction: column; gap: 5px; padding: var(--s-4);
  border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--hairline); text-align: left; color: var(--text);
  transition: all var(--dur-1) var(--ease); text-decoration: none;
}
.subcard:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-2); text-decoration: none; }
.subcard b { font-size: var(--fs-sm); font-weight: 700; }
.subcard span { font-size: var(--fs-xs); color: var(--text-3); }
.subcard .go { margin-top: 4px; font-size: 11px; color: var(--accent-ink); font-weight: 700; }

/* ==========================================================================
   CREATE wizard
   ========================================================================== */
.wiz { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-7); align-items: start; }
@media (max-width: 1000px) { .wiz { grid-template-columns: 1fr; } }

.wizsteps { display: flex; align-items: center; gap: 0; margin-bottom: var(--s-7); }
.ws { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ws-dot {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  background: var(--surface-2); color: var(--text-3);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  border: 1.5px solid transparent; font-variant-numeric: tabular-nums;
}
.ws.on .ws-dot { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.ws.done .ws-dot { background: color-mix(in srgb, var(--st-good) 16%, var(--surface)); color: color-mix(in srgb, var(--st-good) 80%, var(--text)); border-color: color-mix(in srgb, var(--st-good) 40%, transparent); }
.ws-lbl { font-size: var(--fs-xs); font-weight: 650; color: var(--text-3); white-space: nowrap; }
.ws.on .ws-lbl, .ws.done .ws-lbl { color: var(--text); }
.ws-line { flex: 1 1 auto; height: 2px; background: var(--line); margin: 0 12px; min-width: 16px; border-radius: 2px; }
.ws-line.done { background: color-mix(in srgb, var(--st-good) 45%, var(--line)); }
@media (max-width: 780px) { .ws-lbl { display: none; } .ws-line { margin: 0 6px; } }

.wizcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: var(--s-7); box-shadow: var(--sh-1); }
@media (max-width: 560px) { .wizcard { padding: var(--s-5); } }
.wizcard h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.wiz-q { margin-bottom: var(--s-7); }
.wiz-q:last-child { margin-bottom: 0; }
.wiz-q > .lbl { display: block; margin-bottom: var(--s-3); }
.wiznav { display: flex; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }

.aside { position: sticky; top: calc(var(--topbar-h) + var(--s-4)); display: flex; flex-direction: column; gap: var(--s-4); }
@media (max-width: 1000px) { .aside { position: static; } }

/* outline editor */
.outline { display: flex; flex-direction: column; gap: 8px; }
.ol {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: all var(--dur-1) var(--ease);
}
.ol:hover { border-color: var(--text-3); }
.ol.dragging { opacity: .4; }
.ol.over { border-color: var(--accent); border-style: dashed; background: var(--accent-soft); }
.ol-grip { cursor: grab; color: var(--text-3); font-size: 15px; padding-top: 2px; line-height: 1.4; user-select: none; }
.ol-grip:active { cursor: grabbing; }
.ol-n {
  width: 25px; height: 25px; border-radius: var(--r-xs); flex: 0 0 auto;
  background: var(--surface-2); color: var(--text-2);
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  font-variant-numeric: tabular-nums; margin-top: 1px;
}
.ol-main { flex: 1; min-width: 0; }
.ol-ttl {
  font-weight: 650; font-size: var(--fs-sm); line-height: 1.5;
  border: 0; background: transparent; width: 100%; padding: 2px 4px;
  border-radius: var(--r-xs); margin-left: -4px; color: var(--text);
}
.ol-ttl:hover { background: var(--surface-2); }
.ol-ttl:focus { background: var(--surface-2); outline: 2px solid var(--focus); }
.ol-sub { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.55; margin-top: 2px; }
.ol-acts { display: flex; gap: 2px; flex: 0 0 auto; }

/* cost estimate box */
.estbox { display: flex; flex-direction: column; gap: 10px; }
.est-row { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); }
.est-row .v { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 800; font-size: var(--fs-base); }

/* ==========================================================================
   PROGRESS page
   ========================================================================== */
.jobhead { display: flex; gap: var(--s-7); align-items: center; flex-wrap: wrap; }
.jobsteps { display: flex; flex-direction: column; gap: 2px; }
.js {
  display: flex; gap: var(--s-4); padding: var(--s-4);
  border-radius: var(--r-md); align-items: flex-start;
  transition: background var(--dur-2) var(--ease);
}
.js.active { background: var(--accent-soft); }
.js-ico {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--surface-2); color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.js.done .js-ico { background: color-mix(in srgb, var(--st-good) 16%, var(--surface)); color: color-mix(in srgb, var(--st-good) 78%, var(--text)); }
.js.active .js-ico { background: var(--btn-primary-bg); color: var(--btn-primary-fg); }
.js-main { flex: 1; min-width: 0; }
.js-ttl { font-weight: 700; font-size: var(--fs-sm); display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.js-det { font-size: var(--fs-xs); color: var(--text-2); margin-top: 3px; line-height: 1.6; }
.js-api { font-size: 10.5px; color: var(--text-3); font-family: var(--font-mono); }
.js-bar { margin-top: 9px; }
.js.pending { opacity: .55; }

/* ==========================================================================
   COURSE reader
   ========================================================================== */
.reader { display: grid; grid-template-columns: 268px minmax(0, 1fr) 250px; gap: var(--s-6); align-items: start; }
@media (max-width: 1240px) { .reader { grid-template-columns: 248px minmax(0, 1fr); } .reader-rail { display: none; } }
@media (max-width: 900px)  { .reader { grid-template-columns: 1fr; } .reader-toc { display: none; } }

.reader-toc, .reader-rail {
  position: sticky; top: calc(var(--topbar-h) + var(--s-4));
  max-height: calc(100vh - var(--topbar-h) - var(--s-7));
  overflow-y: auto; padding-right: 4px;
}
.toc-head { padding: 0 var(--s-3) var(--s-3); }
.toclist { display: flex; flex-direction: column; gap: 1px; }
.toc-i {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px;
  border-radius: var(--r-sm); text-decoration: none; color: var(--text-2);
  font-size: var(--fs-sm); line-height: 1.5; transition: background var(--dur-1) var(--ease);
}
.toc-i:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.toc-i[aria-current="true"] { background: var(--accent-soft); color: var(--text); font-weight: 650; }
.toc-n { font-size: 11px; font-weight: 800; color: var(--text-3); min-width: 17px; padding-top: 2px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.toc-i[aria-current="true"] .toc-n { color: var(--accent-ink); }
.toc-ck { color: var(--st-good); font-size: 12px; flex: 0 0 auto; padding-top: 2px; }

.readerbar {
  position: sticky; top: var(--topbar-h); z-index: 40;
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  padding: 10px 0; margin-bottom: var(--s-4);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.lesson { font-size: var(--reader-fs); line-height: 1.78; }
.lesson h2 { font-size: clamp(24px, 3.4vw, 33px); margin-bottom: var(--s-3); letter-spacing: -.025em; }
.lesson h3 { font-size: 1.28em; margin: var(--s-8) 0 var(--s-3); letter-spacing: -.015em; }
.lesson h4 { font-size: 1.06em; margin: var(--s-6) 0 var(--s-2); }
.lesson p  { margin: 0 0 1.15em; max-width: 74ch; }
.lesson ul, .lesson ol { max-width: 72ch; }
.lesson > *:first-child { margin-top: 0; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-6); }

.pardual { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-bottom: 1.15em; }
.pardual > div { min-width: 0; }
.pardual .dl-tag { font-size: 10px; font-weight: 800; letter-spacing: .09em; color: var(--text-3); display: block; margin-bottom: 5px; }
@media (max-width: 760px) { .pardual { grid-template-columns: 1fr; gap: var(--s-3); } }

.lesson-tbl { margin: var(--s-6) 0; }
.lesson-tbl table { font-size: .93em; }
.lesson-tbl caption { caption-side: bottom; font-size: var(--fs-xs); color: var(--text-2); text-align: left; padding-top: 9px; line-height: 1.6; }

.srcbox { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.srclist { display: flex; flex-direction: column; gap: 10px; font-size: var(--fs-sm); }
.src { display: flex; gap: 11px; align-items: flex-start; }
.src-n { flex: 0 0 auto; }
.src-t { line-height: 1.55; }
.src-u { font-size: var(--fs-xs); color: var(--text-3); word-break: break-all; }

.lessnav { display: flex; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); flex-wrap: wrap; }

.rail-box { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--s-4); }
.rail-box h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; font-weight: 750; }
.rail-box + .rail-box { margin-top: var(--s-3); }

/* ==========================================================================
   EBOOK page
   ========================================================================== */
.ebk { display: grid; grid-template-columns: 1fr 380px; gap: var(--s-7); align-items: start; }
@media (max-width: 1000px) { .ebk { grid-template-columns: 1fr; } }
.bookshell {
  background: var(--surface-2); border-radius: var(--r-xl); padding: var(--s-8);
  display: grid; place-items: center; border: 1px solid var(--hairline);
}
.book3d {
  width: min(340px, 74vw); aspect-ratio: 1 / 1.414; position: relative;
  border-radius: 5px 12px 12px 5px; overflow: hidden;
  box-shadow: var(--sh-4), -1px 0 0 2px color-mix(in srgb, #000 12%, transparent) inset;
  transform: perspective(1400px) rotateY(-11deg) rotateX(2deg);
  transition: transform var(--dur-3) var(--ease-out);
}
.book3d:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(0); }
.book3d svg { width: 100%; height: 100%; }
.book3d::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 16px;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.04) 62%, transparent);
  pointer-events: none;
}
.fmtgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.qcheck { display: flex; flex-direction: column; gap: 9px; }
.qc { display: flex; gap: 9px; align-items: flex-start; font-size: var(--fs-sm); }
.qc-ok { color: var(--st-good); flex: 0 0 auto; }
.qc-no { color: var(--st-warn); flex: 0 0 auto; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6);
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--hairline); box-shadow: var(--sh-1); position: relative;
}
.plan.feat { border-color: var(--btn-primary-bg); border-width: 1.5px; box-shadow: var(--sh-3); }
.plan.cur::after {
  content: "แผนปัจจุบัน"; position: absolute; top: -11px; right: var(--s-5);
  background: var(--st-good); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 11px; border-radius: var(--r-pill);
}
.plan-tag {
  position: absolute; top: -11px; left: var(--s-5);
  background: var(--btn-primary-bg); color: var(--btn-primary-fg);
  font-size: 10.5px; font-weight: 700; padding: 3px 11px; border-radius: var(--r-pill);
}
.plan-name { font-size: var(--fs-md); font-weight: 750; }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.plan-feats { display: flex; flex-direction: column; gap: 9px; font-size: var(--fs-sm); flex: 1; }
.plan-feats .pf { display: flex; gap: 9px; align-items: flex-start; line-height: 1.6; }
.plan-feats .pf i { color: var(--st-good); flex: 0 0 auto; font-style: normal; }
.plan-feats .pf.off { color: var(--text-3); }
.plan-feats .pf.off i { color: var(--text-3); }

/* ==========================================================================
   STUDIO
   ========================================================================== */
.tilerow { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
@media (max-width: 1180px) { .tilerow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .tilerow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .tilerow { grid-template-columns: 1fr; } }
.studio-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s-4); }
@media (max-width: 1000px) { .studio-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CERTIFICATE
   ========================================================================== */
.certwrap { display: grid; place-items: center; padding-block: var(--s-6); }
.cert {
  width: min(880px, 100%); aspect-ratio: 1.414 / 1; position: relative;
  background: #FEFDFB; color: #1B1E26; border-radius: var(--r-md);
  box-shadow: var(--sh-4); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5.5%;
}
.cert-frame { position: absolute; inset: 2.2%; border: 2px solid var(--accent); border-radius: 6px; pointer-events: none; }
.cert-frame::after { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 4px; }
.cert-deco { position: absolute; font-size: 210px; opacity: .05; right: -20px; bottom: -50px; line-height: 1; user-select: none; }
.cert-kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 75%, #000); font-weight: 700; }
.cert-h { font-family: var(--font-book); font-size: clamp(22px, 3.6vw, 40px); font-weight: 800; margin: 2.2% 0 1%; letter-spacing: -.02em; }
.cert-name { font-family: var(--font-book); font-size: clamp(24px, 4.2vw, 44px); font-weight: 800; border-bottom: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); padding: 0 4% 6px; margin: 1.5% 0 2.5%; }
.cert-course { font-size: clamp(13px, 1.7vw, 18px); font-weight: 700; max-width: 78%; line-height: 1.5; }
.cert-course .en { display: block; font-weight: 500; font-size: .84em; color: #545B6C; margin-top: 4px; }
.cert-foot { display: flex; gap: 8%; justify-content: center; align-items: flex-end; margin-top: 3.5%; width: 100%; font-size: clamp(9px, 1.15vw, 12px); color: #545B6C; }
.cert-sig { min-width: 26%; }
.cert-sig .line { border-top: 1px solid #545B6C; margin-bottom: 5px; }
.cert-seal {
  width: clamp(52px, 8vw, 84px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--accent); display: grid; place-items: center;
  color: var(--accent); font-size: clamp(18px, 3vw, 30px);
}

/* ==========================================================================
   SETTINGS
   ========================================================================== */
.setrow {
  display: flex; gap: var(--s-5); align-items: center; justify-content: space-between;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.setrow:last-child { border-bottom: 0; }
.setrow-t { flex: 1; min-width: 200px; }
.setrow-t b { display: block; font-size: var(--fs-sm); }
.setrow-t span { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.6; }

/* ==========================================================================
   FAQ / feature blocks
   ========================================================================== */
.featgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
@media (max-width: 900px) { .featgrid { grid-template-columns: 1fr; } }
.feat { padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hairline); }
.feat-ico { font-size: 26px; margin-bottom: var(--s-3); }
.feat h4 { margin-bottom: 6px; font-size: var(--fs-base); }
.feat p { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.7; margin: 0; }

.sechead { margin-bottom: var(--s-6); }
.sechead .eyebrow { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.sechead h2 { font-size: clamp(22px, 3.2vw, 31px); letter-spacing: -.025em; }
.sechead p { margin-top: 10px; color: var(--text-2); max-width: 66ch; }
.sechead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
