/* Fifth brief, 06.10.2026. Shared hero/CTA rules and explicitly scoped section edits. */
body#btm{--fifth-cut:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px));--fifth-note-cut:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px)}
body#btm .main-nav a,body#btm .main-nav a>span{text-decoration:none;border-bottom:0;box-shadow:none}
body#btm .main-nav a:after{transform:scaleX(0);background:var(--btm-red,#c94132);transition:transform .2s ease}
body#btm .main-nav a:is(:hover,:focus-visible):after{transform:scaleX(1)}
body#btm :is(.btm-btn,.button,.lp-button,.btm-fifth-red-button){border-radius:0;clip-path:var(--fifth-cut)}
body#btm.parts-page #catalogue-preview .btm-type-foot{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding-top:24px}
body#btm.parts-page #catalogue-preview .btm-type-foot>span{flex:1 1 250px;line-height:1.7;white-space:normal}
body#btm.parts-page #catalogue-preview .btm-type-foot>a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:16px 28px;margin:0;flex:0 0 auto;background:var(--btm-red,#c94132);color:#fff;font:600 16px/1.4 var(--btm-font);text-decoration:none;border:0;clip-path:var(--fifth-cut)}
body#btm.parts-page #catalogue-preview .btm-type-foot>a:hover{background:#a92e23}
body#btm.parts-page #catalogue-preview .btm-type-foot>a:after{content:none}
/* Notes in the machining tasks and catalogue headings only. */
body#btm .btm-machining-page :is(#mach-tasks>.mach-section-head,#mach-catalog>.btm-preview-heading)>p{position:relative;padding:24px 26px 24px 48px;max-width:430px;margin:0;background:#e4e8dd;border-left:2px solid var(--btm-red);color:#4c5e53;font:400 17px/1.75 var(--btm-font);clip-path:var(--fifth-note-cut)}
body#btm .btm-machining-page :is(#mach-tasks>.mach-section-head,#mach-catalog>.btm-preview-heading)>p:before{content:"";position:absolute;top:35px;left:24px;width:7px;height:7px;border-radius:50%;background:var(--btm-red);animation:btm-fourth-pulse 2.6s ease-out infinite}
body#btm .btm-machining-page .mach-capacity-table>div{grid-template-columns:40px minmax(0,1fr);column-gap:16px}
body#btm .btm-machining-page .mach-capacity-table>div>span{position:static;display:block;min-width:32px;width:auto;height:auto;overflow:visible;line-height:1.6;transform:none}
body#btm .btm-machining-page .mach-final>div:first-child{position:relative;isolation:isolate;align-self:stretch;overflow:hidden}
body#btm .btm-machining-page .mach-final>div:first-child:before{content:"";position:absolute;inset:0;z-index:-1;background:url(third-20261005/engineering.svg) center/100% 100% no-repeat;opacity:.2;pointer-events:none}
/* The casting request note; contact links and form are outside this card. */
body#btm.iron-page #request .fifth-request-note{background:#182525;color:#fff;clip-path:var(--fifth-note-cut);padding:28px 30px;margin:24px 0}
body#btm.iron-page #request .fifth-request-note>p{margin:0 0 22px;color:#fff;font-size:17px;line-height:1.7}
body#btm.iron-page #request .fifth-request-note .request-checklist{margin:0;padding:0;border:0;background:none}
body#btm.iron-page #request .fifth-request-note .request-checklist :is(span,li){color:#fff}
/* Contact card labels. */
body#btm .btm-contacts-page :is(.btm-contact-board>article>.btm-eyebrow,.btm-requisites-grid>article>span){display:inline-block;align-self:flex-start;width:fit-content;padding:8px 12px;margin-bottom:20px;background:#182525;color:#fff;line-height:1.4;letter-spacing:.06em}
body#btm .btm-contacts-page .btm-contact-main-card>.btm-eyebrow{background:var(--btm-red,#c94132)}
/* A real first viewport, measured below header/breadcrumbs, never a fixed 800/960px panel. */
body#btm :is(.btm-foundry-hero,.industrial-hero,.lp-industrial-hero,.btm-chain-hero,.mach-hero,.btm-info-hero){height:var(--fifth-hero-height,calc(100svh - 170px));min-height:0;max-height:none;box-sizing:border-box;background-image:none}
body#btm :is(.industrial-hero,.lp-industrial-hero):after,
body#btm .btm-foundry-copy>.eyebrow:after,
body#btm .btm-foundry-actions:before,body#btm .btm-foundry-actions:after{content:none}
body#btm :is(.btm-hero-rules,.mach-visual-cross,.mach-visual-line){display:none}
body#btm .btm-foundry-hero{display:flex;align-items:center;padding-top:28px;padding-bottom:96px}
body#btm .btm-foundry-hero .btm-foundry-copy{padding-top:0;padding-bottom:0}
body#btm .btm-foundry-hero .btm-foundry-copy>.eyebrow{padding-bottom:0}
body#btm .btm-foundry-hero h1{font-size:clamp(40px,min(5.6vw,8.5svh),90px);margin:20px 0}
body#btm .btm-foundry-hero .btm-foundry-actions{padding-top:0;padding-bottom:0;margin-top:24px}
body#btm .btm-foundry-hero .btm-foundry-bottom{padding-top:18px;padding-bottom:20px}
body#btm:is(.iron-page,.parts-page) .industrial-hero{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;padding-top:26px;padding-bottom:26px}
body#btm:is(.iron-page,.parts-page) .industrial-hero>.hero-copy{display:block;flex:0 0 auto;width:min(800px,75%);max-width:none;align-self:auto;margin:0;padding:0}
body#btm:is(.iron-page,.parts-page) .industrial-hero h1{font-size:clamp(36px,min(5vw,7.8svh),80px);line-height:1.1;margin:0;max-width:none}
body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-copy>.eyebrow{margin:0 0 18px;color:#fff}
body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-promise{margin:18px 0 0;gap:14px}
body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-promise p{font-size:clamp(28px,min(3.4vw,5.5svh),48px);line-height:1.12}
body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-description{margin:16px 0 0;padding:0;max-width:630px;color:#fff;font-size:17px;line-height:1.65;font-weight:400}
body#btm.iron-page .industrial-hero>.hero-description{margin:0;align-self:auto}
body#btm.iron-page .industrial-hero>.third-hero-cta{margin:0;padding:0;align-self:auto;z-index:2}
body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-actions{margin:18px 0 0;gap:24px;flex-wrap:wrap}
body#btm.iron-page .industrial-hero .hero-actions{margin-top:0}
body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-note{margin:12px 0 0;font-size:14px;line-height:1.5;color:#f0f1ea}
body#btm.iron-page .industrial-hero:before{background:linear-gradient(90deg,#111b1bf5 0%,#111b1bd9 38%,#111b1b60 75%,#111b1b30 100%),url(fourth-20261005/iron-detail.webp) center/cover no-repeat}
body#btm.parts-page .industrial-hero:before{background:linear-gradient(90deg,#111b1bec 0%,#111b1bc7 38%,#111b1b28 90%),url(fourth-20261005/zapchasti-abz-bru.webp) center/cover no-repeat}
body#btm.btm-site :is(.btm-catalogue-page,.btm-chains-page)>.btm-chain-hero{padding-top:28px;padding-bottom:28px}
body#btm.btm-site .btm-chain-hero h1{font-size:clamp(34px,min(4.8vw,7.3svh),76px);line-height:1.12;margin:18px 0}
body#btm.btm-site .btm-chain-hero .btm-chain-hero-copy>p{font-size:17px;line-height:1.65;margin:0;max-width:630px}
body#btm.btm-site .btm-chain-hero .btm-chain-actions{margin-top:24px;gap:24px}
body#btm.btm-site .btm-chain-hero .btm-chain-hero-facts{margin-top:26px;padding-top:20px}
body#btm.btm-site .btm-chain-hero .btm-chain-hero-facts strong{font-size:24px}
body#btm.btm-site .btm-catalogue-hero[data-fourth-category="115"]{--fourth-background:url(/catalog/view/theme/default/btm-assets/fourth-20261005/catalogue-115.webp?v=20261006)}
body#btm.btm-site .btm-casting-landing .lp-industrial-hero{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;padding-top:24px;padding-bottom:120px}
body#btm.btm-site .btm-casting-landing .lp-hero-copy{display:block;width:min(820px,76%)}
body#btm.btm-site .btm-casting-landing .lp-hero-copy>.lp-eyebrow{margin-bottom:14px;color:#fff}
body#btm.btm-site .btm-casting-landing .lp-industrial-hero h1{font-size:clamp(34px,min(4.6vw,7svh),74px);line-height:1.1;margin:0}
body#btm.btm-site .btm-casting-landing .lp-hero-promise{margin:16px 0;gap:14px}
body#btm.btm-site .btm-casting-landing .lp-hero-promise p{font-size:clamp(26px,min(3vw,4.8svh),44px);line-height:1.12}
body#btm.btm-site .btm-casting-landing .lp-hero-description{margin:0;color:#fff;font-size:16px;line-height:1.6}
body#btm.btm-site .btm-casting-landing .lp-hero-actions{margin-top:20px;gap:24px;flex-wrap:wrap}
body#btm.btm-site .btm-casting-landing .lp-hero-note{margin:10px 0 0;line-height:1.5;font-size:14px}
body#btm.btm-site .btm-casting-landing .lp-hero-footer{padding:16px 0;gap:18px;min-height:0}
body#btm .btm-machining-page>.mach-hero{display:grid;grid-template-columns:1.1fr 1fr;grid-template-rows:1fr;overflow:hidden}
body#btm .btm-machining-page>.mach-hero .mach-hero-copy{padding:28px 20px 28px var(--pad);margin:0}
body#btm .btm-machining-page>.mach-hero h1{font-size:clamp(34px,min(4.4vw,7svh),70px);line-height:1.1;margin:18px 0}
body#btm .btm-machining-page>.mach-hero .mach-hero-copy>p{font-size:17px;line-height:1.65}
body#btm .btm-machining-page>.mach-hero .mach-hero-links{margin-top:22px;gap:20px}
body#btm .btm-machining-page>.mach-hero .mach-hero-spec{margin-top:24px;padding-top:18px}
body#btm .btm-machining-page>.mach-hero .mach-hero-visual{height:100%;min-height:0;margin:0}
body#btm .btm-contacts-page .btm-contact-hero{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;overflow:hidden}
body#btm .btm-contacts-page .btm-contact-hero .btm-info-hero-copy{align-self:center;padding:30px}
body#btm .btm-contacts-page .btm-contact-hero h1{font-size:clamp(34px,min(4.6vw,7svh),72px);line-height:1.12}
body#btm .btm-contacts-page .btm-contact-hero figure{height:100%;min-height:0;margin:0}
body#btm .btm-contacts-page .btm-contact-hero figure>img{width:100%;height:100%;object-fit:cover}
@media(max-width:900px){
 body#btm:is(.iron-page,.parts-page) .industrial-hero>.hero-copy,body#btm.btm-site .btm-casting-landing .lp-hero-copy{width:100%}
 body#btm .btm-machining-page>.mach-hero{position:relative;display:flex;align-items:center}
 body#btm .btm-machining-page>.mach-hero .mach-hero-copy{width:100%;padding:28px var(--pad)}
 body#btm .btm-machining-page>.mach-hero .mach-hero-visual{position:absolute;inset:0;width:100%;height:100%;z-index:0}
 body#btm .btm-machining-page>.mach-hero .mach-hero-visual:after{background:linear-gradient(90deg,#111c1cf5 0%,#111c1cd9 52%,#111c1c70 100%)}
 body#btm .btm-machining-page>.mach-hero .mach-visual-label{display:none}
 body#btm .btm-contacts-page .btm-contact-hero{position:relative;display:flex;align-items:center;background:#182525;isolation:isolate}
 body#btm .btm-contacts-page .btm-contact-hero figure{position:absolute;inset:0;z-index:-1;width:100%;opacity:.22}
 body#btm .btm-contacts-page .btm-contact-hero .btm-info-hero-copy{padding:28px;color:#fff}
 body#btm .btm-contacts-page .btm-contact-hero :is(h1,p,.btm-eyebrow){color:#fff}
 body#btm .btm-contacts-page .btm-contact-hero figcaption{display:none}
}
@media(max-width:600px){
 body#btm .btm-foundry-hero{padding-top:22px;padding-bottom:100px}
 body#btm.btm-site .btm-corporate-home .btm-foundry-copy{padding-left:0}
 body#btm .btm-foundry-hero h1{font-size:clamp(34px,8.8vw,50px)}
 body#btm .btm-foundry-hero .btm-foundry-copy>p{font-size:16px;line-height:1.65}
 body#btm .btm-foundry-hero .btm-foundry-actions{gap:20px;margin-top:24px}
 body#btm:is(.iron-page,.parts-page) .industrial-hero{gap:16px;padding-top:22px;padding-bottom:22px}
 body#btm:is(.iron-page,.parts-page) .industrial-hero h1{font-size:clamp(31px,8.4vw,46px)}
 body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-promise p{font-size:28px}
 body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-copy>.eyebrow{margin-bottom:16px}
 body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-description{font-size:16px;line-height:1.6}
 body#btm:is(.iron-page,.parts-page) .industrial-hero .hero-actions{gap:18px}
 body#btm.btm-site .btm-chain-hero h1{font-size:clamp(31px,8.1vw,46px)}
 body#btm.btm-site .btm-chain-hero .btm-chain-hero-copy>p{font-size:16px}
 body#btm.btm-site .btm-chain-hero .btm-chain-actions{gap:20px;flex-wrap:wrap}
 body#btm.btm-site .btm-chain-hero .btm-chain-hero-facts{margin-top:24px;gap:16px}
 body#btm.btm-site .btm-casting-landing .lp-industrial-hero{padding-top:22px;padding-bottom:150px}
 body#btm.btm-site .btm-casting-landing .lp-industrial-hero h1{font-size:clamp(30px,8vw,43px)}
 body#btm.btm-site .btm-casting-landing .lp-hero-promise p{font-size:27px}
 body#btm.btm-site .btm-casting-landing .lp-hero-actions{gap:16px;margin-top:16px}
 body#btm.btm-site .btm-casting-landing .lp-hero-footer{padding:14px 0;gap:12px;font-size:12px}
 body#btm.btm-site .btm-casting-landing .lp-hero-footer ul{gap:8px;font-size:12px}
 body#btm .btm-machining-page>.mach-hero h1{font-size:clamp(31px,8vw,45px)}
 body#btm .btm-machining-page>.mach-hero .mach-hero-copy>p{font-size:16px}
 body#btm .btm-machining-page>.mach-hero .mach-hero-links{flex-wrap:wrap;gap:18px}
 body#btm .btm-machining-page>.mach-hero .mach-hero-spec{font-size:12px;gap:12px;flex-wrap:wrap}
 body#btm .btm-machining-page :is(#mach-tasks>.mach-section-head,#mach-catalog>.btm-preview-heading)>p{font-size:16px;padding-right:20px}
 body#btm.iron-page #request .fifth-request-note{padding:24px}
}
@media(prefers-reduced-motion:reduce){body#btm .btm-machining-page :is(#mach-tasks>.mach-section-head,#mach-catalog>.btm-preview-heading)>p:before{animation:none}}

/* QA adjustments: suppress legacy hero guides and preserve detail strip below the hero. */
body#btm:is(.btm-site,.iron-page,.parts-page) :is(.industrial-hero,.lp-industrial-hero):after{content:none;background:none}
body#btm .btm-machining-page>.mach-hero .mach-hero-spec{border-top:0}
body#btm.btm-site .btm-casting-landing .lp-industrial-hero{padding-top:26px;padding-bottom:26px}
body#btm.btm-site .btm-casting-landing>.fifth-casting-details{position:relative;inset:auto;width:calc(100vw - var(--fourth-scrollbar,15px));max-width:none;margin:0 0 0 calc((100% - calc(100vw - var(--fourth-scrollbar,15px)))/2);padding:22px var(--pad);background:#182525;color:#f0f1ea;box-sizing:border-box;border-top:0;display:flex;justify-content:space-between;gap:24px}
body#btm.btm-site .btm-casting-landing>.fifth-casting-details strong{color:#f0f1ea}
@media(max-width:600px){
 body#btm.btm-site .btm-casting-landing .lp-hero-promise .lp-promise-line:first-child>.lp-promise-next{margin-left:0}
 body#btm.btm-site .btm-casting-landing .lp-hero-promise .lp-promise-line:first-child{gap:8px}
 body#btm.btm-site .btm-casting-landing .lp-hero-promise{margin-top:12px;margin-bottom:12px}
 body#btm.btm-site .btm-casting-landing .lp-industrial-hero{padding-top:20px;padding-bottom:20px}
 body#btm.btm-site .btm-casting-landing>.fifth-casting-details{display:grid;grid-template-columns:1fr;gap:16px;padding:22px var(--pad)}
 body#btm.btm-site .btm-catalogue-main-hero .btm-chain-hero-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px;padding-top:16px}
 body#btm.btm-site .btm-catalogue-main-hero .btm-chain-hero-facts>span{min-width:0;border:0;padding:0;font-size:12px;line-height:1.5}
 body#btm.btm-site .btm-catalogue-main-hero .btm-chain-hero-facts strong{font-size:21px;line-height:1.3;margin-bottom:5px}
}

@media(max-width:600px){
 body#btm.btm-site .btm-catalogue-page>.btm-catalogue-main-hero{padding-top:16px;padding-bottom:16px}
 body#btm.btm-site .btm-catalogue-main-hero .btm-chain-hero-copy>.btm-eyebrow{margin-bottom:4px}
 body#btm.btm-site .btm-catalogue-main-hero h1{margin:10px 0}
 body#btm.btm-site .btm-catalogue-main-hero .btm-chain-actions{gap:12px;margin-top:18px}
 body#btm.btm-site .btm-catalogue-main-hero .btm-chain-hero-facts{margin-top:12px;padding-top:12px}
}

body#btm .btm-contacts-page .btm-contact-board>article.btm-contact-main-card>.btm-eyebrow{background:var(--btm-red,#c94132)}
body#btm.btm-site .btm-info-hero:not(.btm-contact-hero){display:grid;grid-template-columns:1fr 1fr;align-items:stretch;overflow:hidden}
body#btm.btm-site .btm-info-hero:not(.btm-contact-hero) .btm-info-hero-copy{align-self:center;padding:30px}
body#btm.btm-site .btm-info-hero:not(.btm-contact-hero) h1{font-size:clamp(34px,min(4.6vw,7svh),72px);line-height:1.12}
body#btm.btm-site .btm-info-hero:not(.btm-contact-hero) figure{height:100%;min-height:0;margin:0}
body#btm.btm-site .btm-info-hero:not(.btm-contact-hero) figure>img{width:100%;height:100%;object-fit:cover}
@media(max-width:900px){
 body#btm.btm-site .btm-info-hero:not(.btm-contact-hero){position:relative;display:flex;align-items:center;background:#182525;isolation:isolate}
 body#btm.btm-site .btm-info-hero:not(.btm-contact-hero) figure{position:absolute;inset:0;z-index:-1;width:100%;opacity:.22}
 body#btm.btm-site .btm-info-hero:not(.btm-contact-hero) .btm-info-hero-copy{padding:28px;color:#fff}
 body#btm.btm-site .btm-info-hero:not(.btm-contact-hero) :is(h1,p,.btm-eyebrow){color:#fff}
 body#btm.btm-site .btm-info-hero:not(.btm-contact-hero) figcaption{display:none}
}
