/* Shared scale and spacing, loaded after each page's original design. */
.wp-site-blocks :is(.mf-home,.mf-offer,.mf-about,.mf-projects,.mf-contact,.mf-blog,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze,.mf-shell) .mg-wrap{width:calc(100% - 64px);max-width:1320px;margin-inline:auto;padding-inline:0}
.wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-contact,.mf-blog) :is(.mo-intro,.ma-intro,.mp-intro,.mc-intro,.mb-intro){padding-block:22px 28px}
.wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-contact,.mf-blog) :is(.mo-breadcrumb,.ma-breadcrumb,.mp-breadcrumb,.mc-breadcrumb,.mb-breadcrumb){margin-bottom:20px}
.wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-contact,.mf-blog) :is(.mo-intro,.ma-intro,.mp-intro,.mc-intro,.mb-intro) h1{font-size:clamp(36px,3.8vw,52px);line-height:1.12;letter-spacing:-.035em;font-weight:500;max-width:900px}
.wp-site-blocks :is(.mf-offer,.mf-projects,.mf-contact,.mf-blog) :is(.mo-intro-row,.mp-intro-row,.mc-intro-row,.mb-intro-row){align-items:center;gap:24px}
.wp-site-blocks :is(.mf-offer,.mf-projects,.mf-contact,.mf-blog) :is(.mo-intro-row,.mp-intro-row,.mc-intro-row,.mb-intro-row) p{font-size:14px;line-height:1.7;max-width:440px}
.wp-site-blocks :is(.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze) .zs-head h1{font-size:clamp(32px,3.5vw,48px);line-height:1.16;letter-spacing:-.03em;max-width:900px}
.wp-site-blocks .mf-blog .mb-article-head h1{font-size:clamp(28px,3.3vw,44px);line-height:1.2;letter-spacing:-.025em}
.wp-site-blocks .mf-offer .mo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-bottom:40px}
.wp-site-blocks .mf-offer .mo-copy{padding:22px}
.wp-site-blocks .mf-offer .mo-copy h2{font-size:26px;line-height:1.2;letter-spacing:-.025em}
.wp-site-blocks .mf-offer .mo-copy p{font-size:13px;line-height:1.75}
.wp-site-blocks .mf-offer .mo-service-head h1{font-size:clamp(32px,3.5vw,48px);line-height:1.16}
.wp-site-blocks .mf-offer :is(.mo-editorial,.mo-service-copy) h2{font-size:clamp(26px,2.5vw,34px);line-height:1.2;letter-spacing:-.025em}
.wp-site-blocks .mf-about .ma-photo{min-height:380px}
.wp-site-blocks .mf-about .ma-story{gap:40px;padding-bottom:36px}
.wp-site-blocks .mf-about :is(.ma-chapter,.ma-growth,.ma-scope){padding-block:34px}
.wp-site-blocks .mf-about :is(.ma-story,.ma-chapter,.ma-latest,.ma-scope) h2{font-size:clamp(26px,2.5vw,34px);line-height:1.2;letter-spacing:-.025em}
.wp-site-blocks .mf-about .ma-latest{padding-block:32px 36px}
.wp-site-blocks :is(.mf-home,.mf-offer,.mf-about,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze) :is(.mg-section-head,.zs-projects) h2{font-size:clamp(26px,2.5vw,34px);line-height:1.2;letter-spacing:-.025em}
/* Keep the invitation and its button together, rather than at opposite edges. */
.wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-blog,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze) :is(.mo-contact,.ma-contact,.mp-inquiry,.mb-inquiry,.zs-contact){padding-block:32px}
.wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-blog,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze) :is(.mo-contact-inner,.ma-contact-inner,.mp-inquiry-inner,.mb-inquiry-inner,.zs-contact-inner){display:grid;grid-template-columns:minmax(0,640px) max-content;justify-content:center;align-items:center;max-width:1120px;gap:32px;margin-inline:auto}
.wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-blog,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze) :is(.mo-contact,.ma-contact,.mp-inquiry,.mb-inquiry,.zs-contact) h2{font-size:clamp(25px,2.5vw,34px);line-height:1.2;font-weight:500;letter-spacing:-.025em}
.wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-blog,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze) :is(.mo-contact,.ma-contact,.mp-inquiry,.mb-inquiry,.zs-contact) p{font-size:13px;line-height:1.75;margin-top:10px;max-width:580px}
.wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-blog,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze) :is(.mo-contact,.ma-contact,.mp-inquiry,.mb-inquiry,.zs-contact) .mg-btn{min-height:48px;width:auto;padding:13px 20px;font-size:12px;gap:22px;white-space:normal;text-align:center;justify-content:center}
@media(min-width:901px){.wp-site-blocks .mf-shell .mg-header-inner{min-height:86px;gap:28px}.wp-site-blocks .mf-shell .mg-nav{gap:26px;margin-left:auto}.wp-site-blocks .mf-shell .mg-header-cta{min-height:46px}}
@media(max-width:1023px){.wp-site-blocks .mf-offer .mo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .wp-site-blocks :is(.mf-home,.mf-offer,.mf-about,.mf-projects,.mf-contact,.mf-blog,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze,.mf-shell) .mg-wrap{width:calc(100% - 36px)}
 .wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-contact,.mf-blog) :is(.mo-intro,.ma-intro,.mp-intro,.mc-intro,.mb-intro){padding-block:18px 22px}
 .wp-site-blocks :is(.mf-offer,.mf-projects,.mf-contact,.mf-blog) :is(.mo-intro-row,.mp-intro-row,.mc-intro-row,.mb-intro-row){grid-template-columns:1fr;gap:12px}
 .wp-site-blocks :is(.mf-offer,.mf-projects,.mf-contact,.mf-blog) :is(.mo-intro-row,.mp-intro-row,.mc-intro-row,.mb-intro-row) p{justify-self:start;font-size:13px}
 .wp-site-blocks :is(.mf-offer,.mf-about,.mf-projects,.mf-blog,.mf-zadaszenia,.mf-carporty,.mf-balustrady,.mf-schody,.mf-konstrukcje-stalowe,.mf-uslugi-spawalnicze) :is(.mo-contact-inner,.ma-contact-inner,.mp-inquiry-inner,.mb-inquiry-inner,.zs-contact-inner){grid-template-columns:1fr;gap:18px;justify-items:start}
 .wp-site-blocks .mf-about .ma-story{gap:24px}.wp-site-blocks .mf-about .ma-photo{min-height:0;aspect-ratio:3/2}
}
@media(max-width:560px){.wp-site-blocks .mf-offer .mo-grid{grid-template-columns:1fr;gap:22px}.wp-site-blocks .mf-offer .mo-copy h2{font-size:24px}}

