/* ==========================================================================
   Колесо фортуны — публичная часть
   Все правила изолированы префиксом .wof
   ========================================================================== */

.wof {
    --wof-accent: #2f59d8;
    --wof-bg: #f6f3ee;
    --wof-text: #141414;
    --wof-muted: rgba(20, 20, 20, 0.6);
    --wof-line: rgba(20, 20, 20, 0.12);
    box-sizing: border-box;
    margin: 40px 0;
    padding: 48px 40px 44px;
    background: var(--wof-bg);
    border-radius: 28px;
    color: var(--wof-text);
    font-family: inherit;
    overflow: hidden;
}

.wof *,
.wof *::before,
.wof *::after {
    box-sizing: border-box;
}

.wof__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.wof__head {
    max-width: 720px;
    margin-bottom: 32px;
}

.wof__title {
    margin: 0 0 12px;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--wof-text);
}

.wof__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--wof-muted);
}

.wof__grid {
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

/* --- колесо --------------------------------------------------------------- */

.wof__wheel-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wof__wheel {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.wof__disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transform: rotate(0deg);
    transition: transform 5s cubic-bezier(0.15, 0.72, 0.16, 1);
    will-change: transform;
    filter: drop-shadow(0 18px 34px rgba(20, 20, 20, 0.16));
}

.wof__svg {
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
}

.wof__pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    z-index: 4;
    width: 34px;
    height: 46px;
    margin-left: -17px;
    background: var(--wof-accent);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    filter: drop-shadow(0 6px 8px rgba(20, 20, 20, 0.25));
}

.wof__pointer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.85;
}

.wof__hub {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 112px;
    height: 112px;
    margin: -56px 0 0 -56px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 6px solid #ffffff;
    border-radius: 50%;
    background: #141414;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(20, 20, 20, 0.3);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.wof__hub:hover:not(:disabled) {
    transform: scale(1.06);
    background: var(--wof-accent);
    box-shadow: 0 14px 30px rgba(20, 20, 20, 0.35);
}

.wof__hub:active:not(:disabled) {
    transform: scale(0.98);
}

.wof__hub:disabled,
.wof__hub.is-disabled {
    cursor: default;
    opacity: 1;
    background: #141414;
    border-color: #ffffff;
    box-shadow: 0 6px 16px rgba(20, 20, 20, 0.22);
}

.wof__hub--login {
    background: var(--wof-accent);
}

.wof__hub-text {
    display: block;
    max-width: 88px;
}

.wof__wheel.is-locked .wof__pointer {
    opacity: 0.55;
}

.wof__wheel.is-spinning .wof__disc {
    transition: transform 5s cubic-bezier(0.15, 0.72, 0.16, 1);
}

.wof__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--wof-line);
    border-radius: 50%;
    color: var(--wof-muted);
    font-size: 15px;
}

.wof__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.wof__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--wof-line);
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--wof-muted);
}

.wof__chip b {
    color: var(--wof-text);
}

.wof__countdown {
    margin-top: 14px;
    font-size: 14px;
    color: var(--wof-muted);
}

.wof__countdown b {
    color: var(--wof-text);
    font-variant-numeric: tabular-nums;
}

/* --- правая колонка ------------------------------------------------------- */

.wof__side {
    min-width: 0;
}

.wof__user {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
    margin-bottom: 14px;
}

.wof__user-hello {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.wof__user-bonus {
    font-size: 14px;
    color: var(--wof-muted);
}

.wof__user-bonus b {
    color: var(--wof-text);
}

.wof__status {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--wof-muted);
}

.wof__prizes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0 0 24px;
    padding: 22px 0;
    list-style: none;
    border-top: 1px solid var(--wof-line);
    border-bottom: 1px solid var(--wof-line);
}

.wof__prize {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 14px;
}

.wof__prize-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.12);
}

.wof__prize-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wof__prize-value {
    margin-left: auto;
    color: var(--wof-muted);
    white-space: nowrap;
    font-size: 13px;
}

