/* ════════════════════════════════════════════════════════════════════
   WELION — движение и свет (после welion.theme.css)
     1. Фон: сияние, сцены    4. Кнопки        7. Картинки и всплывающие
     2. Появление и свет      5. Заголовки     8. Гирлянды, строки
     3. Отклик                6. Афиша         9. Тёмная основа страниц
   Значения приходят из js/motion.js и js/theme.js.
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. Фон ────────────────────────────────────────────────────────── */
.t-bg__aur { overflow: hidden; }
.t-bg__aur b { position: absolute; width: 70vmax; height: 46vmax; border-radius: 50%; will-change: transform; animation: au-1 calc(34s * var(--sp, 1)) ease-in-out infinite alternate; }
.t-bg__aur b:nth-child(1) { left: -18vmax; top: -26vmax; }
.t-bg__aur b:nth-child(2) { right: -26vmax; top: 4vmax; width: 52vmax; height: 34vmax; opacity: .5; animation-name: au-2; animation-duration: calc(43s * var(--sp, 1)); }
.t-bg__aur b:nth-child(3) { right: -12vmax; bottom: -28vmax; animation-name: au-3; animation-duration: calc(51s * var(--sp, 1)); opacity: .9; }
.t-bg__aur b:nth-child(4) { left: 10vmax; bottom: -32vmax; width: 60vmax; animation-name: au-2; animation-duration: calc(62s * var(--sp, 1)); opacity: .7; }
/* слабое устройство: сияние замирает (метку ставит motion.js) */
.t-lite .t-bg__aur b { animation-play-state: paused !important; }
@keyframes au-1 { to { transform: translate(16vmax, 9vmax) scale(1.18); } }
@keyframes au-2 { to { transform: translate(-18vmax, 7vmax) scale(.86); } }
@keyframes au-3 { to { transform: translate(-13vmax, -11vmax) scale(1.12); } }
.t-bg__light { left: -360px !important; top: -360px !important; right: auto !important; bottom: auto !important; width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(var(--t-accrgb), .42), transparent); will-change: transform; }
.t-bg.is-scene .t-bg__dim { display: block !important; background: linear-gradient(180deg, rgba(0, 0, 0, calc(var(--scd, .35) * 1.1)), rgba(0, 0, 0, calc(var(--scd, .35) * .6))); }
.t-bg.is-drift .t-bg__pat { animation-duration: calc(160s * var(--ps, 1)); }
.t-pat--blocks { background: linear-gradient(rgba(255, 235, 228, .1) 2px, transparent 2px) 0 0 / 64px 32px, linear-gradient(90deg, rgba(255, 235, 228, .1) 2px, transparent 2px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(255, 235, 228, .1) 2px, transparent 2px) 32px 32px / 64px 64px; -webkit-mask: linear-gradient(#000, transparent 80%); mask: linear-gradient(#000, transparent 80%); }
.t-pat--noise { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .9 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.mo-scene { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.has-scene { isolation: isolate; }
.has-scene:not(.w-bb__slide, .w-pitch) { position: relative; }
.has-scene > .mo-scene { z-index: -2; border-radius: inherit; }
.has-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(90deg, rgba(8, 2, 5, calc(var(--hdim, .2) + .34)), rgba(8, 2, 5, var(--hdim, .2)) 60%, transparent), linear-gradient(0deg, rgba(8, 2, 5, .35), transparent 40%); }

/* ── 2. Появление и свет ───────────────────────────────────────────── */
.mo { opacity: 0; transition: opacity var(--mo-rt) var(--mo-ease) var(--md, 0s), transform var(--mo-rt) var(--mo-ease) var(--md, 0s), filter var(--mo-rt) ease var(--md, 0s), clip-path var(--mo-rt) var(--mo-ease) var(--md, 0s) !important; will-change: opacity, transform; }
[data-reveal="up"] .mo { transform: translateY(calc(var(--mo-rd) * var(--mo-dir, 1))); }
[data-reveal="left"] .mo { transform: translateX(calc(var(--mo-rd) * -1.6)); }
[data-reveal="zoom"] .mo { transform: scale(.92); }
[data-reveal="flip"] .mo { transform: perspective(1200px) rotateX(-16deg) translateY(var(--mo-rd)); transform-origin: 50% 0; }
[data-reveal="blur"] .mo { filter: blur(14px); transform: scale(1.02); }
[data-reveal="pixel"] .mo { clip-path: polygon(0 0, 0 0, 0 25%, 0 25%, 0 50%, 0 50%, 0 75%, 0 75%, 0 100%, 0 100%); }
.mo.is-in { opacity: 1 !important; transform: none !important; filter: none !important; }
[data-reveal="pixel"] .mo.is-in { clip-path: polygon(0 0, 100% 0, 100% 25%, 100% 25%, 100% 50%, 100% 50%, 100% 75%, 100% 75%, 100% 100%, 0 100%) !important; }
/* свет под курсором: ровно по рамке хозяина, размеры и отступы детей его не касаются */
.mo-spot { position: absolute !important; inset: 0 !important; z-index: 4; width: auto !important; height: auto !important; min-width: 0 !important; max-width: none !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 0 !important; display: block !important; border-radius: inherit; pointer-events: none; background: radial-gradient(var(--mo-spot) circle at var(--sx) var(--sy), rgba(var(--t-accrgb), calc(var(--mo-spotp) * .42)), transparent 70%); animation: mo-show .2s ease; mix-blend-mode: screen; }
/* 2 px вполсилы + мягкое свечение внутрь: дуга такой же яркости, что и прямые (линия в 1 px на скруглении бледнеет) */
.mo-spot::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(255, 215, 205, min(1, calc(var(--mo-spotp) * .75))); border-radius: inherit; box-shadow: inset 0 0 14px rgba(255, 190, 185, min(1, calc(var(--mo-spotp) * .55))); -webkit-mask: radial-gradient(calc(var(--mo-spot) * .8) circle at var(--sx) var(--sy), #000, transparent 70%); mask: radial-gradient(calc(var(--mo-spot) * .8) circle at var(--sx) var(--sy), #000, transparent 70%); }
@keyframes mo-show { from { opacity: 0; } }
.w-prod__in { transition: transform var(--mo-hov, .18s) var(--w-ease), box-shadow var(--mo-hov, .18s); }
.w-prod:hover .w-prod__in { box-shadow: 0 26px 46px -24px rgba(0, 0, 0, .9), 0 10px 40px -22px rgba(var(--t-accrgb), .8); }
.w-tile, .w-banner, .w-duel__art { transition-duration: var(--mo-hov, .18s); }
.mo-progress { position: fixed; z-index: 120; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--w-rasp), var(--w-coral)); transform: scaleX(0); transform-origin: 0 0; pointer-events: none; }

/* переходы между страницами. Старая и новая картинки складываются: кривая у обеих одна,
   поэтому яркость в сумме всегда ровная. Меню стоит на месте и в переходе не участвует. */
@view-transition { navigation: auto; }
@keyframes mo-out { to { opacity: 0; } }
@keyframes mo-in { from { opacity: 0; } }
::view-transition { pointer-events: none; }
::view-transition-group(*) { animation: none; }
::view-transition-old(root) { animation: mo-out var(--mo-pt, .34s) cubic-bezier(.4, 0, .3, 1) both; }
::view-transition-new(root) { animation: mo-in var(--mo-pt, .34s) cubic-bezier(.4, 0, .3, 1) both; }
/* содержимое страницы — отдельно от фона: старое успевает уйти, прежде чем проявится новое, тексты не накладываются.
   Имена ставит motion.js только на время перехода (постоянное имя меняет слои и ломает плавающую корзину) */
.vt-out .w-main { view-transition-name: w-out; }
.vt-in .w-main { view-transition-name: w-in; }
::view-transition-old(w-out) { animation: mo-out calc(var(--mo-pt, .34s) * .5) cubic-bezier(.4, 0, .7, 1) both; }
::view-transition-new(w-in) { animation: mo-in calc(var(--mo-pt, .34s) * .7) cubic-bezier(.2, .6, .3, 1) calc(var(--mo-pt, .34s) * .3) both; }
/* меню на новой странице собирается скриптом чуть позже первого кадра: до тех пор держим прежнее (оно совпадает) */
::view-transition-old(w-rail), ::view-transition-old(w-tabbar) { animation: none; }
::view-transition-new(w-rail), ::view-transition-new(w-tabbar) { animation: none; }
.w-rail { view-transition-name: w-rail; }
.w-tabbar { view-transition-name: w-tabbar; }
.w-stage, .w-foot { transition: opacity .15s ease-out; }
.is-leaving .w-stage, .is-leaving .w-foot { opacity: .12; }
/* пока скрипты собирают страницу, полуготовую её не показываем; если скрипт не придёт — откроется сама */
html:not(.w-on) .w-shell { animation: w-wait .01s 1.6s both; }
@keyframes w-wait { from { opacity: 0; } }

/* подсветка меню: скользит между вкладками */
.w-rail__nav { position: relative; }
.w-ind { position: absolute; left: 0; top: 0; pointer-events: none; list-style: none; }
.w-rail__nav .w-ind { border: 1px solid var(--w-tint-line); border-radius: 12px; background: var(--w-tint); }
.w-rail__nav .w-ind::before { content: ""; position: absolute; left: -2px; top: 20%; width: 3px; height: 60%; border-radius: 3px; background: var(--w-rasp); box-shadow: 0 0 14px rgba(var(--t-accrgb, 230, 59, 97), .9); }
.w-rail__nav.has-ind a.is-active { background: none; border-color: transparent; }
.w-rail__nav.has-ind a.is-active::before { height: 0; transition: none; }
.w-rail__nav.has-ind a { transition-duration: .28s; }
.w-tabbar .w-ind::before { content: ""; position: absolute; left: calc(50% - 16px); top: -8px; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--w-rasp); box-shadow: 0 2px 14px rgba(var(--t-accrgb, 230, 59, 97), .9); }
.w-tabbar a { transition: color .28s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } .w-stage, .w-foot { transition: none; } html:not(.w-on) .w-shell { animation: none; } }

