@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg-1: #eef6fc;
  --bg-2: #dcebf6;
  --panel: #ffffff;
  --text: #22303d;
  --muted: #5b7186;
  --line: #d3e4ef;
  --red: #c8372c;
  --blue: #1f6fb2;
  --card-shadow: 0 10px 30px rgba(31, 111, 178, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-1: #131c24;
    --bg-2: #0d151c;
    --panel: #1c2830;
    --text: #e7f0f7;
    --muted: #9fb3c4;
    --line: #2c3d4a;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2) 60%, var(--bg-1));
  color: var(--text);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 30; background: #fff; color: var(--blue); font-weight: 700; padding: 10px 16px; }
.skip-link:focus { left: 0; }
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); background: color-mix(in srgb, var(--panel) 92%, transparent); }
.nav { max-width: 1120px; margin: 0 auto; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; font-weight: 800; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-links > a { color: var(--text); font-weight: 800; text-decoration: none; }
.nav-links > a:hover { color: var(--red); }
.lang-switch { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.lang-switch a { padding: 5px 10px; color: var(--muted); font-size: 13px; font-weight: 800; text-decoration: none; }
.lang-switch a[aria-current="page"] { background: var(--blue); color: #fff; }
.main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 44px 22px 72px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 38px; align-items: start; }
.content { min-width: 0; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--card-shadow); }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.lead { margin: 14px 0 30px; color: var(--muted); font-size: 1.08rem; }
h2 { margin: 34px 0 10px; font-size: 1.35rem; line-height: 1.3; scroll-margin-top: 24px; }
.content p, .content li { color: var(--muted); }
.content ul { padding-left: 1.3rem; }
.toc { position: sticky; top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--card-shadow); }
.toc strong { display: block; margin-bottom: 10px; }
.toc nav > ul { margin: 0; padding: 0; list-style: none; }
.toc ul ul { display: none; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
footer { max-width: 1120px; margin: 0 auto; padding: 24px 22px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
footer a { margin-left: 16px; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 780px) {
  .faq-layout { grid-template-columns: 1fr; }
  .toc { position: static; grid-row: 1; }
}

@media (max-width: 520px) {
  .nav, footer { align-items: flex-start; flex-direction: column; }
  .content { padding: 22px 18px; }
  footer a { margin: 0 16px 0 0; }
}
