/* Responsive refinements of the original Krejcar design. */
html{scroll-padding-top:90px}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}img,video,iframe{max-width:100%}input,textarea,select{font-size:16px}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.mobile-nav{max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}.modal-overlay{overflow-y:auto;padding:20px}.modal-box{max-height:calc(100dvh - 40px);overflow-y:auto}.hamburger{min-width:44px;min-height:44px;align-items:center;justify-content:center}.nav-item>button{font:inherit;border:0;background:none;color:inherit;cursor:pointer}.btn{white-space:normal;text-align:center}.btn svg{flex-shrink:0}
@media(max-width:1100px){
 #navbar{gap:14px}.nav-links,.nav-phone,.nav-cta{display:none}.hamburger{display:flex}.nav-right{margin-left:auto}
 #hero{display:grid;grid-template-columns:minmax(0,1fr);padding:112px 6vw 45px;gap:32px}
 #hero .hero-content{max-width:none;width:100%;margin:0;min-width:0}
 #hero .hero-title{font-size:clamp(2.6rem,6vw,4.4rem);max-width:850px;line-height:1.06}
 #hero .hero-sub{max-width:680px}
 #hero .hero-carousel{display:block;min-width:0;width:100%;max-width:850px;margin:0;justify-self:center}
 #hero .hero-carousel-track{max-height:none;aspect-ratio:16/9}
 #hero .hero-stats{max-width:680px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
 #hero .scroll-hint{display:none}
}
@media(min-width:1101px){.mobile-nav{display:none}}
@media(max-width:768px){
 body{font-size:16px;line-height:1.65}section,section>div,[class$="-grid"]>*{min-width:0}
 .reveal,.reveal-left,.reveal-right,.reveal-scale{opacity:1;transform:none!important;transition:none!important}
 body>section:not(#hero):not(.page-hero){padding-top:52px!important;padding-bottom:52px!important}
 .page-hero{padding:108px 6vw 42px}.page-hero h1{font-size:clamp(2rem,7vw,3.2rem);line-height:1.12;overflow-wrap:break-word}
 .section-title{font-size:clamp(1.85rem,6.5vw,2.7rem);line-height:1.15}
 .section-sub{font-size:1rem;line-height:1.65}
 #intro,.intro-grid,.about-grid,.contact-grid{grid-template-columns:minmax(0,1fr)!important;gap:30px!important}
 .info-grid,.bio-principy-grid,.podminky-grid,.akt-grid,.proc-grid,.process-grid,.car-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
 .intro-img,.intro-img-wrap{min-width:0;max-width:100%}
 .intro-img-badge{max-width:calc(100% - 32px);right:16px!important}
 .sluzby-card{min-height:320px}.social-card{min-width:0;width:100%;max-width:450px;padding:22px;gap:16px}
 .social-card-text{min-width:0;overflow-wrap:anywhere}
 .cta-phone{font-size:clamp(1.4rem,6.5vw,1.9rem)!important;white-space:normal}
 .cta-btns,.intro-btns{gap:10px}.cta-btns .btn,.intro-btns .btn{flex:1 1 180px;justify-content:center}
 .footer-top{gap:28px}.footer-top>div{min-width:0}.footer-top a,.footer-top p{overflow-wrap:anywhere}
 .footer-bottom{flex-wrap:wrap;gap:12px}.mobile-call-float{bottom:calc(18px + env(safe-area-inset-bottom));right:18px}
 #scroll-top-btn{right:18px!important;bottom:calc(80px + env(safe-area-inset-bottom))!important;width:42px!important;height:42px!important}
 .modal-box{padding:28px 22px}.modal-info>div{min-width:0}.modal-info a{overflow-wrap:anywhere}
 .plodiny-header,.stroje-header{flex-direction:column;align-items:flex-start;gap:20px}
 .form-row{grid-template-columns:minmax(0,1fr)!important}.contact-form{padding:25px 20px!important}
 .vtab{min-height:44px}.category-title{font-size:2rem!important}
 .wave-divider svg,.arc-divider svg,.tilt-divider svg{height:40px}
}
@media(max-width:480px){
 #navbar{height:64px;padding:0 20px;gap:8px}.nav-logo img{max-width:140px;max-height:38px}.nav-right{margin-left:auto}
 #hero{padding:100px 22px 30px;gap:28px}
 #hero .hero-title{font-size:clamp(2.25rem,10vw,3rem);line-height:1.08;margin-bottom:20px}
 #hero .hero-sub{font-size:1rem;line-height:1.65;margin-bottom:22px}
 #hero .hero-btns{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 #hero .hero-btns .btn{width:100%;justify-content:center;padding:13px 18px;min-height:48px}
 #hero .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;margin-top:28px;padding-top:24px}
 #hero .stat-item{min-width:0;padding:0;border:0}.stat-num{font-size:1.7rem}.stat-label{font-size:.8rem}
 #hero .hero-carousel-track{aspect-ratio:4/3;border-radius:16px}.hc-btn{width:44px;height:44px}
 .mobile-nav{top:64px;max-height:calc(100dvh - 64px);padding:12px 22px 24px}
 .mobile-nav a,.mob-section-toggle{min-height:44px}.mob-sub a{font-size:.95rem}
 .info-grid,.bio-principy-grid,.podminky-grid,.akt-grid,.proc-grid,.process-grid,.car-grid,.plodiny-grid{grid-template-columns:minmax(0,1fr)!important}
 .info-card,.proc-card,.car-card{padding:25px!important}.sluzby-card{min-height:300px}
 .page-hero{padding-left:22px;padding-right:22px}.page-hero-btns .btn{padding:12px 16px}
 .service-item{min-width:0;gap:12px}.service-item-text{min-width:0}.service-item-name{overflow-wrap:break-word}
 .footer-top{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 18px}.footer-brand{grid-column:1/-1}
 #cookie-bar{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-height:60dvh;overflow-y:auto;border-radius:16px}
 .cookie-card{padding:17px;gap:10px}.cookie-card-icon{display:none}.cookie-card-body p{font-size:.78rem;line-height:1.5;margin-bottom:12px}.cookie-card-actions{gap:7px}.cookie-btn{min-height:44px;padding:10px 12px}
 .cookie-btn-text,.cookie-btn-outline{flex:1}.cookie-card-body{min-width:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.reveal,.reveal-left,.reveal-right,.reveal-scale{opacity:1!important;transform:none!important}}
@media(min-width:1101px){
 #hero{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,4vw,76px);padding-top:120px;padding-bottom:70px;align-items:center}
 #hero .hero-content{max-width:none;min-width:0;width:100%;margin-top:0}
 #hero .hero-title{font-size:clamp(2.8rem,4.15vw,5.5rem);line-height:1.06}
 #hero .hero-sub{font-size:clamp(1rem,1.2vw,1.15rem);max-width:600px}
 #hero .hero-carousel{display:block;min-width:0;margin:0;width:100%}
 #hero .hero-carousel-track{aspect-ratio:4/3;max-height:none}
 #hero .hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.3vw,24px)}
 #hero .stat-item{min-width:0}.hero-stats .stat-label{font-size:clamp(.7rem,.9vw,.9rem)}
 #hero .hero-btns{flex-wrap:wrap}
}
.sale-dialog{margin:auto;width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #e5e7eb;border-radius:22px;padding:36px;background:#fff;color:var(--text);box-shadow:0 24px 90px #0005}.sale-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}.sale-dialog h2{font-size:clamp(1.6rem,4vw,2rem);font-weight:900;line-height:1.2;letter-spacing:-.035em;padding-right:22px;margin-bottom:12px}.sale-dialog>p{color:var(--muted);margin-bottom:25px}.sale-close{position:absolute;right:16px;top:14px;width:44px;height:44px;border:0;background:var(--off-white);border-radius:50%;font:24px 'Nunito',sans-serif;cursor:pointer}.sale-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sale-option{display:flex;flex-direction:column;align-items:flex-start;padding:25px 20px;border:1px solid var(--border);border-radius:16px;background:var(--off-white);transition:border-color .2s,background .2s}.sale-option:hover{border-color:var(--gold);background:var(--gold-pale)}.sale-option svg{width:36px;height:36px;color:var(--gold-dark);margin-bottom:20px}.sale-option strong{font-size:1.2rem;font-weight:900}.sale-option span{font-size:.9rem;color:var(--muted);margin-top:8px}.sale-option b{margin-top:20px;color:var(--gold-dark);font-size:1.2rem}@media(max-width:480px){.sale-dialog{padding:30px 22px}.sale-options{grid-template-columns:1fr}.sale-option{padding:20px}.sale-option svg{margin-bottom:12px}.sale-option b{margin-top:10px}}
@media(max-width:768px){.salers-grid{grid-template-columns:minmax(0,1fr)!important}.podminka-card{min-width:0;padding:26px 22px}}
/* Keep the desktop hero and its wave within the first viewport. */
@media(min-width:1101px){
 #hero{padding-top:clamp(96px,11vh,120px);padding-bottom:clamp(22px,4vh,48px)}
 #hero .hero-carousel-track{aspect-ratio:4/3;max-height:calc(100svh - clamp(96px,11vh,120px) - clamp(22px,4vh,48px) - 100px)}
 #hero .hero-title{font-size:clamp(2.5rem,min(4.15vw,7.5vh),5.5rem);margin-bottom:clamp(16px,2.5vh,24px)}
 #hero .hero-sub{margin-bottom:clamp(18px,3vh,32px)}
 #hero .hero-stats{margin-top:clamp(22px,4vh,42px);padding-top:clamp(18px,3vh,30px)}
}
@media(min-width:1101px) and (max-height:700px){
 #hero .hero-title{font-size:clamp(2.2rem,6.5vh,3rem)}
 #hero .hero-sub{font-size:1rem;line-height:1.55;margin-bottom:16px}
 #hero .hero-stats{margin-top:18px;padding-top:16px}
 #hero .stat-num{font-size:1.7rem}
 #hero .hero-btns .btn{min-height:44px;padding:10px 18px;font-size:.9rem}
}

@media(min-width:1101px){#hero{min-height:calc(100svh - 88px)}}

/* Reduce empty space on phones and tablets. */
@media(max-width:1100px){
 body>section:not(#hero):not(.page-hero):not(#work-intro){padding-top:52px!important;padding-bottom:52px!important}
 .sluzby-header,.proc-header,.sluzby-all-header,.social-header,.test-header{margin-bottom:28px}
 .page-hero{min-height:0;padding-top:108px;padding-bottom:40px}
 .wave-divider svg,.arc-divider svg,.tilt-divider svg{height:36px}
 .reveal,.reveal-left,.reveal-right,.reveal-scale{opacity:1;transform:none!important;transition:none!important}
}
@media(max-width:768px){
 body>section:not(#hero):not(.page-hero):not(#work-intro){padding-top:32px!important;padding-bottom:32px!important}
 .sluzby-header,.proc-header,.sluzby-all-header,.social-header,.test-header{margin-bottom:22px}
 .page-hero{padding-bottom:30px}
 .wave-divider svg,.arc-divider svg,.tilt-divider svg{height:24px}
}

/* Keep legal information alongside the footer copyright. */
.footer-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px}
.footer-bottom .footer-privacy{color:rgba(255,255,255,.65);text-decoration:none;font-size:inherit;padding:6px 0}
.footer-bottom .footer-privacy:hover,.footer-bottom .footer-privacy:focus-visible{color:var(--gold-light)}
