/* ============================================================
   Kreator CV — szablony arkusza (A4 = 794 × 1123 px @96dpi)
   Uwaga: arkusz renderuje też html2canvas (eksport PDF).
   Nie używamy tu: color-mix(), object-fit, font-variant: small-caps,
   filtrów ani blend-mode — html2canvas ich nie odwzorowuje.
   ============================================================ */

.cv {
  --cv-ink: #1C1F26;
  --cv-soft: #4A4F59;
  --cv-faint: #767B85;
  --cv-rule: #E2E3E6;
  --cv-head: 'IBM Plex Sans', Arial, sans-serif;
  --cv-body: 'IBM Plex Sans', Arial, sans-serif;
  --cv-mono: 'IBM Plex Mono', ui-monospace, monospace;
  width: 794px;
  min-height: 1123px;
  box-sizing: border-box;
  background: #FFFFFF;
  color: var(--cv-ink);
  font-family: var(--cv-body);
  font-size: var(--cv-base, 13.5px);
  line-height: 1.45;
  font-variant-numeric: lining-nums;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.cv *, .cv *::before, .cv *::after { box-sizing: border-box; }
.cv.font-sans  { --cv-head: 'IBM Plex Sans', Arial, sans-serif;  --cv-body: 'IBM Plex Sans', Arial, sans-serif; }
.cv.font-serif { --cv-head: 'IBM Plex Serif', Georgia, serif;     --cv-body: 'IBM Plex Serif', Georgia, serif; }
.cv.font-slab  { --cv-head: 'Zilla Slab', Georgia, serif;         --cv-body: 'IBM Plex Sans', Arial, sans-serif; }
.cv.font-lora   { --cv-head: 'Lora', Georgia, serif;                --cv-body: 'Lora', Georgia, serif; }
.cv.font-work   { --cv-head: 'Work Sans', Arial, sans-serif;        --cv-body: 'Work Sans', Arial, sans-serif; }
.cv.font-source { --cv-head: 'Source Sans 3', Arial, sans-serif;    --cv-body: 'Source Sans 3', Arial, sans-serif; }
.cv.font-mix    { --cv-head: 'Lora', Georgia, serif;                --cv-body: 'Source Sans 3', Arial, sans-serif; }
.cv.font-source, .cv.font-mix { font-size: calc(var(--cv-base, 13.5px) * 1.04); }

.cv a { color: inherit; text-decoration: none; }
.cv h1, .cv h2 { margin: 0; font-weight: 600; }
.cv ul { margin: 0; padding: 0; list-style: none; }
.cv p { margin: 0; max-width: none; color: inherit; }

/* Elementy wspólne */
.cv-name { font-family: var(--cv-head); font-size: 2.3em; line-height: 1.08; color: var(--cv-ink); letter-spacing: -.005em; }
.cv-role { font-size: 1.08em; color: var(--cv-accent); margin-top: .3em; font-weight: 500; }
.cv-main { display: flex; flex-direction: column; flex: 1 1 auto; }
.cv-section { margin-top: 1.5em; }
.cv-h { font-family: var(--cv-head); font-size: 1.05em; color: var(--cv-accent); margin-bottom: .65em; }

.cv-entry { margin-bottom: .95em; }
.cv-entry:last-child { margin-bottom: 0; }
.cv-entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.cv-entry-main { min-width: 0; }
.cv-entry-title { font-weight: 600; color: var(--cv-ink); }
.cv-entry-meta { color: var(--cv-soft); font-size: .94em; margin-top: .05em; }
.cv-entry-date { flex: none; font-size: .88em; color: var(--cv-faint); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.cv-entry-link { flex: none; font-size: .86em; color: var(--cv-accent); white-space: nowrap; }

.cv-desc { color: var(--cv-soft); margin-top: .3em; }
.cv-desc p + p { margin-top: .3em; }
.cv-desc ul { margin-top: .25em; }
.cv-desc .cv-sub { font-weight: 600; color: var(--cv-ink); margin-top: .45em; }
.cv-desc .cv-sub:first-child { margin-top: 0; }
.cv-aside .cv-desc .cv-sub { color: inherit; }
.cv-desc li { position: relative; padding-left: 1em; margin-top: .18em; }
.cv-desc li .cv-b { position: absolute; left: 0; top: 0; width: 1em; color: var(--cv-accent); font-weight: 600; }

.cv-metric { display: inline-block; margin-left: .6em; padding: .05em .5em; border-radius: 2px; font-size: .82em; font-weight: 600; color: var(--cv-accent); background: var(--cv-accent-soft); vertical-align: .08em; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .35em; }
.cv-tags li { font-size: .78em; padding: .1em .55em; border-radius: 2px; background: var(--cv-accent-tint); color: var(--cv-accent); border: 1px solid var(--cv-accent-soft); }

.cv-gallery { display: flex; gap: 6px; margin-top: .5em; }
.cv-shot { flex: 1 1 0; height: 92px; border-radius: 3px; background-color: #EEF0F2; background-size: cover; background-position: center; }
.cv-gallery.n1 .cv-shot { flex: 0 0 180px; }
.cv-gallery.large .cv-shot { height: 150px; }
.cv-gallery.large.n1 .cv-shot { flex: 1 1 auto; height: 250px; }
.cv-gallery.large.n2 .cv-shot { height: 190px; }

.cv-skill-group + .cv-skill-group { margin-top: .6em; }
.cv-skill-group-name { font-size: .86em; font-weight: 600; color: var(--cv-soft); margin-bottom: .3em; }
.cv-skill-list { display: flex; flex-wrap: wrap; gap: 5px 7px; }
.cv-skill { display: inline-flex; align-items: center; gap: 7px; padding: .16em .6em; border-radius: 3px; background: var(--cv-accent-tint); border: 1px solid var(--cv-accent-soft); font-size: .92em; }
.cv-level { display: inline-flex; gap: 2px; }
.cv-level i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--cv-accent-line); }
.cv-level i.on { background: var(--cv-accent); }

.cv-lang-list li { display: flex; justify-content: space-between; gap: 12px; padding: .18em 0; }
.cv-lang-name { font-weight: 600; }
.cv-lang-level { color: var(--cv-soft); font-size: .92em; }

.cv-contact { display: flex; flex-wrap: wrap; gap: .25em 1.3em; font-size: .9em; color: var(--cv-soft); margin-top: .9em; }
.cv-stack li { margin-bottom: .55em; }
.cv-stack .cv-k { display: block; font-size: .78em; opacity: .75; }
.cv-stack a, .cv-stack span:not(.cv-k) { overflow-wrap: anywhere; }

.cv-photo { flex: none; background-color: #E9EAEC; background-size: cover; background-position: center; }
.cv-photo.shape-circle { border-radius: 50%; }
.cv-photo.shape-rounded { border-radius: 12px; }
.cv-photo.shape-square { border-radius: 3px; }
.cv-photo.shape-fill { border-radius: 0; }

.cv-consent { margin-top: auto; padding-top: 2.2em; font-size: .7em; line-height: 1.4; color: #8A8E96; }

/* ============================================================
   1. KLASYCZNY — jedna kolumna, wyśrodkowany nagłówek
   ============================================================ */
.tpl-classic { padding: 54px 64px 44px; }
.tpl-classic .cv-header { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 1.2em; border-bottom: 1px solid var(--cv-ink); }
.tpl-classic .cv-header-text { display: flex; flex-direction: column; align-items: center; }
.tpl-classic .cv-photo { order: -1; width: 92px; height: 92px; margin-bottom: 1em; }
.tpl-classic .cv-name { font-size: 2.35em; letter-spacing: .01em; }
.tpl-classic .cv-role { color: var(--cv-soft); font-weight: 400; font-style: italic; }
.tpl-classic .cv-contact { justify-content: center; gap: .25em 0; }
.tpl-classic .cv-contact li + li::before { content: "|"; margin: 0 .7em; color: #B9BCC2; }
.tpl-classic .cv-h { font-size: .8em; text-transform: uppercase; letter-spacing: .02em; color: var(--cv-ink); padding-bottom: .4em; border-bottom: 1px solid var(--cv-accent-line); }
.tpl-classic .cv-section { margin-top: 1.45em; }
.tpl-classic .cv-skill { background: transparent; border: none; padding: 0; }
.tpl-classic .cv-skill + .cv-skill::before { content: "•"; color: var(--cv-accent); margin-right: 7px; }
.tpl-classic .cv-skill-list { gap: 4px 7px; }

/* ============================================================
   2. NOWOCZESNY — kolumna boczna w kolorze akcentu
   ============================================================ */
.tpl-modern .cv-grid { display: grid; grid-template-columns: 250px 1fr; flex: 1 1 auto; }
.tpl-modern .cv-aside { background: var(--cv-accent); color: #FFFFFF; padding: 44px 26px 36px; }
.tpl-modern .cv-main { padding: 50px 44px 40px 40px; }
.tpl-modern .cv-photo { width: 138px; height: 138px; margin: 0 auto 1.6em; border: 4px solid rgba(255, 255, 255, .28); }
.tpl-modern .cv-aside .cv-section:first-of-type { margin-top: 0; }
.tpl-modern .cv-aside .cv-h { color: #FFFFFF; font-size: .78em; text-transform: uppercase; letter-spacing: .02em; padding-bottom: .45em; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.tpl-modern .cv-aside .cv-stack .cv-k { color: rgba(255, 255, 255, .72); opacity: 1; }
.tpl-modern .cv-aside .cv-skill-group-name { color: rgba(255, 255, 255, .72); }
.tpl-modern .cv-aside .cv-skill-list { display: block; }
.tpl-modern .cv-aside .cv-skill { display: flex; justify-content: space-between; background: transparent; border: none; padding: .14em 0; font-size: .95em; }
.tpl-modern .cv-aside .cv-level { gap: 3px; }
.tpl-modern .cv-aside .cv-level i { width: 10px; height: 4px; border-radius: 1px; background: rgba(255, 255, 255, .28); }
.tpl-modern .cv-aside .cv-level i.on { background: #FFFFFF; }
.tpl-modern .cv-aside .cv-lang-list li { display: block; }
.tpl-modern .cv-aside .cv-lang-level { display: block; color: rgba(255, 255, 255, .75); }
.tpl-modern .cv-aside .cv-desc { color: rgba(255, 255, 255, .88); }
.tpl-modern .cv-aside .cv-desc li .cv-b { color: #FFFFFF; }
.tpl-modern .cv-header { padding-bottom: .4em; }
.tpl-modern .cv-name { font-size: 2.45em; font-weight: 600; }
.tpl-modern .cv-header::after { content: ""; display: block; width: 46px; height: 4px; background: var(--cv-accent); margin-top: 1em; }
.tpl-modern .cv-main .cv-h { padding-left: .7em; border-left: 3px solid var(--cv-accent); color: var(--cv-ink); line-height: 1.15; }

/* ============================================================
   3. MINIMALISTYCZNY — etykiety sekcji na marginesie
   ============================================================ */
.tpl-minimal { padding: 60px 64px 44px; }
.tpl-minimal .cv-header { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: end; }
.tpl-minimal.no-photo .cv-header { grid-template-columns: 1fr; }
.tpl-minimal .cv-photo { width: 84px; height: 104px; grid-row: 1 / span 2; }
.tpl-minimal .cv-name { font-size: 2.5em; font-weight: 500; letter-spacing: -.015em; }
.tpl-minimal .cv-role { color: var(--cv-faint); font-weight: 400; }
.tpl-minimal .cv-contact { grid-column: 1 / -1; margin-top: 1.4em; padding-top: 1em; border-top: 1px solid var(--cv-rule); gap: .2em 1.6em; }
.tpl-minimal.has-photo .cv-contact { grid-column: 2; }
.tpl-minimal .cv-section { display: grid; grid-template-columns: 128px 1fr; column-gap: 24px; margin-top: 0; padding-top: 1.15em; margin-bottom: .2em; }
.tpl-minimal .cv-section:first-child { padding-top: 2em; }
.tpl-minimal .cv-h { font-size: .8em; font-weight: 600; color: var(--cv-accent); padding-top: .22em; margin: 0; line-height: 1.3; }
.tpl-minimal .cv-skill { background: transparent; border: 1px solid var(--cv-rule); }
.tpl-minimal .cv-desc li .cv-b { color: var(--cv-faint); }

/* ============================================================
   4. TECHNICZNY — pasek akcentu, mono, gęsty układ
   ============================================================ */
.tpl-technical { padding: 50px 54px 42px; }
.tpl-technical::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--cv-accent); }
.tpl-technical .cv-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.tpl-technical .cv-photo { width: 92px; height: 92px; }
.tpl-technical .cv-name { font-size: 2.2em; font-weight: 600; }
.tpl-technical .cv-role { font-family: var(--cv-mono); font-size: .98em; font-weight: 500; }
.tpl-technical .cv-contact { font-family: var(--cv-mono); font-size: .8em; gap: .3em 1.4em; }
.tpl-technical .cv-h { display: flex; align-items: center; font-family: var(--cv-mono); font-size: .9em; font-weight: 500; color: var(--cv-accent); }
.tpl-technical .cv-h::before { content: "//"; margin-right: .55em; color: var(--cv-accent-line); }
.tpl-technical .cv-h::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--cv-rule); margin-left: .8em; }
.tpl-technical .cv-section { margin-top: 1.3em; }
.tpl-technical .cv-entry-date { font-family: var(--cv-mono); font-size: .8em; }
.tpl-technical .cv-skill-group { display: grid; grid-template-columns: 172px 1fr; column-gap: 14px; align-items: start; }
.tpl-technical .cv-skill-group-name { margin: .2em 0 0; font-size: .84em; }
.tpl-technical .cv-skill { font-family: var(--cv-mono); font-size: .8em; background: #FFFFFF; border: 1px solid #D6D9DE; }
.tpl-technical .cv-level i { width: 5px; height: 5px; border-radius: 1px; }
.tpl-technical .cv-tags li { font-family: var(--cv-mono); }
.tpl-technical .cv-entry-link { font-family: var(--cv-mono); font-size: .8em; }

/* ============================================================
   5. STUDIO — pas nagłówka, portfolio z dużymi kadrami
   ============================================================ */
.tpl-studio .cv-band { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; background: var(--cv-accent); color: #FFFFFF; padding: 50px 56px 34px; }
.tpl-studio .cv-name { color: #FFFFFF; font-size: 2.9em; font-weight: 700; letter-spacing: -.01em; }
.tpl-studio .cv-role { color: #FFFFFF; opacity: .86; font-size: 1.15em; font-weight: 400; margin-top: .35em; }
.tpl-studio .cv-photo { width: 118px; height: 140px; margin-bottom: -58px; border: 4px solid #FFFFFF; background-color: #F0F1F3; }
.tpl-studio .cv-contact { margin: 0; padding: 14px 56px; background: var(--cv-accent-tint); color: var(--cv-soft); gap: .25em 1.6em; }
.tpl-studio.has-photo .cv-contact { padding-right: 190px; }
.tpl-studio .cv-main { padding: 12px 56px 44px; }
.tpl-studio .cv-section { margin-top: 1.7em; }
.tpl-studio .cv-h { font-size: 1.3em; font-weight: 600; color: var(--cv-ink); }
.tpl-studio .cv-h::before { content: ""; display: block; width: 34px; height: 3px; background: var(--cv-accent); margin-bottom: .45em; }
.tpl-studio .cv-project { margin-bottom: 1.35em; }
.tpl-studio .cv-project .cv-entry-title { font-family: var(--cv-head); font-size: 1.12em; }
.tpl-studio .cv-gallery { gap: 8px; margin-top: .6em; }

/* ============================================================
   6. ELEGANCKI — szeryfowy, kolumna boczna po prawej
   ============================================================ */
.tpl-elegant { padding: 56px 58px 44px; }
.tpl-elegant .cv-header { display: flex; align-items: center; gap: 26px; padding-bottom: 1.5em; margin-bottom: .3em; border-bottom: 3px double var(--cv-accent-line); }
.tpl-elegant .cv-photo { width: 100px; height: 100px; }
.tpl-elegant .cv-name { font-size: 2.55em; font-weight: 400; letter-spacing: .005em; }
.tpl-elegant .cv-role { font-style: italic; font-weight: 400; }
.tpl-elegant .cv-grid { display: grid; grid-template-columns: 1fr 224px; column-gap: 26px; flex: 1 1 auto; }
.tpl-elegant .cv-aside { border-left: 1px solid var(--cv-rule); padding-left: 20px; font-size: .92em; }
.tpl-elegant .cv-s-contact .cv-stack a, .tpl-elegant .cv-s-links .cv-stack a { font-size: .9em; }
.tpl-elegant .cv-aside .cv-h { line-height: 1.45; }
.tpl-elegant .cv-h { font-size: .76em; text-transform: uppercase; letter-spacing: .02em; color: var(--cv-accent); font-weight: 600; }
.tpl-elegant .cv-main .cv-h { border-bottom: 1px solid var(--cv-rule); padding-bottom: .5em; }
.tpl-elegant .cv-aside .cv-skill-list { display: block; }
.tpl-elegant .cv-aside .cv-skill { display: flex; justify-content: space-between; background: transparent; border: none; padding: .12em 0; font-size: 1em; }
.tpl-elegant .cv-aside .cv-lang-list li { display: block; }
.tpl-elegant .cv-aside .cv-lang-level { display: block; }
.tpl-elegant .cv-aside .cv-entry-head { display: block; }
.tpl-elegant .cv-aside .cv-entry-date { display: block; margin-top: .1em; }
.tpl-elegant .cv-desc li .cv-b { font-weight: 400; }

/* ============================================================
   7. MENEDŻERSKI — jasna kolumna boczna, szeryfowe nagłówki, gruba linia pod nazwiskiem
   ============================================================ */
.tpl-executive .cv-grid { display: grid; grid-template-columns: 232px 1fr; flex: 1 1 auto; }
.tpl-executive .cv-aside { background: var(--cv-accent-tint); border-right: 1px solid var(--cv-accent-soft); padding: 48px 24px 36px 30px; font-size: .94em; }
.tpl-executive .cv-main { padding: 48px 46px 40px 38px; }
.tpl-executive .cv-photo { width: 120px; height: 140px; margin-bottom: 1.6em; }
.tpl-executive .cv-header { padding-bottom: 1.1em; border-bottom: 4px solid var(--cv-ink); }
.tpl-executive .cv-name { font-size: 2.5em; font-weight: 600; letter-spacing: -.01em; }
.tpl-executive .cv-role { color: var(--cv-soft); font-weight: 400; font-size: 1.12em; }
.tpl-executive .cv-h { font-size: 1.12em; color: var(--cv-ink); padding-bottom: .3em; border-bottom: 1px solid var(--cv-rule); }
.tpl-executive .cv-aside .cv-h { font-size: .78em; font-family: var(--cv-body); text-transform: uppercase; letter-spacing: .02em; color: var(--cv-accent); border-bottom-color: var(--cv-accent-soft); }
.tpl-executive .cv-aside .cv-section:first-of-type { margin-top: 0; }
.tpl-executive .cv-aside .cv-skill-list { display: block; }
.tpl-executive .cv-aside .cv-skill { display: flex; justify-content: space-between; background: transparent; border: none; padding: .12em 0; font-size: 1em; }
.tpl-executive .cv-aside .cv-lang-list li { display: block; }
.tpl-executive .cv-aside .cv-lang-level { display: block; }
.tpl-executive .cv-aside .cv-entry-head { display: block; }
.tpl-executive .cv-aside .cv-entry-date { display: block; margin-top: .1em; }
.tpl-executive .cv-entry-title { font-size: 1.04em; }
.tpl-executive .cv-entry-date { color: var(--cv-accent); font-weight: 600; }

/* ============================================================
   8. OŚ CZASU — daty w lewej kolumnie, linia z punktami
   ============================================================ */
.tpl-timeline { padding: 52px 58px 44px; }
.tpl-timeline .cv-header { display: flex; align-items: center; gap: 24px; }
.tpl-timeline .cv-photo { width: 96px; height: 96px; border: 3px solid var(--cv-accent-soft); }
.tpl-timeline .cv-name { font-size: 2.45em; font-weight: 600; letter-spacing: -.02em; }
.tpl-timeline .cv-role { font-weight: 500; }
.tpl-timeline .cv-contact { margin-top: .7em; }
.tpl-timeline .cv-h { font-size: 1em; text-transform: uppercase; letter-spacing: .02em; color: var(--cv-ink); display: flex; align-items: center; gap: .6em; }
.tpl-timeline .cv-h::before { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--cv-accent); flex: none; }
.tpl-timeline .cv-section { margin-top: 1.55em; }
.tpl-timeline .cv-s-experience .cv-entry, .tpl-timeline .cv-s-education .cv-entry { position: relative; padding-left: 146px; margin-bottom: 0; padding-bottom: .95em; }
.tpl-timeline .cv-s-experience .cv-entry::before, .tpl-timeline .cv-s-education .cv-entry::before { content: ""; position: absolute; left: 129px; top: .35em; bottom: 0; width: 2px; background: var(--cv-accent-soft); }
.tpl-timeline .cv-s-experience .cv-entry::after, .tpl-timeline .cv-s-education .cv-entry::after { content: ""; position: absolute; left: 125px; top: .3em; width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--cv-accent); }
.tpl-timeline .cv-s-experience .cv-entry:last-child, .tpl-timeline .cv-s-education .cv-entry:last-child { padding-bottom: 0; }
.tpl-timeline .cv-s-experience .cv-entry:last-child::before, .tpl-timeline .cv-s-education .cv-entry:last-child::before { bottom: .2em; }
.tpl-timeline .cv-s-experience .cv-entry-date, .tpl-timeline .cv-s-education .cv-entry-date { position: absolute; left: 0; top: .12em; width: 116px; text-align: right; white-space: nowrap; font-size: .78em; font-weight: 600; color: var(--cv-accent); }
.tpl-timeline .cv-skill { background: transparent; border: 1.5px solid var(--cv-accent-soft); border-radius: 999px; }
.tpl-timeline .cv-desc li .cv-b { color: var(--cv-accent); }

/* ============================================================
   9. WYRAZISTY — duże nazwisko, nagłówki na plakietkach, pasek po lewej
   ============================================================ */
.tpl-bold { padding: 56px 58px 44px 72px; }
.tpl-bold::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px; background: var(--cv-accent); }
.tpl-bold .cv-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 1.2em; }
.tpl-bold .cv-photo { width: 104px; height: 124px; }
.tpl-bold .cv-name { font-size: 3.2em; font-weight: 600; line-height: .98; letter-spacing: -.03em; }
.tpl-bold .cv-role { font-size: 1.2em; font-weight: 500; margin-top: .4em; }
.tpl-bold .cv-contact { margin-top: 1em; color: var(--cv-ink); }
.tpl-bold .cv-h { display: inline-block; background: var(--cv-accent); color: #FFFFFF; font-size: .82em; text-transform: uppercase; letter-spacing: .02em; padding: .32em .75em .28em; border-radius: 2px; margin-bottom: .8em; }
.tpl-bold .cv-section { margin-top: 1.5em; }
.tpl-bold .cv-entry-title { font-size: 1.06em; }
.tpl-bold .cv-entry-date { color: var(--cv-ink); font-weight: 600; }
.tpl-bold .cv-skill { background: var(--cv-accent-soft); border-color: transparent; color: var(--cv-ink); font-weight: 500; }

/* ============================================================
   10. KARTY — szare tło, sekcje na białych kartach
   ============================================================ */
.tpl-cards { background: #F2F3F5; padding: 44px 44px 36px; }
.tpl-cards .cv-header { display: flex; align-items: center; gap: 22px; background: #FFFFFF; border-radius: 10px; padding: 26px 28px; border-top: 5px solid var(--cv-accent); }
.tpl-cards .cv-photo { width: 92px; height: 92px; }
.tpl-cards .cv-name { font-size: 2.35em; font-weight: 600; }
.tpl-cards .cv-contact { margin-top: .6em; }
.tpl-cards .cv-section { background: #FFFFFF; border-radius: 10px; padding: 18px 24px 20px; margin-top: 14px; }
.tpl-cards .cv-h { font-size: .8em; text-transform: uppercase; letter-spacing: .02em; color: var(--cv-accent); margin-bottom: .75em; }
.tpl-cards .cv-consent { color: #7D828B; padding-top: 1.6em; }

/* ============================================================
   11. ZWIĘZŁY — gęsty, drobne sekcje w trzech kolumnach
   ============================================================ */
.tpl-compact { padding: 44px 50px 40px; font-size: calc(var(--cv-base, 13.5px) * .96); }
.tpl-compact .cv-header { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: end; padding-bottom: .8em; border-bottom: 2px solid var(--cv-accent); }
.tpl-compact .cv-header-text { display: block; }
.tpl-compact .cv-photo { width: 74px; height: 88px; grid-column: 2; grid-row: 1; }
.tpl-compact .cv-name { font-size: 2.05em; font-weight: 600; }
.tpl-compact .cv-role { margin-top: .15em; font-size: 1.05em; }
.tpl-compact .cv-contact { margin-top: .45em; }
/* drobne sekcje w jednym wierszu zamiast kolumn obok siebie — kolumny mieszają kolejność czytania w ATS */
.tpl-compact .cv-lang-list { display: flex; flex-wrap: wrap; gap: .2em 1.6em; }
.tpl-compact .cv-lang-list li { gap: .5em; padding: 0; }
.tpl-compact .cv-section { margin-top: 1.05em; }
.tpl-compact .cv-h { font-size: .78em; text-transform: uppercase; letter-spacing: .02em; color: var(--cv-accent); padding-bottom: .3em; border-bottom: 1px solid var(--cv-rule); margin-bottom: .5em; }
.tpl-compact .cv-entry { margin-bottom: .6em; }
.tpl-compact .cv-entry-head { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.tpl-compact .cv-entry-main { display: flex; flex-wrap: wrap; column-gap: .5em; align-items: baseline; }
.tpl-compact .cv-entry-meta { margin: 0; }
.tpl-compact .cv-entry-meta::before { content: "·"; margin-right: .5em; color: var(--cv-faint); }
.tpl-compact .cv-cert .cv-entry-main, .tpl-compact .cv-s-certificates .cv-entry-main { display: block; }
.tpl-compact .cv-s-certificates .cv-entry-meta::before { content: none; }
.tpl-compact .cv-s-certificates .cv-entry-head { display: block; }
.tpl-compact .cv-desc { margin-top: .15em; }
.tpl-compact .cv-desc li { margin-top: .08em; }
.tpl-compact .cv-skill-group { display: grid; grid-template-columns: 150px 1fr; column-gap: 12px; }
.tpl-compact .cv-skill-group-name { margin: .15em 0 0; }
.tpl-compact .cv-skill { background: transparent; border: none; padding: 0; }
.tpl-compact .cv-skill + .cv-skill::before { content: "·"; color: var(--cv-faint); margin-right: 6px; }
.tpl-compact .cv-skill-list { gap: 2px 6px; }

/* ============================================================
   12. PORTRET — ciemna kolumna ze zdjęciem na całą szerokość
   ============================================================ */
.tpl-portrait .cv-grid { display: grid; grid-template-columns: 252px 1fr; flex: 1 1 auto; }
.tpl-portrait .cv-aside { background: #23262C; color: #E9EAEC; padding: 0 0 36px; font-size: .94em; }
.tpl-portrait .cv-aside > .cv-section { padding: 0 26px; }
.tpl-portrait .cv-aside > .cv-section:first-of-type { margin-top: 36px; }
.tpl-portrait.has-photo .cv-aside > .cv-section:first-of-type { margin-top: 26px; }
.tpl-portrait .cv-photo { width: 252px; height: 270px; }
.tpl-portrait .cv-aside .cv-h { color: var(--cv-accent-line); font-family: var(--cv-body); font-size: .76em; text-transform: uppercase; letter-spacing: .02em; }
.tpl-portrait .cv-aside .cv-stack .cv-k { color: #A8ACB4; opacity: 1; }
.tpl-portrait .cv-aside .cv-skill-group-name { color: #A8ACB4; }
.tpl-portrait .cv-aside .cv-skill-list { display: block; }
.tpl-portrait .cv-aside .cv-skill { display: flex; justify-content: space-between; background: transparent; border: none; padding: .14em 0; font-size: 1em; }
.tpl-portrait .cv-aside .cv-level i { width: 10px; height: 4px; border-radius: 1px; background: #4A4E57; }
.tpl-portrait .cv-aside .cv-level i.on { background: var(--cv-accent-line); }
.tpl-portrait .cv-aside .cv-lang-list li { display: block; }
.tpl-portrait .cv-aside .cv-lang-level { display: block; color: #A8ACB4; }
.tpl-portrait .cv-aside .cv-desc { color: #D5D7DB; }
.tpl-portrait .cv-aside .cv-desc li .cv-b { color: var(--cv-accent-line); }
.tpl-portrait .cv-main { padding: 54px 46px 40px 40px; }
.tpl-portrait .cv-name { font-size: 2.6em; font-weight: 600; line-height: 1.02; }
.tpl-portrait .cv-role { font-style: italic; font-weight: 400; color: var(--cv-accent); font-size: 1.15em; margin-top: .4em; }
.tpl-portrait .cv-header { padding-bottom: .6em; }
.tpl-portrait .cv-main .cv-h { font-size: 1.2em; color: var(--cv-ink); }
.tpl-portrait .cv-main .cv-h::after { content: ""; display: block; width: 40px; height: 2px; background: var(--cv-accent); margin-top: .35em; }

/* Uwaga: rozstrzelenie liter w nagłówkach trzymamy ≤ 0.02em — przy większym (sprawdzone: 0.05em)
   PDF zapisuje litery osobno i systemy ATS czytają „S TACK TE CHNOLOGICZ NY” zamiast nazwy sekcji. */
.cv-link-under { display: block; margin-top: .1em; }

/* ============================================================
   SZABLONY PREMIUM
   ============================================================ */

/* ---------- PRESTIŻ — wyśrodkowany, szeryfowy, nagłówki między liniami ---------- */
.tpl-prestige { padding: 60px 70px 46px; }
.tpl-prestige .cv-header { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 1.35em; }
.tpl-prestige .cv-header-text { display: flex; flex-direction: column; align-items: center; }
.tpl-prestige .cv-photo { order: -1; width: 98px; height: 98px; margin-bottom: 1.1em; border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px var(--cv-accent-line); }
.tpl-prestige .cv-name { font-size: 2.75em; font-weight: 400; letter-spacing: .01em; }
.tpl-prestige .cv-role { font-size: .84em; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; margin-top: .75em; }
.tpl-prestige .cv-contact { justify-content: center; gap: .25em 0; margin-top: 1.05em; }
.tpl-prestige .cv-contact li + li::before { content: "·"; margin: 0 .8em; color: var(--cv-accent); font-weight: 600; }
.tpl-prestige .cv-header::after { content: ""; display: block; align-self: stretch; height: 4px; margin-top: 1.5em; border-top: 1px solid var(--cv-accent-line); border-bottom: 1px solid var(--cv-accent-line); }
.tpl-prestige .cv-section { margin-top: 1.55em; }
.tpl-prestige .cv-h { display: flex; align-items: center; gap: .9em; font-size: .82em; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; color: var(--cv-ink); margin-bottom: .95em; }
.tpl-prestige .cv-h::before, .tpl-prestige .cv-h::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--cv-accent-line); }
.tpl-prestige .cv-entry-title { font-size: 1.04em; }
.tpl-prestige .cv-entry-date { font-style: italic; color: var(--cv-soft); font-size: .92em; }
.tpl-prestige .cv-entry-meta { font-style: italic; }
.tpl-prestige .cv-summary, .tpl-prestige .cv-s-summary .cv-desc { text-align: center; }
.tpl-prestige .cv-skill-list { justify-content: center; gap: 4px 0; }
.tpl-prestige .cv-skill-group-name { text-align: center; }
.tpl-prestige .cv-skill { background: transparent; border: none; padding: 0; }
.tpl-prestige .cv-skill + .cv-skill::before { content: "·"; color: var(--cv-accent); margin: 0 .7em; font-weight: 600; }
.tpl-prestige .cv-desc li .cv-b { font-weight: 400; }

/* ---------- HORYZONT — pas w kolorze z przejściem, zdjęcie po lewej, ciemny pasek kontaktu ---------- */
.tpl-horizon .cv-band { display: flex; align-items: center; gap: 28px; padding: 46px 56px 40px; color: #FFFFFF;
  background: linear-gradient(118deg, var(--cv-accent) 0%, var(--cv-accent) 52%, #181B22 150%); }
.tpl-horizon .cv-photo { order: -1; width: 112px; height: 112px; border: 4px solid rgba(255, 255, 255, .9); }
.tpl-horizon .cv-name { color: #FFFFFF; font-size: 2.7em; font-weight: 600; letter-spacing: -.015em; line-height: 1.02; }
.tpl-horizon .cv-role { color: #FFFFFF; opacity: .9; font-size: .86em; text-transform: uppercase; letter-spacing: .02em; font-weight: 500; margin-top: .7em; }
.tpl-horizon .cv-contact { margin: 0; padding: 13px 56px; background: #181B22; color: #D9DCE1; gap: .25em 1.7em; font-size: .86em; }
.tpl-horizon .cv-main { padding: 10px 56px 44px; }
.tpl-horizon .cv-section { margin-top: 1.65em; }
.tpl-horizon .cv-h { font-size: 1.12em; font-weight: 600; color: var(--cv-ink); }
.tpl-horizon .cv-h::before { content: ""; display: inline-block; width: .56em; height: .56em; margin-right: .6em; border-radius: 2px; background: var(--cv-accent); vertical-align: .08em; }
.tpl-horizon .cv-entry-date { color: var(--cv-accent); background: var(--cv-accent-tint); border: 1px solid var(--cv-accent-soft); padding: .02em .65em; border-radius: 999px; font-weight: 500; font-size: .82em; }
.tpl-horizon .cv-skill { background: #FFFFFF; border-color: var(--cv-accent-line); border-radius: 999px; padding: .14em .75em; }

/* ---------- KOD — dla IT: ciemny nagłówek, akcenty w kroju maszynowym ---------- */
.tpl-code { padding: 0 0 44px; }
.tpl-code .cv-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; background: #15181E; color: #E6E8EB; padding: 46px 56px 30px; }
.tpl-code .cv-photo { width: 104px; height: 104px; border: 2px solid #2C313A; }
.tpl-code .cv-name { color: #FFFFFF; font-family: var(--cv-mono); font-weight: 500; font-size: 2.15em; letter-spacing: -.02em; }
.tpl-code .cv-role { font-family: var(--cv-mono); font-weight: 400; color: var(--cv-accent-line); font-size: 1em; margin-top: .55em; }
.tpl-code .cv-role::before { content: "> "; }
.tpl-code .cv-contact { color: #AEB3BC; font-family: var(--cv-mono); font-size: .78em; gap: .3em 1.6em; margin-top: 1.2em; }
.tpl-code .cv-main { padding: 6px 56px 0; }
.tpl-code .cv-section { margin-top: 1.55em; }
.tpl-code .cv-h { font-family: var(--cv-mono); font-weight: 500; font-size: .98em; color: var(--cv-ink); padding-bottom: .4em; border-bottom: 1px dashed #D5D8DD; }
.tpl-code .cv-h::before { content: "// "; color: var(--cv-accent); }
.tpl-code .cv-entry-date { font-family: var(--cv-mono); font-size: .78em; color: var(--cv-soft); }
.tpl-code .cv-entry-link { font-family: var(--cv-mono); font-size: .78em; }
.tpl-code .cv-skill { font-family: var(--cv-mono); font-size: .8em; background: #F3F4F6; border-color: #E2E4E8; border-radius: 2px; }
.tpl-code .cv-tags li { font-family: var(--cv-mono); background: #F3F4F6; border-color: #E2E4E8; color: var(--cv-ink); }
.tpl-code .cv-level i { border-radius: 1px; }
.tpl-code .cv-consent { padding-left: 56px; padding-right: 56px; }

/* ---------- NORDYK — jasna, piaskowa kolumna, lekkie nazwisko, dużo powietrza ---------- */
.tpl-nordic .cv-grid { display: grid; grid-template-columns: 236px 1fr; flex: 1 1 auto; }
.tpl-nordic .cv-aside { background: #F3EFE8; padding: 54px 26px 36px 30px; font-size: .93em; }
.tpl-nordic .cv-main { padding: 58px 50px 40px 44px; }
.tpl-nordic .cv-photo { width: 124px; height: 124px; margin-bottom: 1.9em; }
.tpl-nordic .cv-header { padding-bottom: 1.5em; }
.tpl-nordic .cv-name { font-size: 2.85em; font-weight: 400; letter-spacing: -.02em; line-height: 1.02; }
.tpl-nordic .cv-role { color: var(--cv-soft); font-weight: 400; font-size: 1.1em; margin-top: .5em; }
.tpl-nordic .cv-h { font-size: .74em; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; color: var(--cv-accent); }
.tpl-nordic .cv-main .cv-h { display: flex; align-items: center; gap: .9em; }
.tpl-nordic .cv-main .cv-h::after { content: ""; flex: 1 1 auto; height: 1px; background: #E4DED3; }
.tpl-nordic .cv-aside .cv-section:first-of-type { margin-top: 0; }
.tpl-nordic .cv-aside .cv-skill-list { display: block; }
.tpl-nordic .cv-aside .cv-skill { display: flex; justify-content: space-between; background: transparent; border: none; padding: .13em 0; font-size: 1em; }
.tpl-nordic .cv-aside .cv-level i { background: #D9D1C3; }
.tpl-nordic .cv-aside .cv-level i.on { background: var(--cv-accent); }
.tpl-nordic .cv-aside .cv-lang-list li { display: block; }
.tpl-nordic .cv-aside .cv-lang-level { display: block; }
.tpl-nordic .cv-aside .cv-entry-head { display: block; }
.tpl-nordic .cv-aside .cv-entry-date { display: block; margin-top: .1em; }
.tpl-nordic .cv-entry-date { color: var(--cv-soft); }
.tpl-nordic .cv-desc li .cv-b { color: #B3A891; }

/* ---------- Wspólne dla Premium: ikony kontaktu, ikony sekcji, monogram ---------- */
.cv-ico { display: inline-flex; flex: none; width: 1.05em; height: 1.05em; margin-right: .5em; vertical-align: -.17em; color: var(--cv-accent); }
.cv-ico svg, .cv-hi svg { width: 100%; height: 100%; stroke: currentColor; }
.cv-contact li { display: inline-flex; align-items: center; }
.cv-stack li.has-ico { display: grid; grid-template-columns: 1.15em 1fr; column-gap: .6em; }
.cv-stack li.has-ico .cv-ico { grid-row: 1 / span 2; margin: .2em 0 0; }
.cv-hi { display: inline-flex; flex: none; width: 1.05em; height: 1.05em; margin-right: .55em; vertical-align: -.16em; color: var(--cv-accent); }
.cv-mono { flex: none; display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--cv-accent); color: #FFFFFF; font-family: var(--cv-head); font-size: 34px; font-weight: 600; letter-spacing: .02em; line-height: 1; }

/* Ulepszenia pierwszych czterech szablonów Premium */
.tpl-prestige .cv-mono { order: -1; width: 88px; height: 88px; margin-bottom: 1.1em; background: #FFFFFF; color: var(--cv-accent); border: 1px solid var(--cv-accent-line); box-shadow: 0 0 0 5px #FFFFFF, 0 0 0 6px var(--cv-accent-line); font-weight: 400; font-size: 30px; }
.tpl-prestige .cv-contact li + li::before { order: -1; }
.tpl-prestige .cv-contact .cv-ico { margin-right: .4em; }
.tpl-horizon .cv-mono { order: -1; width: 104px; height: 104px; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .7); font-size: 36px; }
.tpl-horizon .cv-contact .cv-ico { color: var(--cv-accent-line); }
.tpl-code .cv-contact .cv-ico { color: var(--cv-accent-line); width: .95em; height: .95em; }
.tpl-nordic .cv-mono { width: 112px; height: 112px; margin-bottom: 1.9em; background: #E7E0D3; color: var(--cv-accent); font-weight: 500; font-size: 38px; }
.tpl-nordic .cv-stack .cv-ico { color: var(--cv-accent); }

/* ---------- ATELIER — ciepły papier, monogram, kolumna po prawej ---------- */
.tpl-atelier { background: #FBF8F3; padding: 58px 60px 44px; }
.tpl-atelier .cv-header { display: flex; align-items: center; gap: 26px; padding-bottom: 1.5em; margin-bottom: .4em; border-bottom: 1px solid #E6DDCD; }
.tpl-atelier .cv-photo { width: 104px; height: 104px; border: 3px solid #FBF8F3; box-shadow: 0 0 0 1px var(--cv-accent-line); }
.tpl-atelier .cv-mono { width: 96px; height: 96px; background: transparent; color: var(--cv-accent); border: 1px solid var(--cv-accent); box-shadow: 0 0 0 4px #FBF8F3, 0 0 0 5px var(--cv-accent-line); font-weight: 400; font-style: italic; font-size: 36px; }
.tpl-atelier .cv-name { font-size: 2.8em; font-weight: 400; letter-spacing: -.005em; }
.tpl-atelier .cv-role { font-style: italic; font-weight: 400; font-size: 1.12em; }
.tpl-atelier .cv-grid { display: grid; grid-template-columns: 1fr 214px; column-gap: 30px; flex: 1 1 auto; }
.tpl-atelier .cv-aside { border-left: 1px solid #E6DDCD; padding-left: 22px; font-size: .92em; }
.tpl-atelier .cv-h { display: flex; align-items: center; gap: .8em; font-size: .74em; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; color: var(--cv-accent); margin-bottom: .9em; }
.tpl-atelier .cv-main .cv-h::after { content: ""; flex: 1 1 auto; height: 1px; background: #E6DDCD; }
.tpl-atelier .cv-aside .cv-skill-list { display: block; }
.tpl-atelier .cv-aside .cv-skill { display: flex; justify-content: space-between; background: transparent; border: none; padding: .13em 0; font-size: 1em; }
.tpl-atelier .cv-aside .cv-lang-list li { display: block; }
.tpl-atelier .cv-aside .cv-lang-level { display: block; }
.tpl-atelier .cv-aside .cv-entry-head { display: block; }
.tpl-atelier .cv-aside .cv-entry-date { display: block; margin-top: .1em; }
.tpl-atelier .cv-entry-date { font-style: italic; color: var(--cv-soft); }
.tpl-atelier .cv-desc li .cv-b { font-weight: 400; color: #B9A98C; }
.tpl-atelier .cv-skill { background: #F3EDE3; border-color: #E6DDCD; }

/* ---------- METROPOLIA — ciemny blok z nazwiskiem, jasna kolumna z akcentem u góry ---------- */
.tpl-metro .cv-grid { display: grid; grid-template-columns: 238px 1fr; flex: 1 1 auto; }
.tpl-metro .cv-aside { background: var(--cv-accent-tint); border-top: 8px solid var(--cv-accent); padding: 34px 24px 36px 28px; font-size: .93em; }
.tpl-metro .cv-photo { width: 128px; height: 128px; margin: 4px auto 1.8em; border: 4px solid #FFFFFF; box-shadow: 0 0 0 1px var(--cv-accent-soft); }
.tpl-metro .cv-mono { width: 118px; height: 118px; margin: 4px auto 1.8em; font-size: 40px; }
.tpl-metro .cv-aside .cv-section:first-of-type { margin-top: 0; }
.tpl-metro .cv-aside .cv-h { font-size: .74em; text-transform: uppercase; letter-spacing: .02em; color: var(--cv-accent); padding-bottom: .45em; border-bottom: 2px solid var(--cv-accent-soft); }
.tpl-metro .cv-aside .cv-skill-list { display: block; }
.tpl-metro .cv-aside .cv-skill { display: flex; justify-content: space-between; align-items: center; background: transparent; border: none; padding: .16em 0; font-size: 1em; }
.tpl-metro .cv-aside .cv-level { gap: 3px; }
.tpl-metro .cv-aside .cv-level i { width: 11px; height: 5px; border-radius: 1px; background: var(--cv-accent-soft); }
.tpl-metro .cv-aside .cv-level i.on { background: var(--cv-accent); }
.tpl-metro .cv-aside .cv-lang-list li { display: block; }
.tpl-metro .cv-aside .cv-lang-level { display: block; }
.tpl-metro .cv-aside .cv-entry-head { display: block; }
.tpl-metro .cv-aside .cv-entry-date { display: block; margin-top: .1em; }
.tpl-metro .cv-main { padding: 0 44px 40px 40px; }
.tpl-metro .cv-header { margin: 0 -44px 0 -40px; padding: 50px 44px 32px 40px; background: #171C26; }
.tpl-metro .cv-name { color: #FFFFFF; font-size: 2.75em; font-weight: 600; letter-spacing: -.015em; line-height: 1.02; }
.tpl-metro .cv-role { color: var(--cv-accent-line); font-size: .86em; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; margin-top: .75em; }
.tpl-metro .cv-main .cv-section:first-of-type { margin-top: 1.6em; }
.tpl-metro .cv-main .cv-h { font-size: 1.14em; color: var(--cv-ink); }
.tpl-metro .cv-main .cv-h::after { content: ""; display: block; width: 34px; height: 3px; margin-top: .4em; background: var(--cv-accent); }
.tpl-metro .cv-entry-date { color: var(--cv-accent); font-weight: 600; }

/* ---------- MONOGRAM — wyśrodkowany monogram, nagłówki sekcji na marginesie ---------- */
.tpl-monogram { padding: 56px 62px 44px; }
.tpl-monogram .cv-header { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 1.4em; border-bottom: 1px solid var(--cv-rule); }
.tpl-monogram .cv-header-text { display: flex; flex-direction: column; align-items: center; }
.tpl-monogram .cv-photo, .tpl-monogram .cv-mono { width: 84px; height: 84px; margin-bottom: 1.1em; }
.tpl-monogram .cv-mono { border-radius: 4px; transform: rotate(45deg); width: 64px; height: 64px; margin: 10px 0 1.6em; font-size: 24px; }
.tpl-monogram .cv-mono span { transform: rotate(-45deg); }
.tpl-monogram .cv-name { font-size: 2.3em; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.tpl-monogram .cv-role { color: var(--cv-soft); font-weight: 400; font-style: italic; margin-top: .45em; font-size: 1.06em; }
.tpl-monogram .cv-contact { justify-content: center; margin-top: 1.1em; gap: .3em 1.6em; }
.tpl-monogram .cv-section { display: grid; grid-template-columns: 138px 1fr; column-gap: 24px; margin-top: 0; padding-top: 1.25em; }
.tpl-monogram .cv-section:first-child { padding-top: 1.8em; }
.tpl-monogram .cv-h { text-align: right; font-size: .76em; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; color: var(--cv-accent); padding-top: .28em; margin: 0; line-height: 1.35; }
.tpl-monogram .cv-body { border-left: 1px solid var(--cv-rule); padding-left: 22px; }
.tpl-monogram .cv-skill { background: transparent; border: 1px solid var(--cv-accent-soft); }
.tpl-monogram .cv-entry-date { font-style: italic; }

/* ---------- KOMPAS — ikony sekcji w plakietkach, wpisy na linii ---------- */
.tpl-kompas { padding: 54px 58px 44px; }
.tpl-kompas .cv-header { display: flex; justify-content: space-between; align-items: center; gap: 26px; padding-bottom: 1.3em; border-bottom: 2px solid var(--cv-ink); }
.tpl-kompas .cv-photo { width: 100px; height: 100px; }
.tpl-kompas .cv-mono { width: 88px; height: 88px; border-radius: 14px; font-size: 32px; }
.tpl-kompas .cv-name { font-size: 2.65em; font-weight: 600; letter-spacing: -.02em; }
.tpl-kompas .cv-role { font-weight: 500; }
.tpl-kompas .cv-contact { margin-top: 1em; gap: .35em 1.5em; }
.tpl-kompas .cv-section { margin-top: 1.55em; }
.tpl-kompas .cv-h { display: flex; align-items: center; font-size: 1.08em; font-weight: 600; color: var(--cv-ink); margin-bottom: .75em; }
.tpl-kompas .cv-hi { width: 1.9em; height: 1.9em; padding: .42em; margin-right: .7em; border-radius: 7px; background: var(--cv-accent); color: #FFFFFF; }
.tpl-kompas .cv-entry, .tpl-kompas .cv-project { position: relative; padding-left: 1.3em; border-left: 2px solid var(--cv-accent-soft); margin-left: .8em; padding-bottom: .15em; }
.tpl-kompas .cv-entry::before, .tpl-kompas .cv-project::before { content: ""; position: absolute; left: -6px; top: .35em; width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--cv-accent); }
.tpl-kompas .cv-entry-date { color: var(--cv-accent); font-weight: 600; }
.tpl-kompas .cv-skill { border-radius: 999px; }

/* ---------- AURORA — jasny pas, zdjęcie na krawędzi, kontakt w pigułkach ---------- */
.tpl-aurora .cv-band { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 46px 60px 0; background: var(--cv-accent-tint); border-bottom: 5px solid var(--cv-accent); }
.tpl-aurora .cv-band .cv-photo, .tpl-aurora .cv-band .cv-mono { order: 2; width: 108px; height: 108px; margin: 1.3em 0 -54px; border: 5px solid #FFFFFF; }
.tpl-aurora .cv-band .cv-mono { font-size: 36px; }
.tpl-aurora .cv-name { font-size: 2.7em; font-weight: 600; letter-spacing: -.01em; }
.tpl-aurora .cv-role { color: var(--cv-accent); font-weight: 500; font-size: 1.1em; margin-top: .4em; }
.tpl-aurora.no-photo:not(.has-mono) .cv-band { padding-bottom: 32px; }
.tpl-aurora .cv-contact { justify-content: center; gap: 7px; margin: 0; padding: 70px 56px 0; color: var(--cv-soft); }
.tpl-aurora.no-photo:not(.has-mono) .cv-contact { padding-top: 22px; }
.tpl-aurora .cv-contact li { padding: .22em .8em; border: 1px solid var(--cv-accent-soft); border-radius: 999px; font-size: .95em; }
.tpl-aurora .cv-main { padding: 6px 60px 44px; }
.tpl-aurora .cv-section { margin-top: 1.6em; }
.tpl-aurora .cv-h { font-size: 1.12em; font-weight: 600; color: var(--cv-accent); padding-bottom: .35em; border-bottom: 1px dashed var(--cv-accent-line); }
.tpl-aurora .cv-skill { border-radius: 999px; background: #FFFFFF; }

/* ---------- SZWAJCARSKI — duże nazwisko, grube linie, nagłówki na marginesie ---------- */
.tpl-swiss { padding: 56px 58px 44px; }
.tpl-swiss .cv-header { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: end; padding-bottom: 1.4em; }
.tpl-swiss .cv-header-text { grid-column: 1; }
.tpl-swiss .cv-photo { grid-column: 2; grid-row: 1; width: 96px; height: 116px; }
.tpl-swiss .cv-name { font-size: 3.4em; font-weight: 600; letter-spacing: -.035em; line-height: .96; }
.tpl-swiss .cv-role { font-size: 1.12em; font-weight: 500; color: var(--cv-accent); margin-top: .5em; }
.tpl-swiss .cv-contact { grid-column: 1 / -1; margin-top: 1.3em; gap: .3em 1.6em; color: var(--cv-ink); }
.tpl-swiss .cv-section { display: grid; grid-template-columns: 136px 1fr; column-gap: 22px; margin-top: 0; padding-top: .8em; margin-bottom: 1.1em; border-top: 3px solid var(--cv-ink); }
.tpl-swiss .cv-h { font-size: .82em; font-weight: 600; color: var(--cv-ink); margin: 0; padding-top: .15em; line-height: 1.3; }
.tpl-swiss .cv-h::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .5em; vertical-align: .08em; background: var(--cv-accent); }
.tpl-swiss .cv-skill { background: transparent; border: 1px solid var(--cv-ink); border-radius: 0; }
.tpl-swiss .cv-entry-date { color: var(--cv-ink); font-weight: 500; }
.tpl-swiss .cv-desc li .cv-b { color: var(--cv-ink); }

/* ---------- KONTRAST — pas dwubarwny, kontakt z ikonami ---------- */
.tpl-kontrast .cv-band { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 44px 56px 38px; color: #FFFFFF;
  background: linear-gradient(90deg, var(--cv-accent) 0%, var(--cv-accent) 72%, #15181E 72%, #15181E 100%); }
.tpl-kontrast .cv-photo, .tpl-kontrast .cv-mono { width: 112px; height: 112px; margin-right: 18px; border: 4px solid #FFFFFF; }
.tpl-kontrast .cv-mono { background: #15181E; font-size: 38px; }
.tpl-kontrast .cv-name { color: #FFFFFF; font-size: 2.75em; font-weight: 600; letter-spacing: -.015em; line-height: 1.02; }
.tpl-kontrast .cv-role { color: #FFFFFF; opacity: .88; font-size: .88em; text-transform: uppercase; letter-spacing: .02em; font-weight: 500; margin-top: .75em; }
.tpl-kontrast .cv-contact { margin: 0; padding: 14px 56px; background: #F3F4F6; color: var(--cv-ink); gap: .3em 1.7em; font-size: .88em; }
.tpl-kontrast .cv-main { padding: 12px 56px 44px; }
.tpl-kontrast .cv-section { margin-top: 1.6em; }
.tpl-kontrast .cv-h { display: flex; align-items: center; gap: .7em; font-size: .86em; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; color: var(--cv-ink); }
.tpl-kontrast .cv-h::before { content: ""; width: 18px; height: 3px; background: var(--cv-accent); }
.tpl-kontrast .cv-h::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--cv-rule); }
.tpl-kontrast .cv-entry-date { color: #FFFFFF; background: #15181E; padding: .05em .6em; border-radius: 2px; font-size: .8em; }

/* ---------- OFICYNA — styl magazynu: wielkie nazwisko, podwójne linie ---------- */
.tpl-oficyna { padding: 50px 64px 44px; }
.tpl-oficyna .cv-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; padding-top: 1.1em; border-top: 5px solid var(--cv-ink); padding-bottom: 1.1em; border-bottom: 3px double var(--cv-ink); }
.tpl-oficyna .cv-photo { width: 96px; height: 118px; }
.tpl-oficyna .cv-name { font-size: 3.2em; font-weight: 600; letter-spacing: -.02em; line-height: .98; }
.tpl-oficyna .cv-role { font-style: italic; font-weight: 400; color: var(--cv-accent); font-size: 1.18em; margin-top: .35em; }
.tpl-oficyna .cv-contact { margin-top: 1.1em; gap: .25em 0; color: var(--cv-soft); }
.tpl-oficyna .cv-contact li + li::before { content: "/"; margin: 0 .8em; color: var(--cv-accent-line); }
.tpl-oficyna .cv-section { margin-top: 1.55em; }
.tpl-oficyna .cv-h { font-size: 1.45em; font-weight: 400; font-style: italic; color: var(--cv-ink); padding-bottom: .2em; border-bottom: 1px solid var(--cv-ink); margin-bottom: .7em; }
.tpl-oficyna .cv-entry-title { font-size: 1.04em; }
.tpl-oficyna .cv-entry-date { font-size: .76em; text-transform: uppercase; letter-spacing: .02em; color: var(--cv-accent); font-weight: 600; }
.tpl-oficyna .cv-skill { background: transparent; border: none; border-bottom: 1px solid var(--cv-accent-line); border-radius: 0; padding: 0 0 .05em; }
.tpl-oficyna .cv-skill-list { gap: 5px 16px; }

/* Precyzyjne ustawienia z zakładki Wygląd (nadpisują szablon) */
.cv.has-fine-lh { line-height: var(--cv-lh, 1.45); }
.cv.has-fine-gap .cv-section { margin-top: calc(1.5em * var(--cv-gap, 1)); }
