/* ==========================================================================
   Adrian Furman — Design System "Rockefeller"
   Deep navy + ivory + brass. Serif display (Cormorant) + Inter UI.
   ========================================================================== */

/* ---------- 0. Kroje pisma ----------------------------------------------
   Hostowane u nas, nie z Google Fonts. Powody: brak przekazywania adresu IP
   odwiedzającego do Google (temat RODO opisany w polityce prywatności) oraz
   krótsza ścieżka krytyczna — zamiast DNS i TLS do dwóch obcych hostów, a potem
   arkusza, który dopiero wskazuje pliki, przeglądarka pobiera fonty z tego
   samego serwera co resztę strony.

   `latin-ext` jest obowiązkowy: polskie znaki diakrytyczne (ą, ć, ę, ł, ń, ó,
   ś, ź, ż) leżą właśnie tam. `unicode-range` sprawia, że przeglądarka pobiera
   wyłącznie te podzbiory, których naprawdę używa.

   Inter prosty jest krojem ZMIENNYM — jeden plik obsługuje wagi 400, 500 i 600,
   stąd `font-weight: 100 900`. Google podaje go pod trzema adresami, ale to
   bajt w bajt ten sam plik; rozdzielone deklaracje kazałyby przeglądarce
   pobrać go trzy razy. Kursywa Inter i oba warianty Cormoranta to instancje
   statyczne w wadze 400 i tak są zadeklarowane.
   ------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Base */
  --ink-950: #050B14;
  --ink-900: #08111E;
  --ink-850: #0B1828;
  --ink-800: #0F2135;
  --ink-700: #17304A;
  --ink-600: #1F3D5C;

  --ivory:   #F6F3EC;
  --ivory-2: #ECE7DB;
  --ivory-3: #DED7C6;

  --brass:        #C8A45C;
  --brass-bright: #E4C88C;
  /* Pogłębiony 14.09: przy #96773A drobne wersaliki (eyebrow, kategoria kafelka)
     dawały 3.79:1 na kości słoniowej. Sekcja analiz jest teraz jasna i to ona
     jest czytana, więc akcent musi trzymać AA dla małego tekstu — 5.1:1. */
  --brass-deep:   #7E632F;

  --text-on-dark:        #E9E5DC;
  --text-on-dark-muted:  #93A2B6;
  --text-on-light:       #14202F;
  --text-on-light-muted: #55637A;

  --line-dark:  rgba(233, 229, 220, .14);
  --line-light: rgba(20, 32, 47, .14);

  /* Notowania — kontrast AA na tle --ivory */
  --up:   #16653F;
  --down: #A32620;

  /* Type */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec-y: clamp(72px, 10vw, 148px);
  --hdr-h: 70px;       /* wysokość przyklejonego headera */
  --anchor-y: 116px;   /* header + ok. 40 px oddechu nad nadtytułem */

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text-on-dark);
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* Stały header zasłaniałby początek sekcji przy skoku do kotwicy.
   Sekcje mają duży górny padding — bez odjęcia go skok z menu zatrzymywał
   się na pustym tle, a nadtytuł lądował w połowie ekranu (uwaga klienta
   25.09). Teraz każda kotwica stawia nadtytuł tuż pod paskiem menu. */
[id] { scroll-margin-top: var(--anchor-y); }
.section[id] { scroll-margin-top: calc(var(--anchor-y) - var(--sec-y)); }
/* Pasek notowań nie ma nadtytułu — dosuwa się wprost pod header. Kotwica
   z `id` nie może mieć klasy .rv: przesunięcie z animacji wjazdu psuje
   wyliczenie celu skoku. */
.ticker[id] { scroll-margin-top: var(--hdr-h); }

/* Widoczne tylko dla czytników ekranu — np. „Rynek:" przed skrótem PL / USA. */
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 3. Layout primitives ----------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-y); position: relative; }

/* Sekcje zmieniają tło (analizy jasne, droga rozwoju ciemna — zmiana z 14.09),
   więc komponenty w środku nie mogą zakładać koloru podłoża. Każda sekcja
   ustawia własny zestaw tokenów, a kafelki, oś czasu i filtry biorą je stąd. */
