/* ============================================================
   ZELIOS ESTIMATOR — DESIGN TOKENS
   ------------------------------------------------------------
   Токени навмисно оголошені на #zx-root, а не на :root:
   імена (--cyan, --line, --dark…) перетинаються з bootstrap.css
   теми, і на :root вони протекли б на весь сайт.
   ============================================================ */
#zx-root {
  --ink: #070A14;
  --ink-2: #1B2233;
  --muted: #5B6478;
  --muted-2: #8A93A6;
  --line: #E4E8F0;
  --line-2: #EEF1F7;
  --surface: #FFFFFF;
  --surface-2: #F6F8FC;
  --surface-3: #EEF2FA;

  --accent: #1B5BFF;
  --accent-ink: #0B3DCC;
  --accent-soft: #EAF0FF;
  --accent-glow: rgba(27, 91, 255, .20);
  --cyan: #00C2FF;

  --ok: #0FA36B;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  --shadow-1: 0 1px 2px rgba(7, 10, 20, .04), 0 2px 8px rgba(7, 10, 20, .04);
  --shadow-2: 0 8px 24px rgba(7, 10, 20, .08), 0 2px 6px rgba(7, 10, 20, .04);
  --shadow-3: 0 18px 48px rgba(7, 10, 20, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --fast: .18s;
  --mid: .34s;

  --maxw: 980px;
}

/* ------------------------------------------------------------
   RESET — скоуплений під #zx-root.
   У макеті це були глобальні правила (*, html, body, button,
   h1..h4, p, ul). У темі вони поламали б хедер і футер.
   ------------------------------------------------------------ */
#zx-root,
#zx-root *,
#zx-root *::before,
#zx-root *::after {
  box-sizing: border-box
}

#zx-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#zx-root::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(0, 194, 255, .10), transparent 62%),
    radial-gradient(760px 460px at 4% -6%, rgba(27, 91, 255, .10), transparent 60%);
}

#zx-root button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none
}

#zx-root h1,
#zx-root h2,
#zx-root h3,
#zx-root h4,
#zx-root p {
  margin: 0
}

#zx-root ul {
  margin: 0;
  padding: 0;
  list-style: none
}

/* ------------------------------------------------------------
   ГАСИМО ТЕГОВІ СТИЛІ ТЕМИ.
   estimator.css вантажиться ПЕРЕД main.css і case.css, тож при
   однаковій специфічності виграє тема. Найгірший випадок —
   `section { margin: 80px 0 }` (main.css:10, на десктопі 180px) і
   `section { margin: 5rem auto }` (case.css:15): вони чіпляли
   .zx-screen і рвали відступи між екранами.

   :where() обнуляє специфічність списку тегів, тому весь блок важить
   рівно (1,0,0) — це більше за теговий селектор теми (0,0,1), але
   менше за будь-яке правило .zx-* нижче (1,1,0). Тобто порядок
   підключення більше нічого не вирішує, а власні стилі естіматора
   лишаються головними.
   ------------------------------------------------------------ */
#zx-root :where(section, article, aside, main,
  figure, figcaption, blockquote, dl, dd, form, fieldset,
  h1, h2, h3, h4, h5, h6, p, ul, ol, li) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

#zx-root :where(ul, ol) {
  list-style: none
}

#zx-root :where(a) {
  color: inherit;
  text-decoration: none
}

#zx-root :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  margin: 0;
}

/* Тема ставить img{max-width:100%;height:auto;display:block} — саме img,
   тому svg-іконки навмисно не чіпаємо: display:block зламав би їхнє
   вирівнювання всередині кнопок. */
#zx-root :where(img) {
  max-width: 100%;
  height: auto;
  display: block
}

/* ---------- LAYOUT ---------- */
#zx-root {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column
}

/* ---------- PROGRESS STRIP ----------
   Замість топбару макета (логотип + прогрес): логотип дає хедер
   теми, а смужка прогресу живе окремим блоком одразу під ним і
   липне до верху при скролі.
   ------------------------------------------------------------ */
