:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #566176;
  --line: #dfe6f0;
  --accent: #1845a8;
  --accent-dark: #123477;
  --accent-soft: #eaf0ff;
  --shadow: 0 18px 45px rgba(19, 40, 82, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

body,
button,
input {
  letter-spacing: 0;
}

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

a,
button,
input {
  outline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ffbf47;
  box-shadow: 0 0 0 6px rgba(255, 191, 71, 0.24);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.accordion-panel[hidden],
[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--accent-dark);
  color: #ffffff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

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

.nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  padding: 9px 10px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav .nav-cta {
  background: var(--accent);
  color: #ffffff;
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 76px 0 68px;
}

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

.hero-grid {
  grid-template-columns: 1fr;
}

.hero-content {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin: 0 0 22px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.06;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-content p,
.section-heading p,
.cta p {
  color: var(--muted);
  max-width: 760px;
}

.hero-lead {
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

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

.button.secondary {
  background: #ffffff;
  color: var(--accent-dark);
}

.button.light {
  border-color: #ffffff;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.panel-label,
.badge,
.number {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

.audit-card {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcff;
}

.audit-card p,
.status-row p {
  margin: 0 0 12px;
}

.audit-card p:last-child {
  margin-bottom: 0;
}

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

.section {
  padding: 78px 0;
  background: #ffffff;
}

.section.alt {
  background: var(--bg);
}

.section-heading {
  margin-bottom: 34px;
}

.compact-heading {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.card,
.knowledge-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 9px;
}

.tab-list {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.tab-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 8px 16px;
}

.tab-button[aria-selected="true"] {
  background: var(--accent);
  color: #ffffff;
}

.knowledge-list {
  display: grid;
  gap: 18px;
}

.knowledge-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.knowledge-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
}

.knowledge-top p {
  margin: 0;
  color: var(--muted);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.badge {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

.accordion-group,
.knowledge-card > .accordion-trigger {
  margin-top: 18px;
}

.accordion-trigger {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 11px 42px 11px 14px;
  position: relative;
  text-align: left;
}

.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
}

.accordion-panel {
  display: none;
  margin: 8px 0 0;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: #f9fbff;
  color: var(--muted);
}

.accordion-trigger[aria-expanded="true"] + .accordion-panel {
  display: block;
}

.implementation-demo {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.implementation-demo h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.implementation-demo p {
  margin: 0;
}

.demo-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.demo-card-good {
  border-color: #5575ff;
  background: #eef4ff;
}

.demo-status {
  justify-self: start;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 9px;
}

.demo-browser {
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #24314a;
  border-radius: var(--radius);
  background: #ffffff;
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8c4d4;
}

.demo-dots span:first-child {
  background: #1f2b44;
}

.demo-nav,
.demo-menu,
.demo-inline,
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.demo-nav a,
.demo-menu a {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.demo-menu {
  display: grid;
}

.demo-menu a,
.demo-main-content {
  border-radius: 6px;
  background: #eef3fb;
  padding: 10px;
}

.demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 9px 14px;
  text-align: center;
  text-decoration: none;
}

.demo-button:hover {
  background: var(--accent-dark);
}

.demo-focus-sample:focus {
  outline: 3px solid #08152d;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(24, 69, 168, 0.18);
}

.demo-note,
.demo-caption {
  color: var(--muted);
  font-size: 15px;
}

.demo-form label {
  font-weight: 800;
}

.demo-form input,
.demo-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #93a3bb;
  border-radius: 7px;
  font: inherit;
  padding: 9px 12px;
}

.demo-form .demo-error {
  border: 2px solid #315fff;
  border-radius: 7px;
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  padding: 9px 12px;
}

.demo-fluid-card {
  display: grid;
  gap: 8px;
  max-width: 100%;
}

.demo-fluid-card strong,
.demo-fluid-card span,
.demo-captcha,
.demo-result {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.demo-fluid-card strong {
  background: var(--accent);
  color: #ffffff;
}

.demo-captcha,
.demo-result {
  display: grid;
  gap: 4px;
  border-color: #5575ff;
  background: #eef4ff;
}

.demo-contrast {
  padding: 18px;
  border-radius: var(--radius);
  background: #203f9f;
  color: #ffffff;
}

.demo-contrast p {
  color: #ffffff;
}

.demo-contrast .demo-button {
  justify-self: start;
  background: #ffffff;
  color: var(--accent-dark);
}

.demo-slider .demo-slide {
  border-radius: var(--radius);
  background: var(--accent-dark);
  color: #ffffff;
  font-weight: 800;
  padding: 18px;
}

.demo-button-stack,
.demo-link-stack {
  display: grid;
  gap: 10px;
}

.demo-link-stack a {
  border: 1px solid #5575ff;
  border-radius: 7px;
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.demo-skip {
  justify-self: start;
  border: 2px solid var(--accent);
  border-radius: 7px;
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.demo-news,
.demo-document,
.demo-figure,
.demo-video,
.demo-map {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.demo-document {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.demo-document strong {
  grid-row: span 2;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  padding: 10px;
}

.demo-document span {
  color: var(--muted);
  font-size: 15px;
}

.demo-figure {
  margin: 0;
}

.demo-photo {
  min-height: 120px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(24, 69, 168, 0.22), rgba(255, 255, 255, 0.2)),
    linear-gradient(90deg, #dce7f8 0 35%, #ffffff 35% 40%, #eef3fb 40% 100%);
}

.demo-figure figcaption,
.demo-map address {
  color: var(--muted);
  font-style: normal;
  font-size: 15px;
}

.demo-video {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.demo-play {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.demo-map-canvas {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 48%, rgba(24, 69, 168, 0.28) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(24, 69, 168, 0.2) 48% 52%, transparent 52%),
    #edf3fb;
}

.demo-map-canvas span {
  position: absolute;
  left: 52%;
  top: 42%;
  width: 16px;
  height: 16px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

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

.demo-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid #d2dbe8;
  border-radius: 18px;
  background: #f7f9fc;
}

.demo-side h4,
.demo-side h5 {
  margin: 0;
  color: #08152d;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.demo-side h5 {
  font-size: 14px;
}

.demo-right {
  border-color: #4f76ff;
  background: #eef5ff;
}

.demo-status {
  justify-self: start;
  border-radius: 999px;
  background: #111a2e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 10px;
}

.demo-right .demo-status {
  background: #2457ff;
}

.demo-window {
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 12px;
  border: 1.5px solid #24314a;
  border-radius: 10px;
  background: #ffffff;
}

.demo-window-top {
  display: flex;
  gap: 6px;
  margin: -12px -12px 0;
  padding: 8px 12px;
  border-bottom: 1.5px solid #24314a;
  background: #f8fafc;
}

.demo-window-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b7c2d1;
}

.demo-window-top span:first-child {
  background: #111a2e;
}

.demo-window .demo-button,
.demo-side .demo-button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: #1845ea;
  color: #ffffff;
  font-size: 14px;
  padding: 8px 14px;
}

.demo-button.small {
  min-height: 30px;
  justify-self: start;
  padding: 6px 10px;
}

.demo-nav {
  flex-wrap: nowrap;
  gap: 9px;
}

.demo-nav a {
  color: #1a2740;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-note,
.demo-caption {
  color: #59667b;
  font-size: 14px;
  line-height: 1.45;
}

.demo-note.strong {
  color: #172033;
  font-weight: 700;
}

.demo-input {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid #9aa9bd;
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  padding: 9px 12px;
}

.demo-input-error {
  border-color: #ff5166;
}

.demo-error {
  border: 2px solid #315fff;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
}

.demo-nowrap,
.demo-fluid-card strong {
  border-radius: 8px;
  background: #203f9f;
  color: #ffffff;
  font-weight: 800;
  padding: 12px;
}

.demo-overflow {
  padding-bottom: 10px;
}

.demo-nowrap {
  width: 380px;
  max-width: none;
  white-space: nowrap;
}

.demo-scrollbar {
  height: 8px;
  border-radius: 999px;
  background: #d9e2ee;
}

.demo-scrollbar span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: #77889f;
}

.demo-fluid-card {
  display: grid;
  gap: 8px;
}

.demo-fluid-card span {
  border: 1.5px solid #24314a;
  border-radius: 8px;
  color: #172033;
  font-weight: 700;
  padding: 12px;
}

.demo-captcha-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1.5px solid #6e7b91;
  border-radius: 8px;
  background: #eef2f7;
  color: #6b7890;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.demo-captcha,
.demo-result {
  border: 1.5px solid #4f76ff;
  border-radius: 8px;
  background: #eef5ff;
  color: #172033;
  padding: 12px;
}

.demo-low-contrast {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: #f1f5fa;
  color: #d6e0ec;
}

.demo-low-contrast button {
  justify-self: start;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #e5ecf5;
  color: #9fb0c5;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 7px 12px;
}

.demo-contrast {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: #203f9f;
  color: #ffffff;
}

.demo-contrast .demo-button {
  justify-self: start;
  background: #ffffff;
  color: #203f9f;
}

.demo-slide {
  border-radius: 8px;
  background: #203f9f;
  color: #ffffff;
  font-weight: 800;
  padding: 16px;
}

.demo-slide small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
}

.demo-progress {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}

.demo-progress span {
  height: 6px;
  border-radius: 999px;
  background: #d8e0eb;
}

.demo-progress span:first-child {
  background: #2457ff;
}

.demo-logo {
  border: 2px solid #111a2e;
  border-radius: 8px;
  color: #172033;
  font-weight: 800;
  padding: 10px;
  text-decoration: none;
}

.demo-result.muted {
  border-color: transparent;
  background: #eef3fb;
  color: #566176;
}

.demo-icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.demo-icon-row button,
.demo-socials a {
  min-height: 46px;
  border: 1.5px solid #6e7b91;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.demo-socials {
  display: flex;
  gap: 10px;
}

.demo-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 8px 12px;
}

.demo-announce,
.demo-empty-focus {
  border-radius: 8px;
  background: #eef3fb;
  color: #59667b;
  font-size: 14px;
  padding: 10px;
}

.demo-menu {
  display: grid;
  gap: 8px;
}

.demo-menu a,
.demo-main-content {
  border-radius: 8px;
  background: #eef3fb;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 10px;
  text-decoration: none;
}

.demo-skip {
  justify-self: start;
  border: 2px solid #2457ff;
  border-radius: 8px;
  background: #ffffff;
  color: #1845a8;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.demo-news-list {
  gap: 8px;
}

.demo-news-list article {
  display: grid;
  gap: 6px;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  padding: 9px;
}

.demo-link-stack {
  display: grid;
  gap: 10px;
}

.demo-link-stack a {
  border: 1.5px solid #5575ff;
  border-radius: 8px;
  background: #ffffff;
  color: #1845a8;
  font-weight: 800;
  padding: 10px 12px;
  text-decoration: none;
}

.demo-empty-focus {
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 1px dashed #cad6e6;
  color: #77889f;
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  counter-increment: steps;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 8px;
  color: var(--muted);
}

.checklist-grid {
  align-items: start;
}

.counter {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  padding: 8px 12px;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist label {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 14px;
}

.checklist input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.cta {
  padding: 72px 0;
  background: var(--accent-dark);
  color: #ffffff;
}

.cta p {
  color: #e5edff;
}

.site-footer {
  padding: 28px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

caption {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

th,
td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

th {
  background: var(--accent-soft);
}

@media (max-width: 980px) {
  .header-inner,
  .hero-grid,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .card-grid.four,
  .steps,
  .knowledge-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero,
  .section,
  .cta {
    padding: 52px 0;
  }

  .nav a {
    font-size: 14px;
    padding: 8px;
  }

  .hero-actions,
  .tab-list {
    width: 100%;
  }

  .button,
  .tab-button {
    width: 100%;
  }

  .tab-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-grid.four,
  .steps,
  .knowledge-list.compact {
    grid-template-columns: 1fr;
  }

  .knowledge-top {
    grid-template-columns: 1fr;
  }

  .badge {
    justify-self: start;
  }
}

/* Redesigned checklist and coded visual examples */
#knowledge .tabs {
  display: grid;
  gap: 28px;
}

#knowledge .tab-list {
  justify-self: start;
  margin-bottom: 0;
  padding: 5px;
  border-radius: 14px;
  background: #eef3fb;
}

#knowledge .knowledge-list {
  gap: 28px;
}

#knowledge .knowledge-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid #cfd9e8;
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(18, 42, 89, 0.08);
}

#knowledge .knowledge-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #1845ea, #7fa4ff);
}

#knowledge .knowledge-top {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  padding: 26px 28px 24px 32px;
  background:
    radial-gradient(circle at 92% 0%, rgba(24, 69, 234, 0.1), transparent 220px),
    #ffffff;
}

#knowledge .knowledge-top .number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #101a31;
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(16, 26, 49, 0.16);
}

#knowledge .knowledge-top h3 {
  margin-bottom: 7px;
  font-size: clamp(21px, 2.4vw, 29px);
  letter-spacing: -0.025em;
}

#knowledge .knowledge-top p {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.55;
}

#knowledge .knowledge-top .badge {
  align-self: start;
  border-color: #b9cdfd;
  background: #edf3ff;
  color: #173d9c;
}

#knowledge .accordion-group {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 28px 28px 32px;
  background: #ffffff;
}

