/* Skillit Online – elementy treści szkolenia (schematy, przykłady, ćwiczenia) oraz dodatkowe sekcje strony głównej. */

/* ---------- schematy ---------- */
.fig { margin: 1.8em 0; padding: 22px; background: linear-gradient(180deg, var(--v50), #fff); border: 1px solid var(--v200); border-radius: var(--radius); }
.fig-title { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--v700); margin: 0 0 14px; }
.fig-cap { font-size: .86rem; color: var(--soft-text); margin: 14px 0 0; }

.flow { display: flex; gap: 26px; align-items: stretch; flex-wrap: wrap; }
.flow .step { flex: 1 1 140px; position: relative; background: #fff; border: 1.5px solid var(--v300); border-radius: 12px; padding: 14px 14px 12px; font-size: .9rem; line-height: 1.45; box-shadow: var(--shadow-sm); }
.flow .step b { display: block; color: var(--v900); margin-bottom: 4px; font-size: .95rem; }
.flow .step:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--v600); font-weight: 800; font-size: 1.1rem; }
.flow .step.accent { background: linear-gradient(135deg, var(--v600), var(--v800)); border-color: transparent; color: #f3e8ff; }
.flow .step.accent b { color: #fff; }
.flow .step.warn { border-color: #f59e0b; background: var(--warn-bg); }
.flow .step.ok { border-color: #34d399; background: var(--ok-bg); }

.pyramid { display: grid; gap: 8px; justify-items: center; }
.pyramid .lvl { border-radius: 10px; padding: 12px 16px; text-align: center; color: #fff; font-size: .9rem; line-height: 1.4; }
.pyramid .lvl b { display: block; font-size: 1rem; }
.pyramid .l1 { width: 52%; background: #b91c1c; }
.pyramid .l2 { width: 68%; background: #c2410c; }
.pyramid .l3 { width: 84%; background: var(--v700); }
.pyramid .l4 { width: 100%; background: #047857; }

ul.timeline { list-style: none; margin: 0; padding: 0 0 0 8px; border-left: 3px solid var(--v300); }
ul.timeline li { position: relative; padding: 0 0 16px 22px; }
ul.timeline li:last-child { padding-bottom: 0; }
ul.timeline li::before { content: ""; position: absolute; left: -9.5px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--v600); }
ul.timeline li.past::before { background: var(--v600); }
ul.timeline b { display: block; color: var(--v900); }
ul.timeline span { font-size: .93rem; color: var(--muted); }

.lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.light { border-radius: 12px; padding: 14px 16px; font-size: .9rem; border: 1.5px solid; background: #fff; }
.light h4 { margin: 0 0 8px; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.light h4::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.light ul { margin: 0; padding-left: 1.1em; }
.light li { margin-bottom: 3px; }
.light.red { border-color: #fca5a5; background: #fef2f2; } .light.red h4 { color: #991b1b; } .light.red h4::before { background: #dc2626; }
.light.amber { border-color: #fcd34d; background: #fffbeb; } .light.amber h4 { color: #92400e; } .light.amber h4::before { background: #f59e0b; }
.light.green { border-color: #6ee7b7; background: #ecfdf5; } .light.green h4 { color: #065f46; } .light.green h4::before { background: #10b981; }

.anatomy { background: #fff; border: 1.5px solid var(--v200); border-radius: 12px; padding: 16px 18px; font-size: .97rem; line-height: 2; }
.anatomy span { padding: 3px 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pa-role { background: #ede9fe; } .pa-ctx { background: #dbeafe; } .pa-task { background: #d1fae5; } .pa-fmt { background: #fef3c7; } .pa-lim { background: #fee2e2; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .84rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- przykłady z praktyki ---------- */
.case { margin: 1.6em 0; border: 1px solid var(--line); border-left: 5px solid var(--v600); border-radius: var(--radius-sm); padding: 16px 20px; background: #fff; box-shadow: var(--shadow-sm); }
.case .tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--v100); color: var(--v800); margin-bottom: 8px; }
.case.firma { border-left-color: #0891b2; } .case.firma .tag { background: #cffafe; color: #155e75; }
.case h4 { margin: 0 0 8px; font-size: 1.02rem; color: var(--ink); }
.case p { margin: 0 0 .6em; font-size: .97rem; }
.case p:last-child { margin: 0; }
.case .verdict { font-weight: 600; color: var(--v900); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4em 0; }
.compare > div { border-radius: 12px; padding: 14px 18px; font-size: .95rem; border: 1.5px solid; }
.compare h4 { margin: 0 0 8px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.compare .bad { border-color: #fecaca; background: #fef2f2; } .compare .bad h4 { color: #b91c1c; }
.compare .good { border-color: #a7f3d0; background: #ecfdf5; } .compare .good h4 { color: #047857; }
.compare p { margin: 0 0 .5em; } .compare p:last-child { margin: 0; }
.sample { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 12px 16px; font-size: .93rem; margin: .8em 0; }

/* ---------- ćwiczenia ---------- */
.exercise { margin: 2em 0; border: 2px solid var(--v300); border-radius: var(--radius); padding: 20px 22px; background: var(--v50); }
.exercise > h4 { margin: 0 0 6px; font-size: 1.08rem; color: var(--v900); display: flex; align-items: center; gap: 10px; }
.exercise > h4::before { content: "Ćwiczenie"; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--v600); color: #fff; padding: 4px 10px; border-radius: 99px; }
.exercise > p { font-size: .95rem; color: var(--muted); margin: 0 0 12px; }
.exercise details { margin-bottom: 8px; }
.exercise details summary { font-weight: 600; font-size: .97rem; }
.exercise details summary::after { content: "Odpowiedź"; font-size: .72rem; font-weight: 700; top: 18px; color: var(--v700); letter-spacing: .04em; text-transform: uppercase; }
.exercise details summary { padding-right: 96px; }
.exercise details[open] summary::after { content: "Zwiń"; }
.exercise details p { font-size: .95rem; }
.ans { display: inline-block; font-weight: 800; padding: 1px 9px; border-radius: 6px; margin-right: 6px; font-size: .85rem; }
.ans.yes { background: var(--ok-bg); color: var(--ok); } .ans.no { background: var(--err-bg); color: var(--err); } .ans.maybe { background: var(--warn-bg); color: var(--warn); }

dl.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 1em 0; font-size: .95rem; }
dl.glossary dt { font-weight: 700; color: var(--v900); }
dl.glossary dd { margin: 0; color: var(--text); }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.4em 0; }
.keyfacts div { background: #fff; border: 1px solid var(--v200); border-radius: 12px; padding: 14px; text-align: center; font-size: .86rem; color: var(--muted); }
.keyfacts b { display: block; font-size: 1.5rem; color: var(--v800); letter-spacing: -.02em; }
.video { margin: 0 0 1.6em; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video video { display: block; width: 100%; height: auto; }
.print-only { display: none; }

/* ---------- strona główna: zdjęcie autora, wzór zaświadczenia, porównanie ---------- */
.author .photo { flex: none; width: 96px; height: 96px; border-radius: 20px; object-fit: cover; object-position: 50% 20%; box-shadow: 0 8px 20px -10px rgba(76, 29, 149, .6); border: 3px solid #fff; outline: 2px solid var(--v200); }
.cert-preview { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--v200); background: #fff; }
.cert-preview { width: 100%; min-width: 0; aspect-ratio: 297 / 210; }
.grid2 > * { min-width: 0; }
.cert-preview .scaler { position: absolute; left: 0; top: 0; width: 1040px; transform-origin: 0 0; }
.cert-preview .cert { box-shadow: none; max-width: none; width: 1040px; }
.cert.fixed .logo { font-size: 1.5rem; }
.cert.fixed h1 { font-size: 2.6rem; }
.cert.fixed .c-name { font-size: 2.35rem; }
.cert.fixed .c-main { font-size: 1.04rem; }
.cert.fixed .c-cols { font-size: .86rem; }
.cert.fixed .c-foot { font-size: .8rem; }
.stamp { position: absolute; right: 18px; top: 18px; z-index: 2; background: rgba(124, 58, 237, .92); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp thead th { background: var(--v50); color: var(--v900); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
table.cmp td.hl, table.cmp th.hl { background: #f5f0ff; font-weight: 600; }
table.cmp thead th.hl { background: linear-gradient(135deg, var(--v600), var(--v800)); color: #fff; }
.modules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; gap: 14px; }
.mod-card .n { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--v100); color: var(--v800); display: grid; place-items: center; font-weight: 800; }
.mod-card h3 { font-size: 1rem; margin: 0 0 4px; }
.mod-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.includes { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.includes li { background: #fff; border: 1px solid var(--v200); color: var(--v900); font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; }

/* ---------- dokument oferty ---------- */
.offer { max-width: 860px; margin: 0 auto; background: #fff; padding: 48px 56px; box-shadow: var(--shadow); border-radius: 6px; }
.offer h1 { font-size: 1.8rem; }
.offer h2 { font-size: 1.15rem; margin-top: 1.8em; padding-bottom: 6px; border-bottom: 2px solid var(--v200); }
.offer table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.offer th, .offer td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.offer th { background: var(--v50); }

@media (max-width: 980px) {
  .lights, .compare, .keyfacts, .modules-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; gap: 22px; }
  .flow .step { flex: none; }
  .flow .step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
  .pyramid .lvl { width: 100% !important; }
  dl.glossary { grid-template-columns: 1fr; gap: 2px 0; }
  dl.glossary dd { margin-bottom: 10px; }
  .offer { padding: 28px 22px; }
  table.cmp { font-size: .86rem; }
  table.cmp th, table.cmp td { padding: 10px; }
}
@media print {
  header.top, footer, .no-print, .course aside { display: none !important; }
  .course { display: block; padding: 0; }
  .print-only { display: block; }
  .offer { box-shadow: none; padding: 0; max-width: none; }
  .exercise details > *:not(summary) { display: block; }
  body { font-size: 12pt; }
}
