:root {
  color-scheme: light;
  --ink: #1c1915;
  --muted: #5e564c;
  --line: #e4dcd2;
  --paper: #f7f4ee;
  --blue: #1f4fbf;
  --blue-deep: #173e96;
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: var(--blue-deep); }

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: #17191d;
  color: #f7f4ee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
}

.brand p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9eb6ef;
}

.brand strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

a.brand { color: inherit; text-decoration: none; }

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-link {
  color: #f7f4ee;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
}

.login-wrap { position: relative; }

.login-btn {
  border: 0;
  border-radius: 999px;
  background: #2f6fe0;
  color: white;
  font: inherit;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
}

.login-btn:hover { background: #1f4fbf; }

.hero {
  padding: 64px 28px 36px;
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero p {
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 28px 48px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.card p { margin: 0; color: var(--muted); line-height: 1.5; }

.facts {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px 56px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.facts article, .facts aside {
  border-top: 2px solid #1f4fbf;
  padding-top: 16px;
}

.facts h2 { margin: 0 0 8px; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.facts p, .facts li { color: var(--muted); line-height: 1.5; }
.facts ul { margin: 0; padding-left: 18px; }

.site-foot {
  padding: 22px 28px 32px;
  color: #8a8176;
  font-size: 13px;
}

.panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  width: min(320px, calc(100vw - 32px));
  background: white;
  color: var(--ink);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(28, 25, 21, 0.22);
}

.panel.hidden { display: none; }

.panel h2 { margin: 0 0 6px; font-size: 22px; }
.panel .lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; font-size: 14px; }
.field span { font-weight: 600; }
button, input, select, textarea { font: inherit; }

.field input, .field textarea, .field select {
  font: inherit;
  width: 100%;
  border: 1px solid #ddd4c8;
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}

.field textarea { resize: vertical; }
.editor textarea { min-height: 140px; }

.panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.panel button {
  font: inherit;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.ghost {
  background: white;
  border: 1px solid #ddd4c8;
  padding: 9px 14px;
}

.primary {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.login-message {
  min-height: 1.2em;
  margin: 12px 0 0;
  color: #8a4b12;
  font-size: 14px;
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.card:hover { border-color: var(--blue); }

.open-label {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
}

.roles-wrap, .sheet {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 28px 56px;
}

.sheet { max-width: 760px; }

.roles-wrap h2, .sheet h2 {
  margin: 28px 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.sheet .lead {
  margin: 28px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.roles { display: grid; gap: 16px; }

.role, .editor {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.role h3 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.role-kicker {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-meta, .role-copy, .empty {
  color: var(--muted);
  line-height: 1.5;
}

.role-copy { white-space: pre-wrap; }

.role .primary { margin-top: 8px; }

.apply {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hidden { display: none !important; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checks {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.checks label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
}

.status { min-height: 1.2em; margin: 12px 0 0; font-size: 14px; }
.status.ok { color: #1d6b3a; }
.status.bad { color: #8a4b12; }

@media (max-width: 760px) {
  .paths, .facts, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
}
