:root {
  color-scheme: light;
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --container: 1180px;
  --measure: 760px;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f3f7fd;
  --surface-4: #eef4ff;
  --text: #0b1f3f;
  --body: #3c4d68;
  --muted: #7a879a;
  --line: #eaeef4;
  --line-strong: #cdd5e0;
  --accent: #1f5fd6;
  --accent-hover: #174aa8;
  --accent-soft: #e3edfb;
  --accent-wash: #f3f7fd;
  --dark: #0b1f3f;
  --dark-muted: #9fb0c8;
  --danger: #b5462a;
  --danger-soft: #fff7f5;
  --danger-line: #f6d9cf;
  --ok: #1f9d63;
  --ok-soft: #e8f7ef;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  --radius-1: 6px;
  --radius-2: 8px;
  --shadow-xs: 0 1px 2px rgba(11, 31, 63, 0.06);
  --shadow-sm: 0 4px 16px rgba(11, 31, 63, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 95, 214, 0.1);
  --focus: 0 0 0 4px rgba(31, 95, 214, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
}

main {
  width: 100%;
  padding-bottom: var(--space-10);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 35;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  width: min(100%, calc(var(--container) + 72px));
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-inline: auto;
  padding: 0 clamp(18px, 4vw, 36px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-2);
  background: var(--accent);
  box-shadow: var(--shadow-xs);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand > span:not(.brand-mark) {
  min-width: 0;
}

.brand strong {
  max-width: min(42vw, 320px);
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small,
.muted,
.doc-card small,
.admin-card small,
.history-item small {
  color: var(--muted);
}

.brand small {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.menu-toggle:hover,
.menu-toggle.is-open {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.menu-toggle span {
  display: block;
  width: 20px;
  flex: 0 0 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-nav,
.actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.top-nav {
  justify-content: flex-end;
  gap: clamp(8px, 1.4vw, 18px);
}

.top-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-2);
  padding: 8px 2px;
  color: var(--body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--accent);
}

.top-nav a:last-child {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
}

.top-nav a:last-child:hover,
.top-nav a:last-child.active {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.language-switch a {
  display: inline-flex;
  min-width: 34px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-1);
  padding: 5px 8px;
  color: var(--body);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.language-switch a:hover,
.language-switch a.active {
  background: var(--accent-wash);
  color: var(--accent);
}

.menu-backdrop,
.menu-backdrop[hidden] {
  display: none;
}

main > .hero,
main > .page-head,
main > .section,
main > .value-strip,
main > .public-form,
.document-page,
.situation-page,
.content-page,
.text-page {
  width: min(100%, calc(var(--container) + 72px));
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 36px);
}

.hero,
.document-hero,
.content-grid,
.account-grid,
.split-band {
  display: grid;
  gap: var(--space-7);
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  align-items: center;
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(34px, 5vw, 56px);
  background: linear-gradient(180deg, var(--surface-3) 0%, #fff 100%);
  box-shadow: 0 0 0 100vmax var(--surface-3);
  clip-path: inset(0 -100vmax);
}

.hero-copy,
.page-head,
.section,
.document-hero,
.content-grid {
  margin-bottom: var(--space-7);
}

main > .page-head,
.document-page > .document-hero,
.situation-page > .document-hero {
  padding-top: clamp(34px, 5vw, 56px);
  padding-bottom: clamp(26px, 4vw, 38px);
}

main > .page-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-3) 0%, #fff 100%);
  box-shadow: 0 0 0 100vmax var(--surface-3);
  clip-path: inset(0 -100vmax);
}

.document-page > .document-hero,
.situation-page > .document-hero {
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 var(--space-3);
  border-radius: var(--radius-1);
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0 0 var(--space-4);
  font-size: clamp(32px, 4.1vw, 44px);
  font-weight: 800;
  line-height: 1.12;
}

h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

h3 {
  margin: 0 0 var(--space-3);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

p,
li,
dd,
dt,
input,
textarea,
button,
select {
  font-size: 16px;
  line-height: 1.6;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--body);
}

ul,
ol {
  margin-top: 0;
}

.hero-copy > p:not(.eyebrow),
.page-head > p,
.document-hero > div > p:not(.eyebrow) {
  max-width: 760px;
  color: #56657d;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 500;
  line-height: 1.65;
}

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

main > .section {
  margin-top: clamp(42px, 6vw, 64px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-head h2 {
  margin-bottom: 0;
}

.section-head a,
.article-card > a,
.step-card a {
  color: var(--accent);
  font-weight: 800;
}

.section-head a:hover,
.article-card > a:hover,
.step-card a:hover {
  color: var(--accent-hover);
}

.breadcrumbs {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--body);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.hero-panel,
.document-preview,
.doc-card,
.category-card,
.article-card,
.side-panel,
.admin-card,
.trust-card,
.notice-block,
.account-panel,
.history-item,
.tool-card,
.tool-surface,
.table-wrap,
.result-panel,
.generated-draft,
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: var(--surface);
}

.hero-panel,
.document-preview,
.doc-card,
.category-card,
.article-card,
.side-panel,
.admin-card,
.trust-card,
.notice-block,
.account-panel,
.tool-card,
.tool-surface,
.download-card {
  box-shadow: var(--shadow-sm);
}

.category-card,
.article-card,
.doc-card,
.admin-card,
.side-panel,
.trust-card,
.notice-block,
.account-panel,
.tool-card,
.tool-surface,
.download-card {
  padding: var(--space-6);
}

.category-card,
.article-card,
.doc-card,
.tool-card,
.mini-list a,
.bv-docchip {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
}

.category-card:hover,
.article-card:hover,
.doc-card:hover,
.tool-card:hover,
.mini-list a:hover,
.bv-docchip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.hero-panel,
.document-preview {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero-panel {
  min-height: 350px;
  padding: var(--space-8);
}

.hero-panel::before,
.document-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid #e6ebf2;
  border-radius: var(--radius-1);
  pointer-events: none;
}

.hero-panel::after,
.document-preview::after {
  content: "Бланковик";
  position: absolute;
  right: 24px;
  bottom: 28px;
  color: #dfe7f2;
  font-size: 28px;
  font-weight: 800;
  transform: rotate(-12deg);
}

.hero-panel span,
.document-preview span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: var(--space-7);
  border-radius: var(--radius-1);
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-panel h2,
.document-preview h2 {
  max-width: 84%;
  font-size: 28px;
  line-height: 1.2;
}

.hero-panel p,
.document-preview p {
  color: var(--body);
}

.hero-panel small {
  color: var(--ok);
  font-weight: 800;
}

.search-box {
  display: flex;
  max-width: 720px;
  margin-top: var(--space-6);
  border: 1px solid #dbe5f3;
  border-radius: var(--radius-2);
  padding: 5px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(11, 31, 63, 0.08);
}

.search-box:focus-within {
  border-color: rgba(31, 95, 214, 0.42);
  box-shadow: var(--focus);
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-1);
  padding: 0 var(--space-4);
  background: transparent;
  color: var(--text);
  outline: none;
}

.search-box input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #8b95a4;
}

.hero-chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.hero-chips a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #dbe5f3;
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  color: var(--body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.hero-chips a:hover {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent);
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  border-bottom: 1px solid var(--line);
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.value-strip div {
  display: grid;
  gap: 3px;
}

.value-strip strong {
  color: var(--text);
  font-size: 15px;
}

.value-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

button,
.button,
.search-box button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-2);
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

button:hover,
.button:hover {
  border-color: var(--accent);
  background: var(--surface-3);
  color: var(--accent);
}

.button.primary,
button.primary,
.search-box button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 18px rgba(31, 95, 214, 0.18);
}

.button.primary:hover,
button.primary:hover,
.search-box button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}