#knowledge .accordion-trigger {
  min-height: 54px;
  margin-top: 8px;
  border: 1px solid #d4deeb;
  border-radius: 12px;
  background: #f8fafd;
  color: #1a2740;
  font-size: 16px;
  padding: 13px 52px 13px 16px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

#knowledge .accordion-trigger:hover {
  border-color: #8ba8e8;
  background: #f0f5ff;
}

#knowledge .accordion-trigger[aria-expanded="true"] {
  border-color: #1845ea;
  border-radius: 12px 12px 0 0;
  background: #eef4ff;
  color: #123477;
}

#knowledge .accordion-trigger::after {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  right: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #c8d5e8;
  font-size: 20px;
}

#knowledge .accordion-trigger:last-of-type {
  margin-top: 18px;
  border-color: #1845ea;
  background: #1845ea;
  color: #ffffff;
}

#knowledge .accordion-trigger:last-of-type:hover,
#knowledge .accordion-trigger:last-of-type[aria-expanded="true"] {
  background: #123477;
  color: #ffffff;
}

#knowledge .accordion-trigger:last-of-type::before {
  content: "CODE";
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 22px;
  margin-right: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}

#knowledge .accordion-trigger:last-of-type::after {
  color: #1845ea;
  box-shadow: none;
}

#knowledge .accordion-panel {
  margin: 0;
  padding: 18px;
  border: 1px solid #1845ea;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #f7faff;
  color: #42516a;
  font-size: 16px;
}

