/* Extra visual touches (see motion.js). Everything here switches off with reduced motion. */

/* WhatsApp button: a soft ring every few seconds. */
.wa-pulse{position:relative;isolation:isolate}
.wa-pulse::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 0 #ffe153b3;animation:waPulse 3.2s ease-out 1s infinite;pointer-events:none;z-index:-1}
@keyframes waPulse{0%{box-shadow:0 0 0 0 #ffe153b3}35%{box-shadow:0 0 0 14px #ffe15300}100%{box-shadow:0 0 0 14px #ffe15300}}

/* Yellow buttons: a light sweep on hover (mouse only). */
@media (hover:hover) and (pointer:fine){
  .button:not(.outline){overflow:hidden;position:relative}
  .button:not(.outline)::before{content:'';position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,#ffffff8c,transparent);transform:skewX(-20deg);transition:left .6s ease;pointer-events:none}
  .button:not(.outline):hover::before{left:130%}

  /* Coach cards: slower zoom, darker bottom and a yellow line that grows on hover. */
  .coach-photo img{transition:transform .7s cubic-bezier(.22,1,.36,1),filter .7s}
  .coach-photo::after{content:'';position:absolute;left:0;bottom:0;height:4px;width:0;background:var(--yellow);transition:width .5s cubic-bezier(.22,1,.36,1)}
  .coach:hover .coach-photo img{transform:scale(1.06);filter:contrast(1.05) saturate(1.08)}
  .coach:hover .coach-photo::after{width:100%}
  .coach h3{transition:transform .4s cubic-bezier(.22,1,.36,1)}
  .coach:hover h3{transform:translateX(6px)}

  /* Gallery photos: same slow zoom as coaches. */
  .gallery img{transition:transform .7s cubic-bezier(.22,1,.36,1)}
  .gallery button:hover img{transform:scale(1.06)}
}

/* Coach photo keeps its own height: opening "Подробнее" makes the card taller, not the photo bigger. */
@media (min-width:601px){
  .coach-photo{height:clamp(340px,27vw,400px)!important;min-height:0!important;align-self:start}
}

/* Facts strip: numbers use tabular figures so the count-up does not jitter. */
.facts-strip strong{font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:reduce){
  .wa-pulse::after,.button::before{display:none}
}
.reduced-motion .wa-pulse::after,.reduced-motion .button::before,.reduced-motion .coach-photo::after{display:none}
