.site-footer {
  margin-top: 72px;
  padding: 38px 0 24px;

  background: #090e15;
  border-top: 1px solid var(--line);
}

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

/* Top row */

.site-footer__top {
  padding-bottom: 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  border-bottom: 1px solid var(--line);
}

/* Logo */

.footer-logo {
  flex: 0 0 auto;
}

.footer-logo__img {
  display: block;

  width: auto;
  max-width: 156px;
  height: auto;
  max-height: 42px;

  object-fit: contain;
}

/* Navigation */

.footer-nav {
  flex: 1;
}

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

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 22px;

  list-style: none;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;

  transition: color 0.2s ease;
}

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

/* =========================================================
   Footer sections
   ========================================================= */

.site-footer__section {
  padding: 0 0 20px;

  border-bottom: 1px solid var(--line);
}

.site-footer__section-title {
  position: relative;

  margin: 0 0 14px;
  padding-left: 12px;

  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__section-title::before {
  content: '';

  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;

  width: 3px;

  background: var(--accent);
  border-radius: 999px;
}

/* =========================================================
   Footer logos
   ========================================================= */

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

.site-footer__logo-item {
  width: 104px;
  height: 52px;
  padding: 9px 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--bg-soft);

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

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 20px rgba(0, 0, 0, 0.1);

  overflow: hidden;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.site-footer__logo-item:hover {
  transform: translateY(-2px);

  background: linear-gradient(180deg, rgba(255, 45, 135, 0.08), rgba(157, 78, 221, 0.025)), var(--bg-soft);

  border-color: rgba(255, 45, 135, 0.24);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.site-footer__logo-img {
  display: block;

  width: 100%;
  max-width: 82px;
  height: 100%;
  max-height: 30px;

  object-fit: contain;
  object-position: center;

  /* filter: grayscale(1); */
  opacity: 0.76;

  transition:
    filter 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.site-footer__logo-item:hover .site-footer__logo-img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

/* Legal text */

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

  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.7;
}

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

.site-footer__legal p:last-child {
  margin-bottom: 0;
}

.site-footer__legal a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;

  transition: color 0.2s ease;
}

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

/* Bottom row */

.site-footer__bottom {
  padding-top: 2px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  margin: 0;

  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer__responsible {
  max-width: 720px;

  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.45;
}

.site-footer__age {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-size: 11px;
  font-weight: 900;

  background: rgba(255, 49, 90, 0.06);
  border: 1px solid rgba(255, 49, 90, 0.42);
  border-radius: 50%;
}

/* Tablet */

@media (max-width: 768px) {
  .site-footer {
    margin-top: 52px;
    padding: 32px 0 22px;
  }

  .site-footer__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

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

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .site-footer__badges {
    gap: 8px;
  }
}

/* Mobile */

@media (max-width: 520px) {
  .site-footer {
    margin-top: 38px;
    padding-top: 28px;
  }

  .footer-inner {
    gap: 20px;
  }

  .footer-logo__img {
    max-width: 132px;
    max-height: 36px;
  }

  .footer-nav {
    width: 100%;
  }

  .footer-menu {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 16px;
  }

  .footer-menu a {
    font-size: 12px;
  }

  .site-footer__section {
    padding-bottom: 18px;
  }

  .site-footer__section-title {
    margin-bottom: 12px;
  }

  .site-footer__badges {
    gap: 7px;
  }

  .site-footer__badge {
    min-height: 32px;
    padding: 7px 11px;

    font-size: 11px;
    border-radius: 8px;
  }

  .site-footer__legal {
    font-size: 11.5px;
    line-height: 1.65;
  }

  .footer-copy,
  .site-footer__responsible {
    font-size: 11.5px;
  }

  .site-footer__age {
    flex-basis: 32px;

    width: 32px;
    height: 32px;
  }
}

@media (hover: none) {
  .site-footer__badge:hover {
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.085);
    transform: none;
  }
}
