#footer {
  max-width: 1200px;

  margin: 0 auto;

  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;

  display: grid;
  grid-template-columns: auto auto;
}

.footer-damsz-kft {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-emblem {
  width: 3rem;

  margin-right: 1rem;
}

.footer-left-side {
  justify-self: center;
  align-self: center;

  margin-left: 5rem;

  display: grid;
  grid-template-columns: repeat(6, auto);
  align-items: center;
  gap: 0.75rem;
}

.footer-left-side > * {
  width: max-content;
}

.footer-right-side {
  margin-left: auto;

  justify-self: center;
  align-self: center;

  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1.5rem;
}

.hsagroup-member-logo {
  width: 6rem;
}

@media (max-width: 1023px) {
  #footer {
    grid-template-columns: 1fr;
  }

  .footer-emblem {
    margin-right: 0.5rem;
  }

  .footer-left-side .fancy-square {
    display: none;
  }

  .footer-left-side {
    margin-left: 0;

    grid-template-columns: unset;
    grid-template-rows: repeat(4, auto);
    justify-items: center;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-right-side {
    margin-left: 0;

    padding-top: 1rem;
    padding-left: 0;
  }
}
