/* ============================================================
   Hoof loader — pulsing brand logo + animated dots
   Usage:
     <div class="hf-loader">
       <div class="hf-mark"></div>
       <div class="hf-text">Загружаю маршрут</div>
     </div>
   Optional: add class="hf-loader hf-loader-full" for fullscreen.
   ============================================================ */

@keyframes hf-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(.86); opacity: .55; }
}
@keyframes hf-shimmer {
  0%   { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}
@keyframes hf-dots {
  0%   { width: 0; }
  100% { width: 1.1em; }
}

.hf-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px;
  min-height: 180px;
}
.hf-loader-full {
  min-height: 100vh;
  min-height: 100dvh;
}

.hf-mark {
  width: 56px;
  height: 72px;
  background:
    linear-gradient(110deg,
      rgba(255,255,255,.0) 0%,
      rgba(255,255,255,.0) 35%,
      rgba(255,255,255,.55) 50%,
      rgba(255,255,255,.0) 65%,
      rgba(255,255,255,.0) 100%) , #2f4a35;
  background-size: 250% 100%, 100% 100%;
  background-blend-mode: lighten, normal;
  -webkit-mask: url(/logo.svg) center / contain no-repeat;
          mask: url(/logo.svg) center / contain no-repeat;
  animation:
    hf-pulse 1.6s ease-in-out infinite,
    hf-shimmer 2.4s linear infinite;
}

/* Smaller variant for inline / list-loading */
.hf-mark.sm { width: 36px; height: 46px; }
.hf-mark.lg { width: 88px; height: 112px; }

.hf-text {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  color: #5d6353;
  letter-spacing: -.01em;
  text-align: center;
  line-height: 1.3;
}
.hf-text::after {
  content: "...";
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  width: 1.1em;
  animation: hf-dots 1.4s steps(4, end) infinite;
}

/* Quiet variant — used when "loading" is more like "waiting"  */
.hf-text-sub {
  margin-top: -4px;
  font-family: "Hanken Grotesque", -apple-system, sans-serif;
  font-size: 12.5px;
  color: #8a907d;
  letter-spacing: .03em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hf-mark { animation: none; opacity: .8; }
  .hf-text::after { animation: none; width: 1.1em; content: ""; }
}