.section--light {
  background: var(--ivory); color: var(--text-on-light);
  --surface: var(--ivory);
  --surface-lift: #FFFFFF;
  --surface-alt: #EFEADE;
  --line: var(--line-light);
  --txt: var(--text-on-light);
  --txt-muted: var(--text-on-light-muted);
  --accent: var(--brass-deep);
  --cat-biz: #2C5F84;
}
.section--dark {
  background: var(--ink-900); color: var(--text-on-dark);
  --surface: var(--ink-900);
  --surface-lift: var(--ink-800);
  --surface-alt: var(--ink-850);
  --line: var(--line-dark);
  --txt: var(--text-on-dark);
  --txt-muted: var(--text-on-dark-muted);
  --accent: var(--brass);
  --cat-biz: #7FA8C9;
}

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass); display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; flex: none; }
.section--light .eyebrow { color: var(--brass-deep); }

.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.012em;
}
.h-sec { font-size: clamp(32px, 4.6vw, 56px); }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.75; color: var(--text-on-dark-muted); max-width: 62ch; }
.section--light .lede { color: var(--text-on-light-muted); }
.section--dark .lede { color: var(--text-on-dark-muted); }

.rule { height: 1px; background: var(--line-dark); border: 0; margin: 0; }
.section--light .rule { background: var(--line-light); }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px; border-radius: 2px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: all .4s var(--ease); position: relative;
}
.btn--primary { background: var(--brass); color: #16110A; }
.btn--primary:hover { background: var(--brass-bright); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(200, 164, 92, .55); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--text-on-dark); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-bright); transform: translateY(-2px); }
.btn--dark { background: var(--ink-900); color: var(--ivory); }
.btn--dark:hover { background: var(--ink-800); transform: translateY(-2px); }
.btn .arw { transition: transform .4s var(--ease); }
.btn:hover .arw { transform: translateX(5px); }

.link-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass); padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), gap .35s var(--ease);
}
.link-more:hover { border-color: currentColor; gap: 16px; }
.section--light .link-more { color: var(--brass-deep); }

/* ---------- 5. Header ---------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: 1px solid transparent;
  padding-block: 22px;
}
.hdr.is-stuck {
  background: rgba(5, 11, 20, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
  padding-block: 14px;
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 42px; height: 42px; flex: none; border: 1px solid var(--brass);
  display: grid; place-items: center; font-family: var(--f-display);
  font-size: 18px; letter-spacing: .04em; color: var(--brass-bright);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 13.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.brand__sub { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-on-dark-muted); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
/* Do prawej — ramka „Kontakt" zamyka rząd tak jak wcześniej przycisk. */
.hdr__in > .nav { margin-left: auto; }
.nav a { font-size: 13px; letter-spacing: .04em; white-space: nowrap; color: var(--text-on-dark-muted); transition: color .3s var(--ease); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: var(--brass); transition: width .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ivory); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--brass-bright); }
/* Kontakt jako zwykły kwadrat w ramce (życzenie klienta 25.09) — echo
   znaku marki po lewej, bez złotego wypełnienia. */
.nav .nav__cta {
  padding: 10px 18px; border: 1px solid var(--brass); border-radius: 0;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ivory); transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover, .nav .nav__cta.is-active { background: var(--brass); color: var(--ink-950); }

/* Logo musi zostać czytelne, gdy pełnoekranowe menu jest otwarte. */
.hdr__in > .brand { position: relative; z-index: 101; }

.hdr__side { display: flex; align-items: center; gap: 22px; }
/* W WP przełącznik języka bywa wyłączony — wtedy na desktopie zostaje sam
   ukryty burger, a pusty kontener odsuwałby nawigację od krawędzi o `gap`. */
@media (min-width: 1025px) { .hdr__side:has(> .burger:only-child) { display: none; } }
.lang { display: flex; gap: 8px; font-size: 11px; letter-spacing: .12em; color: var(--text-on-dark-muted); }
.lang b { color: var(--ivory); font-weight: 600; }
.lang span { opacity: .35; }