#zx-root .zx-progress-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

#zx-root .zx-progress-strip-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width:640px) {
  #zx-root .zx-progress-strip-in {
    padding: 10px 16px
  }
}

#zx-root .zx-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-right: 4px
}

#zx-root .zx-progress-track {
  width: 180px;
  height: 5px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}

@media (max-width:640px) {
  #zx-root .zx-progress-track {
    width: 96px
  }
}

#zx-root .zx-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width var(--mid) var(--ease);
}

#zx-root .zx-progress-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums
}

/* ---------- LIVE ESTIMATE ----------
   Плашка з поточною ціною праворуч від прогресу. Клік розкриває
   попап зі списком відповідей; попап позиціонується від плашки,
   тому .zx-live лишається relative.
   ------------------------------------------------------------ */
#zx-root .zx-live {
  position: relative;
  flex: 0 0 auto
}

#zx-root .zx-live-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

#zx-root .zx-live-btn:hover {
  border-color: var(--ink-2)
}

#zx-root .zx-live-btn:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 2px
}

#zx-root .zx-live-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1
}

#zx-root .zx-live-cap {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2)
}

#zx-root .zx-live-val {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
  color: var(--ink);
  white-space: nowrap;
}

#zx-root .zx-live-caret {
  color: var(--muted-2);
  transition: transform var(--fast) var(--ease);
  flex: 0 0 auto
}

#zx-root .zx-live-btn[aria-expanded="true"] .zx-live-caret {
  transform: rotate(180deg)
}

/* Зміна суми підстрибує — інакше цифра підмінюється непомітно. */
@keyframes zxBump {
  0% {
    transform: scale(1)
  }

  35% {
    transform: scale(1.09)
  }

  100% {
    transform: scale(1)
  }
}

#zx-root .zx-live-val.is-bump {
  animation: zxBump .42s var(--ease);
  color: var(--accent)
}

#zx-root .zx-live-btn.is-bump {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow)
}

#zx-root .zx-live-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  width: 290px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  padding: 16px;
  animation: zxIn .2s var(--ease) both;
}

@media (max-width:420px) {
  #zx-root .zx-live-pop {
    width: calc(100vw - 32px);
    right: -8px
  }
}

#zx-root .zx-live-pop-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px
}

#zx-root .zx-live-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed var(--line-2)
}

#zx-root .zx-live-row:last-of-type {
  border-bottom: 0
}

#zx-root .zx-live-row span:first-child {
  color: var(--muted);
  flex: 0 0 auto
}

#zx-root .zx-live-row span:last-child {
  font-weight: 700;
  text-align: right
}

#zx-root .zx-live-rush {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: #9A5B00;
  background: #FFF4E0;
  border: 1px solid #FFE1AE;
  border-radius: 8px;
  padding: 8px 10px;
}

#zx-root .zx-live-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.45
}

/* На вузьких екранах у смужці лишається сама сума: підпис кроку і
   капс над числом зникають, доріжка прогресу коротшає. */
@media (max-width:700px) {
  #zx-root .zx-progress-label {
    display: none
  }

  #zx-root .zx-progress-track {
    width: 60px
  }

  #zx-root .zx-live-cap {
    display: none
  }

  #zx-root .zx-live-val {
    margin-top: 0;
    font-size: 14px
  }
}

/* Та сама надбавка на темному героєві результату. */
#zx-root .zx-rush-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #FFD79A;
  background: rgba(255, 168, 46, .14);
  border: 1px solid rgba(255, 168, 46, .36);
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

#zx-root .zx-main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 96px
}

#zx-root .zx-screen {
  padding-top: 20px
}

@media (max-width:640px) {
  #zx-root .zx-main {
    padding: 0 16px 88px
  }

  #zx-root .zx-screen {
    padding-top: 26px
  }
}

/* ---------- MOTION ---------- */
@keyframes zxIn {
  from {
    opacity: 0;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes zxOut {
  from {
    opacity: 1;
    transform: none
  }

  to {
    opacity: 0;
    transform: translateY(-10px)
  }
}

#zx-root .zx-anim-in {
  animation: zxIn var(--mid) var(--ease) both
}

#zx-root .zx-anim-out {
  animation: zxOut .16s var(--ease) both
}