.button.ghost:hover {
  border-color: var(--accent-soft);
  background: var(--accent-wash);
}

.category-grid,
.doc-list,
.article-grid,
.admin-grid,
.policy-grid,
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.category-card {
  display: flex;
  min-height: 204px;
  flex-direction: column;
  background: var(--surface-3);
}

.category-card span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-5);
  place-items: center;
  border-radius: var(--radius-2);
  background: #fff;
  color: var(--accent);
  font-weight: 800;
}

.category-card p,
.article-card p,
.tool-card p,
.doc-card p {
  color: var(--muted);
}

.doc-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
}

.doc-card small,
.article-card small {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.doc-card h3 a {
  color: var(--text);
}

.doc-card p {
  margin-bottom: var(--space-5);
}

.card-actions {
  margin-top: auto;
  padding-top: var(--space-1);
}

.card-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: var(--radius-1);
  padding: 8px 12px;
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.card-actions a:first-child {
  background: var(--accent);
  color: #fff;
}

.card-actions a:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.card-actions a:first-child:hover {
  background: var(--accent-hover);
  color: #fff;
}

.article-card {
  min-height: 210px;
}

.article-card h2 {
  font-size: 20px;
}

.discover-hero {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  background: var(--surface);
  aspect-ratio: 16 / 9;
}

.discover-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-page {
  max-width: calc(var(--container) + 72px);
}

.article-body {
  max-width: var(--measure);
}

.article-body h2 {
  margin-top: var(--space-8);
}

.article-body h3 {
  margin-top: var(--space-5);
  font-size: 20px;
}

.article-body p,
.article-body li {
  color: var(--body);
}

.article-body .section {
  padding-top: var(--space-2);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 14px;
}

.article-meta a {
  font-weight: 700;
}

.article-callout {
  margin: var(--space-5) 0;
}

.trust-card ul,
.notice-block p {
  margin-bottom: 0;
}

.trust-card li + li,
.check-list li + li,
.strong-list li + li {
  margin-top: var(--space-2);
}

.check-list,
.strong-list {
  padding-left: 20px;
  color: var(--body);
}

.step-list {
  display: grid;
  gap: var(--space-4);
}

.step-card {
  position: relative;
  padding-left: calc(var(--space-6) + 38px);
}

.step-card small {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  display: grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: var(--radius-2);
  padding: 4px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.public-form {
  margin-bottom: var(--space-8);
}

.document-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  align-items: start;
}

.document-preview {
  position: sticky;
  top: 96px;
  min-height: 420px;
  padding: var(--space-7);
  background: var(--surface-2);
}

.trust-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
}

