/**
 * BestLight — footer.css
 * Подвал в 4 колонки, плавающие кнопки WhatsApp и «наверх».
 */

.bl-footer{
  background: var(--bl-bg-soft);
  padding: clamp(50px, 7vw, 70px) 0 30px;
}

.bl-footer__grid{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(36px, 5vw, 50px);
}

.bl-footer .bl-logo{ margin-bottom: 22px; }
.bl-footer__logo{ display: inline-block; margin-bottom: 22px; }
.bl-footer__logo-img{ height: 46px; width: auto; display: block; }

.bl-footer__address{
  color: var(--bl-text);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: normal;
}

.bl-footer__contacts{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.bl-footer__contacts a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--bl-text);
  transition: color .2s var(--bl-ease);
}
.bl-footer__contacts a:hover{ color: var(--bl-primary); }
.bl-footer__contacts i{
  color: var(--bl-text-mute);
  width: 18px;
  flex-shrink: 0;
}

.bl-footer__social{
  display: flex;
  gap: 8px;
}
.bl-footer__social a{
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: var(--bl-accent);
  color: var(--bl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--bl-ease);
  font-size: 14px;
}
.bl-footer__social a:hover{ background: var(--bl-accent-2); }

.bl-footer__title{
  font-family: var(--bl-display);
  font-size: var(--bl-fs-h4);
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--bl-text);
}
.bl-footer__menu{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0;
  margin: 0;
}
.bl-footer__menu a{
  font-size: 14.5px;
  color: var(--bl-text);
  transition: color .2s var(--bl-ease);
  display: inline-block;
  text-decoration: none;
}
.bl-footer__menu a:hover{ color: var(--bl-primary); }

.bl-footer__bottom{
  border-top: 1px solid var(--bl-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  color: var(--bl-text-mute);
  flex-wrap: wrap;
}
.bl-footer__powered a{
  color: var(--bl-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s var(--bl-ease);
}
.bl-footer__powered a:hover{ color: var(--bl-accent); }

/* ============ ПЛАВАЮЩИЕ КНОПКИ ============ */
/* WhatsApp: крупная, с пульсацией двумя кольцами */
.bl-wa-float{
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 55;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bl-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  text-decoration: none;
  transition: background .2s var(--bl-ease);
}
.bl-wa-float:hover{ background: #1EBE5A; }
.bl-wa-float i{ position: relative; z-index: 1; line-height: 1; }
.bl-wa-float::before,
.bl-wa-float::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bl-whatsapp);
  z-index: -1;
  animation: blWaPulse 2.4s cubic-bezier(.2,.6,.35,1) infinite;
}
.bl-wa-float::after{ animation-delay: 1.2s; }
@keyframes blWaPulse{
  0%{ transform: scale(1); opacity: .55; }
  100%{ transform: scale(1.75); opacity: 0; }
}

/* «Наверх»: кольцо заполняется по мере прокрутки страницы */
.bl-to-top{
  position: fixed;
  right: 22px;
  bottom: 104px; /* над виджетом GetButton */
  z-index: 55;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bl-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--bl-ease), transform .25s var(--bl-ease), visibility 0s linear .25s, background .2s var(--bl-ease);
}
.bl-to-top--visible{
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.bl-to-top:hover{ background: var(--bl-dark-2); }
.bl-to-top__ring{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.bl-to-top__track,
.bl-to-top__bar{ fill: none; stroke-width: 3; }
.bl-to-top__track{ stroke: rgba(255,255,255,.16); }
.bl-to-top__bar{ stroke: var(--bl-accent); stroke-linecap: round; }
.bl-to-top i{ position: relative; }

@media (prefers-reduced-motion: reduce){
  .bl-wa-float::before,
  .bl-wa-float::after{ animation: none; opacity: 0; }
}
@media (max-width: 560px){
  .bl-wa-float{ left: 14px; bottom: 16px; width: 58px; height: 58px; font-size: 32px; }
  .bl-to-top{ right: 14px; bottom: 92px; width: 46px; height: 46px; font-size: 15px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px){
  .bl-footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .bl-footer__grid{ grid-template-columns: 1fr; }
  .bl-footer__bottom{
    flex-direction: column;
    align-items: flex-start;
  }
}
