.footer.site-footer {
  --footer-bg: #0b1423;
  --footer-surface: #121f33;
  --footer-line: #26354b;
  --footer-text: #f1f5fb;
  --footer-muted: #b0bdd0;
  --footer-accent: #8dbbff;
  margin-top: 48px;
  color: var(--footer-text);
  background: var(--footer-bg);
  border-top: 3px solid #2563eb;
  text-align: left;
  line-height: 1.6;
}
.footer.site-footer .site-footer__container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.site-footer a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2.6fr);
  gap: 64px;
  padding: 44px 0 32px;
}
.site-footer__brand,
.site-footer__group {
  min-width: 0;
}
.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  max-width: 100%;
}
.site-footer__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  background: #2563eb;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.site-footer__brand h2 {
  margin: 0;
  color: var(--footer-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
.site-footer__tagline {
  display: block;
  margin-top: 2px;
  color: var(--footer-muted);
  font-size: 12px;
}
.site-footer__brand p {
  margin: 18px 0 10px;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.9;
}
.site-footer .site-footer__about {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--footer-accent);
  font-size: 13px;
}
.site-footer__navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.site-footer__group h3 {
  margin: 3px 0 12px;
  color: var(--footer-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}
.site-footer__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__group li {
  margin: 0;
  padding: 0;
  cursor: default;
}
.site-footer__group a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.site-footer__cooperation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 22px 24px;
  background: var(--footer-surface);
  border: 1px solid var(--footer-line);
  border-radius: 12px;
}
.site-footer__cooperation-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.site-footer__cooperation-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--footer-accent);
  background: #1b3151;
  border-radius: 10px;
  font-size: 20px;
}
.site-footer__cooperation h3 {
  margin: 0 0 4px;
  color: var(--footer-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.site-footer__cooperation p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 8px;
  margin: 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.8;
}
.site-footer__cooperation p a {
  overflow-wrap: anywhere;
}
.site-footer__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.site-footer .site-footer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  color: var(--footer-text);
  background: transparent;
  border: 1px solid #4a5d77;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}
.site-footer .site-footer__button--primary {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}
.site-footer .site-footer__button:hover {
  color: #fff;
  background: #203451;
  border-color: #7195c8;
}
.site-footer .site-footer__button--primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
.site-footer .footer-friends {
  display: flex;
  align-items: flex-start;
  gap: 12px 28px;
  padding: 18px 0;
  border-top: 1px solid var(--footer-line);
  border-bottom: 0;
}
.site-footer .footer-friends-head {
  flex-shrink: 0;
  min-height: 44px;
}
.site-footer .footer-friends-head h3 {
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.site-footer .footer-friends-head span {
  display: none;
}
.site-footer .footer-friends-list {
  gap: 0 24px;
  min-width: 0;
}
.site-footer .footer-friends-list a {
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  color: var(--footer-muted);
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  transform: none;
}
.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.8;
}
.site-footer__legal p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
}
.site-footer__legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  min-width: 0;
}
.site-footer__legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.site-footer a:hover {
  color: #fff;
}
@media (max-width: 1100px) {
  .site-footer__main {
    grid-template-columns: minmax(200px, 0.85fr) minmax(0, 2.6fr);
    gap: 32px;
  }
  .site-footer__navigation {
    gap: 20px;
  }
  .site-footer__cooperation {
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  .footer.site-footer .site-footer__container {
    padding: 0 28px;
  }
  .site-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
  }
  .site-footer__brand p br {
    display: none;
  }
  .site-footer__brand p {
    margin: 12px 0 0;
  }
}
@media (max-width: 600px) {
  .footer.site-footer {
    margin-top: 32px;
  }
  .footer.site-footer .site-footer__container {
    padding: 0 20px;
  }
  .site-footer__main {
    padding: 28px 0;
    gap: 24px;
  }
  .site-footer__brand h2 {
    font-size: 20px;
  }
  .site-footer__brand p {
    max-width: 330px;
  }
  .site-footer__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
  .site-footer__group h3 {
    margin: 0 0 8px;
    color: var(--footer-accent);
  }
  .site-footer__cooperation {
    display: block;
    margin-bottom: 24px;
    padding: 20px;
  }
  .site-footer__cooperation-copy {
    align-items: flex-start;
  }
  .site-footer__cooperation-icon {
    display: none;
  }
  .site-footer__cooperation h3 {
    font-size: 15px;
  }
  .site-footer__cooperation p {
    display: block;
    margin-top: 8px;
  }
  .site-footer__cooperation p span {
    display: none;
  }
  .site-footer__cooperation p a {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    color: var(--footer-accent);
  }
  .site-footer__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 56px);
    gap: 10px;
    margin-top: 16px;
  }
  .site-footer .site-footer__button {
    padding: 10px 8px;
    gap: 8px;
    font-size: 13px;
  }
  .site-footer .footer-friends {
    display: grid;
    gap: 0;
    padding: 12px 0;
  }
  .site-footer .footer-friends-list {
    gap: 0 20px;
  }
  .site-footer__legal {
    display: block;
    padding-top: 18px;
  }
  .site-footer__legal p {
    display: grid;
    gap: 4px;
  }
  .site-footer__legal-links {
    gap: 0 16px;
    margin-top: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer a {
    transition: none;
  }
}
