/* Same palette and surfaces as the home page. */
:root {
  --bg: #050B19;
  --bg-deep: #01050A;
  --line: rgba(255, 255, 255, .12);
  --text: #ffffff;
  --muted: #BCBFCC;
  --primary: #4169E1;
  --accent: #5277E8;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { background: hsl(210 100% 0.4%); color: var(--text); font-family: Manrope, system-ui, sans-serif; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }



/* Intro */
main { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 0 16px 100px; }
.intro { text-align: center; padding: 60px 0 30px; }
.eyebrow {
  display: inline-block; border-radius: 999px; padding: 10px 32px; font-weight: 700; margin-bottom: 26px;
  background: linear-gradient(135deg, #1E4FD8, #14246B);
  box-shadow: inset 0 4px 8px rgba(0,0,0,.35), inset 0 -2px 4px rgba(255,255,255,.1);
}
.intro h1 { font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.1; font-weight: 800; }
.grad { background: linear-gradient(135deg, #5277E8, #1E4FD8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p { color: var(--muted); font-size: 1.15rem; margin: 16px auto 32px; max-width: 520px; }
#search {
  width: 100%; max-width: 460px; padding: 14px 22px; border-radius: 999px; font: inherit; color: var(--text);
  border: 1px solid var(--line); background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 2px 4px rgba(255,255,255,.06);
}
#search::placeholder { color: #7f879c; }
#search:focus { outline: none; border-color: rgba(30, 79, 216, .5); box-shadow: 0 0 0 4px rgba(30, 79, 216, .12); }

/* Category */
.group { margin-top: 56px; }
.group h2 {
  display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; margin-bottom: 18px;
  padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: inset 0 2px 4px rgba(255,255,255,.08), inset 0 -2px 4px rgba(0,0,0,.15);
}
.group h2 .ico { font-size: 1.2rem; }
.ico { line-height: 1; flex-shrink: 0; }

/* Question card */
details {
  border: 1px solid var(--line); border-radius: 20px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--bg-deep), var(--bg));
  box-shadow: inset 0 2px 4px rgba(255,255,255,.08);
  transition: border-color .2s, box-shadow .2s;
}
details:hover { border-color: rgba(255,255,255,.22); }
details[open] { border-color: rgba(30, 79, 216, .35); box-shadow: inset 0 2px 4px rgba(255,255,255,.08), 0 10px 40px rgba(30, 79, 216, .18); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 22px 60px 22px 24px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary .ico {
  font-size: 1.4rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
summary strong { display: block; font-size: 1.1rem; font-weight: 700; }
summary small { display: block; color: #8f97ab; font-size: .95rem; margin-top: 2px; }
summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  font-size: 1.2rem; font-weight: 600; color: var(--accent); background: rgba(30, 79, 216, .08);
  transition: transform .25s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.body { padding: 0 24px 22px 24px; color: var(--muted); animation: open .25s ease; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.body p + ul, .body p + p { margin-top: 10px; }
.body ul { padding-left: 18px; }
.body li { margin-top: 6px; }
.body li::marker { color: var(--accent); }
.body strong, .body em { color: var(--text); font-style: normal; }
@media (max-width: 560px) {
  summary { gap: 12px; padding: 16px 52px 16px 16px; }
  summary .ico { width: 40px; height: 40px; font-size: 1.2rem; }
  .body { padding: 0 18px 18px 18px; }
}

.empty { text-align: center; color: var(--muted); margin-top: 40px; }

/* Contact */
.contact {
  text-align: center; margin-top: 90px; padding: 56px 24px; border-radius: 28px; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(135deg, var(--bg-deep), #0b1a3d);
}
.contact::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 100%;
  background: radial-gradient(closest-side, rgba(30, 79, 216, .18), transparent); pointer-events: none;
}
.contact h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; position: relative; }
.contact p { color: var(--muted); margin: 8px 0 26px; position: relative; }
.cta { background: linear-gradient(135deg, #1E4FD8, #14246B); border: 1px solid rgba(255,255,255,.14); color: #fff; font-weight: 700; border-radius: 999px; transition: opacity .15s, transform .15s; }
.cta:hover { opacity: .9; transform: translateY(-1px); }
.cta.big { display: inline-block; font-size: 1rem; padding: 14px 30px; overflow-wrap: anywhere; position: relative; }

footer { position: relative; z-index: 1; text-align: center; color: #7f879c; font-size: .9rem; padding: 30px 16px; border-top: 1px solid var(--line); }