#zx-root .zx-stagger>* {
  animation: zxIn var(--mid) var(--ease) both
}

#zx-root .zx-stagger>*:nth-child(1) {
  animation-delay: .02s
}

#zx-root .zx-stagger>*:nth-child(2) {
  animation-delay: .06s
}

#zx-root .zx-stagger>*:nth-child(3) {
  animation-delay: .10s
}

#zx-root .zx-stagger>*:nth-child(4) {
  animation-delay: .14s
}

#zx-root .zx-stagger>*:nth-child(5) {
  animation-delay: .18s
}

#zx-root .zx-stagger>*:nth-child(6) {
  animation-delay: .21s
}

#zx-root .zx-stagger>*:nth-child(7) {
  animation-delay: .24s
}

#zx-root .zx-stagger>*:nth-child(8) {
  animation-delay: .27s
}

#zx-root .zx-stagger>*:nth-child(n+9) {
  animation-delay: .30s
}

@media (prefers-reduced-motion:reduce) {

  #zx-root,
  #zx-root *,
  #zx-root *::before,
  #zx-root *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important
  }
}

/* ---------- TYPE ---------- */
#zx-root .zx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 7px 13px;
  border-radius: 99px;
  margin-bottom: 18px;
}

#zx-root .zx-h1 {
  font-size: clamp(34px, 6.2vw, 58px);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 800;
}

#zx-root .zx-h2 {
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
}

#zx-root .zx-h3 {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700
}

#zx-root .zx-sub {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.55;
  max-width: 60ch
}

#zx-root .zx-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2)
}

#zx-root .zx-mono-num {
  font-variant-numeric: tabular-nums
}

/* ---------- BUTTONS ---------- */
#zx-root .zx-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
  will-change: transform;
}

#zx-root .zx-btn:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px
}

#zx-root .zx-btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-2)
}

#zx-root .zx-btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow)
}

#zx-root .zx-btn-primary:active {
  transform: translateY(0)
}

#zx-root .zx-btn-primary[disabled] {
  opacity: .32;
  pointer-events: none
}

#zx-root .zx-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line)
}

#zx-root .zx-btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface-2)
}

#zx-root .zx-btn-sm {
  padding: 11px 18px;
  font-size: 14px
}

#zx-root .zx-btn-arrow {
  transition: transform var(--fast) var(--ease)
}

#zx-root .zx-btn:hover .zx-btn-arrow {
  transform: translateX(3px)
}

#zx-root .zx-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 4px;
  margin-bottom: 14px;
  border-radius: 8px;
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

#zx-root .zx-back:hover {
  color: var(--ink);
  transform: translateX(-3px)
}

#zx-root .zx-back:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 2px
}

#zx-root .zx-q1-head {
  margin: 8px 0 30px
}

#zx-root .zx-q1-head .zx-h1 {
  max-width: 14ch
}

#zx-root .zx-q1-head .zx-sub {
  margin-top: 14px
}

@media (max-width:640px) {
  #zx-root .zx-q1-head {
    margin: 0 0 24px
  }
}

/* Ряд кнопок під заголовком (екран помилки відправки). */
#zx-root .zx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px
}

/* ---------- QUESTION HEAD ---------- */
#zx-root .zx-qhead {
  margin-bottom: 26px
}

#zx-root .zx-qhead .zx-h2 {
  max-width: 20ch
}

#zx-root .zx-qhelp {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px
}

/* ---------- CARD GRIDS ---------- */
#zx-root .zx-grid {
  display: grid;
  gap: 12px
}

#zx-root .zx-grid-1 {
  grid-template-columns: 1fr
}

#zx-root .zx-grid-2 {
  grid-template-columns: repeat(2, 1fr)
}

#zx-root .zx-grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

@media (max-width:820px) {
  #zx-root .zx-grid-3 {
    grid-template-columns: 1fr
  }
}

