/* ========== ПЛАВАЮЩИЙ ЗАГОЛОВОК ========== */

.floating-header {
  position: fixed;
  bottom: clamp(20px, 3vh, 40px);
  right: clamp(20px, 3vw, 40px);
  z-index: 999;
  background: rgba(181, 118, 74, .45);
  backdrop-filter: blur(8px);
  padding: clamp(14px, 2vh, 24px) clamp(16px, 3vw, 32px);
  box-shadow: none;
  border: 1.5px solid rgba(181, 118, 74, .6);
  border-radius: 16px;
}

.floating-header.compact {
  padding: 12px clamp(16px, 3vw, 28px);
}

.floating-header.hidden {
  transform: scale(1);
  opacity: 1;
}

.header-links {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
}

.header-link {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .2s ease;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
}

.header-link:hover {
  background: rgba(255, 255, 255, .15);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .4);
}

.floating-header.compact .header-link {
  font-size: 11px;
  padding: 5px 10px;
}

.header-link i {
  margin-right: 6px;
  font-size: 1.1em;
  vertical-align: middle;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */
@media (max-width: 768px) {
  .floating-header {
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
    right: calc(clamp(15px, 2vw, 25px) - 70px);
  }

  .header-links {
    flex-direction: column;
    gap: 12px;
  }

  .header-link {
    padding: 0;
    background: transparent !important;
    border: none !important;
    width: auto;
    height: auto;
    font-size: 0;
    color: transparent;
  }

  .header-link:hover {
    background: transparent !important;
    border: none !important;
  }

  .header-link:hover i {
    transform: none !important;
  }

  .header-link i {
    margin-right: 0;
    font-size: 2.55em;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
  }

  /* EKT.KZ - коричневый */
  .header-link:nth-child(1) {
    transform: translateX(1px);
  }

  .header-link:nth-child(1) i {
    color: #D4AF37;
    background: rgba(212, 175, 55, 0.15);
  }

  /* Instagram - розово-фиолетовый */
  .header-link:nth-child(2) {
    transform: translateX(15px);
  }

  .header-link:nth-child(2) i {
    color: #E4405F;
    background: rgba(228, 64, 95, 0.15);
  }

  /* WhatsApp - зеленый */
  .header-link:nth-child(3) {
    transform: translateX(14px);
  }

  .header-link:nth-child(3) i {
    color: #25D366;
    background: rgba(37, 211, 102, 0.15);
  }
}

@media (max-width: 480px) {
  .floating-header {
    bottom: clamp(15px, 2vh, 25px);
    right: calc(clamp(15px, 2vw, 25px) - 70px);
  }

  .header-links {
    gap: 12px;
  }

  .header-link i {
    font-size: 1.6em;
  }
}