.wof__last,
.wof__result {
    margin: 0 0 20px;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid var(--wof-line);
    border-radius: 18px;
}

.wof__result {
    border-color: var(--wof-accent);
    box-shadow: 0 12px 30px rgba(47, 89, 216, 0.12);
    animation: wof-result-in 0.45s ease both;
}

@keyframes wof-result-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wof__last-title,
.wof__result-title {
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wof-muted);
}

.wof__last-name,
.wof__result-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.wof__result-name {
    margin-bottom: 12px;
}

.wof__code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.wof__code {
    padding: 9px 14px;
    background: #f2efe9;
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--wof-text);
    user-select: all;
}

.wof__copy {
    padding: 9px 16px;
    border: 1px solid var(--wof-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--wof-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.wof__copy:hover {
    border-color: var(--wof-accent);
    color: var(--wof-accent);
}

.wof__copy.is-copied {
    background: var(--wof-accent);
    border-color: var(--wof-accent);
    color: #ffffff;
}

.wof__hint {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--wof-muted);
}

.wof__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--wof-accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wof__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(47, 89, 216, 0.28);
    color: #ffffff;
}

.wof__expiry {
    margin: 16px 0 0;
    padding: 10px 12px;
    border-left: 3px solid #f61f66;
    border-radius: 0 8px 8px 0;
    background: #fff0f5;
    color: #9d174d;
    font-size: 12px;
    line-height: 1.4;
}

.wof__expiry b {
    color: #f61f66;
}

.wof__rules {
    margin: 18px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--wof-muted);
}

/* --- адаптив -------------------------------------------------------------- */

@media (max-width: 1100px) {
    .wof__grid {
        grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
        gap: 36px;
    }

    .wof__title {
        font-size: 30px;
    }
}

@media (max-width: 880px) {
    .wof {
        padding: 36px 24px 32px;
        border-radius: 22px;
    }

    .wof__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .wof__wheel {
        max-width: 380px;
    }

    .wof__side {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .wof {
        margin: 24px 0;
        padding: 28px 18px 26px;
    }

    .wof__title {
        font-size: 26px;
    }

    .wof__subtitle {
        font-size: 14px;
    }

    .wof__svg text {
        font-size: 18px;
    }

    .wof__wheel {
        max-width: 300px;
    }

    .wof__hub {
        width: 92px;
        height: 92px;
        margin: -46px 0 0 -46px;
        border-width: 5px;
        font-size: 12px;
    }

    .wof__hub-text {
        max-width: 70px;
    }

    .wof__pointer {
        width: 28px;
        height: 38px;
        margin-left: -14px;
    }

    .wof__prizes {
        grid-template-columns: minmax(0, 1fr);
    }

    .wof__last,
    .wof__result {
        padding: 18px;
    }

    .wof__code {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wof__disc {
        transition-duration: 1.2s;
    }
}

/* ==========================================================================
   Popup-режим: тизер на главной, плавающая кнопка, модальное окно
   ========================================================================== */

.wof-teaser {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1120px;
    margin: 28px auto;
    padding: 34px 38px;
    background: var(--wof-bg, #f6f3ee);
    color: var(--wof-text, #141414);
    border-radius: 18px;
    overflow: hidden;
    box-sizing: border-box;
}

.wof-teaser *,
.wof-fab *,
.wof-mini *,
.wof-modal * {
    box-sizing: border-box;
}

.wof-teaser__content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.wof-teaser__eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wof-accent, #2f59d8);
}

.wof-teaser__title {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--wof-text, #141414);
}

.wof-teaser__subtitle {
    max-width: 610px;
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(20, 20, 20, 0.68);
}

.wof-teaser__prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0 20px;
    padding: 0;
    list-style: none;
}

.wof-teaser__prizes li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(20, 20, 20, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(20, 20, 20, 0.78);
}

.wof-teaser__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
}

.wof-teaser__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.wof-teaser__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #141414;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 20px rgba(20, 20, 20, 0.18);
}

