/**
 * Подвал и плавающие кнопки — как на главной-лендинге АУ.
 */

.fs-site-footer.footer {
  padding: 2.5rem 0 calc(4.25rem + env(safe-area-inset-bottom, 0px));
  background: #071526;
  color: rgba(255, 255, 255, 0.78);
}

.fs-site-footer.footer a {
  color: #d4af37;
  text-decoration: none;
}

.fs-site-footer.footer a:hover {
  color: #e2c56a;
  text-decoration: underline;
}

.fs-site-footer .footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 1.5rem;
}

.fs-site-footer .footer__brand {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.fs-site-footer .footer__grid > div > p {
  margin: 0 0 0.45rem;
  line-height: 1.55;
}

.fs-site-footer .footer__links {
  display: grid;
  gap: 0.45rem;
}

.fs-site-footer .footer__copy {
  margin: 1.5rem auto 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.fs-site-footer .footer__copy a {
  color: rgba(255, 255, 255, 0.55);
}

.fs-site-footer .footer__copy a:hover {
  color: #d4af37;
}

.float-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
}

/* Фиксированные блоки в начале body не должны раздувать высоту после подвала */
body > .float-bar,
body > .float-top {
  margin: 0;
}

.float-bar__btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(7, 21, 38, 0.28);
  transition: transform 0.2s ease;
}

.float-bar__btn:hover {
  transform: translateY(-2px) scale(1.04);
  color: #fff;
}

.float-bar__btn--max { background: linear-gradient(145deg, #4b7cf0, #2f5fd0); }
.float-bar__btn--vk { background: linear-gradient(145deg, #5b8fd9, #4a76a8); }
.float-bar__btn--wa { background: linear-gradient(145deg, #25d366, #128c7e); }
.float-bar__btn--tg { background: linear-gradient(145deg, #34b7f1, #229ed9); }

/* На внутренних страницах скрываем старые float-max, float-social и float-lead (как на лендинге) */
body:not(.fs-elementor-canvas) .float-max,
body:not(.fs-elementor-canvas) .float-social,
body:not(.fs-elementor-canvas) .float-lead {
  display: none !important;
}

@media (max-width: 900px) {
  .fs-site-footer .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .float-bar {
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
}