@media (max-width:640px) {
  #zx-root .zx-grid-2 {
    grid-template-columns: 1fr
  }
}

/* generic option card */
#zx-root .zx-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid var(--line);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease), background var(--fast) var(--ease);
}

#zx-root .zx-card:hover {
  border-color: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2)
}

#zx-root .zx-card:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 2px
}

#zx-root .zx-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-glow)
}

#zx-root .zx-card-body {
  flex: 1;
  min-width: 0;
  display: block
}

#zx-root .zx-card-t {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25
}

#zx-root .zx-card-d {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 4px
}

#zx-root .zx-card-key {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted-2);
  transition: all var(--fast) var(--ease);
}

#zx-root .zx-card:hover .zx-card-key {
  border-color: var(--ink-2);
  color: var(--ink)
}

#zx-root .zx-card.is-selected .zx-card-key {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

@media (max-width:640px) {
  #zx-root .zx-card-key {
    display: none
  }
}

/* quantity badge on the right of an option card */
#zx-root .zx-card-badge {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(27, 91, 255, .18);
  padding: 7px 13px;
  border-radius: 99px;
  white-space: nowrap;
  transition: all var(--fast) var(--ease);
}

#zx-root .zx-card:hover .zx-card-badge {
  background: #fff;
  border-color: rgba(27, 91, 255, .35)
}

#zx-root .zx-card.is-selected .zx-card-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff
}

@media (max-width:640px) {
  #zx-root .zx-card {
    flex-wrap: wrap
  }

  #zx-root .zx-card-badge {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    text-align: center
  }
}

/* multi-select check */
#zx-root .zx-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.8px solid var(--line);
  display: grid;
  place-items: center;
  transition: all var(--fast) var(--ease);
}

#zx-root .zx-check svg {
  opacity: 0;
  transform: scale(.6);
  transition: all var(--fast) var(--ease)
}

#zx-root .zx-card.is-selected .zx-check {
  background: var(--accent);
  border-color: var(--accent)
}

#zx-root .zx-card.is-selected .zx-check svg {
  opacity: 1;
  transform: scale(1)
}

/* ---------- ENGAGEMENT CARDS (Q1) ---------- */
#zx-root .zx-eng-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

@media (max-width:900px) {
  #zx-root .zx-eng-grid {
    grid-template-columns: 1fr
  }
}

#zx-root .zx-eng {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 26px 24px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: border-color var(--mid) var(--ease), box-shadow var(--mid) var(--ease), transform var(--mid) var(--ease);
}

#zx-root .zx-eng::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--mid) var(--ease);
}

#zx-root .zx-eng:hover {
  border-color: var(--ink-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-3)
}

#zx-root .zx-eng:hover::after {
  transform: scaleX(1)
}

#zx-root .zx-eng:focus-visible {
  outline: 3px solid var(--accent-glow);
  outline-offset: 3px
}

#zx-root .zx-eng-level {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

#zx-root .zx-eng-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--muted-2);
  transition: background var(--fast) var(--ease)
}

#zx-root .zx-eng:hover .zx-eng-dot {
  background: var(--accent)
}

#zx-root .zx-eng-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all var(--mid) var(--ease);
}

#zx-root .zx-eng:hover .zx-eng-ico {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink)
}

#zx-root .zx-eng-t {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15
}

#zx-root .zx-eng-quote {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
}

#zx-root .zx-eng-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px
}

#zx-root .zx-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  padding: 4px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

#zx-root .zx-eng-foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.01em;
}

#zx-root .zx-eng:hover .zx-eng-foot .zx-btn-arrow {
  transform: translateX(4px)
}

#zx-root .zx-eng-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted-2);
  text-align: center;
}

/* ---------- MEDIA PREVIEW ---------- */
#zx-root .zx-qsplit {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 26px;
  align-items: start
}

@media (max-width:900px) {
  #zx-root .zx-qsplit {
    grid-template-columns: 1fr;
    gap: 0
  }
}

