/* =========================================================
   HERO — EDUKURS
   wspólna baza + HOME dopasowany do wysokości ekranu
   ========================================================= */

.hero{
  position:relative;
  overflow:hidden;
}

/* =========================================================
   HOME HERO
   ========================================================= */

.hero--home{
  position:relative;
  min-height:calc(100svh - 76px);
  height:calc(100svh - 76px);
  max-height:920px;
  padding:0;
  background:#fff;
  isolation:isolate;
  display:flex;
  flex-direction:column;
}

/* =========================================================
   GRAFIKA
   ========================================================= */

.hero--home .hero__media{
  position:absolute;
  inset:0;
  z-index:-3;
  overflow:hidden;
}

.hero--home .hero__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:68% center;
}

/* =========================================================
   PRZEJŚCIE BIAŁE TŁO → ZDJĘCIE
   ========================================================= */

.hero--home .hero__fade{
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(
      90deg,
      #ffffff 0%,
      rgba(255,255,255,1) 24%,
      rgba(255,255,255,.98) 33%,
      rgba(255,255,255,.90) 41%,
      rgba(255,255,255,.72) 49%,
      rgba(255,255,255,.48) 57%,
      rgba(255,255,255,.22) 66%,
      rgba(255,255,255,.06) 76%,
      rgba(255,255,255,0) 86%
    );
}

/* =========================================================
   GŁÓWNA TREŚĆ
   ========================================================= */

.hero--home .hero__inner{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  display:flex;
  align-items:center;
  padding-top:clamp(26px, 5vh, 64px);
  padding-bottom:clamp(24px, 4vh, 52px);
}

.hero--home .hero__content{
  position:relative;
  z-index:2;
  width:min(700px, 54vw);
  max-width:700px;
}

/* =========================================================
   EYEBROW
   ========================================================= */

.hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 22px;
  padding:9px 13px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(10px);
  color:var(--text);
  font-size:12px;
  line-height:1;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:0 4px 18px rgba(15,23,42,.05);
}

.hero__eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--brand);
  box-shadow:0 0 0 5px rgba(255,204,0,.16);
}

/* =========================================================
   H1
   ========================================================= */

.hero--home .h1{
  max-width:700px;
  margin:0 0 24px;
  font-size:clamp(44px, 5vw, 72px);
  line-height:.99;
  letter-spacing:-.045em;
  color:var(--text);
}

.hero--home .h1 strong{
  display:block;
  margin-top:7px;
  color:#ffbd00;
  background:none;
  -webkit-background-clip:initial;
  background-clip:initial;
}

/* =========================================================
   LEAD
   ========================================================= */

.hero--home .lead{
  max-width:620px;
  margin:0 0 28px;
  color:var(--muted);
  font-size:clamp(17px, 1.45vw, 20px);
  line-height:1.65;
}

/* =========================================================
   CTA
   ========================================================= */

.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:0;
}

.hero__actions .btn{
  min-height:50px;
  padding:14px 22px;
  border-radius:12px;
  font-weight:750;
}

.hero__btn-outline{
  background:rgba(255,255,255,.84);
  border:1px solid rgba(15,23,42,.16);
  backdrop-filter:blur(8px);
}

.hero__btn-outline:hover{
  background:#fff;
  border-color:rgba(15,23,42,.30);
}

/* =========================================================
   KORZYŚCI
   ========================================================= */

.hero__benefits{
  display:flex;
  flex-wrap:wrap;
  gap:14px 26px;
  margin:30px 0 0;
  padding:0;
  list-style:none;
}

.hero__benefits li{
  position:relative;
  padding-left:24px;
  color:var(--text);
  font-size:14px;
  line-height:1.4;
  font-weight:650;
  white-space:nowrap;
}

.hero__benefits li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--brand);
  color:#111;
  font-size:10px;
  font-weight:900;
}

/* =========================================================
   STATYSTYKI
   ========================================================= */

.hero__stats-wrap{
  position:relative;
  z-index:5;
  flex:0 0 auto;
  width:100%;
  margin-top:0;
  padding-bottom:clamp(18px, 3vh, 34px);
}

.hero__stats{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  overflow:hidden;
  border:1px solid rgba(15,23,42,.07);
  border-radius:26px;
  background:rgba(255,255,255,.965);
  backdrop-filter:blur(20px);
  box-shadow:0 22px 60px rgba(15,23,42,.10);
}

