.footer {
  background-color: var(--color-primary);
  color: var(--color-text-invert);
}

.footer-inner,
.footer-bottom-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  box-sizing: border-box;
}

.footer-main {
  padding-block: 60px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 30px;
  justify-items: center;
  align-items: start;
  text-align: center;
}

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

.footer-logo {
  width: var(--logo-width);
  height: var(--logo-height);
  background: var(--logo-main) center / contain no-repeat;
}

.footer-block {
  justify-self: center;
  text-align: center;
}

@media (min-width: 600px) and (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(2, max-content);
    column-gap: 120px;
    row-gap: 30px;
    justify-content: center;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns:
      auto
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr)
      minmax(0, 1fr);
    column-gap: 60px;
    align-items: center;
    text-align: left;
  }

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

  .footer-block {
    justify-self: end;
    text-align: left;
  }
}

.footer-bottom {
  padding-block: 15px;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

@media (max-width: 599px) {
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-copy,
  .footer-madeby {
    text-align: center;
  }
}

.footer-social-label {
  display: block;
  min-height: 3em;
}