.level-test-page {
  margin: 0;
  background: #f7faf9;
  color: #193a3d;
  font-family: Lato,Arial,sans-serif;
}
.test-header {
  max-width: 1120px;
  margin: auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.test-header img {
  width: 130px;
  height: 88px;
  object-fit: contain;
}
.test-header nav {
  position: static;
  display: flex;
  gap: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  width: auto;
}
.test-header a,.test-footer a {
  color: inherit;
}
.test-main {
  max-width: 860px;
  margin: auto;
  padding: 50px 24px 70px;
}
.test-main h1,
.test-main .test-title {
  font-size: clamp(2.4rem,7vw,4rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  margin: 12px 0 22px;
}
.test-main h2:not(.test-title) {
  font-size: 1.45rem;
  margin: 0 0 16px;
}
.test-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 700;
  color: #507471;
}
.test-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 630px;
}
.test-intro-card,.test-result-card,#question-form {
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 24px;
  padding: 30px;
  margin: 28px 0;
  box-shadow: 0 12px 32px #193a3d06;
}
.test-main p,.test-main li {
  line-height: 1.7;
}
.test-main ul {
  padding-left: 22px;
  margin: 20px 0;
}
.test-main button,.test-main a {
  font: inherit;
}
.test-primary,.test-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #1c6963;
  padding: 12px 20px;
  font-weight: 700!important;
  cursor: pointer;
  text-decoration: none;
}
.test-primary {
  background: #1c6963;
  color: #fff!important;
}
.test-secondary {
  background: white;
  color: #1c6963;
}
.test-link {
  border: 0;
  background: transparent;
  color: #3e6663;
  text-decoration: underline;
  padding: 12px;
  min-height: 48px;
  cursor: pointer;
}
.test-main button:disabled {
  opacity: .45;
  cursor: default;
}
.test-main :focus-visible,
.test-header a:focus-visible,
.test-footer a:focus-visible {
  outline: 3px solid #c99012;
  outline-offset: 4px;
}
.test-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .9rem;
}
.test-progress-label p {
  margin: 0 0 10px;
}
.test-main progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: #1c6963;
}
.test-main fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.test-main legend {
  width: 100%;
  padding: 0;
}
#question-text {
  display: block;
  font-size: clamp(1.35rem,3vw,1.8rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
#options {
  display: grid;
  gap: 12px;
}
.test-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #ceded8;
  border-radius: 12px;
  cursor: pointer;
  line-height: 1.6;
}
.test-option:focus-within {
  outline: 2px solid #c99012;
  outline-offset: 3px;
}
.test-option:has(input:checked) {
  background: #e9f4f0;
  border-color: #1c6963;
  box-shadow: 0 0 0 1px #1c6963;
}
.test-option input {
  width: 20px;
  height: 20px;
  accent-color: #1c6963;
  flex-shrink: 0;
}
.test-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.test-note {
  color: #5b716e;
  font-size: .9rem;
}
#question-status:empty {
  display: none;
}
.test-score {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.test-table-wrap {
  overflow: auto;
}
.test-main table {
  border-collapse: collapse;
  width: 100%;
  background: white;
}
.test-main caption {
  text-align: left;
  font-weight: 700;
  margin: 16px 0;
}
.test-main th, .test-main td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid #dce8e4;
}
.test-main details {
  margin-top: 30px;
}
.test-main summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
}
.test-review {
  padding-left: 24px;
}
.test-review li {
  padding: 16px 0;
  border-bottom: 1px solid #dce8e4;
}
.test-review p {
  margin: 6px 0;
}
.test-review .review-outcome {
  font-weight: 700;
}
.test-footer {
  max-width: 1120px;
  margin: auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #dce8e4;
  font-size: .88rem;
}
.test-footer p {
  margin: 0;
}
.level-test-page [hidden] {
  display: none!important;
}
@media(max-width:600px) {
  .test-header {
    padding: 8px 18px;
  }
  .test-header img {
    width: 110px;
    height: 75px;
  }
  .test-header nav {
    gap: 15px;
    font-size: .9rem;
  }
  .test-main {
    padding: 28px 18px 44px;
  }
  .test-intro-card,.test-result-card,#question-form {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .test-actions {
    gap: 8px;
  }
  .test-primary,.test-secondary {
    padding: 12px 15px;
  }
  .test-footer {
    flex-direction: column;
  }
  .test-main th, .test-main td {
    padding: 12px 9px;
  }
}
