.zq-footer {
  padding: clamp(54px, 7vw, 86px) 0 28px;
  color: #ffffff;
  background: #111111;
}

.zq-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(160px, 0.55fr) minmax(190px, 0.7fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.zq-footer__logo {
  display: inline-flex;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.zq-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.98rem;
  line-height: 1.6;
}

.zq-footer__brand p {
  max-width: 390px;
}

.zq-footer__nav,
.zq-footer__newsletter {
  display: grid;
  gap: 11px;
}

.zq-footer h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: 0;
}

.zq-footer__nav a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.96rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.zq-footer__nav a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.zq-footer__newsletter p {
  margin-bottom: 6px;
}

.zq-footer__form {
  display: flex;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.zq-footer__form input {
  min-width: 0;
  flex: 1;
  border: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 16px;
  font: inherit;
  outline: 0;
}

.zq-footer__form input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.zq-footer__form button {
  min-width: 112px;
  border: 0;
  color: #171717;
  background: #d6b88d;
  padding: 0 18px;
  font-weight: 760;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.zq-footer__form button:hover {
  background: #ffffff;
}

.zq-footer__form-message {
  margin-top: 10px !important;
  font-size: 0.9rem !important;
}

.zq-footer__form-message--error {
  color: #ffd6c9 !important;
}

.zq-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1199px) {
  .zq-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .zq-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .zq-footer__bottom {
    flex-direction: column;
  }

  .zq-footer__form {
    border-radius: 8px;
    flex-direction: column;
  }

  .zq-footer__form input,
  .zq-footer__form button {
    min-height: 52px;
    width: 100%;
  }
}
