.qp-site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  clear: both;
  color: #bcc8ca;
  background: #0d2026;
  font-family: "DM Sans", "Roboto", sans-serif;
  line-height: 1.6;
}

.qp-footer-shell {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

.qp-footer-main {
  display: grid;
  grid-template-columns: 2fr repeat(3, 0.7fr);
  gap: 70px;
  padding-top: 68px;
  padding-bottom: 58px;
}

.qp-footer-brand a {
  display: inline-block;
}

.qp-footer-logo {
  width: 190px;
  height: auto;
  display: block;
}

.qp-footer-brand p {
  max-width: 330px;
  margin: 18px 0 0;
  color: #8fa1a5;
  font-size: 13px;
}

.qp-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
}

.qp-footer-links strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.qp-footer-links a {
  color: #bcc8ca;
  text-decoration: none;
  transition: color 160ms ease;
}

.qp-footer-links a:hover,
.qp-footer-links a:focus {
  color: #f9d7ce;
  text-decoration: none;
}

.qp-footer-bottom {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #71878c;
  font-size: 10px;
}

@media (max-width: 900px) {
  .qp-footer-main {
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 36px;
  }
}

@media (max-width: 700px) {
  .qp-footer-shell {
    width: min(100% - 38px, 560px);
  }

  .qp-footer-main {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px 22px;
    padding-top: 48px;
    padding-bottom: 42px;
  }

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

  .qp-footer-brand p {
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  .qp-footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .qp-footer-links:last-child {
    grid-column: 1 / -1;
  }

  .qp-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 18px 0;
  }
}
