:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --surface: #ffffff;
  --surface-soft: #eef7f9;
  --text: #202020;
  --muted: #5d6a70;
  --line: #dce5e8;
  --brand: #122833;
  --brand-blue: #2f93ab;
  --brand-orange: #e95735;
  --brand-red: #db3931;
  --brand-coral: #e14732;
  --ok: #2f93ab;
  --shadow: 0 16px 34px rgba(18, 40, 51, 0.1);
  --radius: 8px;
  --font-display:
    Agency, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-body:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--brand) 0 520px, var(--bg) 520px);
  color: var(--text);
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 32px;
  align-items: end;
  padding: 10px 0 34px;
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 30px;
}

.brand img {
  display: block;
  width: 154px;
  height: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.75rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: 0;
}

.header-copy p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.header-aside {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.header-aside img {
  display: block;
  width: 64px;
  height: auto;
  padding: 8px;
  border-radius: var(--radius);
  background: #ffffff;
}

.header-aside strong,
.header-aside span {
  display: block;
}

.header-aside strong {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.header-aside span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.progress-panel,
.group,
.toast {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.progress-panel {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius);
}

.progress-text {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 800;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e6eef1;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
  transition: width 0.2s ease;
}

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

.actions button,
.item-toggle,
.ghost-button {
  border-radius: var(--radius);
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.actions button {
  padding: 10px 14px;
  background: var(--brand-orange);
  color: #ffffff;
  font-weight: 800;
}

.actions button:hover,
.item-toggle:hover {
  transform: translateY(-1px);
}

.actions button:hover {
  background: var(--brand-coral);
}

.actions .ghost-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand);
}

.actions .ghost-button:hover {
  border-color: var(--brand-blue);
  background: var(--surface-soft);
}

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

.group {
  overflow: hidden;
  border-radius: var(--radius);
}

.group-header {
  position: relative;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.group-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--brand-blue),
    var(--brand-orange),
    var(--brand-red)
  );
}

.group-header h2 {
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.group-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.item {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.item:last-child {
  border-bottom: 0;
}

.item-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
}

.check-control {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.check-control input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--ok);
}

.item-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.item-title {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.item-short {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.item-status {
  color: var(--brand-orange);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.item-details {
  display: none;
  padding: 0 16px 16px 52px;
  color: var(--muted);
}

.item.is-open .item-details {
  display: block;
}

.item.is-checked {
  background: linear-gradient(90deg, rgba(47, 147, 171, 0.1), #ffffff 68%);
}

.item.is-checked .item-title {
  color: var(--ok);
}

.item-details p {
  margin-bottom: 10px;
}

.item-details ul {
  margin: 0;
  padding-left: 18px;
}

.item-details li + li {
  margin-top: 4px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 14px;
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius);
  color: var(--brand);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.actions button:focus-visible,
.item-toggle:focus-visible,
.check-control input:focus-visible {
  outline: 3px solid rgba(233, 87, 53, 0.35);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body {
    background: linear-gradient(180deg, var(--brand) 0 590px, var(--bg) 590px);
  }

  .page-shell {
    width: min(100% - 22px, 1040px);
    padding-top: 20px;
  }

  .page-header,
  .progress-panel {
    grid-template-columns: 1fr;
  }

  .page-header {
    gap: 18px;
    padding-bottom: 24px;
  }

  .brand {
    margin-bottom: 22px;
  }

  .brand img {
    width: 136px;
  }

  .header-aside {
    grid-template-columns: 68px 1fr;
  }

  .header-aside img {
    width: 68px;
    padding: 6px;
  }

  .progress-panel {
    position: static;
  }

  .actions {
    justify-content: stretch;
  }

  .actions button {
    flex: 1;
  }

  .item-head {
    padding: 14px;
  }

  .item-toggle {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .item-status {
    white-space: normal;
  }

  .item-details {
    padding-left: 50px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .page-header {
    color: var(--text);
  }

  .header-copy p:last-child,
  .header-aside span {
    color: var(--muted);
  }

  .header-aside {
    border-color: var(--line);
    background: #ffffff;
  }

  .progress-panel,
  .group {
    box-shadow: none;
  }

  .actions,
  .item-status {
    display: none;
  }

  .item-details {
    display: block !important;
  }
}

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