.hero__stat{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:clamp(104px, 14vh, 126px);
  padding:clamp(18px, 2.6vh, 25px) clamp(22px, 2.5vw, 36px);
  text-align:center;
}

.hero__stat > div{
  width:100%;
  text-align:center;
}

.hero__stat + .hero__stat::before{
  content:"";
  position:absolute;
  left:0;
  top:26%;
  bottom:26%;
  width:1px;
  background:rgba(15,23,42,.09);
}

.hero__stat-icon{
  display:none !important;
}

.hero__stat strong{
  position:relative;
  display:block;
  margin:0 0 8px;
  padding-top:12px;
  color:var(--text);
  font-size:clamp(32px, 4.4vh, 42px);
  line-height:1;
  letter-spacing:-.045em;
  font-weight:850;
  white-space:nowrap;
  text-align:center;
}

.hero__stat strong::before{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:0;
  width:30px;
  height:3px;
  border-radius:999px;
  background:var(--brand);
}

.hero__stat strong small{
  font-size:.44em;
  letter-spacing:0;
  font-weight:750;
}

.hero__stat > div > span{
  display:block;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  font-weight:500;
  text-align:center;
}

/* =========================================================
   DOSTOSOWANIE DO WYSOKOŚCI EKRANU
   ========================================================= */

@media (min-width:901px) and (max-height:820px){
  .hero--home .hero__inner{
    padding-top:24px;
    padding-bottom:20px;
  }

  .hero__eyebrow{
    margin-bottom:14px;
    padding:7px 11px;
  }

  .hero--home .h1{
    margin-bottom:16px;
    font-size:clamp(38px, 6.4vh, 58px);
  }

  .hero--home .lead{
    margin-bottom:18px;
    font-size:clamp(15px, 2.3vh, 18px);
    line-height:1.5;
  }

  .hero__actions .btn{
    min-height:44px;
    padding:11px 18px;
  }

  .hero__benefits{
    margin-top:18px;
    gap:10px 20px;
  }

  .hero__benefits li{
    font-size:13px;
  }

  .hero__stats-wrap{
    padding-bottom:16px;
  }

  .hero__stat{
    min-height:88px;
    padding:12px 22px;
  }

  .hero__stat strong{
    margin-bottom:5px;
    padding-top:9px;
    font-size:28px;
  }

  .hero__stat > div > span{
    font-size:12px;
    line-height:1.25;
  }
}

@media (min-width:901px) and (max-height:680px){
  .hero__eyebrow{
    display:none;
  }

  .hero--home .hero__inner{
    padding-top:16px;
    padding-bottom:14px;
  }

  .hero--home .h1{
    margin-bottom:12px;
    font-size:clamp(34px, 6.8vh, 48px);
  }

  .hero--home .lead{
    margin-bottom:14px;
    font-size:15px;
    line-height:1.4;
  }

  .hero__benefits{
    margin-top:14px;
  }

  .hero__stats-wrap{
    padding-bottom:10px;
  }

  .hero__stat{
    min-height:78px;
    padding:9px 18px;
  }
}

/* =========================================================
   DESKTOP 1180+
   ========================================================= */

@media (min-width:1181px){
  .hero--home .hero__media img{
    object-position:68% center;
  }
}

/* =========================================================
   MAŁY LAPTOP / TABLET LANDSCAPE
   ========================================================= */

@media (max-width:1180px) and (min-width:901px){
  .hero--home .hero__media img{
    object-position:72% center;
  }

  .hero--home .hero__content{
    width:58vw;
    max-width:620px;
  }

  .hero--home .h1{
    font-size:clamp(42px, 5.4vw, 62px);
  }

  .hero__stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }

  .hero__stat:nth-child(3)::before{
    display:block;
  }
}

/* =========================================================
   TABLET + MOBILE
   tekst → zdjęcie → statystyki
   ========================================================= */

