.site-footer__top {
  background: #363636 url("/images/footer/footer-img-1.jpg") center center;
  color: var(--color-muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  padding: 91px 0 77px;
}

.footer-widget__title {
  margin-bottom: 34px;
  color: #fff;
  font-size: 21px;
  line-height: 1.29em;
}

.footer-widget__text {
  color: #fff;
  font: italic 300 16px/26px var(--font-heading);
}

.footer-widget__text a {
  color: var(--color-muted);
}

.footer-widget__text a:hover,
.footer-contacts a:hover {
  color: #fff;
}

.footer-contacts {
  margin-top: 45px;
}

.footer-social-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  font: italic 300 16px/26px var(--font-heading);
}

.footer-social-list a {
  color: var(--color-muted);
  transition: color 0.2s;
}

.footer-social-list a:hover {
  color: #fff;
}

.footer-contacts li {
  display: flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 20px;
  color: #fff;
  font: italic 300 15px/26px var(--font-heading);
}

.footer-contacts .icon {
  flex: none;
  margin-right: 32px;
  font-size: 21px;
}

.footer-contacts a {
  color: inherit;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  max-width: 327px;
  margin-top: 45px;
  margin-bottom: 31px;
}

.newsletter__input {
  flex: 1;
  height: 43px;
  padding: 11px 20px 11px 0;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  border-radius: 0;
  background: transparent;
  color: rgb(255 255 255 / 50%);
  font: 300 15px/20px var(--font-body);
}

.newsletter__input::placeholder {
  color: rgb(255 255 255 / 50%);
}

.newsletter__input:focus {
  color: #fff;
  outline: none;
}

.newsletter__button {
  height: 43px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
  background: transparent;
  color: #fff;
  font-size: 19px;
}

.newsletter__status {
  flex-basis: 100%;
  margin-top: 10px;
  color: #fff;
  font: italic 300 15px/24px var(--font-heading);
}

.newsletter__status:empty {
  display: none;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7.5px;
  margin-top: 40px;
}

.instagram-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.site-footer__bottom {
  background: #181818 url("/images/footer/footer-bottom-img-2.png") center center;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 19px 0;
}

.footer-social {
  display: flex;
  gap: 45px;
}

.footer-social a {
  color: #fff;
  font: italic 300 15px/25px var(--font-body);
}

.footer-social a:hover {
  color: var(--color-hover-light);
}

@media (max-width: 1024px) {
  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .footer-social {
    justify-content: flex-end;
  }
}

@media (max-width: 680px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
}

@media (max-width: 599px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