/* ── 3. Отклик ─────────────────────────────────────────────────────── */
.mo-cv { position: fixed; inset: 0; z-index: 210; pointer-events: none; }
.mo-ripple { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.mo-ripple i { position: absolute; border-radius: 50%; background: rgba(255, 235, 228, .34); transform: scale(0); animation: mo-rip .65s ease-out forwards; }
@keyframes mo-rip { to { transform: scale(1); opacity: 0; } }
.mo-fly { position: fixed; z-index: 205; object-fit: contain; pointer-events: none; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.mo-bump { animation: mo-bump .42s var(--w-ease); }
@keyframes mo-bump { 30% { scale: 1.05; } 60% { scale: .985; } }
.w-cat, .w-seg button, .w-tabbar a, .s-tier, .w-copyfield, .w-server__ip, .w-method, .w-bb__tab, .w-tile, .w-rail__nav a { position: relative; }
.w-cat:active, .w-seg button:active, .s-tier:active, .w-copyfield:active, .w-method:active, .w-tabbar a:active { scale: .97; }
.w-rail__nav a .w-ico { transition: scale .2s var(--w-ease), rotate .2s var(--w-ease); }
.w-rail__nav a:hover .w-ico { scale: 1.16; rotate: -6deg; }
.w-rail__nav a::before { content: ""; position: absolute; left: -1px; top: 50%; width: 3px; height: 0; border-radius: 3px; background: var(--w-rasp); translate: 0 -50%; transition: height .25s var(--w-ease); box-shadow: 0 0 14px rgba(var(--t-accrgb, 230, 59, 97), .9); }
.w-rail__nav a:hover::before { height: 34%; }
.w-rail__nav a.is-active::before { height: 60%; }
.w-rail__social a { transition: translate .2s var(--w-ease), color .15s, background .15s; }
.w-rail__social a:hover { translate: 0 -3px; }
.w-dot { animation: mo-dot 2.2s ease-out infinite; }
@keyframes mo-dot { 70%, 100% { box-shadow: 0 0 0 9px rgba(110, 231, 160, 0); } }
.w-cat { transition: color .15s, background .15s; }
.w-bar .w-cat::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--w-rasp); scale: 0 1; transition: scale .25s var(--w-ease); }
.w-bar .w-cat.is-active::after, .w-bar .w-cat:hover::after { scale: 1 1; }
.w-toast.is-open { animation: mo-toast .4s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes mo-toast { from { scale: .9; } }
.w-dialog, .w-sheet { will-change: transform; }

/* ── 4. Кнопки (остальное собирает motion.js) ──────────────────────── */
.w-btn--sm { --bk: .84; --bf: .93; }
.w-btn--lg { --bk: 1.14; --bf: 1.07; }
@keyframes b-shine { 0% { background-position: 130% 0; } 16%, 100% { background-position: -60% 0; } }
@keyframes b-breath { 50% { box-shadow: var(--shadow), 0 0 30px 2px var(--halo); } }
@keyframes b-ring { 0% { box-shadow: 0 0 0 0 var(--halo); } 40%, 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes b-shake { 25% { rotate: -2deg; } 50% { rotate: 2deg; } 75% { rotate: -1deg; } }
@keyframes b-shake-idle { 0%, 88%, 100% { rotate: 0deg; } 90%, 94%, 98% { rotate: -2deg; } 92%, 96% { rotate: 2deg; } }
@keyframes b-float { 50% { transform: translateY(-4px); } }
@keyframes b-ico { 40% { translate: 0 -5px; } 70% { translate: 0 2px; } }
.w-btn { will-change: translate; isolation: isolate; }
.w-btn > * { position: relative; }
/* блики: слой появляется на время проигрывания (motion.js, часть 12) и лежит под надписью */
.w-add { position: relative; isolation: isolate; }
:is(.w-btn, .w-add) > .b-gl { position: absolute; z-index: -1; inset: 0; display: block; margin: 0; overflow: hidden; border-radius: inherit; pointer-events: none; contain: strict; }
.b-gl > * { position: absolute; display: block; }
.b-gl__ray { left: 0; top: -20%; height: 140%; background: linear-gradient(90deg, transparent, rgba(var(--gc), calc(var(--ga) * .9)) 50%, transparent); }
.b-gl--edge { padding: 2px; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.b-gl__run { left: 50%; top: 50%; background: conic-gradient(transparent 0 8%, rgba(var(--gc), calc(var(--ga) * .4)) 22%, rgba(var(--gc), min(1, calc(var(--ga) * 1.8))) 34%, transparent 36% 58%, rgba(var(--gc), calc(var(--ga) * .4)) 72%, rgba(var(--gc), min(1, calc(var(--ga) * 1.8))) 84%, transparent 86%); }
.b-gl__orb { border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--gc), var(--ga)), rgba(var(--gc), calc(var(--ga) * .45)) 45%, transparent); }
.b-gl__star { background: rgba(var(--gc), min(1, calc(var(--ga) * 1.7))); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
.b-gl__px { left: 0; top: 0; height: 100%; width: auto; max-width: none; opacity: min(1, calc(var(--ga) * 1)); image-rendering: pixelated; }
.b-gl__line { left: -1px; top: 0; bottom: 0; width: 2px; background: rgba(var(--gc), min(1, calc(var(--ga) * 1.6))); }
.b-gl__line::before { content: ""; position: absolute; inset: 0 -22px; background: linear-gradient(90deg, transparent, rgba(var(--gc), calc(var(--ga) * .55)), transparent); }
.b-gl__band { left: 0; right: 0; top: 0; background: linear-gradient(0deg, transparent, rgba(var(--gc), calc(var(--ga) * .8)) 55%, transparent); }
.b-gl__prism { left: 0; top: -20%; height: 140%; opacity: min(1, calc(var(--ga) * 1.25)); background: linear-gradient(90deg, transparent, rgba(var(--t-accrgb, 230, 59, 97), .55) 18%, rgba(255, 150, 140, .75) 36%, rgba(255, 246, 240, .85) 50%, rgba(255, 190, 120, .7) 64%, rgba(var(--t-accrgb, 230, 59, 97), .55) 82%, transparent); }
.b-gl__prism.is-cream { background: linear-gradient(90deg, transparent, rgba(255, 190, 120, .5) 22%, rgba(var(--gc), .6) 50%, rgba(255, 150, 140, .6) 74%, transparent); }

/* ручное расположение */
.t-pl { translate: calc(var(--px, 0px) + var(--mx, 0px)) calc(var(--py, 0px) + var(--my, 0px)); scale: var(--ps, 1); rotate: var(--pr, 0deg); z-index: 3; }
.t-pl-hide { display: none !important; }
.is-edit .t-pl-hide { display: revert !important; opacity: .3 !important; }

/* ── 5. Заголовки разделов ─────────────────────────────────────────── */
[data-heads="clean"] .w-stage .w-plate { min-height: 0; padding: 0; font-size: clamp(19px, 1.9vw, 25px); font-weight: 600; letter-spacing: 0; text-transform: none; background: none; border: 0; border-radius: 0; position: relative; }
[data-heads="clean"] .w-stage .w-plate .w-ico { width: 24px; height: 24px; padding: 0; color: var(--w-rasp); filter: drop-shadow(0 0 10px rgba(var(--t-accrgb), .6)); }
[data-headanim="line"] .w-head { position: relative; padding-bottom: 12px; }
[data-headanim="line"] .w-head::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--w-rasp), rgba(var(--t-accrgb), .12) 34%, transparent 70%); transform-origin: 0 50%; animation: mo-line .9s var(--w-ease) both; }
.mo:not(.is-in).w-head::after, .mo:not(.is-in) .w-head::after { animation: none; scale: 0 1; }
@keyframes mo-line { from { scale: 0 1; } }
[data-headanim="glow"] .w-plate { animation: mo-hglow 3.6s ease-in-out infinite; }
@keyframes mo-hglow { 50% { text-shadow: 0 0 24px rgba(var(--t-accrgb), .9); } }
[data-headanim="shine"] .w-stage .w-plate { background: linear-gradient(100deg, var(--w-cream) 40%, var(--w-coral) 50%, var(--w-cream) 60%) 120% 0 / 300% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; color: transparent; animation: mo-hshine 6s linear infinite; }
@keyframes mo-hshine { 0%, 60% { background-position: 120% 0; } 100% { background-position: -60% 0; } }

