#site-footer {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 0%, rgba(67, 220, 205, 0.16), transparent 28%),
    linear-gradient(135deg, #071315, #0b2b2e 52%, #071315);
  border-top: 1px solid rgba(116, 235, 223, 0.16);
}

#site-footer::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.42;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.25fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(137, 245, 234, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(6, 20, 24, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.footer-bottom-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.footer-bottom-brand img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.footer-bottom-brand span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.footer-bottom-brand strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-bottom-brand small {
  color: rgba(229, 247, 245, 0.62);
  font-size: 0.78rem;
  line-height: 1.2;
}

.footer-link-groups {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
}

.footer-link-set {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 7px 15px;
}

.footer-link-set a {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(245, 255, 254, 0.78);
  background: transparent;
  font-size: 0.83rem;
  font-weight: 850;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-link-set-info a {
  min-height: auto;
  color: rgba(229, 247, 245, 0.58);
  font-size: 0.73rem;
}

.footer-link-set a:hover,
.footer-link-set a:focus-visible {
  color: #83f4ea;
  transform: translateY(-1px);
}

.footer-views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid rgba(116, 235, 223, 0.18);
  border-radius: 16px;
  color: #83f4ea;
  background: rgba(0, 0, 0, 0.18);
}

.footer-views svg,
.footer-social svg {
  width: 23px;
  height: 23px;
}

.footer-views span {
  display: grid;
  gap: 1px;
}

.footer-views strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
}

.footer-views small {
  color: rgba(229, 247, 245, 0.64);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(116, 235, 223, 0.18);
  border-radius: 16px;
  color: rgba(238, 255, 253, 0.86);
  background: rgba(255, 255, 255, 0.07);
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  color: #061315;
  border-color: rgba(124, 245, 231, 0.72);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  transform: translateY(-3px);
}

.footer-social-instagram:hover,
.footer-social-instagram:focus-visible {
  background: linear-gradient(135deg, #ff7a59, #d946ef 52%, #47d6c9);
}

.footer-social-mail:hover,
.footer-social-mail:focus-visible {
  background: linear-gradient(135deg, var(--cyan), var(--amber));
}

body.ui-theme-dark #site-footer {
  background:
    radial-gradient(circle at 12% 0%, rgba(67, 220, 205, 0.14), transparent 28%),
    linear-gradient(135deg, #061113, #082326 52%, #061113);
}

@media (max-width: 1040px) {
  .footer-bottom {
    grid-template-columns: minmax(190px, 0.9fr) minmax(280px, 1.1fr);
  }

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

@media (max-width: 640px) {
  #site-footer {
    padding: 12px 0 100px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .footer-bottom-brand {
    gap: 10px;
  }

  .footer-bottom-brand img {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .footer-bottom-brand strong {
    font-size: 0.92rem;
  }

  .footer-bottom-brand small {
    font-size: 0.7rem;
  }

  .footer-link-set {
    justify-content: flex-start;
    gap: 7px 11px;
  }

  .footer-link-set a {
    min-height: auto;
    padding: 0;
    font-size: 0.7rem;
  }

  .footer-link-set-info a {
    font-size: 0.62rem;
  }

  .footer-views {
    justify-content: flex-start;
    min-height: 40px;
    padding: 6px 11px;
  }

  .footer-views svg,
  .footer-social svg {
    width: 20px;
    height: 20px;
  }

  .footer-socials {
    gap: 6px;
  }

  .footer-social {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }
}
