/* =========================================================
   GLOBAL FONT: Noto Serif Thai
   ========================================================= */

/* 1) Import fontu z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:wght@400;500;600;700&display=swap');
/* =========================================================
   HEADER + MENU (górne)
   ========================================================= */

/* Kolor czcionki w menu */
header.container-header .container-nav .mod-menu a,
header.container-header .container-nav .mod-menu a:visited {
  color: rgb(38, 32, 26) !important;
  text-decoration: none;
}

header.container-header .container-nav .mod-menu a:hover,
header.container-header .container-nav .mod-menu a:focus,
header.container-header .container-nav .mod-menu a[aria-current="page"] {
  color: rgb(38, 32, 26) !important;
  opacity: 0.85;
}

/* Kropki w menu */
header.container-header .container-nav .mod-menu .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

header.container-header .container-nav .mod-menu .nav-item > a::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-block;
  background: #ccc;
}

/* kolory kropek – klasa jest na <a> */
header.container-header .container-nav .mod-menu a.dot-start::before {
  background: #e9e8e2;
}
header.container-header .container-nav .mod-menu a.dot-omnie::before {
  background: #272019;
}
header.container-header .container-nav .mod-menu a.dot-oferta::before {
  background: #df5500;
}
header.container-header .container-nav .mod-menu a.dot-artykuly::before {
  background: #9a3639;
}
header.container-header .container-nav .mod-menu a.dot-cennik::before {
  background: #524c33;
}
header.container-header .container-nav .mod-menu a.dot-kontakt::before {
  background: #d9d9d9;
}

header.container-header .container-nav .mod-menu a.dot-start{
  font-size: 1.2rem !important;
}
header.container-header .container-nav .mod-menu a.dot-omnie{
  font-size: 1.2rem !important;
}
header.container-header .container-nav .mod-menu a.dot-oferta{
  font-size: 1.2rem !important;
}
header.container-header .container-nav .mod-menu a.dot-artykuly{
  font-size: 1.2rem !important;
}
header.container-header .container-nav .mod-menu a.dot-cennik{
  font-size: 1.2rem !important;
}
header.container-header .container-nav .mod-menu a.dot-kontakt{
  font-size: 1.2rem !important;
}

/* Wyrównanie headera do breadcrumbs */
header.container-header {
  background: #fff;
  background-image: none;
  padding-top: 10px !important;
  padding-bottom: 6px !important;

  padding-inline: calc(
    (100% - min(100%, var(--cassiopeia-grid-max-width, 1370px))) / 2 +
      var(--cassiopeia-grid-gutter, var(--bs-gutter-x, 1.5rem))
  ) !important;

  margin: 0 !important;
}

/* usuń przerwę między nagłówkiem a siatką strony */
.site-grid {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* breadcrumbs też bez luzu */
.container-component .mod-breadcrumbs__wrapper {
  margin-top: 0 !important;
}

/* logo */
header.container-header .brand-logo img {
  display: block;
  max-height: 82px;
  width: auto;
  height: auto;
}

header.container-header .navbar-brand {
  margin-left: 0 !important;
}
header.container-header a.brand-logo {
  margin-left: 0 !important;
}

/* układ desktop: logo lewo, menu prawo */
@media (min-width: 992px) {
  header.container-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }

  header.container-header .container-nav {
    margin-left: auto;
  }

  header.container-header .container-nav .mod-menu .mod-list.nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: nowrap;
  }
}

