.footer {
  background-color: var(--color-gray-800);
  background-image: url("../img/footer/background.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  color: var(--color-white);
  padding: 15px 0 40px 0;
  position: relative;
  border-bottom: 4px solid var(--color-primary);
  font-family: var(--font-family-primary);
}

.footer__container {
  max-width: 1700px;
  margin: 0 auto;
  padding: 0 110px 80px 110px;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 110px;
  right: 110px;
  height: 1px;
  background: var(--color-gray-700);
}

.footer__main-content {
  display: grid;
  grid-template-columns: 295px 1fr 52px;
  gap: 80px;
  padding: 40px 0 60px 0;
  border-bottom: 1px solid var(--color-gray-700);
  margin-bottom: 22px;
}

.footer__left-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer__logo-img {
  height: 54px;
  width: auto;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.footer__center-column {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}

.footer__right-column {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 60px;
  align-items: flex-end;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.footer__columns:first-child {
  padding-left: 25px;
}

.footer__column-group {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.footer__title {
  font-family: var(--font-family-secondary);
  color: var(--color-secondary-light);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  margin-bottom: 25px;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 13px;
}

.footer__link {
  color: var(--color-gray-400);
  text-decoration: none;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-normal);
  cursor: pointer;
  text-wrap: wrap;
  line-height: var(--line-height-tight);
}

.footer__link:hover {
  color: var(--color-gray-700);
}

.footer__column--special .footer__special-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__special-link {
  font-family: var(--font-family-secondary);
  color: var(--color-secondary-light);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  text-decoration: none;
  text-transform: uppercase;
}

.footer__address,
.footer__phone,
.footer__email {
  color: var(--color-gray-700);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__phone a,
.footer__email a {
  text-decoration: underline;
}

.footer__city,
.footer__phone-label,
.footer__email-label {
  color: var(--color-gray-700);
}

.footer__address-full,
.footer__phone-number,
.footer__email-link {
  color: var(--color-white);
  text-decoration: none;
  font-style: normal;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
}

.footer__address-full {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__address-full span {
  display: block;
}

.footer__phone-numbers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__apps {
  position: absolute;
  bottom: -50px;
  display: flex;
  gap: 10px;
  align-items: center;
  align-self: flex-end;
}

.footer__app img {
  height: 41px;
  width: auto;
  transition: all 0.3s ease;
  max-width: none;
}

.footer__app:hover img {
  transform: scale(1.05);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  color: var(--color-white);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  color: var(--color-primary-hover);
  border-color: var(--color-white);
}

.footer_social-link-img {
  width: 32px;
  height: 32px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-gray-700);
}

.footer__bottom-left {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-tight);
  color: var(--color-gray-700);
}

.footer__legal-link {
  color: var(--color-gray-700);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.footer__legal-link:hover {
  color: var(--color-white);
}

.footer__design {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
  line-height: var(--line-height-tight);
  color: var(--color-gray-700);
}

.footer__design-link {
  color: var(--color-gray-700);
  transition: all 0.3s ease;
}

.footer__design-link:hover {
  color: var(--color-white);
}

@media (max-width: 1700px) {
  .footer__container {
    padding: 0 80px 50px 80px;
  }

  .footer::before {
    left: 80px;
    right: 80px;
  }

  .footer__main-content {
    display: grid;
    grid-template-columns: 228px 1fr 40px;
    gap: 40px;
  }

  .footer__columns {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__app img {
    height: 32px;
  }

  .footer__social-link {
    width: 40px;
    height: 40px;
  }

  .footer_social-link-img {
    width: 25px;
    height: 25px;
  }

  .footer__logo-img {
    height: 42px;
  }
}

@media (max-width: 1280px) {
  .footer__main-content {
    gap: 20px;
  }

  .footer__columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }
}

@media (max-width: 1024px) {
  .footer {
    padding: 22px 18px 80px 18px;
  }

  .footer__container {
    padding: 0;
  }

  .footer__main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 0 60px 0;
    margin-bottom: 20px;
  }

  .footer__left-column,
  .footer__right-column {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    gap: 15px;
  }

  .footer__center-column {
    display: none;
  }

  .footer__address-full {
    display: block;
    white-space: nowrap;
  }

  .footer__address-full span {
    display: inline;
  }

  .footer__apps {
    justify-content: center;
    align-self: center;
  }

  .footer__app img {
    height: 34px;
    width: auto;
  }

  .footer__social {
    flex-direction: row;
    gap: 11px;
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer__bottom-left {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .footer__phone,
  .footer__email,
  .footer__address {
    gap: 5px;
  }

  .footer__phone-numbers {
    flex-direction: row;
    align-items: center;
  }

  .footer__address-full,
  .footer__phone-number,
  .footer__email-link {
    font-size: 18px;
  }
}

@media (max-width: 370px) {
  .footer__address-full {
    display: block;
    white-space: wrap;
  }

  .footer__app img {
    height: 28px;
    width: auto;
  }

  .footer__phone-numbers {
    flex-direction: column;
  }
}
