.site-footer {
  min-height: 718px;
  color: #fff;
  background: var(--color-footer);
}

.site-footer__inner {
  position: relative;
  min-height: 718px;
  padding-top: 252px;
  padding-bottom: 24px;
}

.site-footer__logo {
  position: absolute;
  top: 53px;
  left: 50%;
  width: 116px;
  height: 165px;
  transform: translateX(-50%);
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.newsletter {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 70px;
  align-items: start;
}

.newsletter h2 {
  margin: 0 0 106px;
  font-size: 38px;
  font-weight: 500;
  line-height: 30px;
  font-family: "Playfair Display SC", serif;
}

.newsletter__copy p {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.newsletter__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 12px;
}

.newsletter input[type="email"],
.newsletter button {
  height: 50px;
  border: 2px solid #59534e;
  border-radius: 3px;
  color: #fff;
  background: transparent;
}

.newsletter input[type="email"] {
  padding: 0 12px;
  font-size: 12px;
}

.newsletter input[type="email"]::placeholder {
  color: #c4c0bd;
}

.newsletter button {
  font-size: 20px;
  font-weight: 700;
}

.newsletter button:hover,
.newsletter button:focus {
  color: var(--color-footer);
  background: #fff;
  border-color: #fff;
}

.newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.newsletter__consent input {
  position: absolute;
  opacity: 0;
}

.newsletter__checkbox {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 0;
  border: 2px solid #aaa5a1;
  border-radius: 2px;
  color: transparent;
  font-size: 20px;
}

.newsletter__consent input:checked + .newsletter__checkbox {
  color: #fff;
  background: #382921;
}

.newsletter__consent input:focus-visible + .newsletter__checkbox {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.footer-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 78px;
}

.footer-navigation__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 72px);
  font-size: 16px;
  line-height: 18px;
}

.footer-navigation a:hover,
.footer-navigation a:focus,
.footer-legal a:hover,
.footer-legal a:focus {
  color: #fff;
  opacity: .66;
  
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
}

.instagram-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.instagram-link:hover,
.instagram-link:focus {
  color: #fff;
  opacity: .85;
}

.footer-contacts {
  display: grid;
  grid-template-columns: 250px 270px 220px minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 41px 0 0;
  color: var(--color-muted);
  font-size: 18px;
  font-style: normal;
  line-height: 25px;
}

.footer-contacts > a,
.footer-contacts > span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.footer-contact__icon,
.footer-contact__icon img {
  display: block;
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
}

.footer-contact__icon {
  opacity: .64;
}

.payment-methods {
  display: flex;
  gap: 8px;
}

.payment-methods > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 85px;
  height: 38px;
  padding: 0 9px;
  color: #111;
  background: #fff;
  font-size: 20px;
  white-space: nowrap;
}

.payment-methods img {
  display: block;
  width: 64px;
  height: 24px;
  object-fit: contain;
}

.payment-methods i {
  margin-right: 5px;
  color: #111;
  font-size: 19px;
}

.payment-methods b {
  font-weight: 400;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  margin-top: 42px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 18px;
}

.footer-legal nav,
.footer-legal__credits {
  display: flex;
  gap: 76px;
}

.footer-legal__credits {
  gap: 24px;
  font-size: 16px;
  line-height: 22px;
}
