/* Portal DotacjeNaSzkolenia — design v2 (nowoczesny, bez zależności) */
:root {
    --p-ink: #0e1726;
    --p-ink-soft: #3b4a5e;
    --p-muted: #64748b;
    --p-line: #e6ebf2;
    --p-brand: #2757ff;
    --p-brand-dark: #1a41d6;
    --p-brand-ink: #0b2ca8;
    --p-accent: #06b6a4;
    --p-accent-dark: #048577;
    --p-warm: #f59e0b;
    --p-bg: #ffffff;
    --p-bg-alt: #f5f8fc;
    --p-bg-deep: #0b1530;
    --p-radius: 16px;
    --p-radius-sm: 10px;
    --p-shadow: 0 1px 2px rgba(14,23,38,.05), 0 8px 24px rgba(14,23,38,.06);
    --p-shadow-hover: 0 2px 4px rgba(39,87,255,.08), 0 16px 40px rgba(39,87,255,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--p-ink);
    background: var(--p-bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--p-brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.18; margin: 0 0 .8rem; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 2.2rem 0 .8rem; letter-spacing: -.01em; font-weight: 750; }
h3 { font-size: 1.08rem; margin: 1.2rem 0 .5rem; font-weight: 700; }
p { margin: .6rem 0 1rem; }
::selection { background: rgba(39,87,255,.18); }

.p-container { max-width: 1160px; margin: 0 auto; padding: 0 1.4rem; }
.p-narrow { max-width: 760px; }

/* ── Header ── */
.p-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(230,235,242,.9);
}
.p-header-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.p-logo { font-size: 1.3rem; font-weight: 850; color: var(--p-ink); letter-spacing: -.02em; }
.p-logo span { background: linear-gradient(90deg, var(--p-brand), var(--p-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-logo:hover { text-decoration: none; }
.p-nav { display: flex; gap: 1.35rem; align-items: center; }
.p-nav > a { color: var(--p-ink-soft); font-weight: 600; font-size: .95rem; }
.p-nav > a:hover { color: var(--p-brand); text-decoration: none; }

/* ── Buttons ── */
.p-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--p-brand) 0%, var(--p-brand-dark) 100%);
    color: #fff !important;
    padding: .7rem 1.45rem; border-radius: 999px;
    font-weight: 700; font-size: .98rem; border: 0; cursor: pointer;
    box-shadow: 0 4px 14px rgba(39,87,255,.30);
    transition: transform .15s ease, box-shadow .15s ease;
}
.p-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(39,87,255,.38); text-decoration: none; }
.p-btn-outline {
    background: #fff; color: var(--p-brand) !important;
    border: 1.5px solid rgba(39,87,255,.35); box-shadow: none;
}
.p-btn-outline:hover { border-color: var(--p-brand); background: #f4f7ff; box-shadow: none; }
.p-btn-sm { padding: .4rem .95rem; font-size: .85rem; box-shadow: none; }

/* ── Hero ── */
.p-hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        radial-gradient(900px 480px at 82% -10%, rgba(6,182,164,.38), transparent 60%),
        radial-gradient(720px 420px at -8% 108%, rgba(102,140,255,.32), transparent 58%),
        linear-gradient(150deg, #0b1530 0%, #10275f 48%, #123a8c 100%);
    padding: 5rem 0 4.2rem;
}
.p-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(120deg, transparent 40%, rgba(0,0,0,.55));
    -webkit-mask-image: linear-gradient(120deg, transparent 40%, rgba(0,0,0,.55));
}
.p-hero .p-container { position: relative; z-index: 1; }
.p-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 820px; }
.p-hero h1 em { font-style: normal; color: #5ff0d4; }
.p-hero-sub { font-size: 1.16rem; max-width: 660px; color: rgba(235,242,255,.92); }
.p-hero .p-btn { background: #fff; color: var(--p-brand-ink) !important; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.p-hero .p-btn:hover { background: #eef3ff; }
.p-hero .p-btn-outline { background: rgba(255,255,255,.08); color: #fff !important; border-color: rgba(255,255,255,.5); }
.p-hero .p-btn-outline:hover { background: rgba(255,255,255,.16); }
.p-hero-stats { display: flex; gap: 1rem; margin: 2.2rem 0; flex-wrap: wrap; }
.p-hero-stats > div {
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--p-radius); padding: 1rem 1.5rem; min-width: 180px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.p-hero-stats strong { display: block; font-size: 2.1rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.p-hero-stats span { color: rgba(235,242,255,.8); font-size: .88rem; }

/* ── Sections ── */
.p-section { padding: 3.4rem 0; }
.p-section-alt { background: var(--p-bg-alt); }
.p-section-sub { color: var(--p-muted); font-size: 1.07rem; max-width: 780px; }
.p-crumbs { font-size: .84rem; color: var(--p-muted); margin-bottom: 1.1rem; }
.p-crumbs a { color: var(--p-muted); }
.p-crumbs a:hover { color: var(--p-brand); }

/* ── Cards ── */
.p-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; margin-top: 1.6rem; }
.p-card {
    display: flex; flex-direction: column; gap: .45rem;
    background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
    padding: 1.4rem; color: inherit; box-shadow: var(--p-shadow);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.p-card:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(39,87,255,.45); box-shadow: var(--p-shadow-hover); }
.p-card strong { font-size: 1.06rem; line-height: 1.35; }
.p-card-tag {
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
    background: linear-gradient(90deg, var(--p-brand), var(--p-accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-card-meta { color: var(--p-muted); font-size: .9rem; }
.p-card-price { font-weight: 750; color: var(--p-accent-dark); }
.p-tag {
    display: inline-block; background: #e8eeff; color: var(--p-brand-ink);
    border-radius: 999px; padding: .08rem .6rem; font-size: .74rem; font-weight: 700; vertical-align: middle;
}

/* ── Steps ── */
.p-steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.3rem; }
.p-steps li {
    background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
    padding: 1.4rem 1.3rem 1.3rem 3.4rem; position: relative; box-shadow: var(--p-shadow);
}
.p-steps li::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 1.05rem; top: 1.25rem;
    width: 1.75rem; height: 1.75rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--p-brand), var(--p-accent));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .92rem; box-shadow: 0 3px 8px rgba(39,87,255,.35);
}

/* ── Tables ── */
.p-table {
    width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1.3rem; font-size: .95rem;
    border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); overflow: hidden;
}
.p-table th, .p-table td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--p-line); vertical-align: top; }
.p-table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); background: var(--p-bg-alt); }
.p-table tbody tr:last-child th, .p-table tbody tr:last-child td { border-bottom: 0; }
.p-table tbody tr:hover { background: #f8fbff; }
.p-table-kv th { width: 215px; color: var(--p-muted); font-weight: 600; background: var(--p-bg-alt); }
.p-muted { color: var(--p-muted); }
.p-nowrap { white-space: nowrap; }
.p-pre { white-space: pre-wrap; font: inherit; background: var(--p-bg-alt); border: 1px solid var(--p-line); border-radius: var(--p-radius-sm); padding: 1.1rem 1.2rem; }

/* ── Województwa / chipsy ── */
.p-woj-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0; }
.p-woj {
    padding: .38rem .9rem; border: 1px solid var(--p-line); border-radius: 999px;
    color: var(--p-ink-soft); font-size: .88rem; font-weight: 650; background: #fff;
    transition: all .14s ease;
}
.p-woj:hover, .p-woj.active {
    background: linear-gradient(135deg, var(--p-brand), var(--p-brand-dark));
    border-color: transparent; color: #fff; text-decoration: none;
    box-shadow: 0 4px 12px rgba(39,87,255,.3);
}

