/* =========================================================
   AIE.media — STRONA GŁÓWNA (multimedia + scroll)
   Ładowany tylko w index.html, PO style.css.
   Nie nadpisuje klas podstron — wszystko ma prefiks .hm-
   Mechanika przewijania działa tylko z klasą html.js-motion
   (dodaje ją skrypt, gdy użytkownik nie ma „ogranicz ruch”).
   ========================================================= */

:root{ --hh: var(--header-h); }

/* ---------- Wideo: kontener + zastępcze tło ---------- */

.hm-media{
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #151515;
}
/* Zastępcze „światło” widoczne zanim wideo się wczyta (lub gdy go brak) */
.hm-media::before{
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 48% at 28% 38%, rgba(250,250,248,.16), transparent 70%),
    radial-gradient(32% 42% at 72% 66%, rgba(250,250,248,.09), transparent 70%);
  animation: hm-drift 16s ease-in-out infinite alternate;
}
@keyframes hm-drift{
  to{ transform: translate3d(6%, -4%, 0) rotate(8deg); }
}
.hm-media video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.hm-media.is-ready video{ opacity: 1; }
.hm-media--mono video{ filter: grayscale(1) contrast(1.08); }
.hm-media--light{ background: #e9e9e6; }
.hm-media--light::before{
  background:
    radial-gradient(38% 48% at 70% 30%, rgba(10,10,10,.08), transparent 70%),
    radial-gradient(30% 40% at 25% 75%, rgba(10,10,10,.06), transparent 70%);
}

/* ---------- Wspólne ---------- */

.hm-display{
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: .84;
}
.hm-outline-w{
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: clamp(1.2px, .16vw, 2.6px) var(--white);
}
.hm-outline-b{
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: clamp(1.2px, .16vw, 2.6px) var(--black);
}
@supports not (-webkit-text-stroke: 1px black){
  .hm-outline-w{ color: var(--white); -webkit-text-fill-color: var(--white); }
  .hm-outline-b{ color: var(--black); -webkit-text-fill-color: var(--black); }
}

.hm-btn{
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.05rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--text);
  font-weight: 600;
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  transition: background .3s ease, color .3s ease;
}
.hm-btn .arrow{ transition: transform .3s ease; }
.hm-btn:hover .arrow{ transform: translateX(4px); }
.hm-btn--w:hover{ background: var(--white); color: var(--black); }
.hm-btn--b:hover{ background: var(--black); color: var(--white); }

.hm-stage{
  position: relative;
  overflow: hidden;
}

/* =========================================================
   1. HERO — pełnoekranowe wideo, które przy przewijaniu
      zamyka się w ramę, a napis wypełnia się bielą
   ========================================================= */

.hm-hero{
  --p: 1;
  position: relative;
  background: var(--black);
  color: var(--white);
}
.hm-hero .hm-stage{
  min-height: calc(100svh - var(--hh));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 6vh, 4rem) var(--edge) clamp(1.5rem, 4vh, 2.5rem);
}
.hm-hero__frame{
  position: absolute;
  inset: 0;
  clip-path: inset(
    calc(var(--p) * 3%) calc(var(--p) * 4%) calc(var(--p) * 36%) calc(var(--p) * 4%)
    round calc(var(--p) * 22px)
  );
}
.hm-hero__frame::after{
  content: "";
  position: absolute;
  inset: 0;
  /* mocniejsze przyciemnienie na starcie — obrysowany napis musi być czytelny;
     w miarę przewijania wideo „ożywa” */
  background:
    linear-gradient(90deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.35) 100%);
  opacity: calc(1 - var(--p) * .45);
}
.hm-hero__frame video{ filter: grayscale(1) contrast(1.08) blur(calc((1 - var(--p)) * 3px)); }

.hm-hero__head{ position: relative; z-index: 2; }

