.ewhf,
.ewhf * { box-sizing: border-box; }

.ewhf {
  --ewhf-ink: #111111;
  --ewhf-muted: #6b6b6b;
  --ewhf-line: #d9d9d6;
  --ewhf-soft: #f5f5f2;
  --ewhf-accent: #167abf;
  --ewhf-white: #ffffff;
  color: var(--ewhf-ink);
  font: inherit;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) 0;
  border-top: 1px solid var(--ewhf-ink);
  border-bottom: 1px solid var(--ewhf-line);
  background: transparent;
}

.ewhf button,
.ewhf input { font: inherit; }

.ewhf button:focus-visible,
.ewhf input:focus-visible,
.ewhf a:focus-visible,
.ewhf summary:focus-visible {
  outline: 2px solid var(--ewhf-accent);
  outline-offset: 3px;
}

.ewhf__head { max-width: 840px; margin-bottom: 38px; }
.ewhf__eyebrow,
.ewhf__step-kicker {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ewhf-muted);
  margin-bottom: 14px;
}
.ewhf__title {
  margin: 0 0 14px;
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.ewhf__intro {
  margin: 0;
  color: var(--ewhf-muted);
  font-size: 16px;
  line-height: 1.7;
}

.ewhf__progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--ewhf-line);
  border-bottom: 1px solid var(--ewhf-line);
}
.ewhf__progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: #999;
  white-space: nowrap;
}
.ewhf__progress-item span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-right: 1px solid var(--ewhf-line);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.ewhf__progress-item strong {
  padding-right: 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ewhf__progress-item.is-active,
.ewhf__progress-item.is-done { color: var(--ewhf-ink); }
.ewhf__progress-item.is-active span,
.ewhf__progress-item.is-done span {
  background: var(--ewhf-accent);
  color: #fff;
  border-right-color: var(--ewhf-accent);
}
.ewhf__progress-line {
  height: 1px;
  background: var(--ewhf-line);
  flex: 1;
  min-width: 24px;
}

.ewhf__panel[hidden] { display: none !important; }
.ewhf__panel.is-active { animation: ewhfFade .18s ease; }
@keyframes ewhfFade { from { opacity: 0; } to { opacity: 1; } }

.ewhf__section-head { margin-bottom: 28px; max-width: 820px; }
.ewhf__section-head h3 {
  margin: 0 0 10px;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.ewhf__section-head p { margin: 0; color: var(--ewhf-muted); line-height: 1.6; }
.ewhf__back {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ewhf-muted);
  padding: 0 0 2px;
  margin: 0 0 20px;
  cursor: pointer;
  font-size: 13px;
}
.ewhf__back:hover { color: var(--ewhf-ink); }

.ewhf__series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ewhf-line);
  border-left: 1px solid var(--ewhf-line);
}
.ewhf__series-card {
  display: block !important;
  width: 100% !important;
  min-width: 0;
  position: relative;
  text-align: left;
  border: 0;
  border-right: 1px solid var(--ewhf-line);
  border-bottom: 1px solid var(--ewhf-line);
  background: #fff;
  padding: 28px 26px 52px;
  min-height: 225px;
  cursor: pointer;
  color: var(--ewhf-ink);
  transition: background-color .15s ease, color .15s ease;
}
.ewhf__series-card:hover,
.ewhf__series-card.is-selected {
  background: var(--ewhf-accent);
  color: #fff;
}
.ewhf__series-number {
  display: block;
  margin-bottom: 42px;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
}
.ewhf__series-card strong {
  display: block !important;
  width: 100%;
  max-width: none;
  font-size: 21px;
  line-height: 1.15;
  margin-bottom: 10px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.ewhf__series-card > span:not(.ewhf__series-number) {
  display: block !important;
  width: 100%;
  color: var(--ewhf-muted);
  line-height: 1.55;
  font-size: 14px;
}
.ewhf__series-card:hover > span:not(.ewhf__series-number),
.ewhf__series-card.is-selected > span:not(.ewhf__series-number) { color: #d5d5d5; }
.ewhf__series-card i {
  position: absolute;
  right: 24px;
  bottom: 20px;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.ewhf__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ewhf-line);
  border: 1px solid var(--ewhf-line);
}
.ewhf__range-field {
  background: #fff;
  padding: clamp(24px, 3vw, 34px);
  min-height: 220px;
}
.ewhf__range-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}
.ewhf__range-head label {
  font-weight: 800;
  font-size: 15px;
}
.ewhf__range-head output {
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.ewhf__range-field small {
  display: block;
  margin-top: 16px;
  color: var(--ewhf-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ewhf__range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--ewhf-muted);
  font-size: 11px;
}

.ewhf__range {
  --ewhf-range-fill: 50%;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.ewhf__range::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border: 0;
  background: linear-gradient(to right, var(--ewhf-ink) 0, var(--ewhf-ink) var(--ewhf-range-fill), #d6d6d2 var(--ewhf-range-fill), #d6d6d2 100%);
}
.ewhf__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid var(--ewhf-ink);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.ewhf__range::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 0;
  background: #d6d6d2;
}
.ewhf__range::-moz-range-progress {
  height: 4px;
  border: 0;
  border-radius: 0;
  background: var(--ewhf-ink);
}
.ewhf__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ewhf-ink);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.ewhf__form-error {
  grid-column: 1 / -1;
  padding: 14px 16px;
  background: #fff0f0;
  color: #8a2020;
  font-size: 14px;
  border-top: 1px solid #d9a0a0;
}
.ewhf__primary,
.ewhf__shop-button,
.ewhf__secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ewhf-accent);
  border-radius: 0;
  background: var(--ewhf-accent);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.ewhf__primary {
  grid-column: 1 / -1;
  justify-self: stretch;
  border: 0;
  min-height: 58px;
}
.ewhf__primary:hover,
.ewhf__shop-button:hover {
  background: #fff;
  color: var(--ewhf-accent) !important;
}

