:root {
  color-scheme: light;
  --bg: #fffaf0;
  --surface: #ffffff;
  --ink: #163225;
  --muted: #5f6f64;
  --brand: #0f5132;
  --brand-strong: #0a3c24;
  --accent: #d88a1d;
  --blue: #124e8c;
  --blue-soft: #edf6ff;
  --line: rgba(22, 50, 37, 0.16);
  --shadow: 0 18px 42px rgba(18, 78, 140, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(216, 138, 29, 0.12), transparent 30rem),
    linear-gradient(180deg, #fffaf0 0%, #f7f0e2 100%);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header,
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; }
.brand { color: var(--brand-strong); font-weight: 850; text-decoration: none; }
.top-nav,
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.top-nav a,
.footer-nav a { border-radius: 999px; color: var(--muted); font-size: 0.92rem; font-weight: 700; padding: 0.45rem 0.7rem; text-decoration: none; }
.top-nav a:hover,
.footer-nav a:hover { background: rgba(15, 81, 50, 0.08); color: var(--brand-strong); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; padding-top: 1rem; color: #607388; font-size: 0.88rem; }
.breadcrumb a { color: #1767ac; font-weight: 750; text-decoration: none; }

.role-hero { margin: 1.5rem 0 2rem; padding: clamp(1.6rem, 5vw, 3rem); border: 1px solid #d6e4f1; border-radius: 1.6rem; background: linear-gradient(120deg, #fff 0%, var(--blue-soft) 100%); box-shadow: var(--shadow); }
.role-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.kicker { margin: 0 0 0.55rem; color: #1767ac; font-size: 0.76rem; font-weight: 850; letter-spacing: 0.13em; }
h1 { max-width: 15ch; margin: 0 0 0.85rem; color: #0d3c6e; font-size: clamp(2.3rem, 6vw, 4.3rem); line-height: 1; letter-spacing: -0.055em; }
.role-hero p:last-child { max-width: 760px; margin: 0; color: #52667b; font-size: 1.02rem; }
.role-icon { display: grid; width: 6rem; height: 6rem; place-items: center; border-radius: 1.4rem; background: #fff; box-shadow: 0 12px 30px rgba(18, 78, 140, 0.1); font-size: 3rem; }

.catalog-heading { max-width: 720px; margin-bottom: 1.5rem; }
.catalog-heading h2 { margin: 0 0 0.5rem; color: #0d3c6e; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.04em; }
.catalog-heading p { margin: 0; color: #64788c; }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.app-card { display: flex; min-height: 19rem; flex-direction: column; border: 1px solid #d8e5f1; border-radius: 1.15rem; background: rgba(255, 255, 255, 0.92); padding: 1.25rem; box-shadow: 0 12px 30px rgba(18, 78, 140, 0.06); }
.app-icon { display: grid; width: 3.3rem; height: 3.3rem; place-items: center; margin-bottom: 1rem; border-radius: 0.95rem; background: #edf7ff; font-size: 1.65rem; }
.app-card h3 { margin: 0 0 0.55rem; color: #0d3c6e; font-size: 1.3rem; }
.app-card p { margin: 0 0 1rem; color: #64788c; }
.pending { display: block; margin-top: auto; padding: 0.8rem 0.9rem; border: 1px dashed #b9cddd; border-radius: 0.7rem; background: #f7fbff; color: #667b8f; font-size: 0.86rem; }

.loop-nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin: 2rem 0 4rem; padding: 1.1rem 1.2rem; border: 1px solid #d8e5f1; border-radius: 1rem; background: rgba(255, 255, 255, 0.9); }
.loop-nav p { margin: 0; color: #667b8f; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.button { display: inline-flex; min-height: 2.8rem; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; padding: 0.7rem 1rem; font-weight: 800; text-decoration: none; }
.button.primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button.secondary { background: #fff; color: var(--brand-strong); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 820px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .loop-nav { align-items: flex-start; flex-direction: column; }
  .role-hero-inner { grid-template-columns: 1fr; }
  .role-icon { width: 4.5rem; height: 4.5rem; font-size: 2.2rem; }
  .app-grid { grid-template-columns: 1fr; }
  .actions { display: grid; width: 100%; }
  .button { width: 100%; }
}
