/* =========================================================
   Maciej Goliński — mentoring tradingowy
   Jeden arkusz. Statyczny HTML/CSS. Fonty osadzone lokalnie.
   ========================================================= */

/* ---------- Fonty (lokalne woff2) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-MediumItalic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Zmienne ---------- */
:root {
  --cream:        #F7F3EA;   /* tło podstawowe */
  --cream-alt:    #EFE9DB;   /* tło sekcji przeplatanej */
  --ink:          #2B2823;   /* tekst główny (grafit) */
  --ink-soft:     #55504733; /* — nieużywane bezpośrednio */
  --muted:        #6E6558;   /* tekst drugorzędny */
  --label:        #A79E8D;   /* etykiety wersalikowe */
  --line:         #D8D0BF;   /* hairline separatory */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap:  680px;            /* wąska kolumna czytelnicza */
  --wide:  1180px;          /* szeroki kontener (nav, hero) */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typografia bazowa ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.08; letter-spacing: .005em; }
p { margin: 0 0 1.25em; color: var(--muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

/* Etykieta sekcji: „01 — MENTORING” */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 1.6rem;
}

/* ---------- Kontenery / sekcje ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--alt { background: var(--cream-alt); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wide { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 40px; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 2.2rem;
  color: var(--ink);
}

.divider { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

/* ---------- Nagłówek / nawigacja ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--wide); margin: 0 auto; padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--muted); letter-spacing: .01em;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-in {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted);
  transition: border-color .2s ease, color .2s ease;
}
.nav-in:hover { border-color: var(--muted); color: var(--ink); }
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--ink);
  margin: 0 auto; transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- CTA (link ze strzałką, podkreślony) ---------- */
.cta {
  display: inline-flex; align-items: center; gap: .8em;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 8px; border-bottom: 1px solid var(--ink);
  transition: gap .2s ease, opacity .2s ease;
}
.cta:hover { gap: 1.4em; opacity: .7; }
.cta .arrow { font-family: var(--sans); font-weight: 400; }

/* mniejszy wariant „czytaj …” */
.link-more {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: color .2s ease, gap .2s ease;
}
.link-more:hover { color: var(--ink); gap: 1em; }

/* ---------- HERO ---------- */
.hero { padding: clamp(4rem, 12vh, 9rem) 0 clamp(5rem, 14vh, 10rem); }
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hero h1 {
  font-size: clamp(3.4rem, 12vw, 8.5rem);
  font-weight: 500; line-height: .98; letter-spacing: -.01em;
  color: var(--ink); margin: 0 0 2rem;
  max-width: 12ch;
}
.hero .lead {
  font-family: var(--sans); font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.55; color: var(--muted); max-width: 30ch; margin: 0 0 2.8rem;
}

/* ---------- 01 MENTORING ---------- */
.stages { margin-top: 3.5rem; }
.stage { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem; padding: 2.6rem 0; border-top: 1px solid var(--line); }
.stage:last-of-type { border-bottom: 1px solid var(--line); }
.stage-num { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--label); line-height: 1; padding-top: .2rem; }
.stage h3 { font-size: 1.7rem; color: var(--ink); margin: 0 0 .3rem; }
.stage .dur { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin: 0 0 1rem; }
.stage ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.stage li { color: var(--muted); margin-bottom: .5em; }

.note-strong {
  font-family: var(--serif); font-style: italic; font-size: 1.5rem;
  line-height: 1.4; color: var(--ink); margin: 3.5rem 0 0; max-width: 26ch;
}

/* dwie kolumny: to jest / to nie jest dla Ciebie */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; margin-top: 4rem; }
.fit-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin: 0 0 1.8rem; line-height: 1.5; }
.fit-col ul { list-style: none; margin: 0; padding: 0; }
.fit-col li { color: var(--muted); padding: 1.3rem 0; border-top: 1px solid var(--line); }
.fit-col li:first-child { border-top: 0; padding-top: 0; }