.ewhf__results { display: grid; gap: 20px; }
.ewhf__result-card {
  border-top: 1px solid var(--ewhf-ink);
  border-bottom: 1px solid var(--ewhf-line);
  padding: 28px 0 0;
  background: transparent;
}
.ewhf__result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.ewhf__badge {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--ewhf-ink);
  border-radius: 0;
  background: var(--ewhf-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ewhf__badge--soft { background: #fff; color: var(--ewhf-ink); }
.ewhf__result-series {
  font-size: 11px;
  color: var(--ewhf-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ewhf__result-card h4 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.025em;
}
.ewhf__result-copy {
  max-width: 780px;
  margin: 0 0 26px;
  color: var(--ewhf-muted);
  line-height: 1.65;
}
.ewhf__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--ewhf-line);
  border-left: 1px solid var(--ewhf-line);
}
.ewhf__specs div {
  background: #fff;
  padding: 16px;
  min-height: 84px;
  border-right: 1px solid var(--ewhf-line);
  border-bottom: 1px solid var(--ewhf-line);
}
.ewhf__specs dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ewhf-muted);
  margin-bottom: 5px;
}
.ewhf__specs dd { margin: 0; font-weight: 800; }
.ewhf__result-note {
  margin: 16px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--ewhf-line);
  border-bottom: 1px solid var(--ewhf-line);
  font-size: 13px;
  color: var(--ewhf-muted);
}
.ewhf__actions {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr;
  align-items: start;
  gap: 24px;
  padding: 24px 0;
}
.ewhf__components {
  width: 100%;
  border-top: 1px solid var(--ewhf-line);
  border-bottom: 1px solid var(--ewhf-line);
  padding: 0;
}
.ewhf__components summary {
  cursor: pointer;
  list-style-position: inside;
  padding: 15px 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ewhf__component-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ewhf-line);
  border-left: 1px solid var(--ewhf-line);
  margin: 0 0 16px;
}
.ewhf__component-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-right: 1px solid var(--ewhf-line);
  border-bottom: 1px solid var(--ewhf-line);
  border-radius: 0;
  color: var(--ewhf-ink) !important;
  text-decoration: none !important;
  background: #fff;
}
.ewhf__component-links a:hover {
  background: var(--ewhf-ink);
  color: #fff !important;
}
.ewhf__component-links a span { color: var(--ewhf-muted); font-size: 11px; }
.ewhf__component-links a:hover span { color: #d5d5d5; }

.ewhf__no-result {
  border-top: 1px solid var(--ewhf-ink);
  border-bottom: 1px solid var(--ewhf-line);
  padding: 32px 0;
}
.ewhf__no-result-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ewhf-ink);
  border-radius: 0;
  margin: 0 0 16px;
  font-weight: 900;
}
.ewhf__no-result h4 { margin: 0 0 8px; font-size: 28px; }
.ewhf__no-result p { max-width: 650px; margin: 0 0 20px; color: var(--ewhf-muted); }
.ewhf__secondary-button { background: #fff; color: var(--ewhf-ink) !important; }
.ewhf__secondary-button:hover { background: var(--ewhf-ink); color: #fff !important; }
.ewhf__safety {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--ewhf-line);
  border-bottom: 1px solid var(--ewhf-line);
}
.ewhf__safety strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ewhf__safety p {
  max-width: 900px;
  margin: 0;
  color: var(--ewhf-muted);
  font-size: 12px;
  line-height: 1.6;
}
.ewhf__restart {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: 0 0 2px;
  margin-top: 22px;
  color: var(--ewhf-muted);
  cursor: pointer;
}

@media (max-width: 860px) {
  .ewhf__series-grid { grid-template-columns: 1fr; }
  .ewhf__series-card { min-height: 170px; }
  .ewhf__series-number { margin-bottom: 24px; }
  .ewhf__form { grid-template-columns: 1fr; }
  .ewhf__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ewhf__actions { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ewhf { padding: 24px 0; }
  .ewhf__progress-item strong { display: none; }
  .ewhf__progress-item span { border-right: 0; width: 38px; }
  .ewhf__range-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .ewhf__range-head output { font-size: 28px; }
  .ewhf__primary,
  .ewhf__shop-button { width: 100%; }
  .ewhf__specs { grid-template-columns: 1fr; }
  .ewhf__result-top { align-items: flex-start; flex-direction: column; }
  .ewhf__component-links { grid-template-columns: 1fr; }
}
