/* ==========================================================================
   ТОЧКА БЫТА — anim.css v3
   Только анимации. Не переопределяет базовые стили из style.css.
   ========================================================================== */

/* =========================================================
   BLOBS (морфирующие фоновые пятна в hero)
   ========================================================= */
.blob {
  position: absolute; z-index: 0;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(50px); opacity: .45;
  animation: morph 18s ease-in-out infinite alternate,
             drift 24s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}
.blob.b1 { width: 480px; height: 480px; left: -130px; top: -100px; background: #86efac; }
.blob.b2 { width: 360px; height: 360px; right: -60px; top: 30px;  background: #a7f3d0; animation-delay: -7s; }
.blob.b3 { width: 300px; height: 300px; left: 36%; bottom: -110px; background: #bbf7d0; animation-delay: -13s; }

@keyframes morph {
  0%   { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50%  { border-radius: 58% 42% 38% 62% / 55% 38% 62% 45%; }
  100% { border-radius: 36% 64% 52% 48% / 62% 58% 42% 38%; }
}
@keyframes drift {
  from { transform: translate3d(0,0,0) rotate(0); }
  to   { transform: translate3d(38px,28px,0) rotate(22deg); }
}

/* =========================================================
   POP (brand-dot-badge, eyebrow)
   ========================================================= */
.pop { animation: pop .65s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.88); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   H-ANIM (h1 word-by-word rise)
   ========================================================= */
.h-anim { animation: rise .9s .05s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   SHINE (sweep on primary CTA)
   ========================================================= */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg);
  animation: sheen 4s ease-in-out 1.5s infinite;
}
@keyframes sheen {
  0%,55% { left: -60%; }
  100%   { left: 130%; }
}

/* =========================================================
   RIPPLE (button click)
   ========================================================= */
.btn .rip {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.4);
  transform: scale(0);
  animation: ripple .55s ease-out forwards;
  pointer-events: none;
}
.btn-ghost .rip { background: rgba(18,61,36,.15); }
@keyframes ripple { to { transform: scale(3.5); opacity: 0; } }

/* =========================================================
   FLOATING BADGES (fl-pill bob)
   ========================================================= */
.fl-pill { animation: fl-bob var(--fb-dur, 5s) var(--fb-delay, 0s) ease-in-out infinite; }
.fl-p1 { --fb-dur: 5s;   --fb-delay: 0s; }
.fl-p2 { --fb-dur: 6.5s; --fb-delay: -1.4s; }
.fl-p3 { --fb-dur: 4.8s; --fb-delay: -2.6s; }
.fl-p4 { --fb-dur: 5.5s; --fb-delay: -3.8s; }
.fl-p5 { --fb-dur: 7s;   --fb-delay: -1.9s; animation-name: fl-bob-h; }

@keyframes fl-bob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-12px) rotate(3deg); }
}
@keyframes fl-bob-h {
  /* fl-p5 is centered horizontally with translateX(-50%) already */
  0%,100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50%     { transform: translateX(-50%) translateY(-12px) rotate(2deg); }
}

/* =========================================================
   PROGRESS BAR
   ========================================================= */
.progress { transition: width .12s linear; }

/* =========================================================
   SECTION HEADING underline reveal
   ========================================================= */
.sec h2::after {
  content: "";
  display: block;
  height: 3px; width: 48px;
  margin: 10px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--navy), var(--green));
  transform: scaleX(.2); transform-origin: center;
  transition: transform .7s cubic-bezier(.2,.8,.2,1) .2s;
}
.sec h2.in::after { transform: scaleX(1); }

/* =========================================================
   STAT COUNTUP
   ========================================================= */
.stat b[data-count] { font-variant-numeric: tabular-nums; }

/* =========================================================
   CARD hover shimmer
   ========================================================= */
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,0%),
                rgba(255,255,255,.45), transparent 60%);
  opacity: 0; transition: opacity .25s;
  border-radius: inherit;
}
.card:hover::before { opacity: 1; }
.card-media img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media .ic { transition: transform .45s cubic-bezier(.2,.9,.3,1.4); }
.card:hover .card-media .ic { transform: scale(1.16) rotate(-5deg); }

/* =========================================================
   TIMELINE step icon hover
   ========================================================= */
.timeline li:hover .t-n {
  transform: translateY(-4px) rotate(-5deg);
  background: var(--navy); color: #fff;
}
.t-n { transition: transform .3s cubic-bezier(.2,.9,.3,1.4), background .2s, color .2s; }

/* =========================================================
   WHY-I hover icon
   ========================================================= */
.why-i .ic { transition: transform .4s cubic-bezier(.2,.9,.3,1.4); }
.why-i:hover .ic { transform: scale(1.14) rotate(-7deg); }

/* =========================================================
   STEPS photo zoom
   ========================================================= */
.steps img { transition: transform .6s; }
.steps li:hover img { transform: scale(1.05); }

/* =========================================================
   FORM row slide-in
   ========================================================= */
.f-row:not([hidden]) { animation: slideIn .32s ease-out both; }
.hint:not([hidden])  { animation: slideIn .32s ease-out both; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   SENT SVG draw
   ========================================================= */
.sent svg circle {
  stroke-dasharray: 160; stroke-dashoffset: 160;
  animation: draw .65s ease-out forwards;
}
.sent svg path {
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: draw .45s .5s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =========================================================
   MAP-PH icon bob
   ========================================================= */
.map-ph .ic { animation: fl-bob 3.5s ease-in-out infinite; }

/* =========================================================
   REDUCED MOTION override
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .blob, .fl-pill,
  .mq-track,
  .shine::after,
  .map-ph .ic,
  .pop,
  .h-anim,
  .hero .lead,
  .hero-cta,
  .hero-vis { animation: none !important; }

  .h-anim, .pop, .hero .lead, .hero-cta, .hero-vis
    { opacity: 1 !important; transform: none !important; }

  .sec h2::after { transform: scaleX(1); transition: none; }
  .card, .card-media img, .card-media .ic,
  .timeline li, .t-n,
  .why-i, .why-i .ic,
  .steps li, .steps img { transition: none !important; }
}