/* ---------- 02 O MNIE ---------- */
.about-head { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--ink); margin: 0 0 1.2rem; }
.about-sub { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--muted); margin: 0 0 0; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; margin-top: 3.5rem; }
.portrait { max-width: 420px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(100%); }
.portrait figcaption { font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-top: 1rem; }

.story .story-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.story .story-list li {
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.45;
  color: var(--ink); padding: .9rem 0 .9rem 1.5rem; border-left: 2px solid var(--line);
  margin-bottom: 1.3rem;
}

.pillars { margin-top: 1rem; }
.pillar { display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--label); line-height: 1; padding-top: .25rem; }
.pillar h3 { font-size: 1.55rem; color: var(--ink); margin: 0 0 .5rem; }

.signature { margin: 3rem 0 0; display: flex; justify-content: flex-end; }
.signature img { width: 210px; opacity: .9; }

/* ---------- 03 OPINIE ---------- */
.reviews { margin-top: 1rem; }
.review { padding: 3rem 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.4; color: var(--ink);
}
.review .who { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin-top: 1.5rem; }

/* ---------- 04 PROJEKT 1000% ---------- */
.p1000-lead { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.45; color: var(--ink); margin: 0 0 2.5rem; max-width: 30ch; }

.post-card {
  display: block; padding: 2.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 2.5rem 0; transition: opacity .2s ease;
}
.post-card:hover { opacity: .72; }
.post-card .post-no { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin: 0 0 .8rem; }
.post-card h3 { font-size: 1.9rem; color: var(--ink); margin: 0 0 1rem; max-width: 24ch; }
.post-card p { margin: 0 0 1.4rem; }
.post-card .link-more { color: var(--ink); }

