/* R7361 - index only. The mobile catalogue scroll engines and bottom navigation are untouched. */
#wszystkie-czelendze .template-card--hero3d{cursor:pointer}
#wszystkie-czelendze .template-card--hero3d:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
#wszystkie-czelendze .template-card__actions{grid-template-columns:minmax(0,1fr)!important}
#wszystkie-czelendze .template-card__actions .btn{width:100%!important}
@media(max-width:820px){
  #wszystkie-czelendze .catalogue-mobile-row>.template-card{min-height:185px!important}
  #wszystkie-czelendze .template-card__actions{padding-top:4px!important;margin-top:auto!important}
  #wszystkie-czelendze .template-card__actions .btn{min-height:39px!important;height:39px!important}
}
@media(min-width:821px){
  body.home-desktop-r7 #main{display:flex!important;flex-direction:column!important;gap:0!important;align-items:stretch!important}
  body.home-desktop-r7 #main > *{order:30}
  body.home-desktop-r7 #main > #top{order:1}
  body.home-desktop-r7 #main > #wszystkie-czelendze{order:2}
  body.home-desktop-r7 #main > .home-auth-section{order:3}
  body.home-desktop-r7 #main > #zapis-dnia-podglad{order:4}
  body.home-desktop-r7 #main > #galeria{order:5}
  body.home-desktop-r7 #main > #mini-gry{order:6}
  body.home-desktop-r7 #main > #homeDesktopMore{order:7}
  body.home-desktop-r7 #main > .home-promo-section{order:8}
  body.home-desktop-r7 #main > .home-r8-final-puzzle-stage{order:9}
  body.home-desktop-r7 #main > .home-story-final{order:10}
  /* The puzzle occupies the left part of the hero, not the artwork side. */
  body.home-story-v2 .home-story-puzzle[data-anchor="hero-right"]{
    --story-left:17.5vw!important;--story-top:43vh!important;
    --story-width:clamp(220px,28vw,450px)!important;--story-rotate:-3deg!important;
  }
  body.home-desktop-r7 #top.home-refresh-hero{min-height:565px!important;padding:38px 0 48px!important}
  body.home-desktop-r7 #top .home-refresh-hero__inner{
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    padding-left:calc(32% + 22px)!important;padding-right:clamp(24px,3.5vw,62px)!important;
    width:min(1540px,100%)!important;max-width:1540px!important;min-height:0!important;
  }
  body.home-desktop-r7 #top .home-refresh-hero__visual,
  body.home-desktop-r7 #top .home-refresh-hero__copy{
    width:100%!important;max-width:910px!important;margin-left:0!important;margin-right:0!important;
  }
  body.home-desktop-r7 #top .home-refresh-hero__visual{min-height:0!important;margin-bottom:-8px!important;align-items:center!important}
  body.home-desktop-r7 #top .home-r3-hero-carousel{width:min(480px,54vw)!important;max-width:100%!important;aspect-ratio:1/1!important}
  body.home-desktop-r7 #top .home-r3-hero-photo{width:100%!important;height:100%!important;object-fit:contain!important}
  body.home-desktop-r7 #top h1{font-size:clamp(30px,3.4vw,50px)!important;line-height:1.03!important;max-width:790px!important}
  body.home-desktop-r7 #top .home-refresh-hero__lead{max-width:780px!important;line-height:1.45!important;margin-bottom:14px!important}
  body.home-desktop-r7 #top .home-showcase-desktop-copy{display:none!important}
  body.home-desktop-r7 #top .home-showcase-mobile-copy{display:inline!important}
  body.home-desktop-r7 #top .home-refresh-hero__domain,
  body.home-desktop-r7 #top .home-hero-promise,
  body.home-desktop-r7 #top .home-beta-short{display:none!important}
  body.home-desktop-r7 #top .home-hero-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:10px!important}
  body.home-desktop-r7 #top .home-hero-actions a[href="#galeria"]{display:none!important}
  body.home-desktop-r7 #top .home-marta-about-cta{display:inline-flex!important}
  body.home-desktop-r7 #top .home-beta-details{margin-top:10px!important}
  /* Preserve both original desktop gallery engines. Their mixed-image rails,
     lightboxes, arrows and game links must not be duplicated by legacy tabs. */
  body.home-desktop-r7 #homeDesktopMore{width:min(1180px,calc(100% - 40px));margin:38px auto 54px;display:block}
  body.home-desktop-r7 #homeDesktopMore .home-desktop-more__head{margin:0 0 22px}
  body.home-desktop-r7 #homeDesktopMore h2{font-size:clamp(25px,2.5vw,37px);margin:6px 0 8px}
  body.home-desktop-r7 #homeDesktopMore .home-desktop-more__item{border:1px solid var(--border);border-radius:17px;margin:12px 0;background:var(--surface);overflow:clip;content-visibility:visible}
  body.home-desktop-r7 #homeDesktopMore .home-desktop-more__item>summary{cursor:pointer;padding:18px 21px;font-size:16px;font-weight:800;line-height:1.3;color:var(--text);list-style-position:inside}
  body.home-desktop-r7 #homeDesktopMore .home-desktop-more__item[open]>summary{border-bottom:1px solid var(--border);color:var(--orange)}
  body.home-desktop-r7 #homeDesktopMore .home-desktop-more__item>.home-section{width:100%!important;max-width:100%!important;margin:0!important;padding:25px!important;border-radius:0!important}
  body.home-desktop-r7 #homeDesktopMore .home-desktop-more__item>section{width:100%!important;max-width:100%!important;margin:0!important;padding:25px!important}
  body.home-desktop-r7 #wszystkie-czelendze{margin-top:0!important}
  body.home-desktop-r7 #wszystkie-czelendze .template-card{min-height:305px!important}
  body.home-desktop-r7 #wszystkie-czelendze .template-card__actions{margin-top:10px!important}
  body.home-desktop-r7 #mini-gry{margin-top:24px!important}
}
@media(min-width:821px) and (max-width:1100px){
 body.home-desktop-r7 #top .home-refresh-hero__inner{padding-left:35%!important;padding-right:20px!important}
 body.home-desktop-r7 #top .home-r3-hero-carousel{width:min(350px,42vw)!important}
 body.home-desktop-r7 #top h1{font-size:clamp(26px,3.5vw,36px)!important}
 body.home-story-v2 .home-story-puzzle[data-anchor="hero-right"]{--story-left:17vw!important;--story-width:clamp(200px,29vw,340px)!important}
}
#top,#wszystkie-czelendze,#homeRegistration,#zapis-dnia-podglad,#galeria,#mini-gry,#faq,#homeDesktopMore,[id]{scroll-margin-top:calc(var(--home-unified-nav-height,68px) + 15px)}
