/* Единый футер со всех страниц. Подключается из includes/footer.php последним. */
html body footer.footer {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 56px 0 48px;
  background: linear-gradient(0deg, #131313 0%, rgba(20, 20, 20, 0) 100%);
  color: #c7c7c7;
  border: none;
  box-shadow: none;
}

/* Главная (есть .hero): фон-картинка светлее, затемняем сильнее */
html body:has(.hero__title) footer.footer {
  padding-top: 96px;
  background: linear-gradient(0deg, #0d0d0d 0%, rgba(13, 13, 13, 0.94) 60%, rgba(13, 13, 13, 0) 100%);
}

html body footer.footer .footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Бренд */
html body footer.footer .footer__company {
  flex: 1 1 280px;
  max-width: 360px;
}

html body footer.footer .footer__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  font-synthesis: style;
  text-transform: uppercase;
  color: #fff;
}

html body footer.footer .footer__brand img,
html body footer.footer .footer__brand img.logo__icon,
html body footer.footer .footer__brand .logo__icon--footer {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block;
  flex: 0 0 48px;
}

/* Плашка из шапки (раздел «Логотип» в админке) */
html body footer.footer .footer__logo {
  display: inline-flex;
  align-items: center;
}

html body footer.footer .footer__plate {
  display: block;
  height: 44px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

html body footer.footer .footer__about {
  margin: 18px 0 0;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: #9a9a9a;
}

/* Колонки ссылок */
html body footer.footer .footer__cols {
  display: flex;
  gap: 48px;
  flex: 0 1 auto;
}

html body footer.footer .footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

html body footer.footer .footer__title {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

html body footer.footer .footer__col a {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #b4b4b4;
  text-decoration: none;
  transition: color 0.2s ease;
}

html body footer.footer .footer__col a:hover {
  color: #f96918;
}

html body footer.footer .footer__col a.footer__mail {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Справа: способы оплаты и соцсети */
html body footer.footer .footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

html body footer.footer .footer__pays {
  display: flex;
  gap: 8px;
}

html body footer.footer .footer__pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 36px;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #7d7d7d;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
  user-select: none;
}

html body footer.footer .footer__pay--visa {
  font-size: 15px;
  font-style: italic;
  font-synthesis: style;
  letter-spacing: 0.04em;
}

html body footer.footer .footer__pay--sbp {
  font-size: 13px;
  letter-spacing: 0.06em;
}

html body footer.footer .footer__socials {
  display: flex;
  gap: 10px;
}

html body footer.footer .footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #bdbdbd;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

html body footer.footer .footer__social:hover {
  color: #fff;
}

html body footer.footer .footer__social--tg:hover {
  background: #2aabee;
}

html body footer.footer .footer__social--vk:hover {
  background: #0077ff;
}

html body footer.footer .footer__social--forum:hover {
  background: #f96918;
}

@media (max-width: 1100px) {
  html body footer.footer .footer__inner {
    flex-wrap: wrap;
    gap: 36px 48px;
  }

  html body footer.footer .footer__company {
    flex-basis: 100%;
    max-width: none;
  }

  html body footer.footer .footer__aside {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  html body footer.footer {
    padding: 36px 0 32px;
  }

  /* Телефон: одна колонка, всё по левому краю, как у Majestic */
  html body footer.footer .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    text-align: left;
  }

  html body footer.footer .footer__brand {
    justify-content: flex-start;
  }

  html body footer.footer .footer__about {
    margin-top: 14px;
  }

  html body footer.footer .footer__cols {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
  }

  html body footer.footer .footer__col {
    align-items: flex-start;
    gap: 12px;
  }

  html body footer.footer .footer__title {
    margin-bottom: 4px;
  }

  html body footer.footer .footer__aside {
    align-items: flex-start;
    width: 100%;
  }

  /* Телефон, компактно: колонки ссылок сеткой 2×, оплата и соцсети одной строкой под линией */
  html body footer.footer,
  html body:has(.hero__title) footer.footer {
    padding: 32px 0 24px;
  }

  html body footer.footer .footer__inner {
    gap: 24px;
  }

  html body footer.footer .footer__plate {
    height: 34px;
  }

  /* мелкий серый текст на тёмном выглядел мыльным: чуть крупнее и светлее */
  html body footer.footer .footer__about {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
    color: #a3a3a3;
  }

  html body footer.footer .footer__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 16px;
  }

  html body footer.footer .footer__col {
    gap: 10px;
  }

  html body footer.footer .footer__title {
    margin-bottom: 2px;
    font-size: 13px;
  }

  html body footer.footer .footer__col a {
    font-size: 14px;
    color: #c2c2c2;
  }

  html body footer.footer .footer__aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  html body footer.footer .footer__pays {
    gap: 5px;
  }

  html body footer.footer .footer__pay {
    width: 44px;
    height: 30px;
    border-radius: 7px;
    font-size: 11px;
  }

  html body footer.footer .footer__pay--visa {
    font-size: 12px;
  }

  html body footer.footer .footer__pay--sbp {
    font-size: 10px;
  }

  html body footer.footer .footer__pay svg {
    width: 26px;
    height: 16px;
  }

  html body footer.footer .footer__socials {
    gap: 6px;
  }

  html body footer.footer .footer__social {
    width: 34px;
    height: 34px;
  }

  /* декоративный кружок блока «Начать играть» на телефоне съезжал под «Игрокам» */
  html body .play__circle--sm {
    display: none;
  }
}

html body footer.footer .footer__pays {
  display: grid;
  grid-template-columns: repeat(2, 66px);
  gap: 6px 8px;
}
html body footer.footer .footer__pay {
  width: 66px;
  height: 36px;
  background: #181818;
  border: 0;
  border-radius: 5px;
  color: #858585;
}
html body footer.footer .footer__pay--visa { font-size: 18px; letter-spacing: -.04em; }
html body footer.footer .footer__pay--mir { font-size: 19px; letter-spacing: -.06em; }
html body footer.footer .footer__pay svg { width: 34px; height: 23px; }
html body footer.footer .footer__pay--sbp svg { width: 47px; height: 26px; }
