/* Certyfikacja Slow Medicine™ — nowy układ (24.10.2026) */
[data-view=certyfikacja]{--c-red:#b9000a;--c-ink:#0b0b0b;--c-paper:#f2eee7;--c-line-d:rgba(255,255,255,.16);--c-line-l:rgba(23,23,23,.16);--c-ease:cubic-bezier(.16,1,.3,1)}
[data-view=certyfikacja] .cert-section{padding:clamp(80px,10vw,150px) 0}
[data-view=certyfikacja] .cert-section h2.d-l{max-width:21ch;margin:0 0 clamp(36px,4vw,64px)}
[data-view=certyfikacja] .cert-section>.wrap>p{max-width:62ch;color:inherit;opacity:.78}

/* ── hero na zdjęciu ───────────────────────────────── */
[data-view=certyfikacja] .cert-hero--foto{position:relative;overflow:hidden;isolation:isolate;min-height:100svh;display:flex;align-items:flex-end;
  padding:clamp(130px,16vh,190px) 0 clamp(60px,8vh,100px);background:#060606!important}
.cert-hero__foto{position:absolute;inset:0;z-index:-1}
.cert-hero__foto img{width:100%;height:100%;object-fit:cover;object-position:62% 30%;opacity:.62;transform:scale(1.06);animation:certZoom 14s var(--c-ease) forwards}
.cert-hero__foto::after{content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,#060606 0%,rgba(6,6,6,.92) 32%,rgba(6,6,6,.35) 70%,rgba(6,6,6,.55) 100%),linear-gradient(0deg,#060606 0%,transparent 45%)}
@keyframes certZoom{to{transform:scale(1)}}
[data-view=certyfikacja] .cert-hero--foto .wrap{position:relative}
[data-view=certyfikacja] .cert-hero--foto h1{font-size:clamp(52px,7.4vw,128px);line-height:.92;letter-spacing:-.025em;max-width:9em}
[data-view=certyfikacja] .cert-hero--foto .cert-subtitle{font-style:italic;color:#e9e1d8;max-width:22ch;margin:26px 0 30px;font-size:clamp(24px,2.4vw,38px)}
[data-view=certyfikacja] .cert-hero--foto .cert-intro{max-width:60ch;margin:0 0 34px;color:rgba(255,255,255,.76);font-size:15.5px}
[data-view=certyfikacja] .cert-hero--foto .cert-intro p{margin-bottom:14px;line-height:1.75}
.cert-akcje{display:flex;flex-wrap:wrap;align-items:center;gap:18px 32px}
.cert-link{display:inline-flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-size:14px;letter-spacing:.02em;
  padding:6px 0;background:linear-gradient(currentColor,currentColor) 0 100%/100% 1px no-repeat;transition:background-size .5s var(--c-ease),color .3s}
.cert-link:hover{background-size:0 1px;color:#fff}
.cert-paper .cert-link:hover,.cert-gala .cert-link:hover{color:var(--c-red)}
.cert-fakty{list-style:none!important;padding:0!important;margin:clamp(44px,6vh,72px) 0 0!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--c-line-d);max-width:1100px}
.cert-fakty li{margin:0!important;padding:20px 20px 0 0;line-height:1.4!important}
.cert-fakty li+li{border-left:1px solid var(--c-line-d);padding-left:22px}
.cert-fakty b{display:block;font-family:var(--serif);font-weight:300;font-size:clamp(40px,4.4vw,72px);line-height:1;letter-spacing:-.02em;color:#fff}
.cert-fakty span{display:block;margin-top:8px;font-size:13.5px;color:rgba(255,255,255,.62)}

/* ── galeria z wręczenia ───────────────────────────── */
[data-view=certyfikacja] .cert-gala{background:#060606;color:#fff;padding-top:clamp(40px,6vw,90px)}
.cert-gala__head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px clamp(30px,6vw,110px);align-items:end;margin-bottom:clamp(36px,4vw,60px)}
[data-view=certyfikacja] .cert-gala__head h2.d-l{margin:0;max-width:17ch}
.cert-gala__head p{margin:0!important;color:rgba(255,255,255,.7);max-width:46ch}
.cert-gala__head .cert-link{grid-column:2;justify-self:start;color:#fff}
.cert-gala__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:clamp(150px,15vw,250px);gap:clamp(10px,1.2vw,18px)}
.cert-gala__f{margin:0;overflow:hidden;position:relative;background:#111}
.cert-gala__f img{width:100%;height:100%;object-fit:cover;transition:transform 1.4s var(--c-ease),filter .8s;filter:saturate(.92)}
.cert-gala__f:hover img{transform:scale(1.04);filter:saturate(1.05)}
.cert-gala__f--1{grid-column:1/8;grid-row:span 2}
.cert-gala__f--2{grid-column:8/13;grid-row:span 2}
.cert-gala__f--3{grid-column:1/6;grid-row:span 2}
.cert-gala__f--4{grid-column:6/13;grid-row:span 2}
.cert-gala__f--1 img{object-position:40% 40%}
.cert-gala__f--2 img{object-position:50% 30%}

/* ── karty bez pudełek: linie i numery ─────────────── */
[data-view=certyfikacja] .cert-card{border:0!important;border-top:1px solid var(--c-line-l)!important;padding:clamp(26px,2.6vw,40px) 0 0!important;background:none!important}
[data-view=certyfikacja] .cert-section:not(.cert-paper) .cert-card{border-top-color:var(--c-line-d)!important}
[data-view=certyfikacja] .cert-card h3{font-size:clamp(24px,2.1vw,34px);line-height:1.15;margin:0 0 18px;max-width:18ch}
[data-view=certyfikacja] .cert-card p{font-size:15.5px;line-height:1.75;opacity:.82;max-width:52ch}
[data-view=certyfikacja] .cert-card ul,[data-view=certyfikacja] .cert-recert ul{list-style:none;padding:0;margin:16px 0 0}
[data-view=certyfikacja] .cert-card li,[data-view=certyfikacja] .cert-recert li{position:relative;padding:9px 0 9px 26px;margin:0;font-size:15px;line-height:1.5;border-bottom:1px solid var(--c-line-l)}
[data-view=certyfikacja] .cert-section:not(.cert-paper) .cert-card li{border-bottom-color:var(--c-line-d)}
[data-view=certyfikacja] .cert-card li::before,[data-view=certyfikacja] .cert-recert li::before{content:'';position:absolute;left:0;top:1.15em;width:12px;height:1px;background:var(--c-red)}
[data-view=certyfikacja] .cert-card h4{font-family:var(--serif);font-weight:300;font-size:22px;margin:24px 0 6px}

/* dlaczego warto: numerowane, edytorskie */
[data-view=certyfikacja] .cert-why .cert-grid{counter-reset:w;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(40px,4vw,70px) clamp(40px,6vw,110px)}
[data-view=certyfikacja] .cert-why .cert-card{counter-increment:w;position:relative;padding-top:clamp(70px,6vw,96px)!important}
[data-view=certyfikacja] .cert-why .cert-card::before{content:counter(w,decimal-leading-zero);position:absolute;top:18px;left:0;font-family:var(--serif);font-weight:300;font-size:clamp(40px,3.6vw,56px);line-height:1;color:var(--c-red)}
[data-view=certyfikacja] .cert-why .cert-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(40px,6vw,110px)}
[data-view=certyfikacja] .cert-why .cert-card:last-child h3{grid-column:1}
[data-view=certyfikacja] .cert-why .cert-card:last-child>*:not(h3){grid-column:2}
[data-view=certyfikacja] .cert-why .cert-card:last-child h3{grid-row:1/span 6}

/* filary i pakiet: cztery kolumny */
[data-view=certyfikacja] .cert-filary .cert-grid,[data-view=certyfikacja] .cert-pakiet .cert-grid,[data-view=certyfikacja] .cert-slow .cert-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
[data-view=certyfikacja] .cert-filary .cert-card,[data-view=certyfikacja] .cert-pakiet .cert-card,[data-view=certyfikacja] .cert-slow .cert-card{padding:clamp(26px,2.6vw,40px) clamp(18px,2vw,32px) 10px!important}
[data-view=certyfikacja] .cert-filary .cert-card+.cert-card,[data-view=certyfikacja] .cert-pakiet .cert-card+.cert-card,[data-view=certyfikacja] .cert-slow .cert-card+.cert-card{border-left:1px solid var(--c-line-d)!important}
[data-view=certyfikacja] .cert-filary .cert-card:first-child,[data-view=certyfikacja] .cert-pakiet .cert-card:first-child,[data-view=certyfikacja] .cert-slow .cert-card:first-child{padding-left:0!important}
.cert-n{display:block;font-family:var(--serif);font-weight:300;font-size:clamp(54px,5vw,84px);line-height:.9;color:transparent;-webkit-text-stroke:1px #e2343c;margin-bottom:18px;letter-spacing:-.02em}
[data-view=certyfikacja] .cert-pakiet .cert-card h3{font-size:clamp(22px,1.8vw,28px)}

/* proces: oś czasu */
[data-view=certyfikacja] .cert-proces .cert-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 clamp(18px,2vw,34px);position:relative}
[data-view=certyfikacja] .cert-proces .cert-card{border-top:0!important;padding-top:64px!important;position:relative}
[data-view=certyfikacja] .cert-proces .cert-card::before{content:'';position:absolute;top:22px;left:0;right:calc(-1 * clamp(18px,2vw,34px));height:1px;background:var(--c-line-l)}
[data-view=certyfikacja] .cert-proces .cert-card:last-child::before{right:0}
[data-view=certyfikacja] .cert-proces .cert-card::after{content:'';position:absolute;top:15px;left:0;width:15px;height:15px;border-radius:50%;background:var(--c-paper);border:1px solid var(--c-red);transition:background .4s}
[data-view=certyfikacja] .cert-proces .cert-card:hover::after{background:var(--c-red)}
[data-view=certyfikacja] .cert-proces .cert-n{-webkit-text-stroke:0;color:var(--c-red);font-size:16px;font-family:var(--sans);font-weight:500;letter-spacing:.02em;margin-bottom:12px}

/* recertyfikacja */
[data-view=certyfikacja] .cert-recert .wrap{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(30px,6vw,120px);align-items:start}
.cert-recert__num b{display:block;font-family:var(--serif);font-weight:300;font-size:clamp(140px,19vw,320px);line-height:.8;letter-spacing:-.05em;color:var(--c-red)}
.cert-recert__num span{display:block;margin-top:14px;font-family:var(--serif);font-style:italic;font-size:clamp(24px,2.2vw,36px)}
[data-view=certyfikacja] .cert-recert__tresc h2.d-l{margin-bottom:24px}
[data-view=certyfikacja] .cert-recert__tresc p{max-width:58ch}

/* SLOW */
[data-view=certyfikacja] .cert-slow .cert-card h3{max-width:none}
.slow-l{display:block;font-family:var(--serif);font-weight:300;font-size:clamp(110px,12vw,210px);line-height:.8;letter-spacing:-.04em;color:#fff;margin-bottom:12px;transition:color .5s}
.slow-w{display:block;font-size:clamp(20px,1.6vw,26px)}
[data-view=certyfikacja] .cert-slow .cert-card:hover .slow-l{color:var(--c-red)}

/* przykłady komunikacji */
[data-view=certyfikacja] .cert-kom{background:var(--c-paper);color:#171717}
.cert-kom__head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px clamp(30px,6vw,110px);align-items:end;margin-bottom:clamp(36px,4vw,60px)}
[data-view=certyfikacja] .cert-kom__head h2.d-l{margin:0}
.cert-kom__head p{margin:0!important;opacity:.78}
.cert-kom__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.6vw,24px)}
.cert-kom__grid figure{margin:0;background:#fff;overflow:hidden}
.cert-kom__grid img{width:100%;height:auto;display:block}

/* akordeon */
[data-view=certyfikacja] .cert-wiecej{padding-top:0}
[data-view=certyfikacja] .cert-detail{padding:0;border-top:1px solid var(--c-line-l)}
[data-view=certyfikacja] .cert-detail:last-of-type{border-bottom:1px solid var(--c-line-l)}
[data-view=certyfikacja] .cert-detail summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;cursor:pointer}
[data-view=certyfikacja] .cert-detail summary::-webkit-details-marker{display:none}
.cert-detail__t{font-family:var(--serif);font-weight:300;font-size:clamp(21px,1.8vw,28px);line-height:1.2;transition:color .3s}
.cert-detail__i{flex:none;width:36px;height:36px;border:1px solid var(--c-line-l);border-radius:50%;position:relative;transition:transform .5s var(--c-ease),background .3s,border-color .3s}
.cert-detail__i::before,.cert-detail__i::after{content:'';position:absolute;left:50%;top:50%;width:12px;height:1px;background:currentColor;transform:translate(-50%,-50%)}
.cert-detail__i::after{transform:translate(-50%,-50%) rotate(90deg)}
[data-view=certyfikacja] .cert-detail[open] .cert-detail__i{transform:rotate(45deg);background:var(--c-red);border-color:var(--c-red);color:#fff}
[data-view=certyfikacja] .cert-detail summary:hover .cert-detail__t{color:var(--c-red)}
[data-view=certyfikacja] .cert-detail>div{padding:0 0 30px;max-width:72ch}
.cert-detail__lead{font-size:17px}

/* CTA na zdjęciu */
[data-view=certyfikacja] .cert-cta{position:relative;overflow:hidden;isolation:isolate;background:#060606;padding:clamp(110px,14vw,200px) 0}
.cert-cta__foto{position:absolute;inset:0;z-index:-1}
.cert-cta__foto img{width:100%;height:100%;object-fit:cover;object-position:60% 25%;opacity:.5}
.cert-cta__foto::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#060606 10%,rgba(6,6,6,.75) 50%,rgba(6,6,6,.3))}
[data-view=certyfikacja] .cert-cta h2.d-l{font-size:clamp(40px,5vw,84px);max-width:17ch}
[data-view=certyfikacja] .cert-cta .btn{margin:14px 0 34px}
[data-view=certyfikacja] .cert-cta a:not(.btn){color:#fff}

/* formularz */
[data-view=certyfikacja] .cert-form-sec .wrap{max-width:980px}
[data-view=certyfikacja] .cert-form-sec h2.d-l{max-width:none}

/* pojawianie */
[data-view=certyfikacja] [data-cr]{opacity:0;transform:translateY(28px);transition:opacity 1s var(--c-ease),transform 1.1s var(--c-ease)}
[data-view=certyfikacja] [data-cr].cr-ok{opacity:1;transform:none}

/* ── tablet ─────────────────────────────────────────── */
@media (max-width:1100px){
  [data-view=certyfikacja] .cert-filary .cert-grid,[data-view=certyfikacja] .cert-pakiet .cert-grid,[data-view=certyfikacja] .cert-slow .cert-grid,[data-view=certyfikacja] .cert-proces .cert-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:40px}
  [data-view=certyfikacja] .cert-filary .cert-card:nth-child(3),[data-view=certyfikacja] .cert-pakiet .cert-card:nth-child(3),[data-view=certyfikacja] .cert-slow .cert-card:nth-child(3){border-left:0!important;padding-left:0!important}
  [data-view=certyfikacja] .cert-proces .cert-card:nth-child(2)::before{right:0}
}
/* ── telefon: wszystko wyśrodkowane ────────────────── */
@media (max-width:760px){
  [data-view=certyfikacja] .cert-section{padding:72px 0;text-align:center}
  [data-view=certyfikacja] .cert-section h2.d-l,[data-view=certyfikacja] .cert-section>.wrap>p,[data-view=certyfikacja] .cert-card h3,[data-view=certyfikacja] .cert-card p{margin-left:auto;margin-right:auto}
  [data-view=certyfikacja] .cert-hero--foto{min-height:auto;padding-top:120px;text-align:center}
  .cert-hero__foto img{object-position:58% 20%;opacity:.5}
  .cert-hero__foto::after{background:linear-gradient(0deg,#060606 38%,rgba(6,6,6,.55) 75%,rgba(6,6,6,.7))}
  [data-view=certyfikacja] .cert-hero--foto h1,[data-view=certyfikacja] .cert-hero--foto .cert-subtitle,[data-view=certyfikacja] .cert-hero--foto .cert-intro{margin-left:auto;margin-right:auto}
  [data-view=certyfikacja] .cert-hero--foto h1{font-size:clamp(44px,12vw,64px)}
  .cert-akcje{flex-direction:column;justify-content:center}
  .cert-fakty{grid-template-columns:1fr 1fr;text-align:center}
  .cert-fakty li{padding:18px 8px!important}
  .cert-fakty li+li{border-left:0}
  .cert-fakty li:nth-child(even){border-left:1px solid var(--c-line-d)}
  .cert-fakty li:nth-child(n+3){border-top:1px solid var(--c-line-d)}
  .cert-gala__head,.cert-kom__head{grid-template-columns:1fr;text-align:center;justify-items:center}
  [data-view=certyfikacja] .cert-gala__head h2.d-l,.cert-gala__head p,.cert-kom__head p{margin-left:auto!important;margin-right:auto!important}
  .cert-gala__head .cert-link{grid-column:auto;justify-self:center}
  .cert-gala__grid{grid-template-columns:1fr;grid-auto-rows:auto}
  .cert-gala__f{grid-column:auto!important;grid-row:auto!important;aspect-ratio:4/3}
  .cert-kom__grid{grid-template-columns:1fr}
  [data-view=certyfikacja] .cert-grid,[data-view=certyfikacja] .cert-why .cert-grid,[data-view=certyfikacja] .cert-filary .cert-grid,[data-view=certyfikacja] .cert-pakiet .cert-grid,[data-view=certyfikacja] .cert-slow .cert-grid,[data-view=certyfikacja] .cert-proces .cert-grid{grid-template-columns:1fr;gap:0}
  [data-view=certyfikacja] .cert-card,[data-view=certyfikacja] .cert-filary .cert-card,[data-view=certyfikacja] .cert-pakiet .cert-card,[data-view=certyfikacja] .cert-slow .cert-card{padding:34px 0 30px!important;border-left:0!important}
  [data-view=certyfikacja] .cert-why .cert-card{padding-top:84px!important}
  [data-view=certyfikacja] .cert-why .cert-card::before{left:50%;transform:translateX(-50%)}
  [data-view=certyfikacja] .cert-why .cert-card:last-child{display:block}
  [data-view=certyfikacja] .cert-card ul,[data-view=certyfikacja] .cert-recert ul{display:inline-block;text-align:left;max-width:100%}
  [data-view=certyfikacja] .cert-card li,[data-view=certyfikacja] .cert-recert li{border-bottom:0;padding:6px 0 6px 22px}
  [data-view=certyfikacja] .cert-proces .cert-card{padding-top:56px!important}
  [data-view=certyfikacja] .cert-proces .cert-card::before{left:0;right:0}
  [data-view=certyfikacja] .cert-proces .cert-card::after{left:50%;transform:translateX(-50%)}
  [data-view=certyfikacja] .cert-recert .wrap{grid-template-columns:1fr;justify-items:center}
  .cert-recert__num b{font-size:150px}
  [data-view=certyfikacja] .cert-recert__tresc h2.d-l,[data-view=certyfikacja] .cert-recert__tresc p{margin-left:auto;margin-right:auto}
  .slow-l{font-size:120px}
  [data-view=certyfikacja] .cert-detail summary{text-align:left}
  [data-view=certyfikacja] .cert-detail>div{text-align:left}
  [data-view=certyfikacja] .cert-cta{text-align:center}
  .cert-cta__foto::after{background:rgba(6,6,6,.72)}
  [data-view=certyfikacja] .cert-cta h2.d-l{margin-left:auto;margin-right:auto;font-size:clamp(36px,10vw,52px)}
  [data-view=certyfikacja] .cert-form-sec{text-align:left}
  [data-view=certyfikacja] .cert-form-sec h2.d-l,[data-view=certyfikacja] .cert-form-sec .wrap>p{text-align:center}
}
@media (prefers-reduced-motion:reduce){
  .cert-hero__foto img{animation:none;transform:none}
  [data-view=certyfikacja] [data-cr]{opacity:1;transform:none;transition:none}
}
@media (max-width:1100px){
  [data-view=certyfikacja] .cert-section .cert-grid>.cert-card:nth-child(odd){border-left:0!important}
}
@media (max-width:760px){
  [data-view=certyfikacja] .cert-section .cert-grid>.cert-card+.cert-card,[data-view=certyfikacja] .cert-section .cert-grid>.cert-card{border-left:0!important;padding-left:0!important;padding-right:0!important}
  [data-view=certyfikacja] .cert-hero--foto .cert-fakty{display:grid!important;width:100%;text-align:center}
}
@media (max-width:760px){ [data-view=certyfikacja] .cert-hero--foto .cert-fakty li{text-align:center} }