.burger { display: none; width: 40px; height: 40px; place-items: center; }
.burger i { display: block; width: 22px; height: 1px; background: var(--ivory); position: relative; transition: all .35s var(--ease); }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: var(--ivory); transition: all .35s var(--ease); }
.burger i::before { top: -7px; } .burger i::after { top: 7px; }
body.nav-open { position: fixed; inset: 0 0 auto 0; width: 100%; overflow: hidden; }
body.nav-open .burger i { background: transparent; }
body.nav-open .burger i::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger i::after { top: 0; transform: rotate(-45deg); }

/* ---------- 6. Hero ------------------------------------------------------ */
/* Baner NIE wymusza pełnej wysokości ekranu. Treść ma ok. 680 px, więc przy
   `min-height: 100svh` na wysokim monitorze zostawało kilkaset pikseli luzu,
   który musiał gdzieś wylądować — albo pod paskiem liczb, albo nad nim.
   Wysokość wyznacza teraz sama treść plus padding: na typowym laptopie baner
   i tak wypełnia ekran, a na wysokim po prostu się kończy, zamiast rozciągać
   odstępy. Zdjęcie nadal jest pełnokadrowe. */
.hero { position: relative; display: flex; align-items: center; padding-block: clamp(168px, 19vh, 226px) 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
/* Kadr celuje w twarz. Przy 22% czubek głowy wypadał ok. 60 px od górnej
   krawędzi banera, czyli za stałym nagłówkiem (87 px) — na desktopie ucinało
   Adrianowi głowę. 10% przesuwa kadr w górę na tyle, żeby głowa mieściła się
   pod nagłówkiem na każdej wysokości okna. */
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 10%; opacity: .55; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--ink-950) 4%, rgba(5,11,20,.94) 34%, rgba(5,11,20,.55) 56%, rgba(5,11,20,.35) 100%),
    linear-gradient(to top, var(--ink-950) 0%, transparent 34%);
}
.hero__grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__grid__in {
  height: 100%;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero__grid__in span { border-right: 1px solid var(--line-dark); opacity: .5; }
.hero__grid__in span:last-child { border-right: 0; }

.hero__in { position: relative; z-index: 2; width: 100%; }
.hero__kicker {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--brass);
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(18px, 2.6vh, 30px);
}
.hero__kicker::before { content: ""; width: 46px; height: 1px; background: currentColor; }
.hero h1 { font-family: var(--f-display); font-size: clamp(40px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -.02em; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--brass-bright); }
.hero__sub { margin-top: clamp(20px, 2.4vh, 30px); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; color: var(--text-on-dark-muted); max-width: 46ch; }
.hero__cta { margin-top: clamp(28px, 3.6vh, 44px); display: flex; flex-wrap: wrap; gap: 16px; }

.hero__stats {
  position: relative; z-index: 2; margin-top: clamp(40px, 6vh, 84px);
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero__stats li {
  padding: clamp(18px, 2.4vh, 26px) clamp(20px, 2vw, 28px) clamp(16px, 2vh, 24px) 0;
  border-right: 1px solid var(--line-dark);
}
.hero__stats li + li { padding-left: clamp(20px, 2vw, 28px); }
.hero__stats li:last-child { border-right: 0; }
.hero__stats b { display: block; font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--ivory); font-weight: 400; }
.hero__stats b i { font-style: normal; font-size: .52em; letter-spacing: .02em; color: var(--brass-bright); margin-left: .12em; }
.hero__stats span { display: block; margin-top: 10px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-dark-muted); }

/* ---------- 7. Pasek notowań (widget TradingView) ------------------------
   Widget wnosi własną typografię i kolory; `isTransparent` pozwala posadzić go
   na naszym tle, reszta stylowania jest po stronie TradingView i nie da się jej
   nadpisać (iframe). Stąd tylko rama, etykieta i podpis źródła — wszystko
   w jednym rzędzie, żeby taśma nie zostawiała pustego pasa pod sobą.
   Jasne tło od 25.09 (uwaga klienta: na ciemnym kursy były nieczytelne) —
   widget idzie wtedy w `colorTheme: light`. --ivory-2, a nie --ivory, żeby
   pasek nie zlewał się z jasną sekcją analiz tuż pod nim.
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--ivory-2); color: var(--text-on-light);
  --line: var(--line-light);
  --txt-muted: var(--text-on-light-muted);
  --accent: var(--brass-deep);
  border-block: 1px solid var(--line);
}
.ticker__in { display: flex; align-items: center; min-height: 64px; }
.ticker__lbl {
  flex: none; align-self: stretch; display: flex; align-items: center; gap: 12px;
  padding-inline: var(--gutter) clamp(18px, 2vw, 28px);
  border-right: 1px solid var(--line);
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
.ticker__lbl span { font-weight: 400; letter-spacing: .12em; color: var(--txt-muted); }
.ticker__tv { flex: 1 1 auto; min-width: 0; }
.ticker__tv .tradingview-widget-container__widget { min-height: 46px; }

/* Atrybucja TradingView — warunek darmowej licencji, więc zostaje widoczna,
   ale jako komórka po prawej, lustrzana do etykiety. */