.wof-teaser__cta > * {
    position: relative;
    z-index: 1;
}

.wof-teaser__cta::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -70%;
    z-index: 0;
    width: 45%;
    height: 220%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    transform: translateX(-180%) rotate(18deg);
    animation: wof-cta-shine 4.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes wof-cta-shine {
    0%, 55% {
        transform: translateX(-180%) rotate(18deg);
    }
    75%, 100% {
        transform: translateX(420%) rotate(18deg);
    }
}

.wof-teaser__cta-wheel {
    display: none;
    position: relative;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: conic-gradient(
        #ffffff 0 60deg,
        var(--wof-accent, #2f59d8) 60deg 120deg,
        #e8ded1 120deg 180deg,
        #ffffff 180deg 240deg,
        var(--wof-accent, #2f59d8) 240deg 300deg,
        #e8ded1 300deg 360deg
    );
}

.wof-teaser__cta-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: #141414;
}

.wof-teaser__cta:hover {
    transform: translateY(-1px);
    background: #2a2a2a;
}

.wof-teaser__cta--guest {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 11px 22px;
    border-radius: 14px;
    background: var(--wof-accent, #2f59d8);
    text-align: left;
}

.wof-teaser__cta--guest:hover {
    background: #24479c;
}

.wof-teaser__cta-title {
    font-size: 16px;
    line-height: 1.15;
}

.wof-teaser__cta-sub {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
}

.wof-teaser__cta[disabled] {
    opacity: 0.62;
    cursor: default;
    box-shadow: none;
}

.wof-teaser__cta[disabled]::after {
    display: none;
}

.wof-teaser__cta[disabled]:hover {
    transform: none;
    background: #141414;
}

.wof-teaser__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    font-size: 12px;
    color: rgba(20, 20, 20, 0.58);
}

.wof-teaser__meta b {
    color: var(--wof-text, #141414);
}

.wof-teaser__visual {
    position: relative;
    z-index: 0;
    flex: 0 0 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wof-teaser__wheel {
    position: relative;
    width: 220px;
    height: 220px;
    border: 10px solid #141414;
    border-radius: 50%;
    background: conic-gradient(
        #141414 0 60deg,
        var(--wof-accent, #2f59d8) 60deg 120deg,
        #e8ded1 120deg 180deg,
        #141414 180deg 240deg,
        var(--wof-accent, #2f59d8) 240deg 300deg,
        #e8ded1 300deg 360deg
    );
    box-shadow: 0 16px 34px rgba(20, 20, 20, 0.22);
}

.wof-teaser__wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    border: 6px solid #141414;
    border-radius: 50%;
    background: #ffffff;
}

.wof-teaser__wheel-center {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #141414;
    text-align: center;
}

.wof-mini-root {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
}

.wof-mini {
    position: relative;
    width: 308px;
    padding: 14px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 100% 0%, rgba(246, 31, 102, 0.22), transparent 42%),
        #0c0c0c;
    border: 2px solid #f61f66;
    border-radius: 16px;
    color: #ffffff;
    box-shadow:
        0 0 0 4px rgba(246, 31, 102, 0.16),
        0 22px 52px rgba(0, 0, 0, 0.42);
    animation: wof-mini-glow 4.2s ease-in-out infinite;
}

@keyframes wof-mini-glow {
    0%, 100% {
        box-shadow:
            0 0 0 4px rgba(246, 31, 102, 0.16),
            0 22px 52px rgba(0, 0, 0, 0.42);
    }
    50% {
        box-shadow:
            0 0 0 7px rgba(246, 31, 102, 0.24),
            0 24px 58px rgba(0, 0, 0, 0.48);
    }
}

.wof-mini__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.wof-mini__head-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.wof-mini__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease;
}

.wof-mini__close:hover {
    background: #f61f66;
}

.wof-mini [hidden] {
    display: none !important;
}

.wof-mini__label {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 4px;
    background: #f61f66;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-1.5deg);
}

.wof-mini__wheel {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 2px solid #f61f66;
    border-radius: 50%;
    background: conic-gradient(
        #f61f66 0 60deg,
        #141414 60deg 120deg,
        #ff8fb3 120deg 180deg,
        #f61f66 180deg 240deg,
        #141414 240deg 300deg,
        #ff8fb3 300deg 360deg
    );
    box-shadow: 0 0 14px rgba(246, 31, 102, 0.35);
}

.wof-mini__wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #ffffff;
}

.wof-mini__guest {
    margin: 2px 0 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.wof-mini__balance {
    margin: 2px 0 2px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.2;
}

.wof-mini__balance b {
    color: #f61f66;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -0.03em;
    vertical-align: -2px;
}

.wof-mini__status {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.35;
}

.wof-mini__timer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.3;
}

.wof-mini__timer b {
    color: #f61f66;
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wof-mini__btn {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 11px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #f61f66;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.18s ease, background 0.18s ease;
}

.wof-mini__btn:hover {
    transform: translateY(-1px);
    background: #ff4d86;
}

.wof-mini__btn > * {
    position: relative;
    z-index: 1;
}

.wof-mini__btn::after {
    content: '';
    position: absolute;
    top: -60%;
    left: -70%;
    z-index: 0;
    width: 45%;
    height: 220%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
    transform: translateX(-180%) rotate(18deg);
    animation: wof-cta-shine 4.2s ease-in-out infinite;
    pointer-events: none;
}

body.wof-modal-open .wof-mini-root {
    opacity: 0;
    pointer-events: none;
}

.wof-mini-root.is-collapsed .wof-mini {
    display: none;
}

.wof-mini-fab {
    display: none;
    position: relative;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid #f61f66;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(246, 31, 102, 0.3), transparent 55%),
        #0c0c0c;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(246, 31, 102, 0.16),
        0 16px 36px rgba(0, 0, 0, 0.42);
    animation: wof-mini-glow 4.2s ease-in-out infinite;
    transition: transform 0.18s ease;
}

.wof-mini-fab::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    border: 2px solid #0c0c0c;
    border-radius: 50%;
    background: #f61f66;
}

.wof-mini-fab:hover {
    transform: translateY(-2px) scale(1.03);
}

.wof-mini-root.is-collapsed .wof-mini-fab {
    display: flex;
}

.wof-mini-fab__wheel {
    position: relative;
    width: 36px;
    height: 36px;
    border: 2px solid #f61f66;
    border-radius: 50%;
    background: conic-gradient(
        #f61f66 0 60deg,
        #141414 60deg 120deg,
        #ff8fb3 120deg 180deg,
        #f61f66 180deg 240deg,
        #141414 240deg 300deg,
        #ff8fb3 300deg 360deg
    );
}

.wof-mini-fab__wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: #ffffff;
}

