/* Shell: topbar, navigation, footer, language switcher */
.topbar { padding: 18px 0 0; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #2458ff 100%);
}

.topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(31, 66, 154, .14);
  font-weight: 800;
  font-size: .78rem;
}
.lang-switch a {
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
}
.lang-switch a.active { background: var(--primary); color: #fff; }
.lang-switch a:hover:not(.active) { background: var(--surface-alt); }

/* Site footer (shared) */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: rgba(255,255,255,.6); }

/* Nav columns */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 32px 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: .72rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 4px;
}
.footer-col a {
  font-size: .88rem; font-weight: 600; color: var(--text);
  text-decoration: none; line-height: 1.4; transition: color .15s;
}
.footer-col a:hover { color: var(--primary); }

/* Legal strip */
.footer-legal { display: flex; flex-direction: column; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-links a { color: var(--muted); font-weight: 600; font-size: .82rem; text-decoration: none; transition: color .15s; }
.footer-links a:hover { color: var(--primary); }
.footer-note { color: var(--muted); font-size: .82rem; line-height: 1.6; max-width: 900px; margin: 0; }

/* Legacy — kept for pages that still use old footer markup */
.footer-contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-weight: 700; font-size: .88rem; color: var(--text);
}
.contact-pill:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 640px) {
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

@media (max-width: 760px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
}
