:root{
  --bg:#f7f8fb;
  --card:#ffffff;
  --ink:#1d2433;
  --muted:#5b6474;
  --line:#dfe4ec;
  --accent:#244a8f;
  --accent2:#6b8fd6;
  --soft:#eef3ff;
  --soft2:#f9fbff;
  --max:1080px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
header{
  background:linear-gradient(135deg,#19376d,#315fa8 58%,#8ca9e6);
  color:white;
  padding:46px 22px 34px;
}
.wrap{max-width:var(--max);margin:0 auto}
.hero{
  display:grid;
  grid-template-columns: 150px 1fr;
  gap:28px;
  align-items:center;
}
.photo{
  width:150px;height:150px;border-radius:50%;
  background:rgba(255,255,255,.18);
  border:3px solid rgba(255,255,255,.75);
  display:flex;align-items:center;justify-content:center;
  font-size:42px;font-weight:700;
  overflow:hidden;
}
.photo img{width:100%;height:100%;object-fit:cover;display:block}
h1{font-size:clamp(2rem,4vw,3.25rem);line-height:1.08;margin:0 0 12px}
.subtitle{font-size:1.15rem;margin:0;color:#edf3ff;max-width:780px}
.badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.badge{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.34);padding:6px 10px;border-radius:999px;font-size:.92rem}
nav{
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,.95);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(8px);
}
nav .wrap{display:flex;gap:18px;align-items:center;overflow:auto;padding:11px 22px}
nav a{white-space:nowrap;color:#253149;font-weight:600;font-size:.94rem}
main{padding:30px 22px 60px}
section,.page-card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:26px;margin:0 auto 22px;box-shadow:0 8px 24px rgba(27,43,72,.05)}
h2{font-size:1.55rem;margin:0 0 15px;color:#162d59}
h3{font-size:1.08rem;margin:22px 0 8px;color:#253149}
p{margin:0 0 12px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.three-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.mini-card{background:var(--soft);border:1px solid #d8e4ff;border-radius:16px;padding:16px}
.stat{font-size:2rem;font-weight:800;color:#162d59;margin-bottom:2px}
ul{margin:8px 0 0 21px;padding:0}
li{margin:6px 0}
.pub,.student-item,.course-item{padding:14px 0;border-top:1px solid var(--line)}
.pub:first-of-type,.student-item:first-of-type,.course-item:first-of-type{border-top:0}
.pub-title,.student-name,.course-title{font-weight:700;color:#17294d}
.pub-meta,.student-meta,.course-meta{color:var(--muted);font-size:.96rem;margin-top:3px}
.note{font-size:.95rem;color:var(--muted)}
.button-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.button{
  display:inline-block;
  padding:9px 13px;
  background:var(--accent);
  color:white;
  border-radius:999px;
  font-weight:700;
}
.button.secondary{background:#eef3ff;color:#173469;border:1px solid #d8e4ff}
.button:hover{text-decoration:none;filter:brightness(.96)}
footer{border-top:1px solid var(--line);padding:24px 22px;color:var(--muted);text-align:center;background:white}
.small-caps{letter-spacing:.05em;text-transform:uppercase;font-size:.78rem;font-weight:800;color:var(--muted)}
@media(max-width:820px){
  .hero{grid-template-columns:1fr;text-align:center;justify-items:center}
  .grid,.three-grid{grid-template-columns:1fr}
  header{padding-top:34px}
  section,.page-card{padding:21px}
}
