/* Wolf's Rock · Adrian Prościak
   Układ: jedna ciągła granatowa przestrzeń. Przez całą stronę biegnie helisa (canvas #spine),
   która skręca się przy przewijaniu i przechodzi między sekcjami. Treść gęsta leży na kartkach papieru. */
:root {
  --bg: #1C2831;          /* granat z Pliku bazowego, przyciemniony */
  --bg-deep: #141E25;
  --ink: #1E2A33;
  --slate: #3E5060;
  --head: #F5EFE4;
  --text: #DCD5C9;
  --muted: #9EA9B1;
  --muted-ink: #9EA9B1;
  --line: rgba(236, 230, 219, .13);
  --line-ink: rgba(236, 230, 219, .13);
  --card: rgba(33, 46, 56, .9);
  --gold: #C9A061;
  --gold-lt: #D9B988;
  --gold-dk: #B4884A;
  --rust: #D5794C;
  --rust-lt: #D5794C;
  --on-ink: #DCD5C9;
  --paper: #F5F0E7;
  --sand: #EFE6D6;

  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* kartka papieru: lokalnie jasne tokeny */
.sheet {
  --head: #1E2A33; --text: #2A343C; --muted: #5E6A73; --line: #DDD5C8; --card: #fff;
  --gold: #B4884A; --gold-lt: #B4884A; --rust: #A2522B;
  background: var(--paper); color: var(--text);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 2px 0 rgba(0,0,0,.08);
  border-radius: 2px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg-deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 70% 0%, #24343F 0%, rgba(36,52,63,0) 60%),
    linear-gradient(rgba(236,230,219,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,230,219,.028) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg-deep);
}
#spine { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, .site-footer { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; color: var(--head); }
h1 { font-size: clamp(2.35rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.2; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-lt); color: #141E25; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: #141E25; padding: 10px 16px; }
.skip:focus { left: 16px; top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.band { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.band--tight { padding-block: clamp(48px, 6vw, 88px); }
section[id] { scroll-margin-top: 84px; }

/* etykiety i notatki */
.label { display: inline-block; font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; max-width: 40em; color: var(--text); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: .02em; }
.note { font-family: var(--f-hand); font-weight: 500; font-size: 1.65rem; line-height: 1.1; color: var(--rust); display: inline-block; transform: rotate(-2.5deg); }
.stack > * + * { margin-top: 1em; }
.measure { max-width: 38em; }
.sec-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head p { color: var(--muted); font-size: 1.1rem; }

/* przyciski */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 2px; font: 600 1rem/1.2 var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #17140F; }
.btn--gold:hover { background: var(--gold-lt); box-shadow: 0 10px 30px -10px rgba(201,160,97,.6); }
.btn--ink { background: #1E2A33; color: #F5EFE4; }
.btn--ink:hover { background: var(--slate); }
.btn--line { border-color: rgba(236,230,219,.35); color: inherit; background: transparent; }
.btn--line:hover { border-color: var(--gold-lt); color: var(--gold-lt); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: inherit; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.link:hover { color: var(--gold); }
.link-row { display: flex; flex-wrap: wrap; gap: 14px 28px; }

/* nagłówek */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(20, 30, 37, .78); color: var(--text); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(20, 30, 37, .94); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--rust)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); }
.brand__mark { height: 38px; width: auto; flex: none; display: block; }
.site-footer .brand__mark { height: 44px; }
.brand__txt { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--f-display); font-size: 1.42rem; }
.brand__by { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-lt); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 11px; font-size: .95rem; color: #CFC8BC; border-radius: 2px; position: relative; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 1px; background: var(--gold-lt); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav__tel { margin-left: 10px; padding: 9px 14px; border: 1px solid rgba(217,185,136,.5); color: var(--gold-lt); font-family: var(--f-mono); font-size: .86rem; letter-spacing: .03em; }
.nav .nav__tel::after { display: none; }
.nav .nav__tel:hover { background: var(--gold); color: #17140F; border-color: var(--gold); }
.burger { display: none; background: none; border: 1px solid var(--line); color: inherit; width: 46px; height: 42px; border-radius: 2px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1060px) {
  .burger { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 8px var(--gut-r) 20px var(--gut); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav__tel { margin: 14px 0 0; text-align: center; }
}

/* hero strony głównej */
.hero { padding-block: clamp(56px, 7vw, 100px) clamp(72px, 9vw, 130px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.hero__copy { display: grid; gap: 26px; }
.hero__copy h1 em { font-style: italic; color: var(--gold-lt); }
.hero__meta { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero__fig { position: relative; justify-self: end; width: min(100%, 420px); }
.portrait { position: relative; margin: 0; will-change: transform; }
.portrait__img { position: relative; overflow: hidden; border-radius: 2px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.portrait__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s var(--ease); }
.portrait:hover .portrait__img img { transform: scale(1.03); }
.portrait__tag { position: absolute; right: -14px; bottom: 28px; background: #A2522B; color: #FBEFE6; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; z-index: 3; }
.portrait__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fig { width: min(78%, 340px); justify-self: start; }
}

/* zdanie o DNA */
.statement { padding-block: clamp(120px, 16vw, 220px); text-align: center; overflow: hidden; }
.statement__in { position: relative; display: grid; justify-items: center; gap: 26px; }
.statement__in::before { content: ""; position: absolute; inset: -18% -6%; background: radial-gradient(closest-side, rgba(28,40,49,.88), rgba(28,40,49,.55) 55%, rgba(28,40,49,0)); z-index: -1; }
.statement__h { font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1.02; max-width: 13ch; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--gold-lt) 0, var(--gold-lt) var(--p, 100%), var(--head) var(--p, 100%), var(--head) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.statement__h em { font-style: italic; }
.statement__sub { max-width: 34em; color: var(--text); font-size: clamp(1.08rem, 1.5vw, 1.25rem); }

/* hero podstron */
.phero { padding-block: clamp(48px, 6vw, 92px) clamp(40px, 5vw, 72px); }
.phero__in { display: grid; gap: 20px; max-width: 50rem; }
.phero__split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.phero__split .phero__in { max-width: none; }
.phero__photo { width: 230px; margin: 0; }
.phero__photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
@media (max-width: 760px) { .phero__split { grid-template-columns: 1fr; gap: 28px; } .phero__photo { width: 170px; } }
.crumbs { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--gold-lt); }
.crumbs a:hover { text-decoration: underline; }

/* liczby */
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.proof__item { padding: 28px; display: grid; gap: 10px; align-content: start; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 2px; transition: border-color .5s, background-color .5s, transform .5s var(--ease); }
.proof__num { font-family: var(--f-display); font-size: clamp(2.9rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.02em; color: var(--head); font-variant-numeric: tabular-nums lining-nums; }
.proof__num small { font-size: .42em; letter-spacing: 0; margin-left: .15em; color: var(--gold); }
.proof__item p { color: var(--muted); }
.split-bar { display: flex; height: 8px; margin-top: 10px; gap: 2px; }
.split-bar span { display: block; height: 100%; background: var(--gold); transform-origin: left; transition: transform 1s var(--ease); }
.split-bar span:nth-child(2) { background: #A98450; }
.split-bar span:nth-child(3) { background: #A2522B; }
.split-bar span:nth-child(4) { background: rgba(236,230,219,.2); }
.split-legend { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.split-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.split-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--gold); }
.split-legend li:nth-child(2) i { background: #A98450; }
.split-legend li:nth-child(3) i { background: #A2522B; }
.split-legend li:nth-child(4) i { background: rgba(236,230,219,.2); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }

/* elementy przyczepione do helisy */
.is-near { border-color: rgba(217,185,136,.5) !important; }
.proof__item.is-near, .rung__keep.is-near, .card.is-near { background: rgba(38, 53, 64, .94); }

/* wybór problemu */
.picker { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.picker__list { display: grid; border-top: 1px solid var(--line); }
.picker__opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 4px; font: 400 clamp(1.15rem, 1.6vw, 1.38rem)/1.3 var(--f-display); color: var(--text); cursor: pointer; transition: color .25s, padding .35s var(--ease); }
.picker__opt::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); flex: none; opacity: .35; transition: opacity .25s, transform .35s var(--ease); }
.picker__opt:hover { color: var(--gold-lt); }
.picker__opt[aria-selected="true"] { color: var(--gold-lt); padding-left: 14px; }
.picker__opt[aria-selected="true"]::after { opacity: 1; transform: translateX(4px) rotate(45deg); }
.picker__panel { padding: clamp(24px, 3.5vw, 40px); position: sticky; top: 100px; display: grid; gap: 22px; }
.picker__panel h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
.picker__row { display: grid; gap: 6px; }
.picker__row .label { font-size: .72rem; }
.picker__step { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.picker__step strong { font-family: var(--f-display); font-weight: 500; font-size: 1.2rem; color: var(--head); }
.picker__panel[hidden] { display: none !important; }
.panel-in { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: .2; transform: translateY(10px) rotate(-.4deg); } to { opacity: 1; transform: none; } }
.side-link { margin-top: 26px; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .picker { grid-template-columns: 1fr; } .picker__panel { position: static; } }

/* Wolf's Way */
.way__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; position: relative; }
.way__steps::before { content: ""; position: absolute; left: 23px; right: 23px; top: 27px; height: 1px; background: linear-gradient(90deg, var(--gold) var(--wp, 0%), rgba(236,230,219,.15) var(--wp, 0%)); }
.way__step { display: grid; gap: 10px; align-content: start; cursor: pointer; padding-top: 4px; min-width: 0; }
.way__dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid rgba(217,185,136,.55); font-family: var(--f-mono); font-size: .9rem; color: var(--gold-lt); transition: background-color .4s, color .4s, transform .4s var(--ease), box-shadow .4s; position: relative; z-index: 1; }
.way__step h3 { font-size: 1.22rem; }
.way__step p { font-size: .95rem; color: var(--muted); transition: color .4s; }
.way__step.is-active .way__dot { background: var(--gold); color: #17140F; transform: scale(1.08); box-shadow: 0 0 0 8px rgba(201,160,97,.16); }
.way__step.is-active p { color: var(--text); }
.way__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.way__foot .note { font-size: 2rem; }
@media (max-width: 1000px) { .way__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } .way__steps::before { display: none; } }
@media (max-width: 560px) { .way__steps { grid-template-columns: 1fr; gap: 0; } .way__step { grid-template-columns: 46px 1fr; column-gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); } .way__step:first-child { border-top: 0; } .way__dot { grid-row: span 2; } }

/* list od Adriana */
.letter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.letter__side { display: grid; gap: 18px; position: sticky; top: 110px; }
.letter__avatar { width: 128px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid rgba(236,230,219,.15); }
.letter__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.letter__body { font-family: var(--f-display); font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.6; max-width: 40em; padding: clamp(28px, 4.5vw, 60px); transform: rotate(-.6deg); transition: transform .8s var(--ease); }
.letter__body:hover { transform: rotate(0); }
.letter__body p + p { margin-top: 1em; }
.letter__hello { font-family: var(--f-hand); font-size: 2.3rem; color: var(--rust); line-height: 1; margin-bottom: .4em !important; }
.sign { margin-top: 1.4em; display: grid; gap: 2px; }
.sign__name { font-family: var(--f-hand); font-size: 3.1rem; line-height: .9; color: var(--head); transform: rotate(-3deg); transform-origin: left; display: inline-block; }
.sign__role { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .letter { grid-template-columns: 1fr; } .letter__side { position: static; grid-template-columns: auto 1fr; align-items: center; } .letter__body { transform: none; } }

/* kontakt (pasek na dole) */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cta__copy { display: grid; gap: 18px; }
.cta__copy p { font-size: 1.1rem; max-width: 30em; }
.contacts { display: grid; border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact__k { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact__v { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--head); text-decoration: none; word-break: break-word; }
a.contact__v:hover { color: var(--gold-lt); }
.copy { background: none; border: 1px solid var(--line); color: var(--muted); font: 500 .74rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 9px 12px; border-radius: 2px; cursor: pointer; transition: color .2s, border-color .2s; white-space: nowrap; }
.copy:hover, .copy.is-done { color: var(--gold-lt); border-color: var(--gold-lt); }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact { grid-template-columns: 1fr auto; } .contact__k { grid-column: 1 / -1; } }

/* stopka */
.site-footer { background: linear-gradient(rgba(20,30,37,0), var(--bg-deep) 140px); color: var(--muted); padding-block: 140px 36px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.footer__grid h4 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 14px; font-weight: 500; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__grid a { text-decoration: none; color: #CFC8BC; }
.footer__grid a:hover { color: var(--gold-lt); }
.footer__motto { font-family: var(--f-display); font-size: 1.25rem; color: var(--head); margin-top: 16px; max-width: 22em; line-height: 1.35; }
.footer__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* drabina usług */
.ladder { display: grid; }
.rung { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, .9fr); gap: 20px 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.rung:last-child { border-bottom: 1px solid var(--line); }
.rung__lvl { display: grid; gap: 6px; align-content: start; }
.rung__bar { height: 4px; background: rgba(236,230,219,.1); position: relative; overflow: hidden; margin-top: 6px; }
.rung__bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold), var(--rust)); width: var(--w, 20%); }
.rung__when { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.rung h3 { margin-bottom: 10px; }
.rung__keep { background: var(--card); border: 1px solid var(--line); padding: 18px 20px; align-self: start; transition: border-color .5s, background-color .5s; }
.rung__keep .label { font-size: .7rem; margin-bottom: 8px; display: block; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 5px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
@media (max-width: 900px) { .rung { grid-template-columns: 1fr; } }

/* trzy kompetencje */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.trio > div { padding: 28px; display: grid; gap: 14px; align-content: start; min-width: 0; background: var(--card); border: 1px solid var(--line); transition: border-color .5s; }
.trio .swatch { width: 34px; height: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-family: var(--f-mono); font-size: .74rem; padding: 5px 9px; border: 1px solid var(--line); color: var(--text); border-radius: 2px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* sekwencja kroków */
.steps { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--gold), var(--rust)); opacity: .5; }
.steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; padding: 22px 0; align-items: start; }
.steps .way__dot { color: var(--gold-lt); border-color: var(--gold); }
.steps h3 { font-size: 1.3rem; margin-top: 8px; }
.steps p { margin-top: 10px; }
.steps .res { color: var(--head); font-weight: 600; padding-left: 14px; border-left: 2px solid var(--gold); }
@media (max-width: 760px) { .steps li { grid-template-columns: 46px minmax(0, 1fr); } .steps li > :nth-child(3) { grid-column: 2; } }

/* siatki ogólne */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }
.item { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); min-width: 0; }
.item h3 { font-size: 1.28rem; }
.item p { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); padding: 26px; display: grid; gap: 12px; align-content: start; min-width: 0; transition: border-color .4s, transform .4s var(--ease); }
.card:hover { transform: translateY(-3px); }
.tag { display: inline-block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }

/* granice */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line); padding: 0; margin: 0; }
.limits li { list-style: none; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; }
.limits li::before, .limits li::after { content: ""; position: absolute; left: 6px; top: 1.55em; width: 14px; height: 1.5px; background: var(--rust); transform: rotate(45deg); }
.limits li::after { transform: rotate(-45deg); }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

