#kormschik-test-exam,
#kormschik-test-exam * {
  box-sizing: border-box;
}

#kormschik-test-exam {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 12px;
  color: #17242c;
  font-family: Arial, sans-serif;
}

.gims-exam-card {
  padding: 22px;
  border: 1px solid #d8e6ea;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(8, 52, 70, 0.06);
}

.gims-exam-title {
  margin: 0 0 8px;
  color: #082f46;
  font-size: 34px;
  line-height: 1.18;
}

.gims-exam-subtitle {
  margin: 0 0 18px;
  color: #0d7982;
  font-size: 22px;
  font-weight: 700;
}

.gims-exam-text {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.45;
}

.gims-exam-grid {
  display: grid;
  gap: 12px;
}

.gims-exam-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gims-exam-field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

.gims-exam-label {
  font-weight: 700;
}

.gims-exam-select {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cad8dd;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.gims-exam-button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #0d7982;
  border-radius: 8px;
  background: #0d7982;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gims-exam-button-secondary {
  background: #fff;
  color: #0d7982;
}

.gims-exam-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.gims-exam-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
  color: #39515c;
  font-weight: 700;
}

.gims-exam-progress {
  height: 8px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e6eef1;
}

.gims-exam-progress-bar {
  height: 100%;
  background: #0d7982;
  transition: width 0.2s ease;
}

.gims-exam-section {
  margin-bottom: 10px;
  color: #0d7982;
  font-weight: 700;
}

.gims-exam-question {
  margin: 0 0 16px;
  color: #10202a;
  font-size: 24px;
  line-height: 1.35;
}

.gims-exam-image {
  display: block;
  max-width: 100%;
  max-height: 340px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.gims-exam-answers {
  display: grid;
  gap: 10px;
}

.gims-exam-answer {
  width: 100%;
  min-height: 52px;
  padding: 12px;
  border: 1px solid #cad8dd;
  border-radius: 8px;
  background: #fff;
  color: #17242c;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gims-exam-answer.is-selected {
  border-color: #62849a;
  background: #edf4f8;
}

.gims-exam-answer.is-correct {
  border-color: #65aa4c;
  background: #ddf2d7;
}

.gims-exam-answer.is-wrong {
  border-color: #c54a4a;
  background: #ffe1e1;
}

.gims-exam-answer:disabled {
  cursor: default;
}

.gims-exam-feedback {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d8e6ea;
  border-radius: 8px;
  background: #f5fbfc;
}

.gims-exam-error {
  padding: 14px;
  border: 1px solid #c54a4a;
  border-radius: 8px;
  background: #ffe1e1;
  color: #7a1010;
  font-weight: 700;
}

.gims-exam-result-pass {
  color: #22733b;
}

.gims-exam-result-fail {
  color: #a22b2b;
}

.gims-exam-mistake {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d8e6ea;
  border-radius: 8px;
  background: #fff;
}

.gims-exam-small {
  color: #526773;
  font-size: 14px;
}

@media (max-width: 640px) {
  #kormschik-test-exam {
    padding: 12px 8px;
  }

  .gims-exam-card {
    padding: 14px;
  }

  .gims-exam-title {
    font-size: 26px;
  }

  .gims-exam-subtitle {
    font-size: 19px;
  }

  .gims-exam-question {
    font-size: 20px;
  }

  .gims-exam-topline {
    grid-template-columns: 1fr;
  }

  .gims-exam-button,
  .gims-exam-row {
    width: 100%;
  }
}
