/* Shared geometry, navigation and responsive corrections. */
:root{--gutter:28px;--header-height:86px}
html{scroll-padding-top:var(--header-height)}
.wrap,.services-panel,.about-grid,.directory-stage>.wrap{width:min(calc(100% - var(--gutter)*2),var(--max));margin-left:auto;margin-right:auto}
:focus-visible{outline:3px solid #267aaa;outline-offset:4px}
header .nav{gap:22px}
header .nav-right{gap:20px}
header .nav-links{gap:22px}
header .lang{padding-left:10px}
.services{min-height:0;padding:76px 0}
.services-panel{transform:none}
.services-title{position:static;margin-bottom:32px}
.service-category{grid-template-rows:116px auto;opacity:1;transform:none;border-radius:10px}
.category-top{grid-template-columns:minmax(0,1fr) 52px;gap:16px;padding:22px}
.category-copy h2{font-size:23px;font-weight:400;line-height:1.2;letter-spacing:-.02em}
.category-icon,.category-gears,.category-public{max-width:52px;height:46px}
.category-photo{height:auto;aspect-ratio:3/2}
.energy-photo{background-image:url('assets/energia-dom-fotovoltika.jpg')}
.public-photo{background-image:url('assets/samospravy-clean.jpg')}
.about{min-height:0;grid-template-rows:auto 340px}
.about-grid{padding-top:64px;padding-bottom:56px}
.details,.contact-info{min-width:0}.details a,.company-data{overflow-wrap:anywhere}
.footer-row,.footer-links{flex-wrap:wrap}
.hero-inner,.hero-copy{min-height:max(570px,calc(100svh - 172px))}
.hero-stamp span{letter-spacing:.035em}
@media(max-width:1050px){
 :root{--header-height:72px;--gutter:20px}
 header .nav{position:relative!important;display:flex!important;height:72px!important;min-height:72px!important;padding:0!important;align-items:center!important;gap:12px}
 header .logo{height:44px!important;width:auto!important;max-width:100%}
 header .mobile-actions{display:flex;gap:8px;margin-left:auto}
 header .mobile-call,header .menu-toggle{display:grid;place-items:center;position:relative;width:44px!important;height:44px!important;border:1px solid var(--line);border-radius:6px;background:#fff}
 header .mobile-call svg{width:22px;height:22px;color:var(--red)}
 header .menu-toggle span{position:absolute!important;left:11px!important;top:20px!important;width:20px;height:2px;margin:0!important;background:var(--ink)}
 .menu-toggle span:nth-child(1){transform:translateY(-6px)}.menu-toggle span:nth-child(3){transform:translateY(6px)}
 .menu-open .menu-toggle span:nth-child(1){transform:rotate(45deg)!important}.menu-open .menu-toggle span:nth-child(2){opacity:0}.menu-open .menu-toggle span:nth-child(3){transform:rotate(-45deg)!important}
 header .nav-right{position:absolute!important;top:72px!important;left:calc(-1 * var(--gutter))!important;right:calc(-1 * var(--gutter))!important;width:auto!important;display:none!important;height:auto!important;max-height:calc(100dvh - 72px);overflow-y:auto!important;padding:12px var(--gutter) 20px!important;background:#fff;border:0!important;box-shadow:0 14px 24px #0c172214;transition:none!important;gap:12px!important}
 header.menu-open .nav-right{display:flex!important;visibility:visible;opacity:1;pointer-events:auto;flex-direction:column;align-items:stretch}
 header .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;border:0}
 header .nav-links a,header.menu-open .nav-links a{text-align:left;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px}
 header .lang,header.menu-open .lang{display:flex;justify-content:flex-start!important;gap:22px;padding:8px 0 0!important}
 header .lang a{padding:12px 0!important}
 .service-grid{grid-template-columns:1fr;gap:22px}.service-category{grid-template-rows:auto auto}.category-top{min-height:92px}.category-photo{height:auto;aspect-ratio:16/9}
 .hero,.hero-inner,.hero-copy{min-height:calc(100svh - 72px)}
 .hero-copy{padding-left:var(--gutter)}
 .contact-grid{grid-template-columns:1fr;gap:32px}.contact-map{max-width:680px}
}
@media(max-width:600px){
 :root{--gutter:18px}
 .hero-inner{background-position:61% center}
 .hero-copy{width:100%;padding:44px 18px 158px;background:linear-gradient(90deg,#ffffffed,#ffffff6b 75%,transparent)}
 .hero h1{font-size:clamp(28px,7vw,36px);line-height:1.1}
 .hero-stamp{left:18px;bottom:32px;padding-left:8px;max-width:calc(33.33% - 20px)}
 .hero-b2b{left:calc(33.33% + 8px)}.hero-freelance{left:calc(66.66% - 2px)}
 .hero-stamp strong{font-size:20px}.hero-stamp span{font-size:8px;line-height:1.4;letter-spacing:0}.hero-freelance strong{font-size:16px}
 .services{padding:48px 0}.category-copy h2{font-size:22px}.category-top{padding:20px}.category-photo{aspect-ratio:3/2}
 .about{grid-template-rows:auto 240px}.about-grid{padding-top:44px;padding-bottom:36px}.about-text{font-size:17px}.feature-photo{min-height:0}
 .enquiry-form{padding:20px 16px}.enquiry h2 span{display:inline}
 .footer-row{display:flex;padding:24px 0;gap:16px}.footer-links{gap:8px 12px}
 .maintenance-stamp{padding-right:0}.maintenance-gears{display:none}.content{padding:44px 0 60px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Long legal headings and links must wrap on small screens. */
main h1,main h2,main p,main li,main address{overflow-wrap:anywhere}
.site-shell-wrap,.site-footer-wrap{width:min(calc(100% - var(--gutter)*2),1240px)}
@media(max-width:1050px){header{height:72px}}

/* Each primary section opens directly below the fixed-height header. */
#sluzby,#onas{scroll-margin-top:0;min-height:calc(100svh - var(--header-height))}
.services{align-items:center;padding:48px 0}
.about{grid-template-rows:minmax(min-content,1fr) minmax(240px,38svh)}
.about-grid{align-self:center;padding-top:40px;padding-bottom:40px}
@media(max-width:1050px){.about{grid-template-rows:auto minmax(220px,34svh)}.services{padding:40px 0}}
/* Full touch target; underline follows only the text inside it. */
.nav-links a::after{display:none!important}
.nav-label{position:relative;display:inline-block}
.nav-label::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:2px;background:var(--red,#ed1c24);transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
.nav-links a:hover .nav-label::after,.nav-links a:focus-visible .nav-label::after,.nav-links a.is-current .nav-label::after,.nav-links a[aria-current="page"] .nav-label::after{transform:scaleX(1)}
@media(max-width:1050px){header.menu-open .nav-links a{text-align:left!important}}

/* Center the card row itself, excluding its heading, in the available viewport. */
@media(min-width:1051px){
 .services{padding:110px 0;min-height:calc(100svh - var(--header-height))}
 .services-panel{position:relative;margin-top:auto;margin-bottom:auto}
 .services-title{position:absolute;left:0;bottom:calc(100% + 32px);margin:0}
}
.hero h1 .hero-line{display:block;white-space:nowrap;color:var(--ink)}
.hero h1 .hero-line-accent{color:var(--red)}
@media(max-width:600px){
 .hero h1{font-size:clamp(18px,5.45vw,32px);overflow-wrap:normal;letter-spacing:-.025em;width:100%}
 html[lang="de"] .hero h1{font-size:clamp(17px,4.95vw,30px)}
 html[lang="en"] .hero h1{font-size:clamp(17px,5vw,30px)}
}
/* Taller photographs; the established text bands are unchanged. */
@media(min-width:1051px){
 .services{padding:92px 0}
 .category-photo{aspect-ratio:auto;height:clamp(350px,calc(100svh - 390px),500px)}
 .services-title{bottom:calc(100% + 24px)}
}
@media(max-width:1050px){.category-photo{aspect-ratio:1/1;height:auto}}
.about{grid-template-rows:auto minmax(240px,1fr)}
.about-grid{align-self:start;padding-top:40px;padding-bottom:40px}
.about-text{max-width:none;width:100%}
.menu-content{display:contents}
@media(max-width:1050px){
 header .nav-right,header.menu-open .nav-right{
  display:block!important;height:var(--menu-height,0px)!important;padding:0!important;gap:0!important;overflow:hidden!important;
  visibility:hidden;opacity:0;pointer-events:none;
  transition:height .36s cubic-bezier(.22,.61,.36,1),opacity .24s ease,visibility 0s linear .36s!important;
 }
 header.menu-open .nav-right{visibility:visible;opacity:1;pointer-events:auto;overflow-y:auto!important;transition:height .36s cubic-bezier(.22,.61,.36,1),opacity .24s ease,visibility 0s!important}
 .menu-content{display:flex;flex-direction:column;gap:12px;padding:12px var(--gutter) 20px}
 header .nav-links a,header.menu-open .nav-links a{text-align:right!important}
 header .lang,header.menu-open .lang{justify-content:flex-end!important;text-align:right}
 header .mobile-call,header .mobile-call svg{color:#000!important}
 header .mobile-call svg path{fill:#000!important;stroke:#000!important}
 header .mobile-call svg{transform-origin:50% 50%;animation:phone-ring 3s ease-in-out infinite}
}
@keyframes phone-ring{0%,60%,100%{transform:rotate(0)}68%,84%{transform:rotate(-13deg)}76%,92%{transform:rotate(13deg)}}
@media(prefers-reduced-motion:reduce){header .nav-right,header.menu-open .nav-right{transition:none!important}header .mobile-call svg{animation:none!important}}
/* Contact and enquiry share one desktop viewport in two balanced rows. */
.contact-window{background:#fff;scroll-margin-top:0}
.contact-window .enquiry{border-top:0}
@media(min-width:1051px){
 .contact-window{min-height:calc(100svh - var(--header-height));display:grid;grid-template-rows:repeat(2,minmax(330px,1fr))}
 .contact-stage{display:flex;align-items:center;min-width:0}
 .contact-window .contact{width:100%;padding:18px 0}
 .contact-window .contact-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px}
 .contact-window .contact-info{gap:14px}
 .contact-window .contact h2,.contact-window .enquiry h2{font-size:30px}
 .contact-window .contact-actions{gap:12px}
 .contact-window .contact-actions .btn{min-height:44px;padding:9px 20px;font-size:15px}
 .contact-window .details{gap:6px;margin:0}
 .contact-window .details strong{font-size:21px;margin:0}
 .contact-window .details .company-data{margin-top:5px;font-size:13px}
 .contact-window .contact-map{justify-self:center;width:100%;max-width:450px}
 .contact-window .contact-map img{max-height:270px;object-fit:contain}
 .contact-window .enquiry{display:flex;align-items:center;padding:14px 0 20px}
 .contact-window .enquiry>.wrap{width:min(calc(100% - var(--gutter)*2),var(--max))}
 .contact-window .enquiry-head{margin-bottom:12px}
 .contact-window .enquiry h2 span{display:inline}
 .contact-window .enquiry-form{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 18px;padding:0;border:0}
 .contact-window .form-field{grid-column:span 2;gap:5px}
 .contact-window .form-field label{font-size:13px}
 .contact-window .form-field input:not([type="file"]),.contact-window .form-field select{height:44px;padding:9px 12px}
 .contact-window .form-field:has(textarea){grid-column:1/5;grid-row:2/4}
 .contact-window .form-field textarea{min-height:100px;height:100%;padding:9px 12px}
 .contact-window .form-field:has(input[type="file"]){grid-column:5/7;grid-row:2}
 .contact-window .file-picker{gap:8px}
 .contact-window .file-picker label{min-height:36px;font-size:13px}
 .contact-window .file-picker-status{font-size:13px}
 .contact-window .file-note{font-size:12px}
 .contact-window .consent-row{grid-column:5/7;grid-row:3;font-size:12px;gap:8px}
 .contact-window .form-footer{grid-column:1/-1;grid-row:4;margin:0}
 .contact-window .submit-enquiry{min-height:44px;padding:9px 24px;font-size:15px}
}
@media(max-width:1050px){.contact-window .contact{padding:36px 0 20px}.contact-window .enquiry{padding:24px 0 40px}}
/* One restrained heading style for the four main titles. */
.services-title,.about-heading,.contact-window .contact h2,.contact-window .enquiry h2{font-size:30px;font-weight:400;line-height:1.06;letter-spacing:-.025em}
/* The photograph occupies one third; spare room remains white under the copy. */
.about{grid-template-rows:minmax(min-content,1fr) calc((100svh - var(--header-height))/3)}
.about .feature-photo{height:100%;min-height:0}
.about-grid{padding-top:36px;padding-bottom:32px}
.about-signature{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin-top:26px;padding-right:2px}
.signature-wordmark{font-family:'Snell Roundhand','Segoe Script','Brush Script MT',cursive;font-size:31px;font-weight:400;font-style:italic;line-height:1.3;color:var(--ink)}
.signature-role{font-size:12px;font-weight:400;letter-spacing:.07em;color:var(--muted)}
@media(min-width:1051px){
 .contact-window .contact-grid{gap:0;align-items:stretch}
 .contact-window .contact-info{padding-right:32px}
 .contact-window .contact-map{position:relative;align-self:stretch;justify-self:stretch;width:100%;max-width:none;opacity:1;transform:none;box-shadow:none}
 .contact-window .contact-map img{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;transform:none}
 .contact-window .enquiry.enquiry-aligned{align-items:stretch;padding:0 0 var(--form-bottom-space,20px)}
 .contact-window .enquiry-aligned>.wrap{display:flex;flex-direction:column;margin:0 auto;min-height:0}
 .contact-window .enquiry-aligned .enquiry-form{flex:1;grid-template-rows:auto minmax(0,1fr) auto auto;min-height:0}
 .contact-window .enquiry-aligned .form-field:has(textarea){grid-template-rows:auto minmax(100px,1fr);align-content:stretch}
 .contact-window .enquiry-aligned .form-field textarea{height:100%;min-height:100px}
}
@media(max-width:1050px){
 .services-title,.about-heading,.contact-window .contact h2,.contact-window .enquiry h2{font-size:28px}
 .about-signature{margin-top:24px}.signature-wordmark{font-size:28px}
}

/* Center the entire About block within its white area. */
.about-grid{align-self:center;padding-top:32px;padding-bottom:32px}
/* Reduced top gap, a taller form and an explicit header-height white ending. */
.contact-bottom-strip{display:none;background:#fff;height:var(--header-height)}
@media(min-width:1051px){
 .contact-window.contact-adjusted{grid-template-rows:var(--contact-row-height) var(--enquiry-row-height) var(--header-height)}
 .contact-adjusted .contact-stage{align-items:flex-start}
 .contact-window.contact-adjusted .contact{padding:var(--contact-top-gap) 0 0}
 .contact-window.contact-adjusted .enquiry.enquiry-aligned{padding:0}
 .contact-adjusted .contact-bottom-strip{display:block}
}
@media(max-width:1050px){
 .contact-window .contact{padding-top:18px}
 .contact-window .enquiry{padding-top:12px;padding-bottom:0}
 .contact-window .form-field textarea{min-height:168px}
 .contact-bottom-strip{display:block}
}

@media(max-width:1050px){
 .contact-window .contact{padding-bottom:8px}
 .contact-window .enquiry{padding-top:0}
 .contact-window .form-field textarea{min-height:200px}
}

.signature-art{display:block;width:220px;height:78px;object-fit:cover;object-position:center;max-width:100%}

/* Mobile home cards: 20% shorter, with readable labels. */
@media(max-width:1050px){
 .service-category{grid-template-rows:auto auto}
 .category-top{min-height:73.6px;padding:16px}
 .category-photo{aspect-ratio:5/4;height:auto}
}

@media(max-width:1050px){
 .category-top{min-height:68px;padding:14px}
 .category-photo{aspect-ratio:10/7}
}

/* Unified sizing for the supplied main service icons. */
.category-icon{width:46px;height:46px;max-width:46px;object-fit:contain}
@media(max-width:1050px){.category-icon{width:40px;height:40px;max-width:40px}}

/* Lighter service icons on touch layouts, with original desktop strokes. */
.responsive-service-icon{color:#000}
@media(max-width:1050px){
 .responsive-service-icon{stroke-width:1.3;color:#395064}
}
/* v75: all three main service cards within the mobile viewport. */
@media(max-width:600px){
 section.services.approved-services{height:calc(100svh - var(--header-height));min-height:0;padding:14px 0!important;display:flex;box-sizing:border-box}
 .approved-services .services-panel{height:100%;display:flex;flex-direction:column;min-height:0;margin:0 auto;transform:none}
 .approved-services .services-title{position:static;margin:0 0 10px;font-size:23px;line-height:1.2}
 .approved-services .service-grid{display:grid;grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;flex:1;min-height:0}
 .approved-services .service-category{display:grid;grid-template-rows:52px minmax(0,1fr);height:100%;min-height:0}
 .approved-services .category-top{min-height:0;padding:8px 12px;grid-template-columns:minmax(0,1fr) 32px;gap:10px}
 .approved-services .category-copy h2{font-size:17px;line-height:1.15;margin:0}.approved-services .category-icon{width:30px;height:30px}
 .approved-services .category-photo{height:100%;min-height:0;aspect-ratio:auto}
}

/* v84: stamp rule follows the text block, without extra vertical space. */
.hero .hero-stamp,.hero-stamp{min-height:0;height:auto;padding-top:0;padding-bottom:0;align-content:start;row-gap:0}
.hero-stamp span{line-height:1}.hero-stamp strong{line-height:1}