.trust-line div {
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: var(--space-3);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.trust-line dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.trust-line dd {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.document-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: var(--space-4);
}

.side-panel {
  position: sticky;
  top: 96px;
}

.document-sidebar .side-panel {
  position: static;
}

.download-card {
  background: var(--dark);
  color: #fff;
}

.download-card h2,
.download-card p {
  color: inherit;
}

.download-card p {
  color: var(--dark-muted);
}

.download-card .button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.download-card .button span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.download-card .button span:last-child {
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.download-card .button.primary {
  border-color: var(--accent);
  background: var(--accent);
}

.download-card .button.primary span:last-child {
  color: #bcd2f6;
}

.download-card .button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.download-card .button.primary:hover {
  background: var(--accent-hover);
}

.side-panel h2 + ul,
.side-panel h2 + p {
  margin-top: calc(var(--space-2) * -1);
}

.side-panel a {
  color: var(--accent);
  font-weight: 800;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.faq p {
  margin: var(--space-3) 0 0;
}

.fill-form,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.fill-form {
  max-width: 860px;
}

.fill-form label,
.admin-form label,
.tool-controls label {
  display: grid;
  gap: var(--space-2);
  color: var(--body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.fill-form textarea,
.fill-form label.full,
.form-grid .full {
  grid-column: 1 / -1;
}

.fill-form input,
.fill-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select,
.auth-card input,
.auth-card textarea,
.auth-card select,
.account-panel input,
.account-panel textarea,
.tool-controls input,
.tool-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-2);
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.fill-form input:focus,
.fill-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.auth-card input:focus,
.auth-card textarea:focus,
.auth-card select:focus,
.account-panel input:focus,
.account-panel textarea:focus,
.tool-controls input:focus,
.tool-controls select:focus {
  border-color: rgba(31, 95, 214, 0.48);
}

select {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fill-form textarea {
  min-height: 112px;
}

.generated-draft {
  max-width: 860px;
  margin-top: var(--space-4);
  overflow-x: auto;
  padding: var(--space-5);
  color: var(--text);
  white-space: pre-wrap;
}

.notice {
  max-width: 720px;
  border-radius: var(--radius-2);
  padding: var(--space-3) var(--space-4);
}

.notice.full {
  grid-column: 1 / -1;
}

.notice.ok {
  background: var(--ok-soft);
  color: #087647;
}

.notice.danger {
  background: rgba(181, 70, 42, 0.08);
  color: var(--danger);
}

.admin-card.ok {
  border-color: rgba(31, 157, 99, 0.35);
}

.admin-card.warn {
  border-color: rgba(181, 70, 42, 0.35);
}

.admin-form {
  max-width: 980px;
}

.auth-form {
  display: grid;
  gap: var(--space-4);
  max-width: 420px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  min-height: 1px !important;
  height: 1px !important;
  opacity: 0;
  padding: 0 !important;
  pointer-events: none;
}

.account-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: start;
}

.account-page {
  width: min(100%, calc(var(--container) + 72px));
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 36px);
}

.account-head {
  max-width: 760px;
  margin-bottom: var(--space-6);
}

.account-head h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

.account-head p {
  margin: var(--space-3) 0 0;
  color: var(--body);
  font-size: 18px;
}

.auth-surface {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.auth-card {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.auth-card.primary-auth {
  border-color: rgba(31, 95, 214, 0.28);
  box-shadow: var(--shadow-sm);
}

.auth-card:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.auth-card h2 {
  margin: 0;
  font-size: 24px;
}

.auth-card label {
  display: grid;
  gap: var(--space-2);
  color: var(--body);
  font-size: 13px;
  font-weight: 800;
}

.resend-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 800;
}

.resend-details form {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.local-history-strip {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  background: var(--surface-2);
}

.local-history-strip strong,
.local-history-strip span {
  display: block;
}

.local-history-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.local-history-strip__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.account-panel {
  min-width: 0;
}

.account-panel form,
.resend-form {
  display: grid;
  gap: var(--space-4);
}

.account-panel .form-grid + .muted,
.account-panel .actions {
  margin-top: var(--space-1);
}

.resend-form {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
}

.resend-form h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.resend-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--body);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.save-profile-option {
  display: flex !important;
  align-items: flex-start;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-3);
  color: var(--body);
  font-size: 14px;
  font-weight: 800;
}

.save-profile-option input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

[data-save-profile-status] {
  min-height: 20px;
  margin-top: calc(var(--space-2) * -1);
}

.history-list {
  display: grid;
  gap: var(--space-3);
}

.history-item {
  padding: var(--space-4);
  box-shadow: none;
}

.history-item p:last-child {
  margin-bottom: 0;
}

.history-item a {
  color: var(--accent);
  font-weight: 800;
}

.delete-form {
  margin-top: var(--space-7);
}

.delete-form button {
  border-color: rgba(181, 70, 42, 0.35);
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-body {
  background: #f5f7fb;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 264px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 18px 14px;
}

.admin-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px;
  color: var(--text);
}

.admin-brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-2);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand small,
.admin-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 18px;
}

.admin-nav__group {
  display: grid;
  gap: 4px;
}

.admin-nav__group > strong {
  padding: 0 10px 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.admin-nav a {
  display: grid;
  min-height: 38px;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-2);
  padding: 8px 10px;
  color: var(--body);
  font-size: 14px;
  font-weight: 800;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--accent-wash);
  color: var(--accent);
}