.hm-hero__title{
  --f: min(1, calc(var(--p) * 1.8));
  font-size: max(2.6rem, min(11.5vw, 17svh, 13.5rem));
  /* wypełnienie liter bielą — przesuwa się od lewej wraz z przewijaniem */
  background-image: linear-gradient(90deg,
    var(--white) 0 calc(var(--f) * 100%),
    transparent calc(var(--f) * 100%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hm-hero__title .ln{ display: block; white-space: nowrap; }
.hm-hero__title .w{ display: inline; }
.hm-hero__title .ln--in{ margin-left: clamp(.5rem, 7vw, 7rem); }

.hm-hero__typeline{
  margin-top: clamp(1rem, 2.5vh, 1.75rem);
  font-family: var(--text);
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--muted-on-dark);
  min-height: 1.4em;
}
.hm-hero__typeline::before{ content: "/ "; opacity: .6; }
.hm-hero__typeline::after{
  content: "";
  display: inline-block;
  width: .08em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -.12em;
  background: currentColor;
  animation: hm-blink 1s steps(1) infinite;
}
@keyframes hm-blink{ 50%{ opacity: 0; } }

.hm-hero__foot{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  opacity: calc((var(--p) - .45) * 3);
  transform: translateY(calc((1 - var(--p)) * 60px));
}
.hm-hero__lead b{
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.hm-hero__lead p{
  color: var(--muted-on-dark);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.55;
  max-width: 56ch;
}
.hm-hero__stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-on-dark);
}
.hm-hero__stats div{
  padding: 1rem 1rem 0 0;
}
.hm-hero__stats strong{
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: .9;
  letter-spacing: -.035em;
}
.hm-hero__stats span{
  display: block;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--muted-on-dark);
}

.hm-hint{
  position: absolute;
  z-index: 3;
  right: var(--edge);
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  color: var(--muted-on-dark);
  opacity: calc(1 - var(--p) * 5);
}
.hm-hint i{
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--white), transparent);
  animation: hm-hint 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hm-hint{
  0%{ transform: scaleY(0); } 50%{ transform: scaleY(1); } 100%{ transform: scaleY(1); opacity: 0; }
}

/* =========================================================
   2. PORTFOLIO — siatka kafli, wszystko widoczne bez
      przewijania na boki
   ========================================================= */

.hm-pf{
  position: relative;
  background: var(--white);
  color: var(--black);
  overflow: hidden;
  padding: clamp(3rem, 9vh, 6rem) var(--edge) clamp(3rem, 9vh, 6rem);
}
.hm-pf__inner{
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 6vh, 4rem);
}

.hm-pf__intro{ display: grid; gap: clamp(1.25rem, 3vh, 2rem); }
.hm-pf__word{
  font-size: clamp(3rem, 12.5vw, 15rem);
  line-height: .82;
  white-space: nowrap;
  max-width: 100%;
}
.hm-pf__intro-row{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
}
.hm-pf__intro-row p{
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.4;
}

.hm-pf__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
}

.hm-tile{
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.hm-tile__media{
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #151515;
}
.hm-tile__media .hm-media video{
  transform: scale(1.03);
  filter: grayscale(1);
  transition: opacity .9s ease, filter .6s ease, transform .8s cubic-bezier(.16,1,.3,1);
}
.hm-tile:hover .hm-media video,
.hm-tile:focus-visible .hm-media video{ transform: scale(1); filter: grayscale(0); }
@media (hover: none){
  .hm-tile__media .hm-media video{ filter: grayscale(0); transform: none; }
}

.hm-tile__meta{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  min-width: 0;
}
.hm-tile__name{
  font-size: clamp(1.8rem, 3.6vw, 3.6rem);
  line-height: .9;
  overflow-wrap: anywhere;
}
.hm-tile__type{
  margin-top: .4rem;
  color: var(--muted-on-light);
  font-size: .95rem;
}
.hm-tile__go{
  flex: none;
  width: clamp(2.75rem, 4vw, 3.75rem);
  height: clamp(2.75rem, 4vw, 3.75rem);
  border-radius: 50%;
  border: 1px solid var(--black);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: background .3s, color .3s, transform .3s;
}
.hm-tile:hover .hm-tile__go{ background: var(--black); color: var(--white); transform: rotate(-45deg); }

.hm-pf__end{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding-top: clamp(1.5rem, 4vh, 2.5rem);
  border-top: 1px solid var(--line-on-light);
}
.hm-pf__end-title{
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: .85;
}

/* =========================================================
   3. CONTENT & ADS — napisy rozjeżdżają się, rolki wjeżdżają
   ========================================================= */

.hm-ct{
  --p: 1;
  --q: min(1, calc(var(--p) * 1.35));
  position: relative;
  background: var(--black);
  color: var(--white);
}
.hm-ct .hm-stage{
  min-height: calc(100svh - var(--hh));
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vh, 4rem) 0;
}
.hm-ct__bg{ opacity: .32; }
.hm-ct__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10,10,10,.2), rgba(10,10,10,.85));
}

