/* =========================================================
 *  PK Szkolenia — /szkolenia/ i strona szkolenia.
 *  Kolory jak w kartach webinarów (#4068b2, #e3eaf5).
 * ========================================================= */
.pks {
    --pks-primary: #4068b2;
    --pks-primary-dark: #2d4d85;
    --pks-ink: #1a202c;
    --pks-text: #4a5568;
    --pks-muted: #718096;
    --pks-line: #e3eaf5;
    --pks-soft: #f5f8fc;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px 72px;
    color: var(--pks-text);
}
.pks *, .pks *::before, .pks *::after { box-sizing: border-box; }

.pks-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pks-primary);
}
.pks-h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    font-weight: 800;
    color: var(--pks-ink);
}
.pks-h2 {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--pks-ink);
}
.pks-lead {
    margin: 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--pks-text);
}

/* ── Przyciski / chipy ───────────────────────────────────── */
.pks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    background: var(--pks-primary);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .2s ease;
}
.pks-btn:hover { background: var(--pks-primary-dark); }
.pks-btn-block { display: flex; width: 100%; }
.pks-btn.is-disabled { background: #cbd5e1; color: #475569 !important; cursor: default; white-space: normal; text-align: center; }

.pks-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--pks-soft);
    border: 1px solid var(--pks-line);
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}
.pks-chip-date { background: #e7f1ff; border-color: #bfdbfe; color: #1e40af; }
.pks-chip-live { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.pks-chip-ended { background: #f1f5f9; border-color: #e2e8f0; color: #475569; }

/* ── Lista ───────────────────────────────────────────────── */
.pks-archive-head { margin-bottom: 28px; }

.pks-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.pks-pill {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--pks-line);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--pks-text) !important;
    text-decoration: none !important;
}
.pks-pill:hover { border-color: var(--pks-primary); color: var(--pks-primary) !important; }
.pks-pill.is-active { background: var(--pks-primary); border-color: var(--pks-primary); color: #fff !important; }

.pks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 24px;
}
.pks-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--pks-line);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pks-card:hover {
    border-color: var(--pks-primary);
    box-shadow: 0 4px 12px rgba(64, 104, 178, .15);
    transform: translateY(-2px);
}
.pks-card-media { display: block; aspect-ratio: 16 / 9; background: var(--pks-soft); overflow: hidden; }
.pks-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pks-card-media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4068b2 0%, #2d4d85 100%);
    text-decoration: none;
}
.pks-cal { display: flex; flex-direction: column; align-items: center; color: rgba(255, 255, 255, .92); font-size: 18px; font-weight: 600; }
.pks-cal b { font-size: 64px; line-height: 1; font-weight: 800; }
.pks-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.pks-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pks-card-title { margin: 0 0 10px; font-size: 20px; line-height: 1.35; font-weight: 700; }
.pks-card-title a { color: var(--pks-ink) !important; text-decoration: none !important; }
.pks-card-title a:hover { color: var(--pks-primary) !important; }
.pks-card-excerpt { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.pks-card-trainer { margin: 0 0 16px; font-size: 14px; color: var(--pks-muted); }
.pks-card-trainer strong { color: #2d3748; }
.pks-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--pks-line);
}
.pks-card-price { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pks-card-price strong { font-size: 18px; color: var(--pks-ink); }
.pks-card-price small { font-size: 13px; color: var(--pks-muted); }
.pks-card-price .pks-seats-low { color: #b45309; font-weight: 600; }

.pks-empty {
    padding: 40px 24px;
    border: 2px dashed var(--pks-line);
    border-radius: 16px;
    text-align: center;
}
.pks-empty p { margin: 0 0 6px; }

.pks-ended { margin-top: 56px; }
.pks-ended-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pks-line); }
.pks-ended-list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--pks-line); font-size: 15px; }
.pks-ended-date { flex: 0 0 96px; color: var(--pks-muted); font-variant-numeric: tabular-nums; }
.pks-ended-list a { color: #2d3748 !important; text-decoration: none !important; }
.pks-ended-list a:hover { color: var(--pks-primary) !important; }

/* ── Strona szkolenia ────────────────────────────────────── */
.pks-back {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pks-primary) !important;
    text-decoration: none !important;
}
.pks-single-head { margin-bottom: 32px; }
.pks-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    align-items: start;
}
.pks-cover { margin: 0 0 32px; }
.pks-cover img { display: block; width: 100%; height: auto; border-radius: 16px; }
.pks-section { margin-bottom: 36px; }
.pks-prose { font-size: 16px; line-height: 1.75; }
.pks-prose p { margin: 0 0 14px; }
.pks-prose ul, .pks-prose ol { margin: 0 0 14px; padding-left: 22px; }

