/* EduPoint Terapeuci 0.9.0 - cleaned production stylesheet
 * Mobile-first, izolowany od motywu. Karta ma własny rozmiar: liczba terapeutów
 * nie wpływa na jej geometrię. Desktop: stała szerokość, mobile: 100% kontenera.
 */
.ep-team,.ep-profile,.ep-related,.ep-carousel,.ep-carousel-rich{
  --ep-blue:var(--wp--preset--color--edupoint-blue,#0e5385);
  --ep-navy:var(--wp--preset--color--custom-123-b-56,#123b56);
  --ep-soft:var(--wp--preset--color--custom-eaf-2-f-6,#eaf2f6);
  --ep-red:var(--wp--preset--color--edupoint-red,#d8251e);
  --ep-white:#fff;
  --ep-text:#213746;
  --ep-muted:#687d88;
  --ep-line:#dce7ec;
  --ep-line-strong:#c8d9e2;
  --ep-card:#fff;
  --ep-radius:20px;
  --ep-radius-sm:12px;
  --ep-card-width:360px;
  --ep-related-card-width:340px;
  --ep-shadow:0 10px 32px rgba(18,59,86,.08);
  --ep-shadow-hover:0 17px 44px rgba(18,59,86,.14);
  width:100%;
  max-width:1180px;
  margin:clamp(24px,4vw,52px) auto;
  color:var(--ep-text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.55;
  box-sizing:border-box;
  isolation:isolate;
}
.ep-team *,.ep-profile *,.ep-related *,.ep-carousel *,.ep-carousel-rich *{box-sizing:border-box}

.ep-team img,.ep-profile img,.ep-related img,.ep-carousel img,.ep-carousel-rich img{max-width:100%;border:0}

.ep-team h1,.ep-team h2,.ep-team h3,.ep-profile h1,.ep-profile h2,.ep-profile h3,.ep-related h2,.ep-related h3{
  font-family:Poppins,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-transform:none;letter-spacing:normal;
}
.ep-team a,.ep-profile a,.ep-related a{text-underline-offset:3px}
.ep-kicker{display:block;margin:0 0 8px;color:var(--ep-blue);font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}

/* Buttons */
.ep-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 19px;
  border:1px solid transparent;border-radius:999px;background:var(--ep-red);color:#fff!important;text-decoration:none!important;
  font:750 .94rem/1.15 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;box-shadow:none;
  transition:transform .15s ease,filter .15s ease,box-shadow .15s ease;
}
.ep-btn:hover{filter:brightness(.96);transform:translateY(-1px);box-shadow:0 8px 24px rgba(216,37,30,.18)}
.ep-btn:focus-visible,.ep-card__more:focus-visible,.ep-filterbar__mobile:focus-visible,.ep-filter select:focus-visible{outline:3px solid rgba(14,83,133,.20);outline-offset:2px}
.ep-btn--ghost{background:#fff;color:var(--ep-navy)!important;border-color:var(--ep-line-strong)}

/* Grid: karta nie rozciąga się dlatego, że jest sama. */
.ep-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;width:100%;justify-content:start;align-items:stretch}

/* Team card - mobile */
.ep-card{
  width:100%;max-width:100%;min-width:0;overflow:hidden;background:var(--ep-card);border:1px solid var(--ep-line);
  border-radius:var(--ep-radius);box-shadow:var(--ep-shadow);display:grid;grid-template-columns:116px minmax(0,1fr);
  min-height:188px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.ep-card:hover{border-color:var(--ep-line-strong);box-shadow:var(--ep-shadow-hover)}
.ep-card[hidden]{display:none!important}
.ep-card__media{position:relative;min-width:0;background:var(--ep-soft);overflow:hidden}
.ep-card__media>a{display:block;width:100%;height:100%;text-decoration:none}
.ep-card__media img{width:100%;height:100%;min-height:188px;object-fit:cover;object-position:center 18%;display:block}
.ep-card__body{padding:16px 15px 15px;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.ep-card__name{font-size:1.09rem!important;line-height:1.15!important;margin:0 0 5px!important;color:var(--ep-navy)!important;font-weight:780!important}
.ep-card__name a{color:inherit!important;text-decoration:none!important}
.ep-card__role{font-size:.84rem!important;line-height:1.38!important;color:var(--ep-blue)!important;margin:0 0 10px!important;font-weight:680}
.ep-card__text{font-size:.88rem!important;line-height:1.48!important;margin:0 0 11px!important;color:var(--ep-text)!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ep-tags{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.ep-tag{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;background:var(--ep-soft);border:1px solid rgba(14,83,133,.06);border-radius:999px;color:var(--ep-navy);font-size:.7rem;font-weight:760;line-height:1.15}
.ep-card__more{
  display:inline-flex;align-items:center;gap:7px;margin-top:auto;padding-top:13px;color:var(--ep-blue)!important;
  font-size:.86rem;font-weight:820;text-decoration:none!important;border-bottom:1px solid transparent;
}
.ep-card__more:hover{color:var(--ep-red)!important}.ep-card__more span{transition:transform .15s ease}.ep-card__more:hover span{transform:translateX(3px)}
.ep-card--compact .ep-card__body{padding-bottom:14px}

/* Filters */
.ep-filterbar{margin:0 0 15px;width:100%}
.ep-filterbar__mobile{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:60px;border:1px solid var(--ep-line-strong);
  background:#fff;border-radius:15px;padding:10px 14px;font:inherit;color:var(--ep-navy);text-align:left;box-shadow:0 5px 18px rgba(18,59,86,.05);cursor:pointer;
}
.ep-filterbar__mobile>span:first-child{display:grid;gap:1px}.ep-filterbar__mobile strong{font-size:.96rem}.ep-filterbar__mobile small{font-size:.73rem;color:var(--ep-muted);font-weight:620}
.ep-filterbar__icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--ep-soft);font-size:1.15rem}
.ep-filterbar__panel{
  position:fixed;z-index:99999;left:0;right:0;bottom:0;background:#fff;border-radius:22px 22px 0 0;padding:19px 18px calc(19px + env(safe-area-inset-bottom));
  box-shadow:0 -22px 70px rgba(18,59,86,.24);transform:translateY(110%);transition:transform .25s ease;max-height:88vh;overflow:auto;
}
.ep-filterbar__panel.is-open{transform:translateY(0)}.ep-filters-open{overflow:hidden}
.ep-filterbar__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;color:var(--ep-navy);font-size:1.06rem}
.ep-filterbar__head button{border:0;background:var(--ep-soft);width:38px;height:38px;border-radius:50%;font-size:1.5rem;line-height:1;color:var(--ep-navy);cursor:pointer}
.ep-filterbar__fields{display:grid;gap:12px}.ep-filter{display:grid;gap:6px;margin:0}
.ep-filter>span{font-size:.71rem;font-weight:820;color:var(--ep-muted);text-transform:uppercase;letter-spacing:.035em}
.ep-filter select{width:100%!important;min-height:48px!important;border:1px solid var(--ep-line-strong)!important;border-radius:11px!important;background:#fff!important;padding:0 38px 0 12px!important;color:var(--ep-text)!important;font:660 .91rem/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;box-shadow:none!important}
.ep-filterbar__actions{display:flex;gap:10px;margin-top:17px}.ep-filterbar__actions>*{flex:1}
.ep-results-line{font-size:.78rem;color:var(--ep-muted);margin:0 0 13px;padding-left:1px}.ep-results-line strong{color:var(--ep-navy)}
.ep-empty{padding:20px;border:1px dashed var(--ep-line-strong);background:var(--ep-soft);border-radius:14px;margin-top:16px}.ep-empty strong,.ep-empty span{display:block}.ep-empty span{margin-top:4px;color:var(--ep-muted);font-size:.88rem}

/* Help CTA */
.ep-help{margin-top:26px;background:var(--ep-navy);color:#fff;border-radius:18px;padding:19px;display:grid;gap:14px;overflow:hidden}
.ep-help strong{font-family:Poppins,Inter,sans-serif;font-size:1.08rem}.ep-help p{margin:4px 0 0!important;color:rgba(255,255,255,.84)!important;font-size:.88rem!important;line-height:1.5!important}.ep-help .ep-btn{width:100%}

/* Profile */
.ep-profile__hero{display:grid;gap:19px;background:linear-gradient(145deg,var(--ep-soft) 0%,#f8fbfc 70%,#fff 100%);border:1px solid #e2edf2;border-radius:22px;padding:14px;margin-bottom:16px;overflow:hidden}
.ep-profile__photo{aspect-ratio:4/5;border-radius:16px;overflow:hidden;background:#dce8ee;box-shadow:0 10px 30px rgba(18,59,86,.08)}
.ep-profile__photo img{width:100%;height:100%;object-fit:cover;object-position:center 18%;display:block}
.ep-profile__intro{align-self:center;padding:2px 2px 4px}.ep-profile__intro h1{font-size:clamp(1.9rem,9vw,3.05rem)!important;line-height:1.04!important;margin:0 0 8px!important;color:var(--ep-navy)!important;font-weight:780!important}
.ep-profile__role{margin:0 0 12px!important;color:var(--ep-blue)!important;font-weight:760!important;line-height:1.38!important;font-size:.96rem!important}.ep-profile__lead{font-size:.97rem!important;line-height:1.62!important;margin:0 0 15px!important;color:var(--ep-text)!important}.ep-tags--hero{margin-bottom:16px}.ep-profile__intro .ep-btn{width:100%}
.ep-profile__facts{display:grid;gap:8px;margin:0 0 26px}.ep-profile__facts>div{background:#fff;padding:14px 15px;border:1px solid var(--ep-line);border-radius:13px;box-shadow:0 4px 16px rgba(18,59,86,.035)}
.ep-fact-label{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.055em;color:var(--ep-muted);font-weight:820;margin-bottom:4px}.ep-profile__facts strong{display:block;color:var(--ep-navy);font-size:.87rem;line-height:1.45}
.ep-profile__content{display:grid;gap:26px}.ep-profile__section{padding:0}.ep-profile__section h2{font-size:1.34rem!important;line-height:1.2!important;color:var(--ep-navy)!important;margin:0 0 10px!important;font-weight:770!important}.ep-richtext{font-size:.97rem;line-height:1.72;color:var(--ep-text)}
.ep-richtext p{font-size:inherit!important;line-height:inherit!important;color:inherit!important}.ep-richtext p:first-child{margin-top:0!important}.ep-richtext p:last-child{margin-bottom:0!important}
.ep-profile__section--voice{padding:18px 18px 19px;border-left:4px solid var(--ep-blue);background:#f7fafc;border-radius:0 14px 14px 0}.ep-profile__section--recommendation{padding:20px;background:var(--ep-soft);border:1px solid #dbe9f0;border-radius:16px}.ep-profile__section--recommendation h2:before{content:"EduPoint · ";color:var(--ep-blue);font-size:.72em}
.ep-profile__services{background:#fff;border:1px solid var(--ep-line);border-radius:17px;padding:18px;box-shadow:var(--ep-shadow)}.ep-service-list{margin-bottom:15px}.ep-service-row{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--ep-line);font-size:.9rem;font-weight:720;color:var(--ep-navy)}
.ep-service-row:first-child{padding-top:0}.ep-service-row:last-child{border-bottom:0}.ep-service-row a{font-size:.77rem;white-space:nowrap;color:var(--ep-blue)!important;text-decoration:none!important;font-weight:820}.ep-profile__services .ep-btn{width:100%}
.ep-profile__credentials details{border-top:1px solid var(--ep-line);border-bottom:1px solid var(--ep-line)}.ep-profile__credentials summary{list-style:none;cursor:pointer;padding:17px 0;display:flex;justify-content:space-between;gap:12px;font-family:Poppins,Inter,sans-serif;font-weight:760;color:var(--ep-navy)}
.ep-profile__credentials summary::-webkit-details-marker{display:none}.ep-credentials__body{padding:0 0 18px}.ep-credentials__body h3{font-size:1rem!important;margin-top:18px!important;color:var(--ep-navy)!important}

/* Related therapists on service pages */
.ep-related__head{margin-bottom:16px}.ep-related__head h2{font-size:clamp(1.5rem,7vw,2.25rem)!important;line-height:1.15!important;margin:0!important;color:var(--ep-navy)!important}
.ep-grid--related .ep-card__text{display:none}.ep-editor-notice{padding:14px;border:1px dashed #9aa7af;background:#f7f9fa;color:#46545d;border-radius:10px}

/* Photo placeholders & demo */
.ep-card__placeholder,.ep-profile__placeholder{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:linear-gradient(145deg,var(--ep-soft),#d7e7ef);color:var(--ep-blue);font-family:Poppins,Inter,sans-serif;font-weight:760;letter-spacing:.04em}
.ep-card__placeholder{font-size:2rem;min-height:188px}.ep-profile__placeholder{font-size:clamp(3rem,12vw,7rem)}
.ep-demo-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin:0 0 8px;padding:4px 8px;border-radius:999px;background:#fff4ce;color:#6d5200;border:1px solid #efd889;font-size:.68rem;font-weight:820;line-height:1.2}

/* Tablet: karta dostaje własny rozmiar i NIE rośnie, gdy jest jedyna. */
@media (min-width:600px){
  .ep-grid{grid-template-columns:repeat(auto-fill,minmax(300px,340px));gap:18px;justify-content:start}
  .ep-card{display:flex;flex-direction:column;width:100%;max-width:340px;min-height:0}
  .ep-card__media{aspect-ratio:4/3;min-height:0}.ep-card__media img,.ep-card__placeholder{min-height:0;height:100%}
  .ep-card__body{padding:18px;flex:1;min-height:242px}.ep-card__name{font-size:1.18rem!important}.ep-card__role{font-size:.88rem!important}.ep-card__text{font-size:.91rem!important;-webkit-line-clamp:4}.ep-tag{font-size:.72rem;padding:5px 9px}
  .ep-profile__hero{grid-template-columns:minmax(210px,.78fr) 1.22fr;padding:20px;gap:26px}.ep-profile__photo{aspect-ratio:4/5}.ep-profile__intro .ep-btn{width:auto}.ep-profile__facts{grid-template-columns:repeat(3,1fr);gap:10px}
  .ep-help{grid-template-columns:1fr auto;align-items:center;padding:22px 24px}.ep-help .ep-btn{width:auto}
}

/* Desktop */
@media (min-width:782px){
  .ep-team,.ep-profile,.ep-related{padding-inline:10px}
  .ep-filterbar{margin-bottom:14px}.ep-filterbar__mobile,.ep-filterbar__head,.ep-filterbar__actions{display:none}
  .ep-filterbar__panel{position:static;transform:none;box-shadow:none;padding:0;border:0;border-radius:0;max-height:none;overflow:visible;background:transparent}
  .ep-filterbar__fields{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:flex-end}
  .ep-filter{width:220px;max-width:100%;gap:5px}.ep-filter>span{font-size:.66rem}.ep-filter select{min-height:42px!important;font-size:.84rem!important;border-radius:10px!important}
  .ep-results-line{margin-top:9px;margin-bottom:14px}
  .ep-grid{grid-template-columns:repeat(auto-fill,var(--ep-card-width));gap:22px;justify-content:start}
  .ep-grid--max-2{max-width:742px}.ep-grid--max-3{max-width:1124px}.ep-grid--max-4{max-width:1180px}
  .ep-card{width:var(--ep-card-width);max-width:var(--ep-card-width);min-height:0}.ep-card:hover{transform:translateY(-2px)}
  .ep-card__media{aspect-ratio:4/3}.ep-card__body{padding:20px 20px 18px;min-height:254px}.ep-card__name{font-size:1.25rem!important}.ep-card__role{font-size:.91rem!important}.ep-card__text{font-size:.93rem!important;line-height:1.5!important}.ep-card__more{font-size:.9rem;padding-top:15px}
  .ep-grid--related{grid-template-columns:repeat(auto-fill,var(--ep-related-card-width))}.ep-grid--related .ep-card{width:var(--ep-related-card-width);max-width:var(--ep-related-card-width)}.ep-grid--related .ep-card__body{min-height:176px}.ep-grid--related .ep-card__media{aspect-ratio:16/11}
  .ep-profile__hero{grid-template-columns:minmax(280px,.8fr) minmax(0,1.35fr);gap:38px;padding:32px}.ep-profile__intro h1{font-size:clamp(2.6rem,5vw,4rem)!important}.ep-profile__lead{font-size:1.02rem!important}
  .ep-profile__content{grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);column-gap:48px;row-gap:30px;align-items:start}.ep-profile__section:not(.ep-profile__services){grid-column:1}.ep-profile__services{grid-column:2;grid-row:1 / span 3;position:sticky;top:90px}.ep-profile__credentials{grid-column:1}
}

@media (min-width:1100px){.ep-card__body{padding:21px 21px 19px}.ep-filterbar__fields{gap:10px 14px}.ep-filter{width:230px}}
@media (max-width:380px){.ep-card{grid-template-columns:102px minmax(0,1fr)}.ep-card__body{padding:13px}.ep-card__text{-webkit-line-clamp:2}.ep-tag{font-size:.65rem;padding:4px 7px}}
@media (prefers-reduced-motion:reduce){.ep-filterbar__panel,.ep-card,.ep-card__more span,.ep-btn{transition:none}}
.ep-card__more--cta{color:var(--ep-red)!important}

/* ==========================================================================\n   V0.4 - compact therapist carousel\n   Designed for mixed-quality portraits: smaller image footprint, 5-up desktop,\n   3-up tablet and a visible next card on mobile. No heavy carousel library.\n   ========================================================================== */
.ep-carousel{--ep-carousel-gap:14px;width:100%;max-width:1180px;margin-inline:auto;color:var(--ep-text)}
.ep-carousel__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 14px}
.ep-carousel__head h2{margin:0!important;color:var(--ep-navy)!important;font:760 clamp(1.4rem,4vw,2rem)/1.15 Poppins,Inter,sans-serif!important}
.ep-carousel__controls{display:flex;gap:7px;flex:none}
.ep-carousel__arrow{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--ep-line-strong);border-radius:999px;background:#fff;color:var(--ep-navy);font:700 1rem/1 Inter,sans-serif;cursor:pointer;box-shadow:0 3px 12px rgba(18,59,86,.05);transition:transform .16s ease,background .16s ease,opacity .16s ease}
.ep-carousel__arrow:hover:not(:disabled){background:var(--ep-soft);transform:translateY(-1px)}
.ep-carousel__arrow:disabled{opacity:.28;cursor:default}
.ep-carousel__track{display:grid;grid-auto-flow:column;grid-auto-columns:82%;gap:var(--ep-carousel-gap);overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;scroll-padding-inline:1px;padding:2px 2px 9px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.ep-carousel__track::-webkit-scrollbar{display:none}
.ep-carousel-card{scroll-snap-align:start;min-width:0;height:100%;background:#fff;border:1px solid var(--ep-line);border-radius:16px;overflow:hidden;box-shadow:0 6px 18px rgba(18,59,86,.055)}
.ep-carousel-card__link{display:flex!important;flex-direction:column;height:100%;color:inherit!important;text-decoration:none!important}
.ep-carousel-card__media{height:180px;overflow:hidden;background:#dce8ee}
.ep-carousel-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%}
.ep-carousel-card__placeholder{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(145deg,var(--ep-soft),#d7e7ef);color:var(--ep-blue);font:760 2.1rem/1 Poppins,Inter,sans-serif}
.ep-carousel-card__body{display:flex;flex-direction:column;flex:1;min-height:132px;padding:14px 14px 13px}
.ep-carousel-card__name{margin:0 0 5px!important;color:var(--ep-navy)!important;font:760 1.04rem/1.16 Poppins,Inter,sans-serif!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ep-carousel-card__role{margin:0 0 11px!important;color:var(--ep-blue)!important;font:690 .78rem/1.38 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ep-carousel-card__cta{margin-top:auto;padding-top:8px;color:var(--ep-blue);font:800 .78rem/1.2 Inter,sans-serif}
.ep-carousel-card__cta span{display:inline-block;transition:transform .16s ease}
.ep-carousel-card__link:hover .ep-carousel-card__cta span{transform:translateX(3px)}

@media (min-width:600px){
  .ep-carousel{--ep-carousel-gap:16px}
  .ep-carousel__track{grid-auto-columns:calc((100% - (2 * var(--ep-carousel-gap))) / 3)}
  .ep-carousel-card__media{height:155px}
  .ep-carousel-card__body{min-height:128px;padding:14px}
}
@media (min-width:1000px){
  .ep-carousel__track{grid-auto-columns:calc((100% - (4 * var(--ep-carousel-gap))) / 5)}
  .ep-carousel-card__media{height:158px}
  .ep-carousel-card__name{font-size:1.02rem!important}
  .ep-carousel-card__role{font-size:.76rem!important}
  .ep-carousel-card__body{min-height:132px}
}
@media (max-width:599px){
  .ep-carousel__controls{display:none}
  .ep-carousel__head{margin-bottom:11px}
  .ep-carousel__track{padding-right:11vw}
  .ep-carousel-card__media{height:185px}
}
@media (prefers-reduced-motion:reduce){.ep-carousel__track{scroll-behavior:auto}.ep-carousel__arrow,.ep-carousel-card__cta span{transition:none}}


/* --------------------------------------------------------------------------
 * Rozszerzona karuzela terapeutów 0.5.0
 * Mniejsze zdjęcie, więcej informacji. Desktop: 5 kart, tablet: 3,
 * mobile: 1 karta + fragment następnej. Korzysta wyłącznie z bazy wtyczki.
 * ----------------------------------------------------------------------- */
.ep-carousel-rich{
  --ep-carousel-rich-gap:14px;
  width:100%;
  max-width:1380px;
  margin:clamp(28px,4vw,58px) auto;
  position:relative;
  color:var(--ep-text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  isolation:isolate;
}
.ep-carousel-rich__head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:24px;
  margin:0 0 clamp(18px,2.5vw,30px);padding:0 2px;
}
.ep-carousel-rich__heading{min-width:0}
.ep-carousel-rich__kicker{
  display:block;margin:0 0 8px;color:var(--ep-blue);font-size:.76rem;font-weight:850;
  letter-spacing:.19em;text-transform:uppercase;
}
.ep-carousel-rich__head h2{
  margin:0!important;color:var(--ep-navy)!important;
  font:780 clamp(1.75rem,3vw,2.75rem)/1.08 Poppins,Inter,sans-serif!important;
  letter-spacing:-.025em!important;
}
.ep-carousel-rich__all{
  flex:none;display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:11px 18px;
  border-radius:999px;background:var(--ep-soft);color:var(--ep-blue)!important;text-decoration:none!important;
  font:800 .85rem/1.15 Inter,sans-serif;transition:transform .16s ease,background .16s ease;
}
.ep-carousel-rich__all:hover{transform:translateY(-1px);background:#dfeef5}
.ep-carousel-rich__all span{transition:transform .16s ease}.ep-carousel-rich__all:hover span{transform:translateX(3px)}
.ep-carousel-rich__viewport{position:relative}
.ep-carousel-rich__track{
  display:grid;grid-auto-flow:column;grid-auto-columns:min(86%,360px);gap:var(--ep-carousel-rich-gap);
  overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;
  scroll-padding-inline:1px;padding:2px 2px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.ep-carousel-rich__track::-webkit-scrollbar{display:none}
.ep-carousel-rich-card{
  scroll-snap-align:start;min-width:0;height:auto;min-height:430px;padding:14px 14px 13px;
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--ep-line);
  border-radius:18px;box-shadow:0 7px 22px rgba(18,59,86,.055);
  transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease;
}
.ep-carousel-rich-card:hover{transform:translateY(-2px);border-color:var(--ep-line-strong);box-shadow:0 14px 34px rgba(18,59,86,.105)}
.ep-carousel-rich-card__top{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;align-items:start;margin-bottom:14px}
.ep-carousel-rich-card__photo-link{display:block;text-decoration:none!important}
.ep-carousel-rich-card__media{
  width:92px;height:104px;overflow:hidden;border-radius:12px;background:#dce8ee;
}
.ep-carousel-rich-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%}
.ep-carousel-rich-card__placeholder{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(145deg,var(--ep-soft),#d7e7ef);color:var(--ep-blue);font:780 1.8rem/1 Poppins,Inter,sans-serif}
.ep-carousel-rich-card__identity{min-width:0;padding-top:2px}
.ep-carousel-rich-card__name{
  margin:0 0 6px!important;color:var(--ep-navy)!important;
  font:780 1.02rem/1.12 Poppins,Inter,sans-serif!important;letter-spacing:-.015em!important;
}
.ep-carousel-rich-card__name a{color:inherit!important;text-decoration:none!important}
.ep-carousel-rich-card__role{
  margin:0!important;color:var(--ep-blue)!important;
  font:690 .76rem/1.38 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
}
.ep-carousel-rich-card__text{
  margin:0 0 13px!important;color:var(--ep-text)!important;
  font:500 .82rem/1.52 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;
}
.ep-carousel-rich-card__places{
  display:flex;align-items:flex-start;gap:7px;margin:0 0 12px;color:var(--ep-navy);
  font:700 .76rem/1.35 Inter,sans-serif;
}
.ep-carousel-rich-card__pin{display:flex;flex:none;color:var(--ep-blue);margin-top:1px}
.ep-carousel-rich-card__tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 13px}
.ep-carousel-rich-card__tag{
  display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;
  background:var(--ep-soft);color:var(--ep-navy);font:680 .67rem/1.18 Inter,sans-serif;
}
.ep-carousel-rich-card__cta{
  display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:8px;
  color:var(--ep-blue)!important;text-decoration:none!important;font:840 .81rem/1.2 Inter,sans-serif;
}
.ep-carousel-rich-card__cta span{display:inline-block;transition:transform .16s ease}
.ep-carousel-rich-card__cta:hover span{transform:translateX(3px)}
.ep-carousel-rich__arrow{
  position:absolute;z-index:3;top:50%;transform:translateY(-50%);display:grid;place-items:center;
  width:48px;height:48px;padding:0;border:1px solid var(--ep-line-strong);border-radius:999px;
  background:rgba(255,255,255,.96);color:var(--ep-blue);font:800 1.25rem/1 Inter,sans-serif;
  cursor:pointer;box-shadow:0 7px 25px rgba(18,59,86,.12);transition:transform .16s ease,opacity .16s ease,background .16s ease;
}
.ep-carousel-rich__arrow:hover:not(:disabled){background:var(--ep-soft);transform:translateY(-50%) scale(1.03)}
.ep-carousel-rich__arrow:disabled{opacity:.22;cursor:default}
.ep-carousel-rich__arrow--prev{left:-22px}.ep-carousel-rich__arrow--next{right:-22px}
.ep-carousel-rich:not(.ep-carousel--scrollable) .ep-carousel-rich__arrow{display:none}
.ep-carousel-rich__dots{display:flex;align-items:center;justify-content:center;gap:8px;min-height:22px;margin-top:8px}
.ep-carousel-rich__dots[hidden],.ep-carousel-rich:not(.ep-carousel--scrollable) .ep-carousel-rich__dots{display:none}
.ep-carousel-rich__dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#cfdae0;cursor:pointer;transition:width .16s ease,background .16s ease,transform .16s ease}
.ep-carousel-rich__dot:hover{transform:scale(1.15)}
.ep-carousel-rich__dot.is-active{width:10px;height:10px;background:var(--ep-blue)}
.ep-carousel-rich__dot:focus-visible,.ep-carousel-rich__arrow:focus-visible,.ep-carousel-rich__all:focus-visible,.ep-carousel-rich-card__cta:focus-visible{outline:3px solid rgba(14,83,133,.20);outline-offset:3px}

@media (min-width:700px){
  .ep-carousel-rich{--ep-carousel-rich-gap:16px}
  .ep-carousel-rich__track{grid-auto-columns:calc((100% - (2 * var(--ep-carousel-rich-gap))) / 3)}
  .ep-carousel-rich-card{min-height:438px}
  .ep-carousel-rich-card__top{grid-template-columns:88px minmax(0,1fr);gap:11px}
  .ep-carousel-rich-card__media{width:88px;height:102px}
}
@media (min-width:1100px){
  .ep-carousel-rich__track{grid-auto-columns:calc((100% - (4 * var(--ep-carousel-rich-gap))) / 5)}
  .ep-carousel-rich-card{min-height:452px;padding:14px}
  .ep-carousel-rich-card__top{grid-template-columns:86px minmax(0,1fr);gap:11px;margin-bottom:13px}
  .ep-carousel-rich-card__media{width:86px;height:100px}
  .ep-carousel-rich-card__name{font-size:.98rem!important}
  .ep-carousel-rich-card__role{font-size:.72rem!important}
  .ep-carousel-rich-card__text{font-size:.78rem!important;line-height:1.49!important;-webkit-line-clamp:7}
  .ep-carousel-rich-card__places{font-size:.72rem}
  .ep-carousel-rich-card__tag{font-size:.64rem;padding-inline:8px}
}
@media (max-width:699px){
  .ep-carousel-rich{margin-block:28px}
  .ep-carousel-rich__head{align-items:flex-start;gap:14px;margin-bottom:16px}
  .ep-carousel-rich__head h2{font-size:1.75rem!important}
  .ep-carousel-rich__all{display:none}
  .ep-carousel-rich__arrow{display:none!important}
  .ep-carousel-rich__track{padding-right:12vw}
  .ep-carousel-rich-card{min-height:410px}
  .ep-carousel-rich-card__text{font-size:.87rem!important;-webkit-line-clamp:5}
  .ep-carousel-rich-card__role{font-size:.8rem!important;-webkit-line-clamp:3}
  .ep-carousel-rich-card__name{font-size:1.08rem!important}
}
@media (prefers-reduced-motion:reduce){
  .ep-carousel-rich__track{scroll-behavior:auto}
  .ep-carousel-rich-card,.ep-carousel-rich-card__cta span,.ep-carousel-rich__arrow,.ep-carousel-rich__all,.ep-carousel-rich__all span,.ep-carousel-rich__dot{transition:none}
}


/* ========================================================================== 
   0.7.1 - STRONA GŁÓWNA / KARUZELA TERAPEUTÓW
   Tylko blok .ep-home-carousel. Pozostałe bloki i baza danych bez zmian.
   Desktop: 5 pełnych kart + fragment 6.; tablet: 2 + fragment 3.; mobile: 1 + fragment 2.
   ========================================================================== */
.ep-home-carousel{
  --ep-home-gap:14px;
  --ep-home-peek:74px;
  width:100%;max-width:1180px;margin:18px auto 28px;padding:0;
  container-type:inline-size;
  container-name:ep-home-carousel;
}
.ep-home-carousel .ep-carousel-rich__viewport{position:relative;overflow:hidden;padding:2px 0}
.ep-home-carousel .ep-carousel-rich__track{
  display:grid;grid-auto-flow:column;
  grid-auto-columns:calc(100% - var(--ep-home-peek));
  gap:var(--ep-home-gap);overflow-x:auto;overscroll-behavior-inline:contain;
  scroll-snap-type:inline mandatory;scroll-padding-inline:0;
  padding:0 var(--ep-home-peek) 8px 0;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.ep-home-carousel .ep-carousel-rich__track::-webkit-scrollbar{display:none}
.ep-home-carousel .ep-carousel-rich-card{
  scroll-snap-align:start;min-width:0;height:100%;min-height:0;padding:0;
  display:flex;flex-direction:column;overflow:hidden;background:#fff;
  border:1px solid #dce7ec;border-radius:16px;box-shadow:0 5px 18px rgba(18,59,86,.055);
  transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease;
}
.ep-home-carousel .ep-carousel-rich-card:hover{transform:translateY(-2px);border-color:#c8d9e2;box-shadow:0 12px 30px rgba(18,59,86,.10)}
.ep-home-carousel .ep-carousel-rich-card__media{
  width:100%;height:auto;aspect-ratio:4/5;border-radius:0;overflow:hidden;background:#eaf2f6;
}
.ep-home-carousel .ep-carousel-rich-card__photo-link{display:block;width:100%;height:100%;text-decoration:none!important}
.ep-home-carousel .ep-carousel-rich-card__media img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%;
}
.ep-home-carousel .ep-carousel-rich-card__placeholder{width:100%;height:100%;font-size:2.2rem}
.ep-home-carousel .ep-carousel-rich-card__body{
  display:flex;flex-direction:column;flex:1;min-height:0;padding:14px 14px 13px;
}
.ep-home-carousel .ep-carousel-rich-card__identity{padding:0;min-width:0}
.ep-home-carousel .ep-carousel-rich-card__name{
  margin:0 0 4px!important;color:#123b56!important;font:780 1.02rem/1.15 Poppins,Inter,sans-serif!important;
  letter-spacing:-.015em!important;
}
.ep-home-carousel .ep-carousel-rich-card__name a{color:inherit!important;text-decoration:none!important}
.ep-home-carousel .ep-carousel-rich-card__role{
  margin:0 0 9px!important;color:#0e5385!important;font:670 .76rem/1.35 Inter,sans-serif!important;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.ep-home-carousel .ep-carousel-rich-card__text{
  margin:0 0 10px!important;color:#29455a!important;font:500 .77rem/1.48 Inter,sans-serif!important;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.ep-home-carousel .ep-carousel-rich-card__places{
  display:flex;align-items:flex-start;gap:6px;margin:0 0 9px;color:#35556d;font:690 .7rem/1.3 Inter,sans-serif;
}
.ep-home-carousel .ep-carousel-rich-card__pin{color:#1673a9;margin-top:0}
.ep-home-carousel .ep-carousel-rich-card__tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 12px}
.ep-home-carousel .ep-carousel-rich-card__tag{
  min-height:23px;padding:4px 8px;border-radius:999px;background:#edf3f6;color:#49677d;
  font:650 .62rem/1.15 Inter,sans-serif;
}
.ep-home-carousel .ep-carousel-rich-card__actions{
  display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:5px;
}
.ep-home-carousel .ep-carousel-rich-card__more,
.ep-home-carousel .ep-carousel-rich-card__book{
  display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border-radius:10px;
  text-decoration:none!important;font:780 .72rem/1.1 Inter,sans-serif;white-space:nowrap;transition:.15s ease;
}
.ep-home-carousel .ep-carousel-rich-card__more{
  border:1px solid #b9d3e2;background:#fff;color:#0e5385!important;
}
.ep-home-carousel .ep-carousel-rich-card__more:hover{background:#eef5f8;border-color:#8db7cd}
.ep-home-carousel .ep-carousel-rich-card__book{
  margin-left:auto;border:1px solid #f1b7a5;background:#fff3ee;color:#bd4e2f!important;
}
.ep-home-carousel .ep-carousel-rich-card__book:hover{background:#fde7de;border-color:#e79a83}
.ep-home-carousel .ep-carousel-rich__arrow{
  position:absolute;z-index:6;top:50%;transform:translateY(-50%);display:grid;place-items:center;
  width:42px;height:42px;padding:0;border:1px solid #d3e0e7;border-radius:999px;background:rgba(255,255,255,.96);
  color:#075c91;font:800 1.15rem/1 Inter,sans-serif;cursor:pointer;box-shadow:0 5px 18px rgba(18,59,86,.10);
}
.ep-home-carousel .ep-carousel-rich__arrow--prev{left:-18px}.ep-home-carousel .ep-carousel-rich__arrow--next{right:-18px}
.ep-home-carousel .ep-carousel-rich__arrow:disabled{opacity:.22;cursor:default}
.ep-home-carousel:not(.ep-carousel--scrollable) .ep-carousel-rich__arrow{display:none}
.ep-home-carousel .ep-carousel-rich__dots{display:flex;justify-content:center;align-items:center;gap:7px;min-height:16px;margin-top:8px}
.ep-home-carousel .ep-carousel-rich__dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#ced9df;cursor:pointer}
.ep-home-carousel .ep-carousel-rich__dot.is-active{width:9px;height:9px;background:#0e6d9f}
/* Delikatna podpowiedź, że istnieje kolejna karta. */
.ep-home-carousel.ep-carousel--scrollable:not(.ep-carousel--at-end) .ep-carousel-rich__viewport::after{
  content:"";position:absolute;z-index:5;top:0;right:0;bottom:8px;width:var(--ep-home-peek);pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.34) 35%,rgba(255,255,255,.86) 82%,#fff 100%);
}
.ep-home-carousel.ep-carousel--at-end .ep-carousel-rich__viewport::after{display:none}

/* tablet: 2 pełne karty + fragment trzeciej */
@container ep-home-carousel (min-width:600px){
  .ep-home-carousel{--ep-home-gap:16px;--ep-home-peek:78px}
  .ep-home-carousel .ep-carousel-rich__track{
    grid-auto-columns:calc((100% - var(--ep-home-gap) - var(--ep-home-peek)) / 2);
  }
}
/* desktop: 5 pełnych kart + fragment szóstej */
@container ep-home-carousel (min-width:850px){
  .ep-home-carousel{--ep-home-gap:14px;--ep-home-peek:82px}
  .ep-home-carousel .ep-carousel-rich__track{
    grid-auto-columns:calc((100% - (4 * var(--ep-home-gap)) - var(--ep-home-peek)) / 5);
  }
  .ep-home-carousel .ep-carousel-rich-card__body{padding:13px 12px 12px}
  .ep-home-carousel .ep-carousel-rich-card__name{font-size:.95rem!important}
  .ep-home-carousel .ep-carousel-rich-card__role{font-size:.7rem!important}
  .ep-home-carousel .ep-carousel-rich-card__text{font-size:.7rem!important;-webkit-line-clamp:3}
  .ep-home-carousel .ep-carousel-rich-card__places{font-size:.66rem}
  .ep-home-carousel .ep-carousel-rich-card__tag{font-size:.58rem;padding:4px 7px}
  .ep-home-carousel .ep-carousel-rich-card__more,.ep-home-carousel .ep-carousel-rich-card__book{font-size:.67rem;padding:7px 9px}
}
@media (max-width:599px){
  .ep-home-carousel{--ep-home-peek:62px;margin-block:14px 22px}
  .ep-home-carousel .ep-carousel-rich__arrow{display:none!important}
  .ep-home-carousel .ep-carousel-rich-card__body{padding:15px 14px 13px}
  .ep-home-carousel .ep-carousel-rich-card__name{font-size:1.08rem!important}
  .ep-home-carousel .ep-carousel-rich-card__role{font-size:.8rem!important}
  .ep-home-carousel .ep-carousel-rich-card__text{font-size:.84rem!important;line-height:1.48!important}
  .ep-home-carousel .ep-carousel-rich-card__places{font-size:.76rem}
  .ep-home-carousel .ep-carousel-rich-card__tag{font-size:.67rem}
  .ep-home-carousel .ep-carousel-rich-card__more,.ep-home-carousel .ep-carousel-rich-card__book{min-height:38px;font-size:.78rem;padding:8px 12px}
}
@media (prefers-reduced-motion:reduce){
  .ep-home-carousel .ep-carousel-rich-card,.ep-home-carousel .ep-carousel-rich-card__more,.ep-home-carousel .ep-carousel-rich-card__book{transition:none}
}


/* ========================================================================== 
   0.7.3 - KARUZELA STRONY GŁÓWNEJ: korekta geometrii, blend i subtelnych CTA
   ========================================================================== */
.ep-home-carousel{
  --ep-home-gap:14px;
  --ep-home-peek:26px;
  --ep-home-bg:#faf7f1;
  width:min(1320px,calc(100vw - 52px));
  max-width:none;
  margin:18px auto 28px;
  padding:0;
}
.ep-home-carousel .ep-carousel-rich__viewport{
  position:relative;
  overflow:hidden;
  padding:2px 0;
}
.ep-home-carousel .ep-carousel-rich__track{
  padding-right:var(--ep-home-peek);
}

/* blendy - subtelne i bez ostrych "szwów" po bokach */
.ep-home-carousel.ep-carousel--scrollable:not(.ep-carousel--at-end) .ep-carousel-rich__viewport::after,
.ep-home-carousel.ep-carousel--scrollable:not(.ep-carousel--at-start) .ep-carousel-rich__viewport::before{
  content:"";
  position:absolute;
  z-index:5;
  top:-1px;
  bottom:-1px;
  pointer-events:none;
}
.ep-home-carousel.ep-carousel--scrollable:not(.ep-carousel--at-end) .ep-carousel-rich__viewport::after{
  right:-1px;
  width:calc(var(--ep-home-peek) + 20px);
  background:linear-gradient(90deg,rgba(250,247,241,0) 0%, rgba(250,247,241,.22) 34%, rgba(250,247,241,.74) 74%, rgba(250,247,241,.98) 92%, var(--ep-home-bg) 100%);
}
.ep-home-carousel.ep-carousel--scrollable:not(.ep-carousel--at-start) .ep-carousel-rich__viewport::before{
  left:-1px;
  width:calc(var(--ep-home-peek) + 20px);
  background:linear-gradient(270deg,rgba(250,247,241,0) 0%, rgba(250,247,241,.22) 34%, rgba(250,247,241,.74) 74%, rgba(250,247,241,.98) 92%, var(--ep-home-bg) 100%);
}
.ep-home-carousel.ep-carousel--at-end .ep-carousel-rich__viewport::after,
.ep-home-carousel.ep-carousel--at-start .ep-carousel-rich__viewport::before{display:none}

/* strzałki - delikatne, czytelne, ale nie krzykliwe */
.ep-home-carousel .ep-carousel-rich__arrow{
  width:46px;height:46px;
  border:1px solid rgba(14,83,133,.18);
  background:rgba(255,255,255,.82);
  color:#0e5385;
  font-size:1.22rem;
  box-shadow:0 8px 20px rgba(18,59,86,.08);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  transition:transform .15s ease,background .15s ease,border-color .15s ease,opacity .15s ease;
}
.ep-home-carousel .ep-carousel-rich__arrow:hover:not(:disabled){
  background:rgba(255,255,255,.94);
  border-color:rgba(14,83,133,.28);
  transform:translateY(-50%) scale(1.03);
}
.ep-home-carousel .ep-carousel-rich__arrow--prev{left:-14px}
.ep-home-carousel .ep-carousel-rich__arrow--next{right:-14px}
.ep-home-carousel .ep-carousel-rich__arrow:disabled{opacity:.10}

/* CTA: więcej czytelne, umów dyskretne */
.ep-home-carousel .ep-carousel-rich-card__actions{
  gap:8px;
  align-items:center;
  justify-content:space-between;
}
.ep-home-carousel .ep-carousel-rich-card__more{
  min-height:34px;
  padding:7px 12px;
  border:1px solid #c9dce7;
  background:#fff;
  color:#0e5385!important;
  border-radius:10px;
  font-weight:780;
  box-shadow:0 1px 0 rgba(18,59,86,.03);
}
.ep-home-carousel .ep-carousel-rich-card__more:hover{
  background:#f3f8fb;
  border-color:#a8c7d8;
}
.ep-home-carousel .ep-carousel-rich-card__book{
  min-height:32px;
  padding:6px 2px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#b65a42!important;
  font-weight:680;
  text-decoration:none!important;
}
.ep-home-carousel .ep-carousel-rich-card__book:hover{
  background:transparent;
  color:#944531!important;
  text-decoration:underline!important;
  text-underline-offset:3px;
}

@media (max-width:599px){
  .ep-home-carousel{
    --ep-home-peek:36px;
    width:calc(100vw - 24px);
  }
  .ep-home-carousel .ep-carousel-rich__track{
    grid-auto-columns:calc(100% - var(--ep-home-peek));
  }
  .ep-home-carousel .ep-carousel-rich__arrow{display:none!important}
}

@container ep-home-carousel (min-width:600px){
  .ep-home-carousel{--ep-home-gap:16px;--ep-home-peek:34px}
  .ep-home-carousel .ep-carousel-rich__track{
    grid-auto-columns:calc((100% - var(--ep-home-gap) - var(--ep-home-peek)) / 2);
  }
}

@container ep-home-carousel (min-width:1000px){
  .ep-home-carousel{--ep-home-gap:16px;--ep-home-peek:18px}
  .ep-home-carousel .ep-carousel-rich__track{
    grid-auto-columns:calc((100% - (4 * var(--ep-home-gap)) - var(--ep-home-peek)) / 5);
  }
  .ep-home-carousel .ep-carousel-rich-card__name{font-size:1rem!important}
  .ep-home-carousel .ep-carousel-rich-card__role{font-size:.73rem!important}
  .ep-home-carousel .ep-carousel-rich-card__text{font-size:.74rem!important}
  .ep-home-carousel .ep-carousel-rich-card__places{font-size:.69rem}
  .ep-home-carousel .ep-carousel-rich-card__tag{font-size:.61rem}
  .ep-home-carousel .ep-carousel-rich-card__more{font-size:.72rem;padding:7px 11px}
  .ep-home-carousel .ep-carousel-rich-card__book{font-size:.69rem}
}



/* ==========================================================================\n   0.7.5 - ISTNIEJĄCY BLOK "Terapeuci – wybrana grupa"\n   Nowy kompaktowy wygląd dla stron usług. Dane i identyfikator bloku bez zmian.\n   ========================================================================== */
.ep-service-team{width:100%;max-width:none;margin:clamp(20px,3vw,36px) 0;padding:0}
.ep-service-team__head{margin:0 0 16px}
.ep-service-team__head h2{margin:0!important;color:var(--ep-navy)!important;font:780 clamp(1.45rem,3vw,2rem)/1.15 Poppins,Inter,sans-serif!important;letter-spacing:-.02em!important}
.ep-service-team__track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.ep-service-card{min-width:0;display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;padding:12px;background:#fff;border:1px solid var(--ep-line);border-radius:16px;box-shadow:0 5px 18px rgba(18,59,86,.05);min-height:205px;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.ep-service-card:hover{transform:translateY(-2px);border-color:var(--ep-line-strong);box-shadow:0 10px 26px rgba(18,59,86,.085)}
.ep-service-card__media{width:112px;aspect-ratio:4/5;overflow:hidden;border-radius:12px;background:var(--ep-soft)}
.ep-service-card__media>a{display:block;width:100%;height:100%;text-decoration:none!important}
.ep-service-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%}
.ep-service-card__placeholder{display:grid;place-items:center;width:100%;height:100%;color:var(--ep-blue);background:linear-gradient(145deg,var(--ep-soft),#d7e7ef);font:780 1.55rem/1 Poppins,Inter,sans-serif}
.ep-service-card__body{min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:2px 1px 1px}
.ep-service-card__name{margin:0 0 4px!important;color:var(--ep-navy)!important;font:780 1rem/1.16 Poppins,Inter,sans-serif!important;letter-spacing:-.012em!important}
.ep-service-card__name a{color:inherit!important;text-decoration:none!important}
.ep-service-card__role{margin:0 0 7px!important;color:var(--ep-blue)!important;font:660 .73rem/1.35 Inter,sans-serif!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ep-service-card__place{display:flex;align-items:center;gap:5px;margin:0 0 7px!important;color:#55707f!important;font:650 .69rem/1.3 Inter,sans-serif!important}
.ep-service-card__place span{color:var(--ep-blue);font-size:.8rem}
.ep-service-card__text{margin:0 0 10px!important;color:#354f60!important;font:500 .73rem/1.43 Inter,sans-serif!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ep-service-card__actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:5px}
.ep-service-card__more{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 10px;border:1px solid #c9dce7;border-radius:9px;background:#fff;color:#0e5385!important;text-decoration:none!important;font:780 .7rem/1 Inter,sans-serif}
.ep-service-card__more:hover{background:#f3f8fb;border-color:#a8c7d8}
.ep-service-card__book{color:#b65a42!important;text-decoration:none!important;font:680 .68rem/1.15 Inter,sans-serif;white-space:nowrap}
.ep-service-card__book:hover{text-decoration:underline!important;text-underline-offset:3px;color:#944531!important}
@media (max-width:980px){.ep-service-team__track{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){
  .ep-service-team{width:100%;max-width:none;padding:0;margin-block:20px;overflow:hidden}
  .ep-service-team__head{padding-inline:12px;margin-bottom:13px}
  .ep-service-team__track{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:calc(100% - 42px);gap:10px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;scrollbar-width:none;padding:2px 42px 8px 12px;-webkit-overflow-scrolling:touch}
  .ep-service-team__track::-webkit-scrollbar{display:none}
  .ep-service-card{scroll-snap-align:start;grid-template-columns:104px minmax(0,1fr);gap:12px;min-height:194px;padding:11px;border-radius:15px}
  .ep-service-card__media{width:104px}
  .ep-service-card__name{font-size:.98rem!important}
  .ep-service-card__role{font-size:.72rem!important}
  .ep-service-card__text{font-size:.72rem!important;-webkit-line-clamp:3}
}
@media (prefers-reduced-motion:reduce){.ep-service-card{transition:none}}


/* ========================================================================== 
   0.7.7 - PROFIL TERAPEUTY V2 (tylko istniejący blok profilu)
   ========================================================================== */
.ep-profile--v2{max-width:1180px;margin:clamp(22px,4vw,48px) auto}
.ep-profile-v2__hero{background:#fbf8f2;border:1px solid #e6ecef;border-radius:24px;padding:16px;gap:22px;margin-bottom:28px}
.ep-profile-v2__photo{aspect-ratio:4/5;max-height:none}
.ep-profile-v2__photo img{width:100%;height:100%;object-fit:cover;object-position:center 18%}
.ep-profile-v2__intro{padding:4px 2px 6px}
.ep-profile-v2__intro h1{margin-bottom:9px!important}
.ep-profile-v2__meta{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px}
.ep-profile-v2__meta span{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#edf3f6;color:#34576f;font-size:.74rem;font-weight:720}
.ep-profile-v2__helps{margin:14px 0 4px}
.ep-profile-v2__helps-label{display:block;margin-bottom:7px;color:var(--ep-muted);font-size:.69rem;font-weight:820;letter-spacing:.05em;text-transform:uppercase}
.ep-profile-v2__actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:18px}
.ep-profile-v2__actions .ep-btn{width:auto!important}
.ep-profile-v2__video-link{display:inline-flex;align-items:center;gap:7px;color:var(--ep-blue)!important;text-decoration:none!important;font-size:.86rem;font-weight:760}
.ep-profile-v2__video-link:hover{text-decoration:underline!important;text-underline-offset:3px}
.ep-profile-v2__layout{display:grid;gap:30px;align-items:start}
.ep-profile-v2__main{display:grid;gap:28px;min-width:0}
.ep-profile-v2__services{position:static!important;grid-column:auto!important;grid-row:auto!important;padding:20px}
.ep-profile-v2__services>.ep-kicker{margin-bottom:5px}
.ep-profile-v2__video-frame{position:relative;overflow:hidden;border-radius:18px;background:#0d1b24;box-shadow:0 10px 30px rgba(18,59,86,.10)}
.ep-profile-v2__video-frame iframe,.ep-profile-v2__video-frame video{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
.ep-profile-v2__video-external{display:inline-flex;align-items:center;gap:7px;color:var(--ep-blue)!important;font-weight:780;text-decoration:none!important}
.ep-profile-related{margin-top:42px;padding-top:30px;border-top:1px solid var(--ep-line)}
.ep-profile-related__head{margin-bottom:16px}
.ep-profile-related__head h2{margin:0!important;color:var(--ep-navy)!important;font-size:clamp(1.45rem,3vw,2rem)!important;line-height:1.15!important}
.ep-profile-related__track{display:grid;grid-auto-flow:column;grid-auto-columns:44%;gap:10px;overflow-x:auto;scroll-snap-type:inline mandatory;scrollbar-width:none;padding:2px 2px 8px}
.ep-profile-related__track::-webkit-scrollbar{display:none}
.ep-profile-related-card{scroll-snap-align:start;min-width:0}
.ep-profile-related-card__link{display:block;height:100%;color:inherit!important;text-decoration:none!important}
.ep-profile-related-card__media{aspect-ratio:4/5;overflow:hidden;border-radius:14px;background:#dce8ee}
.ep-profile-related-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%}
.ep-profile-related-card__placeholder{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(145deg,var(--ep-soft),#d7e7ef);color:var(--ep-blue);font:780 1.8rem/1 Poppins,Inter,sans-serif}
.ep-profile-related-card__body{padding:9px 2px 0}
.ep-profile-related-card__body strong{display:block;color:var(--ep-navy);font:760 .86rem/1.2 Poppins,Inter,sans-serif}
.ep-profile-related-card__body span{display:-webkit-box;margin-top:3px;color:#527795;font-size:.69rem;line-height:1.32;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

@media (min-width:700px){
  .ep-profile-v2__hero{grid-template-columns:minmax(230px,34%) minmax(0,1fr);gap:30px;padding:24px}
  .ep-profile-v2__photo{align-self:start}
  .ep-profile-v2__layout{grid-template-columns:minmax(0,1.5fr) minmax(280px,.72fr);column-gap:42px}
  .ep-profile-v2__services{position:sticky!important;top:88px!important}
  .ep-profile-related__track{grid-auto-flow:row;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;gap:14px}
}
@media (min-width:1050px){
  .ep-profile-v2__hero{grid-template-columns:minmax(300px,36%) minmax(0,1fr);gap:42px;padding:30px}
  .ep-profile-v2__intro h1{font-size:clamp(2.6rem,4.3vw,4rem)!important}
  .ep-profile-v2__intro .ep-profile__lead{font-size:1.03rem!important;line-height:1.66!important;max-width:690px}
  .ep-profile-related-card__body strong{font-size:.9rem}
  .ep-profile-related-card__body span{font-size:.72rem}
}
@media (max-width:699px){
  .ep-profile--v2{margin-block:22px}
  .ep-profile-v2__hero{border-radius:18px;padding:12px}
  .ep-profile-v2__photo{border-radius:14px}
  .ep-profile-v2__actions{gap:10px}
  .ep-profile-v2__actions .ep-btn{width:100%!important}
  .ep-profile-v2__video-link{width:100%;justify-content:center;min-height:40px}
  .ep-profile-related{margin-top:32px;padding-top:24px}
}


/* ========================================================================== 
   0.8.1 - KATALOG TERAPEUTÓW /terapeuci-w-warszawie/
   4 kolumny duży desktop, 3 mniejszy desktop, 2 tablet, 1 mobile.
   Zdjęcia pozostają 4:5; mniejsza szerokość karty ogranicza ich dominację.
   ========================================================================== */
.ep-team{
  max-width:1240px;
  margin-inline:auto;
  padding-inline:0;
  container-type:inline-size;
  container-name:ep-directory;
}
.ep-team .ep-filterbar{margin:0 0 12px}
.ep-team .ep-results-line{margin:8px 0 16px;color:#617985;font-size:.78rem}
.ep-team .ep-grid--team{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
  align-items:stretch;
  justify-content:start;
  max-width:none;
}
.ep-team .ep-directory-card{
  display:flex;flex-direction:column;width:100%;max-width:none;min-height:0;overflow:hidden;
  border:1px solid #dce7ec;border-radius:17px;background:#fff;
  box-shadow:0 7px 22px rgba(18,59,86,.055);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.ep-team .ep-directory-card:hover{transform:translateY(-2px);border-color:#c8d9e2;box-shadow:0 14px 34px rgba(18,59,86,.095)}
.ep-team .ep-directory-card[hidden]{display:none!important}
.ep-team .ep-directory-card__media{width:100%;aspect-ratio:4/5;overflow:hidden;background:#eaf2f6}
.ep-team .ep-directory-card__media>a{display:block;width:100%;height:100%}
.ep-team .ep-directory-card__media img,.ep-team .ep-directory-card__media .ep-card__placeholder{display:block;width:100%;height:100%;min-height:0;object-fit:cover}
.ep-team .ep-directory-card__body{display:flex;flex-direction:column;flex:1;min-height:0;padding:15px 15px 14px}
.ep-team .ep-directory-card__name{margin:0 0 4px!important;color:#123b56!important;font:780 1.02rem/1.16 Poppins,Inter,sans-serif!important;letter-spacing:-.015em!important}
.ep-team .ep-directory-card__name a{color:inherit!important;text-decoration:none!important}
.ep-team .ep-directory-card__role{margin:0 0 7px!important;color:#0e5385!important;font:680 .75rem/1.4 Inter,sans-serif!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ep-team .ep-directory-card__place{display:flex;align-items:center;gap:5px;margin:0 0 9px;color:#49677d;font:680 .69rem/1.25 Inter,sans-serif}
.ep-team .ep-directory-card__place span{color:#1673a9}
.ep-team .ep-directory-card__text{margin:0 0 10px!important;color:#29455a!important;font:500 .78rem/1.46 Inter,sans-serif!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ep-team .ep-directory-card__tags{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 12px}
.ep-team .ep-directory-card__tags .ep-tag{min-height:23px;padding:4px 7px;border:0;border-radius:999px;background:#edf3f6;color:#49677d;font:650 .62rem/1.15 Inter,sans-serif}
.ep-team .ep-directory-card__actions{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:auto;padding-top:4px}
.ep-team .ep-directory-card__more{display:inline-flex;align-items:center;justify-content:center;min-height:33px;padding:7px 11px;border:1px solid #c9dce7;border-radius:10px;background:#fff;color:#0e5385!important;text-decoration:none!important;font:780 .70rem/1.1 Inter,sans-serif}
.ep-team .ep-directory-card__more:hover{background:#f3f8fb;border-color:#a8c7d8}
.ep-team .ep-directory-card__book{display:inline-flex;align-items:center;min-height:29px;padding:5px 1px;border:0;background:transparent;color:#b65a42!important;text-decoration:none!important;font:680 .66rem/1.15 Inter,sans-serif}
.ep-team .ep-directory-card__book:hover{color:#944531!important;text-decoration:underline!important;text-underline-offset:3px}

/* Fallback dla starszych przeglądarek. */
@media (min-width:640px){.ep-team .ep-grid--team{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media (min-width:900px){.ep-team .ep-grid--team{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}}
@media (min-width:1180px){.ep-team .ep-grid--team{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}}

/* Właściwa logika: liczba kolumn zależy od szerokości samego bloku. */
@container ep-directory (min-width:520px){
  .ep-team .ep-grid--team{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@container ep-directory (min-width:800px){
  .ep-team .ep-grid--team{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
}
@container ep-directory (min-width:1080px){
  .ep-team .ep-grid--team{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
  .ep-team .ep-directory-card__body{padding:14px 14px 13px}
  .ep-team .ep-directory-card__name{font-size:1rem!important}
  .ep-team .ep-directory-card__role{font-size:.73rem!important}
  .ep-team .ep-directory-card__text{font-size:.76rem!important}
}



/* ========================================================================== 
   0.8.2 - KATALOG TERAPEUTÓW: filtry i CTA
   ========================================================================== */
.ep-team .ep-filterbar__panel{
  background:#f7fafc;
  border:1px solid #dbe9f0;
  border-radius:16px;
  padding:14px 16px 12px;
}
.ep-team .ep-filterbar__fields{gap:12px 14px}
.ep-team .ep-filter{
  width:200px;
}
.ep-team .ep-filter>span{
  font-size:.64rem;
  letter-spacing:.06em;
  color:#667f8d;
  margin-left:2px;
}
.ep-team .ep-filter select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  min-height:44px!important;
  padding:0 40px 0 14px!important;
  border:1px solid #cddde6!important;
  border-radius:12px!important;
  background-color:#fff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.25L7 9.25L11 5.25' stroke='%23607b8a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 13px center!important;
  background-size:14px 14px!important;
  color:#173a55!important;
  box-shadow:0 2px 10px rgba(18,59,86,.04)!important;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ep-team .ep-filter select:hover{
  border-color:#b9cfdb!important;
  background-color:#fcfeff!important;
}
.ep-team .ep-filter select:focus{
  outline:none!important;
  border-color:#6ea5c0!important;
  box-shadow:0 0 0 3px rgba(70,142,180,.12)!important;
}
.ep-team .ep-results-line{margin:10px 0 14px;color:#6a818e}
.ep-team .ep-results-line strong{color:#123b56}

.ep-team .ep-directory-card__actions{
  align-items:center;
}
.ep-team .ep-directory-card__more{
  position:relative;
  z-index:1;
}
.ep-team .ep-directory-card__book{
  margin-left:auto;
  justify-content:flex-end;
  text-align:right;
  white-space:nowrap;
}

@media (max-width:781px){
  .ep-team .ep-filterbar__panel{
    padding:18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius:22px 22px 0 0;
    border:0;
    background:#fff;
  }
}

/* ========================================================================== 
   O NAS / ŚCIANA ZESPOŁU - wersja kanoniczna 0.9.4
   ========================================================================== */
.ep-polaroids{position:relative;max-width:1320px;margin:0 auto;padding:10px 0 18px;overflow:visible}
.ep-polaroids__head{position:relative;z-index:3;text-align:center;max-width:860px;margin:0 auto 24px}
.ep-polaroids__title{margin:8px 0 10px;font-size:clamp(2rem,3.7vw,3.8rem);line-height:1.02;color:#123b56}
.ep-polaroids__intro{margin:0 auto;color:#567384;font-size:1.05rem;line-height:1.6;max-width:760px}
.ep-polaroids__wall{width:90%;margin:0 auto;display:grid;grid-template-columns:repeat(var(--ep-team-cols,6),minmax(0,1fr));gap:0;align-items:stretch;justify-items:stretch;overflow:hidden;background:transparent}
.ep-teamwall__item,.ep-teamwall__gap{min-width:0}
.ep-teamwall__link{position:relative;display:block;text-decoration:none;color:inherit;background:#eef2f4;overflow:hidden;aspect-ratio:1 / 1}
.ep-teamwall__photo-wrap,.ep-teamwall__photo-wrap img{display:block;width:100%;height:100%}
.ep-teamwall__photo-wrap img{object-fit:cover;object-position:center 20%}
.ep-teamwall__caption{position:absolute;left:0;right:0;bottom:0;padding:12px 10px 11px;background:linear-gradient(180deg,rgba(13,39,58,0) 0%,rgba(13,39,58,.18) 18%,rgba(13,39,58,.76) 72%,rgba(13,39,58,.90) 100%);color:#fff;font-size:.90rem;line-height:1.2;font-weight:700;opacity:0;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease;pointer-events:none}
.ep-teamwall__link:hover .ep-teamwall__caption,.ep-teamwall__link:focus .ep-teamwall__caption,.ep-teamwall__link:focus-visible .ep-teamwall__caption{opacity:1;transform:translateY(0)}
.ep-teamwall__gap{display:block;aspect-ratio:1 / 1;background:transparent}
@media (hover:none){.ep-teamwall__caption{opacity:1;transform:none;padding:10px 8px 9px;font-size:.76rem;background:linear-gradient(180deg,rgba(13,39,58,0) 0%,rgba(13,39,58,.14) 16%,rgba(13,39,58,.65) 62%,rgba(13,39,58,.82) 100%)}}
@media (max-width:1200px){.ep-polaroids__wall{width:92%}.ep-teamwall__caption{font-size:.84rem}}
@media (max-width:920px){.ep-polaroids__wall{width:96%;grid-template-columns:repeat(6,minmax(0,1fr))}.ep-teamwall__caption{font-size:.78rem}}
@media (max-width:781px){.ep-polaroids__head{margin-bottom:16px}.ep-polaroids__intro{font-size:.98rem}.ep-polaroids__wall{width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}.ep-teamwall__caption{font-size:.72rem;padding:8px 6px 7px}}
@media (max-width:520px){.ep-polaroids__wall{grid-template-columns:repeat(3,minmax(0,1fr))}.ep-teamwall__caption{font-size:.66rem;padding:7px 6px 6px}}

/* ========================================================================== 
   PLACEHOLDER TERAPEUTY - wersja kanoniczna 0.9.0
   Krytyczny layout ma też style inline w HTML, żeby nie rozpadał się przy cache.
   ========================================================================== */
.ep-card__media,.ep-directory-card__media,.ep-service-card__media,.ep-carousel-card__media,.ep-carousel-rich-card__media,.ep-profile__photo,.ep-profile-v2__photo,.ep-profile-related-card__media{position:relative}
.ep-photo-fallback{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-height:100%!important;overflow:hidden!important}
.ep-photo-fallback__silhouette{display:block;pointer-events:none}.ep-photo-fallback__initials{white-space:nowrap;pointer-events:none}