.ticker__src {
  flex: none; align-self: stretch; display: flex; align-items: center;
  padding-inline: clamp(18px, 2vw, 28px) var(--gutter);
  border-left: 1px solid var(--line);
  font-size: 10px; letter-spacing: .06em; color: var(--txt-muted); white-space: nowrap;
}
.ticker__src a { border-bottom: 1px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease); }
.ticker__src a:hover { color: var(--text-on-light); border-bottom-color: currentColor; }

/* ---------- 7b. Pasek spółek --------------------------------------------- */
.trust { background: var(--ink-900); padding-block: clamp(16px, 2vh, 24px); }
.trust__list { display: flex; align-items: baseline; justify-content: space-between; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; }
.trust__list li { font-family: var(--f-display); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.3; letter-spacing: .02em; color: var(--text-on-dark); opacity: .62; transition: opacity .35s var(--ease), color .35s var(--ease); }
.trust__list li:hover { opacity: 1; color: var(--brass-bright); }
.trust__list a { border-bottom: 1px solid transparent; transition: border-color .35s var(--ease); }
.trust__list li:hover a { border-bottom-color: currentColor; }

/* ---------- 8. Grupa kapitałowa / timeline -------------------------------
   Kolory wyłącznie z tokenów sekcji (--surface, --line, --txt…), bo ta sekcja
   bywa raz jasna, raz ciemna.
   -------------------------------------------------------------------------- */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }

.eco { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(56px, 7vw, 96px); }
.eco__cell { background: var(--surface); padding: clamp(24px, 3vw, 38px); grid-column: span 4; display: flex; flex-direction: column; gap: 12px; transition: background .4s var(--ease); }
.eco__cell:hover { background: var(--surface-lift); }
.eco__cell--wide { grid-column: span 6; }
.eco__cell--full {
  grid-column: span 12; color: var(--text-on-dark);
  background: var(--ink-950) url("../img/texture-stone.jpg") right center/cover no-repeat;
  position: relative; isolation: isolate;
}
.eco__cell--full::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5,11,20,.97) 34%, rgba(5,11,20,.72) 100%);
}
.eco__cell--full:hover { background-color: var(--ink-950); }

.eco__yr {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--accent);
}
.eco__cell--full .eco__yr { color: var(--brass); }

/* Rynek, na którym działa dana organizacja — oznaczenia od klienta. */
.eco__geo {
  flex: none; padding: 3px 9px; border: 1px solid currentColor;
  font-size: 9.5px; letter-spacing: .14em; opacity: .8;
}

.eco__name { font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.eco__role { font-size: 14.5px; line-height: 1.6; color: var(--txt-muted); }
.eco__cell--full .eco__role { color: var(--text-on-dark-muted); }
.eco__tag { margin-top: auto; padding-top: 16px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-muted); }
.eco__cell--full .eco__tag { color: var(--brass); }