/* ── Listy / news ── */
.p-news { list-style: none; padding: 0; }
.p-news li { padding: .6rem 0; border-bottom: 1px solid var(--p-line); }
.p-news li:last-child { border-bottom: 0; }

/* ── Dwie kolumny ── */
.p-two-col { display: grid; grid-template-columns: 1.65fr 1fr; gap: 2.2rem; align-items: start; margin-top: 1.5rem; }
.p-two-col aside { position: sticky; top: 86px; }

/* ── Lead box / formularze ── */
.p-lead-box {
    background: #fff; border: 1px solid var(--p-line);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--p-brand), var(--p-accent)) 1;
    border-radius: var(--p-radius); padding: 1.6rem;
    box-shadow: 0 10px 36px rgba(14,23,38,.10);
}
.p-lead-box h3 { margin-top: 0; }
.p-form label { display: block; font-weight: 650; font-size: .87rem; margin-bottom: .85rem; color: var(--p-ink-soft); }
.p-form input, .p-form select, .p-form textarea {
    display: block; width: 100%; margin-top: .28rem; padding: .6rem .75rem;
    font: inherit; font-weight: 400; color: var(--p-ink);
    border: 1.5px solid #d4dde8; border-radius: var(--p-radius-sm); background: #fff;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.p-form input:focus, .p-form select:focus, .p-form textarea:focus {
    outline: none; border-color: var(--p-brand); box-shadow: 0 0 0 3px rgba(39,87,255,.15);
}
.p-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.p-form-note { font-size: .82rem; color: var(--p-muted); margin-top: .8rem; }
.p-flash { background: #fff8e6; border: 1px solid #f4d78a; padding: .75rem 1.05rem; border-radius: var(--p-radius-sm); margin: 1rem 0; }

/* ── Kalkulator ── */
.p-calc { background: var(--p-bg-alt); border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 1.4rem; }
.p-calc-wynik {
    font-size: 1.04rem; margin: .9rem 0; padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #e9fbf6, #f0fdf9); border: 1px solid #b7ecdd; border-radius: var(--p-radius-sm);
}
.p-calc-wynik strong { color: var(--p-accent-dark); font-size: 1.35rem; }
.p-calc .p-mini-nabor { padding: .55rem 0; border-bottom: 1px solid var(--p-line); font-size: .9rem; }

/* ── Terminy ── */
.p-terminy { list-style: none; padding: 0; margin: 0 0 1rem; }
.p-terminy li { margin-bottom: .55rem; }
.p-radio { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .75rem; border: 1.5px solid var(--p-line); border-radius: var(--p-radius-sm); cursor: pointer; transition: all .13s ease; }
.p-radio:hover { border-color: var(--p-brand); background: #f6f9ff; }
.p-radio input { margin-top: .3rem; accent-color: var(--p-brand); }

/* ── Program szkolenia ── */
.p-program { margin-bottom: 1rem; }
.p-prog-day {
    margin: 1.4rem 0 .6rem; padding: .55rem .9rem;
    background: linear-gradient(90deg, rgba(39,87,255,.08), rgba(6,182,164,.06));
    border-left: 4px solid var(--p-brand); border-radius: 0 var(--p-radius-sm) var(--p-radius-sm) 0;
    font-size: 1.02rem;
}
.p-prog-list { list-style: none; padding: 0; margin: 0; }
.p-prog-list li {
    padding: .5rem .2rem .5rem 1.6rem; position: relative;
    border-bottom: 1px dashed var(--p-line); line-height: 1.5;
}
.p-prog-list li:last-child { border-bottom: 0; }
.p-prog-list li::before {
    content: "▸"; position: absolute; left: .3rem; color: var(--p-accent); font-size: .9rem;
}
.p-chip {
    display: inline-block; background: #e8eeff; color: var(--p-brand-ink);
    border-radius: 999px; padding: .02rem .5rem; font-size: .76rem; font-weight: 700;
    margin: 0 .15rem; white-space: nowrap; vertical-align: baseline;
}
.p-chip-e { background: #e6f9f4; color: var(--p-accent-dark); }

/* ── Checklista efektów ── */
.p-check { list-style: none; padding: 0; }
.p-check li {
    padding: .45rem 0 .45rem 1.9rem; position: relative; line-height: 1.5;
}
.p-check li::before {
    content: "✓"; position: absolute; left: .2rem; top: .42rem;
    width: 1.25rem; height: 1.25rem; border-radius: 50%;
    background: linear-gradient(135deg, var(--p-accent), #0ea5e9);
    color: #fff; font-size: .78rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}

/* ── Blog ── */
.p-post-meta { color: var(--p-muted); font-size: .88rem; margin-bottom: 1.4rem; }
.p-post article h2 { border-bottom: 2px solid var(--p-line); padding-bottom: .35rem; }
.p-kat-chip { display: inline-block; background: #e8fbf6; color: var(--p-accent-dark); border-radius: 999px; padding: .1rem .6rem; font-size: .75rem; font-weight: 750; }

/* ── Footer ── */
.p-footer { background: var(--p-bg-deep); color: #b8c4d8; padding: 3rem 0 2rem; margin-top: 3.5rem; font-size: .92rem; }
.p-footer strong { color: #fff; display: block; margin-bottom: .5rem; }
.p-footer a { color: #9db4e8; }
.p-footer a:hover { color: #fff; }
.p-footer p { color: #93a3bd; }
.p-footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr; gap: 2.2rem; }
.p-footer-links { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: #7f90ac; }
.p-footer-links a { margin-right: .65rem; white-space: nowrap; color: #8ea5cf; }
.p-footer-links strong { display: inline; color: #c7d2e6; margin-right: .5rem; }

/* ── Telefon w nagłówku ── */
.p-tel { font-weight: 750; color: var(--p-accent-dark) !important; white-space: nowrap; }

/* ── Sticky CTA mobile ── */
.p-sticky-cta {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--p-line); padding: .6rem .9rem;
    justify-content: center; gap: .6rem; box-shadow: 0 -4px 20px rgba(14,23,38,.10);
}
.p-sticky-cta .p-btn { flex: 1; text-align: center; max-width: 240px; }

/* ── Cookie banner ── */
.p-cookie {
    position: fixed; bottom: 1rem; left: 1rem; z-index: 60; max-width: 380px;
    background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius);
    padding: 1.1rem 1.2rem; box-shadow: 0 12px 40px rgba(14,23,38,.18); font-size: .88rem;
}
.p-cookie p { margin: 0 0 .8rem; }
.p-cookie > div { display: flex; gap: .5rem; }

/* ── Zgody w formularzach ── */
.p-zgoda { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 400 !important; font-size: .78rem !important; color: var(--p-muted) !important; }
.p-zgoda input { width: auto !important; margin-top: .2rem; accent-color: var(--p-brand); }

/* ── Doradca przy formularzu ── */
.p-doradca { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--p-line); }
.p-doradca-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
    background: linear-gradient(135deg, var(--p-brand), var(--p-accent));
    color: #fff; font-weight: 800; font-size: 1.05rem;
    display: flex; align-items: center; justify-content: center;
}
.p-doradca small { display: block; color: var(--p-muted); }

/* ── Mini formularz w hero ── */
.p-hero-form { display: flex; gap: .6rem; margin-top: 1.6rem; max-width: 560px; flex-wrap: wrap; }
.p-hero-form input {
    flex: 1; min-width: 160px; padding: .75rem .9rem; border-radius: 999px; border: 0;
    font: inherit; box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.p-hero-form input:focus { outline: 3px solid rgba(95,240,212,.5); }
.p-hero-note { font-size: .82rem; color: rgba(235,242,255,.75); margin-top: .5rem; }

/* ── Kreator-brief (kalkulator) ── */
.p-krok { margin-bottom: 1.6rem; transition: opacity .25s ease; }
.p-krok-nieaktywny { opacity: .38; pointer-events: none; filter: saturate(.6); }
.p-krok-tytul { display: flex; align-items: center; gap: .7rem; margin: 0 0 .8rem; font-size: 1.15rem; }
.p-krok-nr {
    width: 2rem; height: 2rem; border-radius: 50%; flex: 0 0 2rem;
    background: linear-gradient(135deg, var(--p-brand), var(--p-accent));
    color: #fff; font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 3px 10px rgba(39,87,255,.3);
}
.p-chipsy { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1.1rem; }
.p-chip-check {
    display: inline-flex !important; align-items: center; gap: .45rem;
    padding: .45rem .85rem; margin: 0 !important;
    border: 1.5px solid var(--p-line); border-radius: 999px; cursor: pointer;
    font-weight: 600 !important; font-size: .87rem !important; color: var(--p-ink-soft) !important;
    transition: all .13s ease; user-select: none;
}
.p-chip-check input { width: auto !important; margin: 0 !important; accent-color: var(--p-brand); }
.p-chip-check:hover { border-color: var(--p-brand); background: #f4f7ff; }
.p-chip-check:has(input:checked) {
    background: linear-gradient(135deg, rgba(39,87,255,.10), rgba(6,182,164,.08));
    border-color: var(--p-brand); color: var(--p-brand-ink) !important;
}

/* ── Dymek podpowiedzi ── */
.p-tip {
    position: relative; display: inline-block; margin-left: .4rem;
    color: var(--p-brand); font-size: .78rem; font-weight: 700; cursor: help;
    border-bottom: 1px dashed var(--p-brand);
}
.p-tip::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    width: 320px; max-width: 82vw;
    background: var(--p-bg-deep); color: #dce6f5;
    padding: .8rem 1rem; border-radius: 10px; font-size: .8rem; font-weight: 400;
    line-height: 1.5; text-align: left; box-shadow: 0 10px 30px rgba(14,23,38,.35);
    opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 70; pointer-events: none;
}
.p-tip:hover::after, .p-tip:focus::after { opacity: 1; visibility: visible; }

/* ── Data aktualizacji ── */
.p-updated { font-size: .82rem; color: var(--p-muted); }

/* ── Słownik ── */
.p-def { border-left: 3px solid var(--p-accent); padding: .2rem 0 .2rem 1rem; margin: 1.4rem 0; }
.p-def dt { font-weight: 800; font-size: 1.05rem; }
.p-def dd { margin: .3rem 0 0; }

@media (max-width: 900px) {
    .p-sticky-cta { display: flex; }
    .p-tel { display: none; }
    body { padding-bottom: 64px; }
    .p-hero { padding: 3.2rem 0 2.8rem; }
    .p-two-col, .p-footer-grid, .p-form-row { grid-template-columns: 1fr; }
    .p-two-col aside { position: static; }
    .p-nav { gap: .7rem; font-size: .86rem; flex-wrap: wrap; }
    .p-nav .p-btn { display: none; }
}
