/* Shared identity corrections. Intrinsic logo proportions survive width attributes and sticky states. */
.canvas>.header .brand img,
.footer-brand img{height:auto!important;object-fit:contain;display:block}
.footer-brand img{max-width:100%}
@media(min-width:1201px){
 .canvas>.header .header-phone{margin-left:auto;margin-right:10px}
 .canvas>.header .header-cta{margin-left:0}
}

/* Współpraca: the homepage's translucent architectural guides on a shorter photographic hero. */
.contact-page .collab-hero{height:620px;min-height:620px;padding:0 40px 0 280px;background:#121212;color:#fff;overflow:hidden;isolation:isolate}
.collab-hero-photo{position:absolute;inset:0 0 0 240px;z-index:-2;overflow:hidden}
.collab-hero-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 55%;filter:brightness(.62) saturate(.76)}
.collab-hero-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.23) 60%,rgba(0,0,0,.26))}
.collab-hero-lines{position:absolute;inset:0 0 0 240px;z-index:-1;pointer-events:none;overflow:hidden}
.collab-hero-lines i,.collab-hero-lines b{position:absolute;display:block;background:rgba(255,255,255,.22)}
.collab-hero-lines i{top:0;bottom:0;width:1px}
.collab-hero-lines i:nth-child(1){left:30%}.collab-hero-lines i:nth-child(2){left:64%}.collab-hero-lines i:nth-child(3){right:4%}
.collab-hero-lines b{left:0;right:0;height:1px}.collab-hero-lines b:nth-of-type(1){top:51%}.collab-hero-lines b:nth-of-type(2){bottom:13%}
.contact-page .collab-hero .chapter-rail{background:#fafafa;color:#121212;border-color:#d8d8d8}
.contact-page .collab-hero .chapter-note{color:#777}
.collab-hero .breadcrumbs{position:relative;z-index:2;color:#ececec;border-color:rgba(255,255,255,.26)}
.collab-hero .breadcrumbs a{color:#fff}
.collab-page .collab-hero .contact-intro-content{position:relative;z-index:2;grid-template-columns:300px minmax(0,1fr);align-items:center;min-height:530px;padding:48px 0 56px}
.collab-hero .intro-caption{color:#e0e0e0;font-size:13px;line-height:1.7}
.contact-page .collab-hero h1{color:#fff;font-size:clamp(58px,5.3vw,82px);line-height:1.04;letter-spacing:-.048em}
.collab-hero .contact-intro-content p{color:#eee;font-size:17px;line-height:1.6;max-width:560px;margin-top:26px}

/* A three-item landing section ends after the third item, with no phantom fourth grid line. */
.md-landing-feature-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.md-landing-feature-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Showroom: location imagery is inspirational, with the address and action kept distinct. */
.md-landing-hero--showroom .md-landing-hero-image{inset:0 0 0 240px}
.md-landing-hero--showroom .md-landing-hero-image:after{background:linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.24) 58%,rgba(0,0,0,.2))}
.md-landing-hero--showroom .md-landing-hero-image:before{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background-image:linear-gradient(to right,transparent calc(34% - .5px),rgba(255,255,255,.2) 34%,transparent calc(34% + .5px)),linear-gradient(to right,transparent calc(72% - .5px),rgba(255,255,255,.2) 72%,transparent calc(72% + .5px)),linear-gradient(to bottom,transparent calc(75% - .5px),rgba(255,255,255,.2) 75%,transparent calc(75% + .5px))}
.md-landing-hero--showroom .md-landing-hero-copy{max-width:760px}
.md-landing-hero--showroom h1{max-width:760px}
.md-landing-showroom-grid{gap:0;border:1px solid #d0d0d0}
.md-landing-showroom-grid article{border:0;padding:0;min-height:0;overflow:hidden}
.md-landing-showroom-grid article+article{border-left:1px solid #d0d0d0}
.md-showroom-photo{height:350px;overflow:hidden;background:#1a1a1a}
.md-showroom-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.75,.2,1)}
.md-landing-showroom-grid article:hover .md-showroom-photo img{transform:scale(1.035)}
.md-showroom-copy{min-height:210px;padding:26px 30px 30px;display:flex;flex-direction:column}
.md-showroom-copy>span{font-size:11px;letter-spacing:.1em;color:#777}
.md-landing-showroom-grid .md-showroom-copy h3{margin:25px 0 8px}
.md-landing-showroom-grid .md-showroom-copy p{margin:0}
.md-landing-showroom-grid .md-showroom-copy a{margin-top:auto;align-self:flex-start}

@media(max-width:1200px){
 .contact-page .collab-hero{padding-left:112px;height:590px;min-height:590px}
 .collab-hero-photo,.collab-hero-lines{left:80px}
 .collab-page .collab-hero .contact-intro-content{grid-template-columns:220px minmax(0,1fr);min-height:500px}
 .md-landing-feature-grid--three{grid-template-columns:repeat(2,minmax(0,1fr))}
 .md-landing-hero--showroom .md-landing-hero-image{left:80px}
}
@media(max-width:700px){
 .contact-page .collab-hero{height:auto;min-height:660px;padding:0 22px 55px}
 .collab-hero-photo,.collab-hero-lines{inset:0}
 .collab-hero-photo img{object-position:62% center}
 .collab-hero-photo:after{background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.65) 55%,rgba(0,0,0,.82))}
 .collab-hero-lines i:nth-child(1){left:21px}.collab-hero-lines i:nth-child(2){left:auto;right:21px}.collab-hero-lines i:nth-child(3){display:none}
 .collab-hero-lines b:nth-of-type(1){top:35%}.collab-hero-lines b:nth-of-type(2){bottom:15%}
 .contact-page .collab-hero .chapter-rail{display:none}
 .collab-hero .breadcrumbs{height:65px;padding-top:4px;color:#eee}
 .collab-page .collab-hero .contact-intro-content{display:block;min-height:0;padding:165px 0 45px}
 .collab-hero .intro-caption{display:block;font-size:11px;margin-bottom:20px}
 .contact-page .collab-hero h1{font-size:clamp(42px,11vw,56px)}
 .collab-hero .contact-intro-content p{font-size:14px;line-height:1.7}
 .md-landing-feature-grid--three,.md-landing-feature-grid--two{grid-template-columns:1fr}
 .md-landing-hero--showroom .md-landing-hero-image{inset:0}
 .md-landing-showroom-grid article+article{border-left:0;border-top:1px solid #d0d0d0}
 .md-showroom-photo{height:270px}
 .md-showroom-copy{min-height:205px;padding:24px 22px 28px}
}
@media(prefers-reduced-motion:reduce){.md-showroom-photo img{transition:none}}

/* Generated imagery is presented as an inspiration, never as a documentary location photo. */
.md-showroom-photo{position:relative}
.md-image-disclosure{position:absolute;right:22px;bottom:18px;z-index:5;display:inline-block;padding:7px 10px;background:rgba(0,0,0,.62);color:#fff;font-size:9px;line-height:1.2;letter-spacing:.07em;text-transform:uppercase}
.collab-hero-photo .md-image-disclosure{bottom:21px}
.md-showroom-photo .md-image-disclosure{bottom:12px;right:12px}
@media(max-width:700px){.md-image-disclosure{font-size:8px;right:12px;bottom:12px}}

/* Real project categories use server-side links across all archive pages. */
.portfolio-page .category-filters a{position:relative;display:inline-flex;align-items:center;min-height:64px;color:#6b6b6b;font-size:12px;text-decoration:none;white-space:nowrap}
.portfolio-page .category-filters a:hover,.portfolio-page .category-filters a:focus-visible,.portfolio-page .category-filters a[aria-current="page"]{color:#121212}
.portfolio-page .category-filters a[aria-current="page"]:after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:#121212}
.portfolio-page .portfolio-options--live{display:flex;justify-content:flex-end;gap:18px}
.portfolio-page .portfolio-options--live .view-switch{margin-left:0}
@media(max-width:700px){.portfolio-page .category-filters a{min-height:62px}.portfolio-page .portfolio-options--live{padding:14px 0}}

/* Portfolio landing cards use actual project photography with legible, structured captions. */
.md-landing-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.md-landing-project-card{min-width:0;display:flex;flex-direction:column;border:1px solid #d3d3d3;color:#121212;text-decoration:none;overflow:hidden}
.md-landing-project-media{display:block;height:285px;overflow:hidden;background:#222}
.md-landing-project-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.md-landing-project-card:hover img{transform:scale(1.035)}
.md-landing-project-info{display:flex;flex-direction:column;min-height:185px;padding:22px 24px 24px}
.md-landing-project-meta{font-size:11px;line-height:1.5;letter-spacing:.08em;text-transform:uppercase;color:#666}
.md-landing-project-info strong{display:block;margin:18px 0 24px;font-size:clamp(22px,2.2vw,32px);line-height:1.12;font-weight:300;letter-spacing:-.035em}
.md-landing-project-action{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:auto;padding-top:13px;border-top:1px solid #cfcfcf;font-size:12px}
.md-landing-project-action svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4;flex:none}
.md-landing-project-grid.is-single{grid-template-columns:minmax(0,1fr);max-width:980px}
.md-landing-project-grid.is-single .md-landing-project-card{display:grid;grid-template-columns:1.2fr .8fr;border-color:#343434;background:#121212;color:#fff}
.md-landing-project-grid.is-single .md-landing-project-media{height:390px}
.md-landing-project-grid.is-single .md-landing-project-info{padding:32px;min-height:390px}
.md-landing-project-grid.is-single .md-landing-project-meta{color:#aaa}
.md-landing-project-grid.is-single .md-landing-project-info strong{font-size:clamp(34px,3.5vw,52px);margin:40px 0 30px}
.md-landing-project-grid.is-single .md-landing-project-action{border-color:#555}
.md-landing-project-empty{max-width:650px;color:#555;font-size:16px;line-height:1.7}
.md-landing-portfolio .md-landing-text-link .md-vector-arrow{width:18px;height:18px}
@media(max-width:1100px){.md-landing-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 .md-landing-project-grid,.md-landing-project-grid.is-single{grid-template-columns:1fr}
 .md-landing-project-grid.is-single .md-landing-project-card{display:flex;flex-direction:column}
 .md-landing-project-media,.md-landing-project-grid.is-single .md-landing-project-media{height:auto;aspect-ratio:1.2}
 .md-landing-project-grid.is-single .md-landing-project-info{min-height:220px;padding:24px}
 .md-landing-project-grid.is-single .md-landing-project-info strong{font-size:30px;margin:26px 0}
}
@media(prefers-reduced-motion:reduce){.md-landing-project-media img{transition:none}}

/* Quote upload control: consistent Polish UI independent of the visitor's browser locale. */
.md-quote-file{display:block;margin-top:30px;font-size:14px;cursor:pointer}
.md-quote-file-caption{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 12px;line-height:1.55}
.md-quote-file-caption small{font-size:11px;color:#666}
.md-quote-file-control{display:flex;align-items:center;min-height:58px;margin-top:12px;border:1px solid #a8a8a8;overflow:hidden}
.md-quote-file-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-width:175px;min-height:58px;padding:12px 18px;background:#121212;color:#fff;font-size:13px;white-space:nowrap}
.md-quote-file-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}
.md-quote-file-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 18px;color:#555;font-size:13px}
.md-quote-file input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}
.md-quote-file:focus-within .md-quote-file-control{outline:2px solid #121212;outline-offset:3px}
.md-quote-file:hover .md-quote-file-button{background:#333}
@media(max-width:700px){.md-quote-file-control{display:block}.md-quote-file-button{display:flex;width:100%;min-height:54px}.md-quote-file-name{min-height:44px;display:flex;align-items:center;padding:8px 14px}}

.md-quote-form [data-quote-step]{scroll-margin-top:140px}
.md-quote-form button.md-quote-prev:hover,.md-quote-form button.md-quote-prev:focus-visible{background:#f0f0f0;color:#121212}

/* Filter and pagination reloads land below the fixed header. */
#realizacje-filtry{scroll-margin-top:110px}
@media(max-width:700px){#realizacje-filtry{scroll-margin-top:78px}}

/* Footer directory covers the published SEO landing pages without crowding the main menu. */
.footer-grid{grid-template-columns:1.2fr .78fr 1fr}
.footer-directory{display:grid;grid-template-columns:1.15fr 1.15fr .9fr;gap:32px;border-top:1px solid var(--rule-dark);padding:34px 0 42px}
.footer-directory-group{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:11px}
.footer-directory h3{margin:0 0 12px;color:#fff;font-size:12px;font-weight:500;line-height:1.5;letter-spacing:.08em;text-transform:uppercase}
.footer-directory a{display:block;max-width:100%;color:#bcbcbc;font-size:12px;line-height:1.5;text-decoration:none;text-underline-offset:4px}
.footer-directory a:hover,.footer-directory a:focus-visible{color:#fff;text-decoration:underline}
@media(max-width:1100px){.footer-grid{grid-template-columns:1fr 1fr}.footer-brand{grid-column:1/-1}.footer-directory{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.footer-directory{grid-template-columns:1fr;gap:0;padding:8px 0 20px}.footer-directory-group{padding:22px 0;border-bottom:1px solid var(--rule-dark)}.footer-directory h3{margin-bottom:8px}.footer-directory a{font-size:13px;min-height:34px;display:flex;align-items:center}}

/* Realizacje filters, view switch and count share one ruled toolbar. */
.portfolio-page .portfolio-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border-bottom:1px solid var(--portfolio-line)}
.portfolio-page .category-filters{height:72px;min-width:0;gap:25px;border-bottom:0;overflow-x:auto;scrollbar-width:none}
.portfolio-page .category-filters::-webkit-scrollbar{display:none}
.portfolio-page .category-filters a{min-height:72px;flex:none}
.portfolio-page .portfolio-options--live{height:72px;min-width:0;gap:14px;padding:0 0 0 18px;border:0;align-self:stretch}
.portfolio-page .portfolio-options--live #result-count{width:auto;min-width:55px;font-size:12px;white-space:nowrap}
@media(max-width:700px){
 .portfolio-page .portfolio-tools{margin:0 -22px;padding:0 22px}
 .portfolio-page .category-filters{height:66px;margin:0;padding:0;gap:18px}
 .portfolio-page .category-filters a{min-height:66px;font-size:11px}
 .portfolio-page .portfolio-options--live{height:66px;gap:8px;padding:0 0 0 10px}
 .portfolio-page .portfolio-options--live .view-switch button{width:32px;height:36px}
 .portfolio-page .portfolio-options--live .view-switch svg{width:16px;height:16px}
 .portfolio-page .portfolio-options--live #result-count{min-width:38px;font-size:10px}
}

/* Oferta megamenu: equal editorial columns and restrained rules, no mismatched white tabs. */
@media(min-width:1201px){
 #main-menu .nav-submenu--offer{left:-42px;width:min(600px,calc(100vw - 350px));grid-template-columns:repeat(2,minmax(0,1fr));padding:0;background:#121212}
}
#main-menu .nav-submenu--offer .nav-offer-column{min-width:0;padding:0 0 12px}
#main-menu .nav-submenu--offer .nav-offer-column+.nav-offer-column{border-left:1px solid rgba(255,255,255,.2)}
#main-menu .nav-submenu--offer .nav-offer-title,
.canvas>.header nav .nav-submenu--offer .nav-offer-column a.nav-offer-title{display:flex;width:100%;height:56px;min-height:56px;align-items:center;margin:0 0 8px;padding:0 24px;background:#202020;color:#fff;border:0;border-bottom:1px solid rgba(255,255,255,.27);font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;line-height:1.2}
.canvas>.header nav .nav-submenu--offer .nav-offer-column>a:not(.nav-offer-title){display:flex;align-items:center;min-height:42px;margin:0;padding:10px 24px;border:0;color:#ddd;font-size:12px;line-height:1.45;transition:background .2s,color .2s}
.canvas>.header nav .nav-submenu--offer .nav-offer-column>a:not(.nav-offer-title):hover,
.canvas>.header nav .nav-submenu--offer .nav-offer-column>a:not(.nav-offer-title):focus-visible{background:#242424;color:#fff}
@media(max-width:1200px){
 #main-menu .nav-submenu--offer .nav-offer-column{padding-bottom:10px}
 #main-menu .nav-submenu--offer .nav-offer-title,.canvas>.header nav .nav-submenu--offer .nav-offer-column a.nav-offer-title{height:50px;min-height:50px;padding:0 18px}
 .canvas>.header nav .nav-submenu--offer .nav-offer-column>a:not(.nav-offer-title){padding:9px 18px;min-height:38px}
}
@media(max-width:700px){
 #main-menu .nav-submenu--offer .nav-offer-column+.nav-offer-column{border-left:0;border-top:1px solid rgba(255,255,255,.22);padding-top:14px}
 #main-menu .nav-submenu--offer .nav-offer-title,.canvas>.header nav .nav-submenu--offer .nav-offer-column a.nav-offer-title{padding:0 15px}
 .canvas>.header nav .nav-submenu--offer .nav-offer-column>a:not(.nav-offer-title){padding:10px 15px}
}

@media(min-width:1201px){.md-landing-process-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}}