.tl { position: relative; display: grid; gap: 0; }
.tl::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl__item { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(30px, 4vw, 46px) 0 clamp(30px, 4vw, 46px) clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.tl__item:last-child { border-bottom: 0; }
.tl__item::before {
  content: ""; position: absolute; left: -4px; top: clamp(38px, 4.6vw, 56px);
  width: 9px; height: 9px; background: var(--surface); border: 1px solid var(--accent); border-radius: 50%;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.tl__item:hover::before { background: var(--brass); transform: scale(1.3); }
.tl__yr { font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1; color: var(--accent); }
.tl__yr small { display: block; margin-top: 12px; font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-muted); }
.tl__h { font-family: var(--f-display); font-size: clamp(23px, 2.5vw, 31px); line-height: 1.2; margin-bottom: 14px; }
.tl__p { font-size: 15.5px; line-height: 1.75; color: var(--txt-muted); max-width: 68ch; }
.tl__p + .tl__p { margin-top: 12px; }
.tl__link { margin-top: 18px; }

.arc { position: relative; margin-top: clamp(56px, 7vw, 96px); border: 1px solid var(--line); overflow: hidden; }
.arc img { width: 100%; height: clamp(240px, 34vw, 420px); object-fit: cover; filter: saturate(.75); }
.arc__cap { position: absolute; inset: auto 0 0 0; padding: clamp(28px, 3.4vw, 48px); background: linear-gradient(to top, rgba(5,11,20,.97) 12%, rgba(5,11,20,.82) 52%, transparent 100%); color: var(--text-on-dark); }
.arc__cap h3 { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 8px; }
.arc__cap p { font-size: 14.5px; color: var(--text-on-dark-muted); max-width: 60ch; }

/* ---------- 9. Analizy --------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button {
  padding: 11px 22px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--txt-muted); transition: all .35s var(--ease);
}
.filters button:hover { color: var(--txt); border-color: currentColor; }
.filters button[aria-selected="true"] { background: var(--brass); border-color: var(--brass); color: #16110A; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--surface); }
.card {
  background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: clamp(26px, 2.8vw, 36px);
  display: flex; flex-direction: column; gap: 16px; min-height: 268px;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.card:hover { background: var(--surface-lift); }
.card.is-hidden { display: none; }
.card__cat { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.card__cat.is-biz { color: var(--cat-biz); }
.card__t { font-family: var(--f-display); font-size: clamp(20px, 2.1vw, 26px); line-height: 1.25; }
.card__d { font-size: 14.5px; line-height: 1.65; color: var(--txt-muted); }
.card__f { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-muted); }
.card:hover .card__f .arw { transform: translateX(5px); color: var(--accent); }
.card__f .arw { transition: transform .4s var(--ease), color .4s var(--ease); }

.struct { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.struct li { background: var(--surface-alt); padding: clamp(22px, 2.4vw, 30px); display: flex; gap: 16px; align-items: flex-start; }
.struct b { font-family: var(--f-display); font-size: 26px; line-height: 1; color: var(--accent); flex: none; }
.struct span { font-size: 14.5px; line-height: 1.6; color: var(--txt-muted); }
.struct strong { display: block; color: var(--txt); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }

/* ---------- 10. Przełamanie / kontakt ------------------------------------
   Zamiast wyłączonej sekcji newslettera. Duże, realne zdjęcie na dole strony —
   narracja idzie od kapitału (hero) do przełamania wizerunku (tutaj).
   Style wyłączonego newslettera: docs/wylaczone/newsletter.html
   -------------------------------------------------------------------------- */
.reveal { background: var(--ink-950); overflow: hidden; }
.reveal__in {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px); align-items: center;
}
.reveal__fig {
  margin: 0; position: relative; isolation: isolate;
  border: 1px solid var(--line-dark);
}
.reveal__fig img {
  width: 100%; height: auto; aspect-ratio: 1 / 1.46; object-fit: cover; object-position: 50% 30%;
  filter: saturate(.88) contrast(1.03);
}
.reveal__fig::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(5,11,20,.5) 0%, transparent 42%);
}
.reveal__fig::before {
  content: ""; position: absolute; z-index: -1; inset: auto auto -20px -20px;
  width: 58%; height: 52%; border-left: 1px solid var(--brass); border-bottom: 1px solid var(--brass);
  opacity: .55;
}
.reveal__p { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.75; color: var(--text-on-dark-muted); max-width: 54ch; margin-top: 22px; }
.reveal__body .h-sec { max-width: 16ch; }
.reveal__contact { margin-top: clamp(30px, 4vw, 44px); padding-top: clamp(26px, 3vw, 34px); border-top: 1px solid var(--line-dark); }
.reveal__lbl { font-size: 13.5px; line-height: 1.65; color: var(--text-on-dark-muted); max-width: 44ch; margin-bottom: 20px; }
.reveal__contact .btn { text-transform: none; letter-spacing: .04em; font-size: 14px; }

