.page__footer {
  background: #f4f7f9;
  border-top: 1px solid #dfe5ea;
}

.page__footer .footer {
  padding: 38px 0 34px;
}

.page__footer .footer__row--balanced {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 1.05fr) minmax(170px, .9fr) minmax(190px, 1fr) minmax(250px, 1.25fr);
  gap: 42px;
  align-items: start;
}

.page__footer .footer__col {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}

.page__footer .footer__title {
  margin: 0 0 16px;
  color: #20252b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.page__footer .footer__title-link {
  color: inherit;
  text-decoration: none;
}

.page__footer .footer__title-link:hover,
.page__footer .footer__title-link:focus {
  color: #a78f00;
}

.page__footer .footer__items {
  margin: 0;
}

.page__footer .footer__item {
  margin: 0 0 8px;
  line-height: 1.4;
}

.page__footer .footer__link {
  color: #46515c;
  line-height: 1.4;
  text-decoration: none;
}

.page__footer .footer__link:hover,
.page__footer .footer__link:focus {
  color: #20252b;
  text-decoration: underline;
  text-decoration-color: #d8bf00;
  text-underline-offset: 3px;
}

.page__footer .footer-catalog__all {
  display: inline-flex;
  min-height: 38px;
  margin-top: 8px;
  padding: 8px 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8bf00;
  border-radius: 4px;
  background: #fff;
  color: #20252b;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.page__footer .footer-catalog__all:hover,
.page__footer .footer-catalog__all:focus {
  border-color: #c5ae00;
  background: #e0c900;
  color: #20252b;
  text-decoration: none;
}

.page__footer .footer-catalog__all .fa {
  font-size: 15px;
}

.page__footer .payment img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
}

.page__footer .footer__items--table .footer__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.page__footer .footer__items--table .footer__icon {
  margin-top: 2px;
}

.page__footer .footer__social {
  margin-top: 20px;
}

@media (max-width: 1199px) {
  .page__footer .footer__row--balanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 44px;
  }

  .page__footer .footer__col--contacts {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .page__footer .footer {
    padding: 26px 0 24px;
  }

  .page__footer .footer__row--balanced {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page__footer .footer__col,
  .page__footer .footer__col--contacts {
    grid-column: auto;
    padding: 20px 0;
    border-bottom: 1px solid #dfe5ea;
  }

  .page__footer .footer__col:first-child {
    padding-top: 0;
  }

  .page__footer .footer__col:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .page__footer .footer__title {
    margin-bottom: 13px;
    font-size: 16px;
  }

  .page__footer .footer-catalog__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
}

@media (max-width: 420px) {
  .page__footer .footer-catalog__items {
    grid-template-columns: 1fr;
  }
}