#knowledge .accordion-panel:has(.implementation-demo) {
  padding: 24px;
  border-color: #b8c9ea;
  background:
    linear-gradient(rgba(229, 236, 248, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 236, 248, 0.55) 1px, transparent 1px),
    #f7f9fd;
  background-size: 24px 24px;
}

#knowledge .implementation-demo {
  position: relative;
  gap: 16px;
  padding-top: 38px;
}

#knowledge .implementation-demo::before {
  content: none;
}

#knowledge .example-panel {
  display: block;
  margin-top: 20px;
  border: 1px solid #b8c9ea;
  border-radius: 16px;
}

#knowledge .example-panel .implementation-demo {
  padding-top: 0;
}

#knowledge .demo-comparison {
  gap: 20px;
}

#knowledge .demo-side {
  position: relative;
  gap: 14px;
  padding: 20px;
  border-color: #c9d4e4;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(20, 43, 82, 0.07);
}

#knowledge .demo-side::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

#knowledge .demo-right {
  border-color: #2f62ff;
  background: linear-gradient(145deg, #f7faff, #eaf2ff);
  box-shadow: 0 14px 34px rgba(24, 69, 234, 0.13);
}

#knowledge .demo-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
}

#knowledge .demo-status::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
}

#knowledge .demo-right .demo-status::before {
  content: "\2713";
}

