/* ============================================================
   OMNISCORE — квіз /quiz/ «Зберіть свій Omniscore»
   Сторінка-застосунок на чорнилі: зверху схема системи (ядро Omni й шість частин навколо),
   під нею біла картка з питанням. Відповіді вмикають свої частини на схемі; наприкінці
   картка показує суму, з чого вона складається, і форму заявки. Токени, кнопки й поля —
   зі style.css. Телефон — основний екран: схема прилипає вгорі, кнопки питання — внизу.
   Від 980 px — дві колонки: питання ліворуч, схема праворуч.
   ============================================================ */
.qz-html { scroll-behavior: auto; scroll-padding-top: 0; }
.qz-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(70% 420px at 0% 0%, rgba(198, 240, 60, .17), transparent 70%),
    radial-gradient(80% 520px at 100% 120px, rgba(17, 79, 223, .46), transparent 72%),
    var(--dark);
  color: #fff;
}
.qz-page :focus-visible { outline-color: var(--acid); }

/* ---------- Верхній рядок: лого й обіцянка пілоту ---------- */
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 1168px; margin: 0 auto; padding: 14px 16px 10px; }
.qz-top .logo img { height: 26px; }
.qz-top-note { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--radius-pill); border: 1px solid rgba(198, 240, 60, .35); background: rgba(198, 240, 60, .1); font-size: 13px; line-height: 1.3; white-space: nowrap; }
.qz-top-note b { padding: 3px 8px; border-radius: var(--radius-pill); background: var(--acid); color: var(--acid-ink); font-size: 12px; font-weight: 700; }

.qz { flex: 1; width: 100%; max-width: 1168px; margin: 0 auto; padding: 0 12px 32px; }
.qz-head { padding: 10px 4px 16px; }
.qz-head .h1 { font-size: clamp(27px, 7.4vw, 44px); }
.qz-head .lead { margin-top: 10px; font-size: 15.5px; color: var(--on-dark-2); }
.qz-head .hl { white-space: nowrap; }

/* На телефоні .qz-side «розчиняється»: схема, картка й примітки йдуть одним стовпчиком у такому порядку */
.qz-grid { display: flex; flex-direction: column; }
.qz-side { display: contents; }
.qz-stage { order: 1; }
.qz-card { order: 2; }
.qz-aside { order: 3; }

/* ---------- Схема системи ---------- */
.qz-stage {
  position: sticky;
  top: 8px;
  z-index: 6;
  padding: 10px 12px;
  border-radius: 24px;
  background-color: rgba(36, 36, 40, .94);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px);
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px var(--on-dark-line), 0 18px 40px -24px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
/* поки людина друкує (клавіатура забирає пів екрана) і на екрані результату схема не липне */
.qz.is-typing .qz-stage,
.qz[data-phase="result"] .qz-stage { position: static; }

.qz-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; margin-bottom: 8px; }
.qz-kicker { font-family: var(--head); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acid); }
.qz-niche { max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .09); font-size: 12.5px; font-weight: 500; color: #fff; }
.qz-niche[hidden] { display: none; }

.qz-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0 18px; align-items: center; }
.qz-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.qz-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; }