/* ---------- 10b. Szablony WordPressa -------------------------------------
   Makieta była jednostronicowa. Poniżej to, czego potrzebują dopiero szablony
   Timbera: wpis, archiwum, strona, formularz i stronicowanie.
   -------------------------------------------------------------------------- */

/* Nagłówek jest przezroczysty, bo leży na ciemnym banerze. Na podstronach
   pierwsza sekcja bywa jasna — bez tła logo i menu znikają. Klasę dokłada
   motyw (inc/setup.php); świadomie nie `body:not(.home)`, bo statyczna makieta
   w korzeniu repozytorium nie ma klas WordPressa i złapałaby tę regułę. */
body.af-inner .hdr {
  background: rgba(5, 11, 20, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
body.af-inner main > .section:first-child { padding-top: clamp(120px, 14vh, 190px); }

.section--mid { padding-block: clamp(120px, 16vh, 200px) var(--sec-y); }

/* --- Wpis --------------------------------------------------------------- */
.post__head { max-width: 68ch; }
.post__t { font-size: clamp(30px, 4vw, 50px); margin-bottom: 20px; }
.post__head .lede { margin-bottom: 24px; }
.post__meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-muted);
}
.post__meta span { display: flex; align-items: center; gap: 22px; }
.post__meta span + span::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5; }

.post__fig { margin: clamp(36px, 5vw, 60px) 0 0; border: 1px solid var(--line); overflow: hidden; }
.post__fig img { width: 100%; height: clamp(220px, 30vw, 400px); object-fit: cover; }

.post__body { margin-top: clamp(40px, 5vw, 68px); max-width: 72ch; }

