/* O NAS — wersja 19. Scoped: only .history-page */
.history-page .story-main { padding-bottom:36px; }
.history-page .story-intro { padding:28px 8px 20px; }
.history-page .story-intro .breadcrumb { margin:0 0 12px; }
.history-page .story-intro .story-kicker { color:#b8f3df; font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.095em; margin:4px 0 8px; }
.history-page .story-intro h1 { margin:0 0 9px; font-size:clamp(2rem,4.3vw,3.5rem); color:#fff; letter-spacing:-.03em; }
.history-page .story-intro .story-tagline { max-width:830px; font-size:clamp(.99rem,1.6vw,1.16rem); color:#e4f6fb; margin:0; }
.history-page .story-content { padding:clamp(17px,3vw,34px); overflow:hidden; }
.history-page .story-content h2 { font-size:clamp(1.5rem,2.4vw,2.12rem); color:#14384b; margin:0 0 16px; letter-spacing:-.022em; }
.history-page .story-content h3 { color:#13526a; font-size:clamp(1.13rem,2vw,1.42rem); margin:27px 0 9px; }
.history-page .story-content p { line-height:1.73; margin:0 0 14px; }
.history-page .story-content strong { color:#163c4f; }
.history-page .story-content a:focus-visible, .history-page .story-toc a:focus-visible, .history-page .story-photo-viewer button:focus-visible { outline:3px solid #e0a700; outline-offset:3px; }
.history-page .story-hero {display:grid; grid-template-columns:minmax(0,1.65fr) minmax(240px,.8fr); gap:clamp(18px,3.1vw,36px); align-items:start; background:linear-gradient(130deg,rgba(242,253,253,.96),rgba(222,242,249,.75));border:1px solid #c5e2e8;border-radius:21px;padding:clamp(17px,2.8vw,31px);}
.history-page .story-hero h2 {font-size:clamp(1.55rem,2.8vw,2.42rem);}
.history-page .story-eyebrow {display:block;color:#077866;text-transform:uppercase;letter-spacing:.09em;font-weight:900;font-size:.74rem;margin-bottom:7px;}
.history-page .story-hero-photo {margin:0;}
.history-page .story-hero-photo img {width:100%;max-height:450px;object-fit:cover;object-position:center top;display:block;border-radius:15px;}
.history-page .story-hero-photo figcaption {text-align:center;color:#56707b;font-size:.77rem;margin-top:8px;line-height:1.45;}
.history-page .story-stats {display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:17px 0 20px;}
.history-page .story-stats div {padding:14px 8px;text-align:center;background:rgba(255,255,255,.82);border:1px solid #d5e9ed;border-radius:15px;}
.history-page .story-stats b {display:block;font-size:1.5rem;font-weight:900;color:#087e72;line-height:1.2;}
.history-page .story-stats span {display:block;font-size:.73rem;line-height:1.4;margin-top:5px;color:#486776;}
.history-page .story-toc {display:flex;align-items:center;flex-wrap:wrap;gap:7px 9px;background:rgba(22,96,116,.08);border:1px solid #cce2e8;border-radius:15px;padding:13px 15px;margin:0 0 23px;}
.history-page .story-toc span {font-weight:850;color:#16465b;margin-right:3px;font-size:.83rem;}
.history-page .story-toc a {display:inline-flex;min-height:32px;align-items:center;padding:5px 10px;border:1px solid #b5d8dd;border-radius:20px;background:#fff;color:#126274;font-size:.76rem;font-weight:800;text-decoration:none;}
.history-page .story-toc a:hover {background:#e9f9f7;}
.history-page .story-chapter {border-top:1px solid #bdd9e0;padding:27px 4px 5px;margin:0 0 8px;}
.history-page .story-chapter-head {display:grid;grid-template-columns:128px minmax(0,1fr);gap:18px;align-items:start;margin:0 0 11px;}
.history-page .story-chapter-head h2 {margin:0;}
.history-page .story-date {border-radius:12px;padding:10px 9px;display:block;text-align:center;color:#0a675f;background:#daf3ed;border:1px solid #abd9cf;font-size:.78rem;line-height:1.4;font-weight:900;}
.history-page .story-thanks {background:#e4f5f1;border-left:4px solid #087a69;padding:16px 20px;border-radius:8px 14px 14px 8px;line-height:1.65;margin:25px 0 10px;}
.history-page .story-gallery {margin:19px 0 22px;}
.history-page .story-photo-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;}
.history-page .story-photo {min-width:0;margin:0;background:#fff;border:1px solid #d5e6eb;border-radius:14px;overflow:hidden;box-shadow:0 5px 14px rgba(11,73,91,.06);}
.history-page .story-photo-link {display:block;background:#d4e8ed;cursor:zoom-in;overflow:hidden;}
.history-page .story-photo img {display:block;width:100%;height:clamp(145px,18vw,210px);object-fit:cover;transition:transform .2s ease;}
.history-page .story-photo-link:hover img {transform:scale(1.03);}
.history-page .story-photo figcaption {font-size:.77rem;line-height:1.4;color:#496a79;padding:10px 11px 12px;}
.history-page .story-more {margin-top:12px;border:1px solid #c3dfe6;border-radius:12px;overflow:hidden;background:rgba(234,246,249,.7);}
.history-page .story-more summary {padding:11px 15px;cursor:pointer;font-size:.88rem;font-weight:800;color:#135b70;list-style-position:inside;}
.history-page .story-more[open] summary {border-bottom:1px solid #c3dfe6;}
.history-page .story-photo-grid-more {padding:13px;}
.history-page .story-wide-photo {margin:22px 0 5px;}
.history-page .story-wide-photo img {display:block;width:100%;max-height:345px;object-fit:cover;border-radius:16px;}
.history-page .story-wide-photo figcaption {font-size:.8rem;color:#527381;padding:9px 2px;}
.history-page .story-projects {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;}
.history-page .story-projects article {display:grid;grid-template-columns:41px minmax(0,1fr);gap:11px;padding:19px;background:#fbfefe;border:1px solid #c9e5e6;border-radius:15px;}
.history-page .story-project-mark {font-size:1.7rem;}
.history-page .story-projects h3 {margin:0 0 7px;font-size:1.06rem;}
.history-page .story-projects p {font-size:.89rem;line-height:1.6;margin:0 0 10px;}
.history-page .story-projects a {display:inline-block;margin-right:8px;font-size:.8rem;line-height:1.6;font-weight:850;overflow-wrap:anywhere;}
.history-page .story-outro {margin-top:18px;padding:29px 25px;border-radius:19px;background:linear-gradient(120deg,#103e58,#116a69);color:#fff;text-align:center;}
.history-page .story-outro h2,.history-page .story-outro p {color:white;}
.history-page .story-outro h2 {font-size:clamp(1.35rem,2.5vw,1.88rem);}
.history-page .story-outro p {max-width:850px;margin:0 auto 15px;}
.history-page .story-outro .story-signature {font-style:italic;font-size:1.08rem;font-weight:750;margin-bottom:17px;}
.history-page .story-cta {display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#0b5a60;padding:10px 19px;border-radius:11px;text-decoration:none;font-size:.85rem;font-weight:900;}
.history-page .story-photo-viewer {position:fixed;max-width:min(94vw,1460px);width:auto;max-height:94vh;border:0;border-radius:16px;padding:13px;background:#f6fdff;color:#123c50;box-shadow:0 18px 60px rgba(0,0,0,.36);overflow:auto;}
.history-page .story-photo-viewer::backdrop {background:rgba(5,27,36,.84);}
.history-page .story-photo-viewer figure {margin:0;text-align:center;}
.history-page .story-photo-viewer img {display:block;max-width:88vw;max-height:80vh;object-fit:contain;margin:auto;}
.history-page .story-photo-viewer figcaption {font-size:.84rem;font-weight:700;padding:7px;}
.history-page .story-photo-viewer .story-close {position:sticky;top:0;float:right;background:#0d566f;color:white;border:0;border-radius:50%;width:38px;height:38px;cursor:pointer;font-size:1.5rem;line-height:1;z-index:1;}
@media (max-width:840px){.history-page .story-hero{grid-template-columns:minmax(0,1fr) 215px;}.history-page .story-chapter-head{grid-template-columns:104px minmax(0,1fr);gap:12px;}.history-page .story-stats{grid-template-columns:repeat(3,1fr);}}
@media (max-width:640px){.history-page .story-main{padding-bottom:14px;}.history-page .story-hero{grid-template-columns:1fr;}.history-page .story-hero-photo{display:flex;align-items:center;gap:12px;}.history-page .story-hero-photo img{width:95px;height:117px;flex:none;object-fit:cover;}.history-page .story-hero-photo figcaption{text-align:left;}.history-page .story-stats{grid-template-columns:repeat(2,1fr);}.history-page .story-stats div:last-child{grid-column:span 2;}.history-page .story-chapter-head{display:block;}.history-page .story-date{display:inline-block;text-align:left;margin:0 0 11px;}.history-page .story-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}.history-page .story-photo img{height:130px;}.history-page .story-photo figcaption{font-size:.71rem;padding:7px 8px 9px;}.history-page .story-photo.story-featured:first-child{grid-column:span 2;}.history-page .story-photo.story-featured:first-child img{height:200px;}.history-page .story-projects{grid-template-columns:1fr;}.history-page .story-content{padding:14px;}.history-page .story-intro{padding:19px 2px 17px;}.history-page .story-outro{padding:23px 15px;}}
@media (prefers-reduced-motion:reduce){.history-page .story-photo img{transition:none!important;}}
