.contact-footer {
  border-top: 1px solid var(--line, #dce3ec);
  background: #fff;
}

.site-footer.contact-footer {
  display: block;
  padding: 0;
  text-align: left;
}

.contact-footer .footer-inner {
  width: min(1160px, calc(100% - 36px));
  min-height: auto;
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 28px;
  align-items: start;
  color: var(--muted, #5f6b7a);
  font-size: 0.94rem;
}

.contact-footer h2,
.contact-footer h3 {
  margin: 0 0 12px;
  color: var(--ink, #0f172a);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.contact-footer p {
  margin: 0;
  line-height: 1.65;
}

.contact-footer a {
  color: inherit;
  text-decoration: none;
}

.contact-footer a:hover {
  color: var(--blue, #2563eb);
}

.footer-list,
.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links {
  justify-content: start;
  font-weight: 800;
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line, #dce3ec);
  color: var(--muted, #5f6b7a);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-footer .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .contact-footer {
    background: #f8fafc;
  }

  .contact-footer .footer-inner {
    width: min(100% - 24px, 1160px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0 22px;
  }

  .contact-footer .footer-inner > section,
  .contact-footer .footer-inner > nav {
    padding: 16px;
    border: 1px solid var(--line, #dce3ec);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  }

  .contact-footer h2,
  .contact-footer h3 {
    margin-bottom: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .footer-list {
    gap: 8px;
  }

  .footer-list a,
  .footer-links a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--line, #dce3ec);
    border-radius: 8px;
    background: #f8fafc;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer-links h3 {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .footer-note {
    margin-top: 4px;
    padding: 16px 8px 0;
    line-height: 1.5;
  }
}