.post__disc {
  margin-top: clamp(44px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.65; color: var(--txt-muted); max-width: 78ch;
}

/* --- Treść z edytora ---------------------------------------------------- */
.prose { font-size: 16px; line-height: 1.78; color: var(--txt-muted); }
.prose > * + * { margin-top: 1.05em; }
.prose strong { color: var(--txt); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose h2, .prose h3 { font-family: var(--f-display); color: var(--txt); line-height: 1.2; }
.prose h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin-top: 1.5em; padding-top: .9em; border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose h3 { font-size: clamp(19px, 2vw, 23px); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose blockquote {
  border-left: 2px solid var(--accent); padding-left: 22px;
  font-family: var(--f-display); font-size: 1.22em; line-height: 1.4; color: var(--txt);
}
.prose img { margin-block: 1.6em; }

/* --- Archiwum ----------------------------------------------------------- */
.filters__link {
  padding: 11px 22px; border: 1px solid var(--line); border-radius: 2px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--txt-muted); transition: all .35s var(--ease);
}
.filters__link:hover { color: var(--txt); border-color: currentColor; }
.filters__link.is-current { background: var(--brass); border-color: var(--brass); color: #16110A; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(36px, 4vw, 56px); }
.pager__i {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding-inline: 12px;
  border: 1px solid var(--line); font-size: 13px; color: var(--txt-muted);
  transition: all .3s var(--ease);
}
.pager__i:hover { color: var(--txt); border-color: currentColor; }
.pager__i.is-current { background: var(--brass); border-color: var(--brass); color: #16110A; }
.pager__i.is-gap { border-color: transparent; }

/* --- Formularz (Contact Form 7) ----------------------------------------- */
.form { margin-top: clamp(32px, 4vw, 48px); }
.form__row { display: flex; flex-direction: column; gap: 9px; }
.form__row + .form__row { margin-top: 20px; }
/* Tylko etykieta pola. CF7 wstawia własny <label> wokół zgody — ten ma
   wyglądać jak zdanie, nie jak wersalikowa etykieta. */
.form__row > label { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.form__row--consent label { font: inherit; letter-spacing: normal; text-transform: none; display: flex; gap: 12px; align-items: flex-start; }
.form__row--consent input[type="checkbox"] { margin-top: .35em; accent-color: var(--brass); width: 16px; height: 16px; flex: none; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 2px;
  background: rgba(233, 229, 220, .04); border: 1px solid var(--line-dark);
  color: var(--text-on-dark); font: inherit; font-size: 15px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brass); background: rgba(233, 229, 220, .07); }
.form textarea { resize: vertical; min-height: 140px; }
.form__row--consent { flex-direction: row; align-items: flex-start; gap: 12px; font-size: 13.5px; line-height: 1.6; color: var(--text-on-dark-muted); }
.form__row--consent a { color: var(--brass); border-bottom: 1px solid currentColor; }
.form .wpcf7-list-item { margin: 0; }
.form__submit { margin-top: 26px; }
.form input[type="submit"] { border: 0; cursor: pointer; }

/* CF7 wstrzykuje własne komunikaty — dopasowujemy je do reszty. */
.wpcf7-response-output {
  margin: 22px 0 0 !important; padding: 14px 18px !important; border-radius: 2px;
  border-width: 1px !important; font-size: 14px; line-height: 1.6;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--up) !important; color: #9FD8BC; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: var(--down) !important; color: #E8A6A1; }
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 12.5px; color: #E8A6A1; }

.reveal__prose { font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.75; color: var(--text-on-dark-muted); max-width: 54ch; margin-top: 22px; }
.reveal__prose > * + * { margin-top: 1em; }

.ftr__note { margin-top: 28px; font-size: 11.5px; line-height: 1.6; color: #4C5A70; max-width: 78ch; }

/* ---------- 11. Footer --------------------------------------------------- */
.ftr { background: var(--ink-900); border-top: 1px solid var(--line-dark); padding-block: clamp(56px, 7vw, 88px) 32px; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.ftr__h { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 20px; }
.ftr__list li + li { margin-top: 11px; }
.ftr__list a { font-size: 14.5px; color: var(--text-on-dark-muted); transition: color .3s var(--ease); }
.ftr__list a:hover { color: var(--ivory); }
.ftr__claim { font-family: var(--f-display); font-size: clamp(21px, 2.2vw, 27px); line-height: 1.3; max-width: 22ch; margin-top: 22px; }
.ftr__bot { margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 12.5px; color: #64748B; }
.ftr__bot a:hover { color: var(--ivory); }

/* ---------- 12. Reveal --------------------------------------------------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- 13. Responsive ----------------------------------------------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .struct { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: 0; z-index: 99; flex-direction: column; justify-content: center;
    background: rgba(5,11,20,.98); backdrop-filter: blur(18px); gap: 26px;
    transform: translateX(100%); transition: transform .5s var(--ease);
    visibility: hidden;
  }
  .nav a { font-size: 22px; font-family: var(--f-display); color: var(--ivory); }
  body.nav-open .nav { transform: none; visibility: visible; }
  .burger { display: grid; z-index: 101; }
  .nav .nav__cta { margin-top: 8px; padding: 14px 28px; font-family: var(--f-ui); font-size: 13px; }
}
@media (max-width: 900px) {
  .hero__grid { display: none; }
  /* Po zawinięciu w dwa rzędy `space-between` rozjeżdża ostatni rząd. */
  .trust__list { justify-content: flex-start; row-gap: 14px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:nth-child(2n) { border-right: 0; }
  .hero__stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .reveal__in { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .reveal__fig { max-width: 460px; }
  .reveal__body .h-sec { max-width: none; }
  .eco__cell, .eco__cell--wide { grid-column: span 6; }
  .tl__item { grid-template-columns: 1fr; gap: 16px; }
  .tl__yr { display: flex; align-items: baseline; gap: 16px; font-size: 30px; }
  .tl__yr small { margin-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .eco__cell, .eco__cell--wide { grid-column: span 12; }
  .ftr__grid { grid-template-columns: 1fr; }
  /* `min-height` już nie ma; zostaje sam, ciaśniejszy padding. */
  .hero { padding-block: 130px 0; }
  .reveal__fig { max-width: none; }
  .hero__bg img { object-position: 70% 18%; }
  .brand__sub { display: none; }
  .ticker__lbl { display: none; }
  /* Na wąskim ekranie atrybucja zabierała taśmie połowę szerokości — schodzi
     pod nią, ale wtedy jako pełny rząd, więc nie robi pustego pasa z boku. */
  .ticker__in { flex-wrap: wrap; }
  .ticker__src {
    flex: 1 0 100%; justify-content: center;
    padding: 7px var(--gutter); border-left: 0; border-top: 1px solid var(--line);
  }
}
