/* Page chrome: sticky header and footer. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid rgba(224, 233, 229, 0.8);
}
.bar { display: flex; align-items: center; gap: 0.75rem; min-height: 68px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 10px; box-shadow: var(--shadow-sm); }
nav { display: flex; gap: 0.15rem; margin-inline-start: auto; }
nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
nav a:hover { color: var(--brand); background: var(--tint); }

@media (max-width: 860px) {
  nav { display: none; }
  .lang { margin-inline-start: auto; }
}
/* Small phones: the header download button shows its icon only (label stays for screen readers). */
@media (max-width: 420px) {
  .bar .sm { width: 44px; min-height: 44px; padding: 0; }
  .bar .sm [lang] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Footer */
.foot {
  margin-top: var(--space-section);
  padding-block: 3.5rem 2rem;
  background: var(--tint);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 1.5rem; }
.foot-about { grid-column: 1 / -1; }
.foot-about p { margin: 1rem 0 0; max-width: 22rem; }
.foot h2 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  text-align: start;
}
html[lang="en"] .foot h2 { letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot ul a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.foot ul a:hover { color: var(--brand); text-decoration: underline; }
.foot ul .ico { width: 1.05em; height: 1.05em; color: var(--brand); }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.foot-base p { margin: 0; }

@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
  .foot-about { grid-column: auto; }
}
