/* Tokenplaza — логотип: интро при загрузке + постоянное «дыхание». Без зависимостей. */
.tp-logo{display:inline-flex;align-items:center;gap:11px;text-decoration:none;color:#0F1B2D;flex:none}
.tp-logo__mark{display:block;overflow:visible}
.tp-logo__word{font-family:'Manrope',system-ui,sans-serif;font-size:21px;line-height:1;letter-spacing:-0.03em;white-space:nowrap}
.tp-logo__word b{font-weight:800}
.tp-logo__word span{font-weight:500;color:#0B6A72}
.tp-logo__shine{opacity:0}
/* тёмный фон: добавить .tp-logo--dark */
.tp-logo--dark{color:#fff}
.tp-logo--dark .tp-logo__a{fill:#7FE3D4}
.tp-logo--dark .tp-logo__b{fill:#35C2B4}
.tp-logo--dark .tp-logo__word span{color:#7FE3D4}

/* ---------- 1. Интро (класс .is-intro ставит JS при загрузке) ---------- */
@keyframes tpLogoB{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes tpLogoA{from{transform:translate(-14px,-14px);opacity:0}to{transform:none;opacity:1}}
@keyframes tpLogoShine{0%{transform:translateX(0) skewX(-15deg);opacity:1}100%{transform:translateX(70px) skewX(-15deg);opacity:1}}
@keyframes tpLogoWord{from{clip-path:inset(0 100% 0 0);transform:translateX(-10px)}to{clip-path:inset(0 0 0 0);transform:none}}
.tp-logo__b,.tp-logo__a{transform-box:fill-box}

.tp-logo.is-intro .tp-logo__b   {animation:tpLogoB     .7s cubic-bezier(.65,0,.35,1) .10s both}
.tp-logo.is-intro .tp-logo__a   {animation:tpLogoA     .7s cubic-bezier(.2,.7,.2,1)  .60s both}
.tp-logo.is-intro .tp-logo__shine{animation:tpLogoShine .7s ease-in-out             1.20s both}
.tp-logo.is-intro .tp-logo__word{animation:tpLogoWord  .8s cubic-bezier(.2,.7,.2,1)  1.15s both}
/* JS-класс ставится до первой отрисовки, чтобы не было вспышки готового логотипа */
.tp-logo-pending .tp-logo__a,.tp-logo-pending .tp-logo__b,.tp-logo-pending .tp-logo__word{opacity:0}

/* ---------- 2. Постоянное «дыхание» ---------- */
@keyframes tpBreathA{0%,100%{transform:translate(0,0)}45%,55%{transform:translate(-1.6px,-1.6px)}}
@keyframes tpBreathB{0%,100%{transform:translate(0,0)}45%,55%{transform:translate(1.6px,1.6px)}}
.tp-logo__breathe-a{animation:tpBreathA 3.6s cubic-bezier(.45,0,.55,1) infinite}
.tp-logo__breathe-b{animation:tpBreathB 3.6s cubic-bezier(.45,0,.55,1) infinite}
.tp-logo.is-intro .tp-logo__breathe-a,
.tp-logo.is-intro .tp-logo__breathe-b{animation-delay:2s}

/* ---------- 3. Hover ---------- */
.tp-logo__a{transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.tp-logo:hover .tp-logo__a{transform:translate(-1.8px,6.7px)}
.tp-logo:focus-visible{outline:2px solid #0B6A72;outline-offset:6px;border-radius:8px}

/* ---------- 4. Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .tp-logo *,.tp-logo{animation:none!important;transition:none!important}
  .tp-logo-pending .tp-logo__a,.tp-logo-pending .tp-logo__b,.tp-logo-pending .tp-logo__word{opacity:1}
}