/* Stick the whole contact/menu wrapper; the footer remains in normal flow. */
html{scroll-padding-top:calc(var(--mf-header-height,128px) + 16px)}
.wp-site-blocks>.mf-site-header{position:sticky;top:0;z-index:100;background:#fff;box-shadow:0 2px 8px rgb(0 0 0 / .04)}
.wp-site-blocks .mf-site-header .mg-header{position:static;top:auto}
.wp-site-blocks .mf-site-header .mg-contact-strip-inner{display:flex;justify-content:center;align-items:center;gap:24px}
.wp-site-blocks .mf-site-header .mf-work-hours{display:none;color:inherit;align-items:center;gap:8px;white-space:nowrap;font-size:inherit;font-weight:400}
.wp-site-blocks .mf-site-header .mf-work-hours svg{color:inherit;width:15px;height:15px;flex-shrink:0}
body.admin-bar .wp-site-blocks>.mf-site-header{top:32px}
@media(min-width:1024px){.wp-site-blocks .mf-site-header .mf-work-hours{display:flex;min-height:40px;border-left:1px solid #d2d2ce;padding-left:24px}}
@media(max-width:782px){body.admin-bar .wp-site-blocks>.mf-site-header{top:46px}}
@media(max-width:650px){.wp-site-blocks .mf-site-header .mg-contact-strip-inner{gap:14px}.wp-site-blocks .mf-site-header .mg-nav{max-height:calc(100dvh - 150px);overflow-y:auto}}
@media(max-width:600px){body.admin-bar .wp-site-blocks>.mf-site-header{top:0}}
@media(max-width:360px){.wp-site-blocks .mf-site-header .mg-contact-strip-inner{gap:0 14px}}

.wp-site-blocks .mf-shell .mg-footer .mg-footer-brand{text-transform:uppercase}
.wp-site-blocks .mf-shell .mg-footer a,
.wp-site-blocks .mf-shell .mg-footer a:hover,
.wp-site-blocks .mf-shell .mg-footer a:focus{text-decoration:none}

/* Keep logo and menu button in a fixed-height row when navigation expands. */
@media(max-width:650px){
 .wp-site-blocks .mf-site-header .mg-header{position:relative}
 .wp-site-blocks .mf-site-header .mg-header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:77px auto;min-height:77px;align-items:center;column-gap:16px;row-gap:0}
 .wp-site-blocks .mf-site-header .mg-header-inner>a:not(.mg-header-cta){grid-column:1;grid-row:1;justify-self:start}
 .wp-site-blocks .mf-site-header .mg-menu{grid-column:2;grid-row:1;justify-self:end;margin:0}
 .wp-site-blocks .mf-site-header .mg-nav{position:absolute;top:100%;left:0;grid-column:auto;grid-row:auto;min-width:0;width:100%;margin:0;padding:10px 18px 18px;background:#fff;border-bottom:1px solid #e4e4e4;box-shadow:0 8px 14px rgb(0 0 0 / .06)}
}

/* Matching text links below the home-page offer and project sections. */
.wp-site-blocks .mf-home #mg-offer .mg-offer-action,
.wp-site-blocks .mf-home #mg-projects .mg-projects-more a{display:inline-flex;align-items:center;justify-content:flex-start;gap:20px;min-height:44px;padding:0;background:transparent;border:0;border-radius:0;color:#111;font-size:12px;font-weight:500;line-height:1.5;text-decoration:underline;text-underline-offset:5px;white-space:normal}
.wp-site-blocks .mf-home #mg-offer .mg-offer-action>span,
.wp-site-blocks .mf-home #mg-projects .mg-projects-more a>span{font-size:inherit;font-weight:inherit;line-height:inherit}

/* Home contact invitation: secondary heading and plain phone/email links. */
.wp-site-blocks .mf-home .mg-contact h2{font-size:clamp(28px,2.5vw,34px);font-weight:500;line-height:1.2;letter-spacing:-.025em}
.wp-site-blocks .mf-home .mg-contact-data a[href^="tel:"] .mg-profile-mark,
.wp-site-blocks .mf-home .mg-contact-data a[href^="mailto:"] .mg-profile-mark{display:none}
