.footer {
  background: var(--y-color-primary);
}
.footer .container {
  padding-top: var(--y-space-32);
  padding-bottom: var(--y-space-32);
  margin: var(--y-space-0) auto;
  padding-left: var(--y-space-24);
  padding-right: var(--y-space-24);
  display: grid;
  grid-template-columns: 2fr auto auto auto;
  gap: var(--y-space-96);
}
footer .links {
  gap: var(--y-space-24);
}
.footer * {
  color: white;
}
.footer .logo {
  display: flex;
  align-items: center;
}
footer ul li a {
  display: flex;
  align-items: center;
  gap: var(--y-space-8);
  text-decoration: none;
  color: white;
  transition: color var(--y-transition), transform var(--y-transition);
  font-size: var(--y-text-sm);
  text-wrap: nowrap;
}
footer .imgs-row img {
  width: 100px;
  object-fit: contain;
}
footer .imgs-row {
  display: flex;
  gap: var(--y-space-8);
  padding-top: var(--y-space-20);
}
footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--y-space-22);
}
footer .main ul {
  gap: var(--y-space-22);
}
footer .main {
  padding-left: var(--y-space-24);
  justify-content: center;
}
:is(footer ul li a, .footer-links a):hover {
  color: var(--y-color-secondary);
  transform: translateX(-var(--y-space-2));
}
footer .logo a {
  background-color: transparent;
  border-radius: var(--y-space-8);
  display: grid;
  place-items: center;
  border-radius: var(--y-space-104);
}
.footer .logo img {
  width: 98px;
  object-fit: contain;
  cursor: pointer;
  margin-bottom: var(--y-space-16);
  filter: brightness(13);
  transition: all 0.3s ease;
}
.footer .logo img:hover {
  transform: scale(1.1);
}
.footer .main p {
  line-height: var(--y-space-36);
  font-size: var(--y-text-sm);
}
.footer-links {
  display: flex;
  justify-content: space-around;
  padding-block: var(--y-space-40);
}
.footer-links ul {
  list-style: none;
  gap: var(--y-space-28);
  display: grid;
  color: var(--y-color-bg);
}
.links h2 {
  color: var(--y-color-fg);
  padding-bottom: var(--y-space-12);
  border-bottom: 2px solid white;
  width: fit-content;
}

.footer-links a {
  color: var(--y-color-fg);
  transition: color var(--y-transition), transform var(--y-transition);
}

footer p {
  color: white;
  font-size: var(--y-text-sm);
}
footer li {
  display: flex;
  align-items: center;
  height: min-content;
}

@media (max-width: 768px) {
  .footer .container {
    padding-top: var(--y-space-32);
    padding-bottom: var(--y-space-32);
    grid-template-columns: repeat(1, 1fr);
  }

  .footer-links-container {
    justify-content: center;
    text-align: center;
    gap: var(--y-space-40);
    order: 1;
  }
  footer .main {
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  footer .links ul li a {
    justify-content: center;
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    order: 3;
    align-items: center;
  }

  .footer-contact {
    align-items: center;
    text-align: center;
    order: 2;
  }

  .footer-contact .map-image img {
    width: var(--y-space-280);
  }
  .footer {
    padding-inline: var(--y-space-18);
  }
  .footer .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--y-space-34);
  }

  footer .main ul {
    align-items: center;
  }
  .links {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--y-space-16);
    padding-block: var(--y-space-20);
  }

  .links ul {
    gap: var(--y-space-12);
    grid-template-columns: 1fr;
    text-align: center;
  }
  .links a {
    padding: var(--y-space-4) var(--y-space-8);
  }
  footer .links {
    gap: var(--y-space-24);
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .footer .links ul {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer .container {
    padding-top: var(--y-space-24);
    padding-bottom: var(--y-space-24);
    gap: var(--y-space-20);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .footer-top {
    gap: var(--y-space-24);
  }

  .footer-links-container {
    gap: var(--y-space-24);
  }

  .footer-links h4 {
    font-size: var(--y-text-md);
    margin-bottom: var(--y-space-12);
  }

  .footer-links ul {
    gap: var(--y-space-16);
  }

  .footer-links a {
    padding: var(--y-space-8) var(--y-space-16);
    font-size: var(--y-text-sm);
  }

  .footer-logo img {
    width: var(--y-space-80);
    height: var(--y-space-80);
  }

  .footer-contact .map-image img {
    width: 100%;
    max-width: var(--y-space-280);
  }

  .footer-contact h4 {
    font-size: var(--y-text-sm);
  }

  .footer-contact p {
    font-size: var(--y-text-sm);
  }
  .footer .main p {
    display: none;
  }
  .links h2 {
    display: none;
  }
  footer .links {
    padding: var(--y-space-0);
    justify-content: flex-start;
    align-items: flex-start;
  }
  footer .links ul {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  footer .container {
    grid-template-columns: repeat(1, 1fr);
  }
  footer .links:nth-child(2) {
    order: 2;
  }
  footer .links:nth-child(3) {
    order: 3;
  }
  footer .links:nth-child(4) {
    order: 1;
    border-bottom: 2px solid var(--y-color-fg);
    padding: var(--y-space-0);
    width: 100%;
  }
  .footer-links {
    flex-wrap: wrap;
    align-items: center;
    gap: var(--y-space-20);
    padding-block: var(--y-space-0);
  }

  .footer-links ul {
    gap: var(--y-space-16);
    text-align: center;
    padding-bottom: var(--y-space-24);
  }

  .footer-links a {
    padding: var(--y-space-6) var(--y-space-12);
    font-size: var(--y-text-sm);
  }

  footer p {
    margin-top: var(--y-space-16);
  }
}