.hm-ct__word{
  position: absolute;
  left: 0;
  font-size: clamp(3rem, 14vw, 16rem);
  white-space: nowrap;
  z-index: 1;
}
.hm-ct__word--a{ top: 4%; transform: translateX(calc(var(--edge) + (0.5 - var(--p)) * 10vw)); }
.hm-ct__word--b{ bottom: 4%; left: auto; right: 0; transform: translateX(calc(-1 * var(--edge) + (var(--p) - 0.5) * 10vw)); }

.hm-phones{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 2vw, 2rem);
}
.hm-phone{
  --rise: 60vh;
  position: relative;
  width: clamp(110px, 15vw, 240px);
  aspect-ratio: 9 / 16;
  border-radius: clamp(16px, 2vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transform: translateY(calc((1 - var(--q)) * var(--rise)));
}
.hm-phone:nth-child(1){ --rise: 45vh; }
.hm-phone:nth-child(2){ --rise: 80vh; width: clamp(130px, 18vw, 290px); }
.hm-phone:nth-child(3){ --rise: 110vh; }
.hm-phone:nth-child(4){ --rise: 65vh; }

.hm-ct__info{
  position: absolute;
  z-index: 3;
  left: var(--edge);
  bottom: clamp(1.5rem, 5vh, 3rem);
  max-width: 30rem;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  opacity: calc((var(--p) - .55) * 3.5);
}
.hm-ct__info p{
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.4;
}

/* =========================================================
   4. PAKIETY — dwie połowy zamykają się jak drzwi
   ========================================================= */

.hm-pk{
  --p: 1;
  --q: min(1, calc(var(--p) * 1.6));
  position: relative;
  background: var(--black);
  color: var(--white);
}
.hm-pk .hm-stage{
  height: calc(100svh - var(--hh));
  min-height: 640px;
  display: flex;
}
.hm-pk__word{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 15vw, 18rem);
  transform: scale(calc(1.25 - var(--q) * .25));
  opacity: calc(1 - var(--q) * .6);
}

.hm-half{
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.75rem, 5vh, 3.5rem) clamp(1.25rem, 4vw, 3.5rem);
  overflow: hidden;
  transition: flex-grow .7s cubic-bezier(.16,1,.3,1);
}
.hm-half--a{ transform: translateX(calc((1 - var(--q)) * -101%)); background: var(--black); }
.hm-half--b{ transform: translateX(calc((1 - var(--q)) * 101%)); background: var(--white); color: var(--black); }
@media (hover: hover) and (min-width: 861px){
  .hm-pk .hm-stage:hover .hm-half:hover{ flex-grow: 1.45; }
}

.hm-half .hm-media{ z-index: 0; }
.hm-half--a .hm-media{ opacity: .3; }
.hm-half--b .hm-media{ opacity: .18; mix-blend-mode: multiply; }
.hm-half > *:not(.hm-media){ position: relative; z-index: 1; }