/* wykres projektów */
.chart { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) 96px; gap: 18px; align-items: center; text-decoration: none; color: inherit; padding: 6px 0; }
.bar__who { display: grid; line-height: 1.25; }
.bar__who strong { font-weight: 600; color: var(--head); }
.bar__who span { font-size: .9rem; color: var(--muted); }
.bar__track { height: 22px; background: rgba(236,230,219,.06); position: relative; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) / 5 * 100%); background: linear-gradient(90deg, var(--gold-dk), var(--gold-lt)); transform-origin: left; transition: transform 1.1s var(--ease); }
.bar:hover .bar__fill { background: linear-gradient(90deg, #A2522B, var(--rust)); }
.bar__val { font-family: var(--f-display); font-size: 1.4rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--head); }
.axis { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr) 96px; gap: 18px; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.axis__ticks { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
@media (max-width: 760px) { .bar, .axis { grid-template-columns: minmax(0, 1fr) 76px; } .bar__who { grid-column: 1 / -1; } .axis > :first-child { display: none; } }
.case { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 40px; padding: 36px 0; border-top: 1px solid var(--line); }
.case__num { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--head); font-variant-numeric: tabular-nums; border-left: 2px solid transparent; transition: border-color .5s, padding .5s var(--ease); }
.case__num.is-near { border-left-color: var(--gold); padding-left: 14px; }
.case__num small { display: block; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.case h3 { margin-bottom: 10px; }
.case p { max-width: 42em; }
@media (max-width: 700px) { .case { grid-template-columns: 1fr; } }

/* oś czasu */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 100px 36px minmax(0, 1fr); padding: 14px 0; align-items: start; }
.timeline .when { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); padding-top: 4px; text-align: right; }
.timeline .pin { width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); justify-self: center; margin-top: 7px; position: relative; z-index: 1; transition: background-color .3s, transform .3s; }
.timeline li:hover .pin, .timeline li.is-now .pin { background: var(--gold); transform: scale(1.25); }
.timeline li.is-start .pin { border-color: var(--rust); }
.timeline strong { font-family: var(--f-display); font-weight: 500; font-size: 1.22rem; display: block; color: var(--head); }
.timeline p { color: var(--muted); font-size: .98rem; }
@media (max-width: 560px) { .timeline::before { left: 12px; } .timeline li { grid-template-columns: 26px minmax(0, 1fr); } .timeline .when { grid-column: 2; grid-row: 1; text-align: left; } .timeline .pin { grid-column: 1; grid-row: 1 / span 2; justify-self: start; margin-left: 7px; } .timeline .what { grid-column: 2; } }

