.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__layout {
  display: grid;
  width: 100%;
  grid-template-columns: 232px max-content max-content minmax(260px, 1fr);
  grid-template-areas:
    "brand spiele about aside"
    "actions . . aside";
  justify-content: stretch;
  align-items: start;
  column-gap: 85px;
  row-gap: 48px;
  margin-bottom: 35px;
}

.footer__layout--no-menu-2 {
  grid-template-columns: 232px max-content minmax(260px, 1fr);
  grid-template-areas:
    "brand spiele aside"
    "actions . aside";
}

.footer__layout--no-menu-1 {
  grid-template-columns: 232px max-content minmax(260px, 1fr);
  grid-template-areas:
    "brand about aside"
    "actions . aside";
}

.footer__layout--no-menu-1.footer__layout--no-menu-2 {
  grid-template-columns: 232px minmax(260px, 1fr);
  grid-template-areas:
    "brand aside"
    "actions aside";
}

.footer__brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  width: 232px;
}

.footer__logo {
  display: block;
  margin-bottom: 30px;
}

.footer__logo img {
  display: block;
  width: 118px;
  height: 49px;
  max-width: none;
}

.footer__brand-name {
  width: 171px;
  margin-bottom: 30px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
}

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

.footer__col--spiele {
  grid-area: spiele;
}

.footer__col--about {
  grid-area: about;
}

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

.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__aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  max-width: none;
  text-align: right;
}

.footer__help {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 16px;
  text-align: right;
}

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

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

.footer__lang {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #252b52;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.footer__copy {
  width: 100%;
  max-width: 518px;
  margin-top: auto;
  padding-top: 48px;
  color: #5e627c;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  text-align: right;
}

.footer__copy-link {
  color: inherit;
}

.footer__brand-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: max-content;
  align-self: end;
}

.footer__license {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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: var(--footer-social-btn-bg, #2f3a6e);
  color: var(--footer-social-btn-text, #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__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4.7vw, 90px);
  width: 100%;
  max-width: 1542px;
  margin: 0 auto;
  box-sizing: border-box;
}

.footer__payments li {
  flex-shrink: 0;
}

.footer__payments img {
  display: block;
  width: auto;
  height: auto;
  max-height: 35px;
  max-width: 132px;
}

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

  .footer__layout {
    grid-template-columns: 232px max-content max-content minmax(260px, 1fr);
    column-gap: 40px;
  }

  .footer__layout--no-menu-2 {
    grid-template-columns: 232px max-content minmax(260px, 1fr);
  }

  .footer__layout--no-menu-1 {
    grid-template-columns: 232px max-content minmax(260px, 1fr);
  }

  .footer__layout--no-menu-1.footer__layout--no-menu-2 {
    grid-template-columns: 232px minmax(260px, 1fr);
  }

  .footer__aside {
    width: 100%;
    max-width: none;
  }

  .footer__copy {
    width: 100%;
    max-width: 518px;
  }

  .footer__help-text {
    width: 100%;
    max-width: 299px;
    height: auto;
  }
  .footer__payments {
    justify-content: center;
    gap: clamp(16px, 3vw, 48px);
  }
}

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

  .footer__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand aside"
      "spiele about"
      "actions actions";
    justify-content: start;
    column-gap: 32px;
    row-gap: 32px;
  }

  .footer__layout--no-menu-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand aside"
      "spiele spiele"
      "actions actions";
  }

  .footer__layout--no-menu-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand aside"
      "about about"
      "actions actions";
  }

  .footer__layout--no-menu-1.footer__layout--no-menu-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand aside"
      "actions actions";
  }

  .footer__brand {
    width: auto;
  }

  .footer__aside {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .footer__copy {
    width: 100%;
    max-width: none;
  }

  .footer__social-btns {
    gap: 24px;
  }

  .footer__payments {
    gap: clamp(12px, 2.5vw, 32px) clamp(16px, 3vw, 48px);
  }
}

@media (max-width: 991px) {
  .footer__container {
    padding: 40px 15px 30px;
  }

  .footer__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "spiele"
      "about"
      "aside"
      "actions";
    row-gap: 30px;
  }

  .footer__brand {
    width: auto;
  }

  .footer__aside {
    width: 100%;
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }

  .footer__help {
    align-items: flex-start;
    text-align: left;
  }

  .footer__help-text {
    width: 100%;
    max-width: none;
    height: auto;
    text-align: left;
  }

  .footer__copy {
    width: 100%;
    max-width: none;
    padding-top: 24px;
    text-align: left;
  }
}

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

  .footer__heading,
  .footer__link,
  .footer__contact,
  .footer__brand-name,
  .footer__help-text,
  .footer__lang,
  .footer__license,
  .footer__social-btn {
    font-size: 10px;
    line-height: 24px;
  }

  .footer__brand-name {
    width: auto;
    margin-bottom: 16px;
    line-height: 24px;
  }

  .footer__logo {
    margin-bottom: 16px;
  }

  .footer__contact {
    gap: 5px;
  }

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

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

  .footer__payments {
    gap: clamp(12px, 4vw, 24px);
  }

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

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