:root {
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
  color: #142739;
  background: #f3f6f9;
  font-size: 16px;
  --teal: #0e7c78;
  --muted: #5a6b7c;
  --line: #dbe3ea;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  touch-action: manipulation;
}
button,
input {
  font: inherit;
}
a {
  color: var(--teal);
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #0e7c78;
  outline-offset: 4px;
}
header {
  height: 100px;
  padding: 0 max(6vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #0f2a44;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.mark {
  height: 35px;
  width: 35px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  text-align: center;
  font-size: 32px;
  line-height: 33px;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 1.5px;
  max-width: 110px;
  line-height: 1.5;
  border-left: 1px solid var(--line);
  padding-left: 18px;
  margin-left: 10px;
}
.about-link {
  font-size: 14px;
  text-decoration: none;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 48px 32px 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--teal);
}
h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 13px 0 14px;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
.intro > p {
  font-size: 18px;
  margin: 0;
}
.meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #536b73;
  margin: 23px 0 34px;
}
.meta span + span {
  border-left: 1px solid #cad9dd;
  padding-left: 24px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.assessment {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.steps {
  display: flex;
  padding: 23px 25px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.step {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 0 0 22px;
  background: none;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.step span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #cddadc;
  border-radius: 50%;
  font-size: 12px;
}
.step.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 700;
}
.step.active span {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}
#panel {
  padding: 30px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  font-size: 12px;
  background: #edf5f6;
  color: #1f4a70;
  border-radius: 20px;
  padding: 7px 12px;
}
h2 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 0 0 9px;
}
.instruction {
  font-size: 15px;
  margin: 0 0 27px;
}
.question {
  border: 0;
  border-top: 1px solid #e9eef0;
  margin: 0;
  padding: 22px 0;
}
.question legend {
  float: left;
  width: 100%;
  font-size: 16px;
  margin-bottom: 13px;
  line-height: 1.45;
}
.question legend em {
  font-style: normal;
  color: #819398;
  font-size: 12px;
  display: inline-block;
  width: 24px;
}
.choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  clear: both;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce5e7;
  border-radius: 8px;
  color: #5e7379;
  font-size: 13px;
  text-align: center;
  padding: 9px 5px;
}
.choice input:checked + span {
  background: #e5f3f4;
  border-color: #0e7c78;
  color: #0f2a44;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #0e7c78;
}
.choice input:focus-visible + span {
  outline: 3px solid #0e7c78;
  outline-offset: 2px;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 12px;
}
.btn {
  border: 0;
  border-radius: 9px;
  padding: 14px 19px;
  font-weight: 600;
  font-size: 14px;
  min-height: 48px;
  background: var(--teal);
  color: white;
}
.btn:hover {
  background: #0f2a44;
}
.btn.secondary {
  background: #edf3f4;
  color: #163a5c;
}
.small {
  font-size: 13px;
  color: var(--muted);
}
aside {
  position: sticky;
  top: 24px;
}
.scorecard {
  background: #eaf2f4;
  border: 1px solid #d5e4e8;
  border-radius: 18px;
  padding: 27px;
}
.score-heading {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-top: 17px;
}
.score-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0deg, #d4e3e7 0deg);
  margin: 28px auto 20px;
  padding: 9px;
}
.score-ring > div {
  height: 100%;
  border-radius: 50%;
  background: #eaf2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.score-ring strong {
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -2px;
}
.score-ring span {
  font-size: 12px;
  letter-spacing: 1px;
  color: #607b83;
  margin-top: 8px;
}
#status {
  text-align: center;
  font-size: 14px;
  min-height: 47px;
  margin-bottom: 25px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
