:root {
  --ink: #111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-weight: 420;
}
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid #f0f0f0;
}
.word {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.top nav { display: flex; gap: 28px; margin: 0 auto; color: #3a3a3a; font-size: 15px; }
.top nav a:hover { color: #000; }
.lang-switch { display: flex; background: #111; border-radius: 12px; padding: 4px; }
.lang-btn {
  border: 0; background: transparent; color: #fff;
  border-radius: 9px; padding: 8px 12px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.lang-btn.active { background: #fff; color: #111; }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 40px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 72px;
  align-items: end;
}
.copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(64px, 8vw, 108px);
  line-height: .88;
  letter-spacing: -.045em;
}
.lede { max-width: 34rem; margin: 28px 0 0; font-size: 20px; line-height: 1.45; color: #2b2b2b; }
.mark-id { font-weight: 600; border-bottom: 1.5px solid #111; }
.mark-hint { color: #333; }

.panel {
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 50px -36px rgba(0,0,0,.35);
}
.panel label { display: block; margin-bottom: 10px; }
.panel label span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 4px; }
.panel input {
  width: 100%;
  border: 1px solid #e4e4e4;
  background: #fafafa;
  border-radius: 12px;
  padding: 14px 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.panel input:hover, .panel input:focus {
  background: #fff;
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}
.hint { margin: 4px 4px 12px; font-size: 13px; color: var(--muted); }
.panel button, .verified-reset {
  width: 100%;
  border: 0;
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.panel button:hover, .verified-reset:hover { background: #000; }
.err { color: #9b2c2c; font-size: 14px; }
.verified-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.verified-check {
  width: 28px; height: 28px; border-radius: 50%;
  background: #111; color: #fff; display: grid; place-items: center;
}
.verified-kicker { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.verified-title { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.verified-fields { display: grid; gap: 8px; margin-bottom: 14px; }
.verified-fields div { display: flex; justify-content: space-between; font-size: 14px; border-bottom: 1px solid #f0f0f0; padding-bottom: 6px; }
.verified-fields span { color: var(--muted); }

.results, .support, footer { max-width: 1180px; margin: 0 auto; padding: 10px 28px 24px; }
.profile { display: flex; gap: 16px; align-items: center; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; background: #111; color: #fff;
  display: grid; place-items: center; font-family: var(--serif);
}
.profile h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 36px; }
.meta { margin: 4px 0 0; color: var(--muted); }
.results-head { display: flex; justify-content: space-between; align-items: end; margin: 28px 0 12px; }
.results-head h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 40px; }
.stats { display: flex; gap: 8px; }
.chip { border: 1px solid #ececec; border-radius: 999px; padding: 6px 10px; font-size: 13px; }
.courses { display: grid; gap: 10px; }
.course-card {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  border: 1px solid #f0f0f0; border-radius: 16px; padding: 16px 18px;
}
.course-card h4 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.badge { margin-left: 8px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #666; }
.grade-pills { display: flex; gap: 8px; }
.pill { min-width: 64px; text-align: center; border: 1px solid #ececec; border-radius: 10px; padding: 8px 10px; font-weight: 600; }
.support { display: grid; grid-template-columns: 1.4fr .7fr; gap: 32px; padding-top: 48px; }
.support h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 42px; }
footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; border-top: 1px solid #f3f3f3; padding-top: 18px; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; }
.modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.modal-card { position: relative; background: #fff; border-radius: 16px; padding: 24px; width: min(440px, 92vw); }

@media (max-width: 860px) {
  .top nav { display: none; }
  .hero, .support, .course-card { grid-template-columns: 1fr; display: grid; }
  .hero { gap: 28px; padding-top: 36px; }
  .copy h1 { font-size: 58px; }
}
