/* Shared mobile and tablet adjustments. Desktop composition stays unchanged. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
#tom-precision img,#tom-precision video,#tom-precision iframe{max-width:100%}
#tom-precision .tom-page-content :is(.wp-block-column,.wp-block-group),#tom-precision :is(.tom-price-sidebar,.tom-price-panels,.tom-request,.tp-fields>label){min-width:0}
#tom-precision :is(h1,h2,h3,p,dt,dd,label,figcaption){overflow-wrap:break-word}
#tom-precision :is(.tom-gallery-carousel,.tom-gallery-filters,.tom-price-tabs,.wp-block-table){overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
#tom-precision .tom-table-hint{display:none;font-size:14px;line-height:1.5;color:#4f647a;margin:0 0 10px}
#tom-precision .tom-table-hint.is-needed{display:block}
#tom-precision .tom-gallery-viewer{padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}
#tom-precision .tp-carousel-grid figure[hidden]{display:none!important}
@media(max-width:1024px){
 #tom-precision :is(.tp-quick a,.tom-site-header nav>a,.tm-stage nav>a,.tom-nav-services summary,.tom-nav-dropdown a){min-height:44px;display:inline-flex;align-items:center}
 #tom-precision .tom-nav-services summary{white-space:normal}
 #tom-precision .tom-nav-dropdown a{display:flex;font-size:16px;line-height:1.45}
 #tom-precision .tom-site-header nav:has(.tom-nav-services){display:flex;flex-wrap:wrap;align-items:center}
 #tom-precision :is(.tom-gallery-controls button,.tp-carousel-controls button,.tom-viewer-stage button,.tom-viewer-header button){min-width:44px;min-height:44px}
 #tom-precision :is(.tom-gallery-filters button,.tom-price-tab,.tom-price-service-switch button,.tom-equipment-toggle){min-height:44px}
 #tom-precision .tom-request :is(input:not([type=checkbox]):not([type=file]):not([type=hidden]),textarea){font-size:16px;min-height:44px}
 #tom-precision .tom-request input::placeholder,#tom-precision .tom-request textarea::placeholder{font-size:16px}
 #tom-precision .tom-request label{font-size:14px;line-height:1.5;text-transform:none;letter-spacing:0}
 #tom-precision .tom-request .tp-consent{font-size:14px;line-height:1.6}
 #tom-precision .tom-request [type=checkbox]{flex:0 0 22px;width:22px;height:22px;margin-top:2px}
 #tom-precision .tom-request .tp-upload{max-width:100%;flex-wrap:wrap;gap:4px 12px;font-size:15px;min-height:44px}
 #tom-precision .tom-request .tom-file-help{flex-basis:100%;font-size:13px;margin-top:2px}
 #tom-precision .tp-status{font-size:15px;line-height:1.6}
 #tom-precision .tom-request .tp-submit{min-height:48px;white-space:normal}
 #tom-precision :is(.tom-contact-info a,.tp-footer-email){overflow-wrap:anywhere}
}
@media(max-width:900px){
 #tom-precision .tm-heading{width:min(100%,720px);max-width:100%;margin:24px 0}
 #tom-precision .tm-main{min-width:0}
 #tom-precision .tom-compact-quote{grid-template-columns:1fr;gap:22px}
 #tom-precision .tom-compact-quote .tp-quote-copy p{max-width:none}
 #tom-precision .tp-contacts-grid{grid-template-columns:1fr;gap:26px}
 #tom-precision .tp-contacts-grid>div:first-child{min-height:0}
 #tom-precision .tp-route-button{margin-top:18px}
 #tom-precision .tp-service-image-wrap{width:100%;height:auto;aspect-ratio:16/10}
 #tom-precision .tp-service-video{width:100%;height:100%;aspect-ratio:16/10}
 #tom-precision .tp-carousel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 #tom-precision .tp-carousel-grid img{height:auto;aspect-ratio:4/3}
 #tom-precision .tp-carousel-grid figcaption{font-size:15px;line-height:1.5}
 #tom-precision .tom-gallery-carousel figure{flex-basis:calc((100% - 20px)/2)}
}
@media(max-width:760px){
 #tom-precision .tom-price-browser{grid-template-columns:minmax(0,1fr);gap:18px}
 #tom-precision .tom-price-tabs{display:flex;overflow-x:auto;gap:8px;padding:2px 2px 10px}
 #tom-precision .tom-price-tab,#tom-precision .tom-price-tab:last-child{border:1px solid #ccd5df;border-radius:8px;flex-shrink:0;padding:11px 14px;font-size:16px;max-width:220px;min-height:44px}
 #tom-precision .tom-price-tab svg{display:none}
 #tom-precision .tom-price-tab[aria-selected=true]{border-color:#2459e8}
 #tom-precision .tom-price-download{width:100%;justify-content:center;min-height:46px}
 #tom-precision .tom-site-header nav,#tom-precision .tm-stage nav{font-size:16px;line-height:1.4;gap:4px 18px}
 #tom-precision .tom-equipment-menu{max-height:65svh}
 #tom-precision .tom-equipment-menu nav a{font-size:16px;min-height:44px}
 #tom-precision .tom-equipment-machine{scroll-margin-top:80px}
 #tom-precision .tom-material-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 #tom-precision .tp-quick,#tom-precision .tom-site-header .tp-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;font-size:13px;padding:8px 16px;line-height:1.5}
 #tom-precision .tp-quick>span,#tom-precision .tom-site-header .tp-quick>span{display:block!important;grid-column:1/-1;font-size:13px;text-align:left;line-height:1.5;margin:0 0 4px}
 #tom-precision .tp-quick a:last-child{grid-column:1/-1}
 #tom-precision .tp-quick a{white-space:nowrap;min-width:0}
 #tom-precision .tom-site-header header,#tom-precision .tm-stage header{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 16px}
 #tom-precision .tom-site-header .tp-logo{width:140px;max-width:100%}
 #tom-precision .tp-header-right,#tom-precision .tom-site-header .tp-header-right{position:static;width:100%;min-width:0}
 #tom-precision .tm-header-link,#tom-precision .tom-site-header .tm-header-link{width:100%;max-width:none;min-height:46px;font-size:16px;line-height:1.4;padding:11px 14px;white-space:normal;word-break:normal;text-align:center}
 #tom-precision .tm-header-link svg{flex:0 0 20px;width:20px;height:20px}
 #tom-precision .tom-site-header nav,#tom-precision .tm-stage nav{padding:6px 16px;font-size:16px;gap:2px 16px}
 #tom-precision .tom-nav-dropdown{left:0;width:calc(100vw - 32px);max-width:calc(100vw - 32px);max-height:65svh;overflow-y:auto}
 #tom-precision .tom-breadcrumb{font-size:13px;line-height:1.6;gap:6px 9px}
 #tom-precision .tom-service-hero,#tom-precision .tom-utility-hero{padding:22px 16px 28px}
 #tom-precision .tom-service-hero h1,.page-id-1131 #tom-precision .tom-service-hero h1,.page-id-1331 #tom-precision .tom-service-hero h1,#tom-precision .tom-utility-hero h1{font-size:clamp(28px,7.8vw,38px);line-height:1.16;letter-spacing:-.6px;overflow-wrap:anywhere;hyphens:auto}
 #tom-precision .tom-hero-lead,#tom-precision .tom-utility-hero .tom-hero-lead{font-size:16px;line-height:1.7}
 #tom-precision .tom-hero-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 #tom-precision .tom-hero-actions :is(.tp-cta,.tp-text-link){width:100%;min-height:48px;font-size:16px;white-space:normal;text-align:center}
 #tom-precision .tom-service-specs{padding:22px 16px;grid-template-columns:1fr;gap:16px}
 #tom-precision .tom-service-specs>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center;border-bottom:1px solid #d5dee7;padding-bottom:14px}
 #tom-precision .tom-service-specs>div:last-child{border-bottom:0;padding-bottom:0}
 #tom-precision .tom-service-specs strong{min-width:0;max-width:none;font-size:19px;line-height:1.4;letter-spacing:0}
 #tom-precision .tom-service-specs span{font-size:14px;line-height:1.5}
 #tom-precision .tom-page-content{font-size:16px;line-height:1.75}
 #tom-precision .tom-page-content>.wp-block-group{padding:30px 16px}
 #tom-precision .tom-page-content h2{font-size:clamp(27px,7.4vw,34px);line-height:1.2;letter-spacing:-.6px;overflow-wrap:anywhere;hyphens:auto}
 #tom-precision .tom-intro-columns{grid-template-columns:minmax(0,1fr);gap:24px}
 #tom-precision .tom-material-grid{grid-template-columns:minmax(0,1fr)}
 #tom-precision .tom-tube-types-inline .tom-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #tom-precision .tom-tube-types-inline .tom-material :is(h3,p){font-size:14px;line-height:1.5}
 #tom-precision .tom-finishing-grid,#tom-precision .tom-contract-cap-grid{grid-template-columns:minmax(0,1fr)}
 #tom-precision .tom-compact-quote{padding:28px 16px;grid-template-columns:minmax(0,1fr)}
 #tom-precision .tom-request .tp-fields,#tom-precision .tp-fields{grid-template-columns:minmax(0,1fr);gap:18px}
 #tom-precision .tp-quote,#tom-precision footer,#tom-precision #tp-contacts{padding-left:16px;padding-right:16px}
 #tom-precision .tp-footer-map{grid-template-columns:minmax(0,1fr);gap:28px}
 #tom-precision .tp-footer-map>div:last-child{grid-column:auto}
 #tom-precision .tp-footer-map nav a{font-size:16px;min-height:44px;display:flex;align-items:center;white-space:normal}
 #tom-precision .tom-gallery-carousel figure{flex-basis:100%}
 #tom-precision .tom-gallery-carousel img{height:auto;aspect-ratio:4/3}
 #tom-precision .tp-carousel-grid{grid-template-columns:minmax(0,1fr)}
 #tom-precision .tp-carousel-controls{flex-wrap:wrap;gap:12px}
 #tom-precision .tp-carousel-controls p{font-size:15px}
 #tom-precision .tom-gallery-filters button{font-size:15px;min-height:44px}
 #tom-precision .tom-gallery-viewer .tom-viewer-stage{grid-template-columns:44px minmax(0,1fr) 44px;gap:4px}
 #tom-precision .tom-gallery-viewer .tom-viewer-stage button{width:44px;height:44px}
 #tom-precision .tom-gallery-viewer .tom-viewer-caption{font-size:14px}
 #tom-precision .tom-contact-map,#tom-precision .tom-contact-map iframe,#tom-precision .tp-map,#tom-precision .tp-map iframe{min-height:320px;height:380px}
 #tom-precision .tom-equipment-specs>div{grid-template-columns:minmax(0,1fr);gap:4px}
 #tom-precision .tom-equipment-details summary{font-size:16px;min-height:44px}
}
@media(max-width:359px){
 #tom-precision .tp-quick,#tom-precision .tom-site-header .tp-quick{grid-template-columns:minmax(0,1fr);font-size:14px}
 #tom-precision .tp-quick a{grid-column:1/-1}
 #tom-precision .tom-other-services nav{grid-template-columns:minmax(0,1fr)}
 #tom-precision .tom-other-services nav>a:last-child{display:block;grid-template-columns:none}
 #tom-precision .tom-catalog-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}#tom-precision *{scroll-behavior:auto!important}}

@media(max-width:600px){
 #tom-precision .tp-field-full,#tom-precision .tom-request .tom-email-field,#tom-precision .tom-request .tom-task-field{grid-column:1/-1}
 #tom-precision .tp-services-layout,#tom-precision .tp-cycle-grid,#tom-precision .tp-quote{grid-template-columns:minmax(0,1fr)}
 #tom-precision .tp-adv-grid{grid-template-columns:minmax(0,1fr)}
 #tom-precision .tp-adv-grid article,#tom-precision .tp-adv-wide,#tom-precision .tp-adv-grid article:last-child{grid-column:auto;min-width:0}
 #tom-precision .tp-carousel-grid figcaption{overflow-wrap:anywhere}
 #tom-precision .tm-copy .tp-cta{white-space:normal;max-width:100%;font-size:17px}
 #tom-precision .tp-service-select{font-size:clamp(19px,5.4vw,23px);line-height:1.4;letter-spacing:-.3px;min-height:56px}
 #tom-precision .tp-service-description{font-size:16px;line-height:1.7}
 #tom-precision .tp-micro{overflow-wrap:anywhere}
 #tom-precision .tom-contact-requisites>div{grid-template-columns:minmax(0,1fr)}
}
