:root {
  color-scheme: light;
  --ink: #27243d;
  --muted: #6f6a88;
  --purple: #7864f6;
  --purple-dark: #5847ce;
  --line: #e8e4f4;
  --surface: #ffffff;
  --wash: #f7f5ff;
  --warm: #fff7f3;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(120, 100, 246, .12), transparent 28rem),
    radial-gradient(circle at 94% 12%, rgba(255, 177, 142, .13), transparent 24rem),
    #fbfaff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--purple-dark); text-underline-offset: 3px; }
a:hover { color: var(--purple); }

.shell { width: min(100% - 32px, 940px); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(232, 228, 244, .9);
  background: rgba(251, 250, 255, .88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 760; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 18px rgba(88, 71, 206, .18); }
.links { display: flex; gap: 20px; }
.links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.links a[aria-current="page"] { color: var(--purple-dark); }

main { padding: 68px 0 90px; }

.hero { max-width: 760px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 12px; color: var(--purple-dark); font-size: 13px; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.35rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -.045em; }
.lead { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2.5vw, 1.25rem); }
.updated { margin-top: 18px; color: var(--muted); font-size: 14px; }

.document, .card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 70px rgba(55, 44, 104, .08);
}

.document { padding: clamp(26px, 6vw, 58px); }
.document section + section { margin-top: 42px; padding-top: 38px; border-top: 1px solid var(--line); }
h2 { margin: 0 0 12px; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.02em; }
h3 { margin: 25px 0 7px; font-size: 1.05rem; }
p { margin: 0 0 14px; }
ul { margin: 10px 0 0; padding-left: 22px; }
li + li { margin-top: 7px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { min-height: 220px; padding: 28px; display: flex; flex-direction: column; }
.card-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--wash); color: var(--purple-dark); font-weight: 800; }
.card h2 { margin-top: 32px; }
.card p { color: var(--muted); }
.card a { margin-top: auto; font-weight: 720; }

.notice { margin: 28px 0; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, var(--wash), var(--warm)); }
.contact { display: inline-flex; margin-top: 6px; padding: 11px 17px; border-radius: 999px; background: var(--purple); color: white; font-weight: 720; text-decoration: none; }
.contact:hover { color: white; background: var(--purple-dark); }

footer { padding: 28px 0 42px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }

@media (max-width: 720px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 10px; }
  .links { width: 100%; justify-content: space-between; gap: 10px; }
  main { padding-top: 44px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 190px; }
  .footer-row { flex-direction: column; }
}
