@font-face {
    font-family: "Benzin";
    src: url("/static/fonts/Benzin-Regular.ttf") format("truetype");
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: "Benzin";
    src: url("/static/fonts/Benzin-Medium.ttf") format("truetype");
    font-display: swap;
    font-weight: 500;
}

@font-face {
    font-family: "Benzin";
    src: url("/static/fonts/Benzin-Bold.ttf") format("truetype");
    font-display: swap;
    font-weight: 700;
}

body.wizard-v2-page {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    color: #fff;
    background: #000000;
}

.wizard-v2 {
    /* TG fullscreen: --app-safe-* из platform/telegram.js; иначе env() */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --wv2-bg: #010101;
    --wv2-fg: #fff;
    --wv2-muted: rgba(255, 255, 255, 0.68);
    --wv2-accent: #77f601;
    --wv2-accent-2: #9903f0;
    --wv2-ice-1: #cfe8ff;
    --wv2-ice-2: #7db8f0;
    --wv2-ice-ink: #041022;
    --wv2-game-blue-top: #2877d4;
    --wv2-game-blue-mid: #174d9a;
    --wv2-game-blue-bottom: #08265e;
    --wv2-game-border: #77aaf2;
    --wv2-glass: rgba(255, 255, 255, 0.08);
    --wv2-border: rgba(255, 255, 255, 0.24);
    --wv2-radius: 18px;
    --wv2-font-brand: "Benzin", Arial, sans-serif;
    --wv2-font-game: "Comic Neue", "Comic Sans MS", "Trebuchet MS", sans-serif;
    box-sizing: border-box;
    width: min(100%, 760px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: var(--safe-top) 18px calc(24px + var(--safe-bottom));
    overflow: hidden;
    color: var(--wv2-fg);
    font-family: var(--wv2-font-brand);
    font-weight: 400;
    background:
        radial-gradient(circle at 50% 42%, rgba(24, 74, 130, 0.2), transparent 34%),
        var(--wv2-bg);
}

html[data-tg-safe="1"] .wizard-v2 {
    --safe-top: var(--app-safe-top, 0px);
    --safe-bottom: var(--app-safe-bottom, 0px);
    --safe-left: var(--app-safe-left, 0px);
    --safe-right: var(--app-safe-right, 0px);
}

/*
 * Фон студии: --wv2-studio-bg выставляет JS по state.studioId.
 * Слой фиксирован на один экран (lvh): ниже контента — #000000.
 */
.wizard-v2[data-step="service_script"] {
    background: none;
}

.wizard-v2[data-step="service_script"]::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    z-index: -1;
    width: min(100vw, 760px);
    height: 100vh;
    height: 100lvh;
    transform: translateX(-50%);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.74)),
        var(--wv2-studio-bg, url("/static/background/msk_pro_wizard_slug_background.webp")) center / cover no-repeat;
    pointer-events: none;
}

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

.wizard-v2 [hidden] {
    display: none !important;
}

.wizard-v2__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 2px 4px;
}

.wizard-v2__avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid #9903f0;
    border-radius: 50%;
}

.wizard-v2__author {
    color: #fff;
    font: 400 16px/1 var(--wv2-font-brand);
}

.wizard-v2__skip {
    margin-left: auto;
    color: #ececec;
    font: 500 16px/1 var(--wv2-font-brand);
    text-decoration: none;
}

