:root {
  --primary: #830c58;
  --primary-dark: #620942;
  --primary-light: #a81472;
  --bg: #fafafa;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: #e0e0e0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── Header ─── */
header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.header-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.header-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ─── Language switcher ─── */
.lang-switcher {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.lang-switcher button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.lang-switcher button:hover { background: rgba(255,255,255,0.28); }
.lang-switcher button.active { background: rgba(255,255,255,0.9); color: var(--primary); }

/* ─── Main layout ─── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.25rem;
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  h1 { font-size: 1.3rem; }
  .header-title { font-size: 0.95rem; }
}
