.historia-page{background:#f4f6f7;color:#1a2832}
.historia-page .stopka{margin-top:0}
.history-wrap{width:88%;max-width:1600px;margin-inline:auto}

/* Wspólny, czerwony nagłówek podstron. */
.historia-page .osp-selected--subpage{position:relative;z-index:30;background:transparent}
.historia-page .osp-selected--subpage .stage{position:absolute;top:34px;right:0;left:0;z-index:40;min-height:118px;padding:16px 0;background:transparent}
.historia-page .osp-selected--subpage.v3 .header:not(.is-sticky){position:relative;inset:auto;width:92%;margin-inline:auto;background:#a52629}
.historia-page .osp-selected--subpage.v3 .navigation details.is-current>summary::before{transform:scaleX(1)}
.historia-page .osp-selected--subpage .dropdown a[aria-current="page"]{background:#f8eeee;color:#a52629;font-weight:600}
.historia-page .osp-selected--subpage #mobile-menu a[aria-current="page"]{color:#a52629;font-weight:700}

.history-hero{position:relative;display:flex;min-height:clamp(610px,70vh,760px);overflow:hidden;background:#0b1721;color:#fff}
.history-hero__photo,.history-hero__shade{position:absolute;inset:0;width:100%;height:100%}
.history-hero__photo{object-fit:cover;object-position:center 58%;filter:saturate(.72)}
.history-hero__shade{background:linear-gradient(90deg,rgba(7,17,26,.98) 0%,rgba(7,17,26,.83) 45%,rgba(7,17,26,.30) 78%),linear-gradient(0deg,rgba(7,17,26,.76),transparent 58%)}
.history-hero__inner{position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;gap:70px;min-height:inherit;padding-block:clamp(190px,20vw,250px) clamp(62px,7vw,92px)}
.history-hero__copy{max-width:850px}
.history-hero .life-feed__eyebrow{margin-bottom:19px;color:#f1b9bb}
.history-hero .life-feed__eyebrow::before{background:#e55053}
.history-hero h1{max-width:9ch;margin:0;font:600 clamp(52px,6.4vw,94px)/.96 Inter,Arial,sans-serif;letter-spacing:-.065em;text-transform:none;color:#fff}
.history-hero__lead{max-width:61ch;margin:28px 0 0;font-size:clamp(17px,1.3vw,20px);line-height:1.72;color:rgba(235,241,245,.84)}
.history-hero__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:34px}
.history-hero__actions a{display:inline-flex;align-items:center;justify-content:space-between;gap:26px;min-height:44px;padding:10px 16px;border:1px solid rgba(255,255,255,.34);border-radius:4px;font-size:12px;font-weight:650;color:#fff;transition:background .2s,border-color .2s,color .2s,gap .2s}
.history-hero__actions a:first-child{border-color:#fff;background:#fff;color:#17242e}
.history-hero__actions a:hover{gap:32px;border-color:#fff;background:#fff;color:#17242e}
.history-hero__facts{display:grid;flex:0 0 270px;grid-template-columns:1fr 1fr;margin:0;border-block:1px solid rgba(255,255,255,.30)}
.history-hero__facts>div{padding:20px 20px 22px}
.history-hero__facts>div+div{border-left:1px solid rgba(255,255,255,.30)}
.history-hero__facts dt{font-size:10px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.65)}
.history-hero__facts dd{margin:9px 0 0;font:600 34px/1 Inter,Arial,sans-serif;letter-spacing:-.04em;color:#fff}

/* Ten sam skrót historii, który użytkownik widzi na „O jednostce”. */
.history-highlights{padding-block:clamp(68px,8vw,116px);background:#f3f5f6;scroll-margin-top:80px}
.history-highlights__head{display:flex;align-items:end;justify-content:space-between;gap:45px;margin-bottom:clamp(38px,5vw,67px);padding-bottom:25px;border-bottom:1px solid #cfd8de}
.history-highlights__head h2{margin:0;font:600 clamp(35px,4.2vw,61px)/1.08 Inter,Arial,sans-serif;letter-spacing:-.05em;text-transform:none;color:#17242e}
.history-highlights__head>p{max-width:48ch;margin:0 0 5px;font-size:14px;line-height:1.75;color:#6b7780}
.history-highlights__body{display:grid;grid-template-columns:minmax(300px,.68fr) minmax(0,1.32fr);gap:clamp(50px,7vw,110px);align-items:start}
.history-highlights__gallery{display:grid;grid-template-columns:1fr 1fr;gap:22px 12px;align-items:start}
.history-highlights__photo{min-width:0;margin:0}.history-highlights__photo--main{grid-column:1/-1}
.history-highlights__photo img{display:block;width:100%;height:auto;filter:saturate(.82) contrast(1.04)}
.history-highlights__photo figcaption{padding-top:12px;font-size:11px;line-height:1.5;color:#7b8790}
.history-highlights__timeline{margin:0;padding:0;list-style:none;border-top:1px solid #cfd8de}
.history-highlights__timeline li{display:grid;grid-template-columns:100px minmax(0,1fr);gap:28px;padding:24px 0;border-bottom:1px solid #cfd8de}
.history-highlights__timeline time{padding-top:2px;font-size:12px;font-weight:700;letter-spacing:.06em;color:#a52629}
.history-highlights__timeline h3{margin:0;font:600 20px/1.3 Inter,Arial,sans-serif;letter-spacing:-.025em;text-transform:none;color:#1d2b35}
.history-highlights__timeline p{margin:7px 0 0;font-size:14px;line-height:1.7;color:#66737d}

.history-intro{padding-block:clamp(70px,8vw,112px);background:#fff;scroll-margin-top:74px}
.history-intro__grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(420px,.64fr);gap:clamp(70px,9vw,150px);align-items:end}
.history-intro h2,.history-next h2{margin:0;font:600 clamp(38px,4.7vw,68px)/1.05 Inter,Arial,sans-serif;letter-spacing:-.055em;text-transform:none;color:#17242e}
.history-intro__grid>p{max-width:57ch;margin:0 0 5px;font-size:15px;line-height:1.83;color:#687681}

.history-layout{display:grid;grid-template-columns:minmax(250px,.28fr) minmax(0,.72fr);gap:clamp(55px,8vw,135px);align-items:start;padding-block:clamp(64px,7vw,105px)}
.history-index{position:sticky;top:92px;max-height:calc(100vh - 120px);overflow:auto;padding-right:18px;scrollbar-width:thin}
.history-index>p{margin:0 0 19px;padding-bottom:14px;border-bottom:1px solid #ccd5da;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#a52629}
.history-index ol{margin:0;padding:0;list-style:none}
.history-index li+li{border-top:1px solid #d8dfe3}
.history-index a{display:grid;grid-template-columns:27px minmax(0,1fr);gap:11px;align-items:start;padding:13px 0;color:#53616b;transition:color .18s,transform .18s}
.history-index a>span:first-child{padding-top:2px;font-size:9px;font-weight:700;color:#a52629}
.history-index a>span:last-child{font-size:12px;font-weight:600;line-height:1.4}
.history-index small{display:block;margin-bottom:2px;font-size:9px;font-weight:500;letter-spacing:.04em;color:#89949c}
.history-index a:hover{color:#a52629;transform:translateX(3px)}

.history-chronicle{min-width:0}
.history-chapter{padding-bottom:clamp(70px,8vw,112px);scroll-margin-top:90px}
.history-chapter+.history-chapter{padding-top:clamp(70px,8vw,112px);border-top:1px solid #cbd4d9}
.history-chapter__head{display:grid;grid-template-columns:54px minmax(0,1fr);gap:clamp(20px,3vw,38px);align-items:start;margin-bottom:clamp(34px,4vw,54px)}
.history-chapter__number{display:grid;width:48px;height:48px;place-items:center;border:1px solid #a52629;border-radius:50%;font:700 11px/1 Inter,Arial,sans-serif;color:#a52629}
.history-chapter__head p{margin:0 0 10px;font-size:10px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#a52629}
.history-chapter__head h2{max-width:17ch;margin:0;font:600 clamp(30px,3.5vw,53px)/1.08 Inter,Arial,sans-serif;letter-spacing:-.05em;text-transform:none;color:#182630;text-wrap:balance}

/* Stara treść jest nietykalnym źródłem, a poniższe reguły zdejmują wygląd
   edytora Word/Joomla i nadają jej rytm nowej strony. */
.history-copy{display:flow-root;max-width:920px;font-family:Inter,Arial,sans-serif;color:#35434e}
.history-copy,.history-copy *{font-family:Inter,Arial,sans-serif!important;line-height:inherit}
.history-copy>p,.history-copy>div:not(.tresc-tab){margin:0 0 20px!important;font-size:15px!important;line-height:1.82!important;color:#45535e}
.history-copy p:empty,.history-copy div:empty,.history-copy br:first-child{display:none}
.history-copy h1,.history-copy h2,.history-copy h3,.history-copy h4{clear:both;margin:40px 0 17px!important;font-weight:600!important;line-height:1.24!important;letter-spacing:-.025em!important;text-transform:none!important;color:#1b2933!important}
.history-copy h1,.history-copy h2{font-size:clamp(23px,2.3vw,32px)!important}
.history-copy h3,.history-copy h4{font-size:20px!important}
.history-copy strong,.history-copy b{font-weight:650;color:#26353f}
.history-copy a{color:#a52629;text-decoration-thickness:1px;text-underline-offset:3px}
.history-copy ul,.history-copy ol{margin:22px 0 28px;padding-left:25px;color:#45535e}
.history-copy li{margin:8px 0;font-size:15px;line-height:1.72}
.history-copy img{float:none!important;display:inline-block;width:auto!important;max-width:100%!important;height:auto!important;margin:15px 16px 22px 0!important;vertical-align:top;border:1px solid #d5dde1;background:#fff;padding:5px;filter:saturate(.84) contrast(1.03)}
.history-copy p[style*="center"],.history-copy div[style*="center"],.history-copy center{text-align:left!important}
.history-copy p[style*="center"] img,.history-copy div[style*="center"] img,.history-copy center img{margin-right:12px!important}
.history-copy .caption,.history-copy [class*="caption"]{font-size:12px!important;line-height:1.55!important;color:#74818a!important}
.history-copy blockquote,.history-copy .tresc-ramka{margin:32px 0;padding:5px 0 5px 24px;border-left:3px solid #a52629;background:transparent;font-size:17px;line-height:1.7;color:#293943}
.history-copy .tresc-plakietka{display:block;margin:30px 0 18px;padding:18px 20px;border-left:3px solid #a52629;background:#fff}
.history-copy .tresc-plakietka b{display:block;margin-bottom:6px;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#a52629}
.history-copy .tresc-numer{display:inline-grid;width:28px;height:28px;place-items:center;margin:0 10px 5px 0;border-radius:50%;background:#a52629;font-size:10px;color:#fff}
.history-copy .tresc-tab{max-width:100%;overflow-x:auto;margin:30px 0;border:0;background:#fff;-webkit-overflow-scrolling:touch}
.history-copy table{width:max-content!important;min-width:100%!important;height:auto!important;margin:0!important;border-collapse:collapse!important;background:#fff!important;font-size:12px!important;color:#394852!important}
.history-copy td,.history-copy th{min-width:64px!important;height:auto!important;padding:9px 10px!important;border:1px solid #d6dde1!important;background:#fff!important;text-align:left!important;vertical-align:top!important;white-space:normal!important}
.history-copy tr:first-child td,.history-copy th{background:#eef1f3!important;font-weight:700!important;color:#21303a!important}
.history-copy [style*="width"]:not(img):not(table):not(td):not(th){max-width:100%!important}
.history-copy [style*="float"]{float:none!important}
.history-source-note{max-width:760px;margin:28px 0 0;padding:15px 18px;border-left:3px solid #a52629;background:#fff;font-size:12px;line-height:1.65;color:#687680}
.history-back{display:inline-flex;align-items:center;gap:18px;margin-top:32px;padding-bottom:6px;border-bottom:1px solid #a52629;font-size:11px;font-weight:700;color:#a52629;transition:gap .18s}
.history-back:hover{gap:24px}

.history-next{padding-block:clamp(70px,8vw,112px);background:#fff}
.history-next__inner{display:flex;align-items:end;justify-content:space-between;gap:55px}
.history-next h2{max-width:12ch}
.history-next__inner>a{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;min-width:265px;min-height:48px;padding:11px 17px;border:1px solid #a52629;border-radius:4px;font-size:12px;font-weight:700;color:#a52629;transition:gap .18s,background .18s,color .18s}
.history-next__inner>a:hover{gap:37px;background:#a52629;color:#fff}

@media(max-width:1050px){
  .history-wrap{width:min(100% - 64px,1200px)}
  .history-hero__facts{display:none}
  .history-intro__grid{grid-template-columns:minmax(0,1fr) minmax(340px,.75fr);gap:55px}
  .history-layout{grid-template-columns:225px minmax(0,1fr);gap:55px}
}
@media(max-width:760px){
  .historia-page .osp-selected--subpage .stage{min-height:108px;padding:12px 0}
  .historia-page .osp-selected--subpage.v3 .header:not(.is-sticky){width:94%}
  .history-wrap{width:min(100% - 40px,760px)}
  .history-hero__inner{padding-top:180px;padding-bottom:58px}
  .history-hero h1{max-width:none}
  .history-highlights__head{align-items:start;flex-direction:column;gap:17px}
  .history-highlights__body{grid-template-columns:1fr;gap:42px}
  .history-highlights__gallery{max-width:560px}
  .history-intro__grid{grid-template-columns:1fr;gap:22px}
  .history-layout{display:block}
  .history-index{position:relative;top:auto;max-height:none;overflow:visible;margin-bottom:68px;padding:22px;border:1px solid #d0d8dd;background:#fff}
  .history-index ol{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
  .history-index li:nth-child(2){border-top:0}
  .history-chapter__head h2{max-width:22ch}
  .history-next__inner{align-items:start;flex-direction:column}
}
@media(max-width:560px){
  .historia-page .osp-selected--subpage .stage{min-height:98px;padding:9px 0}
  .historia-page .osp-selected--subpage.v3 .header:not(.is-sticky){width:94%;min-height:80px;padding:12px 13px}
  .historia-page .osp-selected--subpage.v3 .header:not(.is-sticky) .tax-badge{display:none}
  .historia-page .osp-selected--subpage.v3 .header:not(.is-sticky) .brand small{display:none}
  .history-wrap{width:88%}
  .history-hero{min-height:650px}
  .history-hero__photo{object-position:59% center}
  .history-hero__shade{background:linear-gradient(0deg,rgba(7,17,26,.98) 0%,rgba(7,17,26,.88) 57%,rgba(7,17,26,.46) 100%)}
  .history-hero__inner{align-items:flex-end;padding-top:155px;padding-bottom:48px}
  .history-hero h1{font-size:clamp(47px,15vw,68px)}
  .history-hero__lead{margin-top:22px;font-size:16px;line-height:1.68}
  .history-hero__actions{margin-top:26px}.history-hero__actions a{width:100%}
  .history-highlights{padding-block:52px}.history-highlights__head{margin-bottom:34px;padding-bottom:19px}.history-highlights__head h2{font-size:38px}.history-highlights__body{gap:30px}.history-highlights__gallery{max-width:none}.history-highlights__timeline li{grid-template-columns:68px minmax(0,1fr);gap:16px;padding:20px 0}.history-highlights__timeline h3{font-size:18px}.history-highlights__timeline p{font-size:13px}
  .history-intro{padding-block:54px}.history-intro h2,.history-next h2{font-size:39px}
  .history-layout{padding-block:52px}
  .history-index{margin-bottom:55px;padding:18px}
  .history-index ol{grid-template-columns:1fr}.history-index li:nth-child(2){border-top:1px solid #d8dfe3}
  .history-chapter{padding-bottom:64px}.history-chapter+.history-chapter{padding-top:64px}
  .history-chapter__head{grid-template-columns:43px minmax(0,1fr);gap:16px;margin-bottom:30px}
  .history-chapter__number{width:40px;height:40px}
  .history-chapter__head h2{font-size:32px;overflow-wrap:anywhere}
  .history-copy>p,.history-copy>div:not(.tresc-tab),.history-copy li{font-size:14px!important}
  .history-copy img{display:block;margin:14px auto 20px!important}
  .history-copy table{font-size:11px!important}
  .history-copy td,.history-copy th{min-width:58px!important;padding:8px!important}
  .history-next{padding-block:54px}.history-next__inner>a{width:100%;min-width:0}
}
@media(prefers-reduced-motion:reduce){.history-page *{scroll-behavior:auto!important}.history-index a,.history-back,.history-next__inner>a{transition:none}}

/* Nagłówek sekcji już ma dolną linię — lista nie powtarza jej poniżej. */
.history-highlights__timeline{border-top:0}
