/* Samodzielny slider LPC. Wszystkie klasy i zmienne mają prefiks lpc-ref-. */
@font-face {
  font-family: "LPCRefInter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "LPCRefInter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.lpc-ref {
  --lpc-ref-accent: #4070d4;
  --lpc-ref-accent-hover: #2f58ac;
  --lpc-ref-background: #fff;
  --lpc-ref-content-width: 1180px;
  --lpc-ref-gutter: max(24px, calc((100% - var(--lpc-ref-content-width)) / 2));
  --lpc-ref-padding: 88px;
  --lpc-ref-card-height: 500px;
  --lpc-ref-control-size: 44px;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: var(--lpc-ref-padding) 0;
  overflow: hidden;
  border: 0;
  background: var(--lpc-ref-background);
  color: #1d1d1f;
  font: 400 17px/1.6 "LPCRefInter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  letter-spacing: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  container: lpc-ref / inline-size;
}
.lpc-ref, .lpc-ref *, .lpc-ref *::before, .lpc-ref *::after { box-sizing: border-box; }
.lpc-ref * { font-family: inherit; }
.lpc-ref [hidden] { display: none !important; }
.lpc-ref .lpc-ref-container { width: min(var(--lpc-ref-content-width), calc(100% - 48px)); margin: 0 auto; padding: 0; }
.lpc-ref .lpc-ref-heading { margin: 0; padding: 0; }
.lpc-ref .lpc-ref-title { max-width: 750px; margin: 0; padding: 0; color: #1d1d1f; font-size: 48px; font-weight: 700; line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.lpc-ref .lpc-ref-subtitle { margin: 20px 0 0; padding: 0; color: #6e6e73; font-size: clamp(18px, 1.8vw, 21px); font-weight: 400; line-height: 1.6; text-wrap: pretty; }
.lpc-ref .lpc-ref-track {
  display: flex;
  width: 100%;
  gap: 24px;
  margin: 48px 0 0;
  padding: 0 var(--lpc-ref-gutter) 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: var(--lpc-ref-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.lpc-ref .lpc-ref-track::-webkit-scrollbar { display: none; }
.lpc-ref .lpc-ref-track:focus-visible { outline: 3px solid var(--lpc-ref-accent); outline-offset: -3px; }
.lpc-ref .lpc-ref-card {
  position: relative;
  display: flex;
  isolation: isolate;
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  min-height: var(--lpc-ref-card-height);
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #e8e8ed;
  box-shadow: none;
  scroll-snap-align: start;
}
.lpc-ref .lpc-ref-media { position: absolute; inset: 0; z-index: 0; display: block; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: inherit; color: inherit; background: #e8e8ed; text-decoration: none; }
.lpc-ref .lpc-ref-media > img { position: absolute; inset: 0; display: block; width: 100%; max-width: 100%; height: 100%; margin: 0; padding: 0; border: 0; object-fit: cover; }
.lpc-ref .lpc-ref-media--proxn > img { object-position: center 12%; }
.lpc-ref .lpc-ref-media--text > img { object-position: center 20%; }
.lpc-ref .lpc-ref-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.32), transparent 35%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.78)); pointer-events: none; }
.lpc-ref .lpc-ref-media:focus-visible { outline: 3px solid var(--lpc-ref-accent); outline-offset: -5px; }
.lpc-ref .lpc-ref-person { position: absolute; z-index: 2; right: 32px; bottom: 32px; left: 32px; display: flex; align-items: flex-end; gap: 14px; margin: 0; padding: 0; border: 0; pointer-events: none; }
.lpc-ref .lpc-ref-person > div { flex: 1; min-width: 0; }
.lpc-ref .lpc-ref-logo { display: block; width: 110px; max-width: 100%; height: 28px; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; object-position: left center; }
.lpc-ref .lpc-ref-logo--rebel { width: 82px; }
.lpc-ref .lpc-ref-logo--pierre { width: 80px; }
.lpc-ref .lpc-ref-person .lpc-ref-logo { filter: brightness(0) invert(1); }
.lpc-ref .lpc-ref-person .lpc-ref-logo--white { filter: none; }
.lpc-ref .lpc-ref-person .lpc-ref-logo--pierre { width: 103px; height: 45px; }
.lpc-ref .lpc-ref-person strong { display: block; margin: 0; color: #fff; font-size: 16px; font-weight: 650; line-height: 1.25; }
.lpc-ref .lpc-ref-person small { display: block; margin-top: 2px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 400; line-height: 1.3; }
.lpc-ref .lpc-ref-play { display: grid; flex: none; width: var(--lpc-ref-control-size); height: var(--lpc-ref-control-size); place-items: center; margin-left: auto; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1d1d1f; line-height: 0; transition: background .2s; }
.lpc-ref .lpc-ref-play svg { display: block; width: 24px; height: 24px; margin: 0; padding: 0; fill: currentColor; stroke: none; }
.lpc-ref .lpc-ref-card:hover .lpc-ref-play { background: #f5f5f7; }
.lpc-ref .lpc-ref-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: #45464e; }
.lpc-ref .lpc-ref-placeholder--absolvent { background: #414a57; }
.lpc-ref .lpc-ref-placeholder--pierre-fabre { background: #4b454e; }
.lpc-ref .lpc-ref-placeholder--polisaportal { background: #404e4e; }
.lpc-ref .lpc-ref-placeholder svg { display: block; width: 100%; height: 100%; color: #c6c8ce; }
.lpc-ref .lpc-ref-placeholder circle, .lpc-ref .lpc-ref-placeholder path { fill: currentColor; stroke: none; }
.lpc-ref .lpc-ref-placeholder-label { position: absolute; top: calc(50% - 50px); left: 50%; color: #45464e; font-size: 44px; font-weight: 600; letter-spacing: -.04em; transform: translate(-50%,-50%); }
.lpc-ref .lpc-ref-controls { display: flex; justify-content: flex-end; gap: 10px; width: min(var(--lpc-ref-content-width), calc(100% - 48px)); margin: 32px auto 0; padding: 0; }
.lpc-ref .lpc-ref-arrow { display: grid; flex: none; width: var(--lpc-ref-control-size); min-width: 0; height: var(--lpc-ref-control-size); min-height: 0; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; appearance: none; background: #dfdfe4; color: #515866; font-size: 16px; line-height: 0; cursor: pointer; box-shadow: none; }
.lpc-ref .lpc-ref-arrow svg { display: block; width: 20px; height: 20px; margin: 0; padding: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lpc-ref .lpc-ref-arrow:disabled { color: #a9a9af; opacity: .45; cursor: default; }
.lpc-ref .lpc-ref-arrow:focus-visible, .lpc-ref .lpc-ref-close:focus-visible { outline: 3px solid var(--lpc-ref-accent); outline-offset: 3px; }

/* Dialogi pozostają wewnątrz własnego wrappera, również w natywnej top layer. */
.lpc-ref .lpc-ref-dialog { position: fixed; inset: 0; width: min(1000px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 24px; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 24px; background: #fff; color: #1d1d1f; font-size: 17px; line-height: 1.6; color-scheme: light; box-shadow: none; }
.lpc-ref .lpc-ref-dialog:not([open]):not(:target) { display: none; }
.lpc-ref .lpc-ref-dialog[open] { display: block; }
.lpc-ref .lpc-ref-dialog::backdrop { background: rgba(0,0,0,.75); }
.lpc-ref .lpc-ref-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 0; }
.lpc-ref .lpc-ref-dialog-title { margin: 0; padding: 0; color: #1d1d1f; font-size: 18px; font-weight: 600; line-height: 1.6; }
.lpc-ref .lpc-ref-close { display: grid; flex: none; width: 44px; min-width: 0; height: 44px; min-height: 0; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 50%; appearance: none; background: #f5f5f7; color: #1d1d1f; cursor: pointer; box-shadow: none; }
.lpc-ref .lpc-ref-close svg { width: 18px; height: 18px; margin: 0; padding: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lpc-ref .lpc-ref-dialog video { display: block; width: 100%; max-height: calc(100dvh - 170px); margin: 0; padding: 0; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; object-fit: contain; }
.lpc-ref .lpc-ref-error { margin: 16px 0 0; padding: 0; color: #6e6e73; font-size: 15px; }
.lpc-ref .lpc-ref-error a { color: var(--lpc-ref-accent); text-decoration: underline; }
.lpc-ref .lpc-ref-error a:hover { color: var(--lpc-ref-accent-hover); }
.lpc-ref .lpc-ref-dialog--text { width: min(760px, calc(100% - 32px)); padding: 32px; }
.lpc-ref .lpc-ref-dialog--text:target:not([open]) { position: relative; display: block; margin: 32px auto; }
.lpc-ref .lpc-ref-dialog-head .lpc-ref-logo { width: 110px; height: 32px; margin: 0; filter: none; }
.lpc-ref .lpc-ref-quote { margin: 0; padding: 0; border: 0; color: #1d1d1f; font-size: 17px; font-weight: 450; font-style: normal; line-height: 1.6; letter-spacing: -.02em; }
.lpc-ref .lpc-ref-quote::before, .lpc-ref .lpc-ref-quote::after { content: none; }
.lpc-ref .lpc-ref-author { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 0; }
.lpc-ref .lpc-ref-avatar { display: grid; flex: none; width: 48px; height: 48px; place-items: center; padding: 0; border: 0; border-radius: 50%; object-fit: cover; object-position: center 20%; background: #ededf0; color: #6e6e73; font-size: 13px; font-weight: 600; }
.lpc-ref .lpc-ref-author h3 { margin: 0; padding: 0; color: #1d1d1f; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.lpc-ref .lpc-ref-author p { margin: 2px 0 0; padding: 0; color: #6e6e73; font-size: 14px; line-height: 1.3; }
.lpc-ref .lpc-ref-dialog noscript a { display: inline-block; margin-top: 24px; color: #1d1d1f; text-decoration: underline; }
/* Jedyna reguła poza komponentem: blokada przewijania na czas jego modala. */
.lpc-ref-modal-open { overflow: hidden; }

@container lpc-ref (max-width: 1023px) {
  .lpc-ref .lpc-ref-container, .lpc-ref .lpc-ref-controls { width: min(700px, calc(100% - 36px)); }
  .lpc-ref .lpc-ref-title { font-size: 40px; }
  .lpc-ref .lpc-ref-track { --lpc-ref-gutter: max(18px, calc((100% - 700px) / 2)); }
}
@container lpc-ref (max-width: 900px) {
  .lpc-ref .lpc-ref-card { flex-basis: 100%; max-width: 620px; }
}
@container lpc-ref (max-width: 620px) {
  .lpc-ref .lpc-ref-container, .lpc-ref .lpc-ref-controls { width: calc(100% - 32px); }
  .lpc-ref .lpc-ref-title { font-size: 32px; }
  .lpc-ref .lpc-ref-track { --lpc-ref-gutter: 16px; gap: 16px; margin-top: 34px; }
  .lpc-ref .lpc-ref-card { border-radius: 24px; }
  .lpc-ref .lpc-ref-person { right: 24px; bottom: 24px; left: 24px; }
  .lpc-ref .lpc-ref-person strong { font-size: 15px; }
  .lpc-ref .lpc-ref-placeholder-label { font-size: 38px; }
  .lpc-ref .lpc-ref-dialog { padding: 16px; border-radius: 20px; }
  .lpc-ref .lpc-ref-dialog-title { font-size: 16px; }
  .lpc-ref .lpc-ref-dialog--text { padding: 24px; }
}
@media (max-width: 620px) {
  .lpc-ref { --lpc-ref-padding: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .lpc-ref .lpc-ref-play { transition: none; }
  .lpc-ref .lpc-ref-track { scroll-behavior: auto; }
}