.wof-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px 12px 12px;
    border: 0;
    border-radius: 999px;
    background: #141414;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(20, 20, 20, 0.28);
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.wof-fab:hover {
    transform: translateY(-2px);
    background: #2a2a2a;
}

.wof-fab__wheel {
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: conic-gradient(
        #ffffff 0 60deg,
        var(--wof-accent, #2f59d8) 60deg 120deg,
        #e8ded1 120deg 180deg,
        #ffffff 180deg 240deg,
        var(--wof-accent, #2f59d8) 240deg 300deg,
        #e8ded1 300deg 360deg
    );
}

.wof-fab__wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #141414;
}

.wof-fab__text {
    white-space: nowrap;
}

.wof-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
}

.wof-modal.is-open {
    display: block;
}

.wof-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 12, 0.58);
    backdrop-filter: blur(3px);
}

.wof-modal__dialog {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1040px;
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: 18px;
    background: var(--wof-bg, #f6f3ee);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wof-modal__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.wof-modal .wof {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.wof-modal .wof__inner {
    max-width: none;
    padding: 34px 38px 30px;
}

.wof-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #141414;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(20, 20, 20, 0.22);
    transition: background 0.18s ease, transform 0.18s ease;
}

.wof-modal__close:hover {
    background: var(--wof-accent, #2f59d8);
    transform: scale(1.04);
}

body.wof-modal-open {
    overflow: hidden;
}

body.wof-modal-open .wof-fab {
    opacity: 0;
    pointer-events: none;
}

.wof__guest {
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid rgba(47, 89, 216, 0.24);
    border-radius: 14px;
    background: #eef2fb;
}

.wof__guest-title {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #24479c;
}

.wof__guest-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(20, 20, 20, 0.68);
}

