* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f9fb;
  color: #102236;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid #d9e3ea;
  background: rgba(255, 255, 255, .98);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #0b3153;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0b3153;
  color: #fff;
  font-weight: 950;
}

.brand b,
.brand small {
  display: block;
}

.brand b {
  font-size: 20px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: #687483;
  font-size: 13px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #d6e0e7;
  border-radius: 999px;
  background: #fff;
  color: #123653;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

main {
  overflow: hidden;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  gap: 24px;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) clamp(18px, 4vw, 58px) 24px;
  background:
    radial-gradient(circle at 65% 38%, rgba(210, 148, 72, .18) 0 9%, transparent 10%),
    radial-gradient(circle at 75% 52%, rgba(26, 122, 124, .16) 0 9%, transparent 10%),
    linear-gradient(110deg, #ffffff 0 47%, #e7f2f6 47% 75%, #fff8ed 75%);
}

.breadcrumb {
  margin: 0 0 22px;
  color: #687483;
  font-size: 14px;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #e3f5f3;
  color: #087672;
  font-size: 15px;
  font-weight: 950;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: #0b3153;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.08;
}

.lead {
  max-width: 820px;
  margin-bottom: 24px;
  color: #223a50;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 720;
  line-height: 1.75;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 310px));
  gap: 14px;
}

.action-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 19px;
  border: 2px solid #9dd7d2;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(12, 42, 66, .08);
}

.action-card span {
  font-size: 23px;
  font-weight: 950;
}

.action-card b {
  color: #425466;
  font-size: 15px;
  line-height: 1.45;
}

.action-teal span {
  color: #087672;
}

.action-blue {
  border-color: #79a8d7;
}

.action-blue span {
  color: #0f5591;
}

.diagnosis-card,
.record-card,
.quick-result,
.panel,
.training-section,
.consult-section,
.memo-section,
.tool-section,
.related-section,
.sources-section {
  border: 1px solid #cad8e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(12, 42, 66, .07);
}

.diagnosis-card {
  align-self: start;
  padding: 24px;
}

.card-kicker,
.section-head p {
  margin-bottom: 8px;
  color: #087672;
  font-size: 14px;
  font-weight: 950;
}

.diagnosis-card h2,
.section-head h2 {
  margin-bottom: 16px;
  color: #0b3153;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.22;
}

.check-list,
.bad-list,
.consult-list,
.sources-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d9e1e7;
  border-radius: 7px;
  background: #fff;
  color: #263b4d;
  font-size: 15px;
  font-weight: 800;
}

.check-list input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hint {
  margin: 0;
  padding: 11px 13px;
  border-radius: 7px;
  background: #fff2d9;
  color: #7c4a08;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.record-section,
.content-grid,
.training-section,
.consult-section,
.memo-section,
.tool-section,
.related-section,
.sources-section {
  max-width: 1500px;
  margin: 0 auto 22px;
}

.record-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .55fr);
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 58px);
}

.record-card,
.quick-result,
.panel,
.training-section,
.consult-section,
.memo-section,
.tool-section,
.related-section,
.sources-section {
  padding: 24px;
}

.record-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: record;
}

.record-steps li {
  padding: 18px;
  border: 1px solid #d6e3e7;
  border-radius: 8px;
  background: #f5fbfb;
}

.record-steps b {
  display: block;
  margin-bottom: 8px;
  color: #0b3153;
  font-size: 20px;
}

.record-steps span,
.quick-result p,
.training-grid p,
.consult-section p,
.tool-grid span,
.sources-section li,
.source-note {
  color: #2d4458;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.75;
}

.quick-result span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff2d9;
  color: #8c520c;
  font-weight: 950;
}

.quick-result h2 {
  margin-bottom: 12px;
  color: #0b3153;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.25;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 58px);
}

.panel.wide {
  grid-row: span 2;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d7e2e8;
  border-radius: 7px;
}

table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid #e2e9ed;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.65;
}

thead th {
  background: #edf6f7;
  color: #0b3153;
  font-weight: 950;
}

tbody th {
  color: #087672;
  font-size: 17px;
  white-space: nowrap;
}

.today {
  border-color: #6fc5be;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  gap: 4px;
  padding: 13px 14px 13px 52px;
  border-radius: 7px;
  background: #f0faf9;
  position: relative;
}