/* ---------- 05 WYNIKI ---------- */
.results-note { margin-top: 2.5rem; }
.results-chart { margin: 3rem 0; border: 1px solid var(--line); background: #fff; padding: 12px; }
.results-chart img { width: 100%; height: auto; display: block; }
.results-chart .zoomable { cursor: zoom-in; }
.results-chart { position: relative; }
.zoom-hint {
  display: block; text-align: center; margin-top: 10px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--label);
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(30, 27, 22, .92); padding: 24px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; background: #fff; padding: 12px; }
.lightbox-close {
  position: absolute; top: 20px; right: 26px;
  background: none; border: 0; color: #F7F3EA; font-size: 40px; line-height: 1;
  cursor: pointer; padding: 8px; opacity: .8; transition: opacity .2s ease;
}
.lightbox-close:hover { opacity: 1; }
.disclaimer { font-size: 13px; line-height: 1.6; color: var(--label); margin-top: 2.5rem; }

/* ---------- 06 KONTAKT ---------- */
.contact-lead { font-size: 1.05rem; color: var(--muted); max-width: 52ch; }
.contact-actions { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
.contact-email { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .2s ease; }
.contact-email:hover { border-color: var(--ink); }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0; }
.footer-in { max-width: var(--wide); margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; text-align: center; }
.footer-name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.footer-meta { font-size: 13px; color: var(--label); }

/* ---------- Responsywność ---------- */
@media (max-width: 820px) {
  .nav { padding: 16px 24px; position: relative; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    width: 100%; order: 3; margin-top: 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    width: 100%; padding: 14px 0; font-size: 16px;
    border-top: 1px solid var(--line);
  }
  .nav-links .nav-in {
    width: 30px; padding: 0; margin-top: 12px; border: 1px solid var(--line);
  }
  .hero-inner, .wide, .footer-in { padding-left: 24px; padding-right: 24px; }
  .fit { grid-template-columns: 1fr; gap: 2.5rem; }
  .fit-col li { padding: 1rem 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stage, .pillar { grid-template-columns: 2.2rem 1fr; gap: 1rem; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}

/* ---------- BLOG: lista wpisów (blog.html) ---------- */
.blog-head { padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; }
.blog-head .section-title { margin-bottom: 1rem; }
.blog-intro { color: var(--muted); max-width: 52ch; }

.post-list { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 5rem; }
.post-item {
  display: block; padding: 2.6rem 0; border-top: 1px solid var(--line);
  transition: opacity .2s ease;
}
.post-item:last-child { border-bottom: 1px solid var(--line); }
.post-item:hover { opacity: .68; }
.post-item .post-no {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin: 0 0 .8rem;
}
.post-item .post-tag {
  display: inline-block; margin-left: 1rem; color: var(--muted);
}
.post-item h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 500; color: var(--ink); margin: 0 0 .6rem; line-height: 1.12; }
.post-item .post-sub { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* ---------- BLOG: pojedynczy wpis (posts/*.html) ---------- */
.post-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.post-article { padding: clamp(3rem, 7vw, 5.5rem) 0 4rem; }
.post-meta {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--label);
  margin: 0 0 1.8rem; display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center;
}
.post-meta .post-tag { color: var(--muted); }
.post-title { font-size: clamp(2.2rem, 5.5vw, 3.4rem); color: var(--ink); margin: 0 0 1rem; line-height: 1.06; }
.post-subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--muted); margin: 0 0 3rem; line-height: 1.35; }
.post-body { }
.post-body p { margin: 0 0 1.4em; color: var(--muted); }
.post-body ol, .post-body ul { margin: 1.4em 0; padding-left: 1.3rem; color: var(--muted); }
.post-body li { margin-bottom: .8em; }
.post-body strong { color: var(--ink); font-weight: 600; }

.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 2.5rem;
}
.post-nav a { display: block; transition: opacity .2s ease; }
.post-nav a:hover { opacity: .7; }
.post-nav .dir { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--label); margin-bottom: .5rem; }
.post-nav .ptitle { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
.post-nav .next { text-align: right; }
.post-nav .disabled { opacity: .3; pointer-events: none; }
.post-alllink { text-align: center; margin: 2.5rem 0 0; }

/* ---------- Rozwijane (historia, opinie) ---------- */
.reveal { }
.reveal > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  transition: color .2s ease, gap .2s ease;
}
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary:hover { color: var(--ink); gap: 1em; }
.reveal > summary .mark { display: inline-block; transition: transform .2s ease; }
.reveal[open] > summary .mark { transform: rotate(45deg); }
.reveal[open] > summary .txt-open { display: none; }
.reveal .txt-close { display: none; }
.reveal[open] .txt-close { display: inline; }
.reveal-body { margin-top: 1.6rem; }
.reveal-body p { margin-bottom: 1.1em; }
.story .reveal { margin-top: .5rem; }

/* ---------- Dostępność ---------- */
a:focus-visible, .cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- STRONY PRAWNE (polityka-prywatnosci.html, polityka-cookies.html) ---------- */
.legal { padding: clamp(3rem, 7vw, 5.5rem) 0 4rem; }
.legal .post-title { margin-bottom: .6rem; }
.legal .post-subtitle { margin-bottom: 3rem; }
.legal h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--ink); margin: 3.2rem 0 1.2rem; }
.legal .legal-sub {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--label);
  margin: 2rem 0 .8rem;
}
.legal .post-body ul, .legal .post-body ol { margin: 1em 0 1.4em; }

/* stopka: linki do polityk */
.footer-links { font-size: 13px; color: var(--label); }
.footer-links a { color: var(--label); transition: color .2s ease; }
.footer-links a:hover { color: var(--ink); }

/* linki w drobnym druku (klauzula kontaktowa) */
.disclaimer a { color: var(--muted); border-bottom: 1px solid var(--line); transition: border-color .2s ease, color .2s ease; }
.disclaimer a:hover { color: var(--ink); border-color: var(--ink); }
