/* ===== Окно «Работа» — приглашение в команду ===== */
.wjob { width: min(420px, calc(100vw - 28px)); max-height: none; margin: auto; padding: 0; border: 0; overflow: visible; color: #fff; background: transparent; }
.wjob::backdrop { background: rgb(5 7 14 / 0.720); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wjob[open] { animation: wjob-in 0.450s cubic-bezier(0.230, 1, 0.320, 1); }
@keyframes wjob-in { from { transform: translateY(30px) scale(0.950); opacity: 0; } }

.wjob__in { position: relative; display: grid; gap: 12px; margin-top: 100px; padding: 104px 18px 20px; border-radius: 30px; isolation: isolate; overflow: visible;
  background:
    radial-gradient(120% 55% at 50% 0%, rgb(92 200 255 / 0.300), transparent 65%),
    radial-gradient(80% 45% at 100% 100%, rgb(155 109 255 / 0.250), transparent 70%),
    linear-gradient(180deg, #1a2350, #0d1226 70%);
  box-shadow: inset 0 0 0 1.500px rgb(140 210 255 / 0.300), inset 0 1px 0 rgb(255 255 255 / 0.200), 0 30px 70px -20px #000, 0 0 60px -20px rgb(47 140 255 / 0.600); }
/* сияние за картинкой и снежинки */
.wjob__glow { position: absolute; left: 50%; top: -70px; z-index: -1; width: 300px; height: 220px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(122 240 255 / 0.550), rgb(47 140 255 / 0.250) 55%, transparent); filter: blur(10px); animation: wjob-glow 3s ease-in-out infinite alternate; }
@keyframes wjob-glow { to { transform: translateX(-50%) scale(1.120); opacity: 0.750; } }
.wjob__snow { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0.700;
  background: radial-gradient(1.500px 1.500px at 12% 22%, #fff, transparent), radial-gradient(2px 2px at 82% 14%, #fff, transparent), radial-gradient(1.500px 1.500px at 68% 40%, #ffffffaa, transparent),
    radial-gradient(2px 2px at 24% 62%, #ffffffaa, transparent), radial-gradient(1.500px 1.500px at 90% 70%, #fff, transparent), radial-gradient(2px 2px at 8% 88%, #ffffffcc, transparent),
    radial-gradient(1.500px 1.500px at 50% 94%, #ffffffaa, transparent); }
.wjob__art { position: absolute; left: 50%; top: -100px; width: min(290px, 72%); transform: translateX(-50%); filter: drop-shadow(0 16px 24px rgb(0 0 0 / 0.600));
  pointer-events: none; animation: wjob-float 4s ease-in-out infinite alternate; }
@keyframes wjob-float { to { transform: translateX(-50%) translateY(-6px) rotate(-1.500deg); } }
.wjob__close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 14px; cursor: pointer;
  color: #cfd8ee; background: rgb(10 14 32 / 0.700); box-shadow: inset 0 0 0 1.500px rgb(92 200 255 / 0.450); }
.wjob__close svg { width: 17px; height: 17px; }
.wjob__close:hover { color: #fff; box-shadow: inset 0 0 0 1.500px #7af0ff; }

.wjob__badge { justify-self: center; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; font: 800 12px/1 var(--font-title); color: #6dffb0;
  background: rgb(19 179 111 / 0.150); box-shadow: inset 0 0 0 1px rgb(61 220 138 / 0.450); }
.wjob__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5dff9e; box-shadow: 0 0 8px #5dff9e; animation: wjob-dot 1.400s ease-in-out infinite; }
@keyframes wjob-dot { 50% { opacity: 0.300; } }
.wjob__title { margin: 0; font: 900 26px/1.150 var(--font-title); text-align: center; letter-spacing: -0.010em; text-shadow: 0 3px 14px rgb(0 0 0 / 0.500); }
.wjob__title em { display: block; font-style: normal; background: linear-gradient(90deg, #8fe9ff, #b98cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wjob__sub { margin: -4px 0 4px; font: 700 14px/1.400 var(--font-title); color: #aab6d6; text-align: center; }

.wjob__list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.wjob__list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px;
  background: linear-gradient(90deg, rgb(47 140 255 / 0.140), rgb(255 255 255 / 0.030)); box-shadow: inset 0 0 0 1px rgb(140 210 255 / 0.180);
  animation: wjob-li 0.500s cubic-bezier(0.230, 1, 0.320, 1) backwards; }
.wjob__list li:nth-child(2) { animation-delay: 0.080s; }
.wjob__list li:nth-child(3) { animation-delay: 0.160s; }
@keyframes wjob-li { from { transform: translateX(-16px); opacity: 0; } }
.wjob__list img { flex: 0 0 auto; width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 6px #0008); }
.wjob__list span { display: grid; gap: 3px; min-width: 0; }
.wjob__list b { font: 800 15px/1.250 var(--font-title); color: #fff; }
.wjob__list small { font: 600 12px/1.300 var(--font-body, inherit); color: #9aa6c6; }

.wjob__go { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; height: 60px; margin-top: 6px; border-radius: 19px;
  text-decoration: none; font: 900 18px/1 var(--font-title); color: #fff;
  background: linear-gradient(180deg, #4ab8ff, #2a7fe0 60%, #2f6dff); box-shadow: inset 0 1px 0 #ffffff80, inset 0 -5px 0 #0003, 0 14px 30px -10px #2f8cff; transition: transform 0.150s, filter 0.200s; }
.wjob__go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.450), transparent); animation: wjob-shine 2.600s ease-in-out infinite; }
@keyframes wjob-shine { 0%, 55% { left: -40%; } 100% { left: 130%; } }
.wjob__go svg { width: 22px; height: 22px; fill: currentColor; }
.wjob__go:hover { filter: brightness(1.080); }
.wjob__go:active { transform: scale(0.970); }
.wjob__note { margin: -2px 0 0; font: 600 12px/1.300 var(--font-body, inherit); color: #7d88a6; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .wjob[open], .wjob__glow, .wjob__art, .wjob__badge::before, .wjob__list li, .wjob__go::after { animation: none; }
}

/* ===== Окно «Установка приложения» (на основе окна «Работа») ===== */
.wjob--app .wjob__in { margin-top: 0; padding-top: 0; gap: 11px; overflow: hidden; }
/* баннер с телефоном: телефон «выглядывает» снизу, видна верхняя часть настоящего сайта */
.apx__hero { position: relative; height: 230px; margin: 0 -18px 2px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 50% 85%, rgb(122 240 255 / 0.450), transparent 70%),
    radial-gradient(50% 60% at 12% 20%, rgb(255 92 214 / 0.350), transparent 70%),
    linear-gradient(160deg, #3d6bff 0%, #6a3dff 55%, #2a1c6e 100%); }
.apx__hero .wjob__snow { z-index: 0; border-radius: 0; opacity: 0.900; }
/* мягкий переход баннера в карточку */
.apx__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 56px; pointer-events: none;
  background: linear-gradient(180deg, transparent, #1a2350); }
.apx__ring { position: absolute; left: 50%; top: 58%; z-index: 0; width: 330px; height: 330px; translate: -50% -50%; border-radius: 50%;
  border: 1.500px solid rgb(255 255 255 / 0.180); box-shadow: 0 0 0 34px rgb(255 255 255 / 0.050), 0 0 0 70px rgb(255 255 255 / 0.030); }
/* телефон: металлическая рамка → чёрная кайма → экран со строкой состояния и бликом стекла */
.apx__phone { position: absolute; left: 50%; top: 24px; z-index: 1; width: 196px; padding: 2.500px; border-radius: 40px; translate: -50% 0; rotate: -6deg;
  background: linear-gradient(135deg, #f1f3fa 0%, #9aa0b4 18%, #3b3f4d 42%, #8c92a6 70%, #e4e7f0 100%);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.450), 0 30px 50px -14px rgb(8 4 36 / 0.900), 0 10px 20px -8px rgb(0 0 0 / 0.600);
  animation: apx-phone 5s ease-in-out infinite alternate; }
@keyframes apx-phone { to { translate: -50% -6px; rotate: -4.500deg; } }
/* боковые кнопки: громкость слева, питание справа */
.apx__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #5d6273, #c9cdd9); }
.apx__btn--a { left: -2.500px; top: 88px; height: 26px; }
.apx__btn--b { left: -2.500px; top: 122px; height: 26px; }
.apx__btn--p { right: -2.500px; top: 104px; height: 44px; background: linear-gradient(90deg, #c9cdd9, #5d6273); }
.apx__scr { position: relative; overflow: hidden; border-radius: 37.500px; border: 6px solid #050508; background: #0b0c12;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.060); }
.apx__scr img { display: block; width: 100%; aspect-ratio: 390 / 820; object-fit: cover; object-position: top; }
/* строка состояния, как на настоящем телефоне */
.apx__bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 14px 0 18px; background: #111213; color: #fff; }
.apx__bar b { font: 700 9.500px/1 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: 0.020em; }
.apx__isl { position: absolute; left: 50%; top: 5px; width: 50px; height: 14px; translate: -50% 0; border-radius: 10px; background: #000;
  box-shadow: inset 7px 0 0 -5px #1b2440; }
.apx__sig { display: flex; align-items: center; gap: 3px; }
.apx__sig svg { width: 10px; height: 8px; fill: #fff; }
.apx__bat { position: relative; display: block; width: 15px; height: 7.500px; border-radius: 2.500px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.550); }
.apx__bat::after { content: ""; position: absolute; right: -2.500px; top: 2.500px; width: 1.500px; height: 2.500px; border-radius: 0 1px 1px 0; background: rgb(255 255 255 / 0.550); }
.apx__bat i { position: absolute; left: 1.500px; top: 1.500px; bottom: 1.500px; width: 70%; border-radius: 1px; background: #fff; }
/* блик на стекле */
.apx__glare { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.220) 0%, rgb(255 255 255 / 0.060) 28%, transparent 42%, transparent 70%, rgb(255 255 255 / 0.050) 100%); }
/* значок приложения рядом с телефоном */
.apx__icon { position: absolute; right: calc(50% - 150px); top: 104px; z-index: 2; width: 66px; height: 66px; border-radius: 18px; rotate: 10deg;
  box-shadow: inset 0 0 0 1px #fff4, 0 14px 26px -8px #000c, 0 0 30px -6px #2ee6ff; animation: apx-icon 3.200s ease-in-out infinite alternate; }
@keyframes apx-icon { to { translate: 0 -8px; rotate: 4deg; } }
.apx__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 17px; background: rgb(6 9 22 / 0.700);
  box-shadow: inset 0 0 0 1px rgb(140 210 255 / 0.180); }
.apx__tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 0; border-radius: 13px; cursor: pointer;
  font: 800 15px/1 var(--font-title); color: #8f9bbd; background: transparent; transition: color 0.200s, background 0.200s, box-shadow 0.200s; }
.apx__tabs button svg { width: 19px; height: 19px; fill: currentColor; }
.apx__tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #2f5fd8, #2343a8);
  box-shadow: inset 0 1px 0 #ffffff40, 0 6px 16px -6px #2f8cff; }
.apx__tabs button:not([aria-selected="true"]):hover { color: #fff; }
.apx__steps { position: relative; display: grid; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
/* пунктир, соединяющий шаги */
.apx__steps::before { content: ""; position: absolute; left: 22px; top: 26px; bottom: 26px; border-left: 2px dashed rgb(140 210 255 / 0.250); }
.apx__steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 4px; font: 700 14px/1.400 var(--font-title); color: #c9d2ec;
  animation: wjob-li 0.450s cubic-bezier(0.230, 1, 0.320, 1) backwards; animation-delay: calc(var(--i) * 0.060s); }
.apx__steps b { color: #fff; }
.apx__ico { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 2px; border-radius: 13px;
  color: #8fe9ff; background: linear-gradient(180deg, #1d2b5c, #141c3d); box-shadow: inset 0 0 0 1px rgb(140 210 255 / 0.300), 0 4px 10px -4px #000; }
.apx__ico svg { width: 20px; height: 20px; fill: currentColor; }
.apx__steps li:last-child .apx__ico { color: #6dffb0; box-shadow: inset 0 0 0 1px rgb(61 220 138 / 0.450), 0 4px 10px -4px #000; }
.apx__go { width: 100%; border: 0; cursor: pointer; }
.apx__go:disabled { cursor: default; filter: saturate(0.300) brightness(0.700); }
.apx__go:disabled::after { display: none; }
.wjob--app[data-os="ios"] .apx__go { background: linear-gradient(180deg, #2b3561, #1d2547); box-shadow: inset 0 1px 0 #ffffff30, inset 0 0 0 1px rgb(140 210 255 / 0.250); }
.wjob--app[data-os="ios"] .apx__go::after { display: none; }
#apx-note:empty { display: none; }
#apx-note { color: #9fe3ff; font-weight: 700; }
#apx-note.is-hint { animation: apx-hint 0.600s; }
@keyframes apx-hint { 30% { transform: scale(1.050); color: #fff; } }
@media (max-height: 760px) {
  .apx__hero { height: 180px; }
  .apx__phone { width: 168px; }
  .apx__icon { top: 80px; width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .apx__phone, .apx__icon { animation: none; } }

/* ===== Окно промокода (на основе окна «Работа») ===== */
.wjob--promo .wjob__title { margin-top: 2px; }
.pmod__field { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 16px; border-radius: 17px; background: rgb(6 9 22 / 0.850);
  box-shadow: inset 0 0 0 1.500px rgb(140 210 255 / 0.250); transition: box-shadow 0.200s; }
.pmod__field:focus-within { box-shadow: inset 0 0 0 2px #5cc8ff, 0 0 20px -6px #5cc8ff; }
.pmod__field svg { flex: 0 0 auto; width: 24px; height: 24px; color: #8fe0ff; }
.pmod__field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; text-align: center; color: #fff;
  font: 900 20px/1 var(--font-title); letter-spacing: 0.080em; }
.pmod__field input::placeholder { font-size: 16px; font-weight: 700; letter-spacing: 0; color: #5d6886; }
.pmod__go { border: 0; cursor: pointer; width: 100%; }
.pmod__go:disabled { cursor: default; filter: saturate(0.300) brightness(0.650); }
.pmod__go:disabled::after { display: none; }
.pmod__msg { margin: 0; font: 800 14px/1.350 var(--font-title); text-align: center; }
.pmod__msg:empty { display: none; }
.pmod__msg.is-ok { padding: 10px 12px; border-radius: 14px; color: #6dffb0; background: rgb(19 179 111 / 0.120); box-shadow: inset 0 0 0 1px rgb(61 220 138 / 0.400); }
.pmod__msg.is-bad { color: #ff8a8a; }
.wjob--promo .wjob__in.is-shake { animation: pmod-shake 0.400s; }
@keyframes pmod-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* подсказка «Промокоды ищите в нашем Telegram-канале» — ссылка на канал */
.wjob__note--link { display: block; text-decoration: none; color: #8fd0ff; } .wjob__note--link:hover { color: #fff; text-decoration: underline; }
