/*
Theme Name: FORMASTERS 2026
Version: 0.6.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: formasters
*/
*{box-sizing:border-box}body{margin:0;color:#101720;background:#fff;font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}a:focus-visible{outline:3px solid #0067b8;outline-offset:3px}img{max-width:100%;height:auto}h1,h2,p{margin:0}.fm-wrap{width:min(92%,1450px);margin:auto}.fm-header{background:linear-gradient(110deg,#f8f9fb,#e5ebf3)}.fm-head{display:flex;align-items:center;gap:3%;min-height:77px}.fm-logo{display:block;flex:0 0 19%}.fm-logo img{display:block;width:100%}.fm-head nav{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;font-weight:800;font-size:clamp(11px,1.22vw,19px)}.fm-head nav a{white-space:nowrap;padding:12px 4px}.home .fm-home-link{border-block:4px solid #e00000;color:#d00000}.fm-head nav .fm-contact,.fm-btn{background:linear-gradient(#f00000,#bd0000);color:white;border-radius:30px;padding:14px 24px;font-weight:800;display:inline-block;text-align:center}.fm-hero{position:relative;overflow:hidden;background:linear-gradient(120deg,#f2f5fa,#aab9ca);min-height:385px}.fm-hero-image{position:absolute;inset:0 0 0 31%;background-size:cover;background-position:center}.fm-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#eef2f8 0%,#eef2f8 23%,#eef2f8c9 33%,transparent 51%);pointer-events:none}.fm-hero-copy{position:relative;z-index:1;padding:42px 0 70px}.fm-hero h1{font-size:clamp(46px,5.1vw,80px);font-weight:900;line-height:.98;letter-spacing:-2px}.fm-hero h1 span,.fm-process h2 span{color:#e00000}.fm-hero h2{font-size:clamp(19px,2vw,31px);margin:10px 0}.fm-hero p{font-size:clamp(16px,1.35vw,21px);line-height:1.3}.fm-buttons{display:flex;gap:20px;margin-top:20px;flex-wrap:wrap}.fm-outline{border:1px solid #e00000;background:#ffffffc9;color:#d00000}.fm-cards-area{background:#dce4ef;padding-bottom:18px}.fm-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;position:relative;margin-top:-30px;z-index:2}.fm-card{display:flex;align-items:center;gap:14px;background:linear-gradient(#fff,#f0f3f8);border-radius:20px;padding:15px;box-shadow:0 7px 12px #17283e30;font-size:14px;min-height:110px}.fm-card strong{font-size:clamp(15px,1.3vw,20px);display:inline-block;margin-bottom:4px}.fm-card b{margin-left:auto;font-size:32px;color:#687483}.fm-circle{display:grid;place-items:center;flex:none;width:76px;height:76px;border-radius:50%;background:linear-gradient(#ff0909,#b90000);color:#fff}.fm-circle svg{width:53%;height:53%}.fm-benefits{background:#202a35;color:white;border-bottom:12px solid #e00000;padding:17px 0}.fm-benefit-grid{display:grid;grid-template-columns:repeat(4,1fr)}.fm-benefit-grid>div{display:flex;gap:16px;align-items:center;justify-content:center;border-right:1px solid #aeb8c4;font-size:14px;padding:0 12px}.fm-benefit-grid>div:last-child{border:0}.fm-benefit-grid svg{width:44px;height:44px;flex:none}.fm-benefit-grid strong{font-size:16px;line-height:1.7}.fm-process{display:grid;grid-template-columns:1fr 1fr;gap:35px;padding:20px 0 24px}.fm-process h2{font-size:clamp(21px,1.9vw,29px);font-weight:900;margin-bottom:8px}.fm-process-intro{display:grid;grid-template-columns: 42% 58%;align-items:center}.fm-process-intro p{line-height:1.3;margin-bottom:12px}.fm-process-intro img{width:100%;display:block}.fm-process .fm-btn{font-size:13px;padding:10px 16px}.fm-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;text-align:center}.fm-steps .fm-circle{margin:0 auto 9px;width:66px;height:66px}.fm-steps strong{font-size:14px;display:block}.fm-steps p{font-size:13px;margin-top:5px;line-height:1.25}.fm-footer{background:#202a35;color:white;padding:16px 0}.fm-foot{display:flex;align-items:center;gap:24px;font-size:12px}.fm-foot-logo{flex-basis:15%;background:transparent;padding:0}.fm-foot address{font-style:normal;flex:1}.fm-foot nav{display:flex;flex-wrap:wrap;gap:12px}.fm-foot small{white-space:nowrap}.wp-site-blocks{padding:0!important}.wp-site-blocks>*{margin-block:0!important}@media(max-width:1050px){.fm-head{flex-wrap:wrap;padding:10px 0;gap:10px}.fm-head .fm-logo{flex-basis:200px}.fm-head nav{flex-basis:100%;flex-wrap:wrap}.fm-cards{grid-template-columns:repeat(2,1fr)}.fm-benefit-grid{grid-template-columns:repeat(2,1fr);gap:15px}.fm-benefit-grid>div:nth-child(2){border:0}.fm-process{grid-template-columns:1fr}.fm-foot{flex-wrap:wrap}}@media(max-width:600px){.fm-hero-image{inset:0;background-position:65% center;opacity:.38}.fm-hero:after{background:linear-gradient(90deg,#eef2f8e8,#eef2f850)}.fm-hero-copy{padding:30px 0 60px}.fm-hero h1{font-size:44px}.fm-cards{grid-template-columns:1fr}.fm-benefit-grid{grid-template-columns:1fr}.fm-benefit-grid>div{border:0;justify-content:flex-start}.fm-process-intro{grid-template-columns:1fr}.fm-steps{grid-template-columns:repeat(2,1fr)}.fm-foot-logo{flex-basis:150px}.fm-head nav{justify-content:flex-start}.fm-head nav a{padding:8px 4px}.fm-head nav .fm-contact{padding:8px 14px}}
.fm-red,.fm-line span,.fm-placeholder h1 span{color:#e00000}.fm-subhero{background-color:#142838;background-position:right center;background-size:cover;color:white;padding:38px 0;min-height:210px;display:flex;align-items:center}.fm-subhero h1{font-size:clamp(34px,5vw,68px);font-weight:900}.fm-subhero h1:before{content:'/';color:#f00000;margin-right:18px}.fm-subhero p{font-size:clamp(18px,2vw,27px);font-style:italic;margin-top:8px}.fm-section{padding:30px 0 42px}.fm-about{display:grid;grid-template-columns:1.15fr 1fr;gap:40px;padding:26px 0}.fm-about p{margin-bottom:12px;line-height:1.45}.fm-about aside{display:grid;gap:16px}.fm-stat{background:linear-gradient(110deg,#f3f4f6,#e2e5e9);padding:24px 30px;border-radius:10px;border-left:5px solid #e00000;display:flex;flex-direction:column;justify-content:center}.fm-stat strong{font-size:clamp(19px,2vw,30px);color:#e00000}.fm-stat p{margin:5px 0 0}.fm-line{display:flex;align-items:center;justify-content:center;gap:12px;font-size:clamp(22px,3vw,38px);text-align:center;margin:10px 0 24px}.fm-line:before,.fm-line:after{content:'';height:2px;background:#e00000;flex:1}.fm-timeline{list-style:none;padding:0 0 0 22px;margin:0;border-left:3px solid #9ba4ad}.fm-timeline li{position:relative;display:grid;grid-template-columns:100px 1fr;gap:18px;align-items:center;margin-bottom:12px}.fm-timeline li:before{content:'';position:absolute;left:-32px;width:16px;height:16px;background:white;border:3px solid red;border-radius:50%}.fm-timeline li>b{background:#e00000;color:white;text-align:center;padding:8px;font-size:24px}.fm-timeline article{display:grid;grid-template-columns:26% 1fr;align-items:center;gap:22px;border:1px solid #c6cbd1;border-radius:12px;background:linear-gradient(110deg,#fff,#f1f2f4);padding:14px;min-height:140px}.fm-machinepic{display:flex;justify-content:center;align-items:center;gap:4px}.fm-machinepic img{max-height:120px;max-width:100%;object-fit:contain;min-width:0;flex:0 1 auto}.fm-machinepic img:not(:only-child){max-width:49%}.fm-section h3{margin:0 0 7px;font-size:clamp(18px,1.8vw,25px)}.fm-section p{line-height:1.45}.fm-tech-title{border-bottom:3px solid #e00000;margin:30px 0 14px;padding:10px 0;font-size:28px}.fm-tech{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:35px;padding:18px 24px;background:#f7f8fa;margin-bottom:12px;border-radius:12px}.fm-tech:nth-of-type(even)>div:first-child{order:2}.fm-tech img{display:block;max-height:240px;object-fit:contain;margin:auto}.fm-placeholder{min-height:65vh;padding:75px 5% 40px;text-align:center;background:linear-gradient(120deg,#e1e8f0,#fff 50%,#e1e8f0)}.fm-placeholder h1{font-size:clamp(36px,6vw,90px);font-weight:900;line-height:1.1}.fm-placeholder h1:before,.fm-placeholder>p:after{content:'';display:block;width:24%;height:6px;background:#e00000;margin:0 auto 30px}.fm-placeholder>p{font-size:clamp(20px,3vw,40px);font-style:italic;margin-top:20px}.fm-placeholder>p:after{margin:30px auto}.fm-joke{display:flex;align-items:center;justify-content:center;gap:20px}.fm-joke img{width:min(230px,35%)}.fm-joke blockquote{background:white;border:3px solid #17212b;border-radius:40px;padding:22px;font-size:clamp(16px,2vw,28px);font-weight:bold;max-width:420px;margin:0}.fm-contacts,.fm-gallery,.fm-videos{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.fm-contacts article{padding:22px 15px;border:1px solid #d5d9de;border-radius:12px;text-align:center;overflow-wrap:anywhere}.fm-contacts a{display:block;margin-top:10px;color:#c00}.fm-avatar{display:grid;place-items:center;width:85px;height:85px;border-radius:50%;background:#e5e9ef;color:#a00000;font-size:26px;font-weight:bold;margin:0 auto 15px}.fm-info,.fm-videos{grid-template-columns:repeat(3,1fr);margin-top:24px}.fm-map{background:#e9edf2;padding:30px;text-align:center;margin-top:25px;border-radius:12px}.fm-map h2{margin-bottom:15px}.fm-gallery a{display:block;border-radius:12px;overflow:hidden;border-bottom:4px solid #e00000}.fm-gallery img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.fm-videos video{width:100%;aspect-ratio:16/9;background:#202a35}.fm-gallery+.fm-line{margin-top:36px}@media(max-width:800px){.fm-about,.fm-tech{grid-template-columns:1fr}.fm-tech:nth-of-type(even)>div:first-child{order:0}.fm-contacts,.fm-gallery{grid-template-columns:repeat(2,1fr)}.fm-timeline li{grid-template-columns:65px 1fr;gap:10px}.fm-timeline article{grid-template-columns:1fr;gap:8px}.fm-timeline li>b{font-size:18px}.fm-videos{grid-template-columns:1fr}}@media(max-width:480px){.fm-contacts{grid-template-columns:1fr}.fm-line{display:block}.fm-timeline{padding-left:12px}.fm-timeline li:before{left:-22px}.fm-timeline li{grid-template-columns:55px 1fr}.fm-timeline article{padding:10px}.fm-joke{flex-direction:column}.fm-subhero{min-height:150px}}
.page-o-nas .fm-link-o-nas{border-block:4px solid #e00000;color:#d00000}
.page-obrabeni .fm-link-obrabeni{border-block:4px solid #e00000;color:#d00000}
.page-engineering .fm-link-engineering{border-block:4px solid #e00000;color:#d00000}
.page-nase-technologie .fm-link-nase-technologie{border-block:4px solid #e00000;color:#d00000}
.page-realizace .fm-link-realizace{border-block:4px solid #e00000;color:#d00000}
.page-kontakt .fm-link-kontakt{border-block:4px solid #e00000;color:#d00000}

/* v0.4: targeted page refinements */
.fm-tech{min-height:276px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.fm-tech>div:first-child{height:240px;display:grid;place-items:center;min-width:0}
.fm-tech img{width:100%;height:240px;max-width:100%;object-fit:contain}
.fm-stat{position:relative;isolation:isolate;display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:22px;border:0;background:none;padding:22px 30px;min-height:110px}
.fm-stat:before{content:'';position:absolute;inset:0 12px;background:linear-gradient(110deg,#f3f4f6,#dedfe1);transform:skewX(-13deg);border-radius:8px;z-index:-1}
.fm-stat-icon{display:grid;place-items:center;border-right:2px solid #e00000;color:#e00000;height:64px;padding-right:18px}.fm-stat-icon svg{width:55px;height:55px}.fm-stat strong{font-size:clamp(17px,1.8vw,28px)}
.fm-contact-hero,.fm-real-hero{position:relative;background-size:auto 100%;background-repeat:no-repeat;background-position:right center;display:flex;align-items:center;min-height:190px;padding:24px 0;overflow:hidden}
.fm-contact-hero{background-color:#091c27;color:white}.fm-contact-hero:before{content:'';position:absolute;left:1%;top:-20%;height:140%;width:30px;background:#ed0000;transform:skewX(-24deg)}.fm-contact-hero .fm-wrap{padding-left:4%}.fm-contact-hero h1,.fm-real-hero h1{font-size:clamp(38px,5vw,72px);font-weight:900}.fm-contact-hero p,.fm-real-hero p{font-size:clamp(18px,2.1vw,30px);margin-top:5px}
.fm-contact-page>.fm-section{width:min(97%,1510px)}.fm-contact-page .fm-contacts{gap:14px}.fm-contact-page .fm-contacts article{display:grid;grid-template-columns:38% minmax(0,1fr);gap:12px;align-items:center;padding:8px;text-align:left;background:linear-gradient(#fafafa,#f0f0f2);box-shadow:0 3px 9px #17283e25;border:1px solid #e9e9eb}.fm-portrait{width:100%;height:100%;max-height:180px;object-fit:cover;border-radius:7px}.fm-contact-page .fm-contacts h3{font-size:clamp(16px,1.55vw,24px);margin-bottom:4px}.fm-contact-page .fm-contacts p{font-size:clamp(13px,1.2vw,18px)}.fm-contact-page .fm-contacts a{display:flex;align-items:center;gap:5px;color:#101720;font-size:clamp(12px,1.04vw,16px);font-weight:600;line-height:1.2}.fm-contact-page .fm-contacts svg{color:#e00000;width:20px;height:20px;flex:none}.fm-portrait-note{font-size:12px;color:#59616b;margin:8px 0 0}.fm-contact-info{display:grid;grid-template-columns:1fr 1.2fr 1fr;margin:30px 0;gap:0}.fm-contact-info article{display:flex;justify-content:center;gap:18px;padding:0 20px;border-right:2px solid #e00000}.fm-contact-info article:last-child{border:0}.fm-contact-info svg{width:42px;height:42px;flex:none;color:#e00000}.fm-contact-info p{font-size:clamp(14px,1.3vw,20px)}.fm-route{position:relative;min-height:300px;display:flex;align-items:center;background-color:#e6e9ed;background-size:auto 100%;background-position:right center;background-repeat:no-repeat;border-radius:12px;overflow:hidden;padding:24px}.fm-route-panel{width:36%;min-width:300px;background:linear-gradient(120deg,#606267,#22272b);border-left:10px solid #e00000;border-radius:8px;color:white;padding:24px 30px}.fm-route-panel h2{margin-bottom:14px;font-size:clamp(20px,2vw,28px)}.fm-route-panel p{margin-bottom:16px}.fm-route-panel .fm-btn{border-radius:8px}.fm-map-note{position:absolute;right:8px;bottom:5px;background:#fffE;padding:4px 8px;font-size:11px}
.fm-real-page{background:linear-gradient(125deg,#dce5ef,#f8fafc 48%,#e2e9f2)}.fm-real-hero{background-color:#e7edf5}.fm-real-hero h1:after{content:'';display:block;width:145px;height:5px;background:#e00000;border-radius:3px;margin-top:3px}.fm-real-hero p{font-style:italic}.fm-real-page .fm-section{padding:22px 0 28px}.fm-filters{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-bottom:26px}.fm-filters button{flex:1 0 auto;border:1px solid #bac5d2;border-radius:24px;background:linear-gradient(#fff,#e9edf4);padding:10px 14px;font-size:12px;font-weight:800;box-shadow:0 2px 3px #16233425;cursor:pointer;color:#101720}.fm-filters button[aria-pressed=true]{background:linear-gradient(#ff1111,#c00000);color:#fff;border-color:#e00000}.fm-real-page .fm-gallery{gap:16px}.fm-real-page .fm-gallery a,.fm-real-page .fm-videos article{position:relative;background:linear-gradient(#fff,#edf1f7);border:1px solid #fff;border-radius:16px;padding:7px;box-shadow:0 5px 12px #20334b38;overflow:hidden}.fm-real-page .fm-gallery a:after{content:'';position:absolute;bottom:0;right:0;width:38px;height:7px;background:#e00000;transform:skewX(-45deg);transform-origin:bottom right}.fm-real-page .fm-gallery img{aspect-ratio:1.6;border-radius:10px;object-fit:cover}.fm-real-page .fm-gallery strong,.fm-real-page .fm-videos strong{display:block;padding:10px 12px;font-size:clamp(15px,1.5vw,21px)}.fm-real-page [hidden]{display:none!important}.fm-empty{text-align:center;padding:20px}.fm-real-divider{height:14px;background:linear-gradient(110deg,#e00000 0 24%,#b5c3d1 24% 84%,#e00000 84%)}.fm-video-section h2{display:flex;align-items:center;gap:12px;font-size:clamp(22px,2.6vw,36px)}.fm-video-section h2 svg{width:38px;height:38px;color:#e00000}.fm-real-page .fm-videos{margin-top:14px}.fm-real-page .fm-videos video{display:block;border-radius:10px;object-fit:contain}.fm-instagram{display:flex;align-items:center;justify-content:center;gap:20px;background:linear-gradient(#fff,#e9edf4);border:1px solid #fff;border-radius:24px;padding:14px 22px;margin:26px auto 0;width:fit-content;box-shadow:0 4px 10px #20334b30}.fm-instagram svg{width:42px;height:42px;color:#d00065;flex:none}.fm-instagram strong{border-left:2px solid #e00000;padding-left:18px;font-size:clamp(16px,1.6vw,23px)}
@media(max-width:1100px){.fm-contact-page .fm-contacts{grid-template-columns:repeat(2,minmax(0,1fr))}.fm-contact-page .fm-contacts h3{font-size:21px}.fm-contact-page .fm-contacts a{font-size:15px}.fm-contact-info article{padding:0 12px;gap:10px}}
@media(max-width:800px){.fm-tech{grid-template-columns:1fr;min-height:0;gap:12px}.fm-tech>div:first-child{height:200px}.fm-tech img{height:200px}.fm-tech>div:last-child{min-height:80px}.fm-contact-info{grid-template-columns:1fr;gap:18px}.fm-contact-info article{justify-content:flex-start;border-right:0;border-bottom:1px solid #e00000;padding:0 0 16px}.fm-route-panel{width:70%;min-width:0}.fm-instagram{flex-wrap:wrap}.fm-real-page .fm-videos{grid-template-columns:1fr}.fm-contact-hero,.fm-real-hero{background-size:cover}.fm-stat{grid-template-columns:72px 1fr;gap:14px;padding:18px 22px}.fm-stat-icon{padding-right:10px}.fm-stat-icon svg{width:44px;height:44px}}
@media(max-width:520px){.fm-contact-page .fm-contacts{grid-template-columns:1fr}.fm-contact-page .fm-contacts article{grid-template-columns:32% minmax(0,1fr)}.fm-route{padding:12px;align-items:flex-end;min-height:430px;background-size:auto 58%;background-position:top right}.fm-route-panel{width:100%;padding:18px;margin-bottom:18px}.fm-real-page .fm-gallery{grid-template-columns:1fr}.fm-instagram{gap:10px;padding:12px}.fm-instagram strong{border:0;padding:0}.fm-contact-hero .fm-wrap{padding-left:7%}}
.fm-contact-hero,.fm-real-hero{background-size:100% 100%,auto 100%}
@media(max-width:800px){.fm-tech{min-height:350px}.fm-contact-hero,.fm-real-hero{background-size:100% 100%,auto 100%}}
@media(max-width:360px){.fm-tech{min-height:390px}}