.wizard-v2__back {
    position: fixed;
    z-index: 1000;
    left: max(14px, var(--safe-left));
    bottom: max(18px, var(--safe-bottom));
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    background: none;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wizard-v2__back-icon {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.wizard-v2__back:active {
    transform: translateX(-1px) scale(0.94);
    opacity: 0.85;
}

.wizard-v2__progress {
    position: fixed;
    z-index: 900;
    left: 0;
    right: 0;
    bottom: max(18px, var(--safe-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.wizard-v2__progress-mark {
    display: grid;
    place-items: center;
    width: 20px;
    height: 36px;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    opacity: 0.42;
    transform: rotate(15deg);
    pointer-events: none;
    cursor: default;
    transition: opacity 220ms ease, transform 220ms ease, filter 220ms ease;
    -webkit-tap-highlight-color: transparent;
}

.wizard-v2__progress-mark--jump {
    pointer-events: auto;
    cursor: pointer;
}

.wizard-v2__progress-mark--jump:hover,
.wizard-v2__progress-mark--jump:focus-visible {
    opacity: 1;
    filter: brightness(1.12);
}

.wizard-v2__progress-mark--jump:focus-visible {
    outline: 2px solid #edf7ff;
    outline-offset: 4px;
}

.wizard-v2__progress-mark--jump:active {
    transform: rotate(15deg) scale(0.92);
}

.wizard-v2__progress-mark svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.wizard-v2__gem-facet {
    stroke: none;
}

.wizard-v2__gem-facet--tl { fill: rgba(218, 230, 238, 0.34); }
.wizard-v2__gem-facet--tr { fill: rgba(128, 145, 157, 0.28); }
.wizard-v2__gem-facet--bl { fill: rgba(83, 98, 110, 0.3); }
.wizard-v2__gem-facet--br { fill: rgba(38, 50, 59, 0.42); }

.wizard-v2__gem-shine {
    fill: rgba(255, 255, 255, 0.2);
}

.wizard-v2__progress-mark--active {
    opacity: 0.88;
}

.wizard-v2__progress-mark--active .wizard-v2__gem-facet--tl { fill: #d8ff7a; }
.wizard-v2__progress-mark--active .wizard-v2__gem-facet--tr { fill: #7df52a; }
.wizard-v2__progress-mark--active .wizard-v2__gem-facet--bl { fill: #35bd20; }
.wizard-v2__progress-mark--active .wizard-v2__gem-facet--br { fill: #147711; }
.wizard-v2__progress-mark--active .wizard-v2__gem-shine { fill: rgba(255, 255, 255, 0.62); }

.wizard-v2__progress-mark--current {
    opacity: 1;
    transform: rotate(15deg) scale(1.16);
}

.wizard-v2__step {
    width: min(100%, 620px);
    min-height: calc(100dvh - 84px - var(--safe-top));
    margin: 0 auto;
    padding: clamp(26px, 7vh, 68px) 0 64px;
}

.wizard-v2[data-step="plan"] {
    background: #010101;
}

.wizard-v2[data-step="intro"] {
    background: #010101;
}

.wizard-v2[data-step="summary"] {
    overflow: visible;
}

.wizard-v2__step[hidden] {
    display: none;
}

/* ---------- Переходы между шагами ----------
   Сам шаг гасится только через opacity: transform/filter на секции создали бы
   containing block и сломали fixed-элементы (логотип и кнопки intro).
   Контент в потоке въезжает снизу каскадом, fixed-элементы intro анимируются
   отдельными keyframes с сохранением их базового transform. */
.wizard-v2__step--enter {
    animation: wv2-step-fade 0.8s ease both;
}

@keyframes wv2-step-fade {
    from { opacity: 0; }
}

.wizard-v2__step--enter > *:not(.wizard-v2__intro-bg):not(.wizard-v2__intro-logo):not(.wizard-v2__intro-actions):not(.wizard-v2__lightbox) {
    animation: wv2-step-rise 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.wizard-v2__step--enter > :nth-child(2) { animation-delay: 0.12s; }
.wizard-v2__step--enter > :nth-child(3) { animation-delay: 0.24s; }
.wizard-v2__step--enter > :nth-child(4) { animation-delay: 0.36s; }
.wizard-v2__step--enter > :nth-child(5) { animation-delay: 0.48s; }
.wizard-v2__step--enter > :nth-child(6) { animation-delay: 0.6s; }
.wizard-v2__step--enter > :nth-child(7) { animation-delay: 0.72s; }
.wizard-v2__step--enter > :nth-child(8) { animation-delay: 0.84s; }

@keyframes wv2-step-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-v2__step--enter .wizard-v2__intro-logo {
    animation: wv2-intro-logo-in 1.3s cubic-bezier(0.22, 0.9, 0.3, 1.1) 0.24s both;
}

@keyframes wv2-intro-logo-in {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.88); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.wizard-v2__step--enter .wizard-v2__intro-actions {
    animation: wv2-intro-actions-in 1.1s cubic-bezier(0.22, 0.9, 0.3, 1) 0.48s both;
}

@keyframes wv2-intro-actions-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.wizard-v2__intro {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: calc(100dvh - 120px - var(--safe-top));
    padding-top: clamp(12px, 3vh, 28px);
    padding-bottom: 12px;
    text-align: center;
}

.wizard-v2__intro-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.wizard-v2__intro-glow {
    position: absolute;
    height: 52%;
    object-fit: cover;
    opacity: 0.9;
}

.wizard-v2__intro-glow--start {
    left: 0;
    bottom: 0;
    width: min(42vw, 220px);
    transform: scaleY(-1);
}

.wizard-v2__intro-glow--end {
    top: 0;
    right: 0;
    width: min(36vw, 190px);
    transform: scaleX(-1);
}

.wizard-v2__intro-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: clamp(28px, 7vh, 64px);
}

.wizard-v2__intro-logo {
    position: fixed;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: block;
    width: min(88vw, 420px);
    height: auto;
    max-height: min(36dvh, 300px);
    margin: 0;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Кнопки центрируются между низом логотипа (fixed, 50dvh + полвысоты:
   высота = ширина * 668/1154 ≈ 0.579) и верхом ромбов прогресса (36px,
   bottom: max(18px, safe-area)). Остальной layout intro не трогаем. */
.wizard-v2__intro-actions {
    position: fixed;
    z-index: 2;
    left: 50%;
    top: calc((150dvh + min(88vw, 420px) * 0.2895 - max(18px, var(--safe-bottom)) - 36px) / 2);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(calc(100vw - 36px), 620px);
    gap: 16px;
}

.wizard-v2__intro .wizard-v2__cta--start {
    width: min(100%, 280px);
    margin-top: 0;
}

.wizard-v2__catalog {
    color: #fff;
    font: 400 15px/1.3 var(--wv2-font-brand);
    text-decoration: none;
}

.wizard-v2__catalog:hover {
    color: var(--wv2-accent);
}

.wizard-v2__eyebrow {
    margin: 0 0 12px;
    color: var(--wv2-accent);
    font: 700 11px/1.3 var(--wv2-font-brand);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wizard-v2__title,
.wizard-v2__heading,
.wizard-v2-choice__question {
    margin: 0;
    font-family: var(--wv2-font-brand);
    text-transform: uppercase;
}

.wizard-v2__title {
    max-width: 560px;
    font-size: clamp(30px, 8vw, 52px);
    line-height: 1.04;
}

.wizard-v2__heading {
    margin-bottom: 26px;
    font-size: clamp(27px, 6vw, 42px);
    line-height: 1.08;
}

.wizard-v2__lead,
.wizard-v2__muted {
    color: var(--wv2-muted);
    font: 400 14px/1.5 var(--wv2-font-brand);
}

.wizard-v2__lead {
    max-width: 440px;
    margin: 16px auto 0;
}

.wizard-v2__cta {
    width: 100%;
    min-height: 56px;
    margin-top: 24px;
    padding: 14px 20px;
    color: #050505;
    font: 700 13px/1 var(--wv2-font-brand);
    text-transform: uppercase;
    background: linear-gradient(96deg, var(--wv2-accent), #cfff39 52%, #ae68ef);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(119, 246, 1, 0.2);
}

.wizard-v2__cta:disabled {
    opacity: 0.38;
}

/* CTA «Начать» / «Выбрать»: чёрный фон, зелёный shimmer только на обводке */
.wizard-v2__cta--start {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #0d0d0d;
    border: 0;
    border-radius: 9999px;
    box-shadow: 0 0 28px rgba(57, 255, 20, 0.12);
    isolation: isolate;
}

.wizard-v2__cta--start::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: linear-gradient(
        30deg,
        rgba(57, 255, 20, 0.22) 0%,
        rgba(57, 255, 20, 0.22) 38%,
        #39ff14 50%,
        rgba(57, 255, 20, 0.22) 62%,
        rgba(57, 255, 20, 0.22) 100%
    );
    background-size: 320% 320%;
    /* До старта анимации яркая полоса за кадром — без «зелёного пятна» при открытии */
    background-position: 220% 220%;
    animation: wizard-v2-shimmer 4.2s ease-in-out 1.6s infinite both;
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.wizard-v2__cta--start .wizard-v2__cta-label {
    position: relative;
    z-index: 1;
    display: block;
    color: #fff;
}

@keyframes wizard-v2-shimmer {
    0%,
    100% {
        background-position: 220% 220%;
    }
    40%,
    60% {
        background-position: -5% -5%;
    }
}

.wizard-v2__city-tabs {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 22px;
    padding: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.wizard-v2__city-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    z-index: 0;
    width: 33%;
    overflow: hidden;
    background: #060806;
    border: 1px solid rgba(57, 255, 20, 0.24);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 18px rgba(57, 255, 20, 0.14);
    transition: transform 280ms cubic-bezier(0.34, 1.1, 0.64, 1), width 280ms ease;
}

.wizard-v2__city-indicator::before {
    content: "";
    position: absolute;
    top: -18%;
    left: -8%;
    width: 78%;
    height: 136%;
    background: radial-gradient(
        ellipse at 42% 48%,
        rgba(119, 246, 1, 0.72) 0%,
        rgba(57, 255, 20, 0.38) 34%,
        rgba(20, 80, 12, 0.12) 58%,
        transparent 72%
    );
    border-radius: 62% 38% 58% 42% / 44% 56% 48% 52%;
    filter: blur(7px);
    pointer-events: none;
    animation: wizard-v2-city-blob 5.5s ease-in-out infinite;
}

.wizard-v2__city-indicator::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -22%;
    width: 52%;
    height: 88%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(146, 43, 242, 0.62) 0%,
        rgba(146, 43, 242, 0.28) 45%,
        transparent 70%
    );
    border-radius: 48% 52% 40% 60% / 55% 45% 58% 42%;
    filter: blur(9px);
    opacity: 0.9;
    pointer-events: none;
    animation: wizard-v2-city-blob 6.8s ease-in-out infinite reverse;
}

@keyframes wizard-v2-city-blob {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(4%, -3%) scale(1.06);
    }
}

.wizard-v2__city-tab {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-height: 42px;
    padding: 10px 8px;
    color: rgba(255, 255, 255, 0.72);
    font: 700 13px/1 var(--wv2-font-brand);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: color 220ms ease, text-shadow 220ms ease;
}

.wizard-v2__city-tab[aria-selected="true"] {
    color: #f2ffe8;
    text-shadow: 0 0 14px rgba(119, 246, 1, 0.42);
}

.wizard-v2__studio-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.wizard-v2__studio-copy {
    min-width: 0;
}

.wizard-v2__studio-name,
.wizard-v2__plan-name {
    display: block;
    margin-bottom: 6px;
    font: 700 18px/1.15 var(--wv2-font-brand);
    text-transform: uppercase;
}

.wizard-v2__studio-address,
.wizard-v2__plan-features {
    margin: 0;
    color: var(--wv2-muted);
    font: 400 14px/1.35 var(--wv2-font-brand);
}

.wizard-v2__studio-nav {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
}

.wizard-v2__studio-nav[hidden] {
    display: none;
}

.wizard-v2__studio-nav-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
}

.wizard-v2__studio-nav-btn svg {
    width: 18px;
    height: 18px;
}

.wizard-v2__studio-counter {
    min-width: 2.4em;
    color: var(--wv2-muted);
    font: 400 13px/1 var(--wv2-font-brand);
    text-align: center;
}

/* Gallery collage: full main photo, tiny thumbs bottom-right */
.wizard-v2__gallery {
    margin-bottom: 8px;
}

.wizard-v2__gallery-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background:
        radial-gradient(circle at 50% 40%, rgba(119, 246, 1, 0.08), transparent 55%),
        #121212;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.35);
}

.wizard-v2__gallery-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: none;
    border: 0;
    cursor: zoom-in;
}

.wizard-v2__gallery-main {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 220ms ease, transform 420ms ease;
}

.wizard-v2__gallery-main.is-switching {
    opacity: 0.35;
    transform: scale(1.03);
}

.wizard-v2__gallery-fade {
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
    pointer-events: none;
}

.wizard-v2__gallery-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--wv2-muted);
    font: 400 14px/1.3 var(--wv2-font-brand);
    pointer-events: none;
}

.wizard-v2__gallery-thumbs {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    max-width: calc(100% - 20px);
    overflow-x: auto;
    padding: 4px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scrollbar-width: none;
}

.wizard-v2__gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.wizard-v2__gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease;
}

.wizard-v2__gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wizard-v2__gallery-thumb[aria-selected="true"] {
    border-color: var(--wv2-accent);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(119, 246, 1, 0.4);
}

.wizard-v2__lightbox {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wizard-v2__lightbox[hidden] {
    display: none !important;
}

.wizard-v2__lightbox-image {
    max-width: min(100%, 920px);
    max-height: min(78dvh, 820px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-y;
}

.wizard-v2__lightbox-close {
    position: absolute;
    top: max(14px, var(--safe-top));
    right: max(14px, var(--safe-right));
    width: 44px;
    height: 44px;
    color: #fff;
    font: 32px/1 Arial, sans-serif;
    background: none;
    border: 0;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.wizard-v2__lightbox-nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 67px;
    height: 67px;
    padding: 0;
    color: #fff;
    background: none;
    border: 0;
    transform: translateY(-50%);
    cursor: pointer;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65));
}

.wizard-v2__lightbox-nav svg {
    width: 28px;
    height: 28px;
}

.wizard-v2__lightbox-nav--prev {
    left: max(10px, var(--safe-left));
}

.wizard-v2__lightbox-nav--next {
    right: max(10px, var(--safe-right));
}

.wizard-v2__lightbox-dots {
    position: absolute;
    left: 50%;
    bottom: max(18px, var(--safe-bottom));
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.wizard-v2__lightbox-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.wizard-v2__lightbox-dot.is-active {
    background: var(--wv2-accent);
}

.wizard-v2__plans {
    display: none;
}

.wizard-v2-choice__answer[aria-pressed="true"] {
    box-shadow:
        0 0 0 2px rgba(119, 246, 1, 0.55),
        0 0 18px rgba(119, 246, 1, 0.22);
}

.wizard-v2[data-wv2-mood="purple"] .wizard-v2-choice__answer[aria-pressed="true"] {
    box-shadow:
        0 0 0 2px rgba(146, 43, 242, 0.65),
        0 0 18px rgba(146, 43, 242, 0.28);
}

.wizard-v2[data-wv2-mood="purple"] .wizard-v2__progress-mark--active .wizard-v2__gem-facet--tl,
.wizard-v2[data-wv2-mood="purple"] .wizard-v2__progress-mark--active .wizard-v2__gem-facet--tr,
.wizard-v2[data-wv2-mood="purple"] .wizard-v2__progress-mark--active .wizard-v2__gem-facet--bl,
.wizard-v2[data-wv2-mood="purple"] .wizard-v2__progress-mark--active .wizard-v2__gem-facet--br {
    fill: rgba(146, 43, 242, 0.92);
}

.wizard-v2__plan-detail[hidden] {
    display: none !important;
}

.wizard-v2__heading--plan {
    position: relative;
    z-index: 1;
    margin: 0 0 16px;
    text-align: left;
}

.wizard-v2__result-card--plan {
    position: relative;
    z-index: 1;
}

.wizard-v2__plan-toggles {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.wizard-v2__plan-toggle {
    position: relative;
    display: flex;
    align-items: center;
    padding: 3px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.wizard-v2__plan-toggle[hidden] {
    display: none !important;
}

.wizard-v2__plan-indicator {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    z-index: 0;
    width: 33%;
    overflow: hidden;
    background: #060806;
    border: 1px solid rgba(57, 255, 20, 0.24);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 14px rgba(57, 255, 20, 0.14);
    transition: transform 280ms cubic-bezier(0.34, 1.1, 0.64, 1), width 280ms ease;
}

.wizard-v2__plan-indicator::before {
    content: "";
    position: absolute;
    top: -18%;
    left: -8%;
    width: 78%;
    height: 136%;
    background: radial-gradient(
        ellipse at 42% 48%,
        rgba(119, 246, 1, 0.72) 0%,
        rgba(57, 255, 20, 0.38) 34%,
        rgba(20, 80, 12, 0.12) 58%,
        transparent 72%
    );
    border-radius: 62% 38% 58% 42% / 44% 56% 48% 52%;
    filter: blur(7px);
    pointer-events: none;
    animation: wizard-v2-city-blob 5.5s ease-in-out infinite;
}

.wizard-v2__plan-indicator::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -22%;
    width: 52%;
    height: 88%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(146, 43, 242, 0.62) 0%,
        rgba(146, 43, 242, 0.28) 45%,
        transparent 70%
    );
    border-radius: 48% 52% 40% 60% / 55% 45% 58% 42%;
    filter: blur(9px);
    opacity: 0.9;
    pointer-events: none;
    animation: wizard-v2-city-blob 6.8s ease-in-out infinite reverse;
}

.wizard-v2__plan-toggle-btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-height: 32px;
    padding: 6px 6px;
    color: rgba(255, 255, 255, 0.72);
    font: 700 11px/1 var(--wv2-font-brand);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: color 220ms ease, text-shadow 220ms ease;
}

.wizard-v2__plan-toggle-btn--active {
    color: #f2ffe8;
    text-shadow: 0 0 14px rgba(119, 246, 1, 0.42);
}

.wizard-v2__plan-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 240px;
    margin-bottom: 8px;
    padding: 28px 22px 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wizard-v2__plan-card-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wizard-v2__plan-card-name {
    margin: 0;
    font: 700 28px/1 var(--wv2-font-brand);
    text-transform: uppercase;
}

.wizard-v2__plan-card-price {
    margin: 10px 0 0;
    font: 700 34px/1 var(--wv2-font-brand);
}

.wizard-v2__plan-card-period {
    margin: 8px 0 0;
    color: var(--wv2-muted);
    font: 400 13px/1.3 var(--wv2-font-brand);
}

.wizard-v2__plan-card-features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-v2__plan-card-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.92);
    font: 400 15px/1.35 var(--wv2-font-brand);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wizard-v2__plan-card-features li:first-child {
    border-top: 0;
}

.wizard-v2__plan .wizard-v2__cta--start {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

.wizard-v2__studio .wizard-v2__cta--start {
    margin-top: 18px;
}

.wizard-v2__cta--start:disabled {
    opacity: 0.38;
}

.wizard-v2__cta--start:disabled::before,
.wizard-v2__cta--start:disabled .wizard-v2__cta-label {
    animation: none;
}

.wizard-v2-choice {
    --wv2-bottom-clearance: calc(96px + var(--safe-bottom));
    position: relative;
    width: min(100%, 720px);
    min-height: calc(100dvh - 84px);
    padding-top: 20px;
    padding-bottom: var(--wv2-bottom-clearance);
}

.wizard-v2-choice__copy {
    position: relative;
    z-index: 5;
    max-width: 620px;
    height: clamp(118px, 24vw, 148px);
    margin: 0 auto;
    text-align: center;
}

.wizard-v2-choice__copy-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    animation: wizard-v2-copy-in 220ms ease both;
}

.wizard-v2-choice__copy-panel[hidden] {
    display: none !important;
}

.wizard-v2-choice__plan-prompt {
    margin: 10px 0 0;
    color: var(--wv2-muted);
    font: 400 14px/1.3 var(--wv2-font-brand);
}

/* Confirm + summary under the stage — above fixed progress gems */
.wizard-v2__plan-dock {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(100%, 420px);
    margin: 8px auto 0;
    padding: 0 18px;
}

.wizard-v2-choice--plan-phase {
    --wv2-bottom-clearance: calc(110px + var(--safe-bottom));
}

/* На шаге «Вам подходит» приглушаем маскота и ромб — акцент на обложке услуги */
.wizard-v2-choice--plan-phase .wizard-v2-choice__mascot,
.wizard-v2-choice--plan-phase .wizard-v2-choice__mascot-fallback {
    opacity: 0.42;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.4)) saturate(0.8) brightness(0.82);
    transition: opacity 0.28s ease, filter 0.28s ease;
}