.pks-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pks-checklist li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; }
.pks-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e7f1ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234068b2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pks-trainer { display: flex; gap: 20px; align-items: flex-start; }
.pks-trainer-photo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.pks-trainer-name { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--pks-ink); }
.pks-trainer p { margin: 0 0 10px; line-height: 1.65; }

.pks-signup { padding: 28px; border-radius: 16px; background: var(--pks-soft); border: 1px solid var(--pks-line); }
.pks-signup p { line-height: 1.65; }
.pks-signup-closed { margin: 0; font-weight: 600; color: #2d3748; }

.pks-aside { position: sticky; top: 110px; }
.pks-box {
    padding: 28px;
    background: #fff;
    border: 2px solid var(--pks-line);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.pks-box-price { margin: 0; font-size: 28px; font-weight: 800; color: var(--pks-ink); line-height: 1.2; }
.pks-box-price-sub { margin: 4px 0 0; font-size: 14px; color: var(--pks-muted); }
.pks-facts { margin: 20px 0 24px; padding: 0; }
.pks-facts > div { padding: 12px 0; border-top: 1px solid var(--pks-line); }
.pks-facts dt { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pks-muted); }
.pks-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: #2d3748; line-height: 1.5; }
.pks-box-note { margin: 12px 0 0; font-size: 13px; color: var(--pks-muted); text-align: center; }

/* ── Responsywność ───────────────────────────────────────── */
@media (max-width: 992px) {
    .pks-layout { grid-template-columns: 1fr; }
    .pks-aside { position: static; order: -1; }
}
@media (max-width: 640px) {
    .pks { padding: 32px 16px 56px; }
    .pks-grid { grid-template-columns: 1fr; }
    .pks-card-foot { flex-direction: column; align-items: stretch; }
    .pks-card-foot .pks-btn { width: 100%; }
    .pks-box, .pks-signup { padding: 22px; }
    .pks-trainer { flex-direction: column; }
    .pks-ended-list li { flex-direction: column; gap: 2px; }
}

/* ── Formularz zapisu ────────────────────────────────────────────── */
.pks-form { margin-top: 8px; }
.pks-form fieldset { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.pks-form legend { font-size: 18px; font-weight: 700; color: var(--pks-ink); margin-bottom: 12px; padding: 0; }
.pks-f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.pks-f-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pks-f-wide { grid-column: 1 / -1; }
.pks-f-wrap { display: contents; }
.pks-f-wrap[hidden] { display: none; }
.pks-f-field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; color: #2d3748; }
.pks-f-opt { font-weight: 400; color: var(--pks-muted); }
.pks-req { color: #b91c1c; }
.pks-form input[type=text], .pks-form input[type=email], .pks-form input[type=tel], .pks-form textarea {
    width: 100%; padding: 11px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
    font: inherit; font-size: 15px; color: var(--pks-ink); transition: border-color .15s, box-shadow .15s;
}
.pks-form input:focus, .pks-form textarea:focus { outline: none; border-color: var(--pks-primary); box-shadow: 0 0 0 3px rgba(64, 104, 178, .18); }
.pks-form input.is-synced { background: #f8fafc; color: var(--pks-text); }
.pks-f-field.is-invalid input, .pks-f-field.is-invalid textarea { border-color: #dc2626; }
.pks-f-error { margin: 6px 0 0; font-size: 13px; color: #b91c1c; }
.pks-f-error-top { margin: 0 0 16px; padding: 12px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; font-size: 15px; }
.pks-f-help { display: block; margin-top: 4px; font-size: 13px; color: var(--pks-muted); }
.pks-f-hint { margin: 0 0 12px; font-size: 14px; color: var(--pks-muted); }
.pks-f-hp { position: absolute; left: -9999px; top: -9999px; }
.pks-f-check { display: block; margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #2d3748; cursor: pointer; }
.pks-f-check input { margin-right: 6px; width: 16px; height: 16px; vertical-align: -2px; }
.pks-f-check.is-invalid { color: #b91c1c; }
.pks-f-check .pks-f-error { display: block; }
.pks-f-rodo { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--pks-muted); }
.pks-f-radios { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; font-size: 15px; }
.pks-f-radios input { margin-right: 6px; }
.pks-f-row { padding: 16px; margin-bottom: 12px; background: #fff; border: 1px solid var(--pks-line); border-radius: 12px; }
.pks-f-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--pks-primary); }
.pks-f-row-del { border: 0; background: none; color: var(--pks-muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
.pks-f-row-del:hover { color: #b91c1c; }
.pks-f-row-del[hidden] { display: none; }
.pks-btn-ghost { background: #fff; color: var(--pks-primary) !important; border: 2px solid var(--pks-primary); padding: 10px 18px; cursor: pointer; font: inherit; font-weight: 600; }
.pks-btn-ghost:hover { background: var(--pks-primary); color: #fff !important; }
.pks-f-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 18px 20px; background: #fff; border: 1px solid var(--pks-line); border-radius: 12px; }
.pks-f-summary > div { display: flex; flex-direction: column; gap: 2px; }
.pks-f-summary span { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pks-muted); }
.pks-f-summary strong { font-size: 17px; color: var(--pks-ink); }
.pks-f-summary small { font-size: 12px; color: var(--pks-muted); }
.pks-f-total strong { color: var(--pks-primary); font-size: 20px; }
.pks-f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.pks-f-submit { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 28px; }
.pks-f-submit:disabled { opacity: .6; cursor: wait; }
.pks-thanks { }
.pks-thanks-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: #166534; }
.pks-thanks .pks-facts { margin: 16px 0 0; }
@media (max-width: 640px) {
    .pks-f-grid, .pks-f-grid-3 { grid-template-columns: 1fr; }
}

/* ── Nagłówek listy z grafiką ────────────────────────────────────── */
.pks-hero {
    position: relative; display: flex; align-items: center; gap: 24px; min-height: 320px;
    margin: 0 0 32px; padding: 52px 56px; border-radius: 20px; overflow: hidden;
    background: #071b3d center / cover no-repeat; color: #fff;
}
.pks-hero-text { position: relative; z-index: 1; max-width: 640px; }
.pks-hero .pks-eyebrow { display: flex; align-items: center; gap: 12px; color: #9fc1ff; }
.pks-hero .pks-eyebrow::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: #e30613; }
.pks-hero .pks-h1 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); }
.pks-hero .pks-lead { color: #d7e3ff; font-size: 17px; }
.pks-hero-art { position: absolute; right: 48px; top: 50%; width: 380px; height: auto; transform: translateY(-50%); pointer-events: none; }
@media (max-width: 1100px) { .pks-hero-art { right: 24px; width: 300px; } }
@media (max-width: 900px) { .pks-hero-art { display: none; } }
@media (max-width: 640px) { .pks-hero { min-height: 0; padding: 32px 22px; border-radius: 16px; } }

/* ── Tury cenowe ─────────────────────────────────────────────────── */
.pks-tury { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.pks-tury li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 12px; border: 1px solid var(--pks-line); border-radius: 10px; font-size: 14px; color: #2d3748; }
.pks-tury li small { grid-column: 1 / -1; font-size: 12px; color: var(--pks-muted); }
.pks-tury-name b { color: var(--pks-primary); }
.pks-tury-price { font-weight: 700; white-space: nowrap; }
.pks-tury li.is-current { border-color: var(--pks-primary); background: #e7f1ff; }
.pks-tury li.is-current::before { content: "Teraz"; grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pks-primary); }
.pks-tury li.is-done { opacity: .55; }
.pks-tury li.is-done .pks-tury-price { text-decoration: line-through; }
.pks-card-price .pks-tura-badge { color: #166534; font-weight: 600; }
