/* Poprawki wyłącznie dla telefonów. Arkusz jest podłączony przez media=max-width:767px. */
@media(max-width:767px){
  /* Główna: spokojniejsza etykieta, mocniejszy tytuł i krótsze optycznie akapity. */
  #hero-section{isolation:isolate}
  #hero-section>.max-w-7xl{padding-top:112px;padding-bottom:100px;align-items:flex-start}
  #hero-section div.ms-hero-content{width:calc(100vw - 48px);max-width:460px}
  #hero-section .hero-kicker{margin:0 auto 24px;font-size:9px;line-height:1.4;letter-spacing:.13em}
  #hero-section .hero-kicker>span{padding:7px 12px;text-indent:.13em;max-width:100%}
  #hero-section .ms-hero-heading{gap:6px}
  #hero-section .ms-hero-heading .hero-line-1{font-size:clamp(25px,7.1vw,33px);line-height:1.13;letter-spacing:-.025em;text-wrap:balance}
  #hero-section .ms-hero-description{width:100%;max-width:400px;margin-top:26px;font-size:14px;line-height:1.65;font-weight:400;text-align:left;text-align-last:left;text-wrap:pretty;letter-spacing:normal;word-spacing:normal;hyphens:none;overflow-wrap:break-word}
  #hero-section .ms-hero-description br{display:none}
  #hero-section .ms-mobile-description-part{display:block;margin-top:12px}
  #hero-section::after{background:linear-gradient(90deg,rgba(5,7,10,.86) 0%,rgba(5,7,10,.76) 52%,rgba(5,7,10,.58) 100%),linear-gradient(180deg,rgba(5,7,10,.05),rgba(5,7,10,.22) 70%,rgba(5,7,10,.10))}
  /* Trzy przyciski o wspólnej szerokości i wysokości. Adres formularza bez zmian. */
  #hero-section .hero-cta-row{display:grid;grid-template-columns:1fr;width:100%;max-width:400px;gap:12px;margin-top:26px}
  #hero-section .hero-analysis-cta-wrap{width:100%;max-width:400px;margin-top:12px}
  #hero-section :is(.hero-btn,.hero-analysis-cta){display:flex;box-sizing:border-box;width:100%;min-width:0;min-height:52px;padding:14px 12px;gap:9px;border-radius:999px;font-size:clamp(11.5px,3.1vw,13px);line-height:1.4;justify-content:center}
  #hero-section .hero-btn span{font-size:inherit;letter-spacing:.02em;white-space:nowrap;text-indent:0}
  #hero-section :is(.hero-btn-ico,.hero-analysis-sparkle,.hero-analysis-arrow){width:16px;height:16px;flex:0 0 16px}
  #hero-section .hero-analysis-cta>.ms-analysis-label-desktop{display:none}
  #hero-section .hero-analysis-cta>.ms-analysis-label-mobile[hidden]{display:inline!important;white-space:nowrap;font-size:inherit}
  /* Oferta: biel i malina na jednolicie ciemniejszym tle, nie na jasnych detalach sali. */
  #page-hero.ms-catalog-hero{isolation:isolate;padding-top:160px;padding-bottom:120px}
  #page-hero.ms-catalog-hero::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(5,7,10,.55),rgba(5,7,10,.8) 50%,rgba(5,7,10,.65))}
  #page-hero.ms-catalog-hero .ms-catalog-title{font-size:clamp(29px,8.1vw,38px);line-height:1.18;text-wrap:balance;margin-bottom:0}
  #page-hero.ms-catalog-hero .ms-catalog-intro{font-size:15px;line-height:1.65;text-align:center;text-align-last:center;text-wrap:balance;margin:24px auto 0;max-width:400px;font-weight:400;color:#fff;text-shadow:0 1px 5px #0008;word-spacing:normal;letter-spacing:normal;hyphens:none}
  #page-hero.ms-catalog-hero .ms-catalog-intro>span{display:block;white-space:normal}
  #page-hero.ms-catalog-hero .ms-catalog-intro>span+span{margin-top:14px}
  /* Komunikacja: podpis tła oddzielony od podpisu zdjęcia nachodzącej karty. */
  #page-hero:not(.ms-catalog-hero)>.ai-tag{left:auto;right:16px;top:108px;bottom:auto;z-index:20;font-size:9px}
  #page-hero:not(.ms-catalog-hero)>div.relative>p{font-size:16px;line-height:1.65;font-style:normal;font-weight:400;text-align:center;text-align-last:center;text-wrap:balance;margin:24px auto 0;max-width:400px;color:#fff;word-spacing:normal;letter-spacing:normal;hyphens:none}
  .photo-frame>.ai-tag{left:12px;right:auto;bottom:12px;top:auto;max-width:calc(100% - 24px)}
  /* Długie opisy w tej karcie pozostają równe z lewej, bez rozciągania spacji. */
  .ms-course-page main :is(.paper-card,.navy-card,.delicate-card)>div>p:not([class*="text-center"]){text-align:left;text-align-last:left;word-spacing:normal;hyphens:none}
  /* Krótkie słowa trzymają się następnego wyrazu tylko na telefonie. */
  .ms-mobile-keep{white-space:nowrap}
  /* Trzy informacje o analizie w jednym wierszu, również na małym ekranie. */
  #podejscie .ms-analysis-pills{display:flex;flex-wrap:nowrap;align-items:center;gap:5px;width:100%;max-width:100%}
  #podejscie .ms-analysis-pills>span{flex:0 1 auto;min-width:0;white-space:nowrap;font-size:clamp(9px,2.8vw,11px);line-height:1.4;padding:7px 7px;letter-spacing:0}
  #hero-section .ms-mobile-decision-line{display:block}
  /* Opis pod przyciskiem formularza: do lewej tylko na telefonie. */
  #bezplatna-analiza .ms-analysis-note{text-align:left;text-align-last:left}
  /* Palac Kultury w prawej czesci kadru; wspolny kadr warstw bez przeskoku. */
  #hero-section :is(.hero-bg,.hero-sun,.hero-dawn){background-position:92% center}
}
