html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > header,
body > main,
body > footer {
  width: 100%;
}

body > main {
  flex: 1 0 auto;
}

.sg-site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  background: linear-gradient(180deg, #071122 0%, #09162b 100%);
  color: #ffffff;
}

.sg-site-footer::before,
.sg-site-footer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.sg-site-footer::before {
  top: -140px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(47, 103, 246, 0.18) 0%, transparent 72%);
}

.sg-site-footer::after {
  right: -140px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.12) 0%, transparent 72%);
}

.sg-site-footer__container {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.sg-site-footer__top {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr;
  gap: 52px;
  padding: 76px 0 42px;
}

.sg-site-footer__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  padding: 12px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 255, 0.92) 100%);
  border: 1px solid rgba(126, 167, 255, 0.18);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sg-site-footer__logo img {
  width: 220px;
  max-width: 100%;
  display: block;
}

.sg-site-footer__text {
  margin: 0;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.9;
}

.sg-site-footer__title {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sg-site-footer__menu,
.sg-site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-site-footer__menu li,
.sg-site-footer__contact li {
  margin-bottom: 14px;
}

.sg-site-footer__menu a,
.sg-site-footer__contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.7;
  transition: color .25s ease, transform .25s ease;
}

.sg-site-footer__menu a:hover,
.sg-site-footer__contact a:hover {
  color: #7ea7ff;
  transform: translateX(4px);
}

.sg-site-footer__contact-label {
  display: block;
  margin-bottom: 4px;
  color: #7ea7ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sg-site-footer__contact-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.8;
}

.sg-site-footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.sg-site-footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.sg-site-footer__social a:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 103, 246, 0.34);
  background: linear-gradient(135deg, rgba(47, 103, 246, 0.22) 0%, rgba(255, 59, 59, 0.16) 100%);
}

.sg-site-footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sg-site-footer__bottom {
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sg-site-footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .sg-site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .sg-site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .sg-site-footer {
    margin-top: 56px;
  }

  .sg-site-footer__container {
    width: min(100%, calc(100% - 24px));
  }

  .sg-site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 58px 0 32px;
  }

  .sg-site-footer__logo img {
    width: 190px;
  }

  .sg-site-footer__title {
    font-size: 20px;
  }

  .sg-site-footer__text,
  .sg-site-footer__menu a,
  .sg-site-footer__contact a,
  .sg-site-footer__contact-text {
    font-size: 14px;
  }

  .sg-site-footer__bottom {
    padding: 18px 0 24px;
  }

  .sg-site-footer__bottom p {
    font-size: 13px;
  }
}
