/* PIROHOVIE V28 – pagewrap, editorial rhythm, baby icon and one fire sound. */
:root{--v28-paper:#f4f0e7;--v28-forest:#284b39;--v28-wood:#795339}

/* 1. Photo stays edge-to-edge, but green panel CONTENT must end on the same
   right guide as .shell on the homepage. The gutter also works on 2K screens. */
@media(min-width:961px){
 .story-section{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;}
 .story-section .story-info{
   box-sizing:border-box!important;min-width:0!important;
   padding:clamp(46px,5vw,86px)
     max(clamp(26px,5.5vw,104px),calc((100vw - 1640px)/2 + 104px))
     clamp(46px,5vw,86px) clamp(27px,3vw,60px)!important;
 }
 .story-section .story-info-inner{min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;}
 .story-section .story-info-inner>h2{font-size:clamp(34px,2.65vw,54px)!important;line-height:1.12!important;
   hyphens:auto;overflow-wrap:normal;max-width:100%!important;text-wrap:pretty!important;}
 .story-section .story-info-inner>p{max-width:100%!important;}
 .story-section .story-info-inner .story-stats{width:100%!important;max-width:100%!important;
   display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(7px,1.1vw,18px)!important;}
 .story-section .story-stats>div{min-width:0!important;overflow:visible;}
 .story-section .story-stats strong{font-size:clamp(29px,2.8vw,51px)!important;letter-spacing:-.035em!important;}
 .story-section .story-stats span{font-size:clamp(8px,.65vw,11px)!important;line-height:1.35!important;
   overflow-wrap:anywhere;}
}
@media(min-width:961px) and (max-width:1160px){
 .story-section .story-info{padding-right:5.5vw!important;padding-left:28px!important;}
 .story-section .story-info-inner>h2{font-size:34px!important;}
 .story-section .story-info-inner .story-stats strong{font-size:30px!important;}
}

/* 2. Center detox content as ONE compact group, not three independently
   margin-auto positioned blocks (that created the excessive empty gap). */
.immersion .immersion-inner{
 inset:0!important;min-height:100%!important;display:flex!important;
 flex-direction:column!important;align-items:center!important;justify-content:center!important;
 gap:0!important;padding:clamp(25px,4vw,65px) 24px!important;
 text-align:center!important;
}
.immersion .immersion-inner .v21-clean-kicker{margin:0 auto 0!important;align-self:center!important;
 text-align:center!important;width:max-content;max-width:100%;}
.immersion .immersion-inner h2{
 display:block!important;flex:0 0 auto!important;margin:12px auto 17px!important;
 width:100%!important;max-width:min(1050px,95%)!important;text-align:center!important;
 line-height:1.1!important;text-wrap:balance!important;
}
.immersion .immersion-inner .detox-book{
 flex:0 0 auto!important;margin:0 auto!important;align-self:center!important;
}
@media(max-width:700px){
 .immersion .immersion-inner{min-height:100%!important;padding:24px 17px!important;}
 .immersion .immersion-inner h2{font-size:clamp(37px,9vw,61px)!important;margin:12px auto 15px!important;}
}


/* 3. Experiences listing: its existing return button belongs at the right
   edge of the pagewrap, NOT nested beside the heading (old JS moved it).
   Fit 'Zážitky na Krpáčove.' in one row on desktop. */
@media(min-width:901px){
 .experience-v15 .experience-intro,
 .experience-v15 .experience-intro.v28-experience-heading-with-back{
   display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
   width:100%!important;max-width:100%!important;align-items:center!important;
   gap:clamp(16px,2.4vw,38px)!important;
 }
 .experience-v15 .experience-intro>div{min-width:0!important;max-width:none!important;}
 .experience-v15 .experience-intro h1{
   font-size:clamp(46px,5vw,83px)!important;letter-spacing:-.064em!important;
   line-height:1.07!important;white-space:nowrap!important;
   margin-bottom:clamp(20px,2.3vw,34px)!important;
 }
 .experience-v15 .experience-intro .experience-back-cinema{
   grid-column:2!important;justify-self:end!important;align-self:center!important;
   max-width:100%!important;margin:0!important;
 }
}
@media(max-width:900px){
 .experience-v15 .experience-intro{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
 .experience-v15 .experience-intro>div{max-width:100%!important;min-width:0!important;}
 .experience-v15 .experience-intro h1{font-size:clamp(44px,7vw,66px)!important;white-space:normal!important;}
 .experience-v15 .experience-intro .experience-back-cinema{grid-column:1!important;justify-self:start!important;margin:0!important;}
}

/* 3. The legal/privacy back button never forces the h1 outside the pagewrap.
   "Ochrana osobných" and "údajov" can wrap naturally. */
.legal-page:not(.about-v12-page) .legal-content{min-width:0!important;max-width:1510px!important;}
.legal-page:not(.about-v12-page) .legal-content .v23-heading-with-back{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 align-items:center!important;justify-content:stretch!important;gap:clamp(18px,3vw,45px)!important;
 max-width:100%!important;
}
.legal-page:not(.about-v12-page) .legal-content .v23-heading-with-back>h1{
 min-width:0!important;max-width:960px!important;width:100%!important;flex:none!important;
 overflow-wrap:normal!important;hyphens:none!important;text-wrap:balance!important;
 font-size:clamp(46px,5.5vw,91px)!important;line-height:1.06!important;
 margin:30px 0 36px!important;
}
.legal-page:not(.about-v12-page) .legal-content .v23-heading-back{
 justify-self:end!important;max-width:100%!important;white-space:normal!important;text-align:center!important;
}
.legal-page:not(.about-v12-page) .legal-body{
 max-width:min(100%,1080px)!important;overflow-wrap:break-word!important;
 font-size:clamp(16px,1.2vw,20px)!important;line-height:1.8!important;
}
@media(max-width:800px){
 .legal-page:not(.about-v12-page) .legal-content .v23-heading-with-back{
   grid-template-columns:minmax(0,1fr)!important;gap:0!important;
 }
 .legal-page:not(.about-v12-page) .legal-content .v23-heading-back{justify-self:start!important;margin-bottom:20px!important;}
 .legal-page:not(.about-v12-page) .legal-content .v23-heading-with-back>h1{
   font-size:clamp(41px,8vw,70px)!important;margin:20px 0!important;
 }
}

/* 5,7. About: one uniform header style and smaller paragraph/section gaps. */
.about-v12-page .about-copy h2.v27-about-first-heading{
 font:500 clamp(22px,2.1vw,34px)/1.26 Georgia,'Times New Roman',serif!important;
 color:#274332!important;letter-spacing:normal!important;text-transform:none!important;
 margin:0 0 14px!important;
}
.about-v12-page .about-v12-block{
 margin:0 0 clamp(7px,1vw,16px)!important;padding:clamp(9px,1.3vw,20px) 0!important;
 gap:clamp(15px,3vw,48px)!important;border-bottom-color:#80927f14!important;
}
.about-v12-page .about-copy p{margin-top:0!important;margin-bottom:12px!important;}
.about-v12-page .about-copy h2{margin-bottom:10px!important;}
.about-v12-page .v27-about-section-link{margin-top:7px!important;}

/* 6. Matching vector illustration: smiling baby above a colourful square crib. */
.about-v12-page .about-svg-baby{overflow:visible;}
.about-v12-page .v28-baby-head{transform-box:fill-box;transform-origin:center bottom;
 animation:v28BabyPeep 2.9s ease-in-out infinite alternate;}
.about-v12-page .v28-baby-hands{transform-box:fill-box;transform-origin:center center;
 animation:v28BabyWave 2.6s ease-in-out infinite alternate;}
@keyframes v28BabyPeep{from{transform:translateY(2px) rotate(-3deg)}to{transform:translateY(-6px) rotate(3deg)}}
@keyframes v28BabyWave{from{transform:rotate(-4deg)}to{transform:rotate(5deg)}}

/* 10. Both footers use exactly the same shell edges as homepage content.
   Don't let the legacy V26 zero-padding contract shift the logo left/right. */
.site-footer>.shell,.v23-full-footer>.shell{
 box-sizing:border-box!important;width:100%!important;max-width:1640px!important;
 margin-inline:auto!important;padding-inline:clamp(26px,5.5vw,104px)!important;
}
.site-footer .footer-brand,.v23-full-footer .footer-brand{
 min-width:0!important;margin:0!important;padding:0!important;justify-self:start!important;text-align:left!important;
}
.site-footer .footer-brand img,.v23-full-footer .footer-brand img{
 display:block!important;margin:0!important;max-width:100%!important;transform:translateX(-4px);
}
@media(max-width:700px){
 .site-footer>.shell,.v23-full-footer>.shell{padding-inline:25px!important;}
}

/* 11. Sleeping owl: light side-to-side swaying and floating Zzz on hover/focus. */
.forest-branch-button .branch-owl{overflow:visible!important;pointer-events:auto!important;cursor:pointer;}
.forest-branch-button .branch-owl::after{
 content:'Zzz';position:absolute;left:70%;top:-24px;display:block;
 color:#3a6044;font:italic 800 17px/1 Georgia,serif;letter-spacing:.08em;
 opacity:0;pointer-events:none;white-space:nowrap;
}
.forest-branch-button:is(:hover,:focus-visible) .branch-owl::after{
 animation:v28SleepZzz 1.8s ease-in-out infinite;
}
.forest-branch-button:is(:hover,:focus-visible) .branch-owl>svg{
 animation:v28OwlWobble 3.2s ease-in-out infinite alternate;
 transform-origin:50% 85%;
}
@keyframes v28SleepZzz{0%{transform:translate(0,13px) scale(.78);opacity:0}25%{opacity:.88}75%{opacity:.95}100%{transform:translate(24px,-31px) scale(1.17);opacity:0}}
@keyframes v28OwlWobble{0%{transform:rotate(-6deg)}100%{transform:rotate(6deg)}}
@media(prefers-reduced-motion:reduce){
 .about-v12-page .v28-baby-head,.about-v12-page .v28-baby-hands,
 .forest-branch-button .branch-owl::after,.forest-branch-button .branch-owl>svg{animation:none!important;}
 .forest-branch-button:is(:hover,:focus-visible) .branch-owl::after{opacity:1;transform:none;}
}
