/* Klinika Wiedzy – strona ratunkowa v6 */
@font-face { font-family: 'Jost'; src: url(fonts/Jost-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(fonts/Jost-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jost'; src: url(fonts/Jost-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(fonts/SourceSans3-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(fonts/SourceSans3-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-hero: clamp(2.125rem, 1.25rem + 3vw, 3.75rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.25rem; --s6: 1.5rem;
  --s8: 2rem; --s10: 2.5rem; --s12: 3rem; --s16: 4rem; --s20: 5rem; --s24: 6rem; --s32: 8rem;

  --bg: #FBFAF7; --paper: #FAF9F4; --band: #F2F0EB; --surface: #FFFFFF;
  --text: #1B2633; --muted: #545E69; --faint: #7A838D;
  --divider: rgba(27, 38, 51, .12);
  --navy: #1E4A7A; --navy-hover: #163A61; --navy-active: #102C4A; --navy-deep: #16385D;
  --gold: #C4974A; --gold-text: #8C6420; --silver: #A6ADB6; --silver-text: #5B6570;

  --radius: .25rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px; --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-height: 100dvh; font-family: var(--body); font-size: var(--text-base); line-height: 1.6; color: var(--text); background: var(--bg); }
img, svg { display: block; max-width: 100%; height: auto; }
ul[role=list] { list-style: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: var(--radius); }
::selection { background: rgba(30, 74, 122, .2); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--s4); top: -100px; background: var(--navy); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--radius); z-index: 100; text-decoration: none; }
.skip:focus { top: var(--s4); }

/* Kod W/U/P */
.code { display: block; width: 100%; }
.code--top, .code--bottom { height: 8px; }

