/* ══════════════════════════════════════════════════════════════
   ИИ Конструктор — мастер «Бизнес → Заявки → Внешний вид → Готово»
   (pages/widget_gen-tabs/wizard.php, assets/js/widget_wizard.js), 10.10.2026.
   Язык оформления — тот же, что у конструктора и Pato Assistant: стеклянные
   карточки, чёрные пилюли, Unbounded в заголовках, и фирменный градиент Pato
   (лайм → бирюза → золото, как у кнопки ассистента и Pato-режима в задачах).
   ══════════════════════════════════════════════════════════════ */

.wz {
    --pg: linear-gradient(90deg, #7dcf46, #2aa7a1, #D7AB6B, #7dcf46, #2aa7a1);
    --pg-diag: linear-gradient(135deg, #7dcf46 0%, #2aa7a1 50%, #D7AB6B 100%);
    --pg-soft: linear-gradient(120deg, #f3fbec, #eef8f7 55%, #fbf5ec);
    --wz-ink: #111217;
    --wz-ink2: #43464f;
    --wz-muted: #8d919d;
    --wz-line: rgba(17,18,23,.075);
    --wz-lime: #A8E76A;
    --wz-teal: #2aa7a1;
    --wz-green-ink: #16290b;
    --wz-ease: cubic-bezier(.22,.61,.36,1);
    --wz-ease-out: cubic-bezier(.16,1,.3,1);
    --wz-glass: rgba(255,255,255,.74);
    --wz-shadow: 0 14px 38px rgba(17,18,23,.06), inset 0 0 0 1px rgba(255,255,255,.7);
    color: var(--wz-ink);
}
.wgen-screen--wizard { display: block; }

@keyframes wzFlow   { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes wzRise   { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wzFloat  { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, -18px); } }
@keyframes wzPulse  { 0% { box-shadow: 0 0 0 0 rgba(42,167,161,.45); } 70% { box-shadow: 0 0 0 8px rgba(42,167,161,0); } 100% { box-shadow: 0 0 0 0 rgba(42,167,161,0); } }
@keyframes wzSpin   { to { transform: rotate(360deg); } }
@keyframes wzSheen  { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }
@keyframes wzInR    { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes wzInL    { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes wzBob    { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes wzTwinkle { 0%, 100% { opacity: .35; transform: scale(.8) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }

.wz-rise { opacity: 0; animation: wzRise .7s var(--wz-ease-out) forwards; animation-delay: var(--d, 0s); }

/* Текст и рамки фирменным градиентом */
.wz-grad-text {
    background: var(--pg); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: wzFlow 6s linear infinite;
}

/* ══════ Стартовый экран ══════ */
.wz-start {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
    min-height: calc(100vh - 56px);
    padding: 64px 32px 48px;
    border-radius: 32px;
    background: var(--wz-glass);
    box-shadow: var(--wz-shadow);
    text-align: center;
}
.wz-start[hidden], .wz-main[hidden] { display: none; }
.wz-start-bg { position: absolute; inset: 0; pointer-events: none; }
.wz-start-bg i {
    position: absolute; width: 420px; height: 420px; border-radius: 50%;
    filter: blur(80px); opacity: .45; animation: wzFloat 14s var(--wz-ease) infinite;
}
.wz-start-bg i:nth-child(1) { background: #c9f19f; top: -140px; left: -80px; }
.wz-start-bg i:nth-child(2) { background: #a6e3df; top: 30%; right: -140px; animation-delay: -5s; }
.wz-start-bg i:nth-child(3) { background: #f1dcb9; bottom: -180px; left: 30%; animation-delay: -9s; }
.wz-start > * { position: relative; }

.wz-orb { position: relative; width: 132px; height: 132px; margin: 0 auto 26px; }
.wz-orb-glow {
    position: absolute; inset: -18px; border-radius: 50%;
    background: var(--pg); background-size: 300% 100%; filter: blur(26px); opacity: .55;
    animation: wzFlow 7s linear infinite;
}
.wz-orb-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--pg) border-box;
    background-size: 100% 100%, 300% 100%;
    animation: wzFlow 5s linear infinite;
    box-shadow: 0 18px 40px rgba(17,18,23,.1);
}
.wz-orb img {
    position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -48px 0 0 -46px;
    object-fit: contain; animation: wzBob 4.5s ease-in-out infinite;
}
.wz-orb-spark { position: absolute; width: 22px; height: 22px; fill: #2aa7a1; animation: wzTwinkle 2.8s ease-in-out infinite; }
.wz-orb-spark svg { width: 100%; height: 100%; }
.wz-orb-spark--1 { top: -4px; right: -10px; }
.wz-orb-spark--2 { bottom: 6px; left: -16px; width: 16px; height: 16px; fill: #D7AB6B; animation-delay: -1.3s; }

.wz-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
    border: 1px solid transparent;
    background: linear-gradient(var(--pg-soft-solid, #f7fbf3), #fff) padding-box, var(--pg) border-box;
    font-size: 12px; font-weight: 800; letter-spacing: .2px; color: var(--wz-green-ink);
}
.wz-eyebrow-spark { width: 13px; height: 13px; fill: #2aa7a1; display: inline-flex; }
.wz-eyebrow-spark svg { width: 100%; height: 100%; }
.wz-start-title {
    font-family: 'Unbounded', sans-serif; font-weight: 800;
    font-size: clamp(30px, 3.3vw, 46px); line-height: 1.08; letter-spacing: -.6px;
    margin: 0 0 16px;
}
.wz-start-sub { max-width: 560px; margin: 0 auto 38px; font-size: 15.5px; line-height: 1.55; color: var(--wz-ink2); }

.wz-choices {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
    width: 100%; max-width: 980px; margin-bottom: 34px;
}
.wz-choice {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
    padding: 24px 22px 22px; min-height: 186px;
    border: none; border-radius: 26px; cursor: pointer; font: inherit; color: inherit;
    background: rgba(255,255,255,.86);
    box-shadow: 0 10px 28px rgba(17,18,23,.06), inset 0 0 0 1px rgba(17,18,23,.05);
    transition: transform .35s var(--wz-ease-out), box-shadow .35s var(--wz-ease-out);
}
.wz-choice::before { /* рамка градиентом Pato — проявляется при наведении */
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
    background: var(--pg); background-size: 300% 100%; animation: wzFlow 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s;
}
.wz-choice:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(17,18,23,.1), inset 0 0 0 1px rgba(17,18,23,.03); }
.wz-choice:hover::before, .wz-choice--main::before { opacity: 1; }
.wz-choice:active { transform: translateY(-2px) scale(.99); }
.wz-choice--main { background: linear-gradient(160deg, #fff 30%, #f2faea 100%); }
.wz-choice-tag {
    position: absolute; top: 18px; right: 18px; padding: 5px 10px; border-radius: 999px;
    background: var(--pg); background-size: 200% 100%; animation: wzFlow 5s linear infinite;
    color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
}
.wz-choice-icon {
    width: 48px; height: 48px; border-radius: 16px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pg-soft); color: var(--wz-teal);
    box-shadow: inset 0 0 0 1px rgba(42,167,161,.15);
}
.wz-choice-icon svg { width: 23px; height: 23px; }
.wz-choice--main .wz-choice-icon { background: var(--pg-diag); color: #fff; box-shadow: 0 10px 22px rgba(42,167,161,.3); }
.wz-choice-title { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.wz-choice-desc { font-size: 13px; line-height: 1.45; color: var(--wz-muted); padding-right: 36px; }
.wz-choice-go {
    position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--wz-ink); color: #fff;
    transition: transform .35s var(--wz-ease-out), background .3s;
}
.wz-choice-go svg { width: 16px; height: 16px; }
.wz-choice:hover .wz-choice-go { transform: translateX(4px); background: var(--wz-teal); }
.wz-choice--main .wz-choice-go { background: var(--wz-lime); color: var(--wz-green-ink); }

.wz-start-path { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; justify-content: center; }
.wz-start-path span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--wz-ink2); }
.wz-start-path b {
    width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; box-shadow: inset 0 0 0 1px var(--wz-line); font-size: 11px; color: var(--wz-ink);
}
.wz-start-path i { width: 28px; height: 1.5px; background: repeating-linear-gradient(90deg, rgba(17,18,23,.25) 0 4px, transparent 4px 8px); }
.wz-start-note { font-size: 12px; color: var(--wz-muted); }

/* ══════ Шаги ══════ */
.wz-main { display: flex; flex-direction: column; gap: 16px; }
.wz-steps {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    padding: 8px; border-radius: 24px; background: var(--wz-glass); box-shadow: var(--wz-shadow);
}
/* Полоса прогресса под шагами убрана по просьбе владельца — прогресс видно по отметкам на номерах */
.wz-steps-track { display: none; }
.wz-steps-fill {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: var(--pg); background-size: 300% 100%; animation: wzFlow 5s linear infinite;
    transition: width .6s var(--wz-ease-out);
}
.wz-step {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: none; border-radius: 18px;
    background: transparent; font: inherit; color: var(--wz-muted); cursor: pointer; text-align: left;
    transition: background .3s var(--wz-ease), color .3s;
}
.wz-step b {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Unbounded', sans-serif; font-size: 12px; font-weight: 700;
    background: #fff; color: var(--wz-ink); box-shadow: inset 0 0 0 1px var(--wz-line);
    transition: background .3s, color .3s, box-shadow .3s;
}
.wz-step span { display: flex; flex-direction: column; font-size: 13px; font-weight: 800; color: inherit; line-height: 1.2; min-width: 0; }
.wz-step small { font-size: 11px; font-weight: 600; color: var(--wz-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Наведение — только у неактивных шагов: иначе перебивало чёрный фон активного, и белая подпись пропадала */
.wz-step:not(.is-active):hover:not(:disabled) { background: rgba(17,18,23,.04); color: var(--wz-ink); }
.wz-step.is-done { color: var(--wz-ink); }
.wz-step.is-done b { background: var(--pg-soft); color: var(--wz-green-ink); box-shadow: inset 0 0 0 1.5px rgba(125,207,70,.55); }
.wz-step.is-active { background: var(--wz-ink); color: #fff; }
.wz-step.is-active small { color: rgba(255,255,255,.62); }
.wz-step.is-active b { background: var(--pg-diag); color: #fff; box-shadow: 0 0 0 4px rgba(168,231,106,.18); }
.wz-step:disabled { cursor: default; opacity: .55; }

/* ══════ Рабочая область ══════ */
.wz-body { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 16px; align-items: start; }
.wz-stage {
    display: flex; flex-direction: column; min-height: 720px;
    padding: 26px 28px 20px; border-radius: 28px;
    background: var(--wz-glass); box-shadow: var(--wz-shadow);
}
.wz-pane { display: none; flex: 1; flex-direction: column; gap: 16px; min-height: 0; }
.wz-pane.is-active { display: flex; }
.wz-pane.is-in-fwd  { animation: wzInR .45s var(--wz-ease-out); }
.wz-pane.is-in-back { animation: wzInL .45s var(--wz-ease-out); }
.wz-pane-head h2 { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 6px; }
.wz-pane-head p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--wz-muted); max-width: 620px; }

.wz-card { padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--wz-line); }
.wz-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wz-label { font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--wz-muted); margin-bottom: 12px; }

/* Чат на шаге «Бизнес» */
.wz .wz-chat { flex: 1; height: auto; min-height: 520px; position: static; background: var(--pg-soft); box-shadow: inset 0 0 0 1px rgba(42,167,161,.12); }
.wz .wgen-biz-msgs { padding: 18px 18px 8px; }
.wz .wgen-biz-msgs > :last-child { animation: wzRise .5s var(--wz-ease-out); }
.wz .wgen-biz-msg--pato { border-radius: 18px 18px 18px 6px; box-shadow: 0 6px 18px rgba(17,18,23,.06); }
.wz .wgen-biz-msg--user { border-radius: 18px 18px 6px 18px; }
.wz .wgen-biz-think { background: #fff; box-shadow: 0 6px 18px rgba(17,18,23,.06); }
.wz .wgen-biz-think svg { fill: #2aa7a1; }
.wz .wgen-biz-input { margin: 10px 14px 14px; border-radius: 24px; }
.wz .wgen-biz-send { background: var(--pg-diag); color: #fff; box-shadow: 0 6px 16px rgba(42,167,161,.3); }
.wz .wgen-biz-send:hover { filter: brightness(1.06); background: var(--pg-diag); }
.wz .wgen-biz-send:disabled { box-shadow: none; }

/* Быстрые ответы под последним сообщением Pato */
.wz-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.wz-quick button {
    position: relative; padding: 8px 14px; border: none; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--wz-ink);
    background: #fff; box-shadow: 0 4px 12px rgba(17,18,23,.06), inset 0 0 0 1px rgba(42,167,161,.25);
    opacity: 0; animation: wzRise .45s var(--wz-ease-out) forwards;
    transition: transform .25s var(--wz-ease-out), box-shadow .25s;
}
.wz-quick button:nth-child(2) { animation-delay: .07s; }
.wz-quick button:nth-child(3) { animation-delay: .14s; }
.wz-quick button:nth-child(4) { animation-delay: .21s; }
.wz-quick button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(42,167,161,.2), inset 0 0 0 1.5px var(--wz-teal); }

/* Заявки */
.wz-forms-chips { min-height: 120px; }
.wz-forms-custom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; }
.wz-hint { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--wz-muted); }
.wz-hint-spark { width: 14px; height: 14px; fill: #D7AB6B; display: inline-flex; }
.wz-hint-spark svg { width: 100%; height: 100%; }

/* Рекомендация Pato */
.wz-rec {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 20px;
    border: 1.5px solid transparent;
    background: linear-gradient(120deg, #f3fbec, #eef8f7 55%, #fbf5ec) padding-box, var(--pg) border-box;
    background-size: 100% 100%, 300% 100%; animation: wzFlow 6s linear infinite, wzRise .5s var(--wz-ease-out);
}
.wz-rec[hidden] { display: none; }
.wz-rec-spark { width: 22px; height: 22px; flex-shrink: 0; fill: #2aa7a1; animation: wzSpin 9s linear infinite; }
.wz-rec-spark svg { width: 100%; height: 100%; }
.wz-rec-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--wz-ink2); }
.wz-rec-text b { font-size: 12px; font-weight: 800; color: var(--wz-green-ink); }

/* Формат — карточки со схемой */
.wz .wz-format { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wz .wgen-card.wz-opt, .wz .wgen-card.wz-tone {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 14px; border-radius: 18px; cursor: pointer; text-align: left;
    background: #fff; border: none; box-shadow: inset 0 0 0 1px var(--wz-line);
    transition: transform .3s var(--wz-ease-out), box-shadow .3s;
}
.wz .wgen-card.wz-opt:hover, .wz .wgen-card.wz-tone:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,18,23,.07), inset 0 0 0 1px rgba(17,18,23,.1); }
.wz .wgen-card.wz-opt.selected, .wz .wgen-card.wz-tone.selected {
    background: linear-gradient(#fff, #fff) padding-box, var(--pg) border-box;
    border: 1.5px solid transparent; box-shadow: 0 10px 26px rgba(42,167,161,.14);
}
.wz .wgen-card.wz-opt.selected::after, .wz .wgen-card.wz-tone.selected::after {
    content: ''; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"), var(--pg-diag);
    background-size: 12px 12px, cover; background-position: center; background-repeat: no-repeat;
}
.wz-opt-mini { display: flex; flex-direction: column; gap: 4px; width: 52px; height: 62px; padding: 7px; margin-bottom: 8px; border-radius: 12px; background: var(--pg-soft); box-shadow: inset 0 0 0 1px rgba(42,167,161,.15); }
.wz-opt-mini i { display: block; height: 7px; border-radius: 4px; background: rgba(17,18,23,.14); }
.wz-opt-mini i:first-child { height: 14px; background: var(--pg-diag); }
.wz-opt-mini--min i:last-child { margin-top: auto; }
.wz-opt-mini--ext i:nth-child(3) { width: 60%; }
.wz-opt-name, .wz-tone-name { font-size: 13.5px; font-weight: 800; color: var(--wz-ink); }
.wz-opt-desc { font-size: 12px; line-height: 1.4; color: var(--wz-muted); }
.wz-opt-badge, .wz-tone-badge {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 8px; border-radius: 999px;
    background: var(--pg-soft); box-shadow: inset 0 0 0 1px rgba(42,167,161,.25);
    font-size: 10.5px; font-weight: 800; color: #1d6e6a;
}

/* Цвета */
.wz-colors { display: flex; flex-direction: column; gap: 12px; }
.wz-colors-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wz-colors-row:empty { display: none; }
.wz-colors-cap { font-size: 12px; font-weight: 700; color: var(--wz-muted); margin-right: 4px; }
.wz .wgen-color-btn.wz-swatch {
    width: 44px; height: 44px; padding: 0; border: none; border-radius: 50%; background: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center; box-shadow: none;
    transition: transform .25s var(--wz-ease-out);
}
.wz .wgen-color-btn.wz-swatch .wgen-swatch { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17,18,23,.1); }
.wz .wgen-color-btn.wz-swatch:hover { transform: scale(1.08); }
.wz .wgen-color-btn.wz-swatch.selected { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--wz-ink); }
.wz .wgen-color-btn.wz-swatch.is-rec::after {
    content: ''; position: absolute; width: 10px; height: 10px; margin: -30px -30px 0 0; border-radius: 50%;
    background: var(--pg-diag); box-shadow: 0 0 0 2px #fff;
}
.wz .wgen-color-btn.wz-swatch { position: relative; }

/* Тон */
.wz .wz-tones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wz-tone-sample {
    display: block; margin-top: 6px; padding: 8px 11px; border-radius: 12px 12px 12px 4px;
    background: var(--pg-soft); font-size: 12px; line-height: 1.4; color: var(--wz-ink2);
}

/* Итог перед сборкой */
.wz-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wz-sum {
    display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 20px;
    background: rgba(255,255,255,.86); box-shadow: inset 0 0 0 1px var(--wz-line);
    opacity: 0; animation: wzRise .5s var(--wz-ease-out) forwards;
}
.wz-sum--wide { grid-column: 1 / -1; }
.wz-sum-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wz-sum-label { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--wz-muted); }
.wz-sum-edit { border: none; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--wz-teal); cursor: pointer; }
.wz-sum-val { font-size: 14px; font-weight: 700; color: var(--wz-ink); line-height: 1.4; }
.wz-sum-val small { display: block; font-size: 12.5px; font-weight: 500; color: var(--wz-muted); margin-top: 2px; }
.wz-sum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-sum-chip { padding: 4px 10px; border-radius: 999px; background: var(--pg-soft); font-size: 12px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(42,167,161,.2); }
.wz-sum-chip--main { background: var(--pg-diag); color: #fff; box-shadow: none; }
.wz-sum-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-right: 6px; box-shadow: inset 0 0 0 1px rgba(17,18,23,.15); }

.wz-build {
    position: relative; display: flex; align-items: center; gap: 16px; width: 100%;
    margin-top: 8px; padding: 18px 20px; border: none; border-radius: 26px; cursor: pointer; overflow: hidden;
    font: inherit; color: #fff; background: var(--wz-ink); text-align: left;
    box-shadow: 0 18px 40px rgba(17,18,23,.22);
    transition: transform .35s var(--wz-ease-out), box-shadow .35s;
}
.wz-build-glow {
    position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
    background: var(--pg); background-size: 300% 100%; animation: wzFlow 4s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.wz-build:hover { transform: translateY(-3px); box-shadow: 0 26px 52px rgba(17,18,23,.28), 0 0 40px rgba(42,167,161,.25); }
.wz-build-icon {
    width: 50px; height: 50px; flex-shrink: 0; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    background: var(--pg-diag); fill: #fff; box-shadow: 0 8px 22px rgba(42,167,161,.4);
}
.wz-build-icon svg { width: 24px; height: 24px; animation: wzSpin 10s linear infinite; }
.wz-build-text { flex: 1; display: flex; flex-direction: column; }
.wz-build-text b { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.wz-build-text small { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 3px; }
.wz-build-arrow { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--wz-lime); color: var(--wz-green-ink); transition: transform .35s var(--wz-ease-out); }
.wz-build-arrow svg { width: 20px; height: 20px; }
.wz-build:hover .wz-build-arrow { transform: translateX(4px); }

/* Навигация шагов */
.wz-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--wz-line); }
.wz-nav-hint { flex: 1; text-align: center; font-size: 12.5px; color: var(--wz-muted); }
.wz-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
    border: none; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800;
    transition: transform .25s var(--wz-ease-out), background .25s, opacity .25s, box-shadow .25s;
}
.wz-btn svg { width: 16px; height: 16px; }
.wz-btn--ghost { background: rgba(17,18,23,.05); color: var(--wz-ink); }
.wz-btn--ghost:hover { background: rgba(17,18,23,.09); }
.wz-btn--soft { height: 36px; padding: 0 16px; background: var(--wz-ink); color: #fff; font-size: 12px; }
.wz-btn--dark { padding: 0 8px 0 22px; background: var(--wz-ink); color: #fff; box-shadow: 0 10px 24px rgba(17,18,23,.18); }
.wz-btn--dark:hover:not(:disabled) { transform: translateY(-2px); }
.wz-btn-arrow { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--pg-diag); color: #fff; transition: transform .3s var(--wz-ease-out); }
.wz-btn--dark:hover:not(:disabled) .wz-btn-arrow { transform: translateX(3px); }
.wz-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.wz-btn[hidden] { display: none; }

/* ══════ Правая колонка ══════ */
.wz-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.wz-side-card { padding: 18px; border-radius: 28px; background: var(--wz-glass); box-shadow: var(--wz-shadow); }
.wz-side-card[hidden] { display: none; }
.wz-side-card.is-in { animation: wzRise .5s var(--wz-ease-out); }
.wz-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-height: 32px; }
.wz-side-title { display: inline-flex; align-items: center; gap: 9px; font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700; }
.wz-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pg-diag); animation: wzPulse 2s ease-out infinite; }

.wz .wz-side-profile .wgen-biz-profile-body { max-height: calc(100vh - 200px); overflow-y: auto; padding-right: 4px; }
.wz .wz-side-profile .wgen-biz-row { grid-template-columns: 112px minmax(0, 1fr); }
.wz .wz-side-profile .wgen-biz-row:not(.wz-row-in) { animation: wzRise .5s var(--wz-ease-out) both; }
.wz .wz-side-profile .wgen-biz-row:nth-child(2) { animation-delay: .04s; }
.wz .wz-side-profile .wgen-biz-row:nth-child(3) { animation-delay: .08s; }
.wz .wz-side-profile .wgen-biz-row:nth-child(4) { animation-delay: .12s; }
.wz .wz-side-profile .wgen-biz-row:nth-child(5) { animation-delay: .16s; }
.wz .wz-side-profile .wgen-biz-row:nth-child(n+6) { animation-delay: .2s; }
.wz-empty-profile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 10px; text-align: center; font-size: 13px; color: var(--wz-muted); }
.wz-empty-spark { width: 30px; height: 30px; fill: #2aa7a1; opacity: .7; animation: wzTwinkle 3s ease-in-out infinite; }
.wz-empty-spark svg { width: 100%; height: 100%; }

.wz-updated {
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--wz-green-ink);
    background: var(--pg-soft); box-shadow: inset 0 0 0 1px rgba(125,207,70,.4);
    opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--wz-ease-out);
}
.wz-updated.is-on { opacity: 1; transform: none; }
.wz-preview-frame {
    position: relative; overflow: hidden; border-radius: 22px; height: 640px;
    background:
        radial-gradient(circle at 1px 1px, rgba(17,18,23,.07) 1px, transparent 0) 0 0 / 16px 16px,
        var(--pg-soft);
    box-shadow: inset 0 0 0 1px rgba(42,167,161,.12);
}
.wz-preview-iframe { position: absolute; left: 0; top: 0; width: 470px; height: 780px; border: 0; transform-origin: 0 0; background: transparent; }
.wz-preview-sheen {
    position: absolute; top: 0; bottom: 0; width: 40%; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
}
.wz-preview-sheen.is-on { opacity: 1; animation: wzSheen .9s var(--wz-ease) forwards; }
.wz-preview-note { margin-top: 10px; text-align: center; font-size: 11.5px; color: var(--wz-muted); }

@media (max-width: 1280px) {
    .wz-body { grid-template-columns: minmax(0, 1fr) 380px; }
    .wz-step small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .wz *, .wz *::before, .wz *::after { animation: none !important; transition: none !important; }
    .wz-rise, .wz-sum, .wz-quick button { opacity: 1 !important; }
}

/* «Дальше» вспыхивает, когда Pato закончил и можно идти дальше */
@keyframes wzPop {
    0%   { box-shadow: 0 10px 24px rgba(17,18,23,.18), 0 0 0 0 rgba(42,167,161,.55); transform: scale(1); }
    35%  { transform: scale(1.04); }
    100% { box-shadow: 0 10px 24px rgba(17,18,23,.18), 0 0 0 16px rgba(42,167,161,0); transform: scale(1); }
}
.wz-btn--dark.wz-pop { animation: wzPop 1s var(--wz-ease-out) 2; }

/* «Продолжить с сохранённым профилем» на стартовом экране */
.wz-resume {
    display: inline-flex; align-items: center; gap: 9px; margin: -12px 0 26px;
    padding: 10px 16px 10px 12px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--wz-ink2);
    background: linear-gradient(#fff, #fff) padding-box, var(--pg) border-box;
    background-size: 100% 100%, 300% 100%; animation: wzFlow 6s linear infinite;
    box-shadow: 0 8px 22px rgba(17,18,23,.06);
    transition: transform .3s var(--wz-ease-out), box-shadow .3s;
}
.wz-resume[hidden] { display: none; }
.wz-resume.wz-rise { animation: wzRise .7s var(--wz-ease-out) forwards, wzFlow 6s linear infinite; animation-delay: var(--d, 0s), 0s; }
.wz-resume:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(42,167,161,.18); }
.wz-resume b { color: var(--wz-ink); font-weight: 800; }
.wz-resume svg { width: 15px; height: 15px; color: var(--wz-teal); }
.wz-resume-spark { width: 16px; height: 16px; fill: #2aa7a1; display: inline-flex; }
.wz-resume-spark svg { width: 100%; height: 100%; color: inherit; }

/* «← К выбору» над заголовком шага «Бизнес» */
.wz-back-top {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
    height: 30px; padding: 0 12px 0 9px; border: none; border-radius: 999px; cursor: pointer;
    background: rgba(17,18,23,.05); font: inherit; font-size: 12px; font-weight: 700; color: var(--wz-ink2);
    transition: background .2s, transform .25s var(--wz-ease-out), color .2s;
}
.wz-back-top svg { width: 14px; height: 14px; transition: transform .25s var(--wz-ease-out); }
.wz-back-top:hover:not(:disabled) { background: rgba(17,18,23,.09); color: var(--wz-ink); }
.wz-back-top:hover:not(:disabled) svg { transform: translateX(-3px); }
.wz-back-top:disabled { opacity: .4; cursor: default; }

/* ══════════════════════════════════════════════════════════════
   ЗАЯВКИ: ФОРМЫ (этап 2) — редактор форм шага «Заявки» и превью формы
   (assets/js/widget_wizard_forms.js)
   ══════════════════════════════════════════════════════════════ */
.wzf-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wzf-count { font-size: 12.5px; color: var(--wz-muted); }
.wzf-count b { color: var(--wz-ink); }
.wzf-add-form {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
    border: none; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800;
    background: #fff; color: var(--wz-ink); box-shadow: inset 0 0 0 1px var(--wz-line), 0 4px 12px rgba(17,18,23,.05);
    transition: transform .25s var(--wz-ease-out), box-shadow .25s;
}
.wzf-add-form svg { width: 14px; height: 14px; }
.wzf-add-form:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--wz-teal), 0 8px 18px rgba(42,167,161,.15); }

