.home-footer {
  container-type: inline-size;
  margin-block-start: clamp(32px, 5vw, 56px);
  padding-block-start: 18px;
  border-block-start: 1px solid var(--line);
  font-size: 13px;
}

.home-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
}

.home-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  line-height: 1.3;
  text-decoration: none;
}

.home-footer__brand .brand-mark { flex: 0 0 32px; }
.home-footer__brand strong, .home-footer__brand small { display: block; }
.home-footer__brand strong { font-size: 14px; }
.home-footer__brand small { margin-block-start: 3px; color: var(--muted); font-size: 12px; }

.home-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-block-start: 10px;
}

.home-footer__up, .home-footer__links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--muted);
  line-height: 1.4;
  text-decoration: none;
}

.home-footer__up { gap: 6px; }
.home-footer__up:hover, .home-footer__links a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }

@container (max-width: 535px) {
  .home-footer__links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 12px; }
  .home-footer__links a { max-width: 100%; overflow-wrap: anywhere; }
}

@container (max-width: 250px) {
  .home-footer__links { grid-template-columns: 1fr; }
}

@media print { .home-footer { display: none; } }
