.footer p {
  margin: 0;
}

.footer ul,
.footer ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer {
  width: 100%;
  background: #1a1f45;
}

.footer__container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 125px 20px 20px;
  box-sizing: border-box;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 41px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 74px;
  flex-shrink: 0;
}

.footer__logo {
  display: block;
}

.footer__logo img {
  display: block;
  width: 171px;
  height: 74px;
  max-width: none;
  object-fit: contain;
}

.footer__contact {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 192px;
  height: 20px;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}

.footer__contact img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.footer__nav {
  display: contents;
}

.footer__col {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 151px;
  gap: 17px;
  flex-shrink: 0;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.footer__heading {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
}

.footer__link {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
}

.footer__help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  flex-shrink: 0;
}

.footer__help .footer__heading {
  width: 163px;
  line-height: 21px;
  text-align: left;
}

.footer__help-text {
  width: 299px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 17.5px;
  text-align: left;
}

.footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 819px) minmax(0, 831px);
  grid-template-areas:
    "left right"
    "payments right";
  justify-content: space-between;
  column-gap: 121px;
  row-gap: 40px;
  padding-top: 40px;
  align-items: start;
}

.footer__bottom-left {
  grid-area: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__bottom-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer__license {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b5cf6;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  cursor: pointer;
}

.footer__social-btns {
  display: flex;
  align-items: center;
  gap: 58px;
}

.footer__social-btn {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  width: 138px;
  height: 45px;
  padding: 8px 19px 7px 8px;
  border-radius: 999px;
  background: #2f3a6e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  gap: 6px;
}

.footer__social-btn img {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.footer__lang {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  gap: 18px;
  height: 34px;
  margin-bottom: 16px;
  padding: 0 16px;
  border: 2px solid #ffffff;
  border-radius: 25px;
  background: #373e73;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.footer__lang svg {
  flex-shrink: 0;
  color: currentColor;
}

.footer__copy {
  box-sizing: border-box;
  width: 831px;
  max-width: 100%;
  min-height: 115px;
  color: #5e627c;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-align: right;
}

.footer__copy-link {
  color: inherit;
}

.footer__pay {
  grid-area: payments;
  align-self: end;
  width: 819px;
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
}

.footer__payments,
.footer__payments.footer__payments--payments-3 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 32px;
  margin: 0;
  gap: 24px;
}

.footer__payments li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 32px;
}

.footer__payments img {
  display: block;
  width: auto;
  height: auto;
  max-height: 32px;
  max-width: 107px;
  object-fit: contain;
}

@media (max-width: 1799px) {
  .footer__container {
    padding: 40px 40px 20px;
  }

  .footer__top {
    gap: clamp(24px, 3vw, 40px);
  }

  .footer__bottom {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(24px, 4vw, 80px);
  }

  .footer__copy {
    width: 100%;
  }

  .footer__pay {
    width: 100%;
  }

  .footer__payments,
  .footer__payments.footer__payments--payments-3 {
    width: 100%;
    height: auto;
    min-height: 32px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 24px);
  }
}

@media (max-width: 1439px) {
  .footer__container {
    padding: 40px 24px 20px;
  }

  .footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
    align-items: start;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__nav {
    display: flex;
    gap: 48px;
    grid-column: 1;
  }

  .footer__col {
    width: auto;
  }

  .footer__help {
    grid-column: 2;
    justify-self: end;
  }

  .footer__help .footer__heading,
  .footer__help-text {
    width: auto;
    max-width: 299px;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "payments";
    row-gap: 24px;
  }

  .footer__bottom-right {
    align-items: flex-start;
  }

  .footer__copy {
    min-height: 0;
    text-align: left;
  }

  .footer__social-btns {
    gap: 24px;
  }

  .footer__pay,
  .footer__payments {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .footer__container {
    padding: 32px 16px 24px;
  }

  .footer__top {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__nav {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    grid-column: auto;
  }

  .footer__help {
    grid-column: auto;
    justify-self: start;
  }

  .footer__bottom {
    padding-top: 28px;
  }
}

@media (max-width: 575px) {
  .footer__container {
    padding: 20px 15px;
  }

  .footer__brand {
    gap: 16px;
  }

  .footer__logo img {
    width: 118px;
    height: 49px;
  }

  .footer__heading,
  .footer__link,
  .footer__contact,
  .footer__help-text,
  .footer__lang,
  .footer__license,
  .footer__social-btn {
    font-size: 12px;
    line-height: 18px;
  }

  .footer__contact {
    width: auto;
    height: auto;
  }

  .footer__contact img {
    width: 15px;
    height: 15px;
  }

  .footer__copy {
    font-size: 10px;
    line-height: 16px;
  }

  .footer__social-btns {
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer__social-btn {
    width: auto;
    height: auto;
    padding: 8px 14px;
  }

  .footer__payments {
    gap: 12px;
  }

  .footer__payments img {
    max-height: 24px;
    max-width: 80px;
  }
}
