/* Колесо удачи (dz_wheel.tpl.html, js/wheel.js). Цвета и шрифт - как у окна
   «Выберите город» (.cty-* в css/header.css). Окно и кнопку-подарок скрипт
   переносит в body. */
.dzwh-ov { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100040; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: rgba(13, 35, 56, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; font-family: "Open Sans", Arial, sans-serif; }
.dzwh-ov[hidden] { display: none; }
.dzwh-ov.is-on { opacity: 1; }
.dzwh-ov *, .dzwh-tab * { box-sizing: border-box; }

.dzwh-box { position: relative; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: center; width: 100%; max-width: 860px; max-height: calc(100vh - 32px); overflow: auto; padding: 30px 32px; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px rgba(13, 35, 56, .35); color: #123f63; transform: translateY(14px) scale(.97); transition: transform .25s; }
.dzwh-box::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 46%; border-radius: 22px 0 0 22px; background: radial-gradient(circle at 50% 50%, #eaf4fb 0, #f6fafd 60%, rgba(255, 255, 255, 0) 75%); pointer-events: none; }
.dzwh-ov.is-on .dzwh-box { transform: none; }

.dzwh-x { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: none; color: #4a6f8a; cursor: pointer; }
.dzwh-x:hover { background: #eef5fb; color: #123f63; }

.dzwh-wheel { position: relative; z-index: 1; }
.dzwh-wheel__in { position: relative; width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 1 / 1; filter: drop-shadow(0 14px 22px rgba(13, 35, 56, .28)); }
.dzwh-svg { display: block; width: 100%; height: 100%; }
.dzwh-rot { transform: rotate(0deg); }
.dzwh-ov.is-spin .dzwh-rot { transition: transform 5.6s cubic-bezier(.12, .62, .1, 1); }
.dzwh-dot { animation: dzwhBlink 1.2s steps(1, end) infinite; }
.dzwh-dot--b { animation-delay: .6s; }
.dzwh-ov.is-spin .dzwh-dot { animation-duration: .3s; }
.dzwh-ov.is-spin .dzwh-dot--b { animation-delay: .15s; }
@keyframes dzwhBlink { 0% { opacity: 1; } 50% { opacity: .35; } }

.dzwh-side { position: relative; z-index: 1; min-width: 0; }
.dzwh-step[hidden] { display: none; }
.dzwh-step.is-in { animation: dzwhIn .45s ease both; }
@keyframes dzwhIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.dzwh-test { margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; background: #fff6dd; color: #8a5a00; font-size: 12.5px; }
.dzwh-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #eaf4fb; color: #1b6f9c; font-size: 13px; font-weight: 700; }
.dzwh-kicker--win { background: #fff3d1; color: #a26a00; }
.dzwh-title { margin-top: 14px; padding-right: 30px; font-size: 30px; font-weight: 800; line-height: 1.15; color: #123d60; }
.dzwh-sub { margin-top: 8px; color: #4f6f86; font-size: 15px; line-height: 1.5; }

.dzwh-field { display: block; margin-top: 18px; }
.dzwh-field__lbl { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #3d5f78; }
.dzwh-input { display: block; width: 100%; height: 50px; padding: 0 14px; border: 1px solid #d6e2ec; border-radius: 12px; background: #f8fbfd; color: #123f63; font: inherit; font-size: 16px; outline: none; }
.dzwh-input:focus { border-color: #1b6f9c; background: #fff; box-shadow: 0 0 0 3px rgba(27, 111, 156, .15); }
.dzwh-input.is-err { border-color: #e0393e; box-shadow: 0 0 0 3px rgba(224, 57, 62, .12); }
.dzwh-pnote { margin-top: 6px; color: #7c8ea0; font-size: 12.5px; line-height: 1.4; }
.dzwh-err { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: #fdeeee; color: #b42318; font-size: 13.5px; line-height: 1.4; }
.dzwh-err[hidden] { display: none; }

.dzwh-btn { display: flex; width: 100%; height: 54px; margin-top: 18px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #2a86bd, #1b6f9c); color: #fff !important; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none !important; cursor: pointer; box-shadow: 0 8px 18px rgba(27, 111, 156, .32); transition: transform .15s, box-shadow .15s; }
.dzwh-btn:hover { background: linear-gradient(180deg, #2f92cd, #1d78a8); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(27, 111, 156, .38); }
.dzwh-btn:disabled { opacity: .7; cursor: default; transform: none; }
.dzwh-btn[data-wh-spin]:not(:disabled) { animation: dzwhPulse 2.2s ease-in-out infinite; }
@keyframes dzwhPulse { 0%, 100% { box-shadow: 0 8px 18px rgba(27, 111, 156, .32); } 50% { box-shadow: 0 8px 18px rgba(27, 111, 156, .32), 0 0 0 7px rgba(42, 134, 189, .16); } }
.dzwh-link { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 0; background: none; color: #1b6f9c; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.dzwh-link:hover { text-decoration: underline; }
.dzwh-rules { margin-top: 12px; color: #8b9cad; font-size: 12px; line-height: 1.45; }

.dzwh-code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 18px; padding: 14px 16px; border: 2px dashed #f5b82e; border-radius: 14px; background: #fffaf0; }
.dzwh-code__lbl { flex: 1 0 100%; color: #8a6a2a; font-size: 12.5px; font-weight: 600; }
.dzwh-code__val { flex: 1 1 auto; min-width: 0; font-family: Consolas, "Courier New", monospace; font-size: 26px; font-weight: 800; letter-spacing: 2px; color: #123d60; word-break: break-all; }
.dzwh-copy { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid #cfe0ec; border-radius: 10px; background: #fff; color: #1b6f9c; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.dzwh-copy:hover { border-color: #1b6f9c; }
.dzwh-copy.is-ok { border-color: #2e9d5a; color: #2e9d5a; }
.dzwh-note { margin-top: 10px; color: #4f6f86; font-size: 13.5px; line-height: 1.45; }
.dzwh-note b { color: #123d60; }

/* кнопка-подарок в левом нижнем углу (справа - виджет «Менеджер сайта»); ниже полосы cookie (.cc, 1100) */
.dzwh-tab { position: fixed; left: 18px; bottom: 18px; z-index: 1000; display: flex; align-items: center; font-family: "Open Sans", Arial, sans-serif; animation: dzwhTabIn .4s ease both; }
.dzwh-tab[hidden] { display: none; }
@keyframes dzwhTabIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dzwh-tab__btn { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #2a86bd, #1b6f9c); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(13, 35, 56, .3); }
.dzwh-tab__btn:hover { background: linear-gradient(180deg, #2f92cd, #1d78a8); }
.dzwh-tab__ico { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: #f5b82e; color: #123d60; animation: dzwhWiggle 3s ease-in-out infinite; }
@keyframes dzwhWiggle { 0%, 80%, 100% { transform: none; } 85% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 95% { transform: rotate(-6deg); } }
.dzwh-tab__t { white-space: nowrap; }
.dzwh-tab__t b { font-family: Consolas, "Courier New", monospace; letter-spacing: 1px; }
.dzwh-tab__x { display: flex; width: 24px; height: 24px; margin-left: -10px; align-self: flex-start; align-items: center; justify-content: center; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #4a6f8a; color: #fff; cursor: pointer; }
.dzwh-tab__x:hover { background: #123d60; }

@media (max-width: 760px) {
	.dzwh-ov { align-items: flex-end; padding: 0; }
	.dzwh-box { grid-template-columns: 1fr; gap: 6px; max-height: 100vh; max-height: 100dvh; padding: 18px 18px 20px; border-radius: 22px 22px 0 0; transform: translateY(40px); }
	.dzwh-box::before { width: auto; right: 0; bottom: auto; height: 300px; border-radius: 22px 22px 0 0; }
	.dzwh-wheel__in { max-width: min(300px, 74vw, 42vh); }
	.dzwh-title { margin-top: 10px; font-size: 24px; text-align: center; padding: 0; }
	.dzwh-sub { font-size: 14px; text-align: center; }
	.dzwh-kicker { display: flex; width: max-content; max-width: 100%; margin: 0 auto; }
	.dzwh-rules { text-align: center; }
	.dzwh-code__val { font-size: 22px; }
	.dzwh-tab { left: 10px; bottom: 10px; }
	.dzwh-tab__btn { height: 48px; padding-right: 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
	.dzwh-dot, .dzwh-tab__ico, .dzwh-btn[data-wh-spin] { animation: none !important; }
}