.admin-nav a span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: var(--radius-1);
  background: var(--surface-3);
  color: currentColor;
  font-size: 12px;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 251, 0.94);
  padding: 22px clamp(18px, 3vw, 34px);
  backdrop-filter: blur(10px);
}

.admin-topbar h1 {
  margin: 2px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.admin-topbar p {
  max-width: 760px;
  margin: 6px 0 0;
  color: var(--body);
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.admin-content {
  display: grid;
  gap: var(--space-6);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
}

.admin-content > .page-head,
.admin-content > .section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.admin-content > .page-head {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fff;
  padding: var(--space-5);
}

.admin-section,
.admin-panel,
.admin-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.admin-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
}

.admin-hero-panel h2,
.admin-panel h2,
.admin-toolbar h2 {
  margin: 0;
  font-size: 22px;
}

.admin-hero-panel p,
.admin-toolbar p,
.admin-panel p {
  margin: 6px 0 0;
  color: var(--body);
}

.admin-site-strip,
.admin-details {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.admin-site-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-site-strip div,
.admin-details div {
  min-width: 0;
}

.admin-site-strip dt,
.admin-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-site-strip dd,
.admin-details dd {
  margin: 3px 0 0;
  color: var(--text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-stats-grid,
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
}

.admin-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stats-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat {
  padding: var(--space-5);
}

.admin-stat span,
.admin-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}

.admin-stat.warn {
  border-color: var(--danger-line);
  background: var(--danger-soft);
}

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
}

.admin-panel {
  min-width: 0;
  padding: var(--space-5);
}

.admin-panel__head,
.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.admin-toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  background: #fff;
  padding: var(--space-5);
}

.admin-panel__head a,
.admin-row-actions a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.admin-kpi-list,
.admin-mini-table,
.admin-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.admin-kpi-list div,
.admin-mini-table div,
.admin-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

.admin-kpi-list span,
.admin-mini-table span,
.admin-list-item small {
  color: var(--muted);
  font-size: 13px;
}

.admin-health-list {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.admin-health-list.wide {
  margin-top: 0;
}

.admin-health-list span,
.admin-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-3);
  color: var(--body);
  font-size: 12px;
  font-weight: 800;
}

.admin-health-list span.ok {
  background: var(--ok-soft);
  color: #087647;
}

.admin-health-list span.bad,
.admin-badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-table {
  border-radius: var(--radius-2);
  box-shadow: none;
}

.admin-row-actions {
  min-width: 132px;
}

.admin-row-actions a {
  display: block;
  margin-bottom: 6px;
}

.admin-list-item p {
  max-width: 720px;
  margin: 4px 0;
}

.admin-list-item form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.admin-list-item select {
  min-width: 132px;
}

.admin-json {
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  margin: var(--space-4) 0 0;
  padding: var(--space-4);
  background: #f8fafc;
  color: var(--text);
  font-size: 13px;
  white-space: pre-wrap;
}