#zx-root .zx-preview {
  /* 92px у макеті = під топбаром; тут — під липкою смужкою прогресу */
  position: sticky;
  top: 76px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  animation: zxIn var(--mid) var(--ease) both;
}

@media (max-width:900px) {
  #zx-root .zx-preview {
    display: none
  }
}

#zx-root .zx-preview-media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--ink);
  overflow: hidden;
}

#zx-root .zx-preview-media>* {
  position: absolute;
  inset: 0;
  width: 101%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
  animation: zxFade .26s var(--ease) both;
}

@keyframes zxFade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

#zx-root .zx-preview-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(7, 10, 20, .62);
  backdrop-filter: blur(6px);
  padding: 5px 10px;
  border-radius: 99px;
  animation: none;
  inset: auto auto auto 12px;
  top: 12px;
  width: auto;
  height: auto;
}

#zx-root .zx-preview-cap {
  padding: 16px 18px 18px
}

#zx-root .zx-preview-t {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em
}

#zx-root .zx-preview-d {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px
}

#zx-root .zx-preview-hint {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* mobile: inline thumbnail instead of the panel */
#zx-root .zx-card-thumb {
  display: none;
  flex: 0 0 auto;
  width: 66px;
  height: 42px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}

#zx-root .zx-card-thumb>* {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block
}

@media (max-width:900px) {
  #zx-root .zx-card-thumb {
    display: block
  }
}

/* ---------- STICKY CONTINUE (multi-select) ---------- */
#zx-root .zx-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  margin-top: 24px;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .94) 34%, #fff 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#zx-root .zx-actionbar-note {
  font-size: 13.5px;
  color: var(--muted-2);
  font-weight: 500
}

/* ---------- CALCULATING ---------- */
#zx-root .zx-calc {
  min-height: calc(100dvh - 260px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 22px;
}

#zx-root .zx-calc-ring {
  width: 56px;
  height: 56px;
  border-radius: 99px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--accent);
  animation: zxSpin .8s linear infinite;
}

@keyframes zxSpin {
  to {
    transform: rotate(360deg)
  }
}

#zx-root .zx-calc-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center
}

#zx-root .zx-calc-step {
  font-size: 14.5px;
  color: var(--muted-2);
  font-weight: 500;
  opacity: .35;
  transition: opacity var(--mid) var(--ease), color var(--mid) var(--ease);
}

#zx-root .zx-calc-step.is-on {
  opacity: 1;
  color: var(--ink)
}

#zx-root .zx-calc-step.is-done {
  opacity: .55;
  color: var(--muted)
}

/* ---------- RESULT ---------- */
#zx-root .zx-res-hero {
  border-radius: var(--r-xl);
  padding: 38px 36px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}

@media (max-width:640px) {
  #zx-root .zx-res-hero {
    padding: 28px 22px;
    border-radius: var(--r-lg)
  }
}

#zx-root .zx-res-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(620px 320px at 92% -10%, rgba(0, 194, 255, .30), transparent 62%),
    radial-gradient(520px 300px at 8% 108%, rgba(27, 91, 255, .34), transparent 62%);
}

#zx-root .zx-res-hero>* {
  position: relative
}

#zx-root .zx-res-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  gap: 32px;
  align-items: start;
}

#zx-root .zx-res-grid+.zx-res-figures {
  margin-top: 26px
}

/* Mobile: numbers before the call CTA so the price stays above the fold. */
@media (max-width:900px) {
  #zx-root .zx-res-hero {
    display: flex;
    flex-direction: column
  }

  #zx-root .zx-res-grid {
    display: contents
  }

  #zx-root .zx-res-main {
    order: 1
  }

  #zx-root .zx-res-figures {
    order: 2
  }

  #zx-root .zx-res-cta {
    order: 3;
    margin-top: 26px
  }
}

#zx-root .zx-res-cta {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 22px 20px;
}

#zx-root .zx-res-cta-t {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25
}

#zx-root .zx-res-cta-d {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .66);
  line-height: 1.5;
  margin-top: 8px
}