.hm-half__top{ display: grid; gap: .75rem; }
.hm-half__kind{ font-size: .95rem; opacity: .7; }
.hm-half__title{
  font-size: clamp(3rem, 8.5vw, 9rem);
  line-height: .82;
}
.hm-half__price{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 5.5rem);
  letter-spacing: -.035em;
  line-height: .9;
  white-space: nowrap;
}
.hm-half__price small{
  font-family: var(--text);
  font-weight: 500;
  font-size: .32em;
  letter-spacing: 0;
  margin-right: .35em;
  opacity: .7;
  vertical-align: .9em;
}
.hm-tiers{ display: grid; }
.hm-tiers li{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line-on-dark);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
}
.hm-half--b .hm-tiers li{ border-top-color: var(--line-on-light); }
.hm-tiers b{ font-weight: 600; white-space: nowrap; }
.hm-half__bottom{ display: grid; gap: 1.5rem; justify-items: start; }
.hm-half__desc{ max-width: 40ch; opacity: .75; line-height: 1.5; }

/* =========================================================
   5. KONTAKT — taśma przyspiesza razem z przewijaniem
   ========================================================= */

.hm-out{
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: clamp(4rem, 14vh, 9rem) 0 clamp(3rem, 8vh, 5rem);
  border-bottom: 1px solid var(--line-on-dark);
}
.hm-out__bg{ opacity: .28; }
.hm-marq{
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 var(--edge);
}
.hm-marq__row{ display: grid; }
.hm-marq__row span{
  display: block;
  font-size: clamp(3.2rem, 15vw, 16rem);
  line-height: .86;
  white-space: nowrap;
  max-width: 100%;
}
.hm-marq:hover .hm-marq__row span.hm-outline-w{ -webkit-text-fill-color: var(--white); color: var(--white); }