/* частина системи: пунктир — ще не у складі, лайм — підʼєднана, синій пунктир — ваша зовнішня система */
.qz-node {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 3px 10px 3px 4px;
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(255, 255, 255, .2);
  background: rgba(30, 30, 33, .7);
  font-size: 13px;
  line-height: 1.15;
  color: var(--on-dark-3);
  transition: color .3s, background .3s, border-color .3s;
}
.qz-node .ico { width: 24px; height: 24px; padding: 5.5px; border-radius: 50%; background: rgba(255, 255, 255, .07); color: var(--on-dark-3); transition: background .3s, color .3s; }
.qz-node span { min-width: 0; }
.qz-node b { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 600; white-space: nowrap; }
.qz-node small { display: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--on-dark-3); }
.qz-node.on { border: 1px solid rgba(198, 240, 60, .62); background: rgba(52, 60, 30, .92); color: #fff; }
.qz-node.on .ico { background: var(--acid); color: var(--acid-ink); }
.qz-node.ext { border-color: rgba(138, 165, 230, .75); background: rgba(27, 40, 78, .9); color: #fff; }
.qz-node.ext .ico { background: rgba(138, 165, 230, .28); color: #fff; }
.qz-node.pop { animation: qz-pop .5s var(--ease); }
@keyframes qz-pop { 0% { transform: scale(.86); } 55% { transform: scale(1.06); } 100% { transform: none; } }

.qz-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3A3F55 0%, var(--dark) 70%);
  box-shadow: 0 0 0 1px rgba(198, 240, 60, .55), 0 0 0 7px rgba(198, 240, 60, .09), 0 14px 30px -12px rgba(17, 79, 223, .75);
  color: #fff;
}
.qz-core .ico { width: 18px; height: 18px; margin-bottom: 1px; color: var(--acid); stroke-width: 1.6; }
.qz-core b { font-family: var(--head); font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.qz-core small { display: none; font-size: 11px; color: var(--on-dark-2); }
.qz-core-orbit { position: absolute; inset: -13px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .2); pointer-events: none; }
.qz-core-orbit::after { content: ""; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 3px rgba(198, 240, 60, .22); }
/* хвиля від ядра, коли до нього підʼєдналась нова частина */
.qz-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--acid); opacity: 0; pointer-events: none; }
.qz-core.hit::after { animation: qz-ring .7s var(--ease); }
@keyframes qz-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@media (prefers-reduced-motion: no-preference) {
  .qz-core-orbit { animation: orbit-spin 34s linear infinite; }
}

.qz-line { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 5; transition: stroke .3s; }
.qz-line.on { stroke: rgba(198, 240, 60, .75); stroke-dasharray: none; }
.qz-line.ext { stroke: rgba(138, 165, 230, .85); stroke-dasharray: 4 5; }
/* лінія «домальовується» від частини до ядра; --len — її довжина, ставить quiz.js */
.qz-line.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: qz-draw .55s var(--ease) forwards; }
@keyframes qz-draw { to { stroke-dashoffset: 0; } }
.qz-pulse { fill: var(--acid); }
.qz-pulse--back { fill: var(--brand-300); }

.qz-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; min-height: 24px; margin-top: 8px; }
.qz-badges-hint { font-size: 12.5px; color: var(--on-dark-3); }
.qz-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .09); font-size: 12px; font-weight: 500; line-height: 1.5; color: rgba(255, 255, 255, .88); white-space: nowrap; animation: qz-in .4s var(--ease) both; }

