/* PODGLĄD nowego hero strony głównej (makieta v2) – ładowany tylko z ?podglad=nowy-hero (inc/podglad.php).
   Gradient = --cv2-gradient z kalkulatora (assets/calc-v2/calc-v2.css). 1rem = 10px w motywie. */
.smp-hx {
  --smp-mg: linear-gradient(180deg, rgba(23,135,132,.35) 0%, rgba(23,135,132,.75) 100%), linear-gradient(135deg, #28a9a2 0%, #8ed9b0 100%);
  --smp-lime: #c1ff72;
  --smp-deep: #083c36;
  background: var(--smp-mg);
  margin-bottom: 5rem;
  overflow: hidden;
}
.smp-hx .smp-hero {
  margin-bottom: 0;
  background: transparent;
}
.smp-hx .smp-hero .hero__bg,
.smp-hx .smp-hero video {
  left: auto;
  right: 0;
  width: 64%;
  object-position: 62% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%), linear-gradient(0deg, transparent 0%, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 48%), linear-gradient(0deg, transparent 0%, #000 24%);
  mask-composite: intersect;
}
.smp-hx .hero__text p { color: rgba(255,255,255,.92) !important; }

/* komputer: postać bliżej środka (zdjęcie przesunięte w lewo w swoim polu, krótsze wygaszenie z lewej) */
@media (min-width: 992px) {
  .smp-hx .smp-hero .hero__bg,
  .smp-hx .smp-hero video {
    object-position: 78% 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 14%, #000 30%), linear-gradient(0deg, transparent 0%, #000 24%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 14%, #000 30%), linear-gradient(0deg, transparent 0%, #000 24%);
  }
}

@media (min-width: 992px) {
  .smp-hx .hero__desc { max-width: min(50%, 74rem); }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .smp-hx .hero__desc { max-width: 44%; }
}

/* tytuł: mniejszy napis Kalamem (1 linijka na telefonie), hasło wyraźnie największe, spokojniejsze rozmiary.
   Na telefonie „Dodatkowy CSS” WP (body.home .hero__header > p > span…) wymusza 42/40 px z !important –
   dlatego tu selektory z body.home .smp-hx i !important (silniejsze), bez ruszania Dodatkowego CSS. */
body.home .smp-hx .hero__header br { display: none !important; }
body.home .smp-hx .hero__header > p > span[style*="Kalam"] { display: block !important; font-size: clamp(22px, 6.2vw, 30px) !important; line-height: 1.25 !important; margin: 0 0 .25em !important; }
body.home .smp-hx .hero__header > p > span[style*="Jakarta"] { display: block !important; font-size: clamp(32px, 8.8vw, 40px) !important; line-height: 1.12 !important; letter-spacing: -.03em !important; }
@media (min-width: 992px) {
  body.home .smp-hx .hero__header > p > span[style*="Kalam"] { font-size: clamp(30px, 2.5vw, 42px) !important; }
  body.home .smp-hx .hero__header > p > span[style*="Jakarta"] { font-size: clamp(40px, 3.7vw, 56px) !important; line-height: 1.1 !important; }
}
@media (max-width: 600px) {
  body.home .smp-hx .hero__text, body.home .smp-hx .hero__text p { font-size: 15px !important; line-height: 1.6 !important; }
}

/* pasek liczb – szklana ramka na tym samym gradiencie */
.smp-stats { padding: 0 0 4.4rem; color: #fff; position: relative; z-index: 2; }
.smp-stats__box {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 22px;
  padding: 24px 28px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.smp-stat { padding: 4px 22px; border-left: 1px solid rgba(255,255,255,.22); }
.smp-stat:first-child { border-left: 0; padding-left: 0; }
.smp-stat__n { display: flex; align-items: center; gap: 10px; }
.smp-stat b { display: block; font: 800 clamp(32px, 3.4vw, 46px)/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.03em; color: var(--smp-lime); }
.smp-stat strong { display: block; margin-top: 8px; font: 800 15.5px/1.25 'Plus Jakarta Sans', sans-serif; color: #fff; }
.smp-stat span { display: block; margin-top: 4px; font: 400 13.5px/1.45 Inter, sans-serif; color: #fff; }
.smp-stat span a { color: var(--smp-lime); font-weight: 700; text-decoration: underline; }
.smp-grow { width: 30px; height: 30px; border-radius: 50%; background: var(--smp-lime); color: var(--smp-deep); display: grid; place-items: center; flex: none; animation: smp-grow 1.8s ease-in-out infinite; }
.smp-grow svg { width: 17px; height: 17px; }
.smp-stars { display: flex; gap: 2px; margin: 0; }
.smp-stars svg { width: 15px; height: 15px; fill: var(--smp-lime); }
.smp-stat--google .smp-stat__n { flex-wrap: wrap; row-gap: 4px; }
@keyframes smp-grow { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .smp-grow { animation: none; } }

@media (max-width: 1279px) {
  .smp-stats__box { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
  .smp-stat:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
/* telefon i tablet w pionie: najpierw napisy i przyciski, pod nimi postać wyłaniająca się zza paska liczb */
@media (max-width: 991px) {
  .smp-hx .smp-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 0;
  }
  .smp-hx .smp-hero .hero__content { order: 1; }
  .smp-hx .smp-hero .hero__bg,
  .smp-hx .smp-hero video {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1;
    width: 100%;
    height: clamp(300px, 85vw, 560px);
    margin-top: 1rem;
    object-fit: cover;
    object-position: 86% 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .smp-stats { margin-top: -7rem; }
}
@media (max-width: 600px) {
  .smp-stats { padding: 0 0 3rem; }
  .smp-stats__box { grid-template-columns: 1fr 1fr; row-gap: 22px; padding: 20px 18px; }
  .smp-stat { padding: 0 0 0 14px; }
  .smp-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .smp-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.22); padding-left: 14px; }
  .smp-stat span { font-size: 13px; }
}
/* telefony: przyciski jeden pod drugim, na całą szerokość (konsultacja na górze) */
@media (max-width: 600px) {
  .smp-hx .hero__actions { flex-direction: column; align-items: stretch; gap: 1.2rem; max-width: 42rem; }
  .smp-hx .hero__actions a { margin-right: 0; width: 100%; justify-content: center; }
}
/* animacja liczb (assets/js/podglad-liczby.js): gwiazdki po kolei; bez JS wszystko widoczne */
.smp-stat b { font-variant-numeric: tabular-nums; }
.smp-anim .smp-stars svg { opacity: 0; transform: scale(.3) rotate(-35deg); }
.smp-anim .smp-stat.is-on .smp-stars svg { animation: smp-star .5s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.smp-anim .smp-stat.is-on .smp-stars svg:nth-child(2) { animation-delay: .15s; }
.smp-anim .smp-stat.is-on .smp-stars svg:nth-child(3) { animation-delay: .3s; }
.smp-anim .smp-stat.is-on .smp-stars svg:nth-child(4) { animation-delay: .45s; }
.smp-anim .smp-stat.is-on .smp-stars svg:nth-child(5) { animation-delay: .6s; }
@keyframes smp-star { to { opacity: 1; transform: none; } }

/* sekcja „Co to jest? Mikropigmentacja skóry głowy.” (strona główna, 2026-12-02):
   tytuł gradientem w zieleniach (kolor #111 jest wpisany inline w polu ACF – stąd !important),
   duży napis w tle „Co to jest?” delikatnie zielonkawy zamiast prawie białego */
body.home .th-about .about-header__title span[style*="Jakarta"] {
  background: linear-gradient(90deg, #0f6b67 0%, #1d9a92 55%, #45b67c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #1d9a92 !important;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
body.home .th-about .about-header__info {
  background: linear-gradient(90deg, #dcf2ea 0%, #e6f7dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e2f4e6;
}
