/* ── ПАСПОРТ УРОКУ ── */
.passport-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 25px;
  font-size: 16px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}
.passport-table th,
.passport-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}
.passport-table th {
  background-color: #34495e;
  color: #fff;
  font-weight: 600;
  width: 32%;
  white-space: nowrap;
}
.passport-table tr:nth-child(even) td {
  background-color: #f9f9f9;
}
.passport-table tr:hover td {
  background-color: #f1f1f1;
}

/* ── КРОК УРОКУ ── */
.step-block {
  border: 1px solid #dde3ea;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.step-header {
  background-color: #2c3e50;
  color: #fff;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
}
.step-num {
  background: #fff;
  color: #2c3e50;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-time {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  background: rgba(255,255,255,.18);
  padding: 2px 11px;
  border-radius: 12px;
  white-space: nowrap;
}
.step-body {
  padding: 16px 20px;
  background: #fff;
  font-size: 17px;
  line-height: 1.85;
}
.step-body p { margin-bottom: 12px; }

.step-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}
.step-role {
  background: #f7f8fa;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
}
.step-role-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  margin-bottom: 5px;
}

/* ── ДИФЕРЕНЦІАЦІЯ ── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0;
}
.diff-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dde3ea;
}
.diff-card-head {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.diff-1 .diff-card-head { background: #e8f5e9; color: #2e7d32; }
.diff-2 .diff-card-head { background: #fff8e1; color: #e65100; }
.diff-3 .diff-card-head { background: #fce4ec; color: #ad1457; }
.diff-card-body {
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  line-height: 1.7;
}

/* ── КРИТЕРІЇ УСПІХУ ── */
.criteria-list {
  list-style: none;
  margin: 12px 0 18px;
  padding: 0;
}
.criteria-list li {
  padding: 9px 12px 9px 38px;
  margin-bottom: 7px;
  background: #f1f8e9;
  border-radius: 6px;
  border-left: 4px solid #43a047;
  position: relative;
  font-size: 16px;
  line-height: 1.65;
}
.criteria-list li::before {
  content: '✓';
  position: absolute;
  left: 12px;
  color: #43a047;
  font-weight: 700;
  font-size: 15px;
}

/* ── ЗВОРОТНІЙ ЗВ'ЯЗОК ── */
.fb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 18px;
}
.fb-plus {
  background: #f1f8e9;
  border-left: 4px solid #43a047;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
}
.fb-improve {
  background: #fce4ec;
  border-left: 4px solid #e91e63;
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.6;
}

/* ── РЕСУРСИ ── */
.res-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
}
.res-list li {
  padding: 10px 12px 10px 36px;
  border-bottom: 1px dashed #ddd;
  font-size: 16px;
  position: relative;
}
.res-list li::before {
  content: '🔗';
  position: absolute;
  left: 8px;
  top: 10px;
  font-size: 14px;
}
.res-list li:last-child { border-bottom: none; }
.res-comment {
  display: block;
  font-size: 13.5px;
  color: #888;
  font-style: italic;
  margin-top: 3px;
}

/* ── ПОМИЛКИ ── */
.error-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: #fff3e0;
  border: 1px solid #ffcc80;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 16px;
  margin-bottom: 10px;
  align-items: start;
}
.error-icon { font-size: 22px; line-height: 1.4; }
.error-fix {
  display: block;
  font-size: 14px;
  color: #2e7d32;
  margin-top: 5px;
}

/* ── FAQ ── */
details.faq {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
details.faq summary {
  font-size: 16px;
  font-weight: 600;
  padding: 12px 16px;
  background: #f7f8fa;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 36px;
  line-height: 1.4;
}
details.faq summary::after {
  content: '+';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #34495e;
}
details.faq[open] summary::after { content: '−'; }
.faq-body {
  padding: 13px 16px;
  font-size: 16px;
  background: #fff;
  border-top: 1px solid #dde3ea;
  line-height: 1.8;
}

/* ── AUTHOR NOTE ── */
.author-note {
  background: #f9fbe7;
  border: 1px solid #dce775;
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 17px;
  line-height: 1.85;
}
.author-note p { margin-bottom: 12px; }
.author-note p:last-child { margin-bottom: 0; }

/* ── ЗАГОЛОВКИ БЛОКІВ ── */
.content-text h2.block-title {
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 3px solid #e0e7ff;
  color: #1a237e;
  text-align: left;
}
.content-text h3.sub-title {
  color: #34495e;
  font-size: 18px;
  margin: 22px 0 10px;
  padding-left: 12px;
  border-left: 4px solid #34495e;
}

/* ── МЕТАДАНІ УРОКУ ── */
.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.meta-tag {
  background: #e8f1fb;
  color: #1a5fa8;
  font-size: 13px;
  padding: 3px 11px;
  border-radius: 12px;
  border: 1px solid #b3d0f0;
}

@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr; }
  .step-roles { grid-template-columns: 1fr; }
  .fb-grid { grid-template-columns: 1fr; }
}