.qz-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(128deg, transparent calc(100% - 330px), color-mix(in srgb, var(--acc) 40%, transparent) calc(100% - 330px), color-mix(in srgb, var(--acc) 40%, transparent) calc(100% - 329px), transparent calc(100% - 329px)),
    linear-gradient(128deg, transparent calc(100% - 250px), var(--band) calc(100% - 250px), var(--band) calc(100% - 90px), transparent calc(100% - 90px));
}

.qz-hero__in {
  max-width: 1000px;
  margin: 0 auto;
  padding: 96px var(--gutter) 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.qz-hero__label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acc);
  letter-spacing: .06em;
}

.qz-hero__title {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.qz-hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--mut);
  max-width: 620px;
  text-wrap: pretty;
}

.qz {
  padding-top: 72px;
  padding-bottom: 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.qz-side {
  flex: 0 1 320px;
  min-width: 260px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qz-steps {
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.qz-steps__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--mut);
  text-align: left;
}

.qz-steps__btn:disabled {
  cursor: default;
}

.qz-steps__n {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line);
}

.qz-steps__t {
  font-size: 14px;
  font-weight: 600;
}

.qz-steps__btn.is-done {
  color: var(--fg);
}

.qz-steps__btn.is-done .qz-steps__n {
  background: var(--accbtn);
  border-color: var(--accbtn);
  color: var(--onacc);
}

.qz-steps__btn.is-now {
  color: var(--fg);
  background: var(--soft);
}

.qz-steps__btn.is-now .qz-steps__n {
  border-color: var(--acc);
  color: var(--acc);
}

.qz-total {
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qz-total__k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mut);
}

.qz-total__v {
  display: block;
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--acc);
}

.qz-total__cur {
  font-size: .3em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--mut);
  margin-left: 8px;
}

.qz-total__sum {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--mut);
}

.qz-origin {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--acc);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed var(--acc);
}

.qz-total__note {
  font-size: 12px;
  color: var(--mut);
}

.qz-cart {
  margin-top: 4px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--acc);
  background: transparent;
  color: var(--acc);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.qz-cart:hover {
  background: var(--accbtn);
  color: var(--onacc);
}

.qz-cart:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.qz-main {
  flex: 1 1 560px;
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}

.qz-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.qz-progress__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mut);
}

.qz-progress__bar {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.qz-progress__bar span {
  display: block;
  height: 4px;
  background: var(--acc);
  transition: width .3s;
}

.qz-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.qz-step[hidden] {
  display: none;
}

.qz-step__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.qz-step__k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acc);
  letter-spacing: .06em;
}

.qz-step__t {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.qz-step__d {
  margin: 10px 0 26px;
  color: var(--mut);
  line-height: 1.6;
}

.qz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.qz-opt {
  position: relative;
  cursor: pointer;
}

.qz-opt input,
.qz-feat input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.qz-opt__in {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: transparent;
  transition: border-color .2s, background .2s, color .2s;
}

.qz-opt:hover .qz-opt__in {
  border-color: var(--acc);
}

.qz-opt input:checked + .qz-opt__in {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.qz-opt input:focus-visible + .qz-opt__in,
.qz-feat input:focus-visible ~ .qz-feat__body {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

.qz-opt__t {
  font-weight: 700;
  font-size: 17px;
}

.qz-opt__d {
  font-size: 14px;
  line-height: 1.55;
  opacity: .8;
}

.qz-opt__p {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  opacity: .85;
}

.qz-feats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 8px;
}

.qz-feat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.qz-feat:hover {
  border-color: var(--acc);
}

.qz-feat:has(input:checked) {
  border-color: var(--accbtn);
  background: var(--soft);
}

.qz-feat:has(input:disabled) {
  cursor: default;
}

.qz-feat__box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
}

.qz-feat input:checked ~ .qz-feat__box {
  background: var(--accbtn);
  border-color: var(--accbtn);
}

.qz-feat input:checked ~ .qz-feat__box::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--onacc);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

.qz-feat__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 4px;
}

.qz-feat__t {
  font-weight: 600;
  font-size: 14px;
}

.qz-feat__d {
  font-size: 12.5px;
  color: var(--mut);
  line-height: 1.45;
}

.qz-feat__p {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--acc);
  white-space: nowrap;
}

.qz-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.qz-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.qz-field em {
  font-style: normal;
  font-weight: 400;
  color: var(--mut);
}

.qz-field--full {
  grid-column: 1 / -1;
}

.qz-field input,
.qz-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  resize: vertical;
}

.qz-field input:focus,
.qz-field textarea:focus {
  outline: 2px solid var(--acc);
  outline-offset: 1px;
  border-color: transparent;
}

.qz-field input[aria-invalid="true"] {
  border-color: var(--bad);
}

.qz-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.qz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.qz-nav__prev {
  border: 0;
  background: transparent;
  color: var(--mut);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}

.qz-nav__next {
  margin-left: auto;
}

.qz-nav__next[disabled] {
  opacity: .6;
  cursor: progress;
}

.qz-done {
  display: flex;
  flex-direction: column;
  gap: 16px;
  outline: none;
}

.qz-done[hidden] {
  display: none;
}

.qz-done__t {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
}

.qz-done__d {
  color: var(--mut);
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
}

.qz-done__dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  margin: 8px 0;
}

.qz-done__dl div {
  padding: 18px;
  border-radius: 14px;
  background: var(--bg2);
}

.qz-done__dl dt {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mut);
  margin-bottom: 8px;
}

.qz-done__dl dd {
  font-size: 22px;
  font-weight: 800;
}

.qz-done__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .qz {
    gap: 24px;
  }

  .qz-side {
    display: contents;
  }

  .qz-steps,
  .qz-main,
  .qz-total {
    flex: 1 1 100%;
    min-width: 0;
  }

  .qz-steps {
    order: 0;
  }

  .qz-main {
    order: 1;
  }

  .qz-total {
    order: 2;
  }

  .qz-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .qz-steps__btn {
    flex-direction: column;
    gap: 6px;
    padding: 10px 6px;
    text-align: center;
  }

  .qz-steps__t {
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  .qz-hero {
    background-image:
      linear-gradient(128deg, transparent calc(100% - 150px), color-mix(in srgb, var(--acc) 40%, transparent) calc(100% - 150px), color-mix(in srgb, var(--acc) 40%, transparent) calc(100% - 149px), transparent calc(100% - 149px)),
      linear-gradient(128deg, transparent calc(100% - 100px), var(--band) calc(100% - 100px), var(--band) calc(100% - 10px), transparent calc(100% - 10px));
  }
}

@media (max-width: 480px) {
  .qz-nav__next {
    flex: 1;
  }
}

.qz [hidden] {
  display: none !important;
}
