/* SPM Sakon Smart Space — Blue Digital theme */
:root {
  --navy: #061433;
  --navy-2: #0a1f4e;
  --navy-3: #10306f;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --sky: #38bdf8;
  --cyan: #22d3ee;
  --accent: #fbbf24;
  --bg: #f3f7fd;
  --surface: #ffffff;
  --ink: #0b1b3f;
  --text: #33415f;
  --muted: #64748b;
  --line: #dbe4f3;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 31, 78, .08);
  --shadow-lg: 0 24px 60px rgba(10, 31, 78, .16);
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--sky) 60%, var(--cyan) 100%);
  --font: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Kanit', 'IBM Plex Sans Thai', sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--text);
  background: var(--bg); overflow-x: hidden; padding-top: var(--header-h);
}
img, iframe, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-2); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 920px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 1rem/1.2 var(--font); color: #fff; background: var(--grad); background-size: 160% 100%;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .3); transition: transform .2s, box-shadow .2s, background-position .4s;
}
.btn:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 28px rgba(37, 99, 235, .4); }
.btn.small { padding: .55em 1.1em; font-size: .9rem; }
.btn.ghost { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .3); box-shadow: none; backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); }
.btn.outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); box-shadow: none; }
.btn.outline:hover { background: var(--blue); color: #fff; }
.btn.glow { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55), 0 10px 26px rgba(37, 99, 235, .4); animation: pulse 2.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5), 0 10px 26px rgba(37, 99, 235, .4); }
  70% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0), 0 10px 26px rgba(37, 99, 235, .4); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), 0 10px 26px rgba(37, 99, 235, .4); }
}

