
:root{
  --navy:#173a6d;
  --navy2:#214b79;
  --teal:#178fa2;
  --text:#233a59;
  --muted:#6d7f93;
  --line:#e2eaf2;
  --soft:#f7fbff;
  --shadow:0 16px 38px rgba(38,72,108,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
.container{width:min(1180px,calc(100% - 36px));margin-inline:auto}
.eyebrow,.overline{display:inline-block;font-size:.72rem;letter-spacing:.12em;font-weight:900;color:#3388a6}
.section-space{padding:54px 0}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}
.section-heading h2{margin:5px 0 0;font-size:clamp(1.8rem,3vw,2.6rem);color:var(--navy)}
.section-intro{max-width:560px;color:var(--muted);line-height:1.6}
.primary-btn,.login-btn,.generator-btn,.contact-submit{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:0;border-radius:13px;padding:12px 18px;background:linear-gradient(135deg,#23aaa5,#178da6);
  color:#fff;font-weight:800;cursor:pointer
}

/* shared brand/header */
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-mark{display:flex;gap:3px;align-items:flex-end}
.brand-mark>span{display:block;width:8px;border-radius:99px}
.brand-mark>span:nth-child(1){height:20px;background:#4da9dd}
.brand-mark>span:nth-child(2){height:27px;background:#6cc8a0}
.brand-mark>span:nth-child(3){height:16px;background:#f1b857}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-text strong{font-size:1.25rem;color:var(--navy)}
.brand-text small{font-size:.58rem;letter-spacing:.12em;color:#8291a2;margin-top:5px}
.site-header,.blog-header{
  position:sticky;top:0;z-index:60;background:rgba(255,255,255,.97);
  backdrop-filter:blur(12px);border-bottom:1px solid #e7edf3
}
.nav-wrap,.blog-brand-row{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.main-nav{display:flex;gap:19px;align-items:center}
.main-nav a{font-size:.83rem;font-weight:800;color:#546d86}
.main-nav a:hover{color:var(--teal)}
.nav-actions{display:flex;align-items:center;gap:9px}
.icon-btn,.menu-btn{border:0;background:#f5f8fb;border-radius:11px;width:39px;height:39px;cursor:pointer}
.menu-btn{display:none}
.login-btn{padding:10px 14px;font-size:.8rem}
.site-footer{background:#122c4f;color:#fff;margin-top:0}
.footer-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:30px;align-items:center;padding:34px 0}
.footer-links{display:flex;gap:18px;flex-wrap:wrap}
.footer-links a{color:#d2ddeb;font-size:.8rem}
.footer-brand .brand-text strong{color:#fff}
.footer-brand .brand-text small{color:#9eb1c7}
.copyright{border-top:1px solid rgba(255,255,255,.12);padding:15px 0 22px;color:#aebbd0;font-size:.75rem}

/* portal home */
.hero{background:#f7fbff}
.slider{position:relative;overflow:hidden;min-height:530px}
.slide{display:none;min-height:530px;background:linear-gradient(90deg,#f3fbff,#edf8ff 50%,#eef9f4)}
.slide.active{display:block}
.slide-inner{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:50px;min-height:530px;padding-block:46px}
.slide-copy h1{font-size:clamp(2.8rem,5vw,4.6rem);line-height:.98;letter-spacing:-.045em;color:var(--navy);margin:12px 0 18px}
.slide-copy p{color:#62758c;line-height:1.7;font-size:1rem;max-width:620px}
.slide-photo-wrap{position:relative}
.slide-photo{width:100%;height:390px;object-fit:cover;border-radius:32px;box-shadow:0 22px 50px rgba(39,74,109,.15)}
.photo-note{position:absolute;right:12px;bottom:15px;background:rgba(255,255,255,.82);padding:10px 14px;border-radius:14px;color:#2b78a5;font-family:cursive;transform:rotate(-3deg)}
.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 8px 24px rgba(30,60,90,.15);cursor:pointer}
.slider-arrow.prev{left:14px}.slider-arrow.next{right:14px}
.slider-dots{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);display:flex;gap:8px;z-index:5}
.dot{width:9px;height:9px;border-radius:50%;border:0;background:#a9bacb;cursor:pointer}.dot.active{background:#177e9b}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.category-card{padding:24px;border-radius:20px;min-height:185px;transition:.2s;border:1px solid rgba(40,70,100,.06)}
.category-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.category-card.blue{background:#eaf5ff}.category-card.green{background:#ebf8ef}.category-card.peach{background:#fff2e7}.category-card.violet{background:#f2edff}
.category-icon{font-size:2rem}
.category-card h3{color:var(--navy);margin:14px 0 8px}
.category-card p{color:#65778c;line-height:1.55;font-size:.9rem}
.generator-section{padding:52px 0;background:#f8fbff}
.generator-card{display:grid;grid-template-columns:.8fr 1.2fr;gap:35px;background:linear-gradient(135deg,#eef7ff,#eef9f4);border:1px solid #dfeaf2;border-radius:28px;padding:34px}
.generator-visual{display:flex;gap:14px;align-items:center;justify-content:center;position:relative}
.paper{width:95px;aspect-ratio:3/4;background:#fff;border-radius:12px;display:grid;place-items:center;font-size:3rem;font-weight:900;box-shadow:0 10px 30px rgba(50,80,110,.12)}
.paper-a{color:#d85d5d}.paper-b{color:#4c83bf}.paper-c{color:#4b9f75}
.new-badge{position:absolute;top:0;right:12%;background:#f0b74d;color:#fff;border-radius:999px;padding:6px 9px;font-size:.7rem;font-weight:900}
.generator-copy h2{color:var(--navy);font-size:2rem;margin:8px 0 10px}
.generator-copy p{color:#64768b;line-height:1.65}
.generator-points{display:flex;gap:14px;flex-wrap:wrap;color:#526d84;font-size:.82rem;margin:15px 0}
.visual-inspiration{background:#fff}
.visual-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.visual-card{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 10px 28px rgba(40,70,100,.06)}
.visual-card img{height:220px;width:100%;object-fit:cover}
.visual-card-copy{padding:20px}.visual-card-copy h3{margin:0 0 8px;color:var(--navy)}
.visual-card-copy p{margin:0;color:#6b7b8d;line-height:1.55;font-size:.9rem}
.material-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.material-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}
.material-image{height:150px;background:linear-gradient(135deg,#eaf5ff,#eaf8ef)}
.material-content{padding:16px}.material-content h3{margin:0 0 7px;color:var(--navy)}.material-content p{color:#718095;font-size:.85rem}

/* blog navigation */
.blog-category-nav{border-top:1px solid #edf2f6;background:#fbfdff}
.blog-category-scroll{display:flex;gap:8px;overflow-x:auto;padding:10px 0;scrollbar-width:none}
.blog-category-scroll::-webkit-scrollbar{display:none}
.blog-topcat-link,.blog-topcat{
  flex:0 0 auto;border:1px solid #dfe7ef;background:#fff;color:#526d86;
  padding:9px 13px;border-radius:999px;font-size:.78rem;font-weight:800
}
.blog-topcat-link:hover,.blog-topcat-link.active,.blog-topcat.active{background:var(--navy);color:#fff;border-color:var(--navy)}

/* blog hero */

/* BLOG HERO CLASSIC: wygląd jak w pierwszych wersjach */
.blog-hero{
  padding:55px 0 46px;
  background:linear-gradient(90deg,#f4fbff 0%,#eef8ff 48%,#f3fbf7 100%);
}

.blog-hero-grid{
  display:grid;
  grid-template-columns:1fr .92fr;
  gap:46px;
  align-items:center;
}

.blog-hero h1{
  font-size:clamp(3rem,6vw,5rem);
  line-height:.96;
  letter-spacing:-.05em;
  color:var(--navy);
  margin:12px 0 18px;
}

.blog-hero p{
  font-size:1.05rem;
  line-height:1.7;
  color:#5f7187;
}

.blog-hero-image{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:30px;
  min-height:0;
  background:#eef5fa;
}

.blog-hero-image::before{
  display:none !important;
  content:none !important;
}

.blog-hero-image img{
  width:100% !important;
  height:330px !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
  border-radius:30px;
  box-shadow:var(--shadow);
  -webkit-mask-image:none !important;
  mask-image:none !important;
}

.blog-hand-note{
  position:absolute;
  right:14px;
  bottom:15px;
  z-index:2;
  background:rgba(255,255,255,.82);
  padding:10px 14px;
  border-radius:15px;
  color:#2475b9;
  font-family:cursive;
  transform:rotate(-4deg);
  box-shadow:0 8px 22px rgba(29,73,106,.10);
  backdrop-filter:none;
}


/* tools */
.blog-tools-section{padding:46px 0 22px;background:#fff}
.blog-tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.blog-tool-card{display:grid;grid-template-columns:110px 1fr;gap:18px;align-items:center;padding:20px;border-radius:22px;border:1px solid #e1e9f1;background:#fff;box-shadow:0 10px 28px rgba(38,72,108,.05);transition:.2s}
.blog-tool-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.tool-visual{min-height:118px;border-radius:18px;display:grid;place-items:center;overflow:hidden}
.letters-preview{grid-template-columns:repeat(3,1fr);gap:5px;padding:10px;background:linear-gradient(135deg,#eaf5ff,#eefaf4)}
.letters-preview span{width:100%;aspect-ratio:3/4;display:grid;place-items:center;background:#fff;border-radius:10px;font-size:1.7rem;font-weight:900;color:#2e5f8d}
.plan-preview,.sensory-preview{grid-template-columns:1fr 1fr;gap:8px;padding:12px}
.plan-preview{background:linear-gradient(135deg,#eef9f3,#eaf6ff)}.sensory-preview{background:linear-gradient(135deg,#f6efff,#eef7ff)}
.plan-preview span,.sensory-preview span{width:100%;aspect-ratio:1;display:grid;place-items:center;border-radius:12px;background:#fff;font-size:1.5rem}
.tool-kicker{font-size:.68rem;letter-spacing:.09em;font-weight:900;color:#4a89ad}
.tool-copy h3{margin:6px 0 8px;color:var(--navy);font-size:1.16rem}.tool-copy p{margin:0 0 12px;color:#6c7c90;line-height:1.5;font-size:.86rem}.tool-copy strong{color:#16849e;font-size:.82rem}

/* article lists */
.blog-section{padding:48px 0}.blog-light{background:#f8fbff}
.blog-list,.latest-five-list{display:grid;grid-template-columns:1fr;gap:18px}
.blog-card.simple-preview{display:grid;grid-template-columns:300px 1fr;min-height:220px;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(38,72,108,.06)}
.blog-card.simple-preview img{width:100%;height:100%;min-height:220px;object-fit:cover}
.blog-card-body{display:flex;flex-direction:column;justify-content:center;padding:28px 30px}
.blog-card-body h3{margin:0 0 12px;color:#193a6c;font-size:1.4rem;line-height:1.28}
.blog-card-body p{margin:0;color:#687a8f;line-height:1.65;font-size:.93rem;max-width:800px}
.read-more-simple{display:inline-block;margin-top:16px;color:#16849e;font-size:.84rem;font-weight:800}

/* category pages */
.category-blog-hero,.category-hero{padding:46px 0 34px;background:linear-gradient(90deg,#f5fbff,#eef8ff 50%,#f4fbf7);border-bottom:1px solid #e7eef5}
.category-blog-hero h1,.category-hero h1{margin:8px 0 10px;color:var(--navy);font-size:clamp(2.6rem,5vw,4.3rem);letter-spacing:-.04em}
.category-blog-hero p,.category-hero p{margin:0;color:#687a8d;line-height:1.6}
.category-content{padding:42px 0 70px}
.subcat-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:18px}
.subcat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.subcat-card{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.subcat-icon{width:38px;height:38px;border-radius:12px;background:#eef7ff;color:#2b86bd;display:grid;place-items:center;font-size:1.5rem;font-weight:900}
.subcat-card h3{margin:0 0 4px;color:#193b6d;font-size:1rem}.subcat-card p{margin:0;color:#8392a2;font-size:.8rem}
.empty-state{border:1px dashed #cad8e6;background:linear-gradient(180deg,#fbfdff,#f7fbff);border-radius:24px;padding:54px 28px;text-align:center}
.empty-state h2{color:var(--navy)}.empty-state p{color:#718197}

/* article */
.article-hero{padding:52px 0 36px;background:linear-gradient(180deg,#f5fbff,#fff)}
.article-narrow{max-width:900px}.breadcrumbs{display:flex;gap:8px;flex-wrap:wrap;color:#7c8c9f;font-size:.8rem;margin-bottom:22px}.breadcrumbs a{color:#2b7ea8;font-weight:700}
.article-label{display:inline-block;font-size:.68rem;letter-spacing:.08em;font-weight:900;padding:6px 9px;border-radius:999px;background:#eaf5ff;color:#287db2}
.article-hero h1{font-size:clamp(2.7rem,5vw,4.5rem);line-height:1.03;letter-spacing:-.04em;color:var(--navy);margin:14px 0 18px}
.article-lead{font-size:1.13rem;line-height:1.7;color:#61748a}
.article-meta-large{display:flex;gap:8px;color:#8a98a7;font-size:.8rem}
.article-main{padding:20px 0 70px}.article-layout{display:grid;grid-template-columns:minmax(0,760px) 260px;gap:45px;justify-content:center;align-items:start}
.article-cover{width:100%;height:400px;object-fit:cover;border-radius:24px;margin-bottom:32px}
.article-content p,.article-content li{color:#5f7187;line-height:1.8}
.article-content h2{font-size:1.75rem;color:#183a6d;margin:34px 0 12px}
.article-sources{margin-top:42px;padding:22px;border-radius:18px;background:#f7fbff;border:1px solid #dfebf4}
.article-sources h3{margin:0 0 10px;color:#173969}.article-sources li{margin:8px 0;color:#5f7187;line-height:1.45}.article-sources a{color:#167b9f;text-decoration:underline}
.article-disclaimer{margin-top:18px;font-size:.78rem;color:#8997a7;line-height:1.5}
.article-sidebar{position:sticky;top:115px;display:grid;gap:15px}.sidebar-box{border:1px solid var(--line);border-radius:18px;padding:18px;background:#fff}.sidebar-box.pastel{background:#f5fbff}.sidebar-box h3{margin:0 0 12px;color:#173969}.sidebar-box a{display:block;padding:8px 0;color:#6f8194;font-size:.84rem;border-bottom:1px solid #edf2f6}

/* contact */
.contact-blog-hero{padding-bottom:42px}.contact-page-section{padding:48px 0 70px;background:#f8fbff}
.contact-page-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:24px;align-items:start}
.contact-side-card,.php-form-card{background:#fff;border:1px solid #e1e9f1;border-radius:24px;padding:28px;box-shadow:0 12px 30px rgba(38,72,108,.06)}
.contact-side-card h2,.php-form-card h2{color:var(--navy);margin:8px 0 12px}
.contact-side-card p{color:#6c7d90;line-height:1.65}
.contact-side-items{display:grid;gap:12px;margin-top:22px}
.contact-side-items div{display:grid;grid-template-columns:40px 1fr;gap:3px 12px;align-items:center;padding:14px;background:#f8fbff;border-radius:14px}
.contact-side-items span{grid-row:1/3;width:40px;height:40px;display:grid;place-items:center;background:#eef7ff;border-radius:12px}
.contact-side-items strong{color:#23436f}.contact-side-items small{color:#7b8a9d}
.contact-form{display:grid;gap:14px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-form label{display:block;font-size:.82rem;font-weight:800;color:#35516f}
.contact-form input,.contact-form textarea{width:100%;margin-top:7px;border:1px solid #dfe8f1;border-radius:13px;padding:13px 14px;background:#fbfdff;color:#183052}
.contact-form textarea{min-height:180px;resize:vertical}.contact-form input:focus,.contact-form textarea:focus{outline:none;border-color:#3aa7ba;box-shadow:0 0 0 4px rgba(58,167,186,.09)}
.php-alert{padding:13px 15px;border-radius:12px;margin:14px 0 18px;font-size:.88rem;font-weight:700}.php-alert.success{background:#eaf8f1;color:#1d7551;border:1px solid #ccebdd}.php-alert.error{background:#fff0f0;color:#a83d3d;border:1px solid #f2cccc}
.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.contact-submit:disabled{opacity:.65;cursor:wait}

/* responsive */
@media(max-width:1000px){
  .main-nav{display:none}.menu-btn{display:inline-grid;place-items:center}
  .slide-inner,.blog-hero-grid,.generator-card,.contact-page-grid,.article-layout{grid-template-columns:1fr}
  .category-grid{grid-template-columns:1fr 1fr}.material-grid{grid-template-columns:1fr 1fr}.visual-grid{grid-template-columns:1fr 1fr}
  .blog-tools-grid{grid-template-columns:1fr}
  .article-sidebar{position:static}
}
@media(max-width:760px){
  .blog-hero-grid{grid-template-columns:1fr;gap:24px}
  .blog-hero-image{min-height:auto;justify-content:center}
  .blog-hero-image::before{inset:8px}
  .blog-hero-image img{max-width:100%;max-height:260px}
  .blog-hand-note{right:8px;bottom:6px;font-size:.88rem}

  .container{width:min(100% - 24px,1180px)}
  .footer-grid{grid-template-columns:1fr}.footer-links{gap:12px}
  .category-grid,.material-grid,.visual-grid,.subcat-grid{grid-template-columns:1fr}
  .blog-card.simple-preview{grid-template-columns:1fr}.blog-card.simple-preview img{height:230px;min-height:230px}
  .form-row{grid-template-columns:1fr}
  .slide-photo{height:280px}
  .slider,.slide,.slide-inner{min-height:auto}
  .slider-arrow{display:none}
  .section-heading{display:block}.section-intro{margin-top:8px}
  .blog-tool-card{grid-template-columns:90px 1fr}
  .article-cover{height:260px}
}












/* IMAGE LAYOUT V5: list previews are cropped image fragments, not stretched images */
.blog-card.simple-preview{
  display:grid;
  grid-template-columns:296px 1fr;
  min-height:216px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(38,72,108,.06);
  align-items:stretch;
}

.blog-card.simple-preview img{
  width:100%;
  height:216px;
  min-height:216px;
  max-height:216px;
  object-fit:cover;
  object-position:center;
  display:block;
}

.blog-card-body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px 28px;
}

.blog-card-body h3{
  margin:0 0 10px;
  color:#193a6c;
  font-size:1.32rem;
  line-height:1.25;
}

.blog-card-body p{
  margin:0;
  color:#687a8f;
  line-height:1.62;
  font-size:.92rem;
  max-width:800px;
}

.read-more-simple{
  display:inline-block;
  margin-top:14px;
  color:#16849e;
  font-size:.84rem;
  font-weight:800;
}

@media(max-width:760px){
  .blog-card.simple-preview{
    grid-template-columns:1fr;
  }
  .blog-card.simple-preview img{
    width:100%;
    height:210px;
    min-height:210px;
    max-height:210px;
  }
  .blog-card-body{
    padding:18px 20px 22px;
  }
}


@media(max-width:760px){
  .blog-hero-grid{
    grid-template-columns:1fr;
    gap:24px;
  }
  .blog-hero-image{
    border-radius:24px;
  }
  .blog-hero-image img{
    width:100% !important;
    height:250px !important;
    object-fit:cover !important;
    object-position:center !important;
    border-radius:24px;
  }
}


/* HERO FINAL OVERRIDE: zdjęcie wypełnia prawą stronę i zanika do lewej */
.blog-hero.compact-blog-hero{
  position:relative;
  overflow:hidden;
}

.blog-hero.compact-blog-hero .blog-hero-grid{
  display:grid !important;
  grid-template-columns:minmax(0,0.95fr) minmax(460px,1.2fr) !important;
  gap:20px !important;
  align-items:center !important;
}

.blog-hero.compact-blog-hero .blog-hero-image{
  position:relative;
  min-height:360px !important;
  height:360px !important;
  display:flex !important;
  align-items:stretch !important;
  justify-content:flex-end !important;
  overflow:hidden !important;
  border-radius:0 !important;
  background:transparent !important;
}

.blog-hero.compact-blog-hero .blog-hero-image img{
  width:calc(100% + 36px) !important;
  height:100% !important;
  margin-right:-36px !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center right !important;
  border-radius:0 !important;
  box-shadow:none !important;
  -webkit-mask-image:linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.18) 10%,
    rgba(0,0,0,0.55) 18%,
    rgba(0,0,0,0.9) 28%,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,1) 100%) !important;
  mask-image:linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.18) 10%,
    rgba(0,0,0,0.55) 18%,
    rgba(0,0,0,0.9) 28%,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,1) 100%) !important;
}

.blog-hero.compact-blog-hero .blog-hand-note{
  right:18px !important;
  bottom:18px !important;
}

@media(max-width:1000px){
  .blog-hero.compact-blog-hero .blog-hero-grid{
    grid-template-columns:1fr !important;
    gap:24px !important;
  }
  .blog-hero.compact-blog-hero .blog-hero-image{
    height:280px !important;
    min-height:280px !important;
    border-radius:24px !important;
  }
  .blog-hero.compact-blog-hero .blog-hero-image img{
    width:100% !important;
    margin-right:0 !important;
    border-radius:24px !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
  }
}


/* HERO FINAL V2: zdjęcie od górnej do dolnej krawędzi, bez deformacji */
.blog-hero.compact-blog-hero{
  position:relative;
  overflow:hidden;
  padding-top:0 !important;
  padding-bottom:0 !important;
  min-height:390px;
}

.blog-hero.compact-blog-hero .blog-hero-grid{
  min-height:390px;
  display:grid !important;
  grid-template-columns:minmax(0,0.95fr) minmax(480px,1.25fr) !important;
  gap:18px !important;
  align-items:stretch !important;
}

.blog-hero.compact-blog-hero .blog-hero-grid > div:first-child{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:56px 0;
  position:relative;
  z-index:3;
}

.blog-hero.compact-blog-hero .blog-hero-image{
  position:relative;
  height:auto !important;
  min-height:390px !important;
  align-self:stretch !important;
  display:block !important;
  overflow:hidden !important;
  border-radius:0 !important;
  background:transparent !important;
}

.blog-hero.compact-blog-hero .blog-hero-image img{
  position:absolute !important;
  inset:0 -42px 0 0 !important;
  width:calc(100% + 42px) !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  object-fit:cover !important;
  object-position:72% center !important;
  border-radius:0 !important;
  box-shadow:none !important;
  -webkit-mask-image:linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.10) 8%,
    rgba(0,0,0,0.42) 17%,
    rgba(0,0,0,0.82) 28%,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,1) 100%) !important;
  mask-image:linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.10) 8%,
    rgba(0,0,0,0.42) 17%,
    rgba(0,0,0,0.82) 28%,
    rgba(0,0,0,1) 42%,
    rgba(0,0,0,1) 100%) !important;
}

.blog-hero.compact-blog-hero .blog-hand-note{
  position:absolute !important;
  right:22px !important;
  bottom:20px !important;
  z-index:4 !important;
}

@media(max-width:1000px){
  .blog-hero.compact-blog-hero{
    padding:44px 0 0 !important;
    min-height:0;
  }

  .blog-hero.compact-blog-hero .blog-hero-grid{
    min-height:0;
    grid-template-columns:1fr !important;
    gap:24px !important;
  }

  .blog-hero.compact-blog-hero .blog-hero-grid > div:first-child{
    padding:0;
  }

  .blog-hero.compact-blog-hero .blog-hero-image{
    min-height:280px !important;
    height:280px !important;
    border-radius:24px 24px 0 0 !important;
  }

  .blog-hero.compact-blog-hero .blog-hero-image img{
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center !important;
    border-radius:24px 24px 0 0 !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
  }
}


/* HERO FINAL V3: bez rozciągania poziomego — proporcja zdjęcia 3:2 */
.blog-hero.compact-blog-hero{
  position:relative;
  overflow:hidden;
  padding:0 !important;
  min-height:390px;
}

.blog-hero.compact-blog-hero .blog-hero-grid{
  min-height:390px;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 585px !important;
  gap:0 !important;
  align-items:stretch !important;
}

.blog-hero.compact-blog-hero .blog-hero-grid > div:first-child{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:56px 46px 56px 0;
  position:relative;
  z-index:4;
}

.blog-hero.compact-blog-hero .blog-hero-image{
  position:relative !important;
  width:585px !important;
  height:390px !important;
  min-height:390px !important;
  overflow:hidden !important;
  border-radius:0 !important;
  background:transparent !important;
  align-self:stretch !important;
}

.blog-hero.compact-blog-hero .blog-hero-image img{
  position:absolute !important;
  inset:0 !important;
  width:585px !important;
  height:390px !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:0 !important;
  box-shadow:none !important;
  transform:none !important;
  -webkit-mask-image:linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.14) 9%,
    rgba(0,0,0,.48) 18%,
    rgba(0,0,0,.84) 29%,
    rgba(0,0,0,1) 43%,
    rgba(0,0,0,1) 100%) !important;
  mask-image:linear-gradient(90deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.14) 9%,
    rgba(0,0,0,.48) 18%,
    rgba(0,0,0,.84) 29%,
    rgba(0,0,0,1) 43%,
    rgba(0,0,0,1) 100%) !important;
}

.blog-hero.compact-blog-hero .blog-hand-note{
  right:18px !important;
  bottom:18px !important;
  z-index:5 !important;
}

@media(max-width:1000px){
  .blog-hero.compact-blog-hero{
    padding:44px 0 0 !important;
    min-height:0;
  }

  .blog-hero.compact-blog-hero .blog-hero-grid{
    min-height:0;
    grid-template-columns:1fr !important;
    gap:24px !important;
  }

  .blog-hero.compact-blog-hero .blog-hero-grid > div:first-child{
    padding:0;
  }

  .blog-hero.compact-blog-hero .blog-hero-image{
    width:100% !important;
    height:auto !important;
    aspect-ratio:3 / 2 !important;
    min-height:0 !important;
    border-radius:24px 24px 0 0 !important;
  }

  .blog-hero.compact-blog-hero .blog-hero-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    border-radius:24px 24px 0 0 !important;
    -webkit-mask-image:none !important;
    mask-image:none !important;
  }
}


/* NEW BLOG HEADER BANNER */
.blog-hero-banner{
  padding:28px 0 30px !important;
  background:linear-gradient(180deg,#f8fbff,#ffffff);
  overflow:hidden;
}

.blog-header-banner-wrap{
  width:100%;
  overflow:hidden;
  border-radius:28px;
  box-shadow:0 18px 44px rgba(31,72,110,.10);
  background:#f4f8fb;
}

.blog-header-banner-wrap img{
  width:100%;
  height:auto;
  display:block;
  object-fit:contain;
}

@media(max-width:760px){
  .blog-hero-banner{
    padding:16px 0 18px !important;
  }
  .blog-header-banner-wrap{
    border-radius:18px;
  }
}