@media (max-width:900px){
  .hero--home{
    min-height:0;
    height:auto;
    max-height:none;
    padding:0 0 24px;
    background:#fff;
    display:flex;
    flex-direction:column;
  }

  .hero--home .hero__inner{
    order:1;
    width:100%;
    min-height:0;
    padding-top:46px;
    padding-bottom:38px;
  }

  .hero--home .hero__content{
    width:100%;
    max-width:680px;
  }

  .hero--home .hero__media{
    order:2;
    position:relative;
    inset:auto;
    z-index:0;
    width:100%;
    height:380px;
  }

  .hero--home .hero__media img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:68% center;
  }

  .hero--home .hero__fade{
    display:none;
  }

  .hero--home .h1{
    font-size:clamp(40px, 7.4vw, 58px);
  }

  .hero--home .lead{
    max-width:620px;
    font-size:17px;
  }

  .hero__benefits{
    display:flex;
    flex-wrap:wrap;
    gap:12px 22px;
  }

  .hero__benefits li{
    white-space:normal;
  }

  .hero__stats-wrap{
    order:3;
    width:100%;
    margin-top:-42px;
    padding-bottom:0;
  }

  .hero__stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
    border-radius:20px;
  }

  .hero__stat{
    min-height:96px;
    padding:14px 10px;
    justify-content:center;
  }

  .hero__stat:nth-child(3)::before{
    display:block;
  }

  .hero__stat strong{
    font-size:24px;
  }

  .hero__stat > div > span{
    font-size:10px;
    line-height:1.2;
  }

}

/* =========================================================
   TELEFON
   ========================================================= */

@media (max-width:640px){
  .hero--home .hero__inner{
    padding-top:36px;
    padding-bottom:30px;
  }

  .hero__eyebrow{
    font-size:10px;
    line-height:1.25;
  }

  .hero--home .h1{
    font-size:clamp(36px, 10vw, 48px);
    line-height:1.02;
  }

  .hero--home .lead{
    font-size:16px;
    line-height:1.6;
  }

  .hero__actions{
    flex-direction:column;
  }

  .hero__actions .btn{
    width:100%;
    justify-content:center;
  }

  .hero__benefits{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }

  /* MOBILE: zdjęcie panoramiczne + niski pasek 4 kolumny */
  .hero--home .hero__media{
    height:260px;
  }

  .hero--home .hero__media img{
    object-position:70% center;
  }

  .hero__stats-wrap{
    width:calc(100% - 32px);
    margin-top:-46px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:18px;
  }

  .hero__stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
    border-radius:16px;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(16px);
    box-shadow:0 14px 34px rgba(15,23,42,.12);
  }

  .hero__stat{
    min-height:88px;
    padding:10px 6px 9px;
    justify-content:center;
  }

  .hero__stat + .hero__stat::before{
    display:block;
    top:22%;
    bottom:22%;
  }

  .hero__stat:nth-child(3)::before{
    display:block;
  }

  .hero__stat strong{
    margin-bottom:4px;
    padding-top:7px;
    font-size:19px;
    line-height:1;
  }

  .hero__stat strong::before{
    width:22px;
    height:2px;
  }

  .hero__stat > div > span{
    font-size:8px;
    line-height:1.18;
  }

  /* Oferta: ten sam pasek, bez osobnego dużego panelu */
  .hero--subpage:has(.hero__stats-wrap) .hero__media{
    height:260px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stats-wrap{
    width:calc(100% - 32px);
    margin-top:-46px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:18px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
    border-radius:16px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat{
    min-height:88px;
    padding:10px 5px 9px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    margin-bottom:4px;
    padding-top:7px;
    font-size:17px;
    line-height:1;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    font-size:7.5px;
    line-height:1.15;
  }

  /* Podstrony bez paska: samo krótsze zdjęcie */
  .hero--subpage:not(:has(.hero__stats-wrap)) .hero__media{
    height:220px;
  }

  .hero--subpage:not(:has(.hero__stats-wrap)) .hero__media img{
    object-position:72% center;
  }
}

@media (max-width:440px){
  .hero--home .hero__media,
  .hero--subpage:has(.hero__stats-wrap) .hero__media{
    height:245px;
  }

  .hero__stats-wrap,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats-wrap{
    width:calc(100% - 24px);
    margin-top:-42px;
    margin-left:auto;
    margin-right:auto;
    margin-bottom:16px;
  }

  .hero__stats,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
    border-radius:14px;
  }

  .hero__stat,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat{
    min-height:82px;
    padding:9px 4px 8px;
  }

  .hero__stat strong{
    font-size:18px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    font-size:15px;
  }

  .hero__stat > div > span,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    font-size:7px;
    line-height:1.12;
  }

  .hero--subpage:not(:has(.hero__stats-wrap)) .hero__media{
    height:205px;
  }
}

