:root {
  --brand-navy: #16408a;
  --brand-navy-dark: #0f3269;
  --brand-cyan: #0ea5e9;
  --brand-cyan-soft: #e0f2fe;
  --brand-green: #10b981;
  --brand-green-soft: #d1fae5;
  --gradient-brand: linear-gradient(135deg, #16408a 0%, #0ea5e9 52%, #10b981 100%);
  --bg: #f3f8fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: var(--brand-navy);
  --accent-strong: var(--brand-navy-dark);
  --line: #cfe0ea;
  --shadow: 0 14px 28px rgba(15, 64, 138, 0.08);
  --container-max: 980px;
  --page-gutter: 20px;
  --topbar-offset: 68px;
}
* { box-sizing: border-box; }
html {
  scroll-padding-top: var(--topbar-offset);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 450px at 8% -8%, rgba(22, 64, 138, 0.08), transparent 58%),
    radial-gradient(720px 380px at 92% 0%, rgba(16, 185, 129, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}
h1, h2 {
  font-family: "Sora", "Inter", sans-serif;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, var(--brand-navy), var(--brand-cyan), var(--brand-green)) 1;
  padding-left: 12px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  margin-top: 18px;
}
p, li {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.muted {
  color: #64748b;
  font-size: 0.9rem;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: #0f172a;
  min-width: 0;
  flex: 1 1 auto;
}
.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}
.lang-selector {
  display: inline-flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.lang-selector a.lang-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-selector a.lang-btn:hover {
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-strong);
}
.lang-selector a.lang-btn.active {
  background: var(--gradient-brand);
  color: #fff;
}
.lang-selector a.lang-btn.active:hover {
  filter: brightness(1.05);
  color: #fff;
}
.lang-selector a.lang-btn:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}
main {
  padding: 24px 0 56px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
}
ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}
a:hover {
  color: var(--brand-cyan);
  text-decoration: underline;
}
.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.top-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
}

@media (min-width: 721px) and (max-width: 980px) {
  :root {
    --page-gutter: 18px;
  }
  main {
    padding: 20px 0 48px;
  }
  .card {
    padding: 18px;
  }
  .top-links {
    gap: 8px 16px;
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 14px;
    --topbar-offset: 64px;
  }
  main {
    padding: 16px 0 40px;
  }
  .topbar-inner {
    gap: 8px;
  }
  .brand span {
    font-size: 0.95rem;
  }
  .card {
    padding: 16px;
    border-radius: 14px;
  }
  h1 {
    padding-left: 10px;
    border-left-width: 3px;
    font-size: clamp(1.45rem, 6.5vw, 1.75rem);
  }
  h2 {
    font-size: 1rem;
    margin-top: 16px;
  }
  .top-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .top-links a {
    width: 100%;
    min-height: 40px;
    padding: 6px 0;
  }
  p, li {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