/* szkolenia */
.day { display: grid; gap: 14px; }
.day > * { min-width: 0; }
.day__bar { display: flex; height: 54px; gap: 2px; }
.day__bar > div { position: relative; display: grid; align-content: center; padding: 0 10px; font-family: var(--f-mono); font-size: .72rem; overflow: hidden; white-space: nowrap; min-width: 0; transform-origin: left; transition: transform .9s var(--ease); }
.day__bar .w { background: #2B3C48; color: var(--head); border-top: 2px solid var(--gold); }
.day__bar .b { background: transparent; color: var(--muted); border: 1px dashed rgba(236,230,219,.25); }
.day__bar .v { background: #3A3328; color: var(--head); border-top: 2px solid var(--rust); }
.day__scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
@media (max-width: 640px) { .day__bar { height: 64px; } .day__bar > div { padding: 0 4px; font-size: .62rem; white-space: normal; line-height: 1.2; } .day__bar .b { font-size: 0; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.fact { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fact strong { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--head); font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { background: none; border: 1px solid var(--line); padding: 9px 14px; font: 500 .9rem/1 var(--f-body); color: var(--text); border-radius: 2px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--gold-lt); }
.filter[aria-pressed="true"] { background: var(--gold); color: #17140F; border-color: var(--gold); }
.progs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.prog { background: var(--card); border: 1px solid var(--line); padding: 24px; display: grid; gap: 10px; align-content: start; transition: transform .3s var(--ease), border-color .3s; min-width: 0; }
.prog:hover { transform: translateY(-3px); border-color: rgba(217,185,136,.4); }
.prog[hidden] { display: none !important; }
.prog__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.prog__dur { font-family: var(--f-mono); font-size: .8rem; color: var(--gold-lt); border: 1px solid rgba(217,185,136,.35); padding: 3px 8px; }
.prog h3 { font-size: 1.28rem; }
.prog p { color: var(--muted); font-size: .98rem; }
.prog--own { background: var(--paper); border-color: var(--paper); --head: #1E2A33; --muted: #5E6A73; --rust: #A2522B; }
.prog--own .prog__dur { background: #B4884A; color: #17140F; border-color: #B4884A; }
@media (max-width: 960px) { .progs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .progs { grid-template-columns: 1fr; } }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .num { font-family: var(--f-mono); font-size: .86rem; color: var(--gold); }
.acc summary h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); transition: color .2s; }
.acc summary .cnt { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.acc summary .cnt::after { content: ""; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease); }
.acc details[open] summary .cnt::after { transform: rotate(45deg); }
.acc summary:hover h3 { color: var(--gold-lt); }
.topics { list-style: none; margin: 0; padding: 0 0 26px 72px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.topics li { display: grid; gap: 4px; min-width: 0; }
.topics strong { font-weight: 600; color: var(--head); }
.topics span { color: var(--muted); font-size: .97rem; }
.topics .aside { grid-column: 1 / -1; background: rgba(162,82,43,.12); padding: 16px 18px; border-left: 3px solid var(--rust); }
.topics .aside span { color: var(--text); }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; padding-left: 0; } .acc summary { grid-template-columns: 40px minmax(0, 1fr); } .acc summary .cnt { grid-column: 2; } }

/* opinie */
.score { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.dial { width: 190px; height: 190px; position: relative; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 7; }
.dial .bg { stroke: var(--line); }
.dial .fg { stroke: var(--gold-lt); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.dial__v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial__v strong { font-family: var(--f-display); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--head); }
.dial__v span { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); letter-spacing: .1em; }
@media (max-width: 640px) { .score { grid-template-columns: 1fr; gap: 24px; } }

/* kontakt: składanie wiadomości */
.composer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field legend { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font: 400 1.02rem/1.5 var(--f-body); color: var(--head); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,160,97,.18); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; left: 0; top: 0; width: 1px; height: 1px; }
.seg label { font-family: var(--f-body); font-size: .94rem; letter-spacing: 0; text-transform: none; color: var(--text); border: 1px solid var(--line); padding: 10px 14px; border-radius: 2px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.seg input:checked + label { background: var(--gold); color: #17140F; border-color: var(--gold); }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.mail { padding: clamp(22px, 3vw, 34px); position: sticky; top: 100px; display: grid; gap: 16px; transform: rotate(.5deg); }
.mail__row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; font-size: .95rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mail__row span:first-child { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.mail__body { white-space: pre-wrap; font-family: var(--f-display); font-size: 1.08rem; line-height: 1.6; min-height: 160px; }
.mail__hint { font-size: .86rem; color: var(--muted); }
.mail .copy { border-color: var(--line); color: var(--muted); }
.mail .copy:hover, .mail .copy.is-done { color: #A2522B; border-color: #A2522B; }
@media (max-width: 860px) { .composer { grid-template-columns: 1fr; } .mail { position: static; transform: none; } }
.dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-top: 1px solid var(--line); margin: 0; }
.dl dt, .dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 15px; }

/* drobne */
.box { background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3vw, 34px); transition: border-color .5s; }
.box.sheet { border-color: transparent; }
.box--sand { background: rgba(38, 53, 64, .92); }
.books { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.books li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.books li span:last-child { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); white-space: nowrap; }
.books li:first-child span:first-child { font-family: var(--f-display); font-size: 1.2rem; color: var(--head); }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plain li { padding-left: 18px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1.5px; background: var(--gold); }
.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.mt-m { margin-top: 28px; }

/* lekki ruch przy przewijaniu */
[data-drift] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
