/* Patička: tmavá plocha, odkazy a řádek s právy; mobil odkazy ve dvou sloupcích. */

.site-footer {
  flex: none;
  background: var(--st-surface-footer);
  color: var(--st-text-footer);
}

.site-footer__inner {
  max-width: 1248px;
  margin: 0 auto;
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--st-text-footer);
  text-decoration: none;
}

.site-footer__logo:hover {
  color: var(--st-text-footer);
}

.site-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  font-size: 15px;
  font-weight: 600;
}

.site-footer__links a {
  color: var(--st-text-footer);
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--st-line-footer);
  font-size: 14px;
  line-height: 20px;
  color: var(--st-text-footer-muted);
}

.site-footer__bottom a {
  color: var(--st-text-footer-muted);
}

.site-footer__bottom a:hover {
  color: var(--st-text-footer);
}

.site-footer__bottom a.site-footer__source {
  color: var(--st-accent);
}

/* Zjednodušená patička stránky 500: bez odkazů, jen řádek s právy. */
.site-footer--simple .site-footer__inner {
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 0;
}

.site-footer--simple .site-footer__bottom {
  padding-top: 0;
  border-top: 0;
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding: 40px 24px 32px;
  }

  .site-footer__links {
    display: flex;
    gap: 28px;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 20px;
  }

  .site-footer--simple .site-footer__inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }
}