#zx-root .zx-btn-onDark {
  background: #fff;
  color: var(--ink);
  width: 100%;
  margin-top: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

#zx-root .zx-btn-onDark:hover {
  background: var(--cyan);
  color: var(--ink);
  transform: translateY(-2px)
}

#zx-root .zx-res-cta-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .52);
  font-weight: 500;
}

#zx-root .zx-res-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .56);
}

#zx-root .zx-res-title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-top: 12px;
}

#zx-root .zx-res-sub {
  margin-top: 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch
}

#zx-root .zx-res-figures {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

@media (max-width:560px) {
  #zx-root .zx-res-figures {
    grid-template-columns: 1fr;
    gap: 20px
  }
}

#zx-root .zx-fig-l {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52)
}

#zx-root .zx-fig-v {
  font-size: clamp(26px, 4.6vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

#zx-root .zx-fig-n {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .56);
  margin-top: 6px
}

#zx-root .zx-block {
  margin-top: 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  background: var(--surface)
}

@media (max-width:640px) {
  #zx-root .zx-block {
    padding: 22px 18px
  }
}

#zx-root .zx-block-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px
}

#zx-root .zx-block-t {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em
}

#zx-root .zx-block-n {
  font-size: 13.5px;
  color: var(--muted-2)
}

#zx-root .zx-deliv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px
}

@media (max-width:640px) {
  #zx-root .zx-deliv {
    grid-template-columns: 1fr
  }
}

#zx-root .zx-deliv li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  padding: 3px 0
}

#zx-root .zx-deliv .zx-tick {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--accent)
}

#zx-root .zx-scope {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

@media (max-width:640px) {
  #zx-root .zx-scope {
    grid-template-columns: 1fr
  }
}

#zx-root .zx-scope-item {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  background: var(--surface-2);
}

#zx-root .zx-scope-v {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums
}

#zx-root .zx-scope-l {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 7px;
  font-weight: 600
}

#zx-root .zx-why {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

#zx-root .zx-why strong {
  color: var(--ink);
  font-weight: 700
}

/* funnel */
#zx-root .zx-funnel {
  display: flex;
  flex-direction: column;
  gap: 0
}

#zx-root .zx-funnel-stage {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  background: var(--surface);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width:640px) {
  #zx-root .zx-funnel-stage {
    flex-direction: column;
    gap: 8px
  }
}

#zx-root .zx-funnel-name {
  flex: 0 0 150px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}

#zx-root .zx-funnel-num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
}

#zx-root .zx-funnel-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1
}

#zx-root .zx-funnel-arrow {
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--line);
}

#zx-root .zx-funnel-arrow svg {
  display: block
}

/* tiers */
#zx-root .zx-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

@media (max-width:820px) {
  #zx-root .zx-tiers {
    grid-template-columns: 1fr
  }
}

#zx-root .zx-tier {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 18px;
  background: var(--surface);
  transition: all var(--fast) var(--ease);
  display: flex;
  flex-direction: column;
}

#zx-root .zx-tier.is-rec {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-glow)
}

#zx-root .zx-tier-badge-slot {
  height: 22px;
  margin-bottom: 12px
}

#zx-root .zx-tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 9px;
  border-radius: 99px;
  margin-bottom: 12px;
}

#zx-root .zx-tier-price {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums
}

#zx-root .zx-tier-per {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted)
}

#zx-root .zx-tier-name {
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--ink-2)
}

#zx-root .zx-tier-d {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px
}

@media (min-width:821px) {
  #zx-root .zx-tier-d {
    min-height: 3.9em
  }
}

#zx-root .zx-tier-list {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 6px
}

#zx-root .zx-tier-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px
}

#zx-root .zx-tier-row span:first-child {
  color: var(--muted);
  white-space: nowrap
}

#zx-root .zx-tier-row span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right
}

/* capacity */
#zx-root .zx-cap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

@media (max-width:760px) {
  #zx-root .zx-cap {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:440px) {
  #zx-root .zx-cap {
    grid-template-columns: 1fr
  }
}

