.lab-hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid #bcd0f0;
  border-radius: 999px;
  color: #1455d9;
  background: #f4f8ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lab-hero-mark::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00a88f;
  content: "";
}

.lab-method-card,
.lab-tool,
.lab-result,
.lab-case {
  border: 1px solid #d6e2f1;
  border-radius: 14px;
  background: #fff;
}

.lab-method-card,
.lab-case {
  padding: 24px;
}

.lab-method-card h3,
.lab-case h3 {
  margin-top: 0;
}

.lab-version {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.lab-version div {
  padding: 16px;
  border-radius: 12px;
  background: #eef5ff;
}

.lab-version strong,
.lab-version span {
  display: block;
}

.lab-version strong {
  margin-bottom: 5px;
  color: #071936;
}

.lab-version span {
  color: #526986;
  font-size: 14px;
}

.lab-tool {
  margin: 26px 0;
  padding: 28px;
  box-shadow: 0 16px 42px rgba(7, 25, 54, .07);
}

.lab-tool-head {
  margin-bottom: 22px;
}

.lab-tool-head h2,
.lab-tool-head h3 {
  margin: 0 0 8px;
}

.lab-tool-head p {
  margin: 0;
  color: #526986;
}

.lab-score-group {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #f8fbff;
}

.lab-score-group legend {
  padding: 0 8px;
  color: #071936;
  font-weight: 900;
}

.lab-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid #e3ebf5;
  cursor: pointer;
}

.lab-check:last-child {
  border-bottom: 0;
}

.lab-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #1f5be3;
}

.lab-check b,
.lab-check small {
  display: block;
}

.lab-check small {
  margin-top: 4px;
  color: #61748e;
  line-height: 1.45;
}

.lab-points {
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #1455d9;
  background: #e8f0ff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.lab-result {
  position: sticky;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  border-color: #9fbbed;
  background: rgba(240, 246, 255, .97);
  box-shadow: 0 14px 34px rgba(7, 25, 54, .12);
  backdrop-filter: blur(10px);
}

.lab-score-number {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  color: #fff;
  background: #1f5be3;
  font-size: 27px;
  font-weight: 900;
}

.lab-result h3,
.lab-result p {
  margin: 0;
}

.lab-result p {
  margin-top: 5px;
  color: #526986;
  line-height: 1.5;
}

.lab-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lab-field {
  display: grid;
  gap: 7px;
}

.lab-field span {
  color: #193451;
  font-weight: 800;
}

.lab-field small {
  color: #667a93;
  line-height: 1.45;
}

.lab-field input,
.lab-field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bfcfe3;
  border-radius: 9px;
  color: #071936;
  background: #fff;
  font: inherit;
}

.lab-field input:focus,
.lab-field select:focus {
  outline: 3px solid rgba(31, 91, 227, .15);
  border-color: #1f5be3;
}

.lab-output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.lab-output-grid div {
  padding: 18px;
  border-radius: 12px;
  background: #071936;
  color: #fff;
}

.lab-output-grid small,
.lab-output-grid strong {
  display: block;
}

.lab-output-grid small {
  color: #b9c9de;
}

.lab-output-grid strong {
  margin-top: 8px;
  font-size: 23px;
}

.lab-comparison-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 90px repeat(2, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
}

.lab-comparison-grid > * {
  min-width: 0;
}

.lab-comparison-head {
  color: #526986;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-comparison-row {
  display: contents;
}

.lab-comparison-row label {
  padding: 12px 0;
  font-weight: 800;
}

.lab-comparison-row input {
  width: 100%;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #c6d5e8;
  border-radius: 8px;
  font: inherit;
}

.lab-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.lab-case-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #1455d9;
  background: #eaf1ff;
  font-size: 12px;
  font-weight: 900;
}

.lab-case dl {
  margin: 16px 0 0;
}

.lab-case dt {
  margin-top: 12px;
  color: #071936;
  font-weight: 900;
}

.lab-case dd {
  margin: 4px 0 0;
  color: #526986;
  line-height: 1.58;
}

.lab-local-note {
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 4px solid #00a88f;
  color: #38506d;
  background: #effbf8;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .lab-version,
  .lab-input-grid,
  .lab-output-grid,
  .lab-case-grid {
    grid-template-columns: 1fr;
  }

  .lab-tool,
  .lab-method-card,
  .lab-case {
    padding: 20px;
  }

  .lab-result {
    position: static;
    grid-template-columns: 1fr;
  }

  .lab-score-number {
    width: 76px;
    height: 76px;
    font-size: 23px;
  }

  .lab-comparison-grid {
    grid-template-columns: minmax(130px, 1.3fr) 56px repeat(2, minmax(80px, 1fr));
    gap: 7px;
    font-size: 13px;
  }
}
