/**
 * Mobile sidebar (≤1023.98): show match / messages / mentions / ads counts
 * next to menu rows. Rail: badge on the 56px icon cell. Overlay: number
 * at the right of the label. PC ≥1024 unchanged (counts stay in header).
 * Marker: mnavbadges20260925a
 */
@media (max-width: 1023.98px) {
  html body .cotinder-mnav--site .cotinder-mnav__link,
  html body .cotinder-mnav--cabinet .cotinder-mnav__link,
  html body .cotinder-mnav--cabinet .person__form-menu_link {
    position: relative !important;
    overflow: visible !important;
  }

  html body .cotinder-mnav--site .cotinder-mnav__badge,
  html body .cotinder-mnav--cabinet .cotinder-mnav__badge,
  html body .cotinder-mnav--cabinet .person__form-menu_link .cotinder-mnav__badge {
    position: absolute !important;
    top: 2px !important;
    right: 4px !important;
    left: auto !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #fd7728 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    z-index: 6 !important;
    pointer-events: none !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    clip: auto !important;
    width: auto !important;
    overflow: visible !important;
  }

  html body .cotinder-mnav--site .cotinder-mnav__badge.is-empty,
  html body .cotinder-mnav--site .cotinder-mnav__badge[hidden],
  html body .cotinder-mnav--cabinet .cotinder-mnav__badge.is-empty,
  html body .cotinder-mnav--cabinet .cotinder-mnav__badge[hidden] {
    display: none !important;
  }

  html body #cotinder-mobmenu .cotinder-mobmenu__link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  html body #cotinder-mobmenu .cotinder-mnav__badge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
    min-width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 12px !important;
    display: inline-block !important;
  }

  html body #cotinder-mobmenu .cotinder-mnav__badge.is-empty,
  html body #cotinder-mobmenu .cotinder-mnav__badge[hidden] {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  html body .person__form .cotinder-mnav__badge,
  html body .cotinder-mnav--cabinet .cotinder-mnav__badge {
    display: none !important;
  }
}

/* Афиша: яркий счётчик на синей боковой рейке (≤1023) */
html body .cotinder-mnav--site .cotinder-mnav__badge.cotinder-mnav__badge--afisha,
html body .cotinder-mnav--site .cotinder-mnav__badge.js-cotinder-afisha-count,
html body #cotinder-mobmenu .cotinder-mnav__badge.cotinder-mnav__badge--afisha,
html body #cotinder-mobmenu .cotinder-mnav__badge.js-cotinder-afisha-count {
  background: linear-gradient(180deg, #ffe566 0%, #ffc933 100%) !important;
  color: #0a2d5c !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 0 0 2px rgba(10, 45, 92, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  font-weight: 800 !important;
  min-width: 20px !important;
}

html body .cotinder-mnav--site a.cotinder-mnav__link[href*="/events/"] .cotinder-mnav__badge--afisha:not(.is-empty),
html body #cotinder-mobmenu a.cotinder-mobmenu__link[href*="/events/"] .cotinder-mnav__badge--afisha:not(.is-empty) {
  animation: cotinder-afisha-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes cotinder-afisha-badge-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