progress {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  appearance: none;
  margin: 12px 0 23px;
}
progress::-webkit-progress-bar {
  background: #d1e0e4;
}
progress::-webkit-progress-value {
  background: var(--teal);
}
progress::-moz-progress-bar {
  background: var(--teal);
}
.components {
  border-top: 1px solid #cfdee2;
  padding-top: 10px;
}
.components > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-top: 16px;
}
.components strong {
  font-weight: 500;
}
.note {
  display: flex;
  gap: 12px;
  padding: 24px 8px;
  font-size: 13px;
  line-height: 1.6;
}
.note-icon {
  border: 1px solid #758c94;
  border-radius: 50%;
  height: 18px;
  min-width: 18px;
  text-align: center;
  line-height: 17px;
  font-size: 12px;
}
.note p {
  margin: 5px 0 0;
}
.about {
  border-top: 1px solid var(--line);
  margin-top: 55px;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.about h2 {
  margin-top: 13px;
  font-size: 24px;
}
.about p {
  font-size: 14px;
}
.about details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.about summary {
  cursor: pointer;
  font-weight: 600;
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
footer .brand {
  font-size: 18px;
}
.rating {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin: 24px 0;
}
.rating h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 12px;
}
.rating p {
  font-size: 14px;
}
.rating label {
  font-size: 14px;
}
.rating input {
  width: 100%;
  height: 46px;
  margin: 12px 0 6px;
  accent-color: var(--teal);
}
.rating input[type="number"] {
  border: 1px solid #b7cbd1;
  border-radius: 7px;
  padding: 10px;
  width: 100px;
  margin-left: 10px;
}
.anchors {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.error {
  color: #a13925;
  font-size: 14px;
  line-height: 1.5;
}
.result-main {
  font-size: 58px;
  letter-spacing: -2px;
  margin: 15px 0;
}
.result-main small {
  font-size: 20px;
  color: var(--muted);
  letter-spacing: 0;
}
.category {
  background: #e8f4f3;
  display: inline-block;
  padding: 8px 13px;
  border-radius: 20px;
  color: #0a6764;
  font-size: 14px;
}
.scale {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.scale > div {
  border-top: 6px solid #9ed3c9;
  padding-top: 10px;
  font-size: 12px;
  line-height: 1.5;
}
.scale > div:nth-child(2) {
  border-color: #afce8f;
}
.scale > div:nth-child(3) {
  border-color: #e5bd66;
}
.scale > div:nth-child(4) {
  border-color: #d88f7f;
}
.scale b {
  display: block;
}
.result-note {
  background: #f3f7f8;
  border-left: 3px solid #76a5b2;
  padding: 15px 18px;
  font-size: 14px;
}
.print-summary {
  display: none;
}
@media (max-width: 980px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }
  .steps {
    gap: 12px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .step {
    font-size: 12px;
    gap: 6px;
  }
  #panel {
    padding: 22px;
  }
  .choices {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 740px) {
  header {
    height: 76px;
    padding: 0 20px;
  }
  .brand-sub {
    display: none;
  }
  .about-link {
    font-size: 12px;
  }
  main {
    padding: 30px 18px 0;
  }
  h1 {
    font-size: 36px;
  }
  .intro > p {
    font-size: 16px;
  }
  .meta {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
  }
  .meta span + span {
    padding-left: 12px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  aside {
    position: static;
  }
  .scorecard {
    display: none;
  }
  .note {
    padding: 8px;
  }
  .steps {
    justify-content: space-between;
    gap: 7px;
  }
  .step {
    font-size: 11px;
    gap: 5px;
  }
  .step span {
    width: 22px;
    height: 22px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 30px;
  }
  .pill {
    font-size: 11px;
    padding: 6px 9px;
  }
  h2 {
    font-size: 23px;
  }
  .actions {
    flex-wrap: wrap;
  }
  footer {
    gap: 20px;
    align-items: flex-start;
  }
  footer > span:last-child {
    max-width: 170px;
    text-align: right;
  }
  .rating {
    padding: 17px;
  }
  .score-ring {
    width: 150px;
    height: 150px;
  }
}
@media print {
  header,
  .intro,
  .steps,
  aside,
  .about,
  footer,
  .actions,
  .btn,
  .rating,
  .question {
    display: none !important;
  }
  main {
    padding: 0;
  }
  .workspace {
    display: block;
  }
  .assessment {
    border: 0;
  }
  #panel {
    padding: 0;
  }
  .print-summary {
    display: block;
  }
  .print-summary p {
    margin: 4px 0;
    font-size: 12px;
  }
  body {
    background: white;
  }
  .result-main {
    font-size: 40px;
  }
}
/* Russian labels and the doctor's name need more room. */
.brand {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.brand-sub {
  max-width: 165px;
  font-size: 10px;
}
.workspace {
  grid-template-columns: minmax(0, 1fr) 330px;
}
.steps {
  gap: 16px;
  padding-left: 22px;
  padding-right: 22px;
}
.step {
  font-size: 13px;
  white-space: normal;
  text-align: left;
  line-height: 1.4;
}
.step span {
  flex-shrink: 0;
}
.choice span {
  font-size: 13px;
  line-height: 1.35;
  min-height: 53px;
  overflow-wrap: break-word;
}
.panel-top {
  gap: 14px;
  align-items: flex-start;
}
.pill {
  white-space: nowrap;
}
.scale > div {
  overflow-wrap: anywhere;
}
.score-heading {
  font-size: 25px;
}
h1 {
  font-size: 44px;
}
.actions {
  flex-wrap: wrap;
}
.btn {
  line-height: 1.45;
}
.rating .anchors {
  gap: 18px;
}
.rating .anchors > span:last-child {
  text-align: right;
}
@media (max-width: 980px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .steps {
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .step {
    font-size: 12px;
  }
  .choices {
    grid-template-columns: repeat(2, 1fr);
  }
  .panel-top {
    flex-wrap: wrap;
  }
  .brand-sub {
    display: none;
  }
}
@media (max-width: 740px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .mark {
    width: 30px;
    height: 30px;
    font-size: 28px;
    line-height: 28px;
  }
  .about-link {
    font-size: 13px;
  }
  h1 {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .steps {
    padding: 19px 12px 0;
    gap: 9px;
  }
  .step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    flex: 1;
    padding-bottom: 15px;
  }
  .choice span {
    font-size: 14px;
  }
  .meta {
    line-height: 1.5;
  }
  .meta span + span {
    padding-left: 0;
    border-left: none;
  }
  .meta {
    column-gap: 18px;
  }
  .scale {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 17px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer > span:last-child {
    max-width: 100%;
    text-align: left;
  }
  .result-main {
    font-size: 52px;
  }
}

/* Portal typography */
h1, h2, h3, .brand, .ring-value, .score, .result-number { font-family: "Manrope", "Segoe UI", system-ui, sans-serif; }
h1, h2, h3 { color: #0f2a44; letter-spacing: -0.015em; }
