/* ==========================================================================
   footer.css — підвал сайту
   ========================================================================== */

.footer {
  background: var(--navy-800);
  color: var(--white);
  padding-top: clamp(3rem, 1.5rem + 5vw, 5rem);
}

.footer__top {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);
}

@media (min-width: 760px) {
  .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1060px) {
  .footer__top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
}

.footer .logo { color: var(--white); }
.footer .logo__text span:first-child { color: var(--white); }
.footer .logo__text span:last-child { color: var(--gold); }

.footer__about {
  margin-top: 1.25rem;
  font-size: var(--fs-sm);
  color: var(--text-on-navy);
  max-width: 42ch;
}

.footer__socials { margin-top: 1.5rem; }

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer__list { display: grid; gap: 0.65rem; }

.footer__list a,
.footer__list span {
  font-size: var(--fs-sm);
  color: var(--text-on-navy);
  transition: color 0.25s var(--ease);
}

.footer__list a:hover { color: var(--gold); }

.footer__list address {
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--text-on-navy);
  line-height: 1.6;
}

.footer__bottom {
  display: grid;
  gap: 0.85rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.48);
}

@media (min-width: 760px) {
  .footer__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
  }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer__legal a { transition: color 0.25s var(--ease); }
.footer__legal a:hover { color: var(--gold); }

/* --- Кнопка «нагору» ------------------------------------------------------ */

.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 58, 0.5);
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
              visibility 0.3s, background-color 0.25s var(--ease),
              color 0.25s var(--ease);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy); }
