.robotics-footer {
  overflow-x: clip;
  padding: 54px 0 25px;
  background: #fbfcfe;
}

.footer-container {
  width: min(calc(100% - 64px), 1440px);
  margin-inline: auto;
}

.robotics-footer__main {
  display: grid;
  padding-bottom: 45px;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: 80px;
}

.robotics-footer .robotics-brand__image {
  width: min(130px, 100%);
}

.robotics-footer__links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 24px;
}

.robotics-footer__links > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.robotics-footer h2 {
  margin: 0 0 3px;
  color: #0c131c;
  font-size: 1.08rem;
  font-weight: 500;
}

.robotics-footer a {
  position: relative;
  max-width: 100%;
  color: #6c7b8e;
  font-size: 1rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.robotics-footer a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.robotics-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.robotics-footer a:focus-visible {
  outline: 2px solid #72ace0;
  outline-offset: 4px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
}

.footer-socials a {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #edf1f6;
  color: #6c7b8e;
  transition: background 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}

.footer-socials a:hover {
  background: #0c131c;
  color: #fff;
  transform: translateY(-2px);
}

.footer-socials a::after {
  display: none;
}

.robotics-footer__legal {
  display: flex;
  min-height: 58px;
  padding-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  border-top: 1px solid #d9e1ea;
  color: #6c7b8e;
}

.robotics-footer__legal p {
  margin: 0;
  font-size: 0.98rem;
}

.robotics-footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 38px;
}

@media (max-width: 1200px) {
  .robotics-footer__main {
    gap: 48px;
  }

  .robotics-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
  }
}

@media (max-width: 900px) {
  .robotics-footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 620px) {
  .footer-container {
    width: min(calc(100% - 32px), 1440px);
  }

  .robotics-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 24px;
  }

  .robotics-footer__links > div:not(:nth-child(5)) {
    align-items: center;
    text-align: center;
  }

  .robotics-footer__links > div:nth-child(5) {
    width: 100%;
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .footer-socials {
    width: max-content;
    max-width: none;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
  }

  .robotics-footer__links > div:nth-child(5) .footer-socials a {
    width: 36px;
    height: 36px;
  }

  .footer-socials a {
    width: 34px;
    height: 34px;
  }

  .robotics-footer__legal {
    padding-block: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .robotics-footer__legal nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
  }
}
