/* Reflow design source: 72godziny user-approved visual (not a 1536px fixed canvas).
   Shell is responsive, hero is 2-dimensional with overlays on desktop and stacked on mobile.
   Distinct colors of the 8 domains remain in domains.css. */
:root{--shell:min(1440px,calc(100% - 2 * clamp(18px,3.6vw,64px)));--blue:#1769ff}
html{scroll-padding-top:90px}
body{overflow-x:clip;background:#f6f8fc}
.header--reference{position:relative;background:#fff;box-shadow:0 1px 0 rgba(14,37,70,.09)}
.header--reference .header__in{min-height:78px;gap:clamp(14px,2vw,32px)}
.brand--72{font-size:clamp(21px,2.4vw,31px);font-weight:830;letter-spacing:-.067em;color:#0e1a39;line-height:1.05;display:flex;flex-direction:column;align-items:flex-start;flex:none}
.brand--72>span{display:contents;color:#1769ff}.brand--72 small{font-size:8px;letter-spacing:.095em;color:#6484a4;font-weight:650;margin-left:14px;margin-top:4px}
.header--reference .nav{margin:auto;gap:clamp(16px,1.9vw,29px);white-space:nowrap}
.header--reference .nav a{color:#152137;font-weight:680;font-size:13px;position:relative}
.header--reference .nav a.is-active{color:#1458d0}
.header--reference .nav a.is-active:after{content:"";height:3px;position:absolute;bottom:-13px;left:0;right:0;background:#1769ff;border-radius:4px}
.header-alert{flex:none;background:#101e3c;color:white;display:flex;gap:9px;align-items:center;justify-content:center;padding:12px 18px;min-height:46px;border-radius:999px;border:1px solid #8194b5;font-size:13px;font-weight:750;text-decoration:none;box-shadow:0 6px 16px rgba(10,39,71,.12)}
.header-alert span:first-child{color:#ff586d}
.header-alert:hover{background:#1769ff}
.hero--reference{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(110deg,#f6f8ff 0%,#e9f1fc 40%,#b1bfd6 62%,#15283b 100%);min-height:clamp(580px,44vw,665px)}
.hero--reference:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 15% 62%,rgba(255,247,234,.95),transparent 46%),linear-gradient(90deg,rgba(247,250,255,.86) 0,rgba(247,250,255,.73) 34%,rgba(255,255,255,0) 59%);z-index:-1;pointer-events:none}
.hero-ref__layout{position:relative;min-height:clamp(580px,44vw,665px);display:grid;grid-template-columns:minmax(0,48%) minmax(0,52%);align-items:center}
.hero-ref__intro{position:relative;z-index:4;align-self:center;padding:48px 0 56px;max-width:660px}
.hero-ref__eyebrow{font-size:11px;color:#1b5a9d;letter-spacing:.13em;font-weight:800;margin:0 0 18px}
.hero--reference h1{font-size:clamp(48px,4.25vw,70px);line-height:1.04;letter-spacing:-.064em;color:#08163a;font-weight:790;max-width:680px;margin:0 0 21px;text-wrap:balance}
.hero--reference h1 span{display:block;color:#0c5fd5}
.hero-ref__lead{font-size:clamp(16px,1.45vw,20px);line-height:1.42;max-width:530px;color:#142449;margin-bottom:24px;font-weight:440}
.hero-ref__benefits{display:grid;list-style:none;padding:0;margin:0 0 29px;gap:8px}
.hero-ref__benefits li{position:relative;padding-left:29px;color:#101e40;font-size:clamp(13px,1.02vw,16px);font-weight:560;line-height:1.4}
.hero-ref__benefits li:before{content:'✓';position:absolute;left:0;top:1px;border:1.7px solid #1769ff;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;color:#1769ff;font-size:12px;font-weight:800}
.hero-ref__actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hero-ref__primary,.hero-ref__secondary,.hero-ref__panel-cta{min-height:52px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:13px;text-decoration:none;font-weight:750;font-size:clamp(12px,1vw,15px);padding:12px 22px}
.hero-ref__primary{background:linear-gradient(135deg,#0b55d0,#1876ff);color:#fff;box-shadow:0 8px 20px rgba(13,92,219,.2)}
.hero-ref__primary:hover,.hero-ref__panel-cta:hover{filter:brightness(1.1)}
.hero-ref__primary span{font-size:20px}
.hero-ref__secondary{background:#fff;color:#1e3351;border:1px solid rgba(38,63,98,.3);box-shadow:0 4px 18px rgba(0,0,0,.07)}
.hero-ref__secondary span{color:#1769ff;font-size:12px}
.hero-ref__art{position:absolute;inset:0 -5vw 0 41%;z-index:0;pointer-events:none;overflow:hidden}
.hero-ref__atmosphere{position:absolute;inset:0;background:linear-gradient(0deg,rgba(8,27,36,.64),transparent 26%),radial-gradient(ellipse at 70% 45%,#223c4f 0%,#435b70 48%,transparent 82%)}
.hero-ref__house{position:absolute;left:9%;top:6%;width:67%;height:90%;object-fit:cover;object-position:50% 50%;filter:drop-shadow(0 18px 40px rgba(6,30,52,.26));border-radius:3px;mask-image:linear-gradient(to right,transparent,#000 8%,#000 91%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 91%,transparent)}
.hero-ref__panel{position:absolute;z-index:5;top:36px;right:0;width:min(350px,31%);background:rgba(251,253,255,.96);box-shadow:0 18px 44px rgba(8,30,53,.2);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.86);border-radius:20px;color:#142342;min-width:0;padding:20px;overflow:visible}
.hero-ref__panel-heading{display:flex;align-items:start;justify-content:space-between;gap:14px}
.hero-ref__panel-kicker{font-size:9px;letter-spacing:.1em;color:#6285aa;font-weight:800;margin:0 0 3px}
.hero-ref__panel h2{font-size:25px;line-height:1.05;letter-spacing:-.04em;margin:0 0 8px;font-weight:800}
.hero-ref__panel-heading p:last-child{font-size:13px;line-height:1.45;color:#2c415e;margin:0 0 12px}
.hero-ref__panel .house-lab__serial{font-size:9px;letter-spacing:.045em;color:#8397af;padding-top:2px}
.hero-ref__scene-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:15px}
.hero-ref__scene-buttons button{min-height:41px;min-width:0;background:#f0f5fc;border:1px solid #d6e2f2;color:#183258;border-radius:8px;font-size:10px;line-height:1.16;font-weight:720;cursor:pointer;padding:6px 2px}
.hero-ref__scene-buttons button[aria-pressed="true"]{background:#1769ff;border-color:#1769ff;color:#fff}
.hero-ref__scene-buttons button:hover{border-color:#1769ff}
.hero-ref__panel-insight{font-size:12px;line-height:1.55;color:#273958;margin:0 0 12px}
.hero-ref__checklist{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 12px}
.hero-ref__checklist>span{background:#f4f7fc;border-radius:7px;padding:6px;color:#20385c;display:grid;gap:2px;min-width:0}
.hero-ref__checklist b{font-size:10px}.hero-ref__checklist small{font-size:9px;line-height:1.3;color:#58708e}
.hero-ref__scene-label{display:block;color:#54749c;font-size:9px;font-weight:780;letter-spacing:.05em;margin:0 0 8px}
.hero-ref__panel-cta{width:100%;background:linear-gradient(135deg,#0a51c8,#1779ff);color:#fff;border-radius:10px;min-height:46px;font-size:12px;box-shadow:0 7px 14px rgba(23,105,255,.14)}
.hero-ref__caution{font-size:9px;color:#58708e;line-height:1.3;margin:9px 0 0}
/* 8 category cards: 8 on large desktop, 4 on laptop, 2 on tablet, compact list on small phones */
.domains-section{border:0;background:#fff;padding:28px 0 20px}
.domains-section .domains-head{margin-bottom:16px;max-width:none;display:flex;align-items:baseline;gap:18px;justify-content:space-between}
.domains-section .domains-head .section-eyebrow{font-size:11px;font-weight:800;color:#2d5483;letter-spacing:.095em;margin:0}
.domains-section .domains-head h2,.domains-section .domains-head p:last-child{display:none}
.domains-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}
.domain-card{min-height:194px;padding:15px 12px 12px;gap:7px;border:1px solid transparent;border-radius:13px;background:linear-gradient(160deg,var(--domain-soft) 0%,color-mix(in srgb,var(--domain-soft),white 48%) 100%);box-shadow:none}
.domain-card:before{display:none}
.domain-card:hover{border-color:var(--domain-accent);box-shadow:0 8px 22px rgba(22,47,72,.1)}
.domain-card .domain-symbol{width:42px;height:42px;border-radius:50%;margin:0 0 3px;box-shadow:inset 0 -3px 6px rgba(0,0,0,.08)}
.domain-card strong{font-size:clamp(12px,1.05vw,16px);line-height:1.16;letter-spacing:-.025em}
.domain-card .domain-desc{font-size:11px;color:#34425a;line-height:1.34}
.domain-card .domain-meta{font-size:10px;color:color-mix(in srgb,var(--domain-accent),#08162b 28%);font-weight:720;line-height:1.2}
.domain-card .domain-meta:before{display:none}
.domain-footnote{font-size:11px;margin:12px 0 0}
.feature-tiles{background:#fff;padding:3px 0 36px}
.feature-tiles__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.feature-tile{isolation:isolate;position:relative;display:flex;align-items:end;min-height:225px;padding:24px;border-radius:14px;overflow:hidden;background:#18354a;color:#fff;text-decoration:none}
.feature-tile:before{content:"";position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center;transition:transform .25s ease}
.feature-tile--plan:before{background-image:url('/assets/moj-plan-zdjecie.webp')}
.feature-tile--now:before{background-image:url('/assets/pogoda-zdjecie.webp')}
.feature-tile--prepare:before{background-image:url('/assets/plecak-zdjecie.webp')}
.feature-tile:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,21,33,.96),rgba(6,20,32,.78) 62%,rgba(6,20,32,.52) 100%);z-index:-1}
.feature-tile:hover:before{transform:scale(1.035)}
.feature-tile h2{font-size:clamp(24px,2.1vw,31px);margin:0 0 9px;color:#fff;line-height:1.08;letter-spacing:-.04em}
.feature-tile p{color:#f1f7fb;font-size:13px;line-height:1.48;max-width:340px;margin:0 0 19px}
.feature-tile span{background:white;color:#133763;border-radius:999px;display:inline-flex;font-size:12px;font-weight:750;padding:12px 17px}
.quick-paths{border-top:1px solid #e8edf3;background:#f7f9fd}
@media(max-width:1480px){.hero-ref__art{inset:0 -4vw 0 39%}.hero-ref__panel{right:0;width:min(330px,33%)}.header--reference .nav{gap:15px}}
@media(max-width:1330px){.domains-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.domain-card{min-height:170px}.domain-card strong{font-size:16px}.domain-card .domain-desc{font-size:12px}.hero--reference h1{font-size:clamp(48px,4.4vw,63px)}.hero-ref__panel{width:min(310px,32%)}.hero-ref__art{inset:0 -7vw 0 40%}.hero-ref__house{left:4%;width:69%}}
@media(max-width:1120px){.header--reference .nav,.header-alert{display:none}.header--reference .menu{display:block}.brand--72{margin-right:auto}.hero-ref__panel{width:min(310px,38%);top:24px}.hero-ref__house{left:0%;width:79%}.hero-ref__intro{max-width:530px}.hero--reference h1{font-size:clamp(43px,4.6vw,53px)}}
@media(max-width:930px){.hero--reference,.hero-ref__layout{min-height:0}.hero-ref__layout{display:grid;grid-template-columns:1fr;padding-bottom:25px}.hero-ref__intro{max-width:720px;padding:46px 0 14px}.hero--reference h1{font-size:clamp(43px,7vw,61px)}.hero-ref__lead{max-width:660px}.hero-ref__art{position:relative;inset:auto;order:2;height:390px;min-height:0;margin-top:12px;border-radius:16px;overflow:hidden}.hero-ref__house{height:100%;width:72%;left:8%;top:0}.hero-ref__panel{position:relative;width:auto;max-width:700px;top:auto;right:auto;order:3;margin:-45px auto 0;min-width:0}.hero-ref__checklist{display:grid}.hero--reference:before{background:linear-gradient(120deg,rgba(247,250,255,.92),rgba(235,244,255,.56))}.domains-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.feature-tiles__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-tile:last-child{grid-column:1/-1}}
@media(max-width:640px){:root{--shell:min(1440px,calc(100% - 32px))}.header--reference .header__in{min-height:64px}.brand--72{font-size:24px}.hero-ref__intro{padding:34px 0 7px}.hero--reference h1{font-size:clamp(38px,10vw,53px);line-height:1.08}.hero-ref__eyebrow{font-size:10px;margin-bottom:12px}.hero-ref__lead{font-size:16px;margin-bottom:20px}.hero-ref__benefits{gap:8px;margin-bottom:23px}.hero-ref__benefits li{font-size:12.5px}.hero-ref__primary,.hero-ref__secondary{min-height:48px;font-size:13px}.hero-ref__art{height:280px;margin-left:-16px;margin-right:-16px;border-radius:0}.hero-ref__house{width:80%;left:7%;height:100%}.hero-ref__panel{margin:-25px 0 0;padding:18px 15px;border-radius:14px}.hero-ref__panel h2{font-size:22px}.hero-ref__checklist{grid-template-columns:1fr;gap:5px}.hero-ref__checklist>span{display:flex;gap:7px;align-items:baseline}.hero-ref__checklist small{font-size:10px}.domains-section{padding:26px 0 18px}.domains-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.domain-card{min-height:168px;padding:12px}.domain-card strong{font-size:15px}.domain-card .domain-desc{font-size:11.5px}.domain-card .domain-meta{font-size:10px}.feature-tiles__grid{grid-template-columns:1fr;gap:12px}.feature-tile:last-child{grid-column:auto}.feature-tile{min-height:185px}.feature-tile h2{font-size:26px}}
@media(max-width:420px){.hero-ref__primary{width:100%}.hero-ref__secondary{width:100%}.hero-ref__art{height:240px}.hero-ref__house{width:94%;left:2%}.hero-ref__panel-heading p:last-child{font-size:12px}.hero-ref__scene-buttons button{font-size:9px}.domains-grid{grid-template-columns:1fr}.domain-card{min-height:0;display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;align-items:center;gap:0 10px;padding:12px 14px}.domain-symbol{grid-column:1;grid-row:1/3}.domain-card .domain-symbol{width:40px;height:40px;margin:0}.domain-card strong{grid-column:2;font-size:14px}.domain-desc{grid-column:2;font-size:11px}.domain-card .domain-meta{display:none}.feature-tile{min-height:180px}}
@media(prefers-reduced-motion:reduce){.feature-tile:before{transition:none}.hero-ref__primary:hover{transition:none}}

/* Final art-mask polish: don't expose edges of crops on fluid layouts. */
.hero-ref__house{mask-image:linear-gradient(to right,transparent 0%,black 13%,black 89%,transparent 100%);-webkit-mask-image:linear-gradient(to right,transparent 0%,black 13%,black 89%,transparent 100%)}
.hero-ref__panel .house-lab__serial{white-space:nowrap}
@media(max-width:420px){.hero-ref__house{mask-image:linear-gradient(to right,transparent,black 8%,black 92%,transparent);-webkit-mask-image:linear-gradient(to right,transparent,black 8%,black 92%,transparent)}}

/* v1.6: Entire homepage, including hero and navigation, is capped at 1440px.
   No site section bleeds to full viewport on large desktop. */
:root { --shell:min(1360px,calc(100% - 2 * clamp(18px,3vw,40px))); }
body.home-page {background:#eaf0f7;overflow-x:clip}
.home-page > .header--reference,
.home-page > main,
.home-page > footer {width:100%;max-width:1440px;margin-inline:auto}
.home-page > main{background:#fff;box-shadow:0 24px 80px rgba(19,40,72,.07)}
/* Isolate the house artwork and its button coordinates in one scaling context. */
.hero-ref__art{pointer-events:auto;}
.hero-ref__atmosphere{pointer-events:none;}
.hero-house{position:absolute;left:9%;top:6%;width:67%;height:90%;isolation:isolate;}
.hero-house .hero-ref__house{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;object-position:center;border-radius:4px;filter:drop-shadow(0 18px 38px rgba(6,30,52,.25));}
.hero-house__point{--point:#1769ff;position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.9);background:color-mix(in srgb,var(--point),#0a1b32 12%);color:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.24),0 6px 16px rgba(2,15,30,.38);display:grid;place-items:center;cursor:pointer;z-index:3;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;}
.hero-house__point svg{width:22px;height:22px;display:block}
.hero-house__point:hover,.hero-house__point:focus-visible{transform:translate(-50%,-50%) scale(1.13);box-shadow:0 0 0 6px color-mix(in srgb,var(--point) 33%,transparent),0 12px 28px rgba(0,15,35,.42);z-index:9}
.hero-house__point:focus-visible{outline:3px solid #fff;outline-offset:5px}
.hero-house__point[aria-pressed="true"]{box-shadow:0 0 0 5px #fff,0 0 0 9px var(--point),0 12px 24px rgba(0,15,30,.42);z-index:8}
.hero-house__tip{position:absolute;left:50%;bottom:calc(100% + 13px);transform:translateX(-50%);opacity:0;pointer-events:none;white-space:nowrap;font-size:12px;font-weight:800;letter-spacing:.005em;background:rgba(6,20,40,.95);color:#fff;border-radius:8px;padding:7px 11px;box-shadow:0 5px 15px rgba(0,0,0,.2)}
.hero-house__point:hover .hero-house__tip,.hero-house__point:focus-visible .hero-house__tip{opacity:1}
.hero-house__hint{position:absolute;z-index:5;left:12%;bottom:24px;background:rgba(255,255,255,.96);border:1px solid rgba(21,51,76,.15);border-radius:999px;padding:7px 13px;color:#10264b;font-size:11px;font-weight:760;box-shadow:0 5px 14px rgba(0,0,0,.13);pointer-events:none}
.house-lab__point-detail{background:linear-gradient(125deg,#f4f8ff,#eaf3ff);border:1px solid #d7e5fb;border-radius:10px;padding:12px 13px;margin:8px 0 10px;min-height:80px}
.house-lab__point-detail strong{display:block;font-size:14px;line-height:1.25;color:#122753}
.house-lab__point-detail p{font-size:12px;line-height:1.4;color:#364c6b;margin:4px 0 0}
.hero-ref__panel-insight{margin-bottom:9px;font-size:11px;}
.hero-ref__panel{max-height:calc(100% - 30px);overflow-y:auto;scrollbar-width:thin}
@media(max-width:1480px){.hero-house{left:9%;width:67%}}
@media(max-width:1330px){.hero-house{left:4%;width:69%}}
@media(max-width:1120px){.hero-house{left:0;width:79%}}
@media(max-width:930px){.hero-house{left:8%;top:0;width:72%;height:100%}.hero-ref__panel{max-height:none;overflow:visible}.hero-house__hint{left:18px;bottom:16px}}
@media(max-width:640px){:root{--shell:calc(100% - 32px)}.hero-house{left:7%;top:0;width:80%;height:100%}.hero-house__point{width:44px;height:44px}.hero-house__point svg{width:20px;height:20px}.hero-house__hint{font-size:10px}}
@media(max-width:420px){.hero-house{left:2%;width:94%}.hero-house__point{width:42px;height:42px}.hero-house__hint{bottom:10px}}
@media(prefers-reduced-motion:reduce){.hero-house__point{transition:none}}
/* Keep house proportions correct independently of viewport aspect ratio. */
@media (min-width:931px){.hero-house{left:1%;top:11%;width:auto;height:78%;aspect-ratio:479/430}.hero-house .hero-ref__house{object-fit:contain}}
@media (max-width:930px){.hero-house{left:50%;top:0;transform:translateX(-50%);width:auto;height:100%;aspect-ratio:479/430;max-width:100%}.hero-house .hero-ref__house{object-fit:contain}}
/* Transparent intro areas may overlap the illustrated house; they must not block hotspots. */
.hero-ref__intro{pointer-events:none}
.hero-ref__intro a,.hero-ref__intro button{pointer-events:auto}
/* At laptop widths move controls below the art; do not obscure clickable icons. */
@media(min-width:931px) and (max-width:1120px){
 .hero--reference,.hero-ref__layout{min-height:0}
 .hero-ref__layout{display:grid;grid-template-columns:1fr;padding-bottom:25px}
 .hero-ref__intro{max-width:760px;padding:42px 0 20px}
 .hero-ref__art{position:relative;inset:auto;order:2;height:410px;border-radius:18px;margin-top:12px;overflow:hidden}
 .hero-house{height:100%;width:auto;aspect-ratio:479/430;left:50%;top:0;transform:translateX(-50%)}
 .hero-ref__panel{position:relative;width:100%;max-width:760px;top:auto;right:auto;order:3;margin:-28px auto 0;max-height:none;overflow:visible}
 .hero-ref__checklist{display:grid}
}

/* Hotspot hit targets sit above icon artwork without duplicating embedded pictograms. */
.hero-house__point{background:transparent;border-color:transparent;box-shadow:none;color:transparent}
.hero-house__point svg{opacity:0}
.hero-house__point:hover,.hero-house__point:focus-visible{background:transparent;box-shadow:0 0 0 4px #fff,0 0 0 8px var(--point),0 10px 24px rgba(0,15,30,.2)}
.hero-house__point[aria-pressed="true"]{background:transparent;box-shadow:0 0 0 3px #fff,0 0 0 7px var(--point),0 8px 20px rgba(0,15,30,.25)}
@media(max-width:640px){.hero-ref__art{height:min(340px,90vw)}.hero-ref__panel{margin:8px 0 0}.hero-house__hint{left:12px;bottom:10px}}
@media(max-width:420px){.hero-ref__art{height:90vw}.hero-ref__panel{margin-top:8px}}
/* Do not float the panel over the lower (installations) hotspot on tablets. */
@media (min-width:641px) and (max-width:1120px){.hero-ref__panel{margin:12px auto 0}}
