.pg-article{scroll-padding-top:calc(var(--header-h,72px) + 16px)}
html:has(.pg-article){scroll-padding-top:calc(var(--header-h,72px) + 16px)}
/* Article page: colleague layout, MCG content. */

.pg-article .hero-grid{display:block}
.pg-article .hero-copy{max-width:none}
.pg-article .art-hero{
  padding:56px 0 32px;
  overflow:visible;
}
.pg-article .art-hero h1{
  margin:0;
  max-width:18em;
  overflow-wrap:break-word;
}
.pg-article .art-hero h1 em{white-space:normal}

.pg-article .crumbs{
  display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;
  margin:0 0 18px;
  font-size:13.5px;line-height:1.4;font-weight:550;color:#8AA0AB;
}
.pg-article .crumbs a{color:#8EE3FE;text-decoration:none}
.pg-article .crumbs a:hover{text-decoration:underline}
.pg-article .crumbs-sep{color:#4E6874;font-weight:700}
.pg-article .crumbs [aria-current="page"]{
  color:#D0DADF;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.art-byline{
  display:flex;flex-wrap:wrap;align-items:center;
  gap:8px 14px;
  margin:20px 0 0;
  min-width:0;
  font-size:13.5px;line-height:1.4;font-weight:550;color:#9FB2BC;
}
.art-author{
  display:inline-flex;align-items:center;gap:10px;
  min-width:0;max-width:100%;
}
.art-avatar{
  position:relative;isolation:isolate;overflow:visible;
  flex:none;width:28px;height:28px;border-radius:50%;
  display:grid;place-items:center;
  font-size:9px;font-weight:700;letter-spacing:.04em;color:#8EE3FE;
  background:transparent;
  box-shadow:0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.08);
}
.art-avatar::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:rgba(14,30,42,.55);
  backdrop-filter:blur(20px) saturate(1.15);
  -webkit-backdrop-filter:blur(20px) saturate(1.15);
}
.art-author-name{
  color:#F3F7F9;font-weight:700;font-size:14px;letter-spacing:-.01em;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.art-author-role{
  color:#9FB2BC;font-weight:550;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.art-byline-div{
  flex:none;width:1px;height:16px;
  background:rgba(255,255,255,.18);
}
.art-meta{
  display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px 10px;
  margin:0;min-width:0;
}
.art-meta .art-cat{
  margin:0;color:#68E2B4;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;font-size:12px;
  text-decoration:none;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;
}
.art-meta .art-cat:hover{color:#8EE3FE}
.art-meta time{flex:none;letter-spacing:.02em}

.pg-article #statya{padding-top:0}

/* Body + toc */
.art-layout{
  display:grid;
  grid-template-columns:240px minmax(0,760px);
  gap:48px;
  justify-content:center;
  align-items:start;
}
.art-side{
  position:sticky;
  top:calc(var(--header-h,72px) + 16px);
  display:flex;flex-direction:column;gap:16px;
  min-width:0;
}
.art-toc,
.art-share,
.art-cta{
  position:relative;isolation:isolate;overflow:visible;
  background:transparent;
  box-shadow:0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.08);
}
.art-toc::before,
.art-share::before,
.art-cta::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:rgba(14,30,42,.55);
  backdrop-filter:blur(20px) saturate(1.15);
  -webkit-backdrop-filter:blur(20px) saturate(1.15);
}
.art-toc{border-radius:24px;padding:18px 18px 16px}
.art-toc-title,
.art-share-title,
.art-toc summary{
  margin:0 0 12px;
  font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9FB2BC;
}
.art-toc summary{
  list-style:none;
  cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  font:inherit;
  font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9FB2BC;
}
.art-toc summary::-webkit-details-marker{display:none}
.art-toc summary::after{
  content:"";
  flex:none;width:8px;height:8px;
  border-right:2px solid #8EE3FE;
  border-bottom:2px solid #8EE3FE;
  transform:rotate(45deg);
  transition:transform .2s ease;
}
.art-toc[open] summary::after{transform:rotate(225deg);margin-top:4px}
.art-toc ol{
  margin:0;padding:0;list-style:none;
  display:flex;flex-direction:column;gap:2px;
}
.art-toc a{
  display:block;
  padding:8px 10px;border-radius:12px;
  color:#D0DADF;text-decoration:none;
  font-size:14px;line-height:1.35;font-weight:550;
  overflow-wrap:break-word;
}
.art-toc li.lvl-3 a{padding-left:18px;font-size:13.5px;font-weight:500;color:#B7C5CD}
.art-toc a:hover{color:#8EE3FE;background:rgba(255,255,255,.04)}
.art-toc a.is-on{
  color:#8EE3FE;
  background:rgba(19,184,238,.12);
}

.art-share{border-radius:24px;padding:16px 18px}
.art-share-acts{display:flex;flex-wrap:wrap;gap:8px}
.art-share-btn,
.art-share-acts a{
  position:relative;isolation:isolate;overflow:visible;
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;padding:0 12px;border-radius:12px;
  border:0;cursor:pointer;
  background:transparent;color:#E8F4F8;text-decoration:none;
  font:inherit;font-size:13px;font-weight:650;
  box-shadow:0 0 0 1px rgba(255,255,255,.16);
}
.art-share-btn::before,
.art-share-acts a::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:rgba(255,255,255,.04);
}
.art-share-btn:hover,
.art-share-acts a:hover{color:#8EE3FE;box-shadow:0 0 0 1px rgba(19,184,238,.5)}
.art-share-ok{margin:10px 0 0;font-size:13px;color:#68E2B4}

.art-body{min-width:0;max-width:760px}
.art-lead{
  margin:0 0 36px;
  border-radius:24px;
  aspect-ratio:16/9;
  overflow:hidden;
  background:rgba(255,255,255,.04);
}
.art-lead img{
  width:100%;height:100%;
  object-fit:cover;display:block;
}
.art-body p{
  margin:0 0 18px;
  font-size:16px;line-height:1.5;
  color:var(--b-ink,#F3F7F9);
  overflow-wrap:break-word;
}
.art-body p:last-child{margin-bottom:0}
.art-body a{color:#8EE3FE;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
.art-body a:hover{text-decoration:underline}
.art-body h2{
  margin:48px 0 24px;
  font-size:clamp(32.76px, 4vw, 54px);
  line-height:1.02;letter-spacing:-.045em;font-weight:700;
  color:var(--b-ink,#F3F7F9);
  overflow-wrap:break-word;
  scroll-margin-top:calc(var(--header-h,72px) + 16px);
}
.art-body h2:first-of-type{margin-top:40px}
.art-body h2 em{
  font-style:normal;
  background:linear-gradient(105deg, #13B8EE 8%, #70FCC8 58%, #68E2B4 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.art-body h3{
  margin:32px 0 14px;
  font-size:18px;line-height:1.25;letter-spacing:-.02em;font-weight:700;
  overflow-wrap:break-word;
  scroll-margin-top:calc(var(--header-h,72px) + 16px);
}
.art-body h4{
  margin:24px 0 12px;
  font-size:16px;line-height:1.3;font-weight:700;
  scroll-margin-top:calc(var(--header-h,72px) + 16px);
}
.art-body ul,
.art-body ol{
  margin:0 0 18px;padding:0 0 0 1.2em;
  font-size:16px;line-height:1.5;
}
.art-body li{margin:0 0 8px;overflow-wrap:break-word}
.art-body li:last-child{margin-bottom:0}
.art-body strong,.art-body b{font-weight:700;color:#F3F7F9}
.art-body figure{margin:24px 0;border-radius:20px;overflow:hidden}
.art-body figure img,
.art-body p img,
.art-body img{
  max-width:100%;height:auto;border-radius:16px;display:block;
}
.art-body figcaption{margin:8px 0 0;font-size:13.5px;color:#9FB2BC}
.art-table-wrap{margin:0 0 24px;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}
.art-body table{
  width:100%;border-collapse:collapse;
  font-size:16px;line-height:1.5;
}
.art-body th,
.art-body td{
  padding:12px 14px;text-align:left;vertical-align:top;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.08);
}
.art-body th{font-weight:700;color:#8EE3FE}

/* CTA */
.pg-article #pomoc .wrap{max-width:760px}
.art-cta{
  border-radius:32px;
  padding:40px 40px 36px;
  text-align:center;
}
.art-cta .kicker{justify-content:center}
.art-cta h2{
  margin:0 0 28px;
  overflow-wrap:break-word;
}
.art-cta h2 em{
  font-style:normal;
  background:linear-gradient(105deg, #13B8EE 8%, #70FCC8 58%, #68E2B4 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.art-cta-acts{
  display:flex;flex-wrap:wrap;justify-content:center;gap:12px;
}
.art-cta-acts .btn{min-height:52px}

.pg-article #pomoc,
.pg-article #podobne,
.pg-article #statya{
  scroll-margin-top:96px;
}
.pg-article #podobne .bh{margin-bottom:48px}
.art-related{margin:0}

@media (max-width:1100px){
  .pg-article .art-hero{padding:44px 0 28px}
}
@media (max-width:890px){
  .art-layout{grid-template-columns:1fr;gap:32px}
  .art-side{display:contents;position:static}
  .art-toc-wrap{order:1}
  .art-body{order:2;max-width:760px;width:100%;margin-inline:auto}
  .art-share{order:3}
  .art-body h2{margin-top:40px}
  .art-body h2:first-of-type{margin-top:32px}
  .art-cta{padding:32px 28px}
  .pg-article #podobne .bh{margin-bottom:40px}
  .art-related{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:639px){
  .pg-article .art-hero{padding:36px 0 24px}
  .pg-article .crumbs{font-size:12.5px}
  .art-byline{margin-top:16px;gap:8px 12px}
  .art-byline-div{display:none}
  .art-lead{margin-bottom:28px;border-radius:20px}
  .art-body h2{margin-top:32px}
  .art-body h2:first-of-type{margin-top:24px}
  .art-cta{padding:28px 20px;border-radius:24px}
  .art-cta h2{margin-bottom:20px}
  .art-cta-acts{flex-direction:column}
  .art-cta-acts .btn{width:100%;justify-content:center}
  .pg-article #podobne .bh{margin-bottom:32px}
  .art-related{grid-template-columns:1fr}
}

/* Desktop TOC is always open; the summary is not a control. */
@media (min-width:891px){
  .art-toc summary{pointer-events:none;cursor:default;margin-bottom:12px}
  .art-toc summary::after{display:none}
  .art-toc:not([open]) ol{display:flex} /* safety if JS missed a close */
}

/* Article header is static: crumbs, title, byline and the cover — no motion, no floating visuals. */
.pg-article .art-hero,
.pg-article .art-hero *,
.pg-article .art-hero *::before,
.pg-article .art-hero *::after,
.pg-article .art-lead,
.pg-article .art-lead *,
.pg-article .art-lead *::before,
.pg-article .art-lead *::after{
  animation:none !important;
}
.pg-article .art-hero .hero-visual,
.pg-article .art-hero .hv,
.pg-article .art-hero .bhv,
.pg-article .art-hero .hva-chips,
.pg-article .art-hero .hv-chip{
  display:none !important;
}
.pg-article .art-lead img{
  transition:none;
  transform:none;
}

/* TOC header: vertically centred text + chevron in collapsed pill */
.art-toc{padding:18px}
.art-toc summary{margin:0;min-height:20px;line-height:20px}
.art-toc[open] summary{margin-bottom:12px}
.art-toc summary::after{margin-top:-5px}
.art-toc[open] summary::after{margin-top:5px}

/* Author photo (src/content/authors) instead of initials */
.art-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