#knowledge .demo-window {
  gap: 12px;
  padding: 14px;
  border-color: #1e2a42;
  border-radius: 14px;
  box-shadow: 0 7px 0 rgba(22, 35, 59, 0.08);
}

#knowledge .demo-window-top {
  margin: -14px -14px 0;
  padding: 10px 14px;
  border-color: #d3dcea;
  background: #f2f5fa;
}

#knowledge .demo-window .demo-button,
#knowledge .demo-side .demo-button {
  border-radius: 10px;
  background: #1845ea;
  box-shadow: 0 4px 0 #1036b9;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

#knowledge #panel-customer .knowledge-card:first-child .demo-wrong .demo-button {
  background: #dfe5ee;
  color: #3f4c61;
  box-shadow: none;
}

#knowledge #panel-customer .knowledge-card:first-child .demo-right .demo-focus-sample {
  outline: 4px solid #101a31;
  outline-offset: 4px;
  box-shadow:
    0 0 0 8px #ffffff,
    0 0 0 11px #1845ea,
    0 4px 0 11px #1036b9;
}

#knowledge #panel-customer .knowledge-card:first-child .demo-wrong .demo-button:focus,
#knowledge #panel-customer .knowledge-card:first-child .demo-wrong .demo-button:focus-visible {
  outline: none;
  box-shadow: none;
}

