:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #526173;
  --line: #d8e0ea;
  --paper: #f6f8fb;
  --blue: #1f5aa6;
  --red: #d62828;
  --green: #1f7a4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero,
.panel,
.sources {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(20 33 61 / 0.07);
}

.hero {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.lead,
.panel-head p,
.hero-card p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.hero-card {
  display: grid;
  align-content: center;
  border-radius: 8px;
  background: #edf4ff;
  padding: 22px;
}

.hero-card span,
.panel-head p {
  font-size: 13px;
}

.hero-card strong,
.score {
  display: block;
  color: var(--blue);
  font-size: 48px;
  line-height: 1;
}

.grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.two {
  grid-template-columns: 1fr 1fr;
}

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  min-width: 0;
  padding: 22px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.fields {
  display: grid;
  gap: 14px;
}

.fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fields.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

input,
select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 8px 10px;
}

input:focus,
select:focus {
  border-color: var(--blue);
  outline: 2px solid rgb(31 90 166 / 0.18);
}

.checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.checks label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font-weight: 800;
}

.checks input {
  min-height: 0;
  width: 16px;
  height: 16px;
  padding: 0;
}

.language-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.language-block + .language-block {
  margin-top: 16px;
}

.language-block h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.result .score {
  margin-bottom: 16px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.row strong {
  color: var(--ink);
}

.requirements {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.requirements li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.requirements li.ok {
  border-color: rgb(31 122 77 / 0.35);
  background: rgb(31 122 77 / 0.08);
  color: var(--ink);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.program-card,
.capacity-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.program-card.ready {
  border-color: rgb(31 122 77 / 0.35);
  background: rgb(31 122 77 / 0.06);
}

.program-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.program-top strong {
  color: var(--blue);
}

.program-card.ready .program-top strong {
  color: var(--green);
}

.program-card h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.program-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.program-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.capacity-card h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.capacity-number {
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.capacity-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.program-note {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
}

th {
  background: #edf4ff;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 18px 22px;
}

.sources h2 {
  margin: 0 12px 0 0;
  font-size: 18px;
}

.sources a {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  padding: 9px 11px;
  text-decoration: none;
}

.sources a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 900px) {
  .hero,
  .two,
  .three,
  .fields.two,
  .fields.four,
  .checks,
  .program-grid,
  .capacity-grid {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }
}
