:root {
  color-scheme: light;
  --bg: #eef3f8;
  --card: #ffffff;
  --text: #18334d;
  --muted: #56718b;
  --line: #d7e2ee;
  --accent: #0f66c3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  padding: 24px;
}

.print-shell {
  max-width: 980px;
  margin: 0 auto;
}

.print-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(15, 102, 195, 0.22), transparent 32%),
    linear-gradient(135deg, #ffffff, #eef6ff 60%, #f7fbff);
  border: 1px solid var(--line);
}

.print-hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #c7d9ec;
  background: rgba(255, 255, 255, 0.88);
  color: #17446b;
  font-size: 0.9rem;
  font-weight: 800;
}

.print-actions button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #0e5cad;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.print-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  break-inside: avoid;
}

.accent-card {
  background: linear-gradient(180deg, #fdfefe, #f3f9ff);
}

.subtle-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
}

.print-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.section-kicker {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.steps-grid,
.modules-grid,
.info-grid,
.troubles-grid {
  display: grid;
  gap: 12px;
}

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

.modules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.info-grid,
.troubles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card,
.info-box,
.trouble-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.step-card strong,
.info-box strong,
.trouble-item strong {
  display: block;
  margin-bottom: 6px;
}

.step-card p,
.info-box p,
.trouble-item p,
.module-card p {
  margin: 0;
  color: var(--muted);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #0f66c3;
  color: #fff;
  font-weight: 900;
  margin-bottom: 10px;
}

.module-card {
  margin-bottom: 0;
}

.module-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: start;
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #e8f2fe;
  color: #0f66c3;
  font-size: 1.55rem;
  font-weight: 900;
}

.success-card .module-icon {
  background: #e6f8ef;
  color: #17814e;
}

.module-card h2 {
  margin-bottom: 4px;
}

.visual-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: #e8f2fe;
  color: #0f66c3;
  font-weight: 800;
  font-size: 0.82rem;
}

.print-card ol,
.print-card ul {
  margin: 0;
  padding-left: 22px;
}

.print-card li + li {
  margin-top: 8px;
}

.print-footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.print-footer p {
  margin: 4px 0;
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }

  .print-hero,
  .section-head {
    flex-direction: column;
  }

  h1 {
    font-size: 1.6rem;
  }

  .steps-grid,
  .modules-grid,
  .info-grid,
  .troubles-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
    padding: 0;
    font-size: 12pt;
  }

  .print-shell {
    max-width: none;
  }

  .print-card {
    border: 1px solid #cfd8e2;
    box-shadow: none;
    margin-bottom: 10px;
  }

  .no-print {
    display: none !important;
  }

  .print-hero {
    background: #fff;
  }
}