/* ── 6. Афиша ──────────────────────────────────────────────────────── */
.w-bb { border: 0; box-shadow: 0 50px 90px -50px #000, 0 0 0 1px var(--w-line); }
.w-bb, .w-bb__stage { min-height: var(--bb-h, 520px); }
.w-bb__slide { transition-duration: var(--bb-ct, .35s); }
.w-bb__slide > * { max-width: 62%; }
.w-bb__slide--brand > * { max-width: 100%; }
.w-bb__slide--brand.has-scene { background: none; }
.w-bb__slide--brand p { text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.w-bb__slide--brand.has-scene .w-bb__word { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
.w-bb__slide--brand.has-scene .w-pill--ink, .w-pitch.has-scene .w-pill--ink, .w-bb__slide--strip .w-pill--ink, .w-bb__slide--dusk .w-pill--ink { background: var(--w-rasp); }
.w-bb__slide--post, .w-bb__slide--dusk, .w-bb__slide--strip { background: radial-gradient(90% 120% at 82% 50%, rgba(var(--t-accrgb, 230, 59, 97), .5), transparent 62%), linear-gradient(180deg, var(--w-surface-2), var(--w-night-2)); }
.w-bb__slide--dusk { background: radial-gradient(80% 120% at 84% 0%, rgba(var(--t-accrgb, 230, 59, 97), .42), transparent 60%), linear-gradient(200deg, var(--w-surface-2), var(--w-night-2)); }
.w-bb[data-tabs="bottom"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
.w-bb[data-tabs="bottom"] .w-bb__bill { flex-direction: row; border-left: 0; background: rgba(6, 1, 3, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.w-bb[data-tabs="bottom"] .w-bb__tab { grid-template-columns: auto 1fr; padding: 13px 18px; border: 0; border-right: 1px solid var(--w-line); transition: background .2s, color .2s; }
.w-bb[data-tabs="bottom"] .w-bb__tab:last-child { border-right: 0; }
.w-bb[data-tabs="bottom"] .w-bb__tab span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--w-text-3); }
/* узкий экран: подписи под вкладками обрезались до «Два режима …», а «Набор в команду» ломался в две строки — оставляем только названия */
@media (max-width: 1020px) {
  .w-bb[data-tabs="bottom"] .w-bb__tab { padding: 12px 14px; align-items: center; }
  .w-bb[data-tabs="bottom"] .w-bb__tab span { display: none; }
  .w-bb[data-tabs="bottom"] .w-bb__tab { grid-template-columns: 1fr; }
  .w-bb[data-tabs="bottom"] .w-bb__tab small { display: none; }
  .w-bb[data-tabs="bottom"] .w-bb__tab b { font-size: 12.5px; line-height: 1.2; text-wrap: balance; }
}
.w-bb[data-tabs="none"] { grid-template-columns: minmax(0, 1fr); }
.w-bb[data-tabs="none"] .w-bb__bill { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.w-bb__tab::after { left: 18px; border-radius: 3px 3px 0 0; --bb-w: calc(100% - 36px); background: linear-gradient(90deg, var(--w-rasp), var(--w-coral)); box-shadow: 0 0 14px var(--w-rasp); }
.w-bb[data-change="slide"] .w-bb__slide { transform: translateX(60px); transition-property: opacity, visibility, transform; }
.w-bb[data-change="zoom"] .w-bb__slide { transform: scale(1.06); transition-property: opacity, visibility, transform; }
.w-bb[data-change="pixel"] .w-bb__slide { clip-path: inset(0 100% 0 0); transition-property: opacity, visibility, clip-path; transition-timing-function: steps(14); }
.w-bb[data-change="slide"] .w-bb__slide.is-active, .w-bb[data-change="zoom"] .w-bb__slide.is-active { transform: none; }
.w-bb[data-change="pixel"] .w-bb__slide.is-active { clip-path: inset(0); }
.w-bb[data-word="float"] .w-bb__word { animation: w-float 6s ease-in-out infinite; }
.w-bb[data-word="glow"] .w-bb__word { animation: mo-word 3.4s ease-in-out infinite; }
.w-bb[data-word="glitch"] .w-bb__word { animation: mo-glitch 5s steps(1) infinite; }
@keyframes mo-word { 50% { filter: drop-shadow(0 0 34px rgba(var(--t-accrgb), .95)); } }
@keyframes mo-glitch { 0%, 92%, 100% { translate: 0 0; clip-path: none; } 93% { translate: -5px 1px; clip-path: inset(0 0 58% 0); } 94% { translate: 6px 0; clip-path: inset(34% 0 22% 0); } 95% { translate: -3px -1px; clip-path: inset(70% 0 0 0); } 96% { translate: 0 0; clip-path: none; filter: drop-shadow(4px 0 0 var(--w-rasp)) drop-shadow(-4px 0 0 #fff5); } 97% { translate: 2px 0; } }
.w-bb[data-title="rise"] .is-active .w-bb__title > span { animation: mo-rise .7s cubic-bezier(.2, .8, .2, 1) both .1s; }
.w-bb[data-title="rise"] .is-active .w-bb__title > .w-pill { animation-delay: .25s; animation-name: mo-rise-pill; }
.w-bb[data-title="blur"] .is-active .w-bb__title > span { animation: mo-blur .8s ease both; }
.w-bb[data-title="type"] .is-active .w-bb__title > span { animation: mo-type 1.1s steps(26) both; }
.w-bb[data-title="type"] .is-active .w-bb__title > .w-pill { animation-delay: .8s; }
@keyframes mo-rise { from { opacity: 0; translate: 0 34px; } }
@keyframes mo-rise-pill { from { opacity: 0; translate: -30px 0; scale: .9; } }
@keyframes mo-blur { from { opacity: 0; filter: blur(16px); } }
@keyframes mo-type { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -4% -20% 0); } }
.w-bb .is-active > p { animation: mo-rise .7s .34s cubic-bezier(.2, .8, .2, 1) both; }
.w-bb .is-active > .w-row, .w-bb .is-active > .w-btn { animation: mo-rise .7s .46s cubic-bezier(.2, .8, .2, 1) both; }

/* ── 7. Картинки и всплывающие ─────────────────────────────────────── */
.t-decor { translate: -50% calc(-50% + var(--par, 0px)); }
.t-decor__in { display: block; }
.t-decor.is-live { pointer-events: auto; cursor: pointer; }
.t-decor img, .pop img { transition: transform .25s var(--w-ease); }
.t-hv--grow:hover { scale: 1.14; transition: scale .25s var(--w-ease); }
.t-hv--shake:hover .t-decor__in, .t-hv--shake:hover { animation: b-shake .4s 2; }
.t-hv--spin:hover { rotate: 360deg; transition: rotate .6s var(--w-ease); }
.t-hv--jump:hover { animation: a-jump .5s; }
.t-hv--fade:hover { opacity: .25 !important; transition: opacity .25s; }
@keyframes a-jump { 40% { transform: translateY(-22px); } 70% { transform: translateY(4px); } }
.t-an--float { animation: a-float calc(4s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
.t-an--swing { animation: a-swing calc(3.2s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; transform-origin: 50% 90%; }
.t-an--pulse { animation: a-pulse calc(1.8s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
.t-an--spin { animation: a-spin calc(14s * var(--as, 1)) var(--ad, 0s) linear infinite; }
.t-an--shake { animation: a-shake calc(2.6s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
.t-an--bounce { animation: a-bounce calc(1.5s * var(--as, 1)) var(--ad, 0s) cubic-bezier(.5, 0, .5, 1) infinite; transform-origin: 50% 100%; }
.t-an--beat { animation: a-beat calc(1.3s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
.t-an--wobble { animation: a-wobble calc(2.4s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
.t-an--jelly { animation: a-jelly calc(2s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
.t-an--flip { animation: a-flip calc(4s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
.t-an--orbit { animation: a-orbit calc(6s * var(--as, 1)) var(--ad, 0s) linear infinite; }
.t-an--drift { animation: a-drift calc(9s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite alternate; }
.t-an--blink { animation: a-blink calc(2.2s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
.t-an--glow { animation: a-glow calc(2.6s * var(--as, 1)) var(--ad, 0s) ease-in-out infinite; }
@keyframes a-float { 50% { transform: translateY(calc(-9px * var(--amp, 1))); } }
@keyframes a-swing { 0%, 100% { transform: rotate(calc(-6deg * var(--amp, 1))); } 50% { transform: rotate(calc(6deg * var(--amp, 1))); } }
@keyframes a-pulse { 50% { transform: scale(calc(1 + .12 * var(--amp, 1))); } }
@keyframes a-spin { to { transform: rotate(360deg); } }
@keyframes a-shake { 0%, 84%, 100% { transform: none; } 87%, 93% { transform: rotate(calc(-7deg * var(--amp, 1))); } 90%, 96% { transform: rotate(calc(7deg * var(--amp, 1))); } }
@keyframes a-bounce { 0%, 100% { transform: scale(1.06, .94); } 45% { transform: translateY(calc(-26px * var(--amp, 1))) scale(.97, 1.03); } }
@keyframes a-beat { 0%, 40%, 100% { transform: none; } 15% { transform: scale(calc(1 + .16 * var(--amp, 1))); } 28% { transform: scale(1.03); } }
@keyframes a-wobble { 0%, 100% { transform: none; } 20% { transform: translateX(calc(-8px * var(--amp, 1))) rotate(calc(-5deg * var(--amp, 1))); } 45% { transform: translateX(calc(6px * var(--amp, 1))) rotate(calc(4deg * var(--amp, 1))); } 70% { transform: translateX(calc(-4px * var(--amp, 1))) rotate(calc(-2deg * var(--amp, 1))); } }
@keyframes a-jelly { 0%, 60%, 100% { transform: none; } 10% { transform: scale(calc(1 + .14 * var(--amp, 1)), calc(1 - .12 * var(--amp, 1))); } 24% { transform: scale(calc(1 - .1 * var(--amp, 1)), calc(1 + .12 * var(--amp, 1))); } 40% { transform: scale(1.04, .97); } }
@keyframes a-flip { 0%, 50% { transform: none; } 75%, 100% { transform: rotateY(360deg); } }
@keyframes a-orbit { from { transform: rotate(0) translateX(calc(14px * var(--amp, 1))) rotate(0); } to { transform: rotate(360deg) translateX(calc(14px * var(--amp, 1))) rotate(-360deg); } }
@keyframes a-drift { from { transform: translate(calc(-16px * var(--amp, 1)), calc(6px * var(--amp, 1))) rotate(-2deg); } to { transform: translate(calc(16px * var(--amp, 1)), calc(-8px * var(--amp, 1))) rotate(2deg); } }
@keyframes a-blink { 50% { opacity: calc(1 - .75 * min(1, var(--amp, 1))); } }
@keyframes a-glow { 50% { filter: drop-shadow(0 0 calc(18px * var(--amp, 1)) rgba(var(--t-accrgb, 230, 59, 97), 1)); } }
/* вход и уход */
[class*="t-en--"] { animation: var(--et, .6s) var(--ed, 0s) var(--ee, ease) both; }
.t-en--fade { animation-name: e-fade; } .t-en--pop { animation-name: e-pop; } .t-en--drop { animation-name: e-drop; } .t-en--rise { animation-name: e-rise; } .t-en--left { animation-name: e-left; } .t-en--right { animation-name: e-right; }
.t-en--spin { animation-name: e-spin; } .t-en--flip { animation-name: e-flip; } .t-en--blur { animation-name: e-blur; } .t-en--pixel { animation-name: e-pixel; animation-timing-function: steps(7); } .t-en--bounce { animation-name: e-bounce; animation-timing-function: ease-out; }
[class*="t-lv--"] { animation: var(--lt, .4s) cubic-bezier(.23, 1, .32, 1) both; pointer-events: none; }
.t-lv--fade { animation-name: l-fade; } .t-lv--pop, .t-lv--burst { animation-name: l-pop; } .t-lv--drop { animation-name: l-drop; } .t-lv--rise { animation-name: l-rise; } .t-lv--left { animation-name: l-left; } .t-lv--right { animation-name: l-right; } .t-lv--spin { animation-name: l-spin; } .t-lv--blur { animation-name: l-blur; } .t-lv--pixel { animation-name: l-pixel; animation-timing-function: steps(6); }
@keyframes e-fade { from { opacity: 0; } } @keyframes e-pop { from { opacity: 0; scale: .2; } } @keyframes e-drop { from { opacity: 0; transform: translateY(-120px); } } @keyframes e-rise { from { opacity: 0; transform: translateY(120px); } } @keyframes e-left { from { opacity: 0; transform: translateX(-160px); } } @keyframes e-right { from { opacity: 0; transform: translateX(160px); } }
@keyframes e-spin { from { opacity: 0; scale: .2; rotate: -270deg; } } @keyframes e-flip { from { opacity: 0; transform: perspective(600px) rotateY(120deg); } } @keyframes e-blur { from { opacity: 0; filter: blur(24px); scale: 1.2; } } @keyframes e-pixel { from { clip-path: inset(50%); scale: .7; } to { clip-path: inset(-20%); } } @keyframes e-bounce { 0% { opacity: 0; transform: translateY(-220px); } 55% { opacity: 1; transform: none; } 70% { transform: translateY(-34px); } 85% { transform: none; } 93% { transform: translateY(-10px); } }
@keyframes l-fade { to { opacity: 0; } } @keyframes l-pop { 30% { scale: 1.12; } to { opacity: 0; scale: .1; } } @keyframes l-drop { to { opacity: 0; transform: translateY(160px) rotate(18deg); } } @keyframes l-rise { to { opacity: 0; transform: translateY(-160px); } } @keyframes l-left { to { opacity: 0; transform: translateX(-200px); } } @keyframes l-right { to { opacity: 0; transform: translateX(200px); } } @keyframes l-spin { to { opacity: 0; scale: .1; rotate: 360deg; } } @keyframes l-blur { to { opacity: 0; filter: blur(24px); scale: 1.2; } } @keyframes l-pixel { to { clip-path: inset(50%); opacity: 0; } }

.pops { position: fixed; inset: 0; z-index: 58; overflow: hidden; pointer-events: none; }
.pops--back { z-index: 5; }
.pop { position: absolute; left: 0; top: 0; width: var(--pw); display: grid; justify-items: center; gap: 8px; pointer-events: auto; will-change: transform; }
.pop__btn { display: block; width: 100%; line-height: 0; cursor: pointer; border-radius: 14px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pop__btn[disabled] { cursor: default; }
.pop img { width: 100%; height: auto; }
.pop img[src^="data:image/svg"] { image-rendering: pixelated; }
.pop__txt { position: relative; order: -1; max-width: min(260px, 70vw); padding: 10px 14px; font-size: var(--pf, 15px); line-height: 1.35; font-weight: 600; text-align: center; white-space: pre-line; overflow-wrap: anywhere; color: var(--w-ink); background: var(--w-cream); border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.pop__txt::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: inherit; translate: -50% 0; rotate: 45deg; border-radius: 3px; }
.pop--plate .pop__txt { color: var(--w-cream); background: var(--w-grad-face); }
.pop--plain .pop__txt { color: var(--w-cream); background: none; box-shadow: none; padding: 0; text-shadow: 0 2px 10px #000; }
.pop--plate .pop__txt::after, .pop--plain .pop__txt::after { display: none; }
.pop__x { position: absolute; right: -8px; top: -8px; display: grid; place-items: center; width: 28px; height: 28px; font-size: 16px; line-height: 1; color: var(--w-cream); background: rgba(12, 2, 6, .86); border: 1px solid var(--w-line-2); border-radius: 50%; cursor: pointer; }
.pop__n { position: absolute; right: -6px; bottom: -6px; min-width: 26px; padding: 5px 6px; text-align: center; font: 400 10px/1.4 var(--w-font-pixel); color: var(--w-ink); background: var(--w-cream); border-radius: 8px; }
.pop.is-hit-jelly .pop__btn { animation: a-jelly .5s; } .pop.is-hit-shake .pop__btn { animation: b-shake .35s; } .pop.is-hit-shrink .pop__btn { animation: a-hit .3s; } .pop.is-hit-spin .pop__btn { animation: a-spin .45s; }
@keyframes a-hit { 50% { scale: .82; } }
.w-say { display: grid; gap: 14px; justify-items: center; text-align: center; }
.w-say img { max-width: 160px; max-height: 160px; object-fit: contain; }
.w-say p { white-space: pre-line; color: var(--w-text-2); overflow-wrap: anywhere; }

/* ── 8. Гирлянды и строки ──────────────────────────────────────────── */
.t-garland--lights.is-blink i, .t-garland--flags.is-blink i, .t-garland--leaves.is-blink i, .t-garland--hearts.is-blink i, .t-garland--web.is-blink i { animation-duration: calc(3s * var(--gsp, 1)); }
.t-garland--lanterns { padding: 0 30px; }
.t-garland--lanterns i { width: calc(20px * var(--gs)); height: calc(26px * var(--gs)); margin-top: calc(8px + var(--k) * 9px); border-radius: 46%; background: linear-gradient(180deg, #FFD9A0, hsl(calc(350 + var(--k) * 9) 78% 56%) 60%, #7A1535); box-shadow: 0 6px 26px 2px hsl(calc(350 + var(--k) * 9) 80% 56% / .7); transform-origin: 50% -20px; }
.t-garland--lanterns i:nth-child(n+19) { display: none; }
.t-garland--lanterns.is-blink i { animation: t-swing calc(4.4s * var(--gsp, 1)) calc(var(--k) * -.9s) ease-in-out infinite; }
.t-garland--stars i { width: calc(18px * var(--gs)); height: calc(18px * var(--gs)); margin-top: calc(var(--k) * 8px); background: center / contain no-repeat; image-rendering: pixelated; }
.t-garland--stars.is-blink i { animation: t-blink calc(2.8s * var(--gsp, 1)) calc(var(--k) * -.7s) infinite; }
.t-line__row > span { padding-inline: var(--lgap, 16px); }
.t-line--a-pulse { animation: a-pulse calc(2.4s * var(--las, 1)) ease-in-out infinite; --amp: .12; }
.t-line--a-wave .t-line__row > span { animation: a-float calc(2.2s * var(--las, 1)) ease-in-out infinite; --amp: .45; }
.t-line--a-wave .t-line__row > span:nth-child(4n+3) { animation-delay: -1.1s; }
.t-line--a-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%) 130% 0 / 300% 100%; animation: b-shine calc(5s * var(--las, 1)) linear infinite; pointer-events: none; }

/* ── 9. Тёмная основа: вино остаётся акцентом, а не фоном ──────────── */
.t-on .w-duel { border: 0; box-shadow: 0 40px 80px -44px #000;  }
.t-on .w-duel__side--sv { background: radial-gradient(80% 110% at 88% 0%, rgba(var(--t-accrgb), .34), transparent 62%), linear-gradient(180deg, var(--w-surface-2), var(--w-surface)); }
.t-on .w-duel__side--rp { background: radial-gradient(80% 110% at 92% 100%, rgba(var(--t-accrgb), .42), transparent 62%), linear-gradient(180deg, var(--w-surface), var(--w-night-2)); }
.t-on .w-duel__side:hover .w-duel__art { transform: translateY(-10px) scale(1.12) rotate(-2deg); }
.t-on .w-banner--strip { background: radial-gradient(90% 120% at 90% 10%, rgba(var(--t-accrgb), .55), transparent 60%), linear-gradient(135deg, var(--w-surface-2), var(--w-night-2)); }
/* рамка блоков — одна линия внутри контура: в углах совпадает со светом и не двоится */
.t-on :is(.w-card, .w-tile, .w-banner) { border: 0; }
.t-on :is(.w-card, .w-tile, .w-banner) { position: relative; box-shadow: var(--w-shadow); }
.t-on :is(.w-card, .w-tile, .w-banner, .w-duel)::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; border: 1px solid var(--rim, var(--w-line)); pointer-events: none; transition: border-color var(--mo-hov, .2s); }
/* обрезка — на пиксель снаружи: иначе край рамки сглаживается дважды и в углах бледнеет */
.t-on :is(.w-tile, .w-banner, .w-duel, .w-prod__in) { min-width: 0; overflow: clip; overflow-clip-margin: 1px; }
.t-on .w-duel { background: none; }
.t-on .w-duel__side--sv { border-radius: var(--w-r-lg) 0 0 var(--w-r-lg); }
.t-on .w-duel__side--rp { border-radius: 0 var(--w-r-lg) var(--w-r-lg) 0; }
.t-on .w-banner--image > img { border-radius: inherit; }
.t-on .w-prod__back { border-radius: inherit; }
.t-on .k-vw--classic:not(.w-prod--wide) .w-prod__bar { border-radius: 0 0 var(--t-r-card, 18px) var(--t-r-card, 18px); }
@media (max-width: 1020px) { .t-on .w-duel__side--sv { border-radius: var(--w-r-lg) var(--w-r-lg) 0 0; } .t-on .w-duel__side--rp { border-radius: 0 0 var(--w-r-lg) var(--w-r-lg); } }
.t-on :is(.w-tile, a.w-banner, button.w-banner):hover { transform: none; }
.t-on :is(.w-tile, a.w-banner, button.w-banner):hover::after { border: 2px solid rgba(var(--t-accrgb), .46); }
.t-on .w-tile--promo, .t-on .w-rate--top { --rim: var(--w-tint-line); }
.t-on .w-faq details { border: 1px solid var(--w-line); transition: border-color var(--mo-hov, .2s); }
.t-on .w-faq details:hover { border-color: var(--w-line-2); }
.t-on .w-faq details[open] { border-color: var(--w-tint-line); }
.t-on .w-faq summary:focus-visible { outline-offset: -3px; border-radius: inherit; }
/* отклик плитки — внутри неё: сам блок не уезжает из-под курсора и не дрожит у края */
.t-on :is(.w-tile, a.w-banner, button.w-banner):hover { box-shadow: var(--w-shadow), 0 14px 44px -24px rgba(var(--t-accrgb), .9); }
.t-on .w-tile__go { transition: translate var(--mo-hov, .2s) var(--w-ease), color var(--mo-hov, .2s); }
.t-on .w-tile:hover .w-tile__go { translate: 4px 0; color: var(--w-cream); }
.t-on .w-banner__art { transition: scale var(--mo-hov, .2s) var(--w-ease); }
.t-on :is(a.w-banner, button.w-banner):hover .w-banner__art { scale: 1.05; }
.t-on .w-banner__ico, .t-on .w-bb__ico { display: grid; place-items: center; width: auto !important; height: auto; color: var(--w-rasp); filter: drop-shadow(0 0 26px rgba(var(--t-accrgb), .7)); }
.t-on .w-banner__ico svg { width: 88px; height: 88px; }
.t-on .w-bb__ico { right: 9%; }
.t-on .w-bb__ico svg { width: clamp(90px, 15vw, 210px); height: auto; aspect-ratio: 1; }
/* наклон — у картинки, рамка карточки остаётся прямой */
.t-on .w-prod__art { perspective: 700px; }
.t-on .w-prod__artw > img { rotate: var(--ax, 0) var(--ay, 0) 0 var(--aa, 0deg); translate: var(--ix, 0) var(--iy, 0); transition: rotate .18s ease-out, translate .18s ease-out, transform .22s var(--w-ease); }
.t-on .s-tiers::after, .t-on .s-stage::after { content: none; }
.t-on .w-tile { transition: box-shadow var(--mo-hov, .2s), background var(--mo-hov, .2s); }
.t-on .w-tile__ico { transition: scale .25s var(--w-ease), rotate .25s var(--w-ease); }
.t-on .w-tile:hover .w-tile__ico { scale: 1.14; rotate: -5deg; }
.t-on .w-path__step::before { transition: background .25s, box-shadow .25s; }
.t-on .w-path__step:hover::before { background: var(--w-rasp); box-shadow: 0 0 22px rgba(var(--t-accrgb), .8); }
.t-on .w-shop-title[data-scene] { position: relative; isolation: isolate; overflow: hidden; min-height: 190px; padding: 30px 36px; border-radius: var(--w-r-lg); box-shadow: 0 0 0 1px var(--w-line), 0 40px 70px -46px #000; }
.t-on .w-shop-title h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; text-shadow: 0 4px 22px rgba(0, 0, 0, .7); }
.t-on .w-shop-title small { display: block; margin-top: 10px; font: 500 16px/1.45 var(--w-font-body); color: var(--w-text-2); text-shadow: 0 2px 12px #000; }
.t-on .w-shop-title > .w-btn { color: var(--w-cream); text-shadow: none; }
.t-on .w-pagehead[data-scene] { overflow: hidden; padding: 34px 36px; min-height: 170px; align-content: center; border-radius: var(--w-r-lg); box-shadow: 0 0 0 1px var(--w-line); }
.t-on .w-pitch.has-scene, .t-on .w-void.has-scene { background: none; }
.partner-checks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; background: var(--w-rasp); box-shadow: 0 0 10px rgba(var(--t-accrgb, 230, 59, 97), .7); }
@media (max-width: 760px) {
  .w-bb[data-tabs="bottom"] .w-bb__bill { display: grid; grid-template-columns: 1fr 1fr; }
  .w-bb[data-tabs="bottom"] .w-bb__tab { padding: 11px 14px; border-bottom: 1px solid var(--w-line); }
  .w-bb[data-tabs="bottom"] .w-bb__tab span { display: none; }
  .w-bb, .w-bb__stage { min-height: min(var(--bb-h, 520px), 480px); }
  .w-bb__slide > * { max-width: 100%; }
  .t-on .w-shop-title[data-scene] { min-height: 140px; padding: 22px 20px; }
  .t-on .w-shop-title small { font-size: 14px; }
  .t-on .w-shop-title > .w-btn { display: none; }
  .pops { bottom: 68px; }
  .pop { max-width: 46vw; }
}
@media (prefers-reduced-motion: reduce) {
  .mo { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}
.w-duel__head > img:first-child { display: none; }
.w-duel__head h2 { white-space: nowrap; font-size: clamp(22px, 2.5vw, 34px); font-weight: 700; }
.w-duel__art { flex: 0 1 auto; min-width: 84px; }

/* категории уходят под поиск плавно, а не обрубком */
@media (min-width: 761px) { .w-bar .w-cats { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 34px), transparent); padding-right: 30px; } }
.t-on .w-line-item { background: var(--w-well); }
.t-on .w-tile b { overflow-wrap: anywhere; }
