.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 162, 255, 0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 162, 255, 0.045), transparent 25rem),
    radial-gradient(circle at 88% 12%, rgba(169, 242, 56, 0.022), transparent 22rem),
    linear-gradient(180deg, #01020a 0%, #01020d 44%, #000108 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 4%, rgba(0, 162, 255, 0.44) 34%, rgba(169, 242, 56, 0.34) 66%, transparent 96%);
  opacity: 0.72;
}

.site-footer__container {
  padding-block: 68px 28px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) minmax(130px, 0.72fr) minmax(210px, 1fr) minmax(150px, 0.78fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.site-footer__brand {
  max-width: 370px;
}

.site-footer__logo-link {
  display: block;
  width: max-content;
  max-width: 100%;
}

.site-footer__logo {
  display: block;
  width: 182px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(1, 85, 233, 0.12));
}

.site-footer__description {
  max-width: 345px;
  margin: 20px 0 0;
  color: #aebddd;
  font-size: 0.94rem;
  line-height: 1.7;
}

.site-footer__domain {
  display: inline-block;
  margin-top: 14px;
  color: #7f94bd;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.site-footer__group {
  min-width: 0;
}

.site-footer__title {
  margin: 4px 0 18px;
  color: #eaf0f7;
  font-size: 0.92rem;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.site-footer__links {
  display: grid;
  justify-items: start;
  gap: 13px;
}

.site-footer__links a,
.site-footer__youtube {
  color: #9dadd0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.site-footer__links a {
  transition: color 160ms ease, transform 160ms ease;
}

.site-footer__links a:hover {
  color: #eef2f4;
  transform: translateX(2px);
}

.site-footer__links a:focus-visible,
.footer__cta:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  box-shadow: var(--shadow-focus);
}

.site-footer__youtube {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.site-footer__links a.site-footer__youtube:hover {
  transform: none;
}

.site-footer__youtube-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: #ff0033;
}

.site-footer__youtube-play {
  fill: #ffffff;
}

.site-footer__account .site-footer__links {
  margin-bottom: 22px;
}

.footer__cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(169, 242, 56, 0.34);
  border-radius: 999px;
  color: #061638;
  background: linear-gradient(180deg, #bcff52 0%, #a9f238 100%);
  box-shadow: 0 8px 22px rgba(139, 217, 32, 0.12);
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.footer__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(139, 217, 32, 0.18);
}

.site-footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(92, 129, 199, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #7387ad;
  font-size: 0.8rem;
  line-height: 1.5;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.site-footer__legal-separator {
  color: rgba(126, 151, 199, 0.52);
}

@media (max-width: 900px) {
  .site-footer__container {
    padding-block: 60px 26px;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 46px 56px;
  }

  .site-footer__brand {
    max-width: 390px;
  }

  .site-footer__bottom {
    margin-top: 48px;
  }
}

@media (max-width: 640px) {
  .site-footer__container {
    padding-block: 52px 24px;
  }

  .site-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .site-footer__brand {
    max-width: 100%;
  }

  .site-footer__description {
    max-width: 34rem;
    margin-top: 17px;
  }

  .site-footer__title {
    margin-bottom: 15px;
  }

  .site-footer__links {
    gap: 12px;
  }

  .site-footer__links a,
  .site-footer__youtube {
    min-height: 30px;
    align-items: center;
  }

  .footer__cta {
    width: min(100%, 280px);
    min-height: 44px;
  }

  .site-footer__bottom {
    margin-top: 42px;
    padding-top: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .site-footer__logo {
    width: 168px;
  }

  .site-footer__description {
    font-size: 0.9rem;
  }

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

/* 0.1.9-R6-R44 — Mobile footer centered compact two-column navigation */
@media (max-width: 560px) {
  .site-footer__container {
    padding-block: 34px 20px;
  }

  .site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 24px;
    align-items: start;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    display: flex;
    max-width: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer__logo-link {
    margin-inline: auto;
  }

  .site-footer__description {
    max-width: 22rem;
    margin-top: 12px;
    text-align: center;
    line-height: 1.55;
  }

  .site-footer__domain {
    margin-top: 8px;
  }

  .site-footer__group {
    text-align: center;
  }

  .site-footer__title {
    margin: 0 0 10px;
    text-align: center;
  }

  .site-footer__links {
    justify-items: center;
    gap: 6px;
  }

  .site-footer__links a,
  .site-footer__youtube {
    min-height: 26px;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
  }

  .site-footer__account {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__account .site-footer__links {
    margin-bottom: 10px;
  }

  .footer__cta {
    width: min(100%, 250px);
    min-height: 42px;
    margin-inline: auto;
  }

  .site-footer__bottom {
    margin-top: 26px;
    padding-top: 17px;
    align-items: center;
    gap: 7px;
    text-align: center;
  }

  .site-footer__copyright {
    text-align: center;
  }

  .site-footer__legal {
    justify-content: center;
    gap: 7px;
  }
}

/* 0.1.9-R6-R45 — Mobile footer vertical compaction refinement
   Scope: mobile only. Keeps the approved R44 two-column structure and visual
   styling while reducing only vertical whitespace between footer groups. */
@media (max-width: 560px) {
  .site-footer__container {
    padding-block: 26px 18px;
  }

  .site-footer__main {
    row-gap: 18px;
  }

  .site-footer__account .site-footer__links {
    margin-bottom: 8px;
  }

  .site-footer__bottom {
    margin-top: 20px;
    padding-top: 14px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__links a,
  .footer__cta {
    transition: none;
  }
}