#zx-root .zx-cap-item {
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  background: var(--surface-2)
}

#zx-root .zx-cap-v {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1
}

#zx-root .zx-cap-l {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
  line-height: 1.35
}

/* upsell */
#zx-root .zx-upsell {
  margin-top: 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

#zx-root .zx-upsell-t {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.015em
}

#zx-root .zx-upsell-d {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 52ch;
  line-height: 1.5
}

#zx-root .zx-upsell-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent);
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--fast) var(--ease)
}

#zx-root .zx-upsell-link:hover {
  border-color: var(--accent)
}

/* disclaimer */
#zx-root .zx-disclaim {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.55;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

#zx-root .zx-disclaim svg {
  flex: 0 0 auto;
  margin-top: 2px
}

/* ---------- CONTACT GATE ---------- */
#zx-root .zx-gate-head {
  margin-bottom: 22px
}

#zx-root .zx-gate-head .zx-h2 {
  max-width: 22ch
}

#zx-root .zx-gate-card {
  border-radius: var(--r-xl);
  padding: 30px 30px 26px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-2);
  max-width: 620px;
}

@media (max-width:640px) {
  #zx-root .zx-gate-card {
    padding: 22px 18px;
    border-radius: var(--r-lg)
  }
}

#zx-root .zx-gate-card .zx-form {
  margin-top: 0
}

#zx-root .zx-phone-row {
  display: flex;
  gap: 8px
}

/* Стилі .zx-dial — нижче, у блоці SELECT. */

/* ---------- CONTACT ---------- */
#zx-root .zx-contact {
  margin-top: 26px;
  border-radius: var(--r-xl);
  padding: 34px 32px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
}

@media (max-width:640px) {
  #zx-root .zx-contact {
    padding: 26px 20px;
    border-radius: var(--r-lg)
  }
}

#zx-root .zx-form {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px
}

@media (max-width:640px) {
  #zx-root .zx-form {
    grid-template-columns: 1fr
  }
}

#zx-root .zx-field {
  display: flex;
  flex-direction: column;
  gap: 7px
}

#zx-root .zx-field-full {
  grid-column: 1/-1
}

#zx-root .zx-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.005em
}

#zx-root .zx-label span {
  color: var(--muted-2);
  font-weight: 500
}

#zx-root .zx-input {
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1.5px solid var(--line);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  width: 100%;
}

#zx-root .zx-input::placeholder {
  color: var(--muted-2)
}

#zx-root .zx-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow)
}

#zx-root .zx-input[aria-invalid="true"] {
  border-color: #E0483C;
  box-shadow: 0 0 0 3px rgba(224, 72, 60, .14)
}

/* ---------- SELECT ----------
   Оголошено ПІСЛЯ .zx-input: там background — шорткат, який скидає
   background-image, тож стрілка мусить ставитись пізніше. Колір фону
   задаємо окремою властивістю, щоб більше нічого не затирало картинку.
   ---------------------------------------------------------------- */
#zx-root select.zx-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  /* Однакова висота з текстовими полями: у select інші типові відступи. */
  height: 52px;
  padding: 0 38px 0 16px;
  line-height: normal;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5l5-5' stroke='%235B6478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  text-overflow: ellipsis;
}

#zx-root select.zx-input:hover {
  border-color: var(--muted-2)
}

#zx-root select.zx-input:focus {
  /* Стрілка перефарбовується в акцент разом із рамкою. */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5l5-5' stroke='%231B5BFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Поки не обрано — текст приглушений, як у placeholder текстових полів. */
#zx-root select.zx-input:has(option[value=""]:checked) {
  color: var(--muted-2)
}

#zx-root select.zx-input option {
  color: var(--ink);
  background: var(--surface)
}

#zx-root select.zx-input option[value=""] {
  color: var(--muted-2)
}

/* IE/Edge-legacy: прибрати рідну стрілку. */
#zx-root select.zx-input::-ms-expand {
  display: none
}