.wizard-v2-choice--plan-phase .wizard-v2-choice__gem-wrap {
    opacity: 0.38;
    filter: saturate(0.7) brightness(0.85);
    transition: opacity 0.28s ease, filter 0.28s ease;
}

.wizard-v2-choice--plan-phase .wizard-v2__plan-dock {
    margin-top: -96px;
}

/*
 * Место (город → студия): в отличие от plan-фазы на сцене есть кнопки ответов,
 * поэтому сцена короче, а док с адресом поднят над фиксированными ромбами
 * прогресса и кнопкой «назад» (обе прибиты к bottom: 18px).
 */
.wizard-v2-choice--place-phase {
    --wv2-bottom-clearance: calc(124px + var(--safe-bottom));
}

.wizard-v2-choice--place-phase .wizard-v2-choice__scene {
    min-height: min(54dvh, 500px);
}

.wizard-v2-choice--place-phase .wizard-v2__plan-dock {
    margin-top: -28px;
}

.wizard-v2-choice--place-phase .wizard-v2-choice__answer:nth-child(3) { bottom: 34%; }
.wizard-v2-choice--place-phase .wizard-v2-choice__answer:nth-child(4) { bottom: 28%; }
.wizard-v2-choice--place-phase .wizard-v2-choice__answer:nth-child(5) { bottom: 16%; }

