@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@900&display=swap");

.footer {
  box-sizing: border-box;
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 30px;
  padding: 32px 0 44px;
  border-top: 1px solid rgba(20, 18, 62, 0.09);
  color: #10163f;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: normal;
}

.footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 26px;
  letter-spacing: 0;
  text-decoration: none;
}

.footer .brand img {
  display: block;
  width: 34px;
  height: 34px;
  max-width: 100%;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(108, 71, 255, 0.16);
}

.footer .brand-word {
  font-family: "Nunito", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.footer .brand-pet { color: #000; }
.footer .brand-nid { color: #6c47ff; }

.footer p {
  margin: 18px 0 0;
  color: #4d5575;
  font-size: 13px;
}

.footer h4 {
  margin: 0 0 14px;
  color: #10163f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: #4d5575;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  text-decoration: none;
}

.footer a:not(.brand):hover { color: #6c47ff; }

.footer a.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 24px;
  line-height: 24px;
}

.footer a.social-link svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  transform: none;
}

@media (max-width: 980px) {
  .footer {
    width: min(100% - 36px, 760px);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
    padding: 24px 0 30px;
  }

  .footer > div:first-child { grid-column: 1 / -1; }
  .footer .brand { font-size: 22px; }
  .footer .brand img { width: 30px; height: 30px; }
  .footer p { margin-top: 10px; font-size: 12px; }
  .footer h4 { margin-bottom: 9px; font-size: 12px; }
  .footer a:not(.brand) { margin: 6px 0; font-size: 13px; }
}