.wzf-list { display: flex; flex-direction: column; gap: 10px; }
.wzf-empty { padding: 26px; border-radius: 20px; text-align: center; font-size: 13px; color: var(--wz-muted); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--wz-line); }
.wzf-empty button { border: none; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--wz-teal); cursor: pointer; }
.wzf-skel { display: flex; flex-direction: column; gap: 10px; }
.wzf-skel i { display: block; height: 64px; border-radius: 20px; background: linear-gradient(90deg, #ececeb 25%, #f6f6f5 50%, #ececeb 75%); background-size: 200% 100%; animation: wgenRecShimmer 1.1s infinite linear; }
.wzf-think {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px;
    background: var(--pg-soft); box-shadow: inset 0 0 0 1px rgba(42,167,161,.18);
    font-size: 13px; color: var(--wz-ink); animation: wzRise .4s var(--wz-ease-out);
}
.wzf-think svg { width: 18px; height: 18px; fill: #2aa7a1; flex-shrink: 0; animation: wzSpin 1.4s linear infinite; }
.wzf-think span { color: var(--wz-muted); }

.wzf-card {
    position: relative; border-radius: 22px; background: #fff;
    box-shadow: inset 0 0 0 1px var(--wz-line), 0 6px 18px rgba(17,18,23,.04);
    opacity: 0; animation: wzRise .45s var(--wz-ease-out) forwards;
    transition: box-shadow .3s, opacity .3s;
}
.wzf-card.is-main { background: linear-gradient(#fff, #fff) padding-box, var(--pg) border-box; border: 1.5px solid transparent; box-shadow: 0 10px 26px rgba(42,167,161,.12); }
.wzf-card.is-off { background: rgba(255,255,255,.55); }
.wzf-card.is-off .wzf-card-title, .wzf-card.is-off .wzf-main-btn { opacity: .5; }
.wzf-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.wzf-main-btn {
    width: 34px; height: 34px; flex-shrink: 0; border: none; border-radius: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(17,18,23,.04); color: rgba(17,18,23,.25); transition: background .25s, color .25s, transform .25s var(--wz-ease-out);
}
.wzf-main-btn svg { width: 18px; height: 18px; }
.wzf-main-btn:hover { color: #D7AB6B; transform: scale(1.06); }
.wzf-card.is-main .wzf-main-btn { background: linear-gradient(135deg, #f6e7cc, #fbf5ec); color: #c99a4e; }
.wzf-card.is-main .wzf-main-btn svg { fill: #D7AB6B; }
.wzf-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wzf-title-text { font-size: 14.5px; font-weight: 800; color: var(--wz-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wzf-card-meta { font-size: 12px; color: var(--wz-muted); }
.wzf-card-meta b { color: #1d6e6a; font-weight: 800; }
.wzf-eye {
    width: 32px; height: 32px; flex-shrink: 0; border: none; border-radius: 50%; cursor: pointer; background: transparent; color: var(--wz-muted);
    display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.wzf-eye svg { width: 17px; height: 17px; }
.wzf-eye:hover { background: rgba(42,167,161,.1); color: var(--wz-teal); }
.wzf-switch { position: relative; width: 40px; height: 24px; flex-shrink: 0; cursor: pointer; }
.wzf-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.wzf-switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(17,18,23,.14); transition: background .25s; }
.wzf-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(17,18,23,.2); transition: transform .3s var(--wz-ease-out); }
.wzf-switch input:checked + i { background: var(--pg-diag); }
.wzf-switch input:checked + i::after { transform: translateX(16px); }
.wzf-chev { width: 20px; height: 20px; color: var(--wz-muted); transition: transform .3s var(--wz-ease-out); }
.wzf-chev svg { width: 100%; height: 100%; }
.wzf-card.is-open .wzf-chev { transform: rotate(180deg); }

.wzf-card-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; animation: wzRise .35s var(--wz-ease-out); }
.wzf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wzf-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wzf-field span { font-size: 11.5px; font-weight: 700; color: var(--wz-muted); }
.wzf-field input, .wzf-q-label {
    width: 100%; box-sizing: border-box; border: 1px solid var(--wz-line); border-radius: 12px;
    background: rgba(255,255,255,.9); padding: 8px 11px; font: inherit; font-size: 13px; color: var(--wz-ink); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.wzf-field input:focus, .wzf-q-label:focus { border-color: rgba(42,167,161,.6); box-shadow: 0 0 0 4px rgba(42,167,161,.12); }
.wzf-sub { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--wz-muted); }
.wzf-sub small { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.wzf-note { font-size: 12.5px; color: var(--wz-muted); }

.wzf-qs { display: flex; flex-direction: column; gap: 8px; }
.wzf-q { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 16px; background: var(--pg-soft); box-shadow: inset 0 0 0 1px rgba(42,167,161,.1); }
.wzf-q-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--wz-teal); box-shadow: inset 0 0 0 1px rgba(42,167,161,.18); }
.wzf-q-icon svg { width: 16px; height: 16px; }
.wzf-q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wzf-q-label { background: #fff; font-weight: 600; }
.wzf-q-type { font-size: 11px; font-weight: 700; color: var(--wz-muted); padding-left: 2px; }
.wzf-q-req {
    flex-shrink: 0; height: 30px; padding: 0 11px; border: none; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 11.5px; font-weight: 800; background: #fff; color: var(--wz-muted); box-shadow: inset 0 0 0 1px var(--wz-line);
    transition: background .2s, color .2s;
}
.wzf-q-req.is-on { background: var(--wz-ink); color: #fff; box-shadow: none; }
.wzf-q-tools { display: flex; gap: 2px; flex-shrink: 0; }
.wzf-q-tools button {
    width: 28px; height: 30px; border: none; border-radius: 9px; cursor: pointer; background: transparent; color: var(--wz-muted);
    display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.wzf-q-tools button svg { width: 15px; height: 15px; }
.wzf-q-tools button:hover:not(:disabled) { background: #fff; color: var(--wz-ink); }
.wzf-q-tools button.is-del:hover { color: #b42318; }
.wzf-q-tools button:disabled { opacity: .3; cursor: default; }
.wzf-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.wzf-opt { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(42,167,161,.22); font-size: 12px; font-weight: 600; }
.wzf-opt button { width: 16px; height: 16px; border: none; border-radius: 50%; background: rgba(17,18,23,.07); color: var(--wz-ink2); cursor: pointer; font-size: 11px; line-height: 1; padding: 0; }
.wzf-opt button:hover { background: rgba(180,35,24,.12); color: #b42318; }
.wzf-opt-add { width: 100px; border: 1px dashed rgba(42,167,161,.4); border-radius: 999px; background: transparent; padding: 4px 10px; font: inherit; font-size: 12px; outline: none; color: var(--wz-ink); }
.wzf-opt-add:focus { border-style: solid; background: #fff; }

.wzf-addq { position: relative; }
.wzf-addq-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1.5px dashed rgba(42,167,161,.4);
    border-radius: 999px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 800; color: #1d6e6a; cursor: pointer;
    transition: background .2s, border-color .2s;
}
.wzf-addq-btn svg { width: 14px; height: 14px; }
.wzf-addq-btn:hover { background: rgba(42,167,161,.07); border-color: var(--wz-teal); }
.wzf-addq-menu {
    position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; display: none; grid-template-columns: 1fr 1fr; gap: 2px;
    width: 340px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(17,18,23,.16), inset 0 0 0 1px var(--wz-line);
}
.wzf-addq.is-open .wzf-addq-menu { display: grid; animation: wzRise .25s var(--wz-ease-out); }
.wzf-addq-menu button {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: none; border-radius: 10px; background: transparent;
    font: inherit; font-size: 12.5px; font-weight: 600; color: var(--wz-ink); cursor: pointer; text-align: left;
}
.wzf-addq-menu button svg { width: 16px; height: 16px; color: var(--wz-teal); }
.wzf-addq-menu button:hover { background: var(--pg-soft); }

.wzf-contacts { display: flex; flex-wrap: wrap; gap: 8px; }
.wzf-contact {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 14px; border: none; border-radius: 14px; cursor: pointer;
    font: inherit; text-align: left; transition: background .2s, transform .2s var(--wz-ease-out);
}
.wzf-contact b { font-size: 12.5px; font-weight: 800; }
.wzf-contact span { font-size: 11px; font-weight: 600; }
.wzf-contact:hover { transform: translateY(-1px); }
.wzf-contact.is-required { background: var(--wz-ink); color: #fff; }
.wzf-contact.is-required span { color: rgba(255,255,255,.65); }
.wzf-contact.is-optional { background: var(--pg-soft); color: var(--wz-ink); box-shadow: inset 0 0 0 1px rgba(42,167,161,.25); }
.wzf-contact.is-optional span { color: #1d6e6a; }
.wzf-contact.is-off { background: transparent; color: var(--wz-muted); box-shadow: inset 0 0 0 1px var(--wz-line); }
.wzf-contact.is-off b { text-decoration: line-through; }

.wzf-del-form {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: none; border-radius: 999px;
    background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--wz-muted); cursor: pointer; transition: background .2s, color .2s;
}
.wzf-del-form svg { width: 14px; height: 14px; }
.wzf-del-form:hover { background: rgba(180,35,24,.07); color: #b42318; }

/* Попросить Pato */
.wzf-ask { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.wzf-ask-reply {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 18px 18px 18px 6px;
    background: #fff; box-shadow: 0 6px 18px rgba(17,18,23,.06); font-size: 13px; line-height: 1.5; color: var(--wz-ink);
    animation: wzRise .45s var(--wz-ease-out);
}
.wzf-ask-reply[hidden] { display: none; }
.wzf-ask-reply-spark { width: 18px; height: 18px; flex-shrink: 0; fill: #2aa7a1; margin-top: 1px; }
.wzf-ask-reply-spark svg { width: 100%; height: 100%; }
.wzf-ask-row {
    display: flex; align-items: flex-end; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 22px; border: 1.5px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--pg) border-box; background-size: 100% 100%, 300% 100%;
    animation: wzFlow 7s linear infinite; box-shadow: 0 8px 22px rgba(17,18,23,.05);
}
.wzf-ask-spark { width: 18px; height: 18px; flex-shrink: 0; fill: #2aa7a1; margin-bottom: 10px; }
.wzf-ask-spark svg { width: 100%; height: 100%; }
.wzf-ask-row textarea {
    flex: 1; min-width: 0; border: none; outline: none; resize: none; background: transparent; padding: 9px 0;
    font: inherit; font-size: 13px; line-height: 1.45; color: var(--wz-ink); max-height: 120px;
}
.wzf-ask-row .wgen-biz-send { width: 36px; height: 36px; flex-shrink: 0; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; background: var(--pg-diag); color: #fff; box-shadow: 0 6px 16px rgba(42,167,161,.3); }
.wzf-ask-row .wgen-biz-send:disabled { opacity: .45; box-shadow: none; cursor: default; }
.wzf-ask-tips { display: flex; flex-wrap: wrap; gap: 6px; }
.wzf-ask-tips button {
    padding: 6px 12px; border: none; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700;
    background: rgba(255,255,255,.75); color: var(--wz-ink2); box-shadow: inset 0 0 0 1px var(--wz-line); transition: box-shadow .2s, color .2s;
}
.wzf-ask-tips button:hover { color: var(--wz-ink); box-shadow: inset 0 0 0 1.5px var(--wz-teal); }
.wzf-list.is-busy .wzf-card { opacity: .55 !important; pointer-events: none; }

/* Превью формы — «телефон» в цвете бизнеса */
.wzf-preview[hidden] { display: none; }
.wzf-preview { display: flex; flex-direction: column; gap: 10px; }
.wzf-preview-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wzf-preview-tabs button {
    display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 6px 11px; border: none; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 700; color: var(--wz-ink2); background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px var(--wz-line);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wzf-preview-tabs button.is-active { background: var(--wz-ink); color: #fff; box-shadow: none; }
.wzf-preview-tabs button.is-off { opacity: .5; }
.wzf-tab-star { width: 12px; height: 12px; fill: #D7AB6B; stroke: #D7AB6B; flex-shrink: 0; }
@keyframes wzfFlash { 0% { box-shadow: 0 18px 40px rgba(17,18,23,.12), 0 0 0 0 rgba(42,167,161,.35); } 100% { box-shadow: 0 18px 40px rgba(17,18,23,.12), 0 0 0 14px rgba(42,167,161,0); } }
.wzf-phone {
    --wzf-c: #03635D;
    border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(17,18,23,.12);
    max-height: calc(100vh - 230px); overflow-y: auto;
}
.wzf-phone.is-flash { animation: wzfFlash .8s var(--wz-ease-out); }
.wzf-ph-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 20px; font-size: 13px; color: var(--wz-muted); }
.wzf-ph-empty span { width: 28px; height: 28px; fill: #2aa7a1; }
.wzf-ph-empty svg { width: 100%; height: 100%; }
.wzf-ph-head {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    background: linear-gradient(145deg, var(--wzf-c), color-mix(in srgb, var(--wzf-c) 70%, #000)); color: #fff;
}
.wzf-ph-head b { display: block; font-size: 13px; }
.wzf-ph-head small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,.75); }
.wzf-ph-head small i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.wzf-ph-ava { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.18); }
.wzf-ph-ava svg { width: 17px; height: 17px; }
.wzf-ph-body { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.wzf-ph-title { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 700; color: var(--wz-ink); }
.wzf-ph-intro { margin-top: -6px; font-size: 12.5px; color: var(--wz-muted); }
.wzf-ph-field { display: flex; flex-direction: column; gap: 6px; }
.wzf-ph-field label { font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: #9a9ca5; }
.wzf-ph-field label em { color: #e5484d; font-style: normal; margin-left: 2px; }
.wzf-ph-input {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px;
    border: 1.5px solid #ececef; font-size: 13px; color: #a8aab3; background: #fafafb;
}
.wzf-ph-input svg { width: 15px; height: 15px; color: #b5b7bf; }
.wzf-ph-input em { color: #e5484d; font-style: normal; }
.wzf-ph-input.is-area { min-height: 58px; align-items: flex-start; }
.wzf-ph-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.wzf-ph-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1.5px solid #ececef; font-size: 12.5px; color: #444; background: #fafafb; }
.wzf-ph-pills span.is-on { border-color: var(--wzf-c); color: var(--wzf-c); background: color-mix(in srgb, var(--wzf-c) 9%, #fff); font-weight: 700; }
.wzf-ph-pills.is-multi i { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid #c9cad0; }
.wzf-ph-pills.is-multi span.is-on i { border-color: var(--wzf-c); background: var(--wzf-c); }
.wzf-ph-num { display: inline-flex; align-items: center; gap: 0; align-self: flex-start; border: 1.5px solid #ececef; border-radius: 12px; overflow: hidden; }
.wzf-ph-num b { width: 34px; padding: 8px 0; text-align: center; color: var(--wzf-c); background: #fafafb; }
.wzf-ph-num span { width: 42px; text-align: center; font-size: 13px; font-weight: 700; }
.wzf-ph-contacts { display: flex; flex-direction: column; gap: 8px; }
.wzf-ph-btn {
    margin-top: 2px; padding: 12px; border-radius: 12px; text-align: center; font-size: 13.5px; font-weight: 800; color: #fff;
    background: linear-gradient(145deg, var(--wzf-c), color-mix(in srgb, var(--wzf-c) 72%, #000));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--wzf-c) 30%, transparent);
}
.wzf-ph-after { font-size: 11.5px; color: var(--wz-muted); text-align: center; }

/* ── Правка заявок работающего виджета (этап 5): только шаг «Заявки», без шагов мастера ── */
.wz-live-note { display: none; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px;
    background: linear-gradient(135deg, #f3fbec, #eef8f7); border: 1px solid rgba(42,167,161,.22);
    font-size: 12.5px; line-height: 1.45; color: #1f4f49; }
.wz-live-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: #2aa7a1; }
#wgenWizard.is-live .wz-live-note { display: flex; }
#wgenWizard.is-live .wz-steps { display: none; }

/* ── «Оформление» на шаге «Внешний вид»: шрифт, углы, акцент (WIDGET_BOOKING_PLAN.md, этап 1) ── */
.wz-look-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wz-look-head .wz-label { margin-bottom: 12px; }
.wz-look-src { margin-bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #2f6a14; background: #eefbe3; }
.wz-look-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 10px 0; }
.wz-look-row + .wz-look-row, .wz-look-note + .wz-look-row { border-top: 1px solid var(--wz-line); }
.wz-look-cap { font-size: 12.5px; font-weight: 700; color: var(--wz-ink2); }
.wz-look-wait { font-size: 12.5px; color: var(--wz-muted); }
.wz-fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-font { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px 0 10px; border: 1.5px solid var(--wz-line); border-radius: 13px;
    background: #fff; color: var(--wz-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wz-font:hover { border-color: rgba(17,18,23,.18); transform: translateY(-1px); }
.wz-font b { font-size: 19px; font-weight: 700; line-height: 1; }
.wz-font span { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; line-height: 1.15; text-align: left; }
.wz-font small { font-family: 'Onest', sans-serif; font-size: 10.5px; font-weight: 700; color: #2f6a14; }
.wz-font.is-on { border-color: var(--wz-ink); box-shadow: 0 0 0 3px rgba(17,18,23,.06); }
.wz-look-note { margin: -2px 0 6px 76px; font-size: 12px; line-height: 1.45; color: var(--wz-muted); }
.wz-seg { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(17,18,23,.045); gap: 2px; justify-self: start; }
.wz-seg button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px; border: none; border-radius: 10px; background: transparent;
    font: 600 12.5px/1 'Onest', sans-serif; color: var(--wz-ink2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.wz-seg button.is-on { background: #fff; color: var(--wz-ink); box-shadow: 0 2px 8px rgba(17,18,23,.08); }
.wz-seg button.is-site::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #7dcf46; }
.wz-corner { width: 15px; height: 11px; border: 1.8px solid currentColor; }
.wz-corner--sharp { border-radius: 1px; } .wz-corner--soft { border-radius: 4px; } .wz-corner--round { border-radius: 7px; }
.wz-accents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wz-acc { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 4px; border: 1.5px solid transparent; border-radius: 999px;
    background: transparent; cursor: pointer; transition: border-color .15s; }
.wz-acc i { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.wz-acc span { padding-right: 8px; font: 600 12px/1 'Onest', sans-serif; color: var(--wz-ink2); }
.wz-acc.is-on { border-color: var(--wz-ink); }
.wz-acc:not(.is-on):hover { border-color: var(--wz-line); }
.wz-acc--custom i { background: conic-gradient(#e8590c, #c9a84c, #7dcf46, #2aa7a1, #7c3aed, #b5443c, #e8590c); }
.wz-acc--custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wz-look-decor { display: flex; align-items: center; gap: 11px; padding: 12px 0 2px; border-top: 1px solid var(--wz-line); font-size: 13px; color: var(--wz-ink2); cursor: pointer; }
.wz-look-decor[hidden] { display: none; }
.wz-switch { position: relative; flex-shrink: 0; width: 36px; height: 21px; }
.wz-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wz-switch i { position: absolute; inset: 0; border-radius: 999px; background: #d9dbd6; transition: background .18s; }
.wz-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .2s var(--wz-ease); }
.wz-switch input:checked + i { background: #7dcf46; }
.wz-switch input:checked + i::after { transform: translateX(15px); }

/* ── «Согласия в заявках» на шаге «Заявки» (этап 2) ── */
.wz-consent { margin-top: 14px; }
.wz-consent-lead { margin: -4px 0 12px; font-size: 13px; line-height: 1.5; color: var(--wz-ink2); }
.wz-consent-field { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--wz-line); }
.wz-consent-field span { font-size: 12.5px; font-weight: 700; color: var(--wz-ink2); }
.wz-consent-field input { height: 40px; padding: 0 12px; border: 1.5px solid var(--wz-line); border-radius: 12px; background: #fff; font: 500 13px/1 'Onest', sans-serif; color: var(--wz-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.wz-consent-field input:focus { border-color: #7dcf46; box-shadow: 0 0 0 3px rgba(125,207,70,.18); }
.wz-consent-field input.is-bad { border-color: #e5484d; }
.wz-consent-field small { font-size: 11.5px; color: var(--wz-muted); }
.wz-consent .wz-look-decor { padding-bottom: 10px; }
.wz-consent-note { padding: 10px 12px; border-radius: 12px; background: #fdf6e7; color: #7a4b0c; font-size: 12px; line-height: 1.45; }
/* в превью формы — как галочка в самом виджете: квадратик по первой строке, текст переносится обычным абзацем */
.wzf-ph-consent { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 12px; }
.wzf-ph-consent > span { display: flex; align-items: flex-start; gap: 9px; font-size: 11.5px; line-height: 1.5; color: #6b6e78; }
.wzf-ph-consent > span > span { display: block; flex: 1; min-width: 0; }
.wzf-ph-consent i { flex-shrink: 0; width: 15px; height: 15px; margin-top: 1px; border: 1.5px solid #c9cbd1; border-radius: 4px; background: #fff; }
.wzf-ph-consent u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
    text-decoration-color: color-mix(in srgb, var(--wzf-c, #2aa7a1) 40%, transparent); color: var(--wzf-c, #2aa7a1); }
.wzf-ph-consent .is-opt { color: #8a8d96; }

/* ══ Подарок за заявку (подарочные карты, План 4) — блок в карточке формы ══ */
.wzf-gift { border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--wz-line); transition: box-shadow .3s var(--wz-ease), background .3s var(--wz-ease); }
.wzf-gift.is-on { background: linear-gradient(150deg, #fffaf0 0%, #fff 55%); box-shadow: inset 0 0 0 1.5px rgba(215,171,107,.45), 0 10px 26px -18px rgba(150,105,30,.45); }
.wzf-gift-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.wzf-gift-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #9a6a1c; background: linear-gradient(145deg, #fdf0d8, #f6e2bd); }
.wzf-gift.is-on .wzf-gift-ico { color: #fff; background: linear-gradient(145deg, #e2b56c, #b98536); box-shadow: 0 6px 14px -6px rgba(185,133,54,.8); }
.wzf-gift-ico svg { width: 19px; height: 19px; }
.wzf-gift-hd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wzf-gift-hd b { font-size: 13.5px; font-weight: 800; color: var(--wz-ink); }
.wzf-gift-hd small { font-size: 12px; line-height: 1.4; color: var(--wz-muted); }
.wzf-gift .wzf-switch input:checked + i { background: linear-gradient(135deg, #e2b56c, #b98536); }
.wzf-gift-load { padding: 0 14px 14px; font-size: 12.5px; color: var(--wz-muted); }
.wzf-gift-pause { display: flex; gap: 8px; align-items: flex-start; margin: 0 14px 10px; padding: 9px 11px; border-radius: 12px;
  background: #fff4e5; color: #8a5a12; font-size: 12px; line-height: 1.4; }
.wzf-gift-pause svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.wzf-gift-cap { padding: 0 14px 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wz-muted); }
.wzf-gtpls { display: flex; gap: 10px; padding: 2px 14px 4px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.wzf-gtpl { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 3px; padding: 0; border: 0; background: none;
  font: inherit; text-align: left; cursor: pointer; }
.wzf-gtpl-pic { position: relative; display: block; aspect-ratio: 1200 / 750; border-radius: 5% / 8%; overflow: hidden; background: #f2f1ee;
  box-shadow: 0 0 0 1px var(--wz-line); transition: transform .3s var(--wz-ease-out), box-shadow .3s var(--wz-ease-out); }
.wzf-gtpl-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wzf-gtpl-pic i { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; background: #111217; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--wz-ease-out); }
.wzf-gtpl-pic i svg { width: 13px; height: 13px; stroke-width: 2.8; }
.wzf-gtpl:hover .wzf-gtpl-pic { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(17,18,23,.45), 0 0 0 1px var(--wz-line); }
.wzf-gtpl.is-on .wzf-gtpl-pic { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px #c3924a, 0 12px 22px -12px rgba(150,105,30,.6); }
.wzf-gtpl.is-on .wzf-gtpl-pic i { opacity: 1; transform: none; }
.wzf-gtpl:focus-visible { outline: none; }
.wzf-gtpl:focus-visible .wzf-gtpl-pic { box-shadow: 0 0 0 3px rgba(168,231,106,.9); }
.wzf-gtpl-v { margin-top: 5px; font-size: 13px; font-weight: 800; color: var(--wz-ink); font-variant-numeric: tabular-nums; }
.wzf-gtpl-t { font-size: 11.5px; line-height: 1.3; color: var(--wz-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wzf-gift-sum { margin: 8px 14px 0; font-size: 12.5px; line-height: 1.45; color: var(--wz-ink2); }
.wzf-gift-sum b { color: #8a5a12; }
.wzf-gift-rules { list-style: none; margin: 10px 14px 0; padding: 10px 0 12px; border-top: 1px dashed rgba(185,133,54,.3); display: flex; flex-direction: column; gap: 7px; }
.wzf-gift-rules li { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--wz-ink2); }
.wzf-gift-rules svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: #b98536; }
.wzf-gift-empty { margin: 0 14px 14px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(185,133,54,.25);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.wzf-gift-empty b { font-size: 13px; font-weight: 800; color: var(--wz-ink); }
.wzf-gift-empty span { font-size: 12.5px; line-height: 1.45; color: var(--wz-ink2); }
.wzf-gift-empty em { font-style: normal; font-size: 12px; color: var(--wz-muted); margin-top: 4px; }
.wzf-gift-empty button { margin-top: 8px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 0;
  background: #111217; color: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.wzf-gift-empty button svg { width: 14px; height: 14px; }
.wzf-gift-empty button:hover { background: #2a2c33; transform: translateY(-1px); }
.wzf-contact.is-locked { cursor: default; background: linear-gradient(135deg, #e2b56c, #b98536); color: #fff; }
.wzf-contact.is-locked span { color: rgba(255,255,255,.85); }
.wzf-contact.is-locked:hover { transform: none; }
.wzf-meta-gift { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 1px 7px 1px 5px; border-radius: 999px;
  background: #fbefd9; color: #8a5a12; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.wzf-meta-gift svg { width: 11px; height: 11px; }
.wzf-tab-gift { width: 12px; height: 12px; margin-left: 5px; vertical-align: -1px; color: #b98536; }
.wgen-forms-live-gift { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; color: #8a5a12; background: #fbefd9; }
/* «Подарок» в строке формы — видно сразу, без раскрытия карточки */
.wzf-gift-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; flex-shrink: 0; border-radius: 999px; cursor: pointer;
  border: 1px dashed rgba(185,133,54,.55); background: #fffaf0; color: #8a5a12; font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.wzf-gift-pill svg { width: 15px; height: 15px; }
.wzf-gift-pill:hover { background: #fdf0d8; border-color: #c3924a; transform: translateY(-1px); }
.wzf-gift-pill.is-on { border: 0; color: #fff; background: linear-gradient(135deg, #e2b56c, #b98536); box-shadow: 0 6px 14px -8px rgba(185,133,54,.9); font-variant-numeric: tabular-nums; }
.wzf-gift-pill.is-on:hover { filter: brightness(1.05); }
.wzf-card.is-off .wzf-gift-pill:not(.is-on) { opacity: .55; }
.wzf-gift.is-flash { animation: wzfGiftFlash 1.4s var(--wz-ease-out); }
@keyframes wzfGiftFlash { 0%, 60% { box-shadow: inset 0 0 0 1.5px rgba(215,171,107,.45), 0 0 0 6px rgba(226,181,108,.35); } 100% { box-shadow: inset 0 0 0 1.5px rgba(215,171,107,.45), 0 0 0 0 rgba(226,181,108,0); } }
.wzf-gift:not(.is-on).is-flash { animation-name: wzfGiftFlashOff; }
@keyframes wzfGiftFlashOff { 0%, 60% { box-shadow: inset 0 0 0 1px var(--wz-line), 0 0 0 6px rgba(226,181,108,.35); } 100% { box-shadow: inset 0 0 0 1px var(--wz-line), 0 0 0 0 rgba(226,181,108,0); } }
@media (max-width: 640px) { .wzf-gift-pill span { display: none; } .wzf-gift-pill { width: 32px; padding: 0; justify-content: center; } }
