div#app {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  /* min-height: 100vh; */
  min-height: 100dvh;
}

div#app > main.main {
  flex: 1 0 auto;
}

div#app > .footer {
  flex-shrink: 0;
}

#app > .footer {
  padding: 0;
  background: #fff;
}

#app > .footer .footer__inner {
  border-top: 1px solid #e8ebf0;
}

#app > .footer .footer__row {
  display: flex;
  align-items: center;
}

#app > .footer .footer__row--top {
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 24px;
}

#app > .footer .footer__row--bottom {
  padding: 16px 0 24px;
  border-top: 1px solid #f0f2f5;
}

#app > .footer .footer__logo-link {
  display: block;
  flex-shrink: 0;
  width: 81.584px;
  margin: 0;
}

#app > .footer .footer__logo {
  display: block;
  width: auto;
  height: 26.786px;
  max-width: 100%;
  max-height: none;
}

#app > .footer .footer__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  min-width: 0;
}

#app > .footer .footer__link {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0;
  font-family: var(--ruqi-font-family);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  color: #6b7380;
  white-space: nowrap;
}
#app > .footer .footer__link:hover {
  color: var(--ruqi-color-primary, #1735f5);
  text-decoration: none;
}

#app > .footer .footer__copy {
  display: inline-block;
  font-family: var(--ruqi-font-family);
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
  color: #8c94a3;
}

@media (max-width: 1179.98px) {
  #app > .footer .footer__row--top {
    display: block;
    padding: 28px 0 24px;
  }
  #app > .footer .footer__logo-link {
    margin-bottom: 20px;
  }
  #app > .footer .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 14px 24px;
    align-content: start;
    justify-content: start;
    justify-items: start;
  }
  #app > .footer .footer__link {
    white-space: normal;
  }
  #app > .footer .footer__link:last-child {
    grid-row: 3;
    grid-column: 1;
  }
  #app > .footer .footer__row--bottom {
    padding: 16px 0 20px;
  }
}
