/* Najmex 2026-09-27: homepage hierarchy refresh. Existing premium visual language stays intact. */
body.nx-home .nx-home-slide{display:none}
body.nx-home .nx-home-slide.is-active{display:block;animation:nxHomeSlideIn .36s ease both}
@keyframes nxHomeSlideIn{from{opacity:.55}to{opacity:1}}

body.nx-home .nx-home-hero-nav{
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  margin-top:14px;
  padding:6px 8px;
  border:1px solid rgba(167,188,205,.72);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 20px rgba(16,55,83,.07);
  backdrop-filter:blur(9px);
}
body.nx-home .nx-home-hero-nav>button{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#eef5fb;
  color:#174d78;
  font:500 23px/1 Inter,system-ui,sans-serif;
  cursor:pointer;
}
body.nx-home .nx-home-hero-nav>button:hover,
body.nx-home .nx-home-hero-nav>button:focus-visible{background:#dfeefa;outline:2px solid #7ca7c8;outline-offset:2px}
body.nx-home .nx-home-hero-dots{display:flex;align-items:center;gap:6px;padding:0 2px}
body.nx-home .nx-home-hero-dots button{
  width:8px;
  height:8px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#adc0cf;
  cursor:pointer;
  transition:width .18s ease,background .18s ease;
}
body.nx-home .nx-home-hero-dots button.is-active{width:24px;background:#b78a2f}
body.nx-home .nx-home-hero-nav small{min-width:34px;color:#60798b;font-size:9px;font-weight:600;text-align:center}

body.nx-home .nx-home-owner-section{padding:58px 0 44px;background:linear-gradient(180deg,#fff 0,#f6f9fc 100%)}
body.nx-home .nx-home-owner-layout{
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:0;
  overflow:hidden;
  border:1px solid #dce7ef;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 42px rgba(13,49,78,.065);
}
body.nx-home .nx-home-owner-visual{position:relative;min-height:440px;margin:0;overflow:hidden;background:#e9eef2}
body.nx-home .nx-home-owner-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,rgba(7,43,72,.75) 100%)}
body.nx-home .nx-home-owner-visual img{display:block;width:100%;height:100%;min-height:440px;object-fit:cover}
body.nx-home .nx-home-owner-visual figcaption{position:absolute;z-index:2;left:24px;right:24px;bottom:22px;color:#fff}
body.nx-home .nx-home-owner-visual figcaption strong{display:block;color:#fff!important;font-size:25px;font-weight:600!important;letter-spacing:-.03em}
body.nx-home .nx-home-owner-visual figcaption span{display:block;margin-top:3px;color:#dce8f0;font-size:12px}
body.nx-home .nx-home-owner-copy{align-self:center;padding:46px 48px}
body.nx-home .nx-home-owner-copy h2{margin:0;max-width:760px;color:#123b5d;font-size:clamp(31px,3vw,46px);line-height:1.06;font-weight:600!important;letter-spacing:-.04em}
body.nx-home .nx-home-owner-copy>p:not(.nx-eyebrow){max-width:760px;margin:15px 0 22px;color:#526f83;font-size:14px;line-height:1.7}
body.nx-home .nx-home-owner-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:22px}
body.nx-home .nx-home-owner-points>span{display:grid;grid-template-columns:38px 1fr;column-gap:10px;align-items:center;padding:12px;border:1px solid #e0e9f0;border-radius:14px;background:#f9fbfd}
body.nx-home .nx-home-owner-points>span>.nx-icon{grid-row:1/3;width:22px;height:22px;margin:auto;color:#b4862c}
body.nx-home .nx-home-owner-points b{display:block;color:#173f60;font-size:11.5px;font-weight:600!important}
body.nx-home .nx-home-owner-points small{display:block;margin-top:3px;color:#667f91;font-size:9.5px;line-height:1.35}
body.nx-home .nx-home-owner-copy .nx-actions{align-items:center;gap:15px}

body.nx-home .nx53-community{padding-top:56px}
body.nx-home .nx53-community-card{position:relative}
body.nx-home .nx53-community-copy .nx-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px}

body.nx-home .nx-home-business-pricing-note{
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  margin-top:18px;
  padding:16px 18px;
  border:1px solid #dce7ef;
  border-radius:17px;
  background:linear-gradient(135deg,#f8fbfe,#fffaf0);
}
body.nx-home .nx-home-business-pricing-note>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#eaf3fb;color:#236b9e}
body.nx-home .nx-home-business-pricing-note>span .nx-icon{width:24px;height:24px}
body.nx-home .nx-home-business-pricing-note strong{display:block;color:#173f60;font-size:14px;font-weight:600!important}
body.nx-home .nx-home-business-pricing-note p{margin:4px 0 0;color:#60798c;font-size:11px;line-height:1.45}
body.nx-home .nx-home-business-pricing-note .nx-button{white-space:nowrap}

@media(max-width:1180px){
  body.nx-home .nx-home-owner-layout{grid-template-columns:1fr 1.15fr}
  body.nx-home .nx-home-owner-copy{padding:34px}
}
@media(max-width:900px){
  body.nx-home .nx-home-slide.is-active{display:flex;animation:none}
  body.nx-home .nx-home-owner-layout{grid-template-columns:1fr}
  body.nx-home .nx-home-owner-visual{min-height:340px}
  body.nx-home .nx-home-owner-visual img{min-height:340px}
  body.nx-home .nx-home-business-pricing-note{grid-template-columns:48px minmax(0,1fr)}
  body.nx-home .nx-home-business-pricing-note .nx-button{grid-column:1/-1;width:100%}
}
@media(max-width:700px){
  body.nx-home .nx-home-hero-nav{margin-top:12px}
  body.nx-home .nx-home-owner-section{padding:36px 0 30px}
  body.nx-home .nx-home-owner-layout{border-radius:18px}
  body.nx-home .nx-home-owner-visual{min-height:270px}
  body.nx-home .nx-home-owner-visual img{min-height:270px}
  body.nx-home .nx-home-owner-copy{padding:26px 20px}
  body.nx-home .nx-home-owner-copy h2{font-size:30px}
  body.nx-home .nx-home-owner-points{grid-template-columns:1fr}
  body.nx-home .nx-home-business-pricing-note{display:block}
  body.nx-home .nx-home-business-pricing-note>span{margin-bottom:10px}
  body.nx-home .nx-home-business-pricing-note .nx-button{margin-top:13px}
}
@media(prefers-reduced-motion:reduce){
  body.nx-home .nx-home-slide.is-active{animation:none}
  body.nx-home .nx-home-hero-dots button{transition:none}
}

/* Najmex homepage v3: wspólna szerokość, szybszy hero, mobile i scroll reveal. */
body.nx-home{
  --nx-home-content-width:1450px;
  --nx-home-slide-duration:4800ms;
}
body.nx-home main{overflow:clip}
body.nx-home main > .nx52-hero{
  width:min(var(--nx-home-content-width),calc(100% - 44px));
  margin:22px auto 0;
  border-radius:26px;
  overflow:hidden;
  background:transparent;
}
body.nx-home main > section:not(.nx52-hero) > .nx-container,
body.nx-home main > section:not(.nx52-hero) .nx-container{
  width:min(var(--nx-home-content-width),calc(100% - 44px))!important;
  max-width:var(--nx-home-content-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.nx-home .nx52-hero-stage{
  border-radius:26px!important;
  overflow:hidden;
}
body.nx-home .nx-home-slide.is-active{
  animation:nxHomeSlidePremium .52s cubic-bezier(.22,.78,.24,1) both;
}
@keyframes nxHomeSlidePremium{
  from{opacity:.25;transform:translateX(12px)}
  to{opacity:1;transform:translateX(0)}
}
body.nx-home .nx-home-slide.is-active .nx52-hero-photo img{
  animation:nxHomePhotoIn .85s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes nxHomePhotoIn{
  from{transform:scale(1.018)}
  to{transform:scale(1)}
}
body.nx-home .nx-anchor-alias{position:absolute;top:-90px}
body.nx-home #twoj-wynajem,
body.nx-home #ogloszenia,
body.nx-home #obsluga-najmu,
body.nx-home #dla-biznesu,
body.nx-home #pricing,
body.nx-home #kontakt{scroll-margin-top:92px}

/* Aktywna kropka jest jednocześnie subtelnym paskiem czasu. */
body.nx-home .nx-home-hero-dots button{position:relative;overflow:hidden}
body.nx-home .nx-home-hero-dots button.is-active{background:#d7e1e9}
body.nx-home .nx-home-hero-dots button.is-active::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:#b78a2f;
  transform-origin:left center;
  animation:nxHeroProgress var(--nx-home-slide-duration) linear forwards;
}
body.nx-home .nx-home-hero-slider.is-paused .nx-home-hero-dots button.is-active::after{animation-play-state:paused}
@keyframes nxHeroProgress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
body.nx-home .nx-home-hero-toggle{
  display:grid!important;
  place-items:center;
  width:30px!important;
  height:30px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff7e7!important;
  color:#8a6421!important;
  font:600 12px/1 system-ui,sans-serif!important;
  cursor:pointer;
}
body.nx-home .nx-home-hero-toggle:hover,
body.nx-home .nx-home-hero-toggle:focus-visible{background:#f5e7c7!important;outline:2px solid #cba75d;outline-offset:2px}

/* Sekcje wchodzą delikatnie jedna po drugiej podczas scrollowania. */
body.nx-home.nx-home-reveal-ready .nx-home-reveal{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .72s cubic-bezier(.2,.7,.2,1),transform .72s cubic-bezier(.2,.7,.2,1);
  will-change:opacity,transform;
}
body.nx-home.nx-home-reveal-ready .nx-home-reveal.is-visible{
  opacity:1;
  transform:none;
}

/* Publiczne menu strony głównej: czytelne nazwy i spójny rytm. */
body.nx-home .nx-public-menu>a{white-space:nowrap}
body.nx-home .nx-public-menu>a[href*="#twoj-wynajem"]{color:#8d6927}

@media(max-width:1180px){
  body.nx-home main > .nx52-hero,
  body.nx-home main > section:not(.nx52-hero) > .nx-container,
  body.nx-home main > section:not(.nx52-hero) .nx-container{
    width:min(100% - 32px,var(--nx-home-content-width))!important;
  }
}

@media(max-width:700px){
  body.nx-home main > .nx52-hero{
    width:calc(100% - 20px)!important;
    margin-top:10px;
    border-radius:19px;
  }
  body.nx-home main > section:not(.nx52-hero) > .nx-container,
  body.nx-home main > section:not(.nx52-hero) .nx-container{
    width:calc(100% - 24px)!important;
  }
  body.nx-home .nx52-hero-stage{border-radius:19px!important}
  body.nx-home .nx52-hero-copy{padding:22px 16px 16px!important}
  body.nx-home .nx52-hero h1{font-size:clamp(31px,9.2vw,38px)!important;line-height:1.07!important}
  body.nx-home .nx52-hero-lead{font-size:13.5px!important;line-height:1.55!important;margin:13px 0 15px!important}
  body.nx-home .nx52-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.nx-home .nx52-btn{width:100%;justify-content:center;text-align:center}
  body.nx-home .nx52-hero-photo{height:245px!important}
  body.nx-home .nx52-hero-photo img{object-position:center 32%!important}
  body.nx-home .nx52-benefit-panel,
  body.nx-home .nx52-start-grid{display:none!important}
  body.nx-home .nx-home-hero-nav{
    width:100%;
    justify-content:center;
    gap:7px;
    margin:12px 0 0;
    padding:6px;
    background:rgba(255,255,255,.9);
  }
  body.nx-home .nx-home-hero-dots{flex:1;justify-content:center}
  body.nx-home .nx-home-owner-copy{padding:25px 19px!important}
  body.nx-home .nx-home-owner-copy h2{font-size:30px!important}
  body.nx-home.nx-home-reveal-ready .nx-home-reveal{transform:translateY(20px)}
}

@media(max-width:390px){
  body.nx-home .nx52-hero h1{font-size:29px!important}
  body.nx-home .nx52-hero-photo{height:220px!important}
  body.nx-home .nx-home-hero-nav small{display:none}
  body.nx-home .nx-home-hero-nav>button,
  body.nx-home .nx-home-hero-toggle{width:28px!important;height:28px!important}
}

@media(prefers-reduced-motion:reduce){
  body.nx-home .nx-home-slide.is-active,
  body.nx-home .nx-home-slide.is-active .nx52-hero-photo img,
  body.nx-home .nx-home-hero-dots button.is-active::after{animation:none!important}
  body.nx-home.nx-home-reveal-ready .nx-home-reveal{opacity:1!important;transform:none!important;transition:none!important}
}

/* Najmex homepage v4: każdy slajd HERO ma tę samą wysokość. */
body.nx-home{--nx-home-slide-duration:4200ms}
@media(min-width:901px){
  body.nx-home .nx52-hero-stage{height:690px!important;min-height:690px!important;max-height:690px!important}
  body.nx-home .nx52-hero-copy{max-height:690px;overflow:hidden}
}
@media(min-width:701px) and (max-width:900px){
  body.nx-home .nx52-hero-stage{min-height:0!important}
  body.nx-home .nx52-hero-copy{min-height:350px!important}
  body.nx-home .nx52-hero-photo{height:420px!important;flex:0 0 420px}
}
@media(max-width:700px){
  body.nx-home .nx52-hero-copy{min-height:370px!important;display:flex;flex-direction:column}
  body.nx-home .nx52-hero-actions{margin-top:auto}
  body.nx-home .nx-home-hero-nav{flex:0 0 auto}
  body.nx-home .nx52-hero-photo{height:245px!important;flex:0 0 245px}
}
@media(max-width:390px){
  body.nx-home .nx52-hero-copy{min-height:355px!important}
  body.nx-home .nx52-hero-photo{height:220px!important;flex-basis:220px}
}


/* Najmex homepage PRE-LAUNCH: równy hero desktop/mobile, bez nachodzenia. */
body.nx-home .nx52-hero-stage{isolation:isolate}
@media(min-width:1181px){
  body.nx-home .nx52-hero-stage{
    height:700px!important;
    min-height:700px!important;
    max-height:700px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.04fr) minmax(520px,.96fr)!important;
    align-items:stretch!important;
    background:linear-gradient(110deg,#f8fbff 0%,#edf5fc 49.8%,#f5efe9 50%,#f0e8e1 100%)!important;
  }
  body.nx-home .nx52-hero-stage::before{
    z-index:1!important;
    background:linear-gradient(90deg,rgba(248,251,255,.98) 0%,rgba(248,251,255,.96) 43%,rgba(248,251,255,.28) 52%,rgba(248,251,255,0) 61%)!important;
  }
  body.nx-home .nx52-hero-copy{
    grid-column:1!important;
    width:auto!important;
    height:100%!important;
    max-height:none!important;
    overflow:visible!important;
    padding:54px 48px 202px clamp(42px,4.4vw,72px)!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
  }
  body.nx-home .nx52-hero-copy .nx52-hero-actions{margin-top:0!important}
  body.nx-home .nx-home-hero-nav{margin-top:18px!important}
  body.nx-home .nx52-hero-photo{
    position:relative!important;
    inset:auto!important;
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    height:700px!important;
    min-height:700px!important;
    align-self:stretch!important;
    overflow:hidden!important;
    z-index:0!important;
  }
  body.nx-home .nx52-hero-photo::after{
    background:linear-gradient(90deg,rgba(238,246,253,.45) 0%,rgba(255,255,255,0) 16%)!important;
  }
  body.nx-home .nx52-hero-photo img{height:100%!important;min-height:100%!important;object-fit:cover!important}
  body.nx-home .nx52-benefit-panel{
    top:28px!important;
    right:28px!important;
    width:min(310px,calc(48% - 54px))!important;
  }
  body.nx-home .nx52-start-grid{
    left:clamp(42px,4.4vw,72px)!important;
    bottom:24px!important;
    width:min(805px,calc(52% - 78px))!important;
    gap:10px!important;
  }
  body.nx-home .nx52-start-card{min-height:154px!important}
}
@media(min-width:901px) and (max-width:1180px){
  body.nx-home .nx52-hero-stage{
    height:720px!important;
    min-height:720px!important;
    max-height:720px!important;
  }
  body.nx-home .nx52-hero-copy{padding-bottom:218px!important}
  body.nx-home .nx52-hero-photo{height:720px!important}
  body.nx-home .nx52-benefit-panel{right:22px!important;width:285px!important}
  body.nx-home .nx52-start-grid{left:24px!important;width:min(720px,60vw)!important}
}
@media(min-width:701px) and (max-width:900px){
  body.nx-home .nx52-hero-stage{
    height:790px!important;
    min-height:790px!important;
    max-height:790px!important;
    display:flex!important;
    flex-direction:column!important;
  }
  body.nx-home .nx52-hero-copy{
    min-height:370px!important;
    max-height:370px!important;
    overflow:hidden!important;
    padding:34px 28px 24px!important;
    flex:0 0 370px!important;
  }
  body.nx-home .nx52-hero-photo{height:420px!important;min-height:420px!important;flex:0 0 420px!important}
}
@media(max-width:700px){
  body.nx-home .nx52-hero-stage{
    height:620px!important;
    min-height:620px!important;
    max-height:620px!important;
    display:flex!important;
    flex-direction:column!important;
  }
  body.nx-home .nx52-hero-copy{
    min-height:375px!important;
    max-height:375px!important;
    flex:0 0 375px!important;
    overflow:hidden!important;
    padding:22px 16px 14px!important;
  }
  body.nx-home .nx52-hero-photo{height:245px!important;min-height:245px!important;flex:0 0 245px!important}
  body.nx-home .nx52-hero-lead{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
  body.nx-home .nx-home-hero-nav{margin-top:9px!important}
}
@media(max-width:390px){
  body.nx-home .nx52-hero-stage{height:575px!important;min-height:575px!important;max-height:575px!important}
  body.nx-home .nx52-hero-copy{min-height:355px!important;max-height:355px!important;flex-basis:355px!important}
  body.nx-home .nx52-hero-photo{height:220px!important;min-height:220px!important;flex-basis:220px!important}
  body.nx-home .nx52-hero-lead{-webkit-line-clamp:4}
}

/* Najmex homepage 2026-09-30: tylko aktywny slajd HERO może zajmować miejsce.
   Ta reguła musi być po wcześniejszych display:flex/grid!important. */
body.nx-home .nx-home-hero-slider>.nx-home-slide:not(.is-active){display:none!important;visibility:hidden!important}
body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active{visibility:visible!important}
@media(min-width:1181px){body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active{display:grid!important}}
@media(max-width:1180px){body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active{display:flex!important}}


/* Najmex 2026-09-30 PATCH: slider HERO - jeden slajd naraz na desktopie, tablecie i telefonie. */
body.nx-home .nx-home-hero-slider{
  position:relative!important;
  display:block!important;
  overflow:hidden!important;
}
body.nx-home .nx-home-hero-slider>.nx-home-slide{
  width:100%!important;
  margin:0!important;
}
body.nx-home .nx-home-hero-slider>.nx-home-slide[hidden],
body.nx-home .nx-home-hero-slider>.nx-home-slide[aria-hidden="true"],
body.nx-home .nx-home-hero-slider>.nx-home-slide:not(.is-active){
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active[aria-hidden="false"]{
  visibility:visible!important;
  pointer-events:auto!important;
}
@media(min-width:1181px){
  body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active[aria-hidden="false"]{
    display:grid!important;
    height:700px!important;
    min-height:700px!important;
    max-height:700px!important;
  }
}
@media(min-width:901px) and (max-width:1180px){
  body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active[aria-hidden="false"]{
    display:flex!important;
    height:720px!important;
    min-height:720px!important;
    max-height:720px!important;
  }
}
@media(min-width:701px) and (max-width:900px){
  body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active[aria-hidden="false"]{
    display:flex!important;
    height:790px!important;
    min-height:790px!important;
    max-height:790px!important;
  }
}
@media(max-width:700px){
  body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active[aria-hidden="false"]{
    display:flex!important;
    height:620px!important;
    min-height:620px!important;
    max-height:620px!important;
  }
}
@media(max-width:390px){
  body.nx-home .nx-home-hero-slider>.nx-home-slide.is-active[aria-hidden="false"]{
    height:575px!important;
    min-height:575px!important;
    max-height:575px!important;
  }
}
