/* =========================================================
   SITE FOOTER
========================================================= */

.site-footer {
  position: relative;

  margin-top: 88px;
  padding: 48px 0 28px;

  background: #0d0d16;

  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.footer-inner {
  display: grid;
  gap: 30px;
}

/* =========================================================
   FOOTER TOP
========================================================= */

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 48px;

  padding-bottom: 26px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* =========================================================
   BRAND
========================================================= */

.site-footer__brand {
  display: flex;
  align-items: center;

  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;

  width: fit-content;
  max-width: 168px;

  color: var(--text);

  font-size: 20px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.035em;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.footer-logo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer-logo__img,
.footer-logo img {
  display: block;

  width: auto;
  height: auto;
  max-width: 168px;
  max-height: 40px;

  margin: 0;

  border: 0;
  border-radius: 0;

  object-fit: contain;

  box-shadow: none;
}

/* =========================================================
   FOOTER NAVIGATION
========================================================= */

.footer-nav {
  min-width: 0;
}

.footer-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 28px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.footer-menu li {
  margin: 0;
  padding: 0;
}

.footer-menu a {
  display: inline-flex;
  align-items: center;

  min-height: 34px;

  color: rgba(255, 255, 255, 0.58);

  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-menu a::before,
.footer-menu a::after {
  display: none;
  content: none;
}

.footer-menu a:hover,
.footer-menu .current-menu-item > a {
  color: var(--text);
}

.footer-menu a:hover {
  transform: translateY(-1px);
}

/* =========================================================
   PROVIDER / PAYMENT LOGOS
========================================================= */

.site-footer__logos {
  display: grid;
  gap: 15px;
}

.site-footer__logos-title {
  margin: 0;

  color: rgba(255, 255, 255, 0.48);

  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer__logos-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.site-footer__logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 82px;
  min-height: 44px;
  padding: 8px 12px;

  background: rgba(255, 255, 255, 0.022);

  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.site-footer__logo-item:hover {
  background: rgba(255, 255, 255, 0.038);
  border-color: rgba(255, 255, 255, 0.12);

  transform: translateY(-1px);
}

.site-footer__logo-image,
.site-footer__logo-item img {
  display: block;

  width: auto;
  height: auto;
  max-width: 90px;
  max-height: 26px;

  margin: 0;

  border: 0;
  border-radius: 0;

  object-fit: contain;

  opacity: 0.66;

  transition:
    opacity 180ms ease,
    filter 180ms ease;
}

.site-footer__logo-item:hover .site-footer__logo-image,
.site-footer__logo-item:hover img {
  opacity: 0.95;
  filter: grayscale(0);
}

/* =========================================================
   LEGAL TEXT
========================================================= */

.site-footer__legal {
  max-width: 960px;

  color: rgba(255, 255, 255, 0.43);

  font-size: 12px;
  line-height: 1.75;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal p + p {
  margin-top: 10px;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.68);

  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;

  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.site-footer__legal a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

/* =========================================================
   FOOTER BOTTOM
========================================================= */

.site-footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;

  padding-top: 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* =========================================================
   RESPONSIBLE GAMBLING
========================================================= */

.site-footer__responsible {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 13px;

  max-width: 720px;
}

.site-footer__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  color: var(--accent);

  background: rgba(255, 49, 87, 0.055);

  border: 1px solid rgba(255, 49, 87, 0.14);
  border-radius: 50%;

  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.site-footer__responsible p {
  margin: 0;

  color: rgba(255, 255, 255, 0.45);

  font-size: 11px;
  line-height: 1.65;
}

/* =========================================================
   COPYRIGHT
========================================================= */

.site-footer__copyright,
.footer-copy {
  margin: 0;

  color: rgba(255, 255, 255, 0.4);

  font-size: 11px;
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .site-footer {
    margin-top: 70px;
    padding-top: 42px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-menu {
    justify-content: flex-start;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer__copyright,
  .footer-copy {
    text-align: left;
    white-space: normal;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .site-footer {
    margin-top: 54px;
    padding: 34px 0 22px;
  }

  .footer-inner {
    gap: 24px;
  }

  .site-footer__top {
    gap: 18px;
    padding-bottom: 21px;
  }

  .footer-logo,
  .footer-logo__img,
  .footer-logo img {
    max-width: 146px;
  }

  .footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;

    width: 100%;
  }

  .footer-menu a {
    min-height: 32px;

    font-size: 12px;
  }

  .site-footer__logos {
    gap: 12px;
  }

  .site-footer__logos-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .site-footer__logo-item {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 7px 9px;

    border-radius: 9px;
  }

  .site-footer__logo-image,
  .site-footer__logo-item img {
    max-width: 76px;
    max-height: 23px;
  }

  .site-footer__legal {
    font-size: 11px;
    line-height: 1.7;
  }

  .site-footer__bottom {
    gap: 18px;
    padding-top: 20px;
  }

  .site-footer__responsible {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
  }

  .site-footer__age {
    width: 38px;
    height: 38px;
  }

  .site-footer__responsible p {
    font-size: 10px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
  .footer-menu {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer__logos-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {
  .footer-logo:hover,
  .footer-menu a:hover,
  .site-footer__logo-item:hover {
    transform: none;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .footer-logo,
  .footer-menu a,
  .site-footer__logo-item,
  .site-footer__logo-image,
  .site-footer__logo-item img,
  .site-footer__legal a {
    transition: none;
  }
}