#knowledge .demo-window .demo-button:active,
#knowledge .demo-side .demo-button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #1036b9;
}

#knowledge .demo-caption {
  padding-top: 2px;
  color: #40506a;
  font-size: 14px;
}

#knowledge .demo-right .demo-caption {
  color: #173d9c;
}

#knowledge #panel-customer .knowledge-card:nth-child(5) .demo-contrast,
#knowledge #panel-customer .knowledge-card:nth-child(5) .demo-contrast h4 {
  background: #102f78;
  color: #ffffff;
}

#knowledge #panel-customer .knowledge-card:nth-child(5) .demo-contrast .demo-button {
  border: 2px solid #ffffff;
  background: #ffffff;
  color: #102f78;
  box-shadow: 0 4px 0 #091b47;
}

@media (max-width: 860px) {
  #knowledge .knowledge-top {
    grid-template-columns: auto 1fr;
    padding: 22px 20px 20px 24px;
  }

  #knowledge .knowledge-top .badge {
    grid-column: 2;
    justify-self: start;
  }

  #knowledge .accordion-group {
    padding: 0 20px 22px 24px;
  }

  #knowledge .demo-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #knowledge .knowledge-card {
    border-radius: 18px;
  }

  #knowledge .knowledge-top {
    grid-template-columns: 1fr;
  }

  #knowledge .knowledge-top .badge {
    grid-column: auto;
  }

  #knowledge .accordion-panel:has(.implementation-demo) {
    padding: 14px;
    background-size: 18px 18px;
  }

  #knowledge .demo-side {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .number,
  .badge,
  .demo-status,
  .demo-button,
  .button,
  .tab-button,
  .accordion-trigger {
    border: 2px solid ButtonText;
  }

  .demo-focus-sample {
    outline: 3px solid Highlight;
  }
}

/* Administrator checklist examples */
.admin-demo .demo-window label {
  color: #1b2740;
  font-size: 13px;
  font-weight: 800;
}

.admin-file-list {
  align-content: start;
}

.admin-file {
  display: grid;
  gap: 3px;
  position: relative;
  min-height: 54px;
  padding: 12px 12px 12px 56px;
  border: 1.5px solid #d7e0ec;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font-weight: 800;
}

.admin-file::before {
  content: "FILE";
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef3fb;
  color: #172033;
  font-size: 10px;
  font-weight: 900;
}

.admin-file.pdf::before {
  content: "PDF";
  background: #fff0f1;
  color: #bc1630;
}

.admin-file.doc::before {
  content: "DOC";
  background: #eef5ff;
  color: #1845ea;
}

.admin-file small {
  color: #617087;
  font-size: 12px;
  font-weight: 700;
}

