:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5e6878;
  --line: #d8dde5;
  --paper: #f8f6f0;
  --white: #ffffff;
  --blue: #0d3b66;
  --gold: #c99a2e;
  --red: #8f2735;
  --green: #2c6e49;
  --shadow: 0 20px 48px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: Arial, sans-serif;
  font-size: 0.94rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 700;
  border-radius: 4px;
}

.button.secondary {
  background: transparent;
  color: var(--blue);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.hero {
  background:
    linear-gradient(100deg, rgba(13, 59, 102, 0.96), rgba(13, 59, 102, 0.76)),
    radial-gradient(circle at 70% 30%, rgba(244, 211, 94, 0.28), transparent 34%),
    var(--blue);
  color: var(--white);
  padding: 74px 0 56px;
}

.compact-hero {
  padding: 52px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.kicker {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.lede {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card p,
.card p,
.document p,
.section-copy {
  color: var(--muted);
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-family: Arial, sans-serif;
}

.detail-list li {
  padding-left: 18px;
  border-left: 4px solid var(--gold);
}

.band {
  padding: 68px 0;
}

.band.white {
  background: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.document {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.document {
  min-height: 100%;
}

.path {
  display: grid;
  gap: 16px;
  counter-reset: path;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.step::before {
  counter-increment: path;
  content: counter(path);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.notice {
  background: #fff8df;
  border: 1px solid #ecd27a;
  border-radius: 8px;
  padding: 18px 20px;
  color: #59420d;
}

.secretary-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.secretary-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.text-input,
.file-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 1rem Arial, sans-serif;
}

.text-input {
  padding: 10px 12px;
}

.file-input {
  padding: 10px;
}

.helper-text {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.actions.tight {
  margin-top: 14px;
}

.align-end {
  justify-content: flex-end;
}

.upload-button {
  margin-top: 14px;
}

.status-message {
  min-height: 44px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  background: var(--white);
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.status-message[data-kind="success"] {
  border-color: rgba(44, 110, 73, 0.35);
  background: #eef8f1;
  color: var(--green);
}

.status-message[data-kind="error"] {
  border-color: rgba(143, 39, 53, 0.35);
  background: #fff1f3;
  color: var(--red);
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.document-row h3 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.document-row p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-family: Arial, sans-serif;
  text-align: center;
}

.footer {
  background: #111827;
  color: #d7dce5;
  padding: 36px 0;
  font-family: Arial, sans-serif;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer a {
  color: #ffffff;
}

@media (max-width: 820px) {
  .topbar-row,
  .section-head,
  .hero-grid,
  .grid,
  .secretary-layout {
    grid-template-columns: 1fr;
  }

  .topbar-row {
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 560px) {
  .step {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .document-row {
    grid-template-columns: 1fr;
  }

  .document-actions {
    justify-content: stretch;
  }
}