/* ---------- ВЛАСНИЙ ВИПАДАЮЧИЙ СПИСОК ----------
   Нативний попап <select> малює ОС, і CSS до нього не дістає. Тому
   поверх схованого select будується свій список. Сам select лишається
   в DOM і тримає значення — форма працює і без JS.
   ---------------------------------------------------------------- */
#zx-root .zx-select {
  position: relative
}

/* Нативний select ховаємо так, щоб він лишався доступним для форми. */
#zx-root .zx-select select.zx-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  margin: 0;
}

#zx-root .zx-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 38px 0 16px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  text-align: left;
  background-color: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5l5-5' stroke='%235B6478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#zx-root .zx-select-btn.is-empty {
  color: var(--muted-2)
}

#zx-root .zx-select-btn:hover {
  border-color: var(--muted-2)
}

#zx-root .zx-select-btn:focus-visible,
#zx-root .zx-select.is-open .zx-select-btn {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Розкрито — стрілка перевертається і фарбується в акцент. */
#zx-root .zx-select.is-open .zx-select-btn {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M11 6.5L6 1.5l-5 5' stroke='%231B5BFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#zx-root .zx-select-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 264px;
  overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  animation: zxIn .16s var(--ease) both;
}

#zx-root .zx-select-list[hidden] {
  display: none
}

#zx-root .zx-select-opt {
  padding: 11px 13px;
  border-radius: var(--r-sm);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#zx-root .zx-select-opt.is-active {
  background: var(--surface-2)
}

#zx-root .zx-select-opt[aria-selected="true"] {
  color: var(--accent-ink);
  font-weight: 600;
  background: var(--accent-soft);
}

/* Галочка на обраному — без неї при наведенні незрозуміло, що вибрано. */
#zx-root .zx-select-opt[aria-selected="true"]::after {
  content: '';
  flex: 0 0 14px;
  height: 10px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10' fill='none'%3E%3Cpath d='M1.5 5.2l3.6 3.4L12.5 1.5' stroke='%230B3DCC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/14px 10px;
}

/* Список коду країни — вузький, під ширину кнопки. */
#zx-root .zx-select-dial {
  flex: 0 0 104px;
  width: 104px
}

#zx-root .zx-select-dial .zx-select-btn {
  padding: 0 28px 0 12px;
  background-position: right 9px center;
  font-variant-numeric: tabular-nums
}

#zx-root .zx-select-dial .zx-select-list {
  min-width: 104px
}

/* Селект коду країни — вужчий, у ряд із телефоном. */
#zx-root select.zx-dial {
  flex: 0 0 104px;
  width: 104px;
  padding: 0 30px 0 12px;
  background-position: right 10px center;
  font-variant-numeric: tabular-nums;
}

/* ---------- ХОВАЄМО ВЕРХНЮ СМУЖКУ ТЕМИ ----------
   Тільки на сторінці квіза. Клас на <body> вішає page-quiz.php.
   Свідомо поза скоупом #zx-root: .top-bar живе у хедері теми, вище
   нашого контейнера.
   ---------------------------------------------------------------- */
body.zx-page .top-bar {
  display: none
}

#zx-root .zx-err {
  font-size: 12.5px;
  color: #C63A2F;
  font-weight: 600;
  min-height: 0
}

#zx-root .zx-form-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px
}

#zx-root .zx-privacy {
  grid-column: 1/-1;
  font-size: 12.5px;
  color: var(--muted-2);
  line-height: 1.5
}

#zx-root .zx-nextsteps {
  margin-top: 24px
}

#zx-root .zx-sent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1.5px solid var(--ok);
}

#zx-root .zx-sent-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 99px;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
}

/* ---------- FOOT ---------- */
#zx-root .zx-restart {
  margin-top: 26px;
  text-align: center
}

#zx-root .zx-restart button {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 99px;
  transition: all var(--fast) var(--ease);
}

#zx-root .zx-restart button:hover {
  color: var(--ink);
  background: var(--surface-2)
}

#zx-root .zx-screen h1[tabindex],
#zx-root .zx-screen h2[tabindex] {
  outline: none
}

#zx-root .zx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}