/* MENU – zawsze w jednej linii */
header.container-header .container-nav,
header.container-header .container-nav .mod-menu,
header.container-header .container-nav .mod-menu .mod-list.nav {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

header.container-header .container-nav .mod-menu .nav-item,
header.container-header .container-nav .mod-menu .nav-item > a {
  white-space: nowrap !important;
}

@media (max-width: 1200px) {
  header.container-header .container-nav .mod-menu .mod-list.nav {
    gap: 1rem !important;
  }

  header.container-header .container-nav .mod-menu .nav-item > a {
    gap: 0.45rem !important;
    font-size: 0.95rem;
  }

  header.container-header .container-nav .mod-menu .nav-item > a::before {
    width: 22px !important;
    height: 22px !important;
  }
}

@media (max-width: 992px) {
  header.container-header .container-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   HERO (sekcja z foto + intro) — wersja uproszczona
   ========================================================= */

.pm-hero{
  background: #ffffff;
  border-radius: 6px;

  /* kwo - tlo - ustaw marginesy jeśli będzie tło */
  /* padding: 0 28px 28px 28px !important; 
  padding: top right bottom left;*/
  padding: 36px 0 0 18px !important;

  display: grid;
  grid-template-columns: 1fr 1fr !important;
  /* gap: 28px; */
  row-gap: 0px;     /* pion (między wierszami) */
  column-gap: 28px;  /* poziom (między kolumnami) */

  /* kluczowe: oba pola startują od góry */
  align-items: start !important;
}

/* obrazek (jeśli używasz .pm-hero__img) */
.pm-hero__img{ align-self: start; }
.pm-hero__img img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

/* link „więcej…” */
.pm-hero__more-link{
  display: inline-block;
  padding: 10px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: rgb(38, 32, 26);
}
.pm-hero__more-link:hover,
.pm-hero__more-link:focus{
  background: rgba(0,0,0,0.06);
  opacity: 0.85;
}

/* treść (jeśli używasz .pm-hero__content) */
.pm-hero__content{
  padding-top: 0;
  font-size: 1.0rem;
}
.pm-hero__content-start{
  padding-top: 0;
  font-size: 1.0rem;
}

/* nagłówki w hero */
.pm-hero__content h1{ font-size: 1.6rem; margin-top: 0; padding: 0 0 20px 0; }
.pm-hero__content h2{ font-size: 1.4rem; margin-top: 0; padding: 0 0 20px 0; }
.pm-hero__content h3{ font-size: 1.2rem; margin-top: 0; padding: 0 0 20px 0; }

.pm-hero__content li{ padding-top: 10px; }
.pm-hero__content p{ padding-bottom: 20px; }

/* intro / more (zostawiam Twoje ustawienia) */
.pm-hero__intro{
  font-size: 1.0rem;
  margin-left: 25%;
  width: 70%;
}
.pm-hero__intro br{
  padding-top: 20px;
}
.pm-more{
  padding-top: 20px;
  font-size: 1.0rem;
  margin-left: 70%;
  width: 20%;
}

/* mobile: jedna kolumna */
@media (max-width: 900px){
  .pm-hero{
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 901px){
  .pm-hero > .pm-hero__content-start{
    display: flex;
    flex-direction: column;
    justify-content: center; /* wyśrodkowanie pionowe */
    height: 100%;
  }

  .pm-hero > .pm-hero__content-start .pm-hero__intro{
    padding-top: 0;
  }
}

/* =========================================================
   PRZYCISK “Umów się!”
   ========================================================= */

.pm-hero_start {
  margin-top: 48px;
  margin-bottom: 0px;
  text-align: center; /* wyśrodkuje elementy inline/inline-block */
}

.pm-hero_start .pm-hero__btn {
  display: inline-block; /* zamiast block */
  width: 30%; /* zamiast 100% */
  text-align: center;
  min-width: 240px; /* opcjonalnie: żeby był “konkretny” */
}

.pm-hero__cta{
  margin-top: 24px;
  width: 30%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}


.pm-hero__cta .pm-hero__btn{
  display: inline-block; /* zamiast block */
  width: min(420px, 100%); /* max 420px, na mobile 100% */
}

.pm-hero__btn {
  display: block;
  width: 100%;
  padding: 18px 16px;
  text-align: center;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  background: #2e271f;
  color: #ececec;
  border-radius: 6px;
}

.pm-hero__btn:hover,
.pm-hero__btn:focus {
  opacity: 0.9;
  color: #ececec;
  transform: scale(1.05);
}

/* =========================================================
   ARTYKUŁ: układ
   ========================================================= */

.pm-article-card {
  background: #ffffff;
  /*   background: #f2f2f2; */
  border-radius: 6px;
  padding: 28px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1.7;
}

.pm-article-layout {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px;
  align-items: start;
}

.pm-article-layout__left {
  max-width: 720px;
  font-size: 1.0rem;
  max-width: none !important;
}

  .pm-article-layout__left h1{
    font-size: 1.6rem;
	padding-bottom: 10px;
  }
  .pm-article-layout__left h2{
    font-size: 1.4rem;
	padding-top: 20px;
	padding-bottom: 10px;
  }  
  .pm-article-layout__left h3{
    font-size: 1.2rem;
	padding-top: 20px;
	padding-bottom: 10px;
  }   

/* Prawa kolumna (zdjęcie) ma startować od samej góry siatki */
.pm-article-layout__right{
  align-self: start;
}

.pm-article-layout__right img {
  display: block;
  width: 100% !important;
  max-height: none !important;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 0 !important;
  display: block;
  margin-bottom: 10px;
}

.pm-article-layout__bottom {
  grid-column: 1 / -1;
  column-count: 1;
  column-gap: 40px;
  font-size: 1.0rem;
}

  .pm-article-layout__bottom h1{
    font-size: 1.6rem;
	padding-bottom: 10px;
  }
  .pm-article-layout__bottom h2{
    font-size: 1.4rem;
	padding-top: 10px;
	padding-bottom: 10px;
  }  
  .pm-article-layout__bottom h3{
    font-size: 1.2rem;
	padding-top: 10px;
	padding-bottom: 10px;
  }   

.pm-article-layout__bottom p {
    padding-bottom: 0px;
}

.pm-article-layout__bottom h3,
.pm-article-layout__bottom p,
.pm-article-layout__bottom ul {
  break-inside: avoid;
}
.pm-article-layout__bottom ul li{
  padding-bottom: 5px;
}

@media (max-width: 900px) {
  .pm-article-layout {
    grid-template-columns: 1fr;
  }

  .pm-article-layout__bottom {
    column-count: 1;
  }
}
.pm-article-layout__bottom .pm-keep-together{
  break-inside: avoid;
  page-break-inside: avoid;     /* starsze */
  -webkit-column-break-inside: avoid; /* Safari */
}

/* =========================================================
   MENU BOCZNE (moduł z klasą pm-card)
   ========================================================= */

.pm-card {
  background: #ffffff;
/*   background: #f2f2f2; */  
  border-radius: 18px;
  padding: 22px;
  box-sizing: border-box;
}

.pm-card .mod-menu a {
  display: block;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
}

.pm-card .mod-menu a:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* =========================================================
   STOPKA: dopięcie do Cassiopeia + układ kontakt/mapa
   ========================================================= */

/* globalna stopka Cassiopeia */
footer.container-footer.footer.full-width {
  background: #ffffff !important;
  background-image: none !important;
  padding-top: 0;
  padding-bottom: 40px;
}

/* Cassiopeia potrafi zwężać „dziecko siatki” w stopce – rozepnij */
footer.container-footer.footer.full-width .grid-child {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: none !important;
}

/* jeśli stopka jest w module Custom */
footer.container-footer.footer.full-width .grid-child > .mod-custom {
  width: 100% !important;
  max-width: none !important;
}

/* Twój kafel stopki */
.footer-wrapper {
  background: #E9E8E2;
  color: #000000;

  max-width: min(100% - 3rem, var(--cassiopeia-grid-max-width, 1370px));

  /* STOPKA bliżej artykułu: tu regulujesz */
  margin: 10px auto 10px;

  border-radius: 6px;
  padding: 24px 28px;
  box-sizing: border-box;

  display: grid;

  /* 33/66 (kontakt / mapa). Dla 50/50 ustaw: 1fr 1fr */
  grid-template-columns: 2fr 1fr;

  gap: 28px;
  align-items: stretch; /* równa wysokość kolumn */
}

/* linki w stopce */
.footer-wrapper a {
  color: #000000;
  text-decoration: none;
}

.footer-wrapper a:hover,
.footer-wrapper a:focus {
  text-decoration: underline;
}

/* kolumny w grid nie mogą się zwężać przez min-width:auto */
.footer-kontakt {
  min-width: 0;
  margin-left: 30%;
  width: 55%;
  font-size: 1.2rem;
}

.kontakt {
  margin-top: 56px;
  min-width: 0;
  margin-left: 15%;
  width: 95%;
  font-size: 1.2rem;
}

.footer-map {
  min-width: 0;
}

/* mapa ma wypełniać prawą kolumnę */
.footer-map iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px;
  display: block !important;
  border: 0 !important;
  border-radius: 6px;
}

/* “Atomowo”: niezależnie od wszystkiego, iframe mapy w stopce ma być szeroki */
footer.container-footer.footer.full-width iframe[src*="google.com/maps"] {
  width: 100% !important;
  max-width: none !important;
  display: block !important;
}

/* Mobile: jedna kolumna */
@media (max-width: 900px) {
  .footer-wrapper {
    grid-template-columns: 1fr;
    margin: 16px 1rem 32px;
  }

  .footer-map iframe {
    height: 260px !important;
  }
}

/* =========================================================
   OFERTA: 75% info + 25% przycisk po prawej
   ========================================================= */

.pm-offer-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 75% / 25% */
  gap: 16px;
  align-items: center;
}

.pm-offer-info {
  min-width: 0;
}

.pm-offer-action {
  min-width: 0;
  display: flex;
  justify-content: flex-end; /* przycisk przy prawej krawędzi */
}

/* przycisk w ofercie nie może mieć width:100% (bo wtedy wypełnia 1/4) */
.pm-offer-action .pm-hero__btn {
  width: auto;
}

/* mniejszy przycisk (jeśli używasz .pm-hero__btn--small) */
.pm-hero__btn--small {
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 6px;
}

/* Mobile: w 1 kolumnie */
@media (max-width: 600px) {
  .pm-offer-row {
    grid-template-columns: 1fr;
  }

  .pm-offer-action {
    justify-content: flex-start;
  }

  .pm-offer-action .pm-hero__btn {
    width: 100%;
  }
}

/* =========================================================
   GLOBAL FONT: Noto Serif Thai
   ========================================================= */

/* 1) Import fontu z Google Fonts 
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Thai:wght@400;500;600;700&display=swap');
*/

/* 2) Ustawienie globalne */
:root{
  --pm-font-serif: "Noto Serif Thai", "Noto Serif", Georgia, "Times New Roman", serif;
}

html, body{
  font-family: var(--pm-font-serif) !important;
}

/* 3) Żeby nadpisać typografię szablonu również w typowych elementach */
body,
h1,h2,h3,h4,h5,h6,
p,li,span,a,
button,input,select,textarea,
.mod-menu, .navbar, .container-header, footer{
  font-family: var(--pm-font-serif) !important;
}

/* =========================================================
   KONTAKT: 50/50 + wiersze kontaktu w jednej linii
   (DODATKI)
   ========================================================= */

/* 50% lewa / 50% prawa */
.pm-hero.pm-contact-hero{
  /*background: #ffffff; */
  padding: 0;
  gap: 0;
  border-radius: 0;

  grid-template-columns: 1fr 1fr; /* 50/50 */
  overflow: hidden; /* żeby zdjęcie było „na styk” */
}

/* lewa kolumna (kontakt) – dopasuj padding pod swój gust */
.pm-hero.pm-contact-hero .pm-hero__img{
  padding: 50px 60px 20px;
}

/* prawa kolumna (zdjęcie) */
.pm-hero.pm-contact-hero .pm-hero__content{
  padding: 0; /* nadpisuje Twoje padding-top:20px z desktop */
}

/* zdjęcie ma wypełniać prawą połowę */
.pm-hero.pm-contact-hero .pm-hero__content img{
  width: 100%;
  height: 100%;
  min-height: 520px;   /* żeby prawa strona nie była „niska” */
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* >>> TO JEST TA KLASA: pm-contact-row – wszystko w jednym wierszu <<< */
.pm-contact-row{
  margin-top: 10px;  
  display: grid;
  grid-template-columns: 110px 1fr auto; /* imię | tel | logo */
  align-items: center;
  column-gap: 22px;

  /* zabezpieczenie przed łamaniem na 2 linie */
  white-space: nowrap;
}

.pm-contact-name{
  font-size: 20px;
}

.pm-contact-phone{
  font-size: 20px;
  text-decoration: none;
  color: inherit;
}

.pm-contact-znany img{
  height: 40px;
  width: auto;
  display: block;
}

.pm-contact-mail a{
  margin-top: 26px;
  text-decoration: none;
  font-size: 20px;
  color: inherit;
}
.pm-contact-mail a:hover{ text-decoration: underline; }

.pm-contact-address{
  margin-top: 26px;
  line-height: 1.6;
  font-size: 20px;

  margin-left: 25%;
  width: 75%;
}

.pm-contact-address-new{
  margin-top: 26px;
  line-height: 1.6;
  font-size: 20px;

  margin-left: 5%;
  width: 85%;
}

/* Mobile: jedna kolumna */
@media (max-width: 900px){
  .pm-hero.pm-contact-hero{
    grid-template-columns: 1fr;
  }

  .pm-hero.pm-contact-hero .pm-hero__img{
    padding: 40px 22px 24px;
  }

  .pm-hero.pm-contact-hero .pm-hero__content img{
    min-height: 320px;
  }

  /* na mobile pozwalamy się złamać, żeby nie wyjeżdżało poza ekran */
  .pm-contact-row{
    white-space: normal;
    grid-template-columns: 1fr; /* wszystko pod sobą */
    row-gap: 10px;
  }
}

.pm-contact-hero .pm-hero__content{
  border-radius: 6px;
  overflow: hidden;
}


.pm-contact-hero .pm-hero__content img{
  border-radius: 6px;
}

/* Kontakt: mail wyśrodkowany i niżej o 24px */
.pm-contact-hero .pm-contact-mail{
  text-align: center;
  margin-top: 0px;   /* obniżenie */
  margin-bottom: 0;   /* opcjonalnie: bez dodatkowego luzu */
}

.pm-contact-hero h1 {
	font-size: 1.6rem;
}
.pm-contact-hero h1 + .kontakt{
  margin-top: 48px;
}


.pm-contact-hero .pm-contact-mail a{
  display: inline-block; /* żeby centrowanie było pewne */
}

.pm-contact-hero .pm-contact-list{
  margin-top: 72px; /* przesunięcie w dół względem H2 */
}

.pm-contact-hero .pm-contact-address img{
  width: 140px;
  height: auto;      /* zachowuje proporcje */
  display: block;
}

.pm-contact-hero .pm-contact-address-new img{
  width: 140px;
  height: auto;      /* zachowuje proporcje */
  display: block;
}
/* =========================================================
   OFERTA: kafle 2x2 jako „jeden duży kafel” (DODATKI)
   ========================================================= */

.pm-offers{
  max-width: min(100% - 3rem, var(--cassiopeia-grid-max-width, 1370px));
  margin: 0 auto;
}

.pm-offers > h2{
  margin: 0 0 20px 0;
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.05;
}

/* kontener całej „mozaiki” */
.pm-offers__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;     /* 2 kolumny */
  gap: 18px;
  padding: 36px 18px 18px 18px;
  border-radius: 18px;               /* duży kafel */
  background: #ffffff;
  /*   background: #f2f2f2; */
  box-sizing: border-box;
}

/* pojedynczy kafel */
.pm-offer-tile{
  display: grid;
  grid-template-columns: 1fr 110px;  /* tekst + miniatura */
  gap: 14px;
  align-items: center;

  padding: 22px;
  border-radius: 16px;
  text-decoration: none;
  color: rgb(38, 32, 26);

  box-sizing: border-box;
  transition: transform .12s ease, opacity .12s ease;
}

.pm-offer-tile:hover,
.pm-offer-tile:focus{
  transform: translateY(-1px);
  opacity: .92;
}

/* tytuł + meta */
.pm-offer-tile__title{
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 8px;
}

.pm-offer-tile__meta{
  font-size: 1.2rem;
  opacity: .75;
}

/* miniatura */
.pm-offer-tile__img{
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* pastelowe kolory (4 różne) */
.pm-offer-tile--cbt{       background: #f2f2f2; } /* jasny beż E9E8E2*/
.pm-offer-tile--emdr{      background: #f2f2f2; } /* pastelowy błękit E9F2FF*/
.pm-offer-tile--psytrauma{ background: #f2f2f2; } /* pastelowy róż FFE9ED*/
.pm-offer-tile--coaching{  background: #f2f2f2; } /* pastelowa mięta E9F7EF*/

/* Mobile */
@media (max-width: 900px){
  .pm-offers__grid{
    grid-template-columns: 1fr; /* 1 kolumna */
    gap: 14px;
    padding: 14px;
  }

  .pm-offer-tile{
    grid-template-columns: 1fr 96px;
    padding: 18px;
  }

  .pm-offer-tile__img{
    height: 74px;
  }
}

/* =========================================================
   OFERTA: kafelek tła jak .pm-hero (O mnie)
   ========================================================= */

/* SZARE TŁO + PADDING na wrapperze (jak pm-hero) */
.pm-offers{
  background: #ffffff;
/*   background: #f2f2f2; */  
  border-radius: 6px;
 /* 
   padding: 0 15px 0 15px !important;
   padding: 28px;
  top:    28px
	right:  28px
	bottom: 28px
	left:   28px
	*/

  padding: 0 0 0 0 !important;
  box-sizing: border-box;

  /* nie zawężaj tego max-width (to robiło różnicę) */
  max-width: none;
  margin: 0;
}

/* siatka tylko jako layout (bez tła i bez dodatkowego paddingu) */
.pm-offers__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* nagłówek ma być nad kaflami */
.pm-offers__grid > h1{
  grid-column: 1 / -1;
  font-size: 1.6rem;
  margin: 0 0 18px 0;
}

.pm-offers__grid > h2{
  grid-column: 1 / -1;
  font-size: 1.6rem;
  margin: 0 0 18px 0;
}

/* kafle */
.pm-offer-tile{
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 14px;
  align-items: center;

  padding: 22px;
  border-radius: 6px;
  text-decoration: none;
  color: rgb(38, 32, 26);
  box-sizing: border-box;

  transition: transform .12s ease, opacity .12s ease;
}

.pm-offer-tile:hover,
.pm-offer-tile:focus{
  transform: translateY(-1px);
  opacity: .92;
}

.pm-offer-tile__title{
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 8px;
}

.pm-offer-tile__meta{
  font-size: 1.2rem;
  opacity: .75;
}

.pm-offer-tile__img{
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* pastelowe kolory */
.pm-offer-tile--cbt{       background: #f2f2f2; } / * E9E8E2*/
.pm-offer-tile--emdr{      background: #f2f2f2; } / * E9F2FF*/
.pm-offer-tile--psytrauma{ background: #f2f2f2; } / * FFE9ED*/
.pm-offer-tile--coaching{  background: #f2f2f2; } / * E9F7EF*/

/* mobile */
@media (max-width: 900px){
  .pm-offers__grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pm-offer-tile{
    grid-template-columns: 1fr 96px;
    padding: 18px;
  }
  .pm-offer-tile__img{
    height: 74px;
  }
}

/* =========================================================
   OFERTA: kafelki 2x2 – kwadrat 50/50 (foto góra, tekst dół)
   (POSPRZĄTANE – jedna definicja, bez duplikatów)
   ========================================================= */

/* Wrapper oferty (wygląd jak Twoje kafle: szare tło + padding) */
.pm-offers{
  background: #ffffff;
  /*   background: #f2f2f2; */
  border-radius: 6px;
  padding: 0 0 0 0 !important;
  box-sizing: border-box;

  /* nie zawężamy – tak jak w Twojej ostatniej wersji */
  max-width: none;
  margin: 0;
}

/* Siatka 2x2 */
.pm-offers__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Jeśli nagłówek jest w środku gridu (u Ciebie jest) – niech zajmuje całą szerokość */
.pm-offers__grid > h2{
  grid-column: 1 / -1;
  margin: 0 0 18px 0;
}

/* KAFEL = kwadrat + 2 wiersze (50% / 50%) */
.pm-offer-tile{
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr;

  padding: 0;
  border-radius: 18px;
  overflow: hidden;

  aspect-ratio: 1 / 1;

  text-decoration: none;
  color: rgb(38, 32, 26);

  box-sizing: border-box;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.pm-offer-tile:hover,
.pm-offer-tile:focus{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  opacity: 0.98;
}

/* ZDJĘCIE: górna połowa */
.pm-offer-tile__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* TEKST: dolna połowa */
.pm-offer-tile__text{
  padding: 16px 18px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.pm-offer-tile__title{
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 600;
}

.pm-offer-tile__meta{
  font-size: 1.2rem;
  opacity: 0.85;
}

/* Pastelowe tła */
.pm-offer-tile--cbt{       background: #f2f2f2; } /* E9E8E2*/
.pm-offer-tile--emdr{      background: #f2f2f2; } /* E9F2FF*/
.pm-offer-tile--psytrauma{ background: #f2f2f2; } /* FFE9ED*/
.pm-offer-tile--coaching{  background: #f2f2f2; } /* E9F7EF*/

/* Mobile: 1 kolumna */
@media (max-width: 900px){
  .pm-offers__grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   OFERTA: 4 kafle w jednym rzędzie + nagłówek nad nimi
   (wariant “węższe kafle”)
   ========================================================= */

.pm-offers{
  background: #ffffff;
  /*   background: #f2f2f2; */
  border-radius: 6px;
  padding: 0 0 0 0 !important;
  box-sizing: border-box;
  margin: 0;
}

/* 4 kolumny na desktop */
@media (min-width: 1100px){
  .pm-offers__grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }
}

/* 2 kolumny na tablet */
@media (min-width: 700px) and (max-width: 1099px){
  .pm-offers__grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* 1 kolumna na mobile */
@media (max-width: 699px){
  .pm-offers__grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* nagłówek zawsze nad kaflami */
.pm-offers__grid > h2{
  grid-column: 1 / -1;
  margin: 0 0 18px 0;
}

/* kafel dopasowany do Twojego HTML: img + text */
.pm-offer-tile{
  display: grid;
  grid-template-rows: 120px 1fr; /* góra foto, dół treść */
  padding: 0;
  /*border-radius: 18px;*/
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: rgb(38, 32, 26);
  box-sizing: border-box;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.pm-offer-tile:hover,
.pm-offer-tile:focus{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  opacity: 0.98;
}

/* zdjęcie w kaflu */
.pm-offer-tile__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* dół kafla */
.pm-offer-tile__text{
  padding: 14px 14px 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.pm-offer-tile__title{
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
}

/* opis: ogranicz do kilku linii, żeby 4 kafle wyglądały dobrze */
.pm-offer-tile__meta{
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.85;

  display: -webkit-box;
  -webkit-line-clamp: 4;     /* <- ile linii opisu */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* pastelowe tła */
.pm-offer-tile--cbt{       background: #f2f2f2; } /* E9E8E2 */
.pm-offer-tile--emdr{      background: #f2f2f2; } /* E9E8E2 */
.pm-offer-tile--psytrauma{ background: #f2f2f2; } /* E9E8E2 */
.pm-offer-tile--coaching{  background: #f2f2f2; } /* E9E8E2 */

/* Kafle - wysokość zdjęcia - lub - kolor */
/* KAFLE (artykuły/oferta): foto ma mieć 10px wysokości */
.pm-offers .pm-offer-tile{
  grid-template-rows: 20px 1fr !important;  /* było 120px 1fr */
}

/* obrazek ma się przyciąć do tych 10px */
.pm-offers .pm-offer-tile__img{
  height: 100% !important;
  width: 100% !important;
  object-fit: cover;
  display: block;
}

/* tło tylko w strefie foto (działa najlepiej) */
.pm-offer-tile__img{
  background: #006152; /* pokaże się, gdy obrazek się nie wczyta */
}

/* =========================================================
   STOPKA: zbliż kolumny do środka
   (tekst -> w prawo, mapa -> w lewo)
   ========================================================= */

.footer-wrapper{
  grid-template-columns: 1fr 1fr; /* dwie równe części */
  gap: 28px;                      /* naturalna przestrzeń między kolumnami */
  align-items: stretch;
}

.footer-wrapper-title{
  padding-top: 56px;
  text-align: center;
}

.footer-wrapper-title h2{
	font-size: 1.4rem !important;
}


/* prawa kolumna: odsuń mapę od prawej krawędzi, bliżej środka */
.footer-map{
  padding-right: 56px;             /* TO przesuwa mapę w lewo (ku środkowi) */
  padding-right: 0;
}

/* iframe ma wypełniać “kolumnę mapy” (razem z paddingiem) */
.footer-map iframe{
  width: 100% !important;
  height: 100% !important;
}

/* STOPKA: linki – bez zmiany koloru na hover, tylko tło */
.footer-wrapper a{
  color: inherit !important;          /* zawsze ten sam kolor co tekst */
  text-decoration: none;
  display: inline-block;             /* żeby tło było „pod linkiem” */
  padding: 2px 6px;
  border-radius: 6px;
}

.footer-wrapper a:hover,
.footer-wrapper a:focus{
  color: inherit !important;          /* nie zmieniaj koloru czcionki */
  background: rgba(0,0,0,0.06);       /* tylko tło */
  text-decoration: none;             /* bez podkreślenia */
}

/* opcjonalnie: nie dawaj tła pod linkiem z obrazkiem (ZnanyLekarz) */
.footer-wrapper a:has(img):hover,
.footer-wrapper a:has(img):focus{
  background: rgba(0,0,0,0.06);
}

/* =========================================================
   FOOTER: mobile = dane kontaktowe nad mapą
   ========================================================= */

@media (max-width: 900px){
  .footer-wrapper{
    grid-template-columns: 1fr !important;  /* 1 kolumna */
    gap: 16px !important;
    margin: 16px 1rem 32px !important;
  }

  .footer-kontakt{
    margin-left: 0 !important;
    width: 100% !important;
  }

  .footer-map{
    padding-right: 0 !important;            /* reset przesuwania mapy */
  }

  .footer-map iframe{
    height: 260px !important;               /* stała wysokość na mobile */
    min-height: 260px !important;
  }
}

/* wspólny styl nagłówków sekcji */
.pm-section-h1{
  font-size: 1.6rem !important;
  margin: 0px 0 0 0px !important;
  line-height: 1.05;
}


/* Kontakt: hover tło jak na "więcej..." */
.pm-contact-link,
.pm-contact-phone,
.pm-hero.pm-contact-hero a[href^="mailto:"]{
  display: inline-block;
  padding: 5px 4px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}

.pm-contact-link:hover,
.pm-contact-link:focus,
.pm-contact-phone:hover,
.pm-contact-phone:focus,
.pm-hero.pm-contact-hero a[href^="mailto:"]:hover,
.pm-hero.pm-contact-hero a[href^="mailto:"]:focus{
  background: rgba(0,0,0,0.06);
  opacity: 0.85;
  text-decoration: none; /* żeby nie wracało underline */
}