.steps li::before {
  content: counter(steps);
  counter-increment: steps;
  position: absolute;
  left: 14px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #087672;
  color: #fff;
  font-weight: 950;
}

.steps b {
  font-size: 18px;
}

.steps span {
  color: #3d5263;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.warning {
  border-color: #e05b51;
}

.warning .section-head p,
.warning .section-head h2 {
  color: #bb2b22;
}

.bad-list {
  display: grid;
  gap: 10px;
}

.bad-list li {
  padding: 12px 14px 12px 42px;
  border-radius: 7px;
  background: #fff4f2;
  color: #4b2b27;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
  position: relative;
}

.bad-list li::before {
  content: "×";
  position: absolute;
  left: 15px;
  color: #d62f28;
  font-size: 22px;
  font-weight: 950;
}

.training-section,
.consult-section,
.tool-section,
.related-section,
.sources-section {
  margin-right: auto;
  margin-left: auto;
}

.training-grid,
.tool-grid,
.related-grid {
  display: grid;
  gap: 14px;
}

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

.training-grid article {
  padding: 20px;
  border: 1px solid #d7e3e8;
  border-radius: 8px;
  background: #fff;
}

.training-grid span {
  display: inline-flex;
  margin-bottom: 9px;
  color: #087672;
  font-size: 13px;
  font-weight: 950;
}

.training-grid h3 {
  margin-bottom: 8px;
  color: #0b3153;
  font-size: 21px;
  line-height: 1.35;
}

.consult-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  gap: 18px;
}

.consult-list {
  display: grid;
  gap: 10px;
}

.consult-list li {
  padding: 12px 14px 12px 42px;
  border-radius: 7px;
  background: #f1f8fb;
  color: #20384d;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
  position: relative;
}

.consult-list li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  color: #087672;
  font-weight: 950;
}

.consult-section aside {
  padding: 20px;
  border: 1px solid #d7e3e8;
  border-radius: 8px;
  background: #f9fdff;
}

.consult-section h3 {
  margin-bottom: 10px;
  color: #0b3153;
  font-size: 22px;
}

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

.memo-grid article {
  padding: 20px;
  border: 1px solid #d7e3e8;
  border-radius: 8px;
  background: #fff;
}

.memo-grid h3 {
  margin-bottom: 10px;
  color: #0b3153;
  font-size: 21px;
  line-height: 1.35;
}

.memo-grid p {
  color: #2d4458;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.75;
}

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

.tool-grid a,
.related-grid a {
  display: block;
  padding: 18px;
  border: 1px solid #d6e2e8;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.tool-grid b {
  display: block;
  margin-bottom: 7px;
  color: #0b3153;
  font-size: 19px;
  font-weight: 950;
}

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

.related-grid a {
  color: #0f5591;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.55;
}

.sources-section li {
  padding: 12px 0;
  border-bottom: 1px solid #e0e8ed;
}

.sources-section li:last-child {
  border-bottom: 0;
}

.sources-section a {
  color: #0f5591;
  font-weight: 850;
}

.source-note {
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #fff6e8;
  color: #6f4b1a;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 64px);
  background: #0b3153;
  color: #fff;
}

.site-footer p {
  margin: 0;
  font-weight: 950;
}

.site-footer a {
  font-weight: 900;
}

@media (max-width: 1080px) {
  .tool-grid,
  .training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .record-section,
  .content-grid,
  .consult-section,
  .memo-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background: linear-gradient(180deg, #ffffff 0, #edf7f8 100%);
  }

  .diagnosis-card {
    width: 100%;
  }

  .record-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand b {
    font-size: 17px;
  }

  .brand small {
    font-size: 12px;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .hero {
    padding: 26px 16px 20px;
  }

  h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .tool-grid,
  .training-grid {
    grid-template-columns: 1fr;
  }

  .record-section,
  .content-grid {
    padding-right: 16px;
    padding-left: 16px;
  }

  .training-section,
  .consult-section,
  .tool-section,
  .related-section,
  .sources-section {
    margin-right: 16px;
    margin-left: 16px;
    padding: 18px;
  }

  .diagnosis-card,
  .record-card,
  .quick-result,
  .panel {
    padding: 18px;
  }

  table {
    min-width: 780px;
  }
}