.chip {
  display: inline-flex; align-items: center; gap: .5em; margin: 0 0 18px;
  padding: .4em 1em; border-radius: 999px; font-size: .88rem; font-weight: 500; line-height: 1.5;
  color: #cfe9ff; background: rgba(56, 189, 248, .12); border: 1px solid rgba(56, 189, 248, .35);
}
.chip i { color: var(--cyan); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--blue); margin-bottom: .6em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(6, 20, 51, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(56, 189, 248, .15); transition: height .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { --header-h: 64px; height: 64px; background: rgba(6, 20, 51, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.logo-mark { width: 74px; height: auto; color: #fff; flex-shrink: 0; transition: width .3s; }
.scrolled .logo-mark { width: 64px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; font-style: italic; }
.brand-text em { color: var(--accent); }
.brand-text small { font-size: .74rem; color: #9fb6dd; }

.primary-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.primary-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px;
  color: #d6e4ff; font-size: .93rem; font-weight: 500; white-space: nowrap;
}
.primary-nav > ul > li > a .fa-chevron-down { font-size: .65rem; opacity: .7; }
.primary-nav > ul > li > a:hover, .primary-nav > ul > li.current > a { color: #fff; background: rgba(56, 189, 248, .14); }
.primary-nav > ul > li.current > a { box-shadow: inset 0 -2px 0 var(--cyan); }
.sub-toggle { display: none; }
.sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; list-style: none; margin: 0; padding: 8px;
  background: rgba(10, 31, 78, .97); border: 1px solid rgba(56, 189, 248, .2); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.sub-menu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; color: #d6e4ff; font-size: .92rem; }
.sub-menu a i { width: 18px; text-align: center; color: var(--cyan); }
.sub-menu a:hover, .sub-menu li.current a { background: rgba(56, 189, 248, .14); color: #fff; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  color: var(--navy); background: linear-gradient(135deg, var(--cyan), var(--sky)); font-weight: 600; font-size: .93rem;
  box-shadow: 0 0 20px rgba(34, 211, 238, .35);
}
.header-cta:hover { color: var(--navy); filter: brightness(1.08); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: transparent; cursor: pointer; padding: 11px 10px; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: .25s; }
.menu-toggle span + span { margin-top: 6px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #dbe7ff; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 70px) 0 120px;
  background:
    radial-gradient(60% 60% at 85% 30%, rgba(37, 99, 235, .45), transparent 70%),
    radial-gradient(45% 50% at 10% 90%, rgba(34, 211, 238, .22), transparent 70%),
    linear-gradient(160deg, #061433 0%, #0a1f4e 55%, #0d2a6b 100%);
  border-bottom-right-radius: clamp(60px, 10vw, 160px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(56, 189, 248, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .09) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  animation: grid-move 18s linear infinite;
}
@keyframes grid-move { to { background-position: 48px 48px, 48px 48px; } }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-title {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.05; margin: 0 0 .15em; letter-spacing: -.01em;
  background: linear-gradient(90deg, #fff 0%, #cfe9ff 50%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 500; color: var(--accent); margin-bottom: .7em; }
.hero-text { font-size: 1.08rem; max-width: 600px; color: #b9cbec; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 30px; }
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #a9bfe6; }
.hero-badges i { color: var(--cyan); margin-right: 6px; }
.hero-photo img { border-radius: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(56, 189, 248, .25); }

.orbit { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(56, 189, 248, .35); }
.orbit-ring.r1 { animation: spin 40s linear infinite; }
.orbit-ring.r2 { inset: 14%; border-style: solid; border-color: rgba(56, 189, 248, .18); animation: spin 28s linear infinite reverse; }
.orbit-ring.r3 { inset: 28%; border-color: rgba(34, 211, 238, .4); box-shadow: 0 0 60px rgba(34, 211, 238, .25) inset; }
.orbit-core {
  position: absolute; inset: 33%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(circle at 30% 30%, #1d4ed8, #0a1f4e 70%); box-shadow: 0 0 0 1px rgba(56, 189, 248, .4), 0 0 60px rgba(37, 99, 235, .6);
}
.orbit-core .logo-mark { width: 62%; }
.orbit-core span { font-family: var(--font-head); font-size: clamp(.5rem, 1.6vw, .7rem); letter-spacing: .2em; white-space: nowrap; color: var(--cyan); }
.orbit-node {
  position: absolute; width: 74px; height: 74px; margin: -37px; border-radius: 22px; display: grid; place-items: center; font-size: 1.7rem; color: #fff;
  background: linear-gradient(145deg, rgba(37, 99, 235, .9), rgba(14, 165, 233, .75)); border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35), 0 0 30px rgba(56, 189, 248, .35); animation: float 6s ease-in-out infinite;
}
.orbit-node.n1 { left: 50%; top: 2%; }
.orbit-node.n2 { left: 6%; top: 72%; animation-delay: -2s; }
.orbit-node.n3 { left: 94%; top: 72%; animation-delay: -4s; }
.orbit-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.orbit-dot.d1 { left: 85%; top: 18%; } .orbit-dot.d2 { left: 12%; top: 26%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); } .orbit-dot.d3 { left: 52%; top: 97%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }

/* ---------- quick actions ---------- */
.quick { position: relative; z-index: 2; margin-top: -64px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card {
  display: flex; flex-direction: column; gap: 4px; padding: 24px; border-radius: var(--radius); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.quick-card:hover { color: var(--ink); transform: translateY(-6px); border-color: var(--sky); }
.quick-card .qi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: var(--blue); background: #e8f0ff; margin-bottom: 10px; }
.quick-card strong { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; }
.quick-card small { color: var(--muted); }
.quick-card.primary { color: #fff; background: var(--grad); border-color: transparent; }
.quick-card.primary small { color: #e0f2fe; }
.quick-card.primary .qi { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- counters ---------- */
.counters { padding: 70px 0 20px; }
.counters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.counter { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: linear-gradient(180deg, #fff, #f1f6ff); border: 1px solid var(--line); }
.counter-number { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.1; color: var(--blue-2); }
.counter-number small { font-size: .38em; font-weight: 500; margin-left: 6px; color: var(--muted); }
.counter-title { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p:last-child { color: var(--muted); }

/* module cards */
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.module-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px 28px 24px; border-radius: 22px; color: #dbe7ff;
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); box-shadow: var(--shadow-lg); transition: transform .3s, box-shadow .3s; isolation: isolate;
}
.module-card::before {
  content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, var(--mc, rgba(37, 99, 235, .7)), transparent 70%); transition: transform .5s;
}
.module-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(56, 189, 248, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .1) 1px, transparent 1px); background-size: 28px 28px;
}
.module-card.m1 { --mc: rgba(37, 99, 235, .8); } .module-card.m2 { --mc: rgba(14, 165, 233, .75); } .module-card.m3 { --mc: rgba(99, 102, 241, .75); }
.module-card:hover { color: #dbe7ff; transform: translateY(-8px); box-shadow: 0 30px 70px rgba(10, 31, 78, .35), 0 0 0 1px rgba(56, 189, 248, .4); }
.module-card:hover::before { transform: scale(1.3); }
.mc-img { width: calc(100% + 56px); max-width: none; margin: -30px -28px 20px; aspect-ratio: 16/9; object-fit: cover; }
.mc-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); margin-bottom: 18px; }
.mc-sub { font-family: var(--font-head); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.module-card h3 { color: #fff; font-size: 1.35rem; margin: 4px 0 10px; }
.module-card p { font-size: .94rem; color: #a9bfe6; flex: 1; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.mc-foot .go { color: var(--accent); font-weight: 600; }
.mc-foot .go i { transition: transform .25s; }
.module-card:hover .go i { transform: translateX(5px); }

/* learning path */
.path-section { background: linear-gradient(180deg, #eaf1ff, var(--bg)); }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; position: relative; }
.path::before { content: ''; position: absolute; left: 10%; right: 10%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: .35; }
.path li { position: relative; text-align: center; padding: 0 6px; }
.pn {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; position: relative;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 0 0 8px #eaf1ff, 0 12px 26px rgba(37, 99, 235, .35);
}
.pt { font-weight: 500; color: var(--ink); font-size: .96rem; }

/* about pisa / why */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.why-list { display: grid; gap: 16px; }
.why { display: flex; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.why > span { flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.35rem; color: #fff; background: var(--grad); }
.why h3 { font-size: 1.1rem; margin-bottom: 4px; }
.why p { margin: 0; font-size: .94rem; color: var(--muted); }

.affiliation { padding: 10px 0 80px; }
.affiliation .container { display: flex; align-items: center; gap: 28px; padding: 28px 32px; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 1172px; }
.affiliation img { width: 96px; height: auto; flex-shrink: 0; }
.affiliation h2 { font-size: 1.35rem; margin: 0; }
.affiliation .eyebrow { margin: 0; }
.affiliation .muted { margin: 4px 0 0; font-size: .92rem; }

/* ---------- inner pages ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #cfdcf5; padding: 70px 0 80px; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 60px);
  background:
    radial-gradient(50% 80% at 90% 10%, rgba(37, 99, 235, .5), transparent 70%),
    linear-gradient(160deg, #061433, #0b2459);
  border-bottom-right-radius: clamp(50px, 8vw, 120px);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(56, 189, 248, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .08) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; margin-bottom: .3em; }
.page-hero .sub { max-width: 860px; font-size: 1.05rem; color: #b9cbec; margin: 0; }
.page-hero .sub strong { color: var(--accent); }
.page-hero .sub a { color: var(--cyan); }
.page-hero.compact { padding-bottom: 56px; }
.page-hero.compact h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #9fd8ff; margin-bottom: 18px; font-size: .95rem; }
.back-link:hover { color: #fff; }

/* steps (guide) */
.steps-v { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.steps-v li { display: flex; align-items: center; gap: 18px; padding: 20px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.sv-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; width: 44px; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sv-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: var(--blue); background: #e8f0ff; }
.sv-body h3 { margin: 0; font-size: 1.15rem; }
.sv-body a { font-size: .92rem; font-weight: 500; }
.note-card { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: #fff8e6; border: 1px solid #fde4a3; color: #6b4e00; }
.note-card > i { font-size: 1.6rem; color: #f59e0b; margin-top: 4px; }
.note-card strong { color: #b45309; }
.note-card p { margin: 0; }

/* test banners */
.test-banner {
  display: flex; align-items: center; gap: 20px; padding: 22px 28px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-2), var(--blue-2) 60%, var(--sky)); box-shadow: var(--shadow-lg); transition: transform .25s, box-shadow .25s;
}
.test-banner.post { background: linear-gradient(120deg, #0b1f4d, #4338ca 55%, #2563eb); }
.test-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .18) 50%, transparent 60%); transform: translateX(-100%); transition: transform .8s; }
.test-banner:hover { color: #fff; transform: translateY(-4px); }
.test-banner:hover::after { transform: translateX(100%); }
.tb-icon { flex-shrink: 0; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); }
.tb-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tb-text small { letter-spacing: .1em; font-size: .78rem; color: #bfe6ff; text-transform: uppercase; }
.tb-text strong { font-family: var(--font-head); font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.3; }
.tb-go { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-2); font-size: 1.1rem; transition: transform .25s; }
.test-banner:hover .tb-go { transform: translateX(4px); }

/* resources */
.dark-band { background: linear-gradient(160deg, #061433, #0b2459); }
.dark-band .section-head h2 { color: #fff; }
.dark-band .eyebrow { color: var(--cyan); }
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.res-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.res-card:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--sky); }
.rc-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; font-size: 1.3rem; color: #fff; background: var(--grad); }
.rc-icon img { width: 100%; height: 100%; object-fit: cover; }
.rc-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.45; }
.rc-text strong { font-family: var(--font-head); font-weight: 600; }
.rc-text small { color: var(--muted); }
.rc-go { color: var(--muted); font-size: .85rem; }
.dark-band .res-card { background: rgba(255, 255, 255, .05); border-color: rgba(56, 189, 248, .2); color: #fff; box-shadow: none; }
.dark-band .res-card small, .dark-band .rc-go { color: #9fb6dd; }
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 36px; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 120px; text-align: center; color: var(--ink); font-size: .86rem; line-height: 1.35; }
.partner .pc { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-size: 1.8rem; color: var(--blue); background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, border-color .3s, box-shadow .3s; }
.partner .pc img { width: 100%; height: 100%; object-fit: cover; }
.partner:hover .pc { transform: translateY(-6px) rotate(-4deg); border-color: var(--sky); box-shadow: 0 0 0 6px rgba(56, 189, 248, .15), var(--shadow); }
.dark-band .partner { color: #cfdcf5; }
.dark-band .partner .pc { background: rgba(255, 255, 255, .06); border-color: rgba(56, 189, 248, .3); color: var(--cyan); }

/* lessons grid (module page) */
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lesson-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.lesson-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lesson-card .cover { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--navy-2), var(--blue)); overflow: hidden; }
.lesson-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lesson-card:hover .cover img { transform: scale(1.06); }
.lesson-card .cover .ph { font-size: 3rem; color: rgba(255, 255, 255, .6); }
.lesson-card .play { position: absolute; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(37, 99, 235, .85); box-shadow: 0 0 0 8px rgba(255, 255, 255, .25); transition: transform .25s; }
.lesson-card:hover .play { transform: scale(1.12); }
.lesson-card .num { position: absolute; left: 12px; top: 12px; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(6, 20, 51, .75); backdrop-filter: blur(6px); }
.lesson-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.lesson-card h3 { font-size: 1.15rem; flex: 1; }
.lesson-card h3 a { color: var(--ink); }
.lesson-card h3 a:hover { color: var(--blue); }
.lc-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* lesson page */
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.lesson-main { display: grid; gap: 24px; }
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56, 189, 248, .25); }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-block { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; box-shadow: var(--shadow); }
.lesson-block h2 { font-size: 1.3rem; }
.lesson-block h2 i { color: var(--blue); }
.lesson-block .sheet { border-radius: 12px; margin: 0 auto; }
.lesson-side { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.lesson-side h2 { font-size: 1.05rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lesson-side ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lesson-side a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; color: var(--text); font-size: .95rem; line-height: 1.4; }
.lesson-side a span { flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: .85rem; background: #e8f0ff; color: var(--blue); }
.lesson-side a:hover { background: #f1f6ff; }
.lesson-side li.current a { background: linear-gradient(90deg, #e3edff, #f1f6ff); color: var(--ink); font-weight: 600; }
.lesson-side li.current a span { background: var(--grad); color: #fff; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: .2s; }
.pager a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.pager a.next, .pager a.main { color: #fff; background: var(--grad); border-color: transparent; }
.pager.three a.main { background: var(--navy-2); }
.pager a.next:hover, .pager a.main:hover { color: #fff; }

/* PISA page */
.pisa-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 36px; }
.pisa-facts div { text-align: center; padding: 20px 10px; border-radius: 16px; background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #a9bfe6; }
.pisa-facts b { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1.1; color: var(--cyan); }
.pisa-facts span { font-size: .88rem; }
.prose { background: #fff; padding: 34px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.04rem; }
.prose p { text-indent: 2em; }
.prose p.muted { text-indent: 0; margin: 0; }
.module-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.module-mini a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border-radius: 16px; text-align: center; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: .25s; }
.module-mini a:hover { border-color: var(--sky); transform: translateY(-4px); }
.module-mini i { font-size: 1.6rem; color: var(--blue); }
.module-mini span { font-family: var(--font-head); font-weight: 600; }
.module-mini small { color: var(--muted); font-size: .82rem; line-height: 1.4; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faq-side { padding: 30px; border-radius: 22px; color: #cfdcf5; background: linear-gradient(160deg, var(--navy-2), var(--navy)); position: sticky; top: calc(var(--header-h) + 20px); }
.faq-side h2 { color: #fff; }
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.accordion summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; color: var(--ink); position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e8f0ff; color: var(--blue); font-size: 1.2rem; transition: .25s; }
.accordion details[open] summary::after { content: '−'; background: var(--blue); color: #fff; }
.accordion details[open] summary { color: var(--blue); }
.accordion .answer { padding: 0 22px 20px; color: var(--text); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact-card { background: #fff; border-radius: 22px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.35rem; }
.icon-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.icon-list li { display: flex; gap: 14px; }
.icon-list i { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: #e8f0ff; }
.icon-list span { align-self: center; }
.socials { display: flex; gap: 10px; }
.social { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); transition: transform .2s; }
.social:hover { color: #fff; transform: translateY(-3px); }
.ext-list { margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ext-list summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); }
.ext-list summary i { color: var(--blue); margin-right: 6px; }
.ext-list table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ext-list td { padding: 8px 20px; border-top: 1px solid var(--line); }
.ext-list td.no { width: 70px; font-weight: 700; color: var(--blue); }
.map { width: 100%; height: 320px; border: 0; border-radius: 18px; margin-top: 18px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 16px; }
.form-grid .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 500; font-size: .93rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #f8fbff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); background: #fff; }
.hp { position: absolute; left: -9999px; }
.form-note { padding: 12px 16px; border-radius: 12px; }
.form-note.success { background: #e6f9f0; color: #05603a; }
.form-note.error { background: #fdecec; color: #9b1c1c; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; color: #a9bfe6; background: var(--navy); padding-top: 70px; font-size: .95rem; }
.footer-glow { position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 70%); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-about .brand { margin-bottom: 16px; }
.widget-title { color: #fff; font-size: 1.05rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--grad); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfdcf5; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .social { color: #fff; }
.site-footer p i.fa-phone, .site-footer p i.fa-envelope { color: var(--cyan); width: 18px; }
.visit-strip { position: relative; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; margin-top: 40px; padding: 16px 24px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(56, 189, 248, .15); font-size: .9rem; }
.visit-strip span:first-child { color: #fff; font-weight: 600; }
.visit-strip i { color: var(--cyan); }
.visit-strip b { color: var(--cyan); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin-left: 4px; }
.footer-below { margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-below-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; padding: 20px 24px; font-size: .86rem; }
.footer-below p { margin: 0; }
.footer-below .muted { color: #7489b3; }

.scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(37, 99, 235, .4); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; }
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { color: #fff; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.home .reveal { transform: translateY(-28px); }
.reveal.in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .9s both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .2s; } .hero-copy > :nth-child(4) { animation-delay: .3s; } .hero-copy > :nth-child(5) { animation-delay: .4s; } .hero-copy > :nth-child(6) { animation-delay: .5s; }
.hero-visual { animation: rise 1.1s .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); flex-direction: column; align-items: stretch; gap: 16px; padding: 20px 24px 40px;
    background: var(--navy); overflow-y: auto; transform: translateX(100%); transition: transform .3s; visibility: hidden;
  }
  .menu-open .primary-nav { transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .primary-nav > ul { flex-direction: column; gap: 4px; }
  .primary-nav > ul > li > a { padding: 12px 14px; font-size: 1rem; }
  .primary-nav > ul > li > a .fa-chevron-down { display: none; }
  .primary-nav > ul > li.current > a { box-shadow: inset 3px 0 0 var(--cyan); }
  .sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 0; width: 48px; height: 48px; background: transparent; border: 0; color: #d6e4ff; cursor: pointer; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; background: rgba(255, 255, 255, .04); margin: 4px 0 8px 12px; }
  .has-sub.open > .sub-menu { display: block; }
  .has-sub.open > .sub-toggle i { transform: rotate(180deg); }
  .header-cta { justify-content: center; padding: 14px; }
}
@media (max-width: 1000px) {
  .hero-inner, .about-grid, .contact-grid, .faq-grid, .lesson-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(320px, 80%); margin: 0 auto; }
  .orbit-node { width: 58px; height: 58px; margin: -29px; font-size: 1.3rem; border-radius: 16px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid, .lesson-grid, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .path { grid-template-columns: 1fr; gap: 12px; }
  .path::before { left: 33px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), var(--cyan)); }
  .path li { display: flex; align-items: center; gap: 18px; text-align: left; padding: 0; }
  .pn { margin: 0; flex-shrink: 0; }
  .lesson-side, .faq-side { position: static; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .brand-text small { display: none; }
  .logo-mark { width: 60px; }
  .hero { padding: calc(var(--header-h) + 30px) 0 100px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { width: 220px; }
  .orbit-node { width: 46px; height: 46px; margin: -23px; font-size: 1.05rem; border-radius: 13px; }
  .section { padding: 56px 0; }
  .quick-grid { gap: 12px; }
  .quick-card { padding: 18px; }
  .counters-grid { grid-template-columns: 1fr; }
  .module-grid, .lesson-grid, .res-grid, .module-mini, .form-grid .two { grid-template-columns: 1fr; }
  .pisa-facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .test-banner { padding: 18px; gap: 14px; }
  .tb-icon { width: 50px; height: 50px; font-size: 1.3rem; }
  .tb-go { display: none; }
  .steps-v li { padding: 16px; gap: 12px; }
  .sv-icon { display: none; }
  .affiliation .container { flex-direction: column; text-align: center; padding: 24px 18px; }
  .pager a { flex: 1 1 100%; justify-content: center; }
  .prose { padding: 22px; }
  .contact-card { padding: 22px; }
}