.admin-editor {
  max-width: none;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.operation-card {
  display: grid;
  align-content: space-between;
  gap: var(--space-4);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-3);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

td {
  color: var(--body);
}

tr:last-child td {
  border-bottom: 0;
}

.tool-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
}

.tool-card small {
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-1);
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.tool-card h2 {
  font-size: 22px;
}

.tool-surface {
  padding: clamp(22px, 3vw, 34px);
}

.tool-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: var(--space-4);
  align-items: end;
}

.result-panel {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--surface-2);
}

.result-panel h2,
.result-panel h3 {
  margin-top: 0;
}

.split-band {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: var(--space-7);
}

.mini-list {
  display: grid;
  gap: var(--space-3);
}

.mini-list a {
  display: grid;
  gap: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: var(--space-4);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.mini-list span {
  color: var(--muted);
  font-weight: 500;
}

.strong-list li {
  margin-bottom: var(--space-2);
}

.progress-line {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 var(--space-5);
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--accent);
}

.check-item {
  display: flex;
  gap: var(--space-3);
  min-height: 44px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.check-item input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  accent-color: var(--accent);
}

.site-footer {
  width: 100%;
  margin-top: var(--space-10);
  background: var(--dark);
  color: var(--dark-muted);
}

.site-footer__inner {
  display: grid;
  width: min(100%, calc(var(--container) + 72px));
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.55fr);
  gap: var(--space-8);
  margin-inline: auto;
  padding: var(--space-9) clamp(18px, 4vw, 36px);
}

.brand--footer strong {
  color: #fff;
  font-size: 19px;
}

.footer-brand p {
  max-width: 360px;
  margin: var(--space-4) 0 0;
  color: var(--dark-muted);
  font-size: 14px;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.footer-links div {
  display: grid;
  gap: 7px;
  align-content: start;
}

.footer-links strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 14px;
}