.wof__guest .wof__cta {
    margin-top: 14px;
    text-decoration: none;
}

@media (max-width: 880px) {
    .wof-teaser {
        gap: 20px;
        padding: 28px 26px;
    }

    .wof-teaser__title {
        font-size: 28px;
    }

    .wof-teaser__visual {
        flex-basis: 180px;
    }

    .wof-teaser__wheel {
        width: 170px;
        height: 170px;
    }

    .wof-teaser__wheel::before {
        width: 66px;
        height: 66px;
        margin: -33px 0 0 -33px;
    }
}

@media (max-width: 768px) {
    /* На мобильных и планшетах тизер — только кнопка с иконкой колеса. */
    .wof-teaser {
        display: block;
        margin: 16px;
        padding: 0;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .wof-teaser__content {
        display: block;
    }

    .wof-teaser__content > :not(.wof-teaser__actions) {
        display: none;
    }

    .wof-teaser__visual {
        display: none;
    }

    .wof-teaser__actions {
        display: block;
    }

    .wof-teaser__cta {
        width: 100%;
        max-width: 420px;
        min-height: 56px;
        margin: 0 auto;
        padding: 0 22px;
        font-size: 15px;
        box-shadow: 0 10px 24px rgba(20, 20, 20, 0.22);
    }

    .wof-teaser__cta-wheel {
        display: inline-block;
    }

    .wof-teaser__cta--guest {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 20px;
        border-radius: 999px;
        text-align: center;
    }

    .wof-teaser__cta--guest .wof-teaser__cta-sub {
        display: none;
    }

    .wof-teaser__cta-title {
        font-size: 15px;
        line-height: 1.2;
    }
}

@media (max-width: 640px) {
    .wof-modal__dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 14px;
    }

    .wof-modal .wof__inner {
        padding: 22px 16px 20px;
    }

    .wof-modal__close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 23px;
    }

    .wof-fab {
        right: 12px;
        bottom: 12px;
        padding: 10px 14px 10px 10px;
        font-size: 13px;
    }

    .wof-mini-root {
        right: 12px;
        bottom: 12px;
    }

    .wof-mini {
        width: calc(100vw - 24px);
        max-width: 360px;
        padding: 12px;
    }

    .wof-mini-fab {
        width: 56px;
        height: 56px;
    }

    .wof-mini-fab__wheel {
        width: 32px;
        height: 32px;
    }

    .wof-mini__label {
        font-size: 9px;
    }

    .wof-mini__balance b {
        font-size: 23px;
    }

    .wof-mini__wheel {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .wof-mini__btn {
        min-height: 42px;
        font-size: 13px;
    }

    .wof-fab__wheel {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wof-teaser__cta::after,
    .wof-mini__btn::after {
        animation: none;
        opacity: 0;
    }

    .wof-mini,
    .wof-mini-fab {
        animation: none;
    }

    .wof-mini__close,
    .wof-mini-fab {
        transition: none;
    }

    .wof-fab,
    .wof-teaser__cta,
    .wof-modal__close {
        transition: none;
    }
}

@media print {
    .wof-fab,
    .wof-mini-root,
    .wof-modal {
        display: none !important;
    }
}