.admin-checks {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #f0fff5;
  color: #125b2d;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}

.admin-checks li::before {
  content: "\2713";
  margin-right: 8px;
}

.admin-photo {
  position: relative;
  min-height: 122px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, transparent 0 74%, rgba(44, 54, 66, 0.3) 74% 75%, #bac1ca 75% 100%),
    linear-gradient(165deg, transparent 0 47%, rgba(255, 255, 255, 0.32) 48% 60%, transparent 61%),
    linear-gradient(180deg, #81b8ed 0 58%, #eaf5ff 58% 100%);
  border: 1.5px solid #d2dce9;
  overflow: hidden;
}

.admin-photo::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: 25%;
  height: 52%;
  border-radius: 3px;
  background:
    linear-gradient(90deg, #aee0ff 0 8%, #dceefe 8% 10%, #aee0ff 10% 18%, #dceefe 18% 20%, #aee0ff 20% 28%, transparent 28% 72%, #aee0ff 72% 80%, #dceefe 80% 82%, #aee0ff 82% 90%, #dceefe 90% 92%, #aee0ff 92% 100%),
    repeating-linear-gradient(0deg, #a94f2c 0 6px, #bd6240 6px 12px);
  border: 5px solid #8f422a;
  box-shadow: 0 10px 0 #78402c;
}

.admin-photo::after {
  content: "";
  position: absolute;
  left: 39%;
  top: 14%;
  width: 22%;
  height: 64%;
  border: 6px solid #9c482d;
  border-bottom-width: 10px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 45%, #d9ecfa 45% 55%, transparent 55%),
    linear-gradient(0deg, #213b55 0 23%, #b8ddf5 23% 100%);
  box-shadow: 0 9px 0 #8b513b;
}

.demo-input-like {
  min-height: 42px;
  padding: 10px 12px;
  border: 1.5px solid #9aa9bd;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
}

.demo-input-like.bad {
  border-color: #ffd0d6;
  background: #fff7f8;
  color: #d6243f;
}

.admin-heading-list {
  align-content: start;
}

.admin-heading-list span {
  display: block;
  padding: 9px 11px;
  border: 1.5px solid #d8e1ee;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.admin-heading-list span:nth-child(n+4) {
  margin-left: 0;
}

.admin-heading-list.bad span {
  border-color: #ffd0d6;
  color: #b3192f;
}

.admin-heading-list .level-1 {
  margin-left: 0;
  font-size: 17px;
}

.admin-heading-list .level-2 {
  margin-left: 18px;
}

.admin-heading-list .level-3 {
  margin-left: 36px;
}

.admin-heading-list .level-4 {
  margin-left: 54px;
}

#panel-admin .knowledge-card:nth-child(4) .demo-right .admin-heading-list > span {
  margin-left: 0;
  width: 100%;
}

#panel-admin .knowledge-card:nth-child(4) .demo-wrong .admin-heading-list > span {
  margin-left: 0;
  width: 100%;
}

.admin-transcript {
  grid-template-columns: auto 1fr;
}

.admin-transcript ol {
  margin: 0;
  padding-left: 22px;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
}

.admin-license {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #101a31;
  color: #ffffff;
  font-weight: 800;
}

.admin-red-button {
  background: #d6243f !important;
  box-shadow: 0 4px 0 #a9152a !important;
}

.admin-layout-table,
.admin-css-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-layout-table > div:not(.demo-window-top),
.admin-css-layout > div:not(.demo-window-top) {
  min-height: 74px;
  padding: 12px;
  border: 1.5px solid #d8e1ee;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
}

.admin-layout-table {
  border-color: #ffd0d6;
}

.admin-fake-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid #ef8b9a;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.admin-fake-table .cell {
  min-height: 58px;
  padding: 12px;
  border: 1px solid #ffd0d6;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.admin-css-layout article {
  min-height: 86px;
  padding: 14px;
  border: 1.5px solid #bcd0fa;
  border-radius: 12px;
  background: #ffffff;
}

.admin-css-layout h5 {
  margin: 0 0 6px;
  color: #172033;
  font-size: 16px;
}

.admin-css-layout p {
  margin: 0;
  color: #4b5a73;
  font-size: 14px;
}

.admin-schedule table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.admin-schedule th,
.admin-schedule td {
  padding: 10px;
  border: 1px solid #d8e1ee;
  color: #172033;
  font-size: 14px;
  text-align: left;
}

.admin-schedule.bad td:nth-child(n+2) {
  color: #d6243f;
  font-size: 20px;
  font-weight: 900;
}

.admin-chart {
  min-height: 130px;
  border-radius: 12px;
  border: 1.5px solid #d8e1ee;
  background:
    linear-gradient(90deg, transparent 0 10%, #1845ea 10% 18%, transparent 18% 28%, #6f91ff 28% 36%, transparent 36% 46%, #1845ea 46% 54%, transparent 54% 64%, #6f91ff 64% 72%, transparent 72%),
    linear-gradient(180deg, transparent 0 25%, rgba(216, 225, 238, 0.9) 25% 26%, transparent 26% 50%, rgba(216, 225, 238, 0.9) 50% 51%, transparent 51% 75%, rgba(216, 225, 238, 0.9) 75% 76%, transparent 76%),
    #ffffff;
  background-size: 100% 70%, 100% 100%, auto;
  background-position: 0 45px, 0 0, 0 0;
  background-repeat: no-repeat;
}

.admin-formula span {
  display: block;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  color: #172033;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.admin-map-canvas {
  min-height: 170px;
  background:
    linear-gradient(35deg, transparent 0 43%, rgba(24, 69, 234, 0.22) 43% 48%, transparent 48% 100%),
    linear-gradient(90deg, transparent 0 39%, rgba(24, 69, 234, 0.28) 39% 45%, transparent 45% 100%),
    linear-gradient(0deg, transparent 0 52%, rgba(24, 69, 234, 0.2) 52% 58%, transparent 58% 100%),
    radial-gradient(circle at 70% 28%, #d8ead1 0 11%, transparent 12%),
    #edf5ff;
}

.admin-map-canvas span {
  left: 55%;
  top: 42%;
  z-index: 2;
}

.admin-map-canvas b,
.admin-map-canvas em {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  background: #ffffff;
  color: #173d9c;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 8px;
  box-shadow: 0 4px 14px rgba(24, 69, 168, 0.14);
}

.admin-map-canvas .street-main {
  left: 45%;
  top: 16%;
  transform: rotate(90deg);
}

.admin-map-canvas .street-cross {
  left: 14%;
  top: 55%;
}

.admin-map-canvas .map-house {
  left: 58%;
  top: 36%;
  background: #1845ea;
  color: #ffffff;
}

@media (max-width: 700px) {
  .admin-layout-table,
  .admin-css-layout,
  .admin-transcript {
    grid-template-columns: 1fr;
  }
}

#knowledge .accordion-trigger:last-of-type {
  margin-top: 8px;
  border-color: #d4deeb;
  background: #f8fafd;
  color: #1a2740;
}

#knowledge .accordion-trigger:last-of-type:hover {
  border-color: #8ba8e8;
  background: #f0f5ff;
  color: #1a2740;
}

#knowledge .accordion-trigger:last-of-type[aria-expanded="true"] {
  border-color: #1845ea;
  background: #eef4ff;
  color: #123477;
}

