/* Fourth brief, 2026-10-05: only the explicitly named sections. */
@media(min-width:1101px){
 body#btm .btm-corporate-home :is(#capabilities,.btm-brand-section)>.section-top{grid-template-columns:minmax(130px,.42fr) minmax(0,1.6fr) minmax(340px,1fr);gap:28px}
 body#btm .btm-corporate-home #capabilities>.section-top>h2{margin-top:40px}
 body#btm .btm-corporate-home .btm-brand-section>.section-top>h2{white-space:nowrap;font-size:clamp(40px,3.65vw,64px)}
 body#btm .btm-corporate-home .btm-brand-section>.section-top>h2>br{display:none}
 body#btm .btm-corporate-home .btm-brand-section>.section-top>h2>.red-underline{display:inline;margin-left:.15em}
}
body#btm .btm-corporate-home :is(.third-catalogue-note,.third-brands-note){max-width:none;width:100%}
body#btm .btm-corporate-home #process .b-step-list>article{clip-path:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px)}
body#btm .btm-corporate-home>.btm-faq{padding-bottom:var(--fourth-faq-bottom,45px)}
body#btm .btm-corporate-home>.btm-faq+.btm-inquiry{margin-top:var(--fourth-faq-next,40px)}
/* Casting landing: removing the hero object leaves the photograph visible. */
body#btm.iron-page .industrial-hero{row-gap:24px;padding-top:32px}
body#btm.iron-page .industrial-hero:before{background:linear-gradient(90deg,#172222e8 0%,#172222a6 42%,#17222238 90%),url(iron-detail.webp) center/cover no-repeat}
body#btm.iron-page .industrial-hero>.hero-footer{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(0,1fr);column-gap:44px;padding:22px 0}
body#btm.iron-page .industrial-hero>.hero-footer>ul{grid-column:2;margin:0;padding:0 32px 0 0;justify-content:flex-start;gap:12px 20px;flex-wrap:wrap}
body#btm.iron-page .industrial-hero>.hero-footer>ul>li:first-child{padding-left:0;border-left:0}
body#btm.iron-page .industrial-hero>.hero-footer>a{position:absolute;right:0;top:50%;transform:translateY(-50%)}
body#btm.iron-page #production .production-copy>h2{line-height:1.12;margin-bottom:0}
@media(min-width:901px){
 body#btm.iron-page #production .production-copy>h2{white-space:nowrap}
 body#btm.iron-page #production .production-copy>h2>br{display:none}
 body#btm.iron-page #production .production-copy>h2>em{display:inline;margin-left:.2em}
 body#btm.iron-page #production{padding-top:66px;padding-bottom:66px}
}
/* ABZ/BRU: reference photo, hero carousel removed in template. */
body#btm.parts-page .industrial-hero:before{background:linear-gradient(90deg,#1722224d 0%,#17222226 42%,#1722220d 85%),url(zapchasti-abz-bru.webp) center/cover no-repeat}
body#btm.parts-page #estimate>.estimate-grid>div:first-child:before{inset:0;background-position:center;background-size:100% 100%}
/* Machining: exactly two existing notes and the price note. */
body#btm .btm-machining-page :is(#mach-operations,#mach-quality)>.mach-section-head>p,
body#btm .btm-machining-page .fourth-cost-note{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:polygon(18px 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0 18px)}
body#btm .btm-machining-page :is(#mach-operations,#mach-quality)>.mach-section-head>p:before,
body#btm .btm-machining-page .fourth-cost-note: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-cost>.fourth-cost-heading{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:40px;max-width:none;align-items:start}
body#btm .btm-machining-page .fourth-cost-heading .btm-btn{margin-top:8px}
body#btm .btm-machining-page .fourth-cost-note{justify-self:end;align-self:center;max-width:430px}
body#btm .btm-machining-page .mach-cost>ol>li>span{position:static;inset:auto;display:block;flex:0 0 auto;width:auto;height:auto;margin:0 0 24px;font:500 42px/1 var(--head);transform:none}
/* All existing catalogue hero templates; catalog/list/filter/card layouts unchanged. */
body#btm.btm-site :is(.btm-catalogue-page,.btm-chains-page)>.btm-chain-hero,
body#btm.btm-site .btm-machining-page>.mach-hero,
body#btm.btm-site .lp-industrial-hero{width:calc(100vw - var(--fourth-scrollbar,15px));max-width:none;margin-left:calc((100% - calc(100vw - var(--fourth-scrollbar,15px)))/2);margin-right:0;box-sizing:border-box}
body#btm.btm-site :is(.btm-catalogue-page,.btm-chains-page)>.btm-chain-hero,
body#btm.btm-site .lp-industrial-hero{padding-left:var(--pad);padding-right:var(--pad)}
body#btm.btm-site .btm-catalogue-hero[data-fourth-category="68"]{--fourth-background:url(catalogue-68.webp)}
body#btm.btm-site .btm-catalogue-hero[data-fourth-category="63"]{--fourth-background:url(catalogue-63.webp)}
body#btm.btm-site .btm-catalogue-hero[data-fourth-category="114"]{--fourth-background:url(catalogue-114.webp)}
body#btm.btm-site .btm-catalogue-hero[data-fourth-category="115"]{--fourth-background:url(catalogue-115.webp)}
body#btm.btm-site .btm-catalogue-hero[data-fourth-category]:before{background:linear-gradient(90deg,#172222d6 0%,#17222280 48%,#17222228 90%),var(--fourth-background) center/cover no-repeat}
body#btm.btm-site .btm-chains-page>.btm-chain-hero:before{background:linear-gradient(90deg,#172222d6 0%,#17222280 48%,#17222228 90%),url(catalogue-88.webp) center/cover no-repeat}
body#btm.btm-site .lp-industrial-hero:before{background:linear-gradient(90deg,#172222d6 0%,#17222280 48%,#17222228 90%),url(catalogue-108.webp) center/cover no-repeat}
@keyframes btm-fourth-pulse{0%,100%{box-shadow:0 0 0 0 #d7453445}65%{box-shadow:0 0 0 7px #d7453400}}
@media(max-width:1100px){
 body#btm.iron-page .industrial-hero>.hero-footer{column-gap:30px}
 body#btm .btm-corporate-home :is(#capabilities,.btm-brand-section)>.section-top>p{max-width:600px}
}
@media(max-width:900px){
 body#btm.iron-page .third-hero-cta{grid-row:3}
 body#btm.iron-page .industrial-hero>.hero-footer{grid-row:4;grid-template-columns:1fr;gap:20px}
 body#btm.iron-page .industrial-hero>.hero-footer>ul{grid-column:1;padding-right:0}
 body#btm.iron-page .industrial-hero>.hero-footer>a{display:none}
 body#btm .btm-machining-page .mach-cost>.fourth-cost-heading{grid-template-columns:1fr;gap:24px}
 body#btm .btm-machining-page .fourth-cost-note{justify-self:start;max-width:600px}
}
@media(max-width:560px){
 body#btm .btm-machining-page :is(#mach-operations,#mach-quality)>.mach-section-head>p,
 body#btm .btm-machining-page .fourth-cost-note{font-size:16px;padding-right:20px}
}
@media(prefers-reduced-motion:reduce){
 body#btm .btm-machining-page :is(#mach-operations,#mach-quality)>.mach-section-head>p:before,
 body#btm .btm-machining-page .fourth-cost-note:before{animation:none}
}

/* Three catalogue directions requested in the follow-up. */
body#btm.btm-site .btm-catalogue-hero[data-fourth-category="118"]{--fourth-background:url(lopasti-smesitelya.webp)}
body#btm.btm-site .btm-catalogue-hero[data-fourth-category="119"]{--fourth-background:url(bronya-futerovka.webp)}
body#btm.btm-site .btm-catalogue-hero[data-fourth-category="120"]{--fourth-background:url(shneki-segmenty.webp)}
body#btm .btm-machining-page .mach-cost>ol>li{min-width:0}
body#btm .btm-machining-page .mach-cost>ol>li>strong{display:block;max-width:100%;overflow-wrap:anywhere;font-size:clamp(21px,1.65vw,25px)}
/* Match the eight direction tiles to the supplied four-column reference. */
body#btm.btm-site .btm-category-types{grid-template-columns:repeat(4,minmax(0,1fr))}
body#btm.btm-site .btm-category-types .btm-type-label{display:block;font:500 26px/1.15 var(--head);color:#172525}
body#btm.btm-site .btm-category-types .btm-type-description{font:400 14px/1.55 var(--btm-font);color:#566852}
body#btm.btm-site .btm-chain-hero{isolation:isolate}
body#btm.btm-site .btm-chain-hero .btm-chain-hero-copy>.btm-eyebrow{color:#d9e1d6}
body#btm.btm-site .btm-chain-hero .btm-chain-art-tag{background:#172525e8;color:#f3f3e9}
body#btm.btm-site .btm-chain-hero .btm-chain-art-tag>strong{color:#f3f3e9}
@media(max-width:1100px){body#btm.btm-site .btm-category-types{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body#btm.btm-site .btm-category-types .btm-type-label{font-size:22px}}

/* Hero follow-up, 2026-10-05: one responsive height across the existing hero families. */
body#btm{--btm-hero-height:800px}
body#btm :is(.btm-foundry-hero,.industrial-hero,.lp-industrial-hero,.btm-chain-hero,.mach-hero){height:var(--btm-hero-height);min-height:var(--btm-hero-height);box-sizing:border-box}
body#btm.btm-site :is(.btm-catalogue-page,.btm-chains-page)>.btm-chain-hero{display:flex;align-items:center;padding-top:48px;padding-bottom:48px}
body#btm.btm-site .btm-chain-hero>.btm-chain-hero-copy{width:min(800px,70%);min-width:0}
body#btm.btm-site .btm-chain-hero h1{max-width:100%}
body#btm.btm-site .btm-casting-landing .lp-hero-copy{width:min(820px,72%)}
body#btm.btm-site .btm-casting-landing .lp-hero-footer{position:absolute;left:var(--pad);right:var(--pad);bottom:0;width:auto}
body#btm .btm-machining-page>.mach-hero{background:#111c1c;align-items:stretch}
body#btm .btm-machining-page>.mach-hero .mach-hero-copy{align-self:center}
body#btm .btm-machining-page>.mach-hero .mach-hero-visual{height:100%;min-height:0}
body#btm.iron-page .industrial-hero{grid-template-rows:1fr auto auto;padding-top:48px;padding-bottom:0}
body#btm.iron-page .industrial-hero>.hero-copy{align-self:center}
/* The engineering drawing belongs to the entire estimate section, not one column. */
body#btm.parts-page #estimate{position:relative;isolation:isolate;overflow:hidden}
body#btm.parts-page #estimate:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(../third-20261005/engineering.svg) center/cover no-repeat;opacity:.2}
body#btm.parts-page #estimate>.estimate-grid>div:first-child:before{content:none}
@media(max-width:1000px){
 body#btm.btm-site .btm-chain-hero>.btm-chain-hero-copy{width:100%;max-width:800px}
 body#btm.btm-site .btm-casting-landing .lp-hero-copy{width:100%;max-width:760px}
}
@media(max-width:900px){
 body#btm.iron-page .industrial-hero{grid-template-rows:1fr auto auto auto;padding-top:32px;row-gap:22px}
 body#btm .btm-machining-page>.mach-hero{grid-template-rows:1fr 290px}
 body#btm .btm-machining-page>.mach-hero .mach-hero-visual{height:290px;margin-top:0}
 body#btm .btm-machining-page>.mach-hero .mach-hero-copy{padding-top:32px;padding-bottom:20px}
}
@media(max-width:600px){
 body#btm{--btm-hero-height:960px}
 body#btm.btm-site :is(.btm-catalogue-page,.btm-chains-page)>.btm-chain-hero{padding-top:36px;padding-bottom:36px}
 body#btm.btm-site .btm-casting-landing .lp-hero-copy{display:block}
 body#btm.btm-site .btm-casting-landing .lp-hero-footer{margin:0;padding-top:20px;padding-bottom:24px}
 body#btm .btm-machining-page>.mach-hero{grid-template-rows:1fr 320px}
 body#btm .btm-machining-page>.mach-hero .mach-hero-visual{height:320px}
 body#btm.parts-page #estimate:before{background-position:48% center}
}

/* Keep the title and promise together in the first grid row on narrow screens. */
body#btm.iron-page .industrial-hero>.hero-copy{display:block}
