/* 5.11 min2: /cv-szablon/ i /cv-template/ (html.n4cv) w systemie N4B-min jak board, newsletter i profil.
   Strona: <html class="n4b n4p n4cv"> + /css/n4b-chrome.css (menu, stopka, fonty) + ten plik. Plik pisany ręcznie.
   Kolory: granat #16245F (blok), tekst #081951 / #3D4360, lawenda #D9CCFB, tło #F7F5FA, karty białe z ramką #E4E6EE (róg 14).
   Przyciski 48–52 px, 16/600, róg 12: na granacie lawenda z granatowym tekstem (główny) albo biała ramka (drugi).
   gate.js przełącza [hidden] na #tpl-gate / #tpl-files — dlatego [hidden] ma !important. */

html.n4cv [hidden] { display: none !important; }
html.n4cv, html.n4cv body { background: #F7F5FA !important; color: #081951; overflow-x: clip; max-width: 100vw; }
html.n4cv body { font-family: 'Instrument Sans', Inter, ui-sans-serif, system-ui, sans-serif !important; -webkit-font-smoothing: antialiased; }
html.n4cv { color-scheme: light; }
html.n4cv ::selection { background: #D9CCFB; color: #081951; }
html.n4cv :focus-visible { outline: 2px solid #16245F !important; outline-offset: 2px; }

/* ---------- granatowy blok (pierwszy ekran) ---------- */
.cv-hero { background: #16245F; color: #fff; border-radius: 28px; max-width: 1152px; margin: 16px auto 0; padding: 44px 48px 44px; }
@media (max-width: 1199px) { .cv-hero { margin-left: 16px; margin-right: 16px; } }
@media (max-width: 767px) { .cv-hero { margin: 12px 8px 0; border-radius: 24px; padding: 22px 16px 26px; } }
html.n4cv .cv-hero :focus-visible { outline-color: #D9CCFB !important; }

.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-rows: auto 1fr; grid-template-areas: "head pv" "act pv"; column-gap: 44px; align-items: start; }
.cv-head { grid-area: head; }
.cv-act { grid-area: act; }
.cv-more { grid-area: more; }
.cv-pvw { grid-area: pv; }
@media (max-width: 1023px) {
  .cv-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "act" "pv"; }
  .cv-pvw { margin-top: 20px; max-width: 560px; }
}

.cv-k { font-size: 14px; line-height: 1.45; font-weight: 500; color: rgba(255,255,255,.74); margin: 0; }
html.n4cv .cv-hero h1 { font-family: 'Instrument Sans', Inter, ui-sans-serif, system-ui, sans-serif !important; font-weight: 600; font-size: 40px !important; line-height: 1.1 !important; letter-spacing: -.025em !important; color: #fff; margin: 10px 0 14px; }
/* 18.11 (Filip, decyzje po audycie designu): kolorowy drugi wers tylko w hero boardu — tu kolor nagłówka */
html.n4cv .cv-hero h1 span { display: block; color: inherit; }
@media (max-width: 767px) { html.n4cv .cv-hero h1 { font-size: 27px !important; line-height: 1.15 !important; margin: 8px 0 10px; } }
.cv-lead { font-size: 18px; line-height: 1.5; color: #fff; margin: 0; max-width: 34em; }
.cv-ats { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.74); margin: 10px 0 0; max-width: 36em; }
@media (max-width: 767px) { .cv-lead { font-size: 16px; } .cv-head .cv-ats { display: none; } }
.cv-more .cv-ats { display: none; }
@media (max-width: 767px) { .cv-more .cv-ats { display: block; margin-top: 16px; } }

/* formularz bramki */
.cv-act { margin-top: 24px; }
@media (max-width: 767px) { .cv-act { margin-top: 18px; } }
.cv-form { display: flex; gap: 10px; max-width: 520px; }
.cv-form input[type=email] { flex: 1; min-width: 0; height: 52px; border-radius: 12px; border: 1px solid #fff; background: #fff; color: #081951; padding: 0 16px; font: inherit; font-size: 16px; outline: none; }
.cv-form input[type=email]::placeholder { color: #5A607A; opacity: 1; }
.cv-form input[type=email]:focus { border-color: #D9CCFB; box-shadow: 0 0 0 3px rgba(217,204,251,.45); }
.cv-form button { flex: none; height: 52px; border-radius: 12px; border: 0; background: #D9CCFB; color: #16245F; font: inherit; font-size: 16px; font-weight: 600; padding: 0 22px; cursor: pointer; white-space: nowrap; transition: background-color .15s; }
.cv-form button:hover { background: #fff; }
.cv-form button:disabled { opacity: .7; cursor: default; }
@media (max-width: 520px) { .cv-form { flex-direction: column; gap: 8px; } .cv-form input[type=email], .cv-form button { flex: none; height: 48px; width: 100%; } }
.cv-note { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.74); margin: 10px 0 0; max-width: 40em; }
.cv-hero a.cv-u { color: #fff; text-decoration: underline; text-decoration-color: #D9CCFB; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cv-hero a.cv-u:hover { text-decoration-color: #fff; }

/* pliki po odblokowaniu */
.cv-files { display: flex; flex-wrap: wrap; gap: 10px; }
.cv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; box-sizing: border-box; }
.cv-btn--pri { background: #D9CCFB; color: #16245F; }
.cv-btn--pri:hover { background: #fff; }
.cv-btn--sec { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.cv-btn--sec:hover { border-color: #D9CCFB; background: rgba(217,204,251,.16); }
@media (max-width: 520px) { .cv-files { gap: 8px; } .cv-btn--pri { flex: 1 1 100%; } .cv-btn--sec { flex: 1 1 calc(50% - 4px); padding: 0 12px; } #tpl-files .cv-note { margin-top: 8px; } .cv-offer { font-size: 14px; margin-top: 10px; } }
.cv-offer { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.74); margin: 16px 0 0; }
.cv-offer a { font-weight: 600; white-space: nowrap; }

/* podgląd CV */
.cv-pv { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 44px rgba(3,8,30,.35); }
.cv-pv { display: block; position: relative; max-height: 540px; }
.cv-pv::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.cv-pv img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) { .cv-pv { max-height: 380px; } }
.cv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.cv-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; padding: 3px; gap: 2px; }
.cv-seg button { min-height: 44px; min-width: 56px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: rgba(255,255,255,.8); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.cv-seg button[aria-pressed=true] { background: #D9CCFB; color: #16245F; font-weight: 600; }
.cv-open { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.cv-cap { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.74); margin: 8px 0 0; }
.cv-alt { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.74); margin: 14px 0 0; }
.cv-alt a { display: inline-block; padding: 6px 0; }

/* ---------- jasne sekcje ---------- */
.cv-sec { max-width: 1152px; margin: 0 auto; padding: 64px 48px 8px; box-sizing: border-box; }
@media (max-width: 767px) { .cv-sec { padding: 44px 16px 4px; } }
.cv-sec h2 { font-family: 'Instrument Sans', Inter, sans-serif; font-weight: 600; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; color: #081951; margin: 0 0 24px; }
@media (max-width: 767px) { .cv-sec h2 { font-size: 26px; margin-bottom: 18px; } }
.cv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .cv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cv-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.cv-card { background: #fff; border: 1px solid #E4E6EE; border-radius: 14px; padding: 22px 22px 20px; }
.cv-card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; color: #081951; margin: 0 0 6px; }
.cv-card p { font-size: 15px; line-height: 1.55; color: #3D4360; margin: 0; }
.cv-sec p.cv-t { font-size: 16px; line-height: 1.6; color: #3D4360; margin: 0; max-width: 44em; }
.cv-sec a.cv-l { color: #16245F; font-weight: 600; text-decoration: underline; text-decoration-color: #D9CCFB; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cv-sec a.cv-l:hover { text-decoration-color: #16245F; }
.cv-last { padding-bottom: 64px; }
@media (max-width: 767px) { .cv-last { padding-bottom: 44px; } }

/* ===== 5.11 system interakcji (Audyt_Hover_2026-11-05.html): ten sam wzór co board — link 2 px + kolor kreski, granat hover #24367F / klik #081951,
   obrys/chip/wiersz hover #F1EDFC, na granacie lawendowa ramka + 16 % lawendy, karta = granatowa ramka + cień. Hover tylko dla myszy. ===== */
.cv-seg button[aria-pressed=false]:hover { color: #fff; background: rgba(217,204,251,.16); }
:is(.cv-form button, .cv-btn--pri):active { background: #CBB8FA; }
/* telefon: dotknięcie nie zostawia stanu hover */
@media (hover: none) { .cv-form button:hover, .cv-btn--pri:hover { background: #D9CCFB; } .cv-seg button[aria-pressed=false]:hover { color: rgba(255,255,255,.8); background: none; } }

/* 6.11 audyt design: przycisk na dole strony (wraca do formularza) + niższe karty na telefonie */
.cv-cta2{margin:28px 0 0;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cv-cta2 a{display:inline-block;background:#081951;color:#fff;font-weight:600;font-size:16px;padding:13px 22px;border-radius:12px;text-decoration:none}
.cv-cta2 a:hover{background:#1A2D72}
.cv-cta2 span{font-size:14px;color:#5A607A}
html{scroll-behavior:smooth}#cv-h1{scroll-margin-top:24px}
@media (max-width:767px){.cv-card{padding:16px 16px 14px}.cv-card h3{margin-bottom:4px}.cv-cta2 a{width:100%;text-align:center}}

/* 7.11: karta płatnego CV po odblokowaniu (lawenda jak karta CV na boardzie) + miękki link pod przykładem */
.cv-up { background: #EFE9FD; border: 1px solid #CFC2F7; border-radius: 14px; color: #16245F; padding: 22px 24px 20px; margin: 24px 0 0; max-width: 640px; }
.cv-up-h { font-size: 18px; line-height: 1.3; font-weight: 600; color: #16245F; margin: 0 0 6px; }
.cv-up-b { font-size: 15px; line-height: 1.55; color: #16245F; margin: 0 0 14px; }
.cv-up a.cv-up-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; background: #16245F; color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; box-sizing: border-box; transition: background-color .15s; }
.cv-up a.cv-up-btn:hover { background: #24367F; color: #fff; }
.cv-up a.cv-up-btn:active { background: #081951; }
html.n4cv .cv-up :focus-visible { outline-color: #16245F !important; }
.cv-up-g { font-size: 13px; line-height: 1.5; color: #3D4360; margin: 10px 0 0; }
@media (max-width: 520px) { .cv-up { padding: 16px 16px 14px; margin-top: 14px; } .cv-up a.cv-up-btn { width: 100%; } }
.cv-soft { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.74); margin: 10px 0 0; }
.cv-soft a { font-weight: 600; white-space: nowrap; }

/* 8.11: pierwszy ekran uproszczony. Główny przycisk wg brand booka (4d): #081951, róg 8, wys. 48, w białej ramce (róg 12, padding 6), hover #1A2D72.
   Ta sama ramka przed zapisem (e-mail + przycisk) i po odblokowaniu (sam przycisk = wybrany format). */
.cv-act { margin-top: 26px; }
.cv-frame { display: flex; gap: 6px; background: #fff; border-radius: 12px; padding: 6px; max-width: 520px; box-sizing: border-box; }
.cv-form.cv-frame input[type=email] { height: 48px; border: 0; border-radius: 8px; padding: 0 12px; box-shadow: none; }
.cv-form.cv-frame input[type=email]:focus { box-shadow: inset 0 0 0 2px #D9CCFB; }
.cv-form.cv-frame button, .cv-hero a.cv-main { height: 48px; border-radius: 8px; background: #081951; color: #fff; font-size: 16px; font-weight: 600; padding: 0 20px; }
.cv-form.cv-frame button:hover, .cv-hero a.cv-main:hover { background: #1A2D72; }
.cv-form.cv-frame button:active, .cv-hero a.cv-main:active { background: #081951; }
.cv-hero a.cv-main { display: flex; flex: 1; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; transition: background-color .15s; }
html.n4cv .cv-frame :focus-visible { outline-color: #081951 !important; }
@media (max-width: 520px) { .cv-form.cv-frame { flex-direction: column; } .cv-form.cv-frame input[type=email], .cv-form.cv-frame button { width: 100%; height: 48px; } }
@media (hover: none) { .cv-form.cv-frame button:hover, .cv-hero a.cv-main:hover { background: #081951; } }
.cv-fmt { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin: 6px 0 0; font-size: 15px; color: rgba(255,255,255,.74); }
.cv-fmt span { margin-right: 6px; }
.cv-fmt i { font-style: normal; color: rgba(255,255,255,.45); }
.cv-fmt a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: rgba(255,255,255,.82); text-decoration: none; }
.cv-fmt a:hover { color: #fff; }
.cv-fmt a[aria-current=true] { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: #D9CCFB; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cv-act .cv-note { margin-top: 2px; }
.cv-act .cv-consent { margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,.62); }
.cv-ok { font-size: 14px; line-height: 1.5; color: #D9CCFB; margin: 10px 0 0; }
.cv-after { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.74); margin: 14px 0 0; }
.cv-after a { font-weight: 600; display: inline-block; padding: 6px 0; }
.cv-pvw .cv-bar { margin-top: 10px; }
.cv-pvw .cv-cap { margin-top: 4px; }
@media (max-width: 1023px) { .cv-pvw { margin-top: 24px; } }

/* 11.11 (Filip): przycisk bez białej ramki — jeden styl jak przycisk w hero boardu (lawenda #D9CCFB, granatowy tekst, 600 16 px, wys. 48),
   promień 12 px; obrys tylko przy :focus-visible. Granatowy #081951 na granatowym bloku byłby niewidoczny bez ramki, dlatego lawenda.
   Format = ten sam przełącznik .cv-seg co język przykładu; przełącznik języka nad podglądem z podpisem; 3 punkty pod formularzem. */
.cv-frame { background: none; padding: 0; gap: 8px; border-radius: 0; }
.cv-form.cv-frame input[type=email] { height: 48px; border: 1px solid #fff; border-radius: 12px; padding: 0 16px; }
.cv-form.cv-frame input[type=email]:focus { box-shadow: 0 0 0 3px rgba(217,204,251,.55); }
.cv-form.cv-frame button, .cv-hero a.cv-main { height: 48px; border-radius: 12px; background: #D9CCFB; color: #16245F; font-size: 16px; font-weight: 600; padding: 0 22px; }
.cv-form.cv-frame button:hover, .cv-hero a.cv-main:hover { background: #fff; color: #16245F; }
.cv-form.cv-frame button:active, .cv-hero a.cv-main:active { background: #CBB8FA; }
.cv-hero a.cv-main { flex: none; display: inline-flex; }
html.n4cv .cv-frame :focus-visible { outline: 2px solid #D9CCFB !important; outline-offset: 3px; }
@media (hover: none) { .cv-form.cv-frame button:hover, .cv-hero a.cv-main:hover { background: #D9CCFB; } }
@media (max-width: 520px) { .cv-hero a.cv-main { flex: 1 1 100%; } }

.cv-seg-l { font-size: 15px; color: rgba(255,255,255,.74); }
.cv-fmt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; }
.cv-fmt span { margin-right: 0; }
.cv-act .cv-fmt + .cv-note { margin-top: 8px; }
.cv-pvw .cv-bar { margin: 0 0 12px; justify-content: flex-start; }
.cv-pvw .cv-bar .cv-open { margin-left: auto; }
.cv-pvw .cv-cap { margin-top: 8px; }
.cv-pv { max-height: 500px; }
@media (max-width: 767px) { .cv-pv { max-height: 380px; } }

.cv-pts { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); max-width: 520px; }
.cv-pts li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.88); margin: 0 0 10px; }
.cv-pts li:last-child { margin-bottom: 0; }
.cv-pts li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid #D9CCFB; border-bottom: 2px solid #D9CCFB; transform: rotate(-45deg); }

.cv-sec h2 + .cv-sub { font-size: 17px; line-height: 1.5; color: #3D4360; margin: -14px 0 22px; max-width: 44em; }
@media (max-width: 767px) { .cv-sec h2 + .cv-sub { font-size: 16px; margin: -10px 0 18px; } }