/* Nagłówek */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--divider); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s6); min-height: 72px; }
.header__logo { display: inline-flex; color: var(--navy); padding-block: var(--s2); }
.logo { width: clamp(132px, 13vw, 160px); }
.nav { display: flex; align-items: center; gap: var(--s1); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--s3); font-family: var(--display); font-size: var(--text-sm); font-weight: 500; letter-spacing: .02em; text-decoration: none; color: var(--text); border-radius: var(--radius); transition: color .18s var(--ease), background .18s var(--ease); }
.nav a:hover { color: var(--navy); }
.nav .nav__cta { border: 1px solid var(--navy); color: var(--navy); margin-left: var(--s2); padding-inline: var(--s4); }
.nav .nav__cta:hover { background: var(--navy); color: #fff; }

/* Typografia wspólna */
.eyebrow, .label { font-family: var(--display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.section-title { font-family: var(--display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -.005em; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s6); font-family: var(--display); font-size: var(--text-sm); font-weight: 500; letter-spacing: .02em; text-decoration: none; border: 1px solid var(--navy); border-radius: var(--radius); transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn--primary:active { background: var(--navy-active); }
.btn--ghost { color: var(--navy); }
.btn--ghost:hover { background: rgba(30, 74, 122, .06); }

/* Hero */
.hero { padding-block: clamp(var(--s12), 8vw, var(--s24)) clamp(var(--s12), 7vw, var(--s20)); }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(var(--s10), 7vw, var(--s24)); align-items: center; }
h1 { margin-top: var(--s5); max-width: 18ch; font-family: var(--display); font-size: var(--text-hero); font-weight: 500; line-height: 1.08; letter-spacing: -.012em; }
.lead { margin-top: var(--s6); max-width: 46ch; font-size: var(--text-lg); line-height: 1.5; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s10); }

.jubilee { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: var(--s4); row-gap: var(--s5); }
.jubilee__num { font-family: var(--display); font-weight: 400; font-size: clamp(7rem, 5rem + 9vw, 13rem); line-height: .78; letter-spacing: -.04em; color: var(--navy); font-variant-numeric: lining-nums; }
.jubilee__cap { display: flex; flex-direction: column; gap: var(--s2); padding-bottom: .35em; }
.jubilee__lat { font-family: var(--display); font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1; color: var(--gold-text); }
.jubilee__years { font-family: var(--display); font-size: var(--text-sm); font-weight: 500; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.jubilee__lucky { font-family: var(--display); font-size: var(--text-xs); font-weight: 500; letter-spacing: .04em; color: var(--gold-text); white-space: nowrap; }
.code--jubilee { grid-column: 1 / -1; height: clamp(28px, 3vw, 40px); }
.jubilee__wup { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--s3); font-family: var(--display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.jubilee__wup span:nth-child(1) { color: var(--navy); }
.jubilee__wup span:nth-child(2) { color: var(--silver-text); }
.jubilee__wup span:nth-child(3) { color: var(--gold-text); }

@media (prefers-reduced-motion: no-preference) {
  .code--top, .code--jubilee { animation: reveal 1.2s var(--ease) both; }
  .code--jubilee { animation-delay: .25s; }
  @keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Aktualności */
.news { padding-block: clamp(var(--s12), 6vw, var(--s20)); background: var(--paper); border-block: 1px solid var(--divider); }
.post { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(var(--s8), 5vw, var(--s16)); align-items: center; margin-top: var(--s6); }
.post__img { border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.post__img img { width: 100%; aspect-ratio: 1174 / 780; object-fit: cover; }
.post__meta { font-family: var(--display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post__title { margin-top: var(--s3); font-family: var(--display); font-weight: 500; font-size: var(--text-xl); color: var(--navy); }
.post__body p:not(.post__meta) { margin-top: var(--s4); color: var(--muted); max-width: 52ch; }
.post__body strong { color: var(--text); font-weight: 600; letter-spacing: .02em; }
.post__body .btn { margin-top: var(--s8); }

/* Oferta */
.offer { padding-block: clamp(var(--s16), 8vw, var(--s24)); }
.offer__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s8); align-items: end; }
.offer__lead { color: var(--muted); max-width: 48ch; justify-self: end; }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(var(--s8), 4vw, var(--s12)); margin-top: var(--s12); }
.area { border-top: 2px solid var(--navy); padding-top: var(--s5); }
.area:nth-child(2) { border-top-color: var(--silver); }
.area:nth-child(3) { border-top-color: var(--gold); }
.area__no { font-family: var(--display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; color: var(--faint); }
.area__title { margin-top: var(--s3); font-family: var(--display); font-weight: 500; font-size: var(--text-lg); color: var(--text); }
.area__tag { margin-top: var(--s2); font-family: var(--display); font-size: var(--text-base); font-weight: 500; color: var(--gold-text); line-height: 1.35; }
.area__text { margin-top: var(--s3); color: var(--muted); }

/* Branże */
.sectors__good { display: flex; gap: var(--s4); align-items: flex-start; margin-top: var(--s10); padding: var(--s5) var(--s6); max-width: 760px;
  background: var(--surface); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--text-lg); line-height: 1.45; color: var(--muted); }
.sectors__good strong { font-family: var(--display); font-weight: 500; color: var(--text); }
.sectors__good-mark { display: none; }
.sectors { padding-block: clamp(var(--s16), 8vw, var(--s24)); background: var(--paper); border-top: 1px solid var(--divider); }
.sectors__head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
.sectors__lead { color: var(--muted); max-width: 56ch; font-size: var(--text-lg); line-height: 1.5; }
.sectors__list { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s3); margin-top: var(--s12); }
.sectors__list li { display: inline-flex; align-items: center; gap: .55em; padding: .5em 1em .55em; border: 1px solid var(--divider); border-radius: 999px; background: var(--surface);
  font-family: var(--display); font-size: var(--text-base); font-weight: 500; color: var(--text); line-height: 1.2; }
.sectors__list li::before { content: ""; width: .5em; height: .5em; flex: none; background: var(--navy); }
.sectors__list li.s1::before { background: var(--silver); }
.sectors__list li.s2::before { background: var(--gold); }
.sectors__list li.sectors__more { border-style: dashed; background: transparent; color: var(--muted); font-weight: 400; }
.sectors__list li.sectors__more::before { content: "+"; width: auto; height: auto; background: none; color: var(--gold-text); font-weight: 600; }

/* Formalności */
.facts { padding-block: clamp(var(--s12), 6vw, var(--s16)); background: var(--band); }
.facts__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s8); margin-top: var(--s6); }
.fact { border-top: 1px solid var(--divider); padding-top: var(--s5); }
.fact__title { font-family: var(--display); font-weight: 500; color: var(--text); }
.fact__text { margin-top: var(--s2); font-size: var(--text-sm); color: var(--muted); }
.link { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; white-space: nowrap; }
.link:hover { text-decoration-thickness: 2px; }

/* Kontakt */
.contact { background: var(--navy-deep); color: #fff; padding-block: clamp(var(--s16), 8vw, var(--s24)); }
.contact__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--s10), 6vw, var(--s20)); }
.contact__title { font-family: var(--display); font-weight: 500; font-size: var(--text-xl); max-width: 18ch; }
.contact__lead { margin-top: var(--s5); max-width: 38ch; color: rgba(255, 255, 255, .78); }
.contact__list { display: grid; gap: 0; }
.contact__list > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s4); align-items: baseline; padding-block: var(--s5); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact__list > div:first-child { padding-top: 0; }
.contact__list > div:last-child { border-bottom: 0; }
dt { font-family: var(--display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
dd { color: rgba(255, 255, 255, .9); }
.contact__big { display: inline-block; font-family: var(--display); font-size: var(--text-lg); font-weight: 500; color: #fff; text-decoration: none; overflow-wrap: anywhere; line-height: 1.5; }
.contact__big:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link--light { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }

/* Stopka */
.footer { background: var(--bg); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s8); padding-block: var(--s8); font-size: var(--text-xs); color: var(--faint); }
.logo--footer { width: 112px; color: var(--navy); }

/* Responsywność */
@media (max-width: 1000px) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .areas { grid-template-columns: minmax(0, 1fr); gap: var(--s8); }
}
@media (max-width: 900px) {
  .hero__in, .post, .contact__in, .offer__head, .sectors__head { grid-template-columns: minmax(0, 1fr); }
  .jubilee { max-width: 420px; }
  .offer__lead { justify-self: start; }
}
@media (max-width: 560px) {
  .header__in { min-height: 60px; }
  .nav li:not(:last-child) { display: none; }
  .btn { width: 100%; }
  .facts__list { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .sectors__list li { font-size: var(--text-sm); }
  .contact__list > div { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .jubilee__wup { font-size: .6875rem; letter-spacing: .1em; }
}

/* Węgiel i diament (v6) */
.carbon { padding-block: clamp(var(--s16), 8vw, var(--s24)); background: var(--band); border-top: 1px solid var(--divider); overflow: hidden; }
.carbon__eyebrow { text-align: center; margin-bottom: var(--s10); }
.carbon__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(var(--s6), 4vw, var(--s16)); max-width: 960px; margin-inline: auto; }
.carbon__fig { display: flex; flex-direction: column; align-items: center; gap: var(--s6); }
.carbon__stage { width: min(100%, 300px); aspect-ratio: 5 / 4; display: grid; place-items: center; }
.carbon__img { width: 100%; height: 100%; object-fit: contain; }
.carbon__img--dm { transition: filter 1.2s var(--ease) .8s; }
.js .carbon:not(.is-ordered) .carbon__img--dm { filter: grayscale(1) contrast(.9); }
.carbon__art { width: 100%; height: auto; overflow: visible; }
.carbon__fig figcaption { font-family: var(--display); font-weight: 500; font-size: var(--text-lg); color: var(--text); }
.carbon__tile { display: grid; grid-template-rows: auto 1fr auto; width: 84px; height: 96px; padding: var(--s2) var(--s3); border: 1.5px solid var(--text); border-radius: 2px; background: var(--surface); font-family: var(--display); line-height: 1; }
.carbon__z { font-size: var(--text-xs); color: var(--muted); }
.carbon__sym { align-self: center; justify-self: center; font-size: 2.5rem; font-weight: 500; color: var(--navy); }
.carbon__name { justify-self: center; font-size: .6875rem; letter-spacing: .08em; color: var(--muted); }

.dm__f, .dm__table { fill: var(--surface); stroke: var(--navy); stroke-width: 1.1; stroke-linejoin: round; }
.dm__f--tint { fill: rgba(30, 74, 122, .09); }
.dm__f--gold { fill: rgba(196, 151, 74, .42); transition: fill .8s var(--ease) .9s; }
.dm__edge { fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linejoin: round; }
.dm__spark { fill: var(--gold); transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease) 1.4s; }

.carbon__bars { display: flex; align-items: center; justify-content: center; gap: 4px; width: min(100%, 260px); height: 30px; }
.carbon__bars span { display: block; flex: var(--w) 0 0; height: 26px; background: var(--c); border-radius: 1px; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
.carbon__bars--order span { transform: none; transition: transform .9s var(--ease) var(--d), background-color .6s var(--ease) calc(var(--d) + .2s); }
.js .carbon:not(.is-ordered) .carbon__bars--order span { transform: translate(var(--x), var(--y)) rotate(var(--r)); background: #9AA1A9; }
.js .carbon:not(.is-ordered) .dm__f--gold { fill: var(--surface); }
.js .carbon:not(.is-ordered) .dm__spark { transform: scale(0); }

.carbon__text { max-width: 620px; margin: clamp(var(--s12), 6vw, var(--s16)) auto 0; text-align: center; }
.carbon__title { font-family: var(--display); font-weight: 500; font-size: var(--text-xl); margin-bottom: var(--s4); }
.carbon__title sup, .carbon__note sup { color: var(--gold-text); font-size: .55em; margin-left: .1em; }
.carbon__text p { color: var(--muted); font-size: var(--text-lg); line-height: 1.5; }
.carbon__text .carbon__note { margin-top: var(--s6); font-size: var(--text-sm); color: var(--gold-text); }

@media (max-width: 720px) {
  .carbon__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .carbon__stage { width: min(64%, 210px); }
  .carbon__tile { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .carbon__bars span, .carbon__img--dm { transition: none !important; }
  .js .carbon:not(.is-ordered) .carbon__img--dm { filter: none; }
  .js .carbon:not(.is-ordered) .carbon__bars--order span { transform: none; background: var(--c); }
  .js .carbon:not(.is-ordered) .dm__f--gold { fill: rgba(196, 151, 74, .42); }
  .js .carbon:not(.is-ordered) .dm__spark { transform: none; }
}
