/* Huner Project düyməsi – bütün səhifələrdə (header.php daxilində) */
.header .hp-badge {
  position: absolute;
  top: 196px; /* dil siyahısı (RU/EN) açılanda onun altında qalsın */
  right: 12px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: block;
  z-index: 2;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.38);
  -webkit-transition: -webkit-transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
}
.header .hp-badge img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.header .hp-badge:hover,
.header .hp-badge:focus-visible {
  -webkit-transform: scale(1.07);
  transform: scale(1.07);
}
.header .hp-badge:focus-visible {
  outline: 2px solid #f8a600;
  outline-offset: 4px;
}
.hp-badge-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid #f8a600;
  pointer-events: none;
  -webkit-animation: hpBadgePulse 2.6s ease-out infinite;
  animation: hpBadgePulse 2.6s ease-out infinite;
}
@-webkit-keyframes hpBadgePulse {
  0% { -webkit-transform: scale(1); opacity: 0.9; }
  70%, 100% { -webkit-transform: scale(1.45); opacity: 0; }
}
@keyframes hpBadgePulse {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

/* Dil siyahısı açılanda düymənin üstündə qalsın */
@media only screen and (min-width: 1271px) {
  .header-right .language { z-index: 5; }
}
/* Ana səhifə, alçaq ekran: sağdakı sosial ikonlarla toqquşmasın deyə yuxarıda,
   dil siyahısı açılanda isə müvəqqəti gizlənir */
@media only screen and (min-width: 1271px) and (max-height: 800px) {
  .header .hp-badge.hp-badge--home { top: 96px; }
  .header:has(.language.hv) .hp-badge.hp-badge--home {
    opacity: 0;
    visibility: hidden;
  }
}

/* Mobil: menyu yığılır, düymə solda, loqonun altında sabit (fixed) */
@media only screen and (max-width: 1270px) {
  .header .hp-badge {
    position: fixed;
    top: 88px;   /* loqo: soldan 20px, 96x60 */
    left: 46px;
    right: auto;
    bottom: auto;
    width: 44px;
    height: 44px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  }
  .mobil-open .header .hp-badge {
    opacity: 0;
    visibility: hidden;
  }
}
@media only screen and (max-width: 640px) {
  /* loqo: soldan 10px, 76x50 */
  .header .hp-badge { top: 64px; left: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-badge-pulse { -webkit-animation: none; animation: none; opacity: 0; }
  .header .hp-badge { -webkit-transition: none; transition: none; }
}
