:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f7fbf8;
  --text: #101815;
  --text-soft: #263a33;
  --muted: #587067;
  --subtle: #789087;
  --border: #e1ebe5;
  --border-strong: #c8ddd2;
  --primary: #10895b;
  --primary-dark: #06734a;
  --primary-soft: #edf8f2;
  --shadow: 0 12px 28px rgba(16, 24, 21, 0.055);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(237, 248, 242, 0.72) 0, rgba(255, 255, 255, 0) 420px),
    var(--background);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.64;
}

a {
  color: var(--primary-dark);
  font-weight: 760;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
p,
li,
.nav-links a,
.toc a {
  overflow-wrap: break-word;
  word-break: keep-all;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(225, 235, 229, 0.86);
  display: flex;
  justify-content: space-between;
  padding: 14px max(18px, calc((100vw - 1080px) / 2 + 24px));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 16px;
  font-weight: 820;
  gap: 10px;
}

.brand img {
  height: 32px;
  object-fit: contain;
  width: 66px;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.nav-links a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  min-height: 32px;
  padding: 6px 11px;
}

.nav-links a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.page {
  margin: 0 auto;
  max-width: 1080px;
  padding: 34px 24px 76px;
}

.hero {
  align-items: end;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 310px;
  padding: 42px 0 36px;
}

.document-type {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 820;
  margin: 0 0 10px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 18px;
  max-width: 820px;
}

.hero-copy p {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0;
  max-width: 680px;
}

.status-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.status-panel div {
  padding: 18px;
}

.status-panel div + div {
  border-top: 1px solid var(--border);
}

.status-panel span {
  color: var(--subtle);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.status-panel strong,
.status-panel a {
  color: var(--text);
  display: block;
  font-size: 15px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.summary-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 28px;
}

.summary-strip article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 126px;
  padding: 18px;
}

.summary-strip strong {
  color: var(--text);
  display: block;
  font-size: 16px;
  font-weight: 840;
  margin-bottom: 8px;
}

.summary-strip p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 210px minmax(0, 1fr);
}

.toc {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 2px;
  padding: 8px;
  position: sticky;
  top: 78px;
}

.toc a {
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  min-height: 36px;
  padding: 8px 10px;
}

.toc a:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  text-decoration: none;
}

.content {
  min-width: 0;
}

.section {
  scroll-margin-top: 94px;
}

.section + .section {
  margin-top: 32px;
}

.section-heading {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  padding-top: 20px;
}

.section:first-child .section-heading {
  border-top: 0;
  padding-top: 0;
}

.section-heading span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 820;
}

.section-heading h2 {
  font-size: 24px;
  font-weight: 840;
  line-height: 1.24;
  margin: 0;
}

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

.panel,
.text-panel,
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.panel {
  padding: 19px;
}

.panel h3,
.contact-panel h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 820;
  line-height: 1.35;
  margin: 0 0 8px;
}

.panel p,
.panel ol {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.panel ol {
  padding-left: 20px;
}

.panel li + li {
  margin-top: 7px;
}

.text-panel {
  padding: 22px;
}

.text-panel p {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

.text-panel p + p {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

.delete-section {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.delete-section .section-heading {
  border-top: 0;
  padding-top: 0;
}

.delete-layout {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.primary-panel {
  border-color: var(--border-strong);
}

.button {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 820;
  justify-content: center;
  margin-top: 16px;
  min-height: 44px;
  padding: 0 18px;
}

.button:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.fine-print {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
}

.contact-panel {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.contact-panel p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.mail-link {
  background: var(--primary-soft);
  border-radius: 999px;
  flex: 0 0 auto;
  padding: 10px 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 840px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .page {
    padding: 22px 20px 64px;
  }

  .hero {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .summary-strip,
  .layout {
    grid-template-columns: 1fr;
  }

  .summary-strip article {
    min-height: auto;
  }

  .toc {
    position: static;
  }

  .content-grid,
  .delete-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .mail-link {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page {
    padding-inline: 16px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .delete-section {
    border-radius: 16px;
    padding: 16px;
  }

  .panel,
  .text-panel,
  .contact-panel,
  .summary-strip article {
    border-radius: 12px;
  }
}