.wizard-v2__plan-dock[hidden] {
    display: none !important;
}

.wizard-v2__plan-dock-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.wizard-v2__plan-dock--enter .wizard-v2__plan-dock-summary,
.wizard-v2__plan-dock--enter .wizard-v2-choice__confirm {
    animation: wizard-v2-copy-in 220ms ease both;
}

.wizard-v2__plan-dock-line {
    margin: 0;
    min-width: 0;
    color: #fff;
    font: 700 15px/1.2 var(--wv2-font-brand);
    letter-spacing: 0.01em;
}

.wizard-v2__plan-more.sims-ui-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-height: 38px;
    padding: 7px 12px 7px 14px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.wizard-v2__plan-more-mark {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: inherit;
    font: 800 12px/1 var(--wv2-font-game);
    text-shadow: inherit;
    background: rgba(18, 61, 121, 0.12);
    border: 1.5px solid rgba(18, 61, 121, 0.28);
    border-radius: 50%;
}

.wizard-v2__plan-more.sims-ui-button[aria-pressed="true"] .wizard-v2__plan-more-mark,
.wizard-v2__plan-more.sims-ui-button:active .wizard-v2__plan-more-mark {
    background: rgba(21, 60, 8, 0.14);
    border-color: rgba(21, 60, 8, 0.3);
}

.wizard-v2[data-wv2-mood="purple"] .wizard-v2__plan-more.sims-ui-button {
    color: #4a1774;
    background:
        linear-gradient(180deg, rgba(255, 246, 255, 0.98), rgba(226, 200, 245, 0.96) 54%, rgba(186, 140, 230, 0.98));
    border-color: #f4e8ff;
    box-shadow:
        inset 0 -4px 7px rgba(88, 24, 140, 0.3),
        inset 0 2px 2px #fff,
        0 0 0 2px #9903f0,
        0 7px 14px rgba(0, 0, 0, 0.48);
}

.wizard-v2[data-wv2-mood="purple"] .wizard-v2__plan-more-mark {
    background: rgba(74, 23, 116, 0.12);
    border-color: rgba(74, 23, 116, 0.3);
}

.wizard-v2-choice__confirm {
    width: min(240px, 72%);
    margin: 0 auto;
}

/* Bottom sheet with tariff details */
.wizard-v2-page.wizard-v2-sheet-open {
    overflow: hidden;
}

.wizard-v2__plan-sheet {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.wizard-v2__plan-sheet:not([hidden]) {
    pointer-events: auto;
}

.wizard-v2__plan-sheet[hidden] {
    display: none !important;
}

.wizard-v2__plan-sheet-backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.62);
    border: 0;
    cursor: pointer;
    animation: wizard-v2-fade-in 200ms ease both;
}

.wizard-v2__plan-sheet-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(100%, 760px);
    max-height: min(82dvh, 640px);
    margin: 0;
    padding: 10px 20px calc(20px + var(--safe-bottom));
    overflow: auto;
    color: #fff;
    background:
        radial-gradient(ellipse 70% 34% at 18% 12%, rgba(119, 246, 1, 0.1), transparent 62%),
        linear-gradient(180deg, #16181a 0%, #08090a 100%);
    border: 1px solid rgba(119, 246, 1, 0.3);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    box-shadow:
        0 -18px 48px rgba(0, 0, 0, 0.55),
        0 -2px 22px rgba(119, 246, 1, 0.1);
    animation: wizard-v2-sheet-up 760ms cubic-bezier(0.3, 1.35, 0.4, 1) both;
}

.wizard-v2[data-wv2-mood="purple"] .wizard-v2__plan-sheet-panel {
    background:
        radial-gradient(ellipse 70% 34% at 18% 12%, rgba(146, 43, 242, 0.16), transparent 62%),
        linear-gradient(180deg, #16181a 0%, #08090a 100%);
    border-color: rgba(146, 43, 242, 0.42);
    box-shadow:
        0 -18px 48px rgba(0, 0, 0, 0.55),
        0 -2px 22px rgba(146, 43, 242, 0.16);
}

.wizard-v2__plan-sheet-handle {
    width: 42px;
    height: 4px;
    margin: 2px auto 4px;
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

.wizard-v2__plan-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.82);
    font: 28px/1 Arial, sans-serif;
    background: none;
    border: 0;
    cursor: pointer;
}

.wizard-v2__plan-sheet-service {
    margin: 0;
    padding-right: 36px;
}