/* =========================================================
   DARK MODE — HOME
   ========================================================= */

html[data-theme="dark"] .hero--home{
  background:#0d1117;
}

html[data-theme="dark"] .hero--home .hero__fade{
  background:
    linear-gradient(
      90deg,
      #0d1117 0%,
      rgba(13,17,23,1) 24%,
      rgba(13,17,23,.96) 36%,
      rgba(13,17,23,.75) 50%,
      rgba(13,17,23,.40) 64%,
      rgba(13,17,23,.08) 78%,
      rgba(13,17,23,0) 88%
    );
}

html[data-theme="dark"] .hero__eyebrow,
html[data-theme="dark"] .hero__btn-outline,
html[data-theme="dark"] .hero__stats{
  background:rgba(18,23,35,.94);
  border-color:rgba(255,255,255,.12);
}

html[data-theme="dark"] .hero__stat + .hero__stat::before{
  background:rgba(255,255,255,.12);
}

/* =========================================================
   STARY HERO — PODSTRONY
   ========================================================= */

.hero--gradient{
  padding:clamp(64px, 10vh, 96px) 0 24px;
  background:
    radial-gradient(
      1000px 420px at 80% -10%,
      rgba(255,204,0,.25),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      var(--bg-soft),
      transparent 60%
    );
}

.hero--gradient > .hero__inner{
  padding-left:var(--pad);
  padding-right:var(--pad);
}

.hero--gradient .hero__inner{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  align-items:start;
}

.hero--gradient .hero__content{
  align-self:start;
  max-width:680px;
}

.hero--gradient .h1{
  margin:0 0 12px;
  font-size:clamp(28px, 6vw, 48px);
  line-height:1.15;
  letter-spacing:-.02em;
}

.hero--gradient .h1 strong{
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero--gradient .lead{
  margin-bottom:20px;
  color:var(--muted);
  font-size:clamp(16px, 2.5vw, 20px);
  line-height:1.6;
}

/* =========================================================
   STARE KARTY HERO
   ========================================================= */

.hero__cards{
  display:grid;
  grid-template-columns:min(100%, 640px);
  justify-content:center;
  gap:20px;
  margin:0 auto;
  align-items:start;
  align-self:start;
}

.tagbar.tags-kpi{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.tagbar.tags-kpi .tag{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:80px;
  height:38px;
  padding:6px 14px;
  border-radius:12px;
  background:var(--card);
  border:1px dashed rgba(0,0,0,.3);
  color:var(--text);
  font-size:13px;
  font-weight:600;
  text-align:center;
}

.hero__cards .card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:18px 18px 16px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  background:var(--card);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hero__cards .card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.hero__cards .card h3{
  margin:0 0 8px;
}

.hero__cards .card .lead{
  margin:8px 0 10px;
}

.hero__cards .card .list{
  margin:12px 0 0;
  padding:0;
  list-style:none;
}

.hero__cards .card .list li{
  padding:6px 0 6px 10px;
  color:var(--text);
  font-size:14px;
  line-height:1.5;
}

@media (min-width:880px){
  .hero--gradient .hero__inner{
    grid-template-columns:1fr 1fr;
  }
}

@media (prefers-reduced-motion:reduce){
  .hero__cards .card{
    transition:none;
  }

  .hero__cards .card:hover{
    transform:none;
  }
}

/* =========================================================
   MOBILE — HERO BEZ ZDJĘCIA
   ========================================================= */

@media (max-width:640px){

  /* .hero--home .hero__media{
    display:none;
  } */

  .hero__stats-wrap,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats-wrap{
    width:calc(100% - 32px);
    margin:22px auto 0;
    padding-bottom:0;
  }

  .hero__stats,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats{
    grid-template-columns:repeat(2, minmax(0,1fr));
    border-radius:18px;
  }

  .hero__stat,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat{
    min-height:92px;
    padding:14px 10px;
  }

  .hero__stat:nth-child(3)::before,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat:nth-child(3)::before{
    display:none;
  }

  .hero__stat strong{
    font-size:24px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    font-size:21px;
  }

  .hero__stat > div > span{
    font-size:11px;
    line-height:1.25;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    font-size:10px;
    line-height:1.2;
  }
}

@media (max-width:440px){

  .hero__stats-wrap,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats-wrap{
    width:calc(100% - 24px);
    margin-top:20px;
  }

  .hero__stat,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat{
    min-height:84px;
    padding:12px 8px;
  }

  .hero__stat strong{
    font-size:22px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    font-size:19px;
  }
}

/* =========================================================
   TABLET / MOBILE — PO PRZEJŚCIU ZDJĘCIA POD TREŚĆ UKRYJ JE
   ========================================================= */

@media (max-width:900px){
  .hero--home .hero__media{
    display:none;
  }

  .hero__stats-wrap,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats-wrap{
    margin-top:24px;
  }
}

/* =========================================================
   MOBILE — STATYSTYKI 1x4
   ========================================================= */

@media (max-width:640px){
  .hero__stats,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
    border-radius:18px;
  }

  .hero__stat,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat{
    min-height:88px;
    padding:12px 6px;
  }

  .hero__stat:nth-child(3)::before,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat:nth-child(3)::before{
    display:block;
  }

  .hero__stat strong{
    font-size:20px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    font-size:18px;
  }

  .hero__stat > div > span{
    font-size:8px;
    line-height:1.15;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    font-size:7.5px;
    line-height:1.12;
  }
}

@media (max-width:440px){
  .hero__stats,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }

  .hero__stat,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat{
    min-height:82px;
    padding:10px 4px;
  }

  .hero__stat strong{
    font-size:18px;
  }

  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    font-size:16px;
  }

  .hero__stat > div > span,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    font-size:7px;
    line-height:1.1;
  }
}