#knowledge .accordion-trigger:last-of-type::before {
  content: none;
}

#knowledge .accordion-trigger:last-of-type::after {
  color: #1845ea;
  box-shadow: inset 0 0 0 1px #c8d5e8;
}

#knowledge .check-detail-title {
  margin: 18px 0 7px;
  color: #172033;
  font-size: 16px;
  line-height: 1.3;
}

#knowledge .check-detail-panel {
  display: block;
  margin: 0;
  padding: 15px 17px;
  border: 1px solid #d4deeb;
  border-radius: 12px;
  background: #f8fafd;
}

#knowledge .check-detail-panel.example-panel {
  margin-top: 22px;
  padding: 24px;
  border-color: #b8c9ea;
  background:
    linear-gradient(rgba(229, 236, 248, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 236, 248, 0.55) 1px, transparent 1px),
    #f7f9fd;
  background-size: 24px 24px;
}

.acceptance-addition {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #d4deeb;
  color: #263650;
}

#panel-admin .demo-wrong {
  border-color: #d7dee9;
  box-shadow: 0 12px 28px rgba(20, 43, 82, 0.07);
}

#panel-admin .demo-wrong .demo-error {
  border-color: #e04b60;
  color: #a8172d;
  box-shadow: none;
}

#panel-admin .demo-wrong :focus,
#panel-admin .demo-wrong :focus-visible {
  outline: none;
  box-shadow: none;
}

.material-note {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.material-note p {
  max-width: 900px;
  margin: 0;
  color: #40506a;
  font-size: 16px;
  line-height: 1.6;
}
