/* DASTAN BTP · „Ce que vous recevez”: devis, planning, compte rendu, PV jako kartki na biurku. Mobile-first, pulpit od 992 px.
   .is-live (dokumenty.js, pulpit): sekcja 500vh + scena sticky 100vh. Bez skryptu / ograniczony ruch: układ statyczny. */
.e-docs{--dk-u:min(calc(100vw / 390),1.5px);--dk-ink:#17191D;--dk-i2:#4A4F57;--dk-graf:#1E2125;--dk-gold:#C9A254;--dk-gt:#94732F;--dk-sheet:#FBFAF7;--dk-l:rgba(23,25,29,.12);
  --dk-t:'Noto Serif Display',Georgia,serif;--dk-f:'Archivo','Golos Text',system-ui,sans-serif;--pt-tekst:#17191D;
  position:relative;z-index:4;overflow-x:clip;background:#F1EEE8;color:var(--dk-ink);font:400 15px/1.55 var(--dk-f);font-variation-settings:'wdth' 100;-webkit-font-smoothing:antialiased}
.e-docs *,.e-docs *::before,.e-docs *::after{box-sizing:border-box}
.e-docs :where(p,h2,h3,ul,ol,li,figure,table,th,td){margin:0;padding:0;max-width:none;list-style:none}
.e-docs_ch,.e-docs_w{display:inline-block}
/* kapitaliki (Archivo szeroki) i wąski didone */
.e-docs_lbl,.e-docs_n,.e-docs_ex,.e-docs_no,.e-docs_k,.e-docs_tab th,.e-docs_tot p:first-child,.e-docs_ok p,.e-docs_gh>span,.e-docs_wk span,.e-docs_sigs p{font-variation-settings:'wdth' 125;font-weight:600;text-transform:uppercase;color:var(--dk-i2)}
.e-docs_t,.e-docs_ct,.e-docs_firm b,.e-docs_tt,.e-docs_wk b,.e-docs_totv{font-family:var(--dk-t);font-weight:400;font-variation-settings:'wdth' 62.5;text-transform:uppercase;color:var(--dk-ink);hyphens:manual}

/* kolumna tytułowa */
.e-docs_st{padding:16vh 16px 14vh}
.e-docs_lbl{display:flex;align-items:center;gap:12px;font-size:10.5px;line-height:1.4;letter-spacing:.2em}
.e-docs_lbl::before,.e-docs_note::before{content:'';flex:none;width:28px;height:1px;background:var(--dk-gold)}
.e-docs_t{margin-top:20px;font-size:calc(var(--dk-u) * 58);line-height:.95;letter-spacing:.01em;text-wrap:balance;overflow-wrap:normal}
.e-docs_s{position:relative;margin:-.3em 0 0 .8em;font:400 calc(var(--dk-u) * 50)/1.05 'Mrs Saint Delafield','Brush Script MT',cursive;color:var(--dk-gt)}
html[lang="ru"] .e-docs .e-docs_s{margin-top:.12em;font:italic 400 calc(var(--dk-u) * 30)/1 var(--dk-t);font-variation-settings:'wdth' 62.5}
.e-docs_p{margin-top:22px;max-width:30em;color:var(--dk-i2)}
.e-docs_prog{display:none}
.e-docs_note{display:flex;gap:12px;max-width:34em;margin-top:12vh;font-size:12.5px;line-height:1.5;color:var(--dk-i2)}
.e-docs_note::before{width:22px;margin-top:.75em}

/* podpisy */
.e-docs_item{margin-top:13vh}
.e-docs_n{font-size:10.5px;letter-spacing:.18em}
.e-docs_n b{font-weight:600;color:var(--dk-ink)}
.e-docs_ct{margin-top:12px;font-size:calc(var(--dk-u) * 32);line-height:.9;text-wrap:balance}
.e-docs_cp{margin-top:12px;max-width:27em;color:var(--dk-i2)}

/* kartka: cień osobno (animowany), papier z lekkim ziarnem, wszystko w em = skaluje się z kartką */
.e-docs_doc{position:relative;max-width:620px;margin-top:26px;container-type:inline-size;transform:rotate(var(--r,0deg))}
.e-docs_item:nth-child(1) .e-docs_doc{--r:-1deg}.e-docs_item:nth-child(2) .e-docs_doc{--r:.8deg}.e-docs_item:nth-child(3) .e-docs_doc{--r:-.6deg}.e-docs_item:nth-child(4) .e-docs_doc{--r:.9deg}
.e-docs_sh{position:absolute;inset:0;background:var(--dk-sheet);box-shadow:0 1px 1px rgba(23,25,29,.06),0 4px 10px -4px rgba(23,25,29,.14),0 24px 46px -24px rgba(23,25,29,.34);pointer-events:none}
.e-docs_pp{position:relative;display:flex;flex-direction:column;padding:1.9em 1.6em 1.6em;font-size:clamp(10.4px,2.95cqw,14px);line-height:1.42;text-align:left;box-shadow:inset 0 0 0 .5px rgba(23,25,29,.08);
  background:var(--dk-sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .1 0 0 0 0 .11 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E")}
.e-docs_pp p{max-width:none}
.e-docs_dim{position:absolute;inset:0;background:var(--dk-ink);opacity:0;pointer-events:none}
.e-docs_hd,.e-docs_ti{display:flex;justify-content:space-between;align-items:flex-start;gap:1em}
.e-docs_firm{display:flex;flex-direction:column;min-width:0;font-size:.8em;line-height:1.45;color:var(--dk-i2)}
.e-docs_firm b{margin-bottom:.25em;font-size:1.85em;line-height:1;letter-spacing:.03em;text-transform:none}
.e-docs_ex{flex:none;margin:.2em .15em 0 0;padding:.55em .6em .5em .84em;border:1px solid rgba(74,79,87,.6);box-shadow:0 0 0 2px var(--dk-sheet),0 0 0 3px rgba(74,79,87,.3);font-size:.6em;line-height:1;letter-spacing:.24em;transform:rotate(-4deg)}
.e-docs_ti{align-items:flex-end;margin-top:1.5em}
.e-docs_tt{min-width:0;font-size:2.05em;line-height:.9;letter-spacing:.005em;overflow-wrap:break-word}
.e-docs_d1 .e-docs_tt{font-size:3.1em}
.e-docs_no{flex:none;padding-bottom:.4em;font-size:.62em;letter-spacing:.16em;text-transform:none}
.e-docs_sub{margin-top:.4em;font-size:.86em;color:var(--dk-i2)}
.e-docs_rule{display:block;height:1px;margin:1em 0 1.05em;background:var(--dk-gold);transform-origin:0 50%}
.e-docs_obj{margin-bottom:.8em;font-size:.88em}
.e-docs_k{margin:1.15em 0 .45em;font-size:.6em;line-height:1.3;letter-spacing:.16em}
.e-docs_fn{margin:.9em 0 1.3em;font-size:.74em;line-height:1.45;color:var(--dk-i2)}
.e-docs_ft{margin-top:auto;padding-top:.8em;border-top:1px solid var(--dk-l);font-size:.6em;letter-spacing:.08em;color:var(--dk-i2)}
.e-docs [pathLength]{stroke-dasharray:1 2;stroke-dashoffset:0}
.e-docs_ck path,.e-docs_cb path,.e-docs_ar path,.e-docs_ph path,.e-docs_key *,.e-docs_scr path{fill:none;stroke-linecap:round;stroke-linejoin:round}

/* 1 · devis */
.e-docs_tab{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.88em;line-height:1.3;font-variant-numeric:tabular-nums}
.e-docs_tab col.u{width:3.8em}.e-docs_tab col.q{width:3.4em}.e-docs_tab col.p{width:9.6em}
.e-docs_tab th{padding:0 .4em .6em 0;border-bottom:1px solid rgba(23,25,29,.55);vertical-align:bottom;text-align:left;font-size:.64em;line-height:1.25;letter-spacing:.1em}
.e-docs_tab td{padding:.58em .4em .58em 0;border-bottom:1px solid var(--dk-l);vertical-align:top;overflow-wrap:break-word;hyphens:auto}
.e-docs_tab :is(th,td):nth-child(2){text-align:center}.e-docs_tab :is(th,td):nth-child(3){text-align:right;padding-right:.9em}
.e-docs_tab :is(th,td):last-child{padding-right:0;text-align:right}
.e-docs_tot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.2em 1em;margin-top:.45em;padding-top:.7em;border-top:1px solid var(--dk-ink)}
.e-docs_tot p:first-child{font-size:.62em;letter-spacing:.14em}
.e-docs_totv{font-size:1.45em;line-height:1.1;white-space:nowrap;text-transform:none;font-variant-numeric:tabular-nums}
.e-docs_ok{align-self:flex-end;width:min(100%,15.5em);min-height:5.2em;margin-top:auto;padding:.65em .75em;border:1px solid rgba(23,25,29,.3)}
.e-docs_ok p{font-size:.58em;letter-spacing:.12em}

/* 2 · planning */
.e-docs_gantt{display:grid}
.e-docs_gh,.e-docs_gr{display:grid;grid-template-columns:12.2em 1fr;column-gap:.7em}
.e-docs_gh{align-items:end;padding-bottom:.35em}
.e-docs_gh>span{font-size:.6em;letter-spacing:.14em}
.e-docs_gh ol{display:grid;grid-template-columns:repeat(12,1fr);font-size:.64em;text-align:center;color:var(--dk-i2)}
.e-docs_gr>span{padding:.4em 0;font-size:.86em;line-height:1.2}
.e-docs_gr>span b{display:block;font-weight:500}
.e-docs_gr small{display:block;margin-top:.1em;font-size:.8em;line-height:1.3;color:var(--dk-i2)}
.e-docs_gt{position:relative;min-height:1.9em;background:linear-gradient(90deg,rgba(23,25,29,.09) 1px,transparent 1px) 0 0/calc(100% / 12) 100%;border-right:1px solid rgba(23,25,29,.09)}
.e-docs_bar,.e-docs_ms,.e-docs_dot{position:absolute;top:50%}
.e-docs_bar{height:.8em;margin-top:-.4em;left:calc(var(--a) / 12 * 100%);width:calc(var(--l) / 12 * 100%);background:var(--dk-graf);transform-origin:0 50%}
.e-docs_bar.is-adm{background:repeating-linear-gradient(-45deg,var(--dk-graf) 0 1px,transparent 1px 4px);box-shadow:inset 0 0 0 1px var(--dk-graf)}
.e-docs_ms{left:calc((var(--a) + .5) / 12 * 100%);width:.72em;height:.72em;margin:-.36em 0 0 -.36em;border:1px solid var(--dk-graf);background:var(--dk-sheet);transform:rotate(45deg)}
.e-docs_ms.is-gold{background:var(--dk-gold);border-color:var(--dk-gold)}
.e-docs_dot{left:calc((var(--a) + .5) / 12 * 100%);width:.38em;height:.38em;margin:-.19em 0 0 -.19em;border-radius:50%;background:var(--dk-i2)}
.e-docs_gr.is-cr{margin-top:.3em;border-top:1px dashed rgba(23,25,29,.22)}
.e-docs_leg{display:flex;flex-wrap:wrap;gap:.4em 1.3em;margin-top:1.2em;font-size:.72em;color:var(--dk-i2)}
.e-docs_leg li{display:flex;align-items:center;gap:.55em}
.e-docs_leg i{position:relative;inset:auto;flex:none;margin:0}
.e-docs_leg .e-docs_bar{width:1.7em;height:.55em}.e-docs_leg .e-docs_ms{width:.62em;height:.62em;margin:0 .3em}

/* 3 · compte rendu */
.e-docs_wk{flex:none;display:flex;flex-direction:column;align-items:flex-end;line-height:1}
.e-docs_wk span{font-size:.6em;letter-spacing:.16em}
.e-docs_wk b{margin-top:.12em;font-size:2.7em;line-height:.85}
.e-docs_lang{display:flex;flex-wrap:wrap;align-items:baseline;gap:.35em 1em}
.e-docs_lang .e-docs_k{margin:0}
.e-docs_lang ul{display:flex;flex-wrap:wrap;gap:.2em .8em;font-size:.8em;color:rgba(74,79,87,.72)}
html[lang="fr"] .e-docs [data-lang="fr"],html[lang="pl"] .e-docs [data-lang="pl"],html[lang="ru"] .e-docs [data-lang="ru"],html[lang="en"] .e-docs [data-lang="en"],html[lang="de"] .e-docs [data-lang="de"]{color:var(--dk-ink);box-shadow:inset 0 -1px var(--dk-gold)}
.e-docs_chk li,.e-docs_box li{display:grid;grid-template-columns:1.15em 1fr;column-gap:.6em;align-items:start;padding:.42em 0;border-bottom:1px solid rgba(23,25,29,.1);font-size:.9em;line-height:1.35}
.e-docs_ck,.e-docs_ar,.e-docs_cb{display:block;width:1.15em;height:1.15em;margin-top:.06em;overflow:visible}
.e-docs_ck path,.e-docs_cb path{stroke:var(--dk-gold);stroke-width:1.7}
.e-docs_ar path{stroke:var(--dk-i2);stroke-width:1.2}
.e-docs_ph{display:grid;grid-template-columns:1fr 1fr;gap:.7em}
.e-docs_ph figure{aspect-ratio:3/2;padding:.45em;background:#E7E9EB;border:1px solid rgba(23,25,29,.1)}
.e-docs_ph svg{display:block;width:100%;height:100%}
.e-docs_ph path{stroke:rgba(23,25,29,.6);stroke-width:.75}
.e-docs_sig{margin:1.1em 0 1.2em;font-size:.8em;color:var(--dk-i2)}

/* 4 · PV de réception */
.e-docs_box li{align-items:center;padding:.62em 0}
.e-docs_cb rect{fill:none;stroke:rgba(23,25,29,.55);stroke-width:.9}
.e-docs_key{display:block;flex:none;width:50%;height:auto;margin:auto;padding:1.1em 0;overflow:visible;transform:rotate(-12deg)}
.e-docs_key *{stroke:var(--dk-gold);stroke-width:1.5}
.e-docs_date{display:flex;align-items:baseline;gap:.55em;font-size:.8em;color:var(--dk-i2)}
.e-docs_date i{flex:1;height:1px;border-bottom:1px dotted rgba(23,25,29,.5)}
.e-docs_sigs{display:grid;grid-template-columns:1fr 1fr;gap:1.6em;padding-top:1.6em}
.e-docs_sigs>div{position:relative;display:flex;flex-direction:column}
.e-docs_sigs p{font-size:.58em;letter-spacing:.14em}
.e-docs_sigs i{display:block;height:1px;margin-top:3.8em;background:rgba(23,25,29,.4)}
.e-docs_scr{position:absolute;left:.1em;bottom:.35em;width:58%;height:auto;overflow:visible}
.e-docs_scr path{stroke:var(--dk-ink);stroke-width:1.3}
.e-docs_seal{position:absolute;right:.3em;bottom:-1.25em;width:6em;height:6em;overflow:visible;transform:rotate(-9deg)}
.e-docs_seal circle{fill:none;stroke:var(--dk-gold);stroke-width:1.4}.e-docs_seal circle.in{stroke-width:.6}
.e-docs_seal text{fill:var(--dk-gt);font:600 7.4px var(--dk-f);font-variation-settings:'wdth' 125}
.e-docs_seal text.y{font:400 17px var(--dk-t);font-variation-settings:'wdth' 62.5}

/* pulpit bez skryptu: kolumna tytułowa + siatka 2 × 2 */
@media (min-width:992px){
  .e-docs{--dk-u:calc(100vw / 1440)}
  .e-docs_st{display:grid;grid-template-columns:minmax(0,36fr) minmax(0,64fr);column-gap:calc(var(--dk-u) * 64);align-items:start;padding:18vh calc(var(--dk-u) * 64) 16vh calc(var(--dk-u) * 110)}
  .e-docs_head{grid-column:1;grid-row:1 / span 2;position:sticky;top:14vh}
  .e-docs_list{grid-column:2;grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:10vh calc(var(--dk-u) * 56)}
  .e-docs_item{margin:0}
  .e-docs_note{grid-column:2;grid-row:2;margin-top:10vh}
  .e-docs_t{font-size:calc(var(--dk-u) * 96)}
  .e-docs_s{font-size:calc(var(--dk-u) * 84)}
  html[lang="ru"] .e-docs .e-docs_s{font-size:calc(var(--dk-u) * 50)}
  .e-docs_ct{font-size:calc(var(--dk-u) * 38)}
  .e-docs_pp{aspect-ratio:1 / 1.414;padding:2.3em 2.2em 2em;font-size:max(9.8px,2.6cqw)}
  /* ze skryptem: scena przyklejona na 100vh, kartki wlatują na biurko po prawej */
  .e-docs.is-live{height:500vh}
  .e-docs.is-live .e-docs_st{position:sticky;top:0;height:100vh;overflow:hidden;grid-template-columns:minmax(0,36%) 1fr;grid-template-rows:auto 1fr auto auto auto;align-items:end;padding:max(92px,12vh) 0 5vh calc(var(--dk-u) * 110)}
  .e-docs.is-live .e-docs_head{grid-area:1 / 1;position:static;align-self:start}
  .e-docs.is-live .e-docs_list,.e-docs.is-live .e-docs_item{display:contents}
  .e-docs.is-live .e-docs_prog{grid-area:3 / 1;display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:min(100%,300px);margin-bottom:24px}
  .e-docs.is-live .e-docs_prog i{position:relative;height:2px;overflow:hidden;background:rgba(23,25,29,.14)}
  .e-docs.is-live .e-docs_prog b{position:absolute;inset:0;background:var(--dk-ink);transform:scaleX(0);transform-origin:0 50%}
  .e-docs.is-live .e-docs_cap{grid-area:4 / 1;align-self:end}
  .e-docs.is-live .e-docs_note{grid-area:5 / 1;margin-top:26px}
  .e-docs.is-live .e-docs_t{font-size:min(calc(var(--dk-u) * 96),12.5vh)}
  .e-docs.is-live .e-docs_ct{font-size:min(calc(var(--dk-u) * 44),6vh)}
  .e-docs.is-live .e-docs_doc{position:absolute;left:69%;top:54%;width:min(34vw,calc(74vh / 1.414),560px);margin:0;will-change:transform}
  .e-docs.is-live .e-docs_sh{will-change:transform,opacity}
  .e-docs.is-live .e-docs_pp{font-size:max(9.8px,2.72cqw)}
}
/* niski ekran (laptop z paskami przeglądarki): ciaśniej; poniżej 700 px bez akapitu wstępu */
@media (min-width:992px) and (max-height:820px){
  .e-docs.is-live .e-docs_st{padding-top:max(80px,11vh)}
  .e-docs.is-live .e-docs_t{font-size:min(calc(var(--dk-u) * 96),11.2vh)}
  .e-docs.is-live .e-docs_s{font-size:calc(var(--dk-u) * 70)}
  .e-docs.is-live .e-docs_p,.e-docs.is-live .e-docs_cp{margin-top:12px;font-size:14px;line-height:1.5}
  .e-docs.is-live .e-docs_ct{font-size:min(calc(var(--dk-u) * 44),5.2vh)}
  .e-docs.is-live .e-docs_prog{margin-bottom:16px}
  .e-docs.is-live .e-docs_note{margin-top:14px}
}
@media (min-width:992px) and (max-height:700px){.e-docs.is-live .e-docs_p{display:none}}
@media (prefers-reduced-motion:reduce){.e-docs.is-live{height:auto}.e-docs [pathLength]{stroke-dashoffset:0!important}}
