.site-footer {
  position: relative;
  overflow: hidden;
  background: #07131f;
  color: #b9c6d3;
}
.site-footer:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #d51f2a 0 23%, #8f1119 23% 30%, #d51f2a 30% 100%);
}
.site-footer:after {
  content: "P";
  position: absolute;
  right: -35px;
  bottom: -185px;
  color: rgba(255,255,255,.018);
  font-size: 34rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
.site-footer .footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr .9fr .9fr 1fr;
  gap: 64px;
  padding-top: 82px;
  padding-bottom: 72px;
}
.footer-company { max-width: 330px; }
.site-footer .footer-logo {
  display: block;
  width: 220px;
  height: auto;
  margin-bottom: 30px;
  filter: none;
  opacity: 1;
}
.footer-company p,
.footer-contact p {
  margin: 0;
  color: #c4cfda;
  font-size: .98rem;
  line-height: 1.8;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer h3 {
  margin: 0 0 13px;
  color: #fff;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.site-footer .footer-links a {
  display: table;
  position: relative;
  margin: 7px 0;
  color: #aebdca;
  font-size: .92rem;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus {
  color: #fff;
  transform: translateX(4px);
}
.footer-contact {
  padding: 26px 0 0 30px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.footer-contact:before {
  content: "Our office";
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.site-footer .footer-phone {
  display: inline-flex;
  margin-top: 27px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 720;
  text-decoration: none;
  border-bottom: 2px solid #d51f2a;
}
.site-footer .footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.12);
}
.site-footer .footer-bottom .wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #8293a4;
  font-size: .8rem;
}
.legal-links { display: flex; align-items: center; gap: 22px; }
.site-footer .legal-links a {
  margin: 0;
  color: #aebdca;
  text-decoration: none;
}
.site-footer .legal-links a:hover,
.site-footer .legal-links a:focus { color: #fff; }

@media (max-width: 980px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 42px;
  }
  .footer-contact {
    grid-column: 1 / -1;
    padding: 28px 0 0;
    border-top: 1px solid rgba(255,255,255,.12);
    border-left: 0;
  }
}
@media (max-width: 700px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    padding-top: 66px;
  }
  .footer-company { grid-column: 1 / -1; max-width: 440px; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-company,
  .footer-contact { grid-column: auto; }
  .site-footer .footer-bottom .wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    gap: 6px;
  }
}
