footer {
  position: relative;
  background: linear-gradient(180deg, #0f141b, #0c1015 62%);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2.3rem 8%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto auto;
  align-items: center;
  gap: 1.1rem 2rem;
  font-size: 0.8rem;
  color: var(--gray-4);
}

footer::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,164,111,0.42), transparent);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  min-width: 0;
}

.footer-brand strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.footer-brand span {
  color: var(--gray-3);
  font-size: 0.76rem;
}

footer a {
  color: var(--gray-4);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

footer a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.footer-phone {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.footer-phone:hover {
  border-color: rgba(201,164,111,0.48);
  background: rgba(255,255,255,0.07);
}

@media (max-width: 860px) {
  footer {
    grid-template-columns: 1fr auto;
  }

  .footer-phone {
    justify-self: start;
  }
}

@media (max-width: 580px) {
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.95rem;
    padding-left: 6%;
    padding-right: 6%;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
  }

  .footer-phone {
    justify-self: center;
  }
}