/* ---------- Картка з питанням ---------- */
.qz-card { position: relative; margin-top: 12px; padding: 18px 16px 16px; border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.qz-card :focus-visible { outline-color: var(--brand); }
.qz-pane { animation: qz-in .35s var(--ease) both; }
@keyframes qz-in { from { opacity: 0; transform: translateY(8px); } }

.qz-bar { display: flex; align-items: center; gap: 10px; min-height: 32px; margin-bottom: 14px; }
.qz-back { display: inline-flex; align-items: center; gap: 4px; height: 32px; margin-left: -6px; padding: 0 10px 0 6px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color .2s, background .2s; }
.qz-back:hover { color: var(--ink); background: var(--bg); }
.qz-progress { flex: 1; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.qz-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .45s var(--ease); }
.qz-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz-count--end { margin-left: auto; }

.qz-ico { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qz-q { font-family: var(--head); font-size: clamp(21px, 5.6vw, 28px); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; outline: none; }
.qz-q--sub { font-size: 19px; }
.qz-hint { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.qz-hint a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.qz-opts--col { grid-template-columns: minmax(0, 1fr); }
.qz-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 12px 9px 14px;
  border-radius: 16px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: break-word;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: background .18s, box-shadow .18s, transform .18s var(--ease);
}
.qz-opt span { min-width: 0; }
.qz-opt:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.qz-opt:active { transform: scale(.98); }
.qz-opt--wide { grid-column: 1 / -1; }
/* квадратик-відмітка — лише там, де можна вибрати кілька; одна відповідь позначається заливкою */
.qz-opt-mark { flex: none; width: 22px; height: 22px; margin-left: auto; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .18s, box-shadow .18s; }
.qz-opt[aria-pressed="true"] { background: var(--acid); box-shadow: inset 0 0 0 1.5px var(--ink); }
.qz-opt[aria-pressed="true"] .qz-opt-mark {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6F03C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: none;
}
.qz-opts[hidden] { display: none; }
.qz-extra { margin-top: 10px; }
.qz-extra[hidden] { display: none; }
.qz-extra--main { margin-top: 16px; }   /* поле замість варіантів (сфера) */
.qz-extra--main input { padding-top: 14px; padding-bottom: 14px; }

/* низ картки: статус голосу й кнопки */
.qz-foot { margin-top: 16px; }
.qz-nav { display: flex; align-items: center; gap: 10px; }
.qz-nav .btn { min-height: 50px; padding: 12px 24px; margin-left: auto; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
/* кнопки квізу не «підстрибують» під курсором: біля самого краю кнопка від цього тремтить,
   а на телефоні після дотику так і лишається піднятою */
.qz-page .btn:hover { transform: none; }
/* мікрофон у рядку підказки: маленька пігулка одразу під питанням */
.qz-say { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 2px 0; padding: 0 12px 0 9px; border-radius: var(--radius-pill); background: var(--brand-50); font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--brand-700); vertical-align: middle; white-space: nowrap; transition: background .2s, color .2s; }
.qz-say:hover { background: var(--brand-100); }
.qz-say[hidden] { display: none; }
.qz-say .qz-ico { width: 16px; height: 16px; }
.qz-say.on { background: var(--ink); color: #fff; }
.qz-say.on .qz-ico { color: var(--acid); animation: qz-blink 1s ease-in-out infinite; }

/* голос: що почуто, що з цього взято, або чому не вийшло */
.qz-voice { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--brand-50); font-size: 14px; line-height: 1.45; color: var(--brand-700); }
.qz-voice[hidden] { display: none; }
.qz-voice.err { background: var(--danger-bg); color: var(--danger-ink); }
.qz-voice.ok { background: var(--success-bg); color: var(--success-ink); }
.qz-voice-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: currentColor; }
.qz-voice.live .qz-voice-dot { animation: qz-blink 1s ease-in-out infinite; }
@keyframes qz-blink { 50% { opacity: .25; transform: scale(.7); } }
.qz-voice-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qz-lang { flex: none; padding: 2px 8px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px currentColor; font-size: 12px; font-weight: 600; line-height: 1.5; color: inherit; }

/* хід збирання */
.qz-build { margin-top: 12px; }
.qz-build li { position: relative; padding: 8px 0 8px 34px; font-size: 15px; line-height: 1.4; color: var(--ink-4); transition: color .3s; }
.qz-build li::before { content: ""; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); transition: background .3s; }
.qz-build li.on { color: var(--ink); }
.qz-build li.on::before { background: var(--acid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191B22' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Результат: сума, склад, заявка ---------- */
/* спершу пряма відповідь — скільки на місяць */
.qz-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 22px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: radial-gradient(120% 150% at 100% 0%, rgba(17, 79, 223, .6), transparent 62%), var(--dark);
  color: #fff;
}
.qz-price-label { font-size: 13.5px; color: var(--on-dark-2); }
.qz-price-sum { font-family: var(--head); font-size: clamp(34px, 10vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz-price-parts { font-size: 13.5px; line-height: 1.45; color: var(--on-dark-2); }
.qz-price-pilot { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 12px 4px 4px; border-radius: var(--radius-pill); border: 1px solid rgba(198, 240, 60, .35); background: rgba(198, 240, 60, .1); font-size: 13px; line-height: 1.3; }
.qz-price-pilot b { flex: none; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--acid); color: var(--acid-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }

.qz-rows { margin-top: 6px; }
.qz-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.qz-row:first-child { border-top: 0; }
.qz-row-name { display: block; font-family: var(--head); font-size: 16px; font-weight: 700; line-height: 1.3; }
.qz-row-note { display: block; margin-top: 1px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.qz-row-note.why { color: var(--brand-700); }
.qz-row-sum { font-family: var(--head); font-size: 15.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz-row.off .qz-row-sum { color: var(--ink-4); font-weight: 500; }
.qz-row label { cursor: pointer; }
.qz-lock { display: block; width: 24px; height: 24px; margin-left: 8px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6F03C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
/* перемикач модуля */
.qz-switch { -webkit-appearance: none; appearance: none; position: relative; display: block; width: 40px; height: 24px; margin: 0; border-radius: 99px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .2s; }
.qz-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(14, 14, 14, .3); transition: transform .2s var(--ease), background .2s; }
.qz-switch:checked { background: var(--ink); box-shadow: none; }
.qz-switch:checked::after { transform: translateX(16px); background: var(--acid); }
/* команда й простори — кроками, як у конструкторі на головній */
.qz-row--step { align-items: start; }
.qz-row--step .qz-row-sum { padding-top: 2px; }
.qz-row-dot { display: block; width: 8px; height: 8px; margin: 8px 0 0 16px; border-radius: 50%; background: var(--ink-4); }
.qz-stepper { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; padding: 3px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qz-stepper button { width: 36px; height: 36px; border-radius: 9px; font-size: 20px; line-height: 1; color: var(--ink); transition: background .2s; }
.qz-stepper button:hover { background: var(--bg); }
.qz-stepper button:disabled { opacity: .3; cursor: default; background: none; }
.qz-stepper output { min-width: 62px; text-align: center; font-family: var(--head); font-size: 15px; font-weight: 700; white-space: nowrap; }

.qz-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.qz-sub b { font-family: var(--head); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz-ai { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--bg); }
.qz-ai-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 600; }
.qz-ai-head b { font-family: var(--head); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz-ai-note { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
/* повзунки дзвінків — під «Уточнити»: відповідь уже дано, це для тих, хто хоче точніше */
.qz-tune summary { display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; font-size: 13.5px; font-weight: 600; color: var(--brand-700); cursor: pointer; list-style: none; }
.qz-tune summary::-webkit-details-marker { display: none; }
.qz-tune summary::after { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C39A1' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s var(--ease); }
.qz-tune[open] summary::after { transform: rotate(180deg); }
.qz-range { display: block; margin-top: 10px; }
.qz-range span { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 13.5px; color: var(--ink-2); }
.qz-range output { font-family: var(--head); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.qz-range input { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.qz-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; font-size: 15px; font-weight: 600; }
.qz-total b { font-family: var(--head); font-size: 22px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* контакт — перший крок */
.qz-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.qz-form .form-row { gap: 12px; }
.qz-form .field input, .qz-extra input { font-size: 16px; }   /* 16 px — щоб iPhone не наближав сторінку на полі */
.qz-form .btn { min-height: 52px; }
.qz-field-note { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink-4); }

/* заставка: три кроки й велика кнопка */
.qz-how { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 20px; }
.qz-how li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--ink-2); animation: qz-in .5s var(--ease) both; animation-delay: calc(.15s + var(--i) * .12s); }
.qz-how b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--head); font-size: 14px; font-weight: 800; color: var(--ink); }
.qz-how li:last-child b { background: var(--acid); box-shadow: none; color: var(--acid-ink); }
.qz-how strong { font-weight: 700; color: var(--ink); }
.qz-go { position: relative; overflow: hidden; min-height: 56px; gap: 10px; font-size: 16.5px; }
.qz-go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .qz-go::after { animation: qz-shine 3.2s ease-in-out 1.2s infinite; }
  .qz.is-demo .qz-core { animation: qz-breathe 2.6s ease-in-out infinite; }
}
@keyframes qz-shine { 0% { left: -40%; } 35%, 100% { left: 130%; } }
/* заставка: ядро «дихає», поки до нього підʼєднуються частини */
@keyframes qz-breathe { 50% { box-shadow: 0 0 0 1px rgba(198, 240, 60, .8), 0 0 0 12px rgba(198, 240, 60, .12), 0 0 46px 6px rgba(198, 240, 60, .22); } }
.qz-intro-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.qz-intro-note b { flex: none; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--acid); color: var(--acid-ink); font-size: 12px; font-weight: 700; }

/* заявка на екрані результату: летить → у нас, або не вийшло */
.qz-sent { display: flex; align-items: flex-start; gap: 12px; margin: -8px 0 22px; padding: 14px 16px; border-radius: 18px; background: var(--bg); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.qz-sent-title { display: block; font-family: var(--head); font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.qz-sent p { margin-top: 3px; }
.qz-sent.ok { background: var(--success-bg); }
.qz-sent.err { background: var(--danger-bg); }
.qz-sent-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acid); color: var(--acid-ink); }
.qz-sent-mark .qz-ico { width: 18px; height: 18px; stroke-width: 3; }
.qz-sent-spin { flex: none; width: 22px; height: 22px; margin: 1px 4px 0 2px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--ink); animation: qz-spin .8s linear infinite; }
@keyframes qz-spin { to { transform: rotate(360deg); } }
.qz-sent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.qz-sent-actions .btn { min-height: 44px; padding: 10px 18px; }
/* після «Дякуємо» — дорога до презентації продукту */
.qz-pres { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--dark); color: #fff; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7); transition: transform .2s var(--ease); }
.qz-pres:hover { transform: translateY(-1px); }
.qz-pres-thumb { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.qz-pres-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qz-pres-thumb i { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--acid) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23191B22' d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E") 55% 50% / 15px no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .qz-pres-thumb i { animation: qz-breathe-dot 2.4s ease-in-out infinite; }
}
@keyframes qz-breathe-dot { 50% { box-shadow: 0 0 0 7px rgba(198, 240, 60, .25); } }
.qz-pres-text { flex: 1; min-width: 0; }
.qz-pres-text b { display: block; font-family: var(--head); font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.qz-pres-text small { display: block; margin-top: 2px; font-size: 13px; color: var(--on-dark-2); }
.qz-pres .qz-ico { color: var(--acid); }
.qz-sent-mail { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* примітки поруч зі схемою: що вже є в ядрі й на що звернути увагу */
.qz-aside { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.qz-aside:empty { display: none; }
.qz-box { padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--on-dark-line); }
.qz-box-title { margin-bottom: 10px; font-family: var(--head); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.qz-core-list li { position: relative; padding: 5px 0 5px 26px; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.qz-core-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.qz-core-list li.hot { color: #fff; font-weight: 600; }
.qz-core-list li.hot::before { background-color: var(--acid); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23191B22' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.qz-core-list em { margin-left: 6px; padding: 2px 7px; border-radius: var(--radius-pill); background: rgba(198, 240, 60, .14); color: var(--acid); font-size: 11px; font-style: normal; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.qz-notes li { padding: 8px 0; border-top: 1px solid var(--on-dark-line); font-size: 14px; line-height: 1.5; color: var(--on-dark-2); }
.qz-notes li:first-child { padding-top: 0; border-top: 0; }
.qz-notes li:last-child { padding-bottom: 0; }
.qz-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: #fff; }
.qz-more:hover { color: var(--acid); }

/* футер: лише юридичний рядок */
.qz-footer { padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); background: transparent; }
.qz-footer .footer-bottom { padding-top: 18px; }
.qz-footer .footer-social { display: none; }

/* ---------- Телефон ---------- */
@media (max-width: 979px) {
  /* після заставки заголовок сторінки поступається місцем схемі й питанню */
  .qz[data-phase="quiz"] .qz-head,
  .qz[data-phase="build"] .qz-head { display: none; }
  /* на заставці схема не липне: сторінка гортається цілком, до кнопки */
  .qz[data-phase="intro"] .qz-stage { position: static; }
  /* заставка на телефоні: кнопка має влізти в перший екран — опис робить сама схема */
  .qz[data-phase="intro"] .qz-head { padding-bottom: 12px; }
  .qz[data-phase="intro"] .qz-head .lead { display: none; }
  .qz-intro .qz-q { font-size: 20px; }
  .qz-how { gap: 8px; margin: 14px 0 16px; }
  .qz[data-phase="result"] .qz-head { padding-bottom: 14px; }
  .qz[data-phase="result"] .qz-head .lead { display: none; }
  /* де «Далі» обовʼязкова (кілька відповідей, розповідь), кнопка прилипає до низу екрана — під пальцем */
  .qz-foot--stick {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 4px -16px -16px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 0 0 26px 26px;
    background: linear-gradient(to top, var(--surface) 80%, rgba(255, 255, 255, 0));
  }
}
@media (max-width: 359px) {
  .qz { padding-left: 8px; padding-right: 8px; }
  .qz-map { gap: 0 12px; }
  .qz-node { gap: 5px; padding-right: 7px; font-size: 12px; }
  .qz-node .ico { width: 22px; height: 22px; padding: 5px; }
  .qz-core { width: 64px; height: 64px; }
  .qz-top-note { display: none; }   /* поруч із лого не вміщається; про пілот скаже результат */
  .qz-opt { padding-left: 11px; padding-right: 10px; font-size: 14.5px; }
  .qz-badge { padding: 3px 8px; font-size: 11.5px; }
}
/* низький екран (старий телефон, вбудований браузер із панелями): схема нижча */
@media (max-width: 979px) and (max-height: 640px) {
  .qz-stage { padding: 8px 10px; }
  .qz-stage-top { display: none; }
  .qz-col { gap: 5px; }
  .qz-node { min-height: 28px; padding-top: 2px; padding-bottom: 2px; }
  .qz-node .ico { width: 22px; height: 22px; padding: 5px; }
  .qz-core { width: 64px; height: 64px; }
  .qz-core-orbit { inset: -10px; }
  .qz-badges { margin-top: 6px; }
}

/* ---------- Компʼютер: питання ліворуч, схема праворуч ---------- */
@media (min-width: 980px) {
  .qz-top { padding: 22px 24px 8px; }
  .qz-top .logo img { height: 28px; }
  .qz { padding: 0 24px 64px; }
  .qz-head { padding: 18px 0 26px; }
  .qz-head .lead { max-width: none; font-size: 17px; }
  .qz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .qz-side { display: block; order: 2; position: sticky; top: 24px; }
  .qz-card { order: 1; margin-top: 0; padding: 28px 30px; border-radius: 32px; }
  .qz-stage, .qz.is-typing .qz-stage { position: static; padding: 22px 24px; border-radius: 32px; }
  .qz-stage-top { margin-bottom: 20px; }
  .qz-kicker { font-size: 12.5px; }
  .qz-niche { padding: 5px 14px; font-size: 14px; }
  .qz-map { gap: 0 28px; }
  .qz-col { gap: 14px; }
  .qz-node { gap: 10px; min-height: 54px; padding: 6px 14px 6px 7px; font-size: 15.5px; }
  .qz-node .ico { width: 38px; height: 38px; padding: 10px; }
  .qz-node small { display: block; }
  .qz-node small:empty { display: none; }
  .qz-core { width: 124px; height: 124px; }
  .qz-core .ico { width: 26px; height: 26px; margin-bottom: 3px; }
  .qz-core b { font-size: 24px; }
  .qz-core small { display: block; }
  .qz-core-orbit { inset: -18px; }
  .qz-line { stroke-width: 1.8; }
  .qz-badges { min-height: 32px; margin-top: 20px; gap: 8px; }
  .qz-badge { padding: 5px 14px; font-size: 13.5px; }
  .qz-badges-hint { font-size: 14px; }
  .qz-bar { margin-bottom: 18px; }
  .qz-hint { font-size: 15.5px; }
  .qz-opts { gap: 10px; margin-top: 20px; }
  .qz-opts--many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qz-opts--many .qz-opt--wide { grid-column: auto / span 2; }
  .qz-opt { min-height: 56px; padding: 10px 14px 10px 16px; font-size: 15.5px; }
  .qz-foot { margin-top: 22px; }
  .qz-price { padding: 22px 24px 20px; border-radius: 24px; }
  .qz-aside { margin-top: 16px; }
  .qz-box { padding: 20px 22px; border-radius: 26px; }
  .qz-row { padding: 12px 0; }
  .qz-footer { padding-bottom: 28px; }
}
/* вузький ноутбук: колонка схеми тісніша — частини без підписів і трохи менші */
@media (min-width: 980px) and (max-width: 1139px) {
  .qz-map { gap: 0 20px; }
  .qz-node { gap: 8px; min-height: 46px; padding: 5px 12px 5px 6px; font-size: 14.5px; }
  .qz-node .ico { width: 32px; height: 32px; padding: 8px; }
  .qz-node small { display: none; }
  .qz-core { width: 104px; height: 104px; }
  .qz-core b { font-size: 21px; }
  .qz-core small { display: none; }
}