.hm-out__grid{
  position: relative;
  z-index: 1;
  margin-top: clamp(2.5rem, 8vh, 5rem);
  padding: 0 var(--edge);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.hm-out__tel{
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 6.5rem);
  letter-spacing: -.035em;
  line-height: .9;
  white-space: nowrap;
}
.hm-out__tel:hover{ text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.hm-out__col{ display: grid; gap: .35rem; color: var(--muted-on-dark); font-size: 1rem; line-height: 1.5; }
.hm-out__col a{ color: var(--white); }

/* =========================================================
   Mechanika przewijania — tylko z JS i bez „ogranicz ruch”
   ========================================================= */

.js-motion .hm-hero{ height: 180svh; }
.js-motion .hm-ct{ height: 250svh; }
.js-motion .hm-pk{ height: 175svh; }

.js-motion .hm-pin{
  position: sticky;
  top: var(--hh);
  height: calc(100svh - var(--hh));
}
.js-motion .hm-hero .hm-stage,
.js-motion .hm-ct .hm-stage{ min-height: 0; }

/* =========================================================
   Responsywność
   ========================================================= */

@media (max-width: 980px){
  .hm-pf__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-hero__foot{ grid-template-columns: 1fr; }
  .hm-out__grid{ grid-template-columns: 1fr 1fr; }
  .hm-out__tel{ grid-column: 1 / -1; }
}

@media (max-width: 860px){
  .hm-hero__frame{
    clip-path: inset(
      calc(var(--p) * 2%) calc(var(--p) * 3%) calc(var(--p) * 48%) calc(var(--p) * 3%)
      round calc(var(--p) * 16px)
    );
  }
  .hm-hero__stats strong{ font-size: clamp(1.6rem, 8vw, 2.6rem); }
  /* na telefonie „pod” i „Google.” w osobnych liniach — większy napis */
  .hm-hero__title{ font-size: min(12.6vw, 10svh); }
  .hm-hero__title .w{ display: block; }
  .hm-hero__title .ln--in{ margin-left: 0; }
  .hm-hero__head{ margin: auto 0; }
  .hm-hero__lead p{ display: none; }

  .hm-phone:nth-child(4){ display: none; }
  .hm-phone{ width: 26vw; }
  .hm-phone:nth-child(2){ width: 31vw; }
  .hm-ct__word--a{ top: 6%; }
  .hm-ct__word--b{ bottom: auto; top: 20%; }
  .hm-ct__info{ right: var(--edge); }

  /* Pakiety na telefonie: bez drzwi, dwie pełne karty jedna pod drugą */
  .js-motion .hm-pk{ height: auto; }
  .hm-pk .hm-stage,
  .js-motion .hm-pk .hm-pin{
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    flex-direction: column;
  }
  .hm-pk__word{ display: none; }
  .hm-half{ min-height: 88svh; transform: none !important; }
}

@media (max-width: 560px){
  .hm-pf__grid{ grid-template-columns: 1fr; }
  .hm-out__grid{ grid-template-columns: 1fr; }
  .hm-hero__stats span{ font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce){
  .hm-media::before, .hm-hint i{ animation: none; }
}

/* ---------- Wideo w tle: Portfolio i stopka ---------- */
.hm-pf__bg{ opacity: .35; mix-blend-mode: multiply; }
.hm-pf__inner{ position: relative; z-index: 1; }
.hm-foot{ position: relative; overflow: hidden; }
.hm-foot__bg{ opacity: .22; }
.hm-foot > *:not(.hm-media){ position: relative; z-index: 1; }

/* ---------- Kafel UGC: podgląd strony na żywo ---------- */
.hm-tile__live{
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #151515;
}
.hm-tile__live iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;          /* 1440 x 900 = proporcje 16:10 jak kafel */
  max-width: none;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;   /* klik trafia w link kafla, nie w iframe */
  filter: grayscale(1);
  transition: filter .6s ease;
}
.hm-tile:hover .hm-tile__live iframe,
.hm-tile:focus-visible .hm-tile__live iframe{ filter: grayscale(0); }
@media (hover: none){ .hm-tile__live iframe{ filter: none; } }
.hm-tile__badge{
  position: absolute;
  top: .9rem;
  left: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(10,10,10,.72);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hm-tile__badge i{
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #3ddc84;
  animation: hm-blink 1.6s steps(1) infinite;
}
.hm-half__price em{
  font-style: normal;
  font-family: var(--text);
  font-weight: 500;
  font-size: .3em;
  letter-spacing: 0;
  margin-left: .4em;
  opacity: .7;
}
@media (prefers-reduced-motion: reduce){ .hm-tile__badge i{ animation: none; } }

/* ---------- Portfolio: grupy kafli ---------- */
.hm-pf__group{
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding-top: clamp(1rem, 2.5vh, 1.5rem);
  border-top: 1px solid var(--line-on-light);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hm-pf__group span{ color: var(--muted-on-light); font-weight: 500; }
.hm-tile__live iframe:not([src]){ visibility: hidden; }

/* ---------- Produkcja treści: duży kafel na żywo + tekst ---------- */
.hm-pt__grid{
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}
.hm-pt__text{ display: grid; gap: 1.25rem; justify-items: start; }
.hm-pt__text p{ max-width: 42ch; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.5; }
.hm-pt__text .hm-pt__lead{ font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.25; font-weight: 600; }
@media (max-width: 900px){ .hm-pt__grid{ grid-template-columns: 1fr; } }

/* ---------- Content & Ads: kwadratowe materiały 1:1 (post / karuzela / warianty A/B) ---------- */
.hm-phone--sq{
  aspect-ratio: 1 / 1;
  width: clamp(130px, 17vw, 280px);
  border-radius: clamp(12px, 1.4vw, 22px);
}
.hm-phone--sq:nth-child(2),
.hm-phone--sq:nth-child(3){ width: clamp(150px, 20vw, 330px); }
.hm-phone--sq:nth-child(2){ margin-top: 12vh; }
.hm-phone--sq:nth-child(3){ margin-bottom: 12vh; }
@media (max-width: 980px){
  .hm-phones--sq{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(78vw, 480px);
    gap: .75rem;
  }
  .hm-phones--sq .hm-phone--sq,
  .hm-phones--sq .hm-phone--sq:nth-child(n){ display: block; width: 100%; margin: 0; }
}

/* Stan „brak pliku” */
.hm-media.is-missing{ background: linear-gradient(135deg, #1c1c1c, #2a2a2a); }

/* Pakiety — 4 pozycje cennika mieszczą się na niższych ekranach laptopów */
@media (min-width: 861px) and (max-height: 860px){
  .hm-tiers li{ padding: .55rem 0; }
  .hm-half__bottom{ gap: 1rem; }
}
