.site-footer {
  background: #001848;
  color: #fff;
}

.site-footer__main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 48px;
}

.site-footer__brand img {
  width: auto;
  height: 64px;
  display: block;
  margin-bottom: 20px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
}

.site-footer__brand p {
  max-width: 34ch;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer a,
.site-footer button {
  color: rgba(255, 255, 255, .74);
}

.site-footer a:hover,
.site-footer button:hover {
  color: #fff;
  text-decoration: none;
}

.site-footer__links a {
  font-size: 14px;
  line-height: 1.5;
  transition: color .15s ease;
}

.site-footer__instagram {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease;
}

.site-footer__instagram:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .4);
}

.site-footer__instagram svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.site-footer__bottom {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-footer__legal a,
.site-footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: rgba(255, 255, 255, .5) !important;
  transition: color .15s ease;
}

.site-footer__credit img {
  width: auto;
  height: 28px;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .8;
  transition: opacity .15s ease;
}

@media (min-width: 621px) {
  .site-footer__credit {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.site-footer__credit:hover {
  color: #fff !important;
}

.site-footer__credit:hover img {
  opacity: 1;
}

@media (max-width: 900px) {
  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-footer__main {
    padding: 48px 20px 32px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bottom {
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__legal {
    justify-content: flex-start;
    gap: 14px 22px;
  }
}
