.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-main {
  display: grid;
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 96px;
  padding-block: 56px 64px;
}

.footer-brand {
  display: flex;
  max-width: 30rem;
  flex-direction: column;
}

.footer-logo {
  display: inline-flex;
  width: fit-content;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 3.5rem;
  object-fit: contain;
}

.footer-statement {
  max-width: 42ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.footer-release {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  line-height: 1.8;
  text-transform: uppercase;
}

.footer-facts {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.85;
}

.footer-facts p {
  margin: 0 0 4px;
}

.footer-company {
  margin: auto 0 0;
  padding-top: 28px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.footer-right {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer-groups h2 {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.8;
  text-transform: uppercase;
}

.footer-groups ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.footer-groups li {
  margin: 0 0 12px;
}

.footer-groups a {
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-groups a:hover,
.footer-groups a:focus-visible {
  color: var(--fg);
}

.official-channels {
  display: flex;
  margin: auto 0 0 -12px;
  padding-top: 28px;
  gap: 4px;
}

.official-channel {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--fg);
  text-decoration: none;
}

.official-channel:hover,
.official-channel:focus-visible {
  background: var(--surface);
  outline: none;
}

.official-channel svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  width: min(100% - 3rem, 72rem);
  min-height: 60px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-right {
    padding-top: 0;
  }

  .official-channels {
    margin-top: 12px;
  }
}

@media (max-width: 600px) {
  .footer-main,
  .footer-bottom-inner {
    width: calc(100% - 3rem);
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom-inner {
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