/* =========================================================
   TABLET + MOBILE — STATYSTYKI 1x4
   ========================================================= */

@media (max-width:1180px){
  .hero__stats,
  .hero--subpage:has(.hero__stats-wrap) .hero__stats{
    grid-template-columns:repeat(4, minmax(0,1fr));
  }

  .hero__stat:nth-child(3)::before,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat:nth-child(3)::before{
    display:block;
  }
}

@media (max-width:900px){
  .hero__stat,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat{
    min-height:96px;
    padding:14px 10px;
  }

  .hero__stat strong{
    font-size:24px;
  }

  .hero__stat > div > span{
    font-size:10px;
    line-height:1.2;
  }
}

/* =========================================================
   TABLET + MOBILE — RÓWNA OŚ Y STATYSTYK
   ========================================================= */

@media (max-width:1180px){
  .hero__stat{
    align-items:stretch;
  }

  .hero__stat > div{
    display:grid;
    grid-template-rows:44px minmax(30px, auto);
    align-content:center;
    align-items:start;
    width:100%;
    height:100%;
  }

  .hero__stat strong,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    box-sizing:border-box;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    width:100%;
    min-height:44px;
    margin:0;
    padding-top:12px;
    line-height:1;
  }

  .hero__stat strong::before,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong::before{
    top:0;
  }

  .hero__stat > div > span,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    display:flex;
    align-items:flex-start;
    justify-content:center;
    width:100%;
    min-height:30px;
    padding-top:6px;
    text-align:center;
  }
}

@media (max-width:640px){
  .hero__stat > div,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div{
    grid-template-rows:38px minmax(28px, auto);
  }

  .hero__stat strong,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    min-height:38px;
    padding-top:10px;
  }

  .hero__stat > div > span,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    min-height:28px;
    padding-top:5px;
  }
}

/* =========================================================
   TABLET + MOBILE — CIAŚNIEJSZY ODSTĘP W STATYSTYKACH
   ========================================================= */

@media (max-width:1180px){
  .hero__stat > div,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div{
    grid-template-rows:40px 32px;
  }

  .hero__stat strong,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    height:40px;
    min-height:40px;
    padding-top:12px;
  }

  .hero__stat > div > span,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    height:32px;
    min-height:32px;
    padding-top:1px;
  }
}

@media (max-width:640px){
  .hero__stat > div,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div{
    grid-template-rows:34px 30px;
  }

  .hero__stat strong,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat strong{
    height:34px;
    min-height:34px;
    padding-top:8px;
  }

  .hero__stat > div > span,
  .hero--subpage:has(.hero__stats-wrap) .hero__stat > div > span{
    height:30px;
    min-height:30px;
    padding-top:0;
  }
}