.footer-links a {
  color: var(--dark-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.footer-links a:hover {
  color: #fff;
}

.site-footer__bottom {
  width: min(100%, calc(var(--container) + 72px));
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px clamp(18px, 4vw, 36px);
  color: #6b7c97;
  font-size: 12.5px;
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  max-width: min(460px, calc(100vw - 28px));
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  padding: 10px 12px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  flex: 1 1 220px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.cookie-banner a {
  color: var(--accent);
  font-weight: 800;
}

.cookie-banner a,
.cookie-banner button {
  align-self: center;
}

.cookie-banner button {
  min-height: 36px;
  padding: 7px 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .site-header__inner {
    min-height: 72px;
    gap: var(--space-3);
    padding-inline: 14px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .brand strong {
    max-width: 36vw;
  }

  .brand small {
    font-size: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .top-nav {
    position: fixed;
    top: 80px;
    right: 14px;
    left: 14px;
    z-index: 45;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    padding: 8px;
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(11, 31, 63, 0.16);
  }

  .top-nav.is-open {
    display: flex;
  }

  .top-nav a,
  .top-nav a:last-child {
    min-height: 46px;
    justify-content: flex-start;
    border-radius: var(--radius-1);
    padding: 10px 12px;
    background: transparent;
    color: var(--text);
  }

  .top-nav a.active,
  .top-nav a:hover,
  .top-nav a:last-child.active,
  .top-nav a:last-child:hover {
    background: var(--accent-wash);
    color: var(--accent);
  }

  .language-switch {
    max-width: 42vw;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .menu-backdrop {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: block;
    background: rgba(11, 31, 63, 0.18);
    backdrop-filter: blur(2px);
  }

  .menu-backdrop[hidden] {
    display: none;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-nav {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
  }

  .admin-nav__group {
    min-width: 190px;
  }

  .admin-topbar,
  .admin-hero-panel,
  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats-grid,
  .admin-card-grid,
  .admin-stats-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .auth-surface {
    grid-template-columns: 1fr;
  }

  .auth-card:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }

  .hero,
  .document-hero,
  .content-grid,
  .account-grid,
  .tool-controls,
  .split-band {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .doc-list,
  .article-grid,
  .admin-grid,
  .policy-grid,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document-preview,
  .side-panel,
  .document-sidebar {
    position: static;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-content,
  .admin-topbar,
  .admin-sidebar {
    padding-inline: 14px;
  }

  .admin-stats-grid,
  .admin-card-grid,
  .admin-stats-grid.compact,
  .admin-site-strip {
    grid-template-columns: 1fr;
  }

  .admin-kpi-list div,
  .admin-mini-table div,
  .admin-list-item,
  .admin-list-item form {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner {
    position: static;
    max-width: none;
    margin: var(--space-4) 14px;
  }

  main {
    padding-bottom: var(--space-8);
  }

  main > .hero,
  main > .page-head,
  main > .section,
  main > .value-strip,
  main > .public-form,
  .document-page,
  .situation-page,
  .content-page,
  .text-page {
    padding-inline: 14px;
  }

  .brand small {
    max-width: 176px;
    white-space: normal;
  }

  h1 {
    line-height: 1.14;
  }

  h2 {
    font-size: 22px;
  }

  .hero {
    gap: var(--space-5);
    padding-top: var(--space-8);
  }

  .search-box,
  .actions,
  .fill-form,
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .button,
  .actions button,
  .search-box button {
    width: 100%;
  }

  .category-grid,
  .doc-list,
  .article-grid,
  .admin-grid,
  .policy-grid,
  .tool-grid,
  .trust-line,
  .value-strip,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel,
  .document-preview {
    min-height: 260px;
  }

  .document-preview span,
  .hero-panel span {
    margin-bottom: var(--space-5);
  }

  .doc-card,
  .article-card,
  .category-card,
  .tool-card {
    min-height: auto;
  }

  .category-card,
  .article-card,
  .doc-card,
  .admin-card,
  .side-panel,
  .trust-card,
  .notice-block,
  .account-panel,
  .tool-card,
  .tool-surface,
  .download-card {
    padding: var(--space-5);
  }

  .step-card {
    padding-left: var(--space-5);
  }

  .step-card small {
    position: static;
    margin-bottom: var(--space-3);
  }

  .cookie-banner {
    right: 14px;
    bottom: 14px;
  }
}

/* Claude Design system alignment */
:root {
  --container: 1180px;
  --accent: #1f5fd6;
  --accent-hover: #1a52bd;
  --accent-soft: #e3edfb;
  --accent-wash: #f3f7fd;
  --text: #0b1f3f;
  --body: #56657d;
  --muted: #7a879a;
  --line: #eaeef4;
  --line-strong: #cdd5e0;
  --dark: #0b1f3f;
  --dark-muted: #9fb0c8;
  --radius-1: 8px;
  --radius-2: 14px;
  --shadow-sm: 0 4px 16px rgba(11, 31, 63, 0.05);
  --shadow-md: 0 8px 28px rgba(31, 95, 214, 0.12);
}

.site-header__inner {
  min-height: 66px;
}

.brand-mark {
  border-radius: 9px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: 0;
}

.top-nav {
  gap: clamp(14px, 2.5vw, 30px);
}

.top-nav a {
  min-height: 38px;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: 700;
}

.top-nav a:last-child {
  border-radius: 9px;
  padding: 10px 20px;
}

main {
  padding-bottom: 0;
}

main > .hero,
main > .page-head,
main > .section,
main > .value-strip,
main > .public-form,
.content-page > .breadcrumbs,
.content-page > .page-head,
.content-page > .section,
.content-page > .content-grid,
.text-page,
.article-body.page-head,
.article-body.page-head > .section,
.document-page > .page-head,
.document-page > .section,
.situation-page > .page-head,
.situation-page > .section {
  width: min(100%, calc(var(--container) + 72px));
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 36px);
}

.document-page,
.situation-page,
.content-page,
.article-body.page-head {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.hero,
main > .page-head,
.content-page > .page-head,
.article-body.page-head,
.document-page > .page-head,
.situation-page > .page-head {
  background: linear-gradient(180deg, var(--accent-wash) 0%, #fff 100%);
  box-shadow: 0 0 0 100vmax var(--accent-wash);
  clip-path: inset(0 -100vmax);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  padding-top: clamp(48px, 7vw, 76px);
  padding-bottom: clamp(44px, 6vw, 60px);
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 900px;
  margin-bottom: 0;
}

.eyebrow {
  border-radius: 6px;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.page-head > p,
.document-hero > div > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--body);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

.search-box {
  width: min(100%, 620px);
  margin: 12px auto 0;
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 7px 7px 7px 22px;
  box-shadow: 0 14px 40px rgba(31, 95, 214, 0.15);
}

.search-box input {
  min-height: 50px;
  padding: 0 var(--space-4) 0 0;
  font-weight: 600;
}

.search-box button {
  min-height: 48px;
  border-radius: 11px;
  padding: 12px 32px;
}

.hero-chips {
  justify-content: center;
  margin-top: 22px;
}

.hero-chips a {
  min-height: 35px;
  border-color: var(--accent-soft);
  padding: 8px 15px;
  background: #fff;
  font-weight: 800;
}

.value-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 28px;
  padding-bottom: 28px;
}

.value-strip strong {
  font-size: 16px;
}

.value-strip span {
  font-size: 13.5px;
  font-weight: 600;
}

main > .section,
.content-page > .section,
.article-body.page-head > .section,
.document-page > .section,
.situation-page > .section {
  margin-top: clamp(48px, 6vw, 64px);
}

.section--compact {
  margin-top: clamp(36px, 5vw, 50px);
}

.section-head {
  margin-bottom: 26px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  line-height: 1.16;
}

.section-head a,
.article-card > a,
.step-card a,
.situation-card span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.tool-grid--featured,
.category-grid,
.situation-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}

.tool-grid--featured {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tool-card,
.category-card,
.situation-card,
.article-card,
.doc-card,
.side-panel,
.download-card,
.trust-card {
  border-radius: 14px;
}

.tool-card,
.category-card,
.situation-card,
.article-card,
.doc-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.tool-card:hover,
.category-card:hover,
.situation-card:hover,
.article-card:hover,
.doc-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-card {
  min-height: 220px;
  padding: 28px;
}

.tool-card small {
  margin-bottom: 16px;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tool-card h2 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 800;
}

.tool-card--dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.tool-card--dark h2 {
  color: #fff;
}

.tool-card--dark p {
  color: #b9c6dc;
}

.tool-card--dark small {
  color: #8fb4f0;
}

.category-card {
  min-height: 172px;
  border-color: transparent;
  background: var(--accent-wash);
  box-shadow: none;
}

.category-card span {
  width: auto;
  height: auto;
  margin-bottom: 12px;
  place-items: start;
  background: transparent;
  color: var(--accent);
  font-size: 18px;
}

.category-card h3,
.situation-card h3 {
  margin-bottom: 6px;
}

.situation-card {
  display: block;
  min-height: 210px;
  border: 1px solid var(--line);
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.situation-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.situation-card h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

.situation-card p {
  color: var(--muted);
  font-size: 14px;
}

.doc-list {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}

.doc-list--stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-card {
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.doc-card__content {
  min-width: 0;
}

.doc-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.doc-card__meta span {
  border-radius: 6px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.doc-card__meta small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.doc-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.3;
}

.doc-card p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.card-actions {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 0;
}

.card-actions a {
  min-height: 36px;
  border-radius: 9px;
  padding: 9px 12px;
}

.card-actions a:first-child {
  padding-inline: 18px;
}

.doc-card--link {
  display: block;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 86px;
}

.catalog-sidebar strong,
.panel-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-sidebar nav {
  display: grid;
  gap: 2px;
}

.catalog-sidebar a {
  border-radius: 9px;
  padding: 9px 12px;
  color: var(--body);
  font-size: 14px;
  font-weight: 800;
}

.catalog-sidebar a:hover {
  background: var(--accent-wash);
  color: var(--accent);
}

.catalog-sidebar a.active {
  background: var(--accent);
  color: #fff;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.catalog-toolbar h2 {
  margin: 0;
  font-size: 26px;
}

.catalog-toolbar span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.catalog-search {
  display: flex;
  min-width: min(100%, 240px);
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 14px;
  background: #fff;
}

.catalog-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  font-size: 14px;
  font-weight: 600;
}

.type-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.type-chips span {
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--accent-wash);
  color: var(--body);
  font-size: 13px;
  font-weight: 800;
}

.type-chips .active {
  background: var(--dark);
  color: #fff;
}

.page-head {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.page-head .breadcrumbs {
  margin: 0 0 18px;
}

.document-head__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.document-head__meta .eyebrow {
  border-radius: 6px;
  padding: 5px 10px;
  background: var(--accent-soft);
  font-size: 11px;
  text-transform: uppercase;
}

.document-head__meta span:not(.eyebrow) {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.content-page > .content-grid {
  width: min(100%, calc(var(--container) + 72px));
  margin-inline: auto;
  margin-top: clamp(48px, 6vw, 64px);
  padding-inline: clamp(18px, 4vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.article-action-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface-2);
}

.article-action-band__copy h2 {
  max-width: 520px;
  margin: 8px 0 12px;
  font-size: clamp(24px, 3vw, 30px);
}

.article-action-band__copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--body);
  line-height: 1.65;
}

.article-action-band__items {
  display: grid;
  gap: 12px;
}

.article-action-band .doc-card {
  background: #fff;
}

.article-tool-link {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.article-tool-link strong {
  color: var(--text);
  font-size: 17px;
}

.article-tool-link span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--measure)) minmax(280px, 340px);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

.article-layout .article-body {
  max-width: none;
}

.article-sidebar {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}

.article-sidebar .download-card,
.article-sidebar .side-panel {
  box-shadow: var(--shadow-sm);
}

.article-sidebar .download-card .button {
  align-items: flex-start;
  text-align: left;
  flex-wrap: wrap;
}

.article-sidebar .download-card .button span:first-child {
  min-width: 0;
  flex: 1 1 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.article-sidebar .download-card .button span:last-child {
  flex: 0 0 auto;
}

.article-cta-list {
  display: grid;
  gap: 10px;
}

.article-cta-list a {
  display: grid;
  gap: 4px;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  color: var(--text);
}

.article-cta-list a:hover {
  color: var(--accent);
}

.article-cta-list strong {
  font-size: 14.5px;
  line-height: 1.35;
}

.article-cta-list span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}

.article-source-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.article-source-list a {
  color: var(--body);
  font-size: 13.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.article-source-list a:hover {
  color: var(--accent);
}

.content-page > .breadcrumbs {
  margin-top: var(--space-5);
  margin-bottom: 0;
}

.article-body.page-head {
  max-width: none;
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: 0;
}

.article-body.page-head > h1,
.article-body.page-head > p,
.article-body.page-head > .article-meta {
  max-width: var(--measure);
}

.article-body.page-head > .section {
  max-width: calc(var(--measure) + 72px);
}

.document-main {
  min-width: 0;
}

.document-sample {
  margin-bottom: 40px;
}

.document-sample h2,
.article-body h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.document-sheet-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface-2);
}

.document-sheet {
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  padding: clamp(20px, 4vw, 44px);
  background: #fff;
  color: #2a3a55;
  box-shadow: 0 4px 20px rgba(11, 31, 63, 0.06);
  font-size: 14px;
  line-height: 1.9;
}

.document-sheet__recipient {
  margin-bottom: 22px;
  text-align: right;
}

.document-sheet h3 {
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--text);
  font-size: 17px;
  text-align: center;
}

.document-sheet p {
  color: #2a3a55;
  font-size: 14px;
  line-height: 1.9;
}

.document-sheet__footer {
  margin-top: 24px;
  color: var(--body);
}

.document-sheet-wrap .actions {
  margin-top: 18px;
}

.numbered-steps {
  display: grid;
  gap: 14px;
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
}

.numbered-steps li {
  position: relative;
  min-height: 30px;
  padding-left: 46px;
  color: var(--body);
  counter-increment: steps;
}

.numbered-steps li::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.document-sidebar {
  top: 84px;
}

.download-card {
  border: 0;
  border-radius: 16px;
  padding: 24px;
}

.side-panel {
  border-radius: 16px;
  padding: 22px;
}

.side-panel--accent {
  border-color: var(--accent-soft);
  background: var(--accent-wash);
}

.fact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.fact-list div + div {
  border-top: 1px solid #eef2f7;
  padding-top: 14px;
}

.fact-list dt {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}

.fact-list dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
}

.toc-panel nav {
  display: grid;
  gap: 9px;
}

.toc-panel a {
  color: var(--body);
  font-size: 14px;
  font-weight: 800;
}

.toc-panel a:hover {
  color: var(--accent);
}

.step-card {
  min-height: 0;
  padding-left: calc(var(--space-6) + 46px);
}

.step-card small {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  font-size: 14px;
}

.related-section {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.site-footer {
  margin-top: clamp(48px, 6vw, 72px);
}

@media (max-width: 980px) {
  .top-nav {
    gap: 2px;
  }

  .top-nav a,
  .top-nav a:last-child {
    padding: 10px 12px;
  }

  .catalog-layout,
  .document-layout,
  .content-page > .content-grid,
  .content-grid,
  .article-action-band,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar,
  .document-sidebar,
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  main > .hero,
  main > .page-head,
  main > .section,
  main > .value-strip,
  main > .public-form,
  .content-page > .breadcrumbs,
  .content-page > .page-head,
  .content-page > .section,
  .content-page > .content-grid,
  .article-body.page-head,
  .article-body.page-head > .section,
  .document-page > .page-head,
  .document-page > .section,
  .situation-page > .page-head,
  .situation-page > .section,
  .text-page {
    padding-inline: 14px;
  }

  .search-box {
    display: grid;
    grid-template-columns: 1fr;
    padding: 7px;
  }

  .search-box input {
    padding: 0 12px;
  }

  .value-strip,
  .tool-grid--featured,
  .category-grid,
  .situation-grid,
  .article-grid,
  .doc-list {
    grid-template-columns: 1fr;
  }

  .doc-card {
    align-items: stretch;
    flex-direction: column;
  }

  .card-actions {
    align-self: stretch;
  }

  .card-actions a:first-child {
    flex: 1 1 100%;
  }

  .catalog-toolbar {
    align-items: stretch;
  }

  .catalog-search {
    width: 100%;
  }

  .document-sheet__recipient {
    text-align: left;
  }

  .numbered-steps li {
    padding-left: 42px;
  }
}
