:root{--red:#ed1c24;--blue:#267aaa;--ink:#0c1722;--muted:#395064;--line:#dce6ed;--pale:#eef8fd;--max:1240px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:86px}
body{margin:0;color:var(--ink);background:#fff;font:16px/1.45 Arial,Helvetica,sans-serif}
body.menu-open{overflow:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.wrap{width:min(calc(100% - 56px),var(--max));margin:auto}
.skip-link{position:fixed;z-index:100;top:8px;left:8px;padding:9px 13px;border:2px solid var(--red);background:#fff;transform:translateY(-160%)}
.skip-link:focus{transform:none}

header{position:sticky;top:0;z-index:50;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.nav{height:86px;display:flex;align-items:center;justify-content:space-between;gap:34px}
.logo{display:block;width:auto;height:58px}
.nav-right,.nav-links,.lang,.mobile-actions{display:flex;align-items:center}
.nav-right{gap:34px}
.nav-links{gap:30px;font-size:14px;font-weight:400}
.nav-links a,.lang a{position:relative;padding:30px 0 27px}
.nav-links a:after,.lang a:after{display:none}
.nav-links a:hover,.nav-links a.active,.lang a:hover,.lang a.active{color:var(--ink)}
.lang{gap:14px;padding-left:28px;border-left:0;font-size:13px}
.lang .active{font-weight:400}
.mobile-actions{display:none;gap:10px}
.mobile-call,.menu-toggle{width:42px;height:42px;border:1px solid var(--line);border-radius:6px;background:#fff}
.mobile-call{display:grid;place-items:center;border-color:transparent;background:#fff;color:var(--red)}
.mobile-call svg{width:20px;height:20px}
.menu-toggle{position:relative;padding:10px;cursor:pointer}
.menu-toggle span{position:absolute;top:19px;left:10px;display:block;width:20px;height:2px;margin:0;background:var(--ink);transition:transform .25s ease,opacity .15s ease}
.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)}
.menu-open .menu-toggle span:nth-child(2){opacity:0}
.menu-open .menu-toggle span:nth-child(3){transform:rotate(-45deg)}

.hero{min-height:calc(100svh - 86px);background:#fff}
.hero-inner{position:relative;min-height:calc(100svh - 86px);overflow:hidden;background:#fff url('assets/hero-podklad.jpg') center/cover no-repeat}
.hero-copy{position:relative;z-index:2;width:58%;min-height:calc(100svh - 86px);display:flex;flex-direction:column;justify-content:flex-start;padding:82px 44px 145px max(28px,calc((100vw - var(--max))/2))}
.hero-brand{margin-bottom:15px;font-size:22px;font-weight:700}
.hero-brand span{color:var(--red)}
.hero h1{width:max-content;max-width:100%;margin:0;font-size:clamp(34px,3.2vw,45px);font-weight:700;line-height:1.06;letter-spacing:-.025em;text-transform:uppercase}
.hero h1 span{display:block;color:var(--red)}
.hero-actions{margin-top:26px}
.btn{display:inline-flex;min-height:54px;align-items:center;justify-content:center;padding:13px 30px;border:1px solid var(--blue);border-radius:7px;background:#fff;color:var(--ink);font-weight:700;transition:transform .2s ease,background .2s ease,box-shadow .2s ease}
.btn:hover{transform:translateY(-2px);background:var(--pale);box-shadow:0 8px 20px rgba(12,23,34,.1)}
.hero .btn{min-height:45px;padding:9px 21px;font-size:14px}
.arrow{margin-left:15px;color:var(--blue);font-size:20px;font-weight:400}
.hero-stamp{position:absolute;z-index:2;bottom:38px;left:max(28px,calc((100vw - var(--max))/2));display:grid;min-height:66px;align-content:center;padding-left:15px;border-left:3px solid var(--red);line-height:1}
.hero-stamp span{color:var(--blue);font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.hero-stamp strong{font-size:28px;line-height:1.05;text-transform:uppercase}
.hero-b2b{left:calc(max(28px,(100vw - var(--max))/2) + 225px)}
.hero-freelance{left:calc(max(28px,(100vw - var(--max))/2) + 450px)}
.hero-photo{display:none}

.services{min-height:calc(100svh - 86px);display:flex;align-items:center;border-top:1px solid var(--line);background:#fff}
.services-panel{position:relative;width:min(calc(100% - 56px),var(--max));margin:auto;transform:translateY(24px)}
.services-reference{display:none}
.services-title,.about-heading,.contact h2,.enquiry h2{margin:0;color:var(--ink);font-size:clamp(30px,2.7vw,40px);font-weight:700;line-height:1.06;letter-spacing:-.035em}
.services-title{position:absolute;bottom:calc(100% + 42px);left:0;margin:0}
.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;background:#fff}
.service-category{display:grid;grid-template-rows:92px 448px;min-width:0;overflow:hidden;border:1px solid #cad9e3;background:#fff;opacity:.82;transform:translateY(10px);transition:opacity .55s ease,transform .55s cubic-bezier(.2,.75,.25,1),box-shadow .28s ease,border-color .28s ease}
.service-category.is-visible{opacity:1;transform:translateY(0)}
.service-category:hover{transform:translateY(-4px);border-color:#a9c7d9;box-shadow:0 15px 32px rgba(12,23,34,.11)}
.category-top{display:grid;grid-template-columns:minmax(0,1fr) 90px;align-items:center;gap:13px;padding:12px 46px 12px 31px}
.category-copy{display:flex;min-height:52px;align-items:center;padding-left:0;border-left:0}
.category-copy h2{margin:0;color:var(--ink);font-size:clamp(20px,1.55vw,25px);font-weight:600;line-height:1.06;letter-spacing:-.025em}
.category-icon{display:block;width:90px;height:61px;justify-self:end;align-self:center;object-fit:contain;object-position:center;transform:none}
.category-gears{width:90px;height:61px;transform:none}
.category-building{width:52px;height:52px}
.category-public{width:90px;height:52px}
.category-photo{width:100%;height:448px;background-position:center;background-repeat:no-repeat;background-size:cover}
.industry-photo{background-image:url('assets/sluzby-priemysel-schvalene.jpg')}
.energy-photo{background-image:url('assets/sluzby-energia-budova-cista.jpg')}
.public-photo{background-image:url('assets/sluzby-samospravy-organizacie.jpg')}

@media(max-width:1100px) and (min-width:901px){
  .service-grid{gap:14px}
  .category-top{grid-template-columns:minmax(0,1fr) 68px;padding-right:20px;padding-left:20px}
  .category-copy{padding-left:14px}
  .category-copy h2{font-size:21px}
  .category-gears{width:68px;height:47px}
  .category-building{width:46px;height:46px}
  .category-public{width:68px;height:46px}
}

#onas{scroll-margin-top:0}
.about{min-height:calc(100svh - 86px);display:grid;grid-template-rows:minmax(220px,1fr) minmax(300px,42vh);padding:0;background:#fff;border-top:1px solid var(--line)}
.about-grid{width:min(calc(100% - 56px),var(--max));margin:0 auto;padding-top:30px;align-self:start}
.about-heading span,.contact h2 span,.enquiry h2 span{color:var(--red)}
.about-text{max-width:920px;margin-top:20px;color:var(--muted);font-size:20px;line-height:1.55}
.about-text p{margin:0}
.about-text p+p{margin-top:14px}
.about-kicker,.about-photo,.about-visual,.about-quote,.process-stamps{display:none}

.feature-photo{width:100%;height:100%;min-height:300px;background:url('assets/sekcia-strop.jpg') center/cover no-repeat}
.contact{padding:52px 0;background:#fff;scroll-margin-top:0}
.contact-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(440px,1.18fr);gap:70px;align-items:center}
.contact-info{display:grid;gap:28px;align-content:center}
.eyebrow{display:none}
.contact h2 span{display:inline}
.contact-actions{display:flex;gap:14px;flex-wrap:wrap}
.details{display:grid;gap:13px;margin:4px 0 0;padding:0;font-style:normal;color:var(--muted)}
.details strong{margin-bottom:5px;color:var(--ink);font-size:23px;font-weight:500}
.details a{font-size:17px}
.details .company-data{display:grid;gap:3px;margin-top:10px;font-size:14px}
.contact-map{position:relative;overflow:hidden}
.contact-map img{display:block;width:100%;height:auto}

footer{border-top:1px solid var(--line);background:#fff;color:#657580;font-size:13px}
.footer-row{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.footer-links{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.footer-links a{position:relative;padding:6px 0;color:inherit}
.footer-links a:after{content:"";position:absolute;right:0;bottom:2px;left:0;height:2px;background:var(--red);transform:scaleX(0);transform-origin:center;transition:transform .2s ease}
.footer-links a:hover:after,.footer-links a:focus-visible:after{transform:scaleX(1)}

@media(max-width:900px){
  html{scroll-padding-top:72px}
  .wrap{width:calc(100% - 36px)}
  .nav{height:72px}
  .logo{height:46px}
  .mobile-actions{display:flex;margin-left:auto}
  .nav-right{position:absolute;top:72px;right:0;left:0;display:flex;height:0;overflow:hidden;flex-direction:column;align-items:stretch;gap:0;border-bottom:1px solid var(--line);background:#fff;transition:height .32s cubic-bezier(.2,.75,.25,1)}
  .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:6px 18px 0;font-size:16px}
  .nav-links a{padding:14px 0;border-bottom:1px solid var(--line)}
  .nav-links a:after{display:none}
  .lang{justify-content:flex-end;gap:12px;padding:12px 18px 16px;border-left:0}
  .lang a{padding:6px 0 9px}
  .hero,.hero-inner{min-height:calc(100svh - 72px)}
  .hero-copy{width:72%;min-height:calc(100svh - 72px);padding:66px 28px 145px}
  .hero h1{font-size:34px}
  .hero-stamp{left:28px;bottom:30px}
  .hero-b2b{left:235px}
  .hero-freelance{left:442px}
  .services{min-height:auto;padding:62px 0}
  .services-panel{width:calc(100% - 48px);transform:none}
  .services-title{position:static;margin-bottom:36px}
  .service-grid{grid-template-columns:1fr;gap:22px}
  .service-category{grid-template-rows:92px 338px}
  .category-top{grid-template-columns:minmax(0,1fr) 82px;padding:14px 31px 14px 20px}
  .category-gears{width:82px;height:55px;transform:none}
  .category-building{width:48px;height:48px}
  .category-public{width:72px;height:48px}
  .category-copy{min-height:48px;padding-left:16px}
  .category-copy h2{font-size:23px}
  .category-photo{height:338px}
  #onas{scroll-margin-top:0}
  .about{min-height:calc(100svh - 62px);grid-template-rows:minmax(220px,1fr) minmax(280px,42vh);padding:0}
  .about-grid{width:calc(100% - 36px);padding-top:26px}
  .contact-grid{grid-template-columns:1fr;gap:42px}
  .contact-map{max-width:680px}
}

@media(max-width:700px){
  .hero-inner{background-position:64% center}
  .hero-copy{width:100%;padding:48px 18px 160px}
  .hero-brand{font-size:19px}
  .hero h1{width:auto;max-width:100%;font-size:28px}
  .hero-stamp{left:18px;bottom:25px;min-height:58px;padding-left:11px}
  .hero-stamp strong{font-size:22px}
  .hero-stamp span{font-size:9px}
  .hero-b2b{left:calc(33.33% + 8px)}
  .hero-freelance{left:calc(66.66% - 2px)}
  .services{padding:50px 0}
  .services-panel{width:calc(100% - 36px)}
  .services-title,.about-heading,.contact h2,.enquiry h2{font-size:31px}
  .services-title{margin-bottom:30px}
  .service-category{grid-template-rows:88px 293px}
  .category-top{grid-template-columns:minmax(0,1fr) 72px;padding:13px 17px}
  .category-gears{width:72px;height:49px;transform:none}
  .category-building{width:44px;height:44px}
  .category-public{width:66px;height:44px}
  .category-copy{min-height:44px;padding-left:14px;border-left-width:0}
  .category-copy h2{font-size:22px}
  .category-photo{height:293px}
  .about-text{font-size:17px}
  .feature-photo{min-height:250px}
  .contact{padding:54px 0}
  .contact-actions{display:grid;grid-template-columns:1fr 1fr}
  .contact-actions .btn{padding-right:14px;padding-left:14px}
  .details strong{font-size:21px}
  .footer-row{min-height:0;display:grid;padding:26px 0}
  .footer-links{gap:8px}
}

@media(max-width:390px){
  .hero h1{font-size:25px}
  .hero-stamp strong{font-size:18px}
  .hero-stamp span{font-size:8px}
  .category-copy h2{font-size:22px}
  .contact-actions{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{scroll-behavior:auto;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}


/* Force-remove red divider from service cards on all breakpoints */
.category-copy{
  border-left:none!important;
  border-left-width:0!important;
  border-left-style:none!important;
  padding-left:0!important;
}



/* Home: white strip taken from the bottom of the hero viewport */
.hero{
  min-height:calc(100svh - 86px);
  background:#fff;
}
.hero-inner{
  min-height:calc(100svh - 172px);
}
.hero-copy{
  min-height:calc(100svh - 172px);
}
.home-bottom-strip{
  height:86px;
  background:#fff;
}

@media(max-width:900px){
  .hero{
    min-height:calc(100svh - 72px);
  }
  .hero-inner{
    min-height:calc(100svh - 144px);
  }
  .hero-copy{
    min-height:calc(100svh - 144px);
  }
  .home-bottom-strip{
    height:72px;
  }
}



/* Energy & buildings card: show more of the existing photo, without changing the source image */
.energy-photo{
  background-size:auto 88%;
  background-position:center;
  background-repeat:no-repeat;
  background-color:#eef4f8;
}
@media(max-width:900px){
  .energy-photo{background-size:auto 90%}
}



/* Mobile/layout consistency fix
   Header height = nav height exactly; divider is drawn inside, not added to height. */
header{
  border-bottom:0;
  box-shadow:inset 0 -1px 0 var(--line);
}

/* Keep the home bottom strip exactly equal to the header/nav height. */
.home-bottom-strip{height:86px}

/* Stable card position on touch/mobile: no initial 10px visual offset. */
@media(max-width:900px){
  .nav{height:72px}
  .home-bottom-strip{height:72px}

  .hero{min-height:calc(100svh - 72px)}
  .hero-inner,
  .hero-copy{min-height:calc(100svh - 144px)}

  .service-category,
  .service-category.is-visible{
    opacity:1;
    transform:none;
  }
  .service-category:hover{
    transform:none;
  }

  .services-panel{
    margin-left:auto;
    margin-right:auto;
  }
}



/* Restore Energy & buildings card image to the standard card crop */
.energy-photo{
  background-image:url('assets/sluzby-energia-budova-cista.jpg');
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-color:transparent!important;
}

