:root { color-scheme: light; font-family: system-ui, sans-serif; color: #172534; background: #f7f5f2; --orange: #e87516; --line: #ded8d2; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
.diagnostic-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.diagnostic-page > main { flex: 1 0 auto; }
.diagnostic-page > .top, .diagnostic-page > .footer { flex: 0 0 auto; }
a { color: #893b10; text-underline-offset: .16em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #185c88; outline-offset: 3px; }
/* The wizard announces its new step by focusing a non-interactive heading. */
#wizard [data-wizard-focus][tabindex="-1"]:focus-visible { outline: none; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2rem, 940px); margin-inline: auto; }
.top { background: white; border-bottom: 1px solid var(--line); }
.masthead { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-bottom: 4px solid var(--orange); }
.masthead > a:last-child { text-align: right; }
.brand { display: inline-flex; gap: .55rem; align-items: center; text-decoration: none; font-weight: 750; color: inherit; }
.brand img { display: block; width: clamp(88px, 22vw, 124px); height: auto; }
.intro { padding: clamp(1.7rem, 5vw, 3.5rem) 0 1.45rem; }
.eyebrow, .stage { font-size: .85rem; font-weight: 750; color: #884511; }
h1, h2, h3, legend { line-height: 1.2; margin: 0 0 .65rem; }
h1 { font-size: clamp(1.9rem, 5vw, 3.25rem); max-width: 22ch; margin-top: .5rem; }
.intro p { max-width: 67ch; margin: .55rem 0 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1rem, 3vw, 2rem); margin-bottom: 1rem; overflow-wrap: anywhere; }
.info ul { padding-inline-start: 1.35rem; }
.footer { padding: .8rem 0 1.15rem; background: #fff; border-top: 1px solid var(--line); }
.footer p { margin: 0 0 .25rem; }
@media (max-width: 700px) {
  .footer .wrap { max-width: calc(100% - 112px); }
}
fieldset { min-inline-size: 0; border: 0; padding: 0; margin: .85rem 0 0; }
legend { font-size: 1.3rem; font-weight: 750; padding: 0; }
.choices { display: grid; gap: .4rem; margin-block: .7rem; }
.choice { display: flex; align-items: baseline; gap: .55rem; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: .6rem; cursor: pointer; }
.choice:has(input:checked) { background: #fff0e3; border-color: #b6540c; }
input[type=radio], input[type=checkbox] { accent-color: #a64c08; flex: none; }
textarea, input[type=number], .model-field, select { border: 1px solid #84786c; background: #fff; color: inherit; border-radius: .45rem; padding: .55rem; max-width: 100%; }
.model-field { width: min(100%, 28rem); min-height: 44px; }
textarea { width: 100%; display: block; resize: vertical; }
.interval { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.interval input { width: 8rem; }
.controls, .contacts { display: flex; flex-wrap: wrap; gap: .55rem; margin: .9rem 0; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .8rem; border: 1px solid #a68d77; border-radius: .55rem; background: #fff; color: #222b33; font-weight: 650; text-decoration: none; cursor: pointer; }
.button:hover { background: #fff1e5; }
.primary { background: var(--orange); border-color: #a85010; color: #1a130d; }
.primary:hover { background: #ff9239; }
.button--success { background:#eaf6ec; border-color:#27863d; color:#20592e; }
.button--success:hover { background:#d6eddb; }
.button--danger { background:#fff0ef; border-color:#bd6b64; color:#8d201b; }
.button--danger:hover { background:#fde1de; }
.button--restart { background:#eff1f3; border-color:#aab1b9; color:#34414d; }
.button--restart:hover { background:#e2e7ec; }
.button--contact { background:#edf5fc; border-color:#819db8; color:#194d79; }
.button--contact:hover { background:#deedfa; }
.button--whatsapp { background:#eaf6ec; border-color:#81a68a; color:#20592e; }
.button--whatsapp:hover { background:#d6eddb; }
.button--review { background:#fff7e2; border-color:#b9a366; color:#695218; }
.button--review:hover { background:#fff0c8; }
.contact-icon { display:block; flex:0 0 1rem; width:1rem; height:1rem; margin-inline-end:.45rem; }
.contact-icon--google { box-sizing:content-box; padding:.12rem; background:#fff; border-radius:50%; }
.button--contact.button--featured { background:#194d79; border-color:#194d79; color:#fff; }
.button--contact.button--featured:hover { background:#133b5e; }
.button--review.button--featured { background:#f7d582; border-color:#9c7118; color:#4e3605; }
.button--review.button--featured:hover { background:#efc566; }
.button:disabled, .button:disabled:hover { opacity:.58; cursor:not-allowed; }
.start-diagnostic { min-height: 52px; font-size: 1.12rem; padding-inline: 1.3rem; }
.symptom-group h3 { font-size: .95rem; margin: .45rem 0; }
.symptom-group .choice + .choice { margin-top: .35rem; }
.check-instruction, .diag-info { padding: .85rem; border-inline-start: 4px solid; border-radius: .4rem; margin-block: .8rem; }
.check-instruction { background: #eaf6ec; border-color: #27863d; }
.check-instruction h3, .result--solved > h3:first-child { color:#20592e; }
.result--solved > h3:first-child { background:#eaf6ec; border-inline-start:4px solid #27863d; padding:.75rem; border-radius:.4rem; }
.diag-info--caution { background:#fff1e6; border-color:var(--orange); }
.diag-info--note { background:#eaf3fb; border-color:#28628c; }
.diag-info p, .check-instruction > p { margin:.3rem 0 0; }
.info-kicker { color:#8d201b; font-size:.875rem; font-weight:750; }
.summary-box { border: 1px solid var(--line); border-radius: .6rem; padding: .65rem; margin: 1rem 0; }
.summary-box summary { cursor: pointer; font-weight: 700; }
.warning { border-inline-start: 4px solid #a72c28; background: #fff0ef; border-radius: .4rem; padding: .75rem; margin-block: .8rem; }
.warning p, .feedback { margin: .35rem 0; }
.feedback:empty { display: none; }
.stage { margin: .5rem 0; }
.hint { color: #465564; font-size: .925rem; }
.summary { background: #faf8f5; min-height: 10rem; }
.result ul { padding-inline-start: 1.35rem; }
.result h3 { margin-top: 1rem; }
.connector { margin: .7rem 0; }
.connector img { display: block; max-width: 100%; width: 420px; height: auto; }
.connector-set { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr)); gap:.45rem; list-style:none; padding:0; margin:.45rem 0; }
.connector-set li { background:#f5f8fa; border:1px solid #c9d4db; border-radius:.5rem; text-align:center; font-size:.875rem; padding:.2rem .25rem .4rem; }
.connector-set img { width: min(100%,160px); margin-inline:auto; }

/* SEO content – supported diagnostic problems */

.diagnostic-problems .diagnostic-problem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0;
}

.diagnostic-problem-list li {
  position: relative;
  padding: .3rem 0 .3rem 1.65rem;
}

.diagnostic-problem-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: #27863d;
  font-weight: 750;
}

/* SEO content – how diagnostics works */

.diagnostic-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.2rem 0;
}

.diagnostic-step {
  background: #faf8f5;
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 1rem;
}

.diagnostic-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--orange);
  color: #1a130d;
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: .85rem;
}

.diagnostic-step h3 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}

.diagnostic-step p {
  margin: 0;
  font-size: .95rem;
  color: #465564;
}

/* SEO content – frequently asked questions */

.diagnostic-faq details {
  border-bottom: 1px solid var(--line);
}

.diagnostic-faq details:last-child {
  border-bottom: 0;
}

.diagnostic-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: .85rem 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.diagnostic-faq summary::-webkit-details-marker {
  display: none;
}

.diagnostic-faq summary::after {
  content: "+";
  flex: 0 0 1.5rem;
  color: #893b10;
  font-size: 1.4rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.diagnostic-faq details[open] summary::after {
  content: "−";
}

.diagnostic-faq summary:hover,
.diagnostic-faq details[open] summary {
  color: #893b10;
}

.diagnostic-faq details p {
  margin: 0 0 1rem;
  padding-inline-end: 1.5rem;
  color: #465564;
}

/* SEO content – responsive layout */

@media (max-width: 700px) {
  .diagnostic-problems .diagnostic-problem-list {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .diagnostic-steps {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .diagnostic-step {
    padding: .85rem 1rem;
  }
}
