.qb {
  --ahc-surface: #fff;
  --ahc-surface-2: #f4f6f8;
  --ahc-border: #e2e6ea;
  --ahc-ink: #0d1520;
  --ahc-muted: #56626f;
  --ahc-accent: #1d4ed8;
  --ahc-amber: #d97706;
  --ahc-success: #15803d;
  --ahc-critical: #b91c1c;
  --ahc-radius: 4px;
  --ahc-font: inherit;
  --ahc-mono: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  --qb-surface: var(--ahc-surface);
  --qb-surface-raised: #fff;
  --qb-selected: #edf6f0;
  --qb-selected-border: #65a77c;
  --qb-focus: rgba(29, 78, 216, .2);
  color: var(--ahc-ink);
  background: var(--ahc-surface);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
}

.qb *,
.qb *::before,
.qb *::after { box-sizing: border-box; }

.qb-wrap { width: min(100% - 3rem, 1120px); margin-inline: auto; }
.qb-hero {
  padding: calc(60px + clamp(2.5rem, 6vw, 4.8rem)) 0 2rem;
  border-bottom: 1px solid var(--ahc-border);
  background:
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(29, 78, 216, .045) calc(100% - 1px)),
    var(--ahc-surface-2);
  background-size: 72px 100%;
}
.qb-hero__inner { padding-bottom: .3rem; }
.qb-kicker {
  margin: 0 0 .65rem;
  color: var(--ahc-accent);
  font: 600 .68rem/1.5 var(--ahc-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.qb-hero h1 {
  max-width: 19ch;
  margin: 0;
  color: var(--ahc-ink);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.qb-lead { max-width: 68ch; margin: 1rem 0 0; color: #394657; font-size: 1.05rem; line-height: 1.7; }
.qb-secondary { margin: .7rem 0 0; color: var(--ahc-muted); font-size: .88rem; }
.qb a { color: var(--ahc-accent); text-underline-offset: .2em; }
.qb a:hover { color: #173eb2; }
.qb-body { padding-top: 1.4rem; padding-bottom: 13rem; }

.qb-flash { padding: .85rem 1rem; margin-bottom: 1rem; border: 1px solid var(--ahc-border); background: var(--ahc-surface-2); }
.qb-flash--success { border-color: #a8ceb5; color: #185638; background: #edf6f0; }
.qb-flash--error { border-color: #dfb7b2; color: #822e28; background: #fbefed; }
.qb-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: 0 0 1.7rem;
}
.qb-step {
  display: flex;
  min-width: 0;
  min-height: 3.5rem;
  align-items: center;
  gap: .7rem;
  padding: .65rem .85rem;
  border: 1px solid var(--ahc-border);
  border-radius: var(--ahc-radius);
  color: var(--ahc-muted);
  background: var(--ahc-surface-2);
  font: inherit;
  text-align: left;
}
button.qb-step { cursor: pointer; }
button.qb-step:disabled { cursor: default; }
.qb-step.is-active { border: 2px solid var(--ahc-accent); color: var(--ahc-ink); background: #eef3ff; }
.qb-step.is-done { border-color: #9abdaa; color: var(--ahc-success); background: #edf6f0; }
.qb-step__number {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #435a65;
  background: #e1e7ea;
  font: 700 .72rem/1 var(--ahc-mono);
}
.qb-step.is-active .qb-step__number { color: #fff; background: var(--ahc-accent); }
.qb-step.is-done .qb-step__number { color: #fff; background: var(--ahc-success); }
.qb-step__label { font-size: .9rem; font-weight: 700; line-height: 1.25; }
.qb-panel { display: none; }
.qb-panel.is-visible { display: block; animation: qb-reveal .18s ease-out; }
@keyframes qb-reveal { from { opacity: .72; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.qb-instruction { margin: 0 0 1.1rem; color: var(--ahc-muted); font-size: .92rem; }

.qb-group { margin: 2rem 0 2.7rem; }
.qb-group__heading {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
  padding: 0 0 .85rem;
  border-bottom: 1px solid var(--ahc-border);
}
.qb-group__ordinal { padding-top: .18rem; color: var(--ahc-accent); font: 500 .72rem/1.5 var(--ahc-mono); }
.qb-group__heading h2 { margin: 0; color: var(--ahc-ink); font-size: 1.34rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.25; }
.qb-group__heading p { margin: .25rem 0 0; color: var(--ahc-muted); font-size: .84rem; line-height: 1.55; }
.qb-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding-top: .85rem; }
.qb-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
  padding: 1.05rem 1.1rem .95rem;
  border: 1px solid var(--ahc-border);
  border-radius: var(--ahc-radius);
  background: var(--qb-surface-raised);
  transition: transform .15s ease;
}
.qb-card:hover { border-color: #9eb7c4; background: #fbfcff; transform: translateY(-1px); }
.qb-card.is-selected { border: 2px solid var(--ahc-success); padding: calc(1.05rem - 1px) calc(1.1rem - 1px) calc(.95rem - 1px); background: var(--qb-selected); }
.qb-card.is-unavailable { background: #f5f6f7; color: #6e7b82; }
.qb-card--external { border-top: 2px solid var(--ahc-accent); padding-top: calc(1.05rem - 1px); }
.qb-card__top { display: flex; min-height: 2.65rem; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.qb-card__id { color: var(--ahc-muted); font: 500 .68rem/1.4 var(--ahc-mono); letter-spacing: .06em; }
.qb-card h3 { margin: .2rem 2.5rem .35rem 0; color: var(--ahc-ink); font-size: 1rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; overflow-wrap: anywhere; }
.qb-card__question { min-height: 2.6em; margin: 0 0 .8rem; color: var(--ahc-muted); font-size: .82rem; line-height: 1.6; }
.qb-select { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; margin: -.55rem -.6rem 0 0; cursor: pointer; }
.qb-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.qb-select__box {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 2px solid #8799a2;
  border-radius: 4px;
  color: transparent;
  background: #fff;
  transition: none;
}
.qb-select input:checked + .qb-select__box { border-color: var(--ahc-success); color: #fff; background: var(--ahc-success); }
.qb-select input:checked + .qb-select__box::after { content: "✓"; font-size: .9rem; font-weight: 800; line-height: 1; }
.qb-select input:focus-visible + .qb-select__box { outline: 3px solid var(--ahc-accent); outline-offset: 3px; }
.qb-select input:disabled + .qb-select__box { border-color: #bdc6ca; background: #e8ecee; }
.qb-size-label { display: block; margin: .3rem 0 .3rem; color: var(--ahc-ink); font-size: .8rem; font-weight: 700; }
.qb-size {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: .55rem 2rem .55rem .65rem;
  border: 1px solid #aebdc3;
  border-radius: var(--ahc-radius);
  color: var(--ahc-ink);
  background-color: #fff;
  font-family: inherit;
  font-size: .83rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}
.qb-card__scope { margin-top: .65rem; color: var(--ahc-muted); font-size: .8rem; line-height: 1.55; }
.qb-card__price { margin: .7rem 0 0; color: var(--ahc-ink); font-size: .9rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.qb-price-note { margin: .25rem 0 0; color: var(--ahc-muted); font-size: .7rem; line-height: 1.5; }
.qb-rule { margin: 0 0 .75rem; padding: .6rem .7rem; border-left: 2px solid var(--ahc-amber); color: #6b4a17; background: #fff8eb; font-size: .78rem; line-height: 1.5; }
.qb-outbound { display: inline-flex; min-height: 44px; align-items: center; gap: .5rem; margin-top: .55rem; font-size: .86rem; font-weight: 700; }
.qb-selection-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.qb-sticky {
  position: fixed;
  z-index: 30;
  right: max(0px, calc((100vw - 1120px) / 2));
  bottom: 0;
  left: max(0px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.3rem;
  align-items: center;
  padding: .85rem 1.1rem calc(.85rem + env(safe-area-inset-bottom));
  border: 1px solid var(--ahc-border);
  border-bottom: 0;
  background: rgba(255,255,255,.98);
  box-shadow: 0 -5px 18px rgba(13,21,32,.08);
}
.qb-sticky__summary { display: grid; grid-template-columns: minmax(8rem, .7fr) minmax(0, 1.3fr); gap: 1rem; align-items: start; }
.qb-sticky__count { color: var(--ahc-muted); font-size: .8rem; font-weight: 600; }
.qb-sticky__prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .9rem; }
.qb-sticky__prices > div { display: grid; gap: .05rem; }
.qb-sticky__label { color: var(--ahc-muted); font-size: .7rem; }
.qb-sticky__prices strong { color: var(--ahc-ink); font-size: .92rem; overflow-wrap: anywhere; }
.qb-sticky__prices .qb-price-note, .qb-sticky__prices .qb-unpriced { grid-column: 1 / -1; }
.qb-unpriced { margin: .2rem 0 0; color: #6b4a17; font-size: .75rem; }
.qb-sticky__actions { display: flex; align-items: flex-end; gap: .65rem; }
.qb-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border: 1px solid var(--ahc-accent);
  border-radius: var(--ahc-radius);
  color: #fff !important;
  background: var(--ahc-accent);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.qb-button:hover:not(:disabled) { border-color: #173eb2; background: #173eb2; }
.qb-button:active:not(:disabled) { transform: translateY(1px); }
.qb-button:disabled { border-color: #d2dade; color: #596c74 !important; background: #e5eaec; cursor: not-allowed; }
.qb-button--secondary { color: var(--ahc-ink) !important; border-color: #aebdc3; background: #fff; }
.qb-button--secondary:hover:not(:disabled) { color: var(--ahc-accent) !important; border-color: var(--ahc-accent); background: #f5f8ff; }
.qb-button--quiet { color: var(--ahc-ink) !important; border-color: #aebdc3; background: #fff; }
.qb-button--quiet:hover { border-color: var(--ahc-accent); color: var(--ahc-accent) !important; background: #f5f8ff; }
.qb-order-form { display: grid; max-width: 18rem; gap: .25rem; }
.qb-terms { display: flex; min-height: 44px; align-items: center; gap: .5rem; color: var(--ahc-muted); font-size: .69rem; line-height: 1.35; }
.qb-terms input { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; accent-color: var(--ahc-accent); }
.qb-terms a { color: inherit; }
.qb-order-note { margin: 0; color: var(--ahc-muted); font-size: .68rem; line-height: 1.35; }

.qb-panel > h2:not(.visually-hidden) { margin: 0 0 .35rem; color: var(--ahc-ink); font-size: 1.6rem; letter-spacing: -.04em; }
.qb-panel > p { margin: 0 0 1.1rem; color: var(--ahc-muted); }
.qb-selected-summary { margin: 1.1rem 0 1.3rem; padding: 1rem 1.1rem; border: 1px solid #b6d1c0; border-radius: var(--ahc-radius); background: var(--qb-selected); }
.qb-selected-summary h3 { margin: 0 0 .55rem; color: var(--ahc-success); font-size: .88rem; }
.qb-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.qb-chip { padding: .3rem .65rem; border: 1px solid #a9cbb7; border-radius: 3px; color: #185638; background: #fff; font-size: .78rem; font-weight: 600; }
.qb-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.2rem; }
.qb-field { display: flex; min-width: 0; flex-direction: column; gap: .35rem; }
.qb-field--full { grid-column: 1 / -1; }
.qb-field label { color: var(--ahc-ink); font-size: .9rem; font-weight: 700; }
.qb-field label span { color: var(--ahc-critical); }
.qb-field__hint { color: var(--ahc-muted); font-size: .78rem; line-height: 1.5; }
.qb-input { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid #aebdc3; border-radius: var(--ahc-radius); color: var(--ahc-ink); background: #fff; font-family: inherit; font-size: 1rem; font-weight: 400; line-height: 1.45; }
.qb-input:focus, .qb-size:focus { border-color: var(--ahc-accent); outline: 3px solid var(--qb-focus); outline-offset: 1px; }
.qb-textarea { min-height: 110px; resize: vertical; }
.qb-optional { margin: 1rem 0; border: 1px solid var(--ahc-border); border-radius: var(--ahc-radius); background: #fff; }
.qb-optional summary { display: flex; min-height: 48px; align-items: center; padding: .65rem .9rem; color: var(--ahc-accent); font-weight: 700; cursor: pointer; }
.qb-optional .qb-details-grid { padding: .2rem .9rem 1rem; }
.qb-form-actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: 1rem; border-top: 1px solid var(--ahc-border); }

.qb-send-intro { margin-bottom: 1.1rem; padding: 1rem; border: 1px solid #c5d9e6; border-radius: var(--ahc-radius); background: #eef4f8; }
.qb-send-intro > p { margin: 0 0 .8rem; color: #394657; font-size: .88rem; line-height: 1.6; }
.qb-send-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.qb-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qb-proposal { overflow: hidden; border: 1px solid var(--ahc-border); border-radius: var(--ahc-radius); background: #fff; }
.qb-proposal__head { display: flex; justify-content: space-between; gap: 2rem; padding: 1.8rem 2rem; border-bottom: 1px solid var(--ahc-border); background: var(--ahc-surface-2); }
.qb-proposal__head h2 { margin: 0; color: var(--ahc-ink); font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; }
.qb-proposal__head p:not(.qb-kicker) { margin: .35rem 0 0; color: var(--ahc-muted); }
.qb-proposal__head dl { display: grid; align-content: start; gap: .35rem; min-width: 12rem; margin: 0; }
.qb-proposal__head dl div { display: flex; justify-content: space-between; gap: .8rem; font-size: .76rem; }
.qb-proposal__head dt { color: var(--ahc-muted); }
.qb-proposal__head dd { margin: 0; color: var(--ahc-ink); font-weight: 700; text-align: right; }
.qb-proposal__body { padding: 1.7rem 2rem; }
.qb-proposal__section + .qb-proposal__section { margin-top: 2rem; }
.qb-proposal__section > h3 { display: flex; align-items: center; gap: .65rem; margin: 0 0 .8rem; color: var(--ahc-accent); font: 600 .7rem/1.4 var(--ahc-mono); letter-spacing: .1em; text-transform: uppercase; }
.qb-proposal__section > h3::after { width: 2.5rem; height: 1px; background: currentColor; opacity: .35; content: ""; }
.qb-situation { margin: 0; padding: 1rem 1.2rem; border-left: 2px solid var(--ahc-accent); color: var(--ahc-muted); background: var(--ahc-surface-2); line-height: 1.7; }
.qb-table { width: 100%; border-collapse: collapse; }
.qb-table th { padding: .6rem .7rem; border-bottom: 1px solid var(--ahc-border); color: var(--ahc-muted); background: var(--ahc-surface-2); font: 600 .65rem/1.4 var(--ahc-mono); text-align: left; text-transform: uppercase; }
.qb-table td { padding: .85rem .7rem; border-bottom: 1px solid var(--ahc-border); color: var(--ahc-muted); font-size: .82rem; line-height: 1.55; vertical-align: top; }
.qb-table tr:last-child td { border-bottom: 0; }
.qb-table td:first-child { min-width: 10rem; color: var(--ahc-ink); }
.qb-table td:last-child { min-width: 8rem; color: var(--ahc-ink); }
.qb-table td strong { display: block; color: var(--ahc-ink); }
.qb-table__id, .qb-table__monthly { display: block; color: var(--ahc-muted); font: 500 .68rem/1.5 var(--ahc-mono); }
.qb-proposal-totals { display: flex; flex-wrap: wrap; gap: .8rem; }
.qb-proposal-totals > div { display: grid; min-width: min(100%, 14rem); flex: 1 1 14rem; gap: .35rem; padding: 1rem; border: 1px solid var(--ahc-border); background: var(--ahc-surface-2); }
.qb-proposal-totals span { color: var(--ahc-muted); font-size: .78rem; }
.qb-proposal-totals strong { color: var(--ahc-accent); font-size: 1.25rem; line-height: 1.25; }
.qb-proposal-totals small { color: var(--ahc-muted); font-size: .7rem; line-height: 1.5; }
.qb-proposal__price-note { margin-top: .7rem; }
.qb-next { padding: .8rem 1rem; border: 1px solid var(--ahc-border); background: var(--ahc-surface-2); }
.qb-next ul { margin: 0; padding: 0; list-style: none; }
.qb-next li { position: relative; padding: .5rem 0 .5rem 1.3rem; color: var(--ahc-muted); font-size: .86rem; line-height: 1.65; }
.qb-next li::before { position: absolute; left: 0; color: var(--ahc-accent); content: "○"; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.qb :focus-visible { outline: 3px solid var(--ahc-accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .qb-wrap { width: min(100% - 2.5rem, 1120px); }
  .qb-sticky { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .qb-sticky__actions { align-items: end; justify-content: flex-end; }
  .qb-body { padding-bottom: 17rem; }
}
@media (max-width: 767px) {
  .qb-wrap { width: min(100% - 2rem, 1120px); }
  .qb-hero { padding-top: calc(60px + 2rem); padding-bottom: 1.5rem; }
  .qb-lead { font-size: .96rem; }
  .qb-body { padding-top: 1rem; padding-bottom: 18rem; }
  .qb-steps { gap: .35rem; }
  .qb-step { min-height: 3.25rem; gap: .4rem; padding: .45rem .4rem; }
  .qb-step__number { width: 1.55rem; height: 1.55rem; font-size: .65rem; }
  .qb-step__label { font-size: .76rem; }
  .qb-group { margin: 1.6rem 0 2rem; }
  .qb-catalog-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .qb-card__question { min-height: 0; }
  .qb-sticky { right: 0; left: 0; gap: .45rem; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); }
  .qb-sticky__summary { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .qb-sticky__count { font-size: .75rem; }
  .qb-sticky__prices { gap: .1rem .6rem; }
  .qb-sticky__prices strong { font-size: .82rem; }
  .qb-sticky__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem; }
  .qb-sticky__actions > .qb-button { align-self: center; }
  .qb-order-form { max-width: none; gap: .05rem; }
  .qb-terms { min-height: 38px; font-size: .64rem; }
  .qb-order-form .qb-button { min-height: 44px; padding: .55rem .6rem; font-size: .82rem; }
  .qb-order-note { font-size: .62rem; }
  .qb-details-grid { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
  .qb-field--full { grid-column: auto; }
  .qb-form-actions { flex-direction: column-reverse; }
  .qb-form-actions .qb-button { width: 100%; }
  .qb-send-form { flex-direction: column; }
  .qb-send-form .qb-button { width: 100%; }
  .qb-proposal__head { flex-direction: column; gap: 1.1rem; padding: 1.2rem; }
  .qb-proposal__head dl { min-width: 0; width: 100%; }
  .qb-proposal__body { padding: 1.2rem; }
  .qb-table-wrap { overflow: visible; }
  .qb-table, .qb-table tbody { display: block; width: 100%; }
  .qb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .qb-table tr { display: block; margin: 0 0 .75rem; padding: .65rem .8rem; border: 1px solid var(--ahc-border); }
  .qb-table td, .qb-table td:first-child, .qb-table td:last-child { display: block; min-width: 0; padding: .35rem 0; border: 0; }
  .qb-table td::before { display: block; margin-bottom: .15rem; color: var(--ahc-muted); content: attr(data-label); font-size: .68rem; font-weight: 700; }
}
@media (max-width: 390px) {
  .qb-wrap { width: calc(100% - 1.25rem); }
  .qb-hero h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .qb-step { flex-direction: column; justify-content: center; gap: .25rem; min-height: 4rem; }
  .qb-step__label { font-size: .7rem; text-align: center; }
  .qb-sticky__actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qb-button { padding-inline: .6rem; font-size: .82rem; }
  .qb-sticky__prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .qb *, .qb *::before, .qb *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  .qb-hero, .qb-steps, .qb-panel:not(#step-proposal), .qb-send-intro { display: none !important; }
  .qb-body { width: 100%; padding: 0; }
  .qb-proposal__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