.wizard-v2__plan-sheet-title {
    margin: 0;
    padding-right: 36px;
    font: 700 clamp(22px, 5vw, 30px)/1.05 var(--wv2-font-brand);
    text-transform: uppercase;
}

.wizard-v2__plan-sheet-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

/* Цена — герой панели: градиентный текст */
.wizard-v2__plan-sheet-price {
    margin: 0;
    font: 700 clamp(28px, 7vw, 38px)/1 var(--wv2-font-brand);
    background: linear-gradient(115deg, #eaffd0 0%, #9dff3d 45%, #d6ff9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #9dff3d;
    filter: drop-shadow(0 0 14px rgba(119, 246, 1, 0.22));
}

.wizard-v2[data-wv2-mood="purple"] .wizard-v2__plan-sheet-price {
    background: linear-gradient(115deg, #f0e0ff 0%, #b566ff 45%, #e2c5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #b566ff;
    filter: drop-shadow(0 0 14px rgba(146, 43, 242, 0.28));
}

/* «за час» — капсула */
.wizard-v2__plan-sheet-period {
    margin: 0;
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.78);
    font: 400 12px/1.2 var(--wv2-font-brand);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.wizard-v2__plan-sheet-features {
    display: grid;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

/* Перки: стеклянные полоски с plumbob-буллетом, зажигаются каскадом */
.wizard-v2__plan-sheet-features li {
    position: relative;
    padding: 11px 14px 11px 34px;
    color: rgba(255, 255, 255, 0.86);
    font: 400 14px/1.35 var(--wv2-font-brand);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    animation: wv2-fade-slide 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.wizard-v2__plan-sheet-features li:nth-child(1) { animation-delay: 0.2s; }
.wizard-v2__plan-sheet-features li:nth-child(2) { animation-delay: 0.4s; }
.wizard-v2__plan-sheet-features li:nth-child(3) { animation-delay: 0.6s; }
.wizard-v2__plan-sheet-features li:nth-child(4) { animation-delay: 0.8s; }
.wizard-v2__plan-sheet-features li:nth-child(5) { animation-delay: 1s; }
.wizard-v2__plan-sheet-features li:nth-child(6) { animation-delay: 1.2s; }
.wizard-v2__plan-sheet-features li:nth-child(7) { animation-delay: 1.4s; }

.wizard-v2__plan-sheet-features li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 13px;
    width: 9px;
    height: 14px;
    background: linear-gradient(180deg, #b7ff54, #2f9411);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    filter: drop-shadow(0 0 5px rgba(119, 246, 1, 0.5));
    transform: translateY(-50%);
}

.wizard-v2[data-wv2-mood="purple"] .wizard-v2__plan-sheet-features li::before {
    background: linear-gradient(180deg, #c78bff, #6c14c0);
    filter: drop-shadow(0 0 5px rgba(146, 43, 242, 0.55));
}

.wizard-v2__plan-sheet-confirm {
    width: 100%;
    margin-top: 6px;
}

@keyframes wizard-v2-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wizard-v2-sheet-up {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wizard-v2__plan-sheet-backdrop,
    .wizard-v2__plan-sheet-panel,
    .wizard-v2__plan-dock-summary {
        animation: none;
    }
}

.wizard-v2-choice--plan-phase .wizard-v2__plan-detail {
    position: relative;
    z-index: 5;
    max-width: 620px;
    margin: 0 auto 8px;
    padding: 0 18px;
}

.wizard-v2-choice--plan-phase .wizard-v2__plan-detail[hidden] {
    display: none !important;
}

.wizard-v2__plan-card--compact {
    display: grid;
    gap: 8px;
    min-height: 0;
    margin: 0;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wizard-v2__plan-card--compact .wizard-v2__plan-card-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
}

.wizard-v2__plan-card--compact .wizard-v2__plan-card-name {
    margin: 0;
    font: 700 15px/1.1 var(--wv2-font-brand);
    text-transform: uppercase;
}

.wizard-v2__plan-card--compact .wizard-v2__plan-card-price {
    margin: 0;
    font: 700 18px/1 var(--wv2-font-brand);
}

.wizard-v2__plan-card--compact .wizard-v2__plan-card-period {
    margin: 0;
    color: var(--wv2-muted);
    font: 400 12px/1.3 var(--wv2-font-brand);
}

.wizard-v2__plan-card--compact .wizard-v2__plan-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-v2__plan-card--compact .wizard-v2__plan-card-features li {
    color: rgba(255, 255, 255, 0.72);
    font: 400 12px/1.2 var(--wv2-font-brand);
}

.wizard-v2__plan-card--compact .wizard-v2__plan-card-features li:nth-child(n+4) {
    display: none;
}

/* Plan-phase orbit: explicit slots beat dialog nth-child */
.wizard-v2-choice--plan-phase .wizard-v2-choice__answer {
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
}

.wizard-v2-choice--plan-phase .wizard-v2-choice__answer[data-wv2-slot="tl"] { top: 16% !important; left: 0 !important; }
.wizard-v2-choice--plan-phase .wizard-v2-choice__answer[data-wv2-slot="tr"] { top: 16% !important; right: 0 !important; }
.wizard-v2-choice--plan-phase .wizard-v2-choice__answer[data-wv2-slot="ml"] {
    bottom: 44% !important;
    left: 2% !important;
    transform: rotate(-4deg) !important;
}
.wizard-v2-choice--plan-phase .wizard-v2-choice__answer[data-wv2-slot="mr"] {
    right: 1% !important;
    bottom: 42% !important;
    transform: rotate(3deg) !important;
}
.wizard-v2-choice--plan-phase .wizard-v2-choice__answer[data-wv2-slot="mb"] {
    top: auto !important;
    bottom: 30% !important;
    left: 50% !important;
    transform: translateX(-50%) rotate(-1deg) !important;
}

@keyframes wizard-v2-copy-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-v2-choice__question {
    min-height: 2.25em;
    font-size: clamp(21px, 5.4vw, 36px);
    line-height: 1.12;
}

/* Программный focus() на h1 при смене шага — без системной синей обводки (iOS/TG WebView) */
.wizard-v2 h1:focus,
.wizard-v2 h1:focus-visible,
.wizard-v2-choice__question:focus,
.wizard-v2-choice__question:focus-visible,
.wizard-v2__title:focus,
.wizard-v2__title:focus-visible {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

/*
 * Stage: layout height comes only from .scene (answers).
 * Mascot + plumbob are absolute overlays and never stretch containers.
 */
.wizard-v2-choice__stage {
    position: relative;
    z-index: 1;
    margin-top: 6px;
}

.wizard-v2-choice__scene {
    position: relative;
    z-index: 3;
    min-height: min(64dvh, 610px);
}

.wizard-v2-choice__mascot,
.wizard-v2-choice__mascot-fallback {
    position: absolute;
    z-index: 1;
    top: 54%;
    left: 50%;
    width: min(83vw, 429px);
    height: min(70dvh, 676px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wizard-v2-choice__mascot {
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
}

/* Обложка услуги поверх маскота/кристалла на шаге «Вам подходит» — 3D как в dems */
.wizard-v2-choice__service-cover-3d {
    position: absolute;
    top: 46%;
    left: 50%;
    z-index: 5;
    width: min(48vw, 214px);
    height: min(48vw, 214px);
    transform: translate3d(-50%, -52%, 2px);
    -webkit-transform: translate3d(-50%, -52%, 2px);
    perspective: 900px;
    -webkit-perspective: 900px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    isolation: isolate;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.wizard-v2-choice--plan-phase .wizard-v2-choice__service-cover-3d:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.wizard-v2-choice__service-cover-3d[hidden] {
    display: none !important;
}

.wizard-v2-choice__service-cover-stage {
    width: 100%;
    height: 100%;
    transform: rotateY(-16deg) rotateX(3deg) translateZ(1px);
    -webkit-transform: rotateY(-16deg) rotateX(3deg) translateZ(1px);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: wizard-v2-service-cover-float 4.2s ease-in-out infinite;
}

.wizard-v2-choice__service-cover {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        -14px 18px 42px rgba(0, 0, 0, 0.5),
        10px 28px 56px rgba(0, 0, 0, 0.38),
        inset 1px 0 0 rgba(255, 255, 255, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes wizard-v2-service-cover-float {
    0%, 100% { transform: rotateY(-16deg) rotateX(3deg) translateZ(1px) translateY(0); }
    50% { transform: rotateY(-16deg) rotateX(3deg) translateZ(1px) translateY(-8px); }
}

.wizard-v2-choice__mascot-fallback {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.35);
    font: 700 28px/1 var(--wv2-font-brand);
    background: transparent;
    border-radius: 0;
}

/* Plumbob: exact top is set from JS (positionPlumbob) to touch the drawn mascot head */
.wizard-v2-choice__gem-wrap {
    position: absolute;
    z-index: 4;
    top: 20%;
    left: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 96px;
    height: 108px;
    transform: translateX(-50%);
    pointer-events: none;
    animation: wizard-v2-plumbob-bob 3.6s ease-in-out infinite;
}

.wizard-v2-choice__plumbob {
    display: block;
    overflow: visible;
    width: 56px;
    height: 108px;
}

.wizard-v2-choice__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    animation: wizard-v2-plumbob-halo 2.6s ease-in-out infinite;
}

.wizard-v2-choice__halo--1 {
    width: 78px;
    height: 78px;
    transform: translate(-50%, -50%);
}

.wizard-v2-choice__halo--2 {
    width: 104px;
    height: 104px;
    transform: translate(-50%, -50%);
    animation-delay: 0.7s;
}

@keyframes wizard-v2-plumbob-bob {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes wizard-v2-plumbob-halo {
    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1.12);
    }
}

.wizard-v2-choice__answers {
    position: absolute;
    z-index: 3;
    inset: 0;
}

.wizard-v2-choice__answer {
    position: absolute;
    width: clamp(132px, 38%, 220px);
    animation: wizard-v2-answer-in 220ms ease both;
}

.wizard-v2-choice__answer:nth-child(1) { top: 18%; left: 0; }
.wizard-v2-choice__answer:nth-child(2) { top: 22%; right: 0; }
.wizard-v2-choice__answer:nth-child(3) { bottom: 26%; left: 0; }
.wizard-v2-choice__answer:nth-child(4) { right: 0; bottom: 20%; }
.wizard-v2-choice__answer:nth-child(5) { bottom: 4%; left: 50%; transform: translateX(-50%); }

.wizard-v2-choice__hint {
    margin: -18px 0 0;
    color: var(--wv2-muted);
    font: 400 12px/1.3 var(--wv2-font-brand);
    text-align: center;
}

.wizard-v2__result-card,
.wizard-v2__receipt {
    padding: 20px;
    background: linear-gradient(180deg, rgba(40, 119, 212, 0.28), rgba(8, 38, 94, 0.3));
    border: 1px solid var(--wv2-game-border);
    border-radius: var(--wv2-radius);
}

.wizard-v2__result-card.wizard-v2__result-card--plan {
    overflow: hidden;
    margin-bottom: 20px;
    padding: 18px 20px;
    background:
        radial-gradient(ellipse at 12% 30%, rgba(119, 246, 1, 0.28), transparent 42%),
        radial-gradient(ellipse at 88% 70%, rgba(146, 43, 242, 0.32), transparent 48%),
        #0a0c0a;
    border: 1px solid rgba(119, 246, 1, 0.32);
    border-radius: 22px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 28px rgba(119, 246, 1, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.wizard-v2__result-card.wizard-v2__result-card--plan::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -8%;
    width: 48%;
    height: 140%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(146, 43, 242, 0.35) 0%,
        transparent 68%
    );
    border-radius: 48% 52% 40% 60% / 55% 45% 58% 42%;
    filter: blur(18px);
    pointer-events: none;
}

.wizard-v2__result-card.wizard-v2__result-card--plan .wizard-v2__result-kicker {
    position: relative;
    z-index: 1;
    color: var(--wv2-accent);
    font: 700 11px/1.2 var(--wv2-font-brand);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wizard-v2__result-card.wizard-v2__result-card--plan strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 8px;
    color: #fff;
    font: 700 22px/1.15 var(--wv2-font-brand);
    text-transform: uppercase;
}

.wizard-v2__result-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--wv2-muted);
    font: 400 12px/1.3 var(--wv2-font-brand);
}

.wizard-v2__result-card strong {
    font: 700 20px/1.2 var(--wv2-font-brand);
}

.wizard-v2__receipt {
    margin: 0;
}

.wizard-v2__receipt > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.8fr) 1.2fr;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wizard-v2__receipt > div:last-child {
    border: 0;
}

.wizard-v2__receipt dt {
    color: var(--wv2-muted);
    font: 400 14px/1.3 var(--wv2-font-brand);
}

.wizard-v2__receipt dd {
    margin: 0;
    font: 700 14px/1.3 var(--wv2-font-brand);
    text-align: right;
}

/* ---------- Step 5: summary + calendar booking (v1 logic, v2 look) ---------- */

.wizard-v2__summary {
    padding-top: 0;
    padding-bottom: calc(96px + var(--safe-bottom));
}

/* Hero «Ваша заявка»: тёмная пилюля с glow + ледяная мишень справа навылет.
   Вертикальные отступы симметричны (иконка выступает на ~26% высоты плашки
   с каждой стороны), чтобы блок был по центру между шапкой и чеком. */
.wizard-v2__summary-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(120px, 30vw, 170px);
    margin: clamp(40px, 11vw, 60px) 0;
    padding: clamp(20px, 5vw, 32px) clamp(20px, 5.5vw, 36px);
    background:
        radial-gradient(ellipse 55% 80% at 62% 108%, rgba(64, 60, 224, 0.5), transparent 62%),
        radial-gradient(ellipse 42% 90% at 94% 82%, rgba(30, 160, 90, 0.55), transparent 64%),
        radial-gradient(ellipse 50% 60% at 40% 115%, rgba(120, 130, 255, 0.28), transparent 60%),
        #04060c;
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: clamp(28px, 8vw, 44px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wizard-v2__heading--summary {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    font-size: clamp(26px, 7vw, 44px);
    line-height: 1.12;
    letter-spacing: 0.01em;
}

.wizard-v2__summary-hero-icon {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    height: 151%;
    aspect-ratio: 850 / 934;
    transform: translateY(-50%);
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(60, 130, 255, 0.28));
    pointer-events: none;
}

.wizard-v2__receipt--summary {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
    padding: 18px 18px 8px;
    background:
        radial-gradient(ellipse at 18% 0%, rgba(125, 184, 240, 0.14), transparent 42%),
        radial-gradient(ellipse at 88% 100%, rgba(64, 60, 224, 0.22), transparent 52%),
        #05070e;
    border: 1px solid rgba(160, 200, 245, 0.22);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wizard-v2__summary-row {
    display: grid;
    grid-template-columns: minmax(96px, 0.85fr) 1.15fr;
    gap: 12px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-v2__summary-row:last-child {
    border-bottom: 0;
}

.wizard-v2__summary-row[hidden] {
    display: none;
}

.wizard-v2__summary-label {
    color: var(--wv2-muted);
    font: 400 13px/1.35 var(--wv2-font-brand);
}

.wizard-v2__summary-value {
    color: #fff;
    font: 700 13px/1.35 var(--wv2-font-brand);
    text-align: right;
    word-break: break-word;
}

.wizard-v2__upsell {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 16px;
    background: var(--wv2-glass);
    border: 1px solid rgba(160, 200, 245, 0.3);
    border-radius: 14px;
    cursor: pointer;
}

.wizard-v2__upsell[hidden] {
    display: none;
}

.wizard-v2__upsell-checkbox {
    margin-top: 3px;
    accent-color: var(--wv2-ice-2);
}

.wizard-v2__upsell-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wizard-v2__upsell-label {
    color: #fff;
    font: 700 14px/1.3 var(--wv2-font-brand);
}

.wizard-v2__upsell-desc {
    color: var(--wv2-muted);
    font: 400 12px/1.35 var(--wv2-font-brand);
}

/* Регистрация свойства, чтобы транзишн «заряда» бордера плавно
   анимировал стоп градиента (0% → 50% → 100%) */
@property --wv2-charge {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 0%;
}

.wizard-v2__booking {
    position: relative;
    display: grid;
    gap: 14px;
    margin-top: 4px;
    padding: 18px 16px;
    background:
        radial-gradient(ellipse 62% 44% at 50% 114%, rgba(64, 60, 224, 0.2), transparent 64%),
        #05070e;
    border-radius: 18px;
    transition: --wv2-charge 0.9s cubic-bezier(0.25, 0.8, 0.3, 1);
}

/* «Заряжающийся» бордер: пусто → 50% (выбран день) → 100% (выбрано время) */
.wizard-v2__booking::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(
        90deg,
        rgba(207, 232, 255, 0.9) 0%,
        rgba(125, 184, 240, 0.9) var(--wv2-charge, 0%),
        rgba(255, 255, 255, 0.14) var(--wv2-charge, 0%)
    );
    border-radius: inherit;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.wizard-v2__booking--charge-half {
    --wv2-charge: 50%;
}

.wizard-v2__booking--charge-full {
    --wv2-charge: 100%;
}

.wizard-v2__booking[hidden] {
    display: none;
}

.wizard-v2__section-hint,
.wizard-v2__section-label {
    margin: 0;
    color: var(--wv2-muted);
    font: 400 13px/1.35 var(--wv2-font-brand);
}

.wizard-v2__calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.wizard-v2__calendar-nav {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--wv2-glass);
    border: 1px solid var(--wv2-border);
    border-radius: 50%;
    cursor: pointer;
}

.wizard-v2__calendar-title {
    color: #fff;
    font: 700 14px/1.2 var(--wv2-font-brand);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wizard-v2__calendar-weekdays,
.wizard-v2__calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.wizard-v2__calendar-weekdays {
    margin-bottom: 6px;
}

.wizard-v2__calendar-weekdays span {
    text-align: center;
    color: var(--wv2-muted);
    font: 400 11px/1.2 var(--wv2-font-brand);
}

.wizard-v2__calendar-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    color: rgba(255, 255, 255, 0.18);
    background: transparent;
    border: 0;
    border-radius: 10px;
    font: 500 13px/1 var(--wv2-font-brand);
    overflow: hidden;
}

.wizard-v2__calendar-cell--work {
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wizard-v2__calendar-cell--with-engineers {
    aspect-ratio: auto;
    min-height: 56px;
    padding: 4px 2px 6px;
    justify-content: flex-start;
}

/* Ледяная точка-индикатор доступного дня */
.wizard-v2__calendar-cell--work::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 4px;
    height: 4px;
    transform: translateX(-50%);
    background: var(--wv2-ice-2);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(125, 184, 240, 0.8);
}

.wizard-v2__calendar-cell--with-engineers::after {
    display: none;
}

.wizard-v2__calendar-cell-day {
    line-height: 1;
    font-size: 12px;
}

.wizard-v2__calendar-engineers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    width: 100%;
}

.wizard-v2__calendar-engineer {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

.wizard-v2__calendar-engineer-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.wizard-v2__calendar-engineer-avatar--initial {
    font-size: 0.5rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-v2__calendar-engineer-name {
    font-size: 0.45rem;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.65);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wizard-v2__calendar-cell--selected .wizard-v2__calendar-engineer-name {
    color: color-mix(in srgb, var(--wv2-ice-ink) 80%, transparent);
}

.wizard-v2__calendar-cell--work:hover {
    background: rgba(125, 184, 240, 0.14);
}

.wizard-v2__calendar-cell--selected {
    color: var(--wv2-ice-ink);
    background: linear-gradient(135deg, var(--wv2-ice-1), var(--wv2-ice-2));
    font-weight: 700;
    box-shadow: 0 0 18px rgba(125, 184, 240, 0.45);
}

.wizard-v2__calendar-cell--selected::after {
    display: none;
}

/* Мини-plumbob над выбранным днём */
.wizard-v2__calendar-cell--selected::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 9px;
    height: 14px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #b7ff54, #2f9411);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    filter: drop-shadow(0 0 6px rgba(119, 246, 1, 0.6));
    pointer-events: none;
}

.wizard-v2__calendar-loading,
.wizard-v2__calendar-error {
    grid-column: 1 / -1;
    padding: 18px 0;
    color: var(--wv2-muted);
    font: 400 13px/1.3 var(--wv2-font-brand);
    text-align: center;
}

.wizard-v2__selected-day {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wizard-v2__selected-day[hidden] {
    display: none;
}

.wizard-v2__day-label {
    margin: 0;
    color: #fff;
    font: 700 15px/1.25 var(--wv2-font-brand);
    text-transform: capitalize;
}

.wizard-v2__engineers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wizard-v2__engineers[hidden] {
    display: none;
}

.wizard-v2__engineers-heading {
    width: 100%;
    color: var(--wv2-muted);
    font: 400 12px/1.3 var(--wv2-font-brand);
}

.wizard-v2__engineer-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(160, 200, 245, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: wv2-fade-slide 0.3s ease both;
}

.wizard-v2__engineer-avatar {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--wv2-ice-ink);
    background: linear-gradient(135deg, var(--wv2-ice-1), var(--wv2-ice-2));
    border-radius: 50%;
    font: 700 12px/1 var(--wv2-font-brand);
    object-fit: cover;
}

@keyframes wv2-fade-slide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-v2__engineer-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}

.wizard-v2__engineer-name {
    color: #fff;
    font: 700 12px/1.2 var(--wv2-font-brand);
}

.wizard-v2__engineer-nickname {
    color: var(--wv2-muted);
    font: 400 11px/1.2 var(--wv2-font-brand);
}

.wizard-v2__duration-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-v2__duration-btn {
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--wv2-glass);
    border: 1px solid var(--wv2-border);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.wizard-v2__duration-input {
    width: 64px;
    min-height: 40px;
    padding: 8px;
    color: #fff;
    text-align: center;
    color-scheme: dark;
    font: 700 16px/1 var(--wv2-font-brand);
    background: var(--wv2-glass);
    border: 1px solid var(--wv2-border);
    border-radius: 12px;
}

.wizard-v2__duration-unit {
    color: var(--wv2-muted);
    font: 400 13px/1 var(--wv2-font-brand);
}

.wizard-v2__duration-error,
.wizard-v2__slot-error {
    margin: 0;
    color: #ff8a8a;
    font: 400 12px/1.3 var(--wv2-font-brand);
}

.wizard-v2__duration-error[hidden] {
    display: none;
}

/* День/Ночь: скользящая капсула — днём лёд, ночью фиолетовая глубина */
.wizard-v2__period-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
}

.wizard-v2__period-toggle::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: linear-gradient(135deg, var(--wv2-ice-1), var(--wv2-ice-2));
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(125, 184, 240, 0.4);
    transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.3, 1.15), background 0.28s ease, box-shadow 0.28s ease;
}

.wizard-v2__period-toggle--night::before {
    transform: translateX(100%);
    background: linear-gradient(135deg, #4a3aa8, #140f38);
    box-shadow: 0 0 14px rgba(99, 82, 255, 0.5);
}

.wizard-v2__period-btn {
    position: relative;
    z-index: 1;
    min-height: 40px;
    color: rgba(255, 255, 255, 0.62);
    background: none;
    border: 0;
    font: 700 13px/1 var(--wv2-font-brand);
    cursor: pointer;
    transition: color 0.2s ease;
}

.wizard-v2__period-btn[data-period="night"]::before {
    content: "☾";
    margin-right: 6px;
    font-size: 14px;
}

.wizard-v2__period-btn--active[data-period="day"] {
    color: var(--wv2-ice-ink);
}

.wizard-v2__period-btn--active[data-period="night"] {
    color: #fff;
}

.wizard-v2__night-hint {
    margin: 0;
    color: #b9a8ff;
    font: 400 12px/1.35 var(--wv2-font-brand);
}

.wizard-v2__night-hint[hidden] {
    display: none;
}

.wizard-v2__slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.wizard-v2__slot-btn {
    min-height: 44px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font: 700 13px/1 var(--wv2-font-brand);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wizard-v2__slot-btn--busy {
    color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.015);
    border-color: rgba(255, 255, 255, 0.05);
    cursor: default;
}

.wizard-v2__slot-btn--active {
    color: var(--wv2-ice-ink);
    background: linear-gradient(135deg, var(--wv2-ice-1), var(--wv2-ice-2));
    border-color: transparent;
    box-shadow: 0 0 16px rgba(125, 184, 240, 0.5);
    animation: wv2-slot-pop 0.22s ease;
}

.wizard-v2__slot-btn--in-range:not(.wizard-v2__slot-btn--active) {
    color: #dceeff;
    background: rgba(125, 184, 240, 0.22);
    border-color: rgba(125, 184, 240, 0.45);
}

@keyframes wv2-slot-pop {
    0% { transform: scale(0.92); }
    60% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Игровая плашка-тост с plumbob слева */
.wizard-v2__booking-result {
    position: relative;
    margin: 0;
    padding: 12px 14px 12px 36px;
    color: #eaf4ff;
    background: linear-gradient(180deg, rgba(125, 184, 240, 0.16), rgba(64, 60, 224, 0.12));
    border: 1px solid rgba(160, 200, 245, 0.35);
    border-radius: 12px;
    font: 400 13px/1.35 var(--wv2-font-brand);
    animation: wv2-fade-slide 0.3s ease both;
}

.wizard-v2__booking-result::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 10px;
    height: 16px;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #b7ff54, #2f9411);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    filter: drop-shadow(0 0 6px rgba(119, 246, 1, 0.55));
}

.wizard-v2__booking-result[hidden] {
    display: none;
}

.wizard-v2__booking-result-label {
    display: block;
    margin-bottom: 4px;
    color: var(--wv2-ice-1);
    font: 700 11px/1.2 var(--wv2-font-brand);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wizard-v2__founder {
    margin-top: 16px;
    padding: 16px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(146, 43, 242, 0.28), transparent 48%),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(146, 43, 242, 0.35);
    border-radius: 18px;
}

.wizard-v2__founder[hidden] {
    display: none;
}

.wizard-v2__founder-card {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.wizard-v2__founder-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.wizard-v2__founder-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wizard-v2__founder-name {
    color: #fff;
    font: 700 16px/1.2 var(--wv2-font-brand);
}

.wizard-v2__founder-nickname {
    color: var(--wv2-muted);
    font: 400 12px/1.2 var(--wv2-font-brand);
}

.wizard-v2__founder-price {
    color: #fff;
    font: 700 13px/1.2 var(--wv2-font-brand);
}

.wizard-v2__founder-label {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font: 400 12px/1.35 var(--wv2-font-brand);
}

.wizard-v2__founder-slide {
    position: relative;
    height: 48px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.wizard-v2__founder-slide-text,
.wizard-v2__founder-slide-text-done {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: #fff;
    font: 700 13px/1 var(--wv2-font-brand);
    text-align: center;
    pointer-events: none;
}

.wizard-v2__founder-slide-text-done {
    opacity: 0;
}

.wizard-v2__founder-slide--done .wizard-v2__founder-slide-text {
    opacity: 0;
}

.wizard-v2__founder-slide--done .wizard-v2__founder-slide-text-done {
    opacity: 1;
    color: var(--wv2-ice-ink);
}

.wizard-v2__founder-slide--done {
    background: linear-gradient(135deg, var(--wv2-ice-1), var(--wv2-ice-2));
    border-color: rgba(207, 232, 255, 0.7);
    box-shadow: 0 0 18px rgba(125, 184, 240, 0.35);
}

.wizard-v2__founder-slide-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.wizard-v2__founder-slide--done .wizard-v2__founder-slide-thumb {
    background: var(--wv2-ice-ink);
}

.wizard-v2__founder-cancel {
    margin: 10px 0 0;
    text-align: center;
}

.wizard-v2__founder-cancel[hidden] {
    display: none;
}

.wizard-v2__founder-cancel-btn {
    padding: 0;
    color: var(--wv2-muted);
    background: none;
    border: 0;
    font: 400 13px/1.3 var(--wv2-font-brand);
    text-decoration: underline;
    cursor: pointer;
}

.wizard-v2__summary .wizard-v2__cta {
    margin-top: 18px;
}

.wizard-v2__summary .wizard-v2__cta--manager {
    margin-top: 10px;
}

.wizard-v2__offer {
    margin: 12px 0 0;
    color: var(--wv2-muted);
    font: 400 11px/1.4 var(--wv2-font-brand);
    text-align: center;
}

.wizard-v2__offer a {
    color: rgba(255, 255, 255, 0.72);
}

.wizard-v2__error {
    color: #ff8a8a;
    font: 400 13px/1.35 var(--wv2-font-brand);
}

.wizard-v2__live {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.wizard-v2__noscript {
    padding: 16px;
    color: #fff;
    font: 400 14px/1.4 var(--wv2-font-brand);
}

.wizard-v2__noscript a {
    color: var(--wv2-accent);
}

@keyframes wizard-v2-answer-in {
    from { opacity: 0; scale: 0.94; }
    to { opacity: 1; scale: 1; }
}

@media (max-width: 460px) {
    .wizard-v2 {
        padding-right: 12px;
        padding-left: 12px;
    }

    .wizard-v2-choice__scene {
        min-height: min(65dvh, 560px);
    }

    .wizard-v2-choice__answer {
        width: min(43%, 176px);
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-height: 680px) {
    .wizard-v2-choice__question {
        font-size: 19px;
    }

    .wizard-v2-choice__scene {
        min-height: 475px;
    }

    .wizard-v2-choice__mascot,
    .wizard-v2-choice__mascot-fallback {
        height: 507px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wizard-v2 *,
    .wizard-v2 *::before,
    .wizard-v2 *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .wizard-v2__cta--start::before {
        animation: none;
        background: rgba(57, 255, 20, 0.35);
    }

    .wizard-v2__cta--start .wizard-v2__cta-label {
        color: #fff;
    }
}
