/* Osobna warstwa NEW. Bez klas afx-1…6 nie modyfikuje wyglądu bazowego. */
[data-fx-block][hidden], .afx-constellation[hidden] { display: none !important; }
.afx-section { --afx-gold: #b39348; --afx-ink: #30241e; margin-block: 0 !important; padding: 100px 32px; box-sizing: border-box; scroll-margin-top: 100px; }
.afx-section *, .afx-companies * { box-sizing: border-box; }
.afx-inner { max-width: 1104px; margin-inline: auto; }
.afx-section h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.035em; margin: 18px 0 24px; color: inherit; }
.afx-section h3 { font-size: 26px; line-height: 1.2; margin: 20px 0 14px; color: inherit; }
.afx-section p { line-height: 1.65; }
.afx-section a { color: inherit; font-weight: 700; text-underline-offset: 5px; }
.afx-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.afx-intro { font-size: 20px; max-width: 640px; }
.afx-note { font-size: 13px; opacity: .85; }
.afx-section :is(button, a):focus-visible, .afx-companies button:focus-visible { outline: 3px solid #977329; outline-offset: 5px; }
/* 1. Sieć za treścią: bez przechwytywania kliknięć. */
.afx-1 .afx-hero-host { position: relative; isolation: isolate; overflow: hidden; }
.afx-1 .afx-hero-host > :not(.afx-constellation) { position: relative; z-index: 1; }
.afx-1 .afx-hero-host::before { content: none; }
.afx-1 .afx-hero-host[data-fx-hero="editorial"]::before { content: ""; opacity: 1; background: radial-gradient(ellipse at 85% 30%, #b393480d, transparent 65%); }
.afx-1 .afx-hero-host[data-fx-hero="quiet"]::after { content: none; }
.afx-constellation { position: absolute; inset: 0; margin: 0 !important; max-width: none !important; pointer-events: none; z-index: 0; }
.afx-constellation svg { width: 100%; height: 100%; opacity: .64; }
.afx-1 [data-fx-hero="service"] .afx-constellation svg { opacity: .5; }
.afx-1 [data-fx-hero="product"] .afx-constellation svg { opacity: .32; }
.afx-network { stroke: #bda566; stroke-width: .8; fill: none; opacity: .19; }
.afx-nodes { fill: #d6bd7c; opacity: .38; }
.afx-signal { fill: none; stroke: #e1c785; stroke-width: 1.7; stroke-dasharray: 70 1500; opacity: .7; }
.afx-orbits { stroke: #ba9d58; stroke-width: .6; opacity: .35; transform-origin: 1170px 420px; }
/* 2. Skupienie na rzeczywistym ekranie. */
.afx-showcase { background: #211b17; color: #f7f3e9; }
.afx-showcase .afx-eyebrow { color: #d1b777; }
.afx-showcase__layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 64px; align-items: start; margin-top: 60px; }
.afx-step { min-height: 350px; padding: 32px 0 60px; border-top: 1px solid #69563c; opacity: .6; transition: opacity .3s; }
.afx-step--active { opacity: 1; }
.afx-step p { color: #d1c6b9; font-size: 17px; }
.afx-step__button { display: flex; align-items: center; gap: 16px; color: #d8bf80; border: 0; background: none; width: 100%; padding: 0; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.afx-step__button span:first-child { font-family: 'Noto Serif', serif; font-size: 36px; font-weight: 400; }
.afx-step__button span:last-child { margin-left: auto; }
.afx-stage { position: sticky; top: 125px; margin: 0; min-width: 0; }
.afx-stage__bar { display: flex; justify-content: space-between; gap: 12px; padding: 17px 22px; border: 1px solid #6b593a; border-bottom: 0; color: #dfc68c; background: #30241e; font-size: 13px; letter-spacing: .06em; }
.afx-stage__screen { aspect-ratio: 2; overflow: hidden; border: 1px solid #6b593a; background: #f4f3f0; box-shadow: 0 30px 75px #0005; }
/* Kadry i wyróżnienia mierzone na źródle 1600 × 1000; wszystkie dotyczą trzeciego wiersza. */
.afx-showcase [data-crop="0"] { --audit-scale: 2.325581; --audit-x: -7%; --audit-y: 0%; --focus-x: 8%; --focus-y: 5.6%; --focus-w: 36.8%; --focus-h: 12.6%; }
.afx-showcase [data-crop="1"] { --audit-scale: 2.941176; --audit-x: -58.5%; --audit-y: -2.5%; --focus-x: 62.2%; --focus-y: 5.6%; --focus-w: 26.8%; --focus-h: 20.6%; }
.afx-showcase [data-crop="2"] { --audit-scale: 2.5; --audit-x: -5%; --audit-y: -5%; --focus-x: 7.8%; --focus-y: 17.4%; --focus-w: 34.6%; --focus-h: 7.6%; }
.afx-audit-plane { position: relative; width: 100%; aspect-ratio: 1.6; transform-origin: 0 0; transform: scale(var(--audit-scale)) translate(var(--audit-x), var(--audit-y)); transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.afx-audit-plane img { display: block; width: 100%; max-width: none; height: auto; }
.afx-audit-focus { position: absolute; left: var(--focus-x); top: var(--focus-y); width: var(--focus-w); height: var(--focus-h); border: 1px solid #b39348; box-shadow: 0 0 0 2000px #211b17b8; pointer-events: none; transition: left 700ms, top 700ms, width 700ms, height 700ms; }
.afx-stage__focus-label { margin: 0; padding: 14px 18px; border: 1px solid #6b593a; border-top: 0; color: #ead8ad; font-size: 14px; background: #30241e; }
.afx-stage figcaption { font-size: 12px; color: #d1c6b9; padding-top: 18px; }
.afx-stage > a { display: inline-block; margin-top: 16px; font-size: 15px; }
.afx-mobile-crop, .afx-mobile-hint { display: none; }
/* 3. Rzeczywisty graf z powiększeniem na tej samej stronie. */
.afx-graph { background: #f3f0e8; color: var(--afx-ink); }
.afx-graph__heading { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: end; }
.afx-graph__heading > p { font-size: 18px; }
.afx-graph__preview { margin: 32px 0 0; }
.afx-graph__open { display: block; padding: 16px; background: #fff; border: 1px solid #d6c9ad; box-shadow: 0 16px 40px #30241e0c; text-decoration: none; cursor: zoom-in; }
.afx-graph__open img { display: block; width: 100%; height: auto; }
.afx-graph__open-label { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 16px 20px; background: #30241e; color: #f4e7c5; font-size: 16px; }
.afx-graph__preview figcaption { padding-top: 14px; color: #625748; font-size: 13px; }
.afx-graph-dialog { width: min(1400px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #b39348; background: #fffdf8; color: #30241e; box-sizing: border-box; }
.afx-graph-dialog::backdrop { background: #17110bd9; }
.afx-graph-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.afx-graph-dialog__heading h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: normal; }
.afx-graph-dialog__heading button { font: inherit; min-height: 44px; padding: 10px 16px; border: 1px solid #907336; background: #30241e; color: #f4e7c5; cursor: pointer; }
.afx-graph-dialog > p { font-size: 14px; }
.afx-graph-dialog__image { overflow: auto; max-height: calc(100dvh - 220px); border: 1px solid #ddd4c3; background: #fff; }
.afx-graph-dialog__image img { display: block; width: 100%; min-width: 1100px; max-width: none; height: auto; }
.afx-graph-dialog__image:focus-visible { outline: 3px solid #977329; outline-offset: 3px; }
/* 4. Trzy warstwy z prawdziwych dokumentów. */
.afx-documents { background: #f5f1e7; color: #30241e; overflow: hidden; }
.afx-documents__layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.afx-documents__layout > div > p:not(.afx-eyebrow):not(.afx-note) { font-size: 19px; }
.afx-documents__layout .afx-note { margin-top: 30px; }
.afx-doc-stack { margin: 0; min-width: 0; perspective: 1400px; }
.afx-doc-stack__papers { position: relative; aspect-ratio: 1; }
.afx-doc-stack__back, .afx-doc-stack__front { position: absolute; width: 58%; box-shadow: 0 20px 38px #30241e22, 0 2px 4px #30241e18; transition: transform 1s cubic-bezier(.2,.7,.2,1); background: white; border: 1px solid #e0d9ca; }
.afx-doc-stack img { width: 100%; height: auto; display: block; }
.afx-doc-stack__back { left: 3%; top: 12px; transform: rotate(-9deg) translateY(30px); }
.afx-doc-stack__front { right: 2%; top: 55px; transform: rotate(7deg) translateY(40px); }
.afx-doc-stack__detail { position: absolute; bottom: 0; left: 6%; width: 87%; background: #fff; box-shadow: 0 15px 40px #30241e30; border: 1px solid #c8b88d; transform: translateY(20px); transition: transform 1s .12s; }
.afx-doc-stack__detail > span { display: block; padding: 10px 14px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; background: #30241e; color: #e1cb92; }
.afx-doc-stack__detail > div { overflow: hidden; aspect-ratio: 3.6; }
.afx-doc-stack__detail img { transform: translateY(-37%); }
.afx-doc-stack figcaption { font-size: 12px; text-align: center; margin-top: 28px; }
.afx-documents.afx-in-view .afx-doc-stack__back { transform: rotate(-7deg) translateY(0); }
.afx-documents.afx-in-view .afx-doc-stack__front { transform: rotate(5deg) translateY(0); }
.afx-documents.afx-in-view .afx-doc-stack__detail { transform: translateY(0); }
/* 5. Ruch ma ten sam język na kartach i przyciskach. */
.afx-5 .afx-card { position: relative; transition: box-shadow .25s, transform .25s; }
.afx-5 .afx-card::after { content: ''; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, #b39348, #e4d3a0); transform: scaleX(0); transform-origin: left; transition: transform .3s; pointer-events: none; }
.afx-5 .afx-card:is(:hover,:focus-within)::after { transform: scaleX(1); }
.afx-5 .afx-card:is(:hover,:focus-within) { box-shadow: 0 14px 34px #30241e12; transform: translateY(-3px); }
.afx-5 main .wp-block-button__link { transition: box-shadow .2s, transform .2s; }
.afx-5 main .wp-block-button__link:is(:hover,:focus-visible) { box-shadow: 0 8px 24px #ae90482e; transform: translateY(-2px); }
.afx-5 .afx-card .auraco-ikona { transition: transform .3s; }
.afx-5 .afx-card:is(:hover,:focus-within) .auraco-ikona { transform: translateY(-3px) rotate(-4deg); }
.afx-5 .afx-card :is(.auraco-strzalka,.auraco-link > span) { display: inline-block; transition: transform .25s; }
.afx-5 .afx-card:is(:hover,:focus-within) :is(.auraco-strzalka,.auraco-link > span) { transform: translateX(4px); }
/* 6. Sześć części; opis sprawy pozostaje bez zmian. */
.afx-6 .afx-result-host > .auraco-wdrozenie__liczby { display: none; }
.afx-companies { margin: 24px 0 28px; scroll-margin-top: 110px; }
.afx-companies__heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.afx-companies__heading > strong, .afx-companies__one { font: 400 48px/1 var(--wp--preset--font-family--serif); color: #dfc890; }
.afx-companies__heading > span { font-size: 16px; color: #eadfc9; }
.afx-companies__diagram { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.afx-companies__buildings { stroke: #cfb879; stroke-width: 1.5; }
.afx-companies__buildings rect { fill: #3c3025; }
.afx-companies__connections { stroke: #9a8250; stroke-width: 1; }
.afx-companies__flow { stroke: #e2ca8b; stroke-width: 1.5; }
.afx-companies__register { border: 1px solid #a28a53; background: #3c2e23; padding: 18px 22px; display: flex; gap: 20px; align-items: center; }
.afx-companies__register > div { display: grid; gap: 5px; }
.afx-companies__register > div > strong { color: #f4e7c5; font-size: 20px; line-height: 1.25; }
.afx-companies__register > div > span { color: #d5c7aa; font-size: 14px; line-height: 1.4; }
.afx-companies figcaption { margin-top: 12px; color: #c6b896; font-size: 12px; text-align: center; }
@keyframes afx-travel { to { stroke-dashoffset: -1570; } }
@keyframes afx-pulse { 0%,100% { opacity: .2; } 50% { opacity: .65; } }
@keyframes afx-connect { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .afx-1 [data-fx-hero="home"].afx-in-view .afx-signal { animation: afx-travel 12s linear infinite; }
  .afx-1 [data-fx-hero="home"].afx-in-view .afx-orbits { animation: afx-pulse 8s ease-in-out infinite; }
  .afx-6 .afx-companies.afx-connected .afx-companies__flow path { stroke-dasharray: 1; animation: afx-connect 1.2s ease-out both; }
}
@media (max-width: 900px) {
  .afx-section { padding: 64px 24px; scroll-margin-top: 140px; }
  .afx-showcase__layout, .afx-graph__heading, .afx-documents__layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .afx-showcase__layout { margin-top: 32px; }.afx-stage { display: none; }
  .afx-step { min-height: 0; padding: 26px 0 38px; opacity: 1; }
  .afx-mobile-crop { display: block; overflow: hidden; aspect-ratio: 2; background: #f4f3f0; border: 1px solid #6b593a; margin-top: 24px; }
  .afx-mobile-hint { display: block; color: #d1c6b9; font-size: 12px; margin-top: 10px; }
  .afx-step__button span:last-child { display: none; }
  .afx-graph__heading { gap: 0; }
  .afx-graph__open { padding: 8px; }
  .afx-graph-dialog { padding: 16px; }
  .afx-graph-dialog__heading h2 { font-size: 20px; }
  .afx-doc-stack { max-width: 540px; width: 100%; margin-inline: auto; }.afx-doc-stack__papers { aspect-ratio: .95; }
  .afx-constellation svg { opacity: .3; }
  .afx-1 [data-fx-hero="service"] .afx-constellation svg { opacity: .25; }
  .afx-1 [data-fx-hero="product"] .afx-constellation svg { opacity: .18; }
}
@media (max-width: 380px) {
  .afx-companies__register { padding: 16px; gap: 14px; }
  .afx-companies__register > div > strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.afx-constellation,.afx-section,.afx-companies) *, .afx-5 main :is(.afx-card,.auraco-ikona,.auraco-strzalka,.wp-block-button__link), .afx-5 .afx-card::after { animation: none !important; transition: none !important; }
  .afx-step { opacity: 1; }.afx-doc-stack__back { transform: rotate(-7deg); }.afx-doc-stack__front { transform: rotate(5deg); }.afx-doc-stack__detail { transform: none; }
  .afx-5 .afx-card:is(:hover,:focus-within), .afx-5 main .wp-block-button__link:is(:hover,:focus-visible), .afx-5 .afx-card:is(:hover,:focus-within) .auraco-ikona { transform: none; }
}
@media print { .afx-constellation { display: none !important; }.afx-stage { position: static; }.afx-step { min-height: 0; opacity: 1; } }
