.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.65fr) minmax(280px, 1fr);
}

.footer__item {
  width: auto;
  min-width: 0;
}

.footer #menu-bootom ul,
.footer #menu-bootom li {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
.footer-contacts__title {
  margin: 0 0 25px;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
}

.footer-contacts__list {
  display: grid;
  gap: 14px;
}

.footer-contacts__link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff !important;
  font-size: 18px;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contacts__link:visited {
  color: #fff !important;
}

.footer-contacts__link svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: #fff !important;
}

.footer-contacts__link span {
  min-width: 0;
}

.footer-contacts__link small {
  display: block;
  margin-bottom: 3px;
  color: #a7a7a7;
  font-size: 12px;
  line-height: 1.2;
}

.footer-contacts__link:hover,
.footer-contacts__link:focus-visible {
  color: #d8d8d8;
}

.footer-contacts__messengers {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.footer-contacts__messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.footer-contacts__messenger:hover,
.footer-contacts__messenger:focus-visible {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.footer-contacts__messenger img,
.footer-contacts__messenger svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
}

.footer-contacts__messenger svg {
  fill: currentColor;
}

.footer-contacts__messenger--max {
  background: linear-gradient(110deg, #471aff 0%, #6e1aff 38%, #9500ff 68%, #00bfff 125%);
}

@media (max-width: 991px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
  }

  .footer__item:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .footer__item {
    width: 100%;
  }

  .footer__inner {
    display: flex;
    gap: 40px;
  }

  .footer__item:nth-child(2) {
    order: 1;
  }

  .footer__item--contacts {
    order: 2;
  }

  .footer__item:first-child {
    order: 3;
  }

  .footer-contacts__title {
    font-size: 24px;
  }

  .footer-contacts__messenger {
    width: 100%;
  }
}