/* ============================================================
   KaNaU - Korepetycje 1:1 (strona samodzielna)
   Własny, niezależny system. Paleta i fonty marki KaNaU,
   ale układ inny niż strona główna. Zero zależności od ../.
   ============================================================ */

:root {
  --ink-deep: #0B1120;
  --ink: #10182B;
  --ink-panel: #1C2742;
  --ink-line: #2A3550;
  --accent: #C465B8;
  --accent-bright: #DA7FD0;
  --accent-dim: #9D4691;
  --ivory: #F2EDE4;
  --slate: #A7B1C1; /* rozjaśnione - kontrast tekstów drugorzędnych */
  --bottle: #5E8B7E;
  --ember: #E08A3C;
  --malina: #D9486B;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 72rem;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; color: var(--ivory); }
h1 em, h2 em { font-style: italic; color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}
.eyebrow.slate { color: var(--slate); }

.lead { color: var(--slate); font-size: 1.12rem; line-height: 1.6; }

/* ---- Przyciski ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: none; cursor: pointer;
  background: var(--accent); color: #160a16;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory); border: 1px solid var(--ink-line); }
.btn-ghost:hover { background: rgba(255,255,255,.04); border-color: var(--slate); }

/* ---- Nawigacja ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11,17,32,.85); backdrop-filter: blur(10px); border-bottom-color: var(--ink-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; }
.wordmark { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .01em; }
.wordmark b { font-weight: 600; color: var(--ember); }
.wordmark i { font-style: italic; color: var(--accent); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: .95rem; color: var(--slate); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); }
.nav-links .btn { color: #160a16; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ivory); border-radius: 2px; transition: .25s; }

/* ---- HERO (split) ---- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(196,101,184,.12), transparent 60%),
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(28,39,66,.7), transparent 70%),
    var(--ink-deep);
  padding-block: 4.5rem 5rem;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero .lead { margin-top: 1.4rem; max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-trust {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: var(--slate);
}
.hero-trust span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust span::before { content: "·"; color: var(--accent); }
.hero-trust span:first-child::before { content: none; }

.hero-portrait { position: relative; flex: 1 1 auto; min-width: 0; }
.hero-portrait img {
  width: 100%; height: auto; /* height:auto - atrybuty width/height w HTML nie rozciągają zdjęcia */
  border-radius: var(--radius);
  border: 1px solid var(--ink-line);
  filter: saturate(1.02) contrast(1.02);
}
.hero-portrait figcaption {
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory); background: rgba(11,17,32,.7); backdrop-filter: blur(4px);
  padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--ink-line);
}
.hero-badge {
  position: absolute; top: -.8rem; right: -.6rem;
  background: var(--accent); color: #160a16; font-weight: 700; font-size: .8rem;
  padding: .5rem .9rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* ---- Pasek zaufania ---- */
.proof { border-block: 1px solid var(--ink-line); background: var(--ink-deep); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.8rem; text-align: center; }
.proof-item .n { font-family: var(--font-display); font-size: 1.7rem; color: var(--ivory); }
.proof-item .l { font-size: .82rem; color: var(--slate); margin-top: .2rem; line-height: 1.4; }

/* ---- Kafelek ceny (pod hero, przed paskiem) ---- */
.price-strip { display: flex; justify-content: center; margin-top: 2.8rem; }
.price-chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: .25rem;
  background: var(--ink-panel); border: 1px solid var(--accent-dim); border-radius: 16px;
  padding: 1rem 2.2rem; box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.price-chip-amount { font-family: var(--font-display); font-size: 2rem; color: var(--accent-bright); line-height: 1; }
.price-chip-amount .u { font-family: var(--font-mono); font-size: .85rem; color: var(--slate); margin-left: .35rem; }
.price-chip-label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--slate); }

/* ---- Podsekcja (łączenie sekcji w jedną) ---- */
.subhead { margin-top: 3.6rem; max-width: 42rem; }
.subhead h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-top: .4rem; }
.subhead .lead { margin-top: .8rem; }

/* ---- Sekcje ---- */
.section { padding-block: 5rem; }
.section.alt { background: var(--ink-deep); }
.section-head { max-width: 42rem; margin-bottom: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-top: .6rem; }
.section-head .lead { margin-top: 1rem; }

/* ---- Karty: kiedy 1:1 ma sens ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.card { background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.card .eyebrow { color: var(--bottle); margin-bottom: .7rem; }
.card h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.12rem; margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: .98rem; }

/* ---- Kurs vs korepetycje ---- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 2.6rem; }
.vs-card { background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 2rem; }
.vs-card.focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim); }
.vs-card h3 { font-size: 1.5rem; margin: .3rem 0 0; }
.vs-card ul { list-style: none; margin-top: 1.2rem; display: grid; gap: .7rem; }
.vs-card li { color: var(--slate); padding-left: 1.5rem; position: relative; }
.vs-card li::before { content: "→"; position: absolute; left: 0; color: var(--bottle); }
.vs-card.focus li::before { color: var(--accent); }
.vs-note { text-align: center; color: var(--slate); margin: 1.8rem auto 0; max-width: 44rem; }
.vs-note a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

/* ---- Jak wygląda współpraca (timeline) ---- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.8rem; counter-reset: step; }
.flow-step { position: relative; padding-top: 2.6rem; }
.flow-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-weight: 700; font-size: 1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-panel); color: var(--ember); border: 1px solid var(--ink-line);
}
.flow-step::after {
  content: ""; position: absolute; top: 1.05rem; left: 2.4rem; right: -.6rem; height: 1px;
  background: var(--ink-line);
}
.flow-step:last-child::after { display: none; }
.flow-step h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; margin-bottom: .4rem; }
.flow-step p { color: var(--slate); font-size: .95rem; }

/* ---- Prowadzący (blok wiarygodności) ---- */
.author { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center;
  background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: 22px; padding: 2.2rem; }
.author-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ink-line); }
.author h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.author p { color: var(--slate); }
.author .creds { list-style: none; margin-top: 1rem; display: grid; gap: .4rem; }
.author .creds li { color: var(--slate); font-size: .95rem; padding-left: 1.4rem; position: relative; }
.author .creds li::before { content: "✓"; position: absolute; left: 0; color: var(--bottle); }
.author .creds b { color: var(--ivory); font-weight: 600; }
.author .more { margin-top: 1rem; font-size: .9rem; }
.author .more a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

/* ---- W praktyce (konkrety) ---- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.fact { background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.fact-k { font-family: var(--font-display); font-size: 1.25rem; color: var(--ivory); margin-bottom: .5rem; }
.fact p { color: var(--slate); font-size: .95rem; }
.fact b { color: var(--ivory); font-weight: 600; }

/* ---- Cennik (transparentny) ---- */
.price-hero {
  text-align: center; max-width: 34rem; margin: 2.4rem auto 0;
  background: var(--ink-panel); border: 1px solid var(--accent-dim);
  border-radius: var(--radius); padding: 2rem;
}
.price-figure { display: flex; align-items: baseline; justify-content: center; gap: .6rem; }
.price-amount { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--ivory); line-height: 1; }
.price-unit { font-family: var(--font-mono); font-size: 1rem; color: var(--slate); }
.price-sub { color: var(--slate); font-size: .96rem; margin-top: .7rem; }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 1.3rem; }
.price-card { background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 2rem; }
.price-card .eyebrow { color: var(--slate); }
.price-card h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; margin: .5rem 0; }
.price-card .amount { font-family: var(--font-display); font-size: 1.4rem; color: var(--ivory); margin-bottom: .3rem; }
.price-card .amount small { font-family: var(--font-body); font-size: .9rem; color: var(--slate); font-weight: 400; }
.price-card p { color: var(--slate); font-size: .96rem; }
.price-note { text-align: center; color: var(--slate); margin-top: 1.6rem; max-width: 40rem; margin-inline: auto; }
.price-note b { color: var(--ivory); font-weight: 600; }

/* ---- FAQ ---- */
.faq { max-width: 46rem; margin-top: 2.4rem; }
.faq-item { border-bottom: 1px solid var(--ink-line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--ivory);
  padding: 1.2rem 2.2rem 1.2rem 0; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); transition: transform .25s; }
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--slate); padding-bottom: 1.2rem; }

/* ---- Formularz kontaktowy ---- */
.contact { max-width: 40rem; margin: 2.6rem auto 0; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .9rem; color: var(--ivory); }
.contact input, .contact select, .contact textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--ink-line); border-radius: 10px;
  padding: .85rem 1rem; color: var(--ivory); font-family: inherit; font-size: 1rem;
}
.contact input::placeholder, .contact textarea::placeholder { color: var(--slate); }
.contact input:focus,
.contact select:focus,
.contact textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 138, 60, 0.2); }
.contact textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact .btn { width: 100%; margin-top: .5rem; }
.contact .note { font-size: .85rem; color: var(--slate); margin-top: .9rem; text-align: center; }
.thanks { background: var(--ink-panel); border: 1px solid var(--bottle); border-radius: 14px; padding: 1.6rem; text-align: center; }
.thanks span { display: block; color: var(--slate); font-size: .85rem; margin-top: .5rem; }

/* ---- Sticky CTA ---- */
.sticky-cta {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 50;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---- Stopka ---- */
.footer { background: var(--ink-deep); border-top: 1px solid var(--ink-line); padding-block: 2.4rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-links a { color: var(--slate); font-size: .92rem; }
.footer-links a:hover { color: var(--ivory); }
.footer-note { width: 100%; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--slate); font-size: .82rem; margin-top: .6rem; }
.footer-note span:last-child { font-family: var(--font-mono); }

/* ---- Wyróżniony przykład w sekcji prowadzącego ---- */
.author-note { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--accent);
  background: rgba(196,101,184,.07); border-radius: 0 12px 12px 0; color: var(--ivory); font-size: .98rem; line-height: 1.6; }
.author-note b { color: var(--accent-bright); }

/* ---- Efekty (cytat + wyniki) ---- */
.quote-big { font-family: var(--font-display); font-size: clamp(1.5rem, 3.6vw, 2.3rem); line-height: 1.25;
  color: var(--ivory); max-width: 40rem; margin: 2.4rem auto 0; text-align: center; font-style: italic; }
.quote-big cite { display: block; font-family: var(--font-body); font-style: normal; font-size: .92rem;
  color: var(--slate); margin-top: 1.1rem; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.8rem; }
.result { background: var(--ink-panel); border: 1px solid var(--ink-line); border-radius: var(--radius);
  padding: 1.7rem 1.4rem; text-align: center; }
.result .rn { font-family: var(--font-display); font-size: 2rem; color: var(--ember); line-height: 1.1; }
.result p { color: var(--slate); font-size: .94rem; margin-top: .5rem; }
.results-note { text-align: center; color: var(--slate); margin-top: 1.6rem; max-width: 42rem; margin-inline: auto; }
.results-note b { color: var(--ivory); font-weight: 600; }
@media (max-width: 720px) { .results { grid-template-columns: 1fr; } }

/* ---- Opinie: wiadomosci po zajeciach (chat) ---- */
.msg-grid { columns: 3; column-gap: 1.3rem; margin-top: 2.6rem; }
.msg {
  break-inside: avoid; margin: 0 0 1.3rem;
  background: var(--ink-panel); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 1.2rem 1.2rem 1rem;
}
.msg-bubbles { display: flex; flex-direction: column; gap: .45rem; }
.bubble {
  align-self: flex-start; max-width: 92%;
  background: var(--ink); border: 1px solid var(--ink-line);
  color: var(--ivory); font-size: .96rem; line-height: 1.5;
  padding: .58rem .82rem; border-radius: 16px 16px 16px 5px;
}
.bubble.out {
  align-self: flex-end;
  background: var(--bottle); color: #0b1410; border-color: transparent;
  border-radius: 16px 16px 5px 16px;
}
.msg-meta {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--ink-line);
}
.msg-who { color: var(--ivory); font-weight: 600; font-size: .9rem; }
.msg-src {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .05em;
  color: var(--slate); border: 1px solid var(--ink-line);
  padding: .2rem .5rem; border-radius: 6px; white-space: nowrap;
}
.msg-messenger .msg-src { color: #7aa7ff; border-color: rgba(122,167,255,.32); }
.msg-whatsapp .msg-src { color: #79c598; border-color: rgba(121,197,152,.32); }
.msg-src-plain { color: var(--slate); border-color: var(--ink-line); }

/* karta z odreczna kartka (zdjecie) */
.msg-note { padding: .55rem .55rem .5rem; }
.msg-note img { width: 100%; border-radius: 12px; border: 1px solid var(--ink-line); }
.msg-note .msg-meta { margin-top: .7rem; padding-inline: .55rem; }

.msg-foot { text-align: center; color: var(--slate); font-size: .9rem; margin-top: 1.4rem; }

/* ---- Kontakt: druga droga ---- */
.contact-alt { text-align: center; color: var(--slate); font-size: .92rem; margin-top: 1.1rem; }
.contact-alt a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

/* ---- Narzedzia: pionowy rail przy zdjeciu (hero) ---- */
.hero-media { display: flex; align-items: center; gap: 1.1rem; }
.tool-rail { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; gap: 1.15rem; padding-block: .4rem; }
.tool-rail::before {
  content: ""; position: absolute; left: 50%; top: 1.6rem; bottom: 1.6rem; width: 1px; transform: translateX(-50%);
  background: linear-gradient(var(--ink-line), rgba(196,101,184,.28), var(--ink-line));
}
.tool-tile {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 13px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  animation: toolFloat 3.4s ease-in-out infinite;
  transition: filter .2s ease;
}
.tool-tile:nth-child(2) { animation-delay: .45s; }
.tool-tile:nth-child(3) { animation-delay: .9s; }
.tool-tile:nth-child(4) { animation-delay: 1.35s; }
@keyframes toolFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tool-tile:hover { filter: brightness(1.08); }
.tool-tile img { display: block; width: 60%; height: 60%; object-fit: contain; }
.tool-miro img { width: 88%; height: 88%; }
.tool-discord img { width: 70%; height: 70%; }
.tool-huion img { width: 80%; height: 80%; }
.tool-name {
  position: absolute; right: calc(100% + .55rem); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .03em;
  color: var(--ivory); background: var(--ink-panel); border: 1px solid var(--ink-line);
  padding: .25rem .55rem; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.tool-tile:hover .tool-name { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tool-tile { animation: none; } }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Responsywność ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-media { order: -1; flex-direction: column; align-items: center; gap: 1.3rem; }
  .hero-portrait { max-width: 20rem; width: 100%; }
  .tool-rail { flex-direction: row; gap: 1rem; }
  .tool-rail::before { display: none; }
  .tool-name { display: none; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step::after { display: none; }
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .msg-grid { columns: 2; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--ink-deep); border-bottom: 1px solid var(--ink-line); padding: 1rem 1.5rem;
    transform: translateY(-120%); transition: transform .3s ease; }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-links li { width: 100%; padding: .6rem 0; }
  .nav-toggle { display: flex; }
  .vs, .pricing { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .msg-grid { columns: 1; }
  .row2 { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .author .creds li { text-align: left; }
  .section { padding-block: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Motyw granatowo-kremowy
   Kremowe sekcje (.section): #jak, #kurs, #kontakt.
   Ciemne (.alt): hero, proof, #prowadzacy, #efekty, stopka.
   ============================================================ */
body { background: var(--ivory); }

/* pasek nawigacji - na stale ciemny (nigdy nie zmienia koloru, tez na samej gorze) */
.nav { background: var(--ink-deep); border-bottom: 1px solid var(--ink-line); }
.nav.is-scrolled { background: var(--ink-deep); }

.section:not(.alt) {
  --cream:        #E7DFCF;   /* tlo sekcji - stonowany, cieplejszy krem (mniej jaskrawy) */
  --cream-panel:  #F0EADC;   /* karty/panele na kremie */
  --cream-bubble: #F5F0E5;   /* dymki / pola - cieple off-white zamiast bieli */
  --cream-line:   #D4C8B0;   /* hairline na jasnym */
  --cream-ink:    #121316;   /* naglowki - niemal czarne */
  --cream-text:   #1B1B1D;   /* tekst glowny - mocno czarny */
  --cream-soft:   #565040;   /* tekst drugorzedny - ciemny cieply szary */
  background: var(--cream);
  color: var(--cream-text);
  position: relative;
}

/* ornament: konstelacje molekularne w tle (akcenty magenta/ember) */
.section:not(.alt)::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: url("img/molecules-cream.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  opacity: .55;
}
.section:not(.alt) > .container { position: relative; z-index: 1; }
/* kazda kremowa sekcja - inny zestaw czasteczek */
#kurs::before { background-image: url("img/molecules-cream-2.svg"); }
#kontakt::before { background-image: url("img/molecules-cream-3.svg"); }

/* naglowki i tekst */
.section:not(.alt) h2,
.section:not(.alt) h3 { color: var(--cream-ink); }
.section:not(.alt) h2 em { color: var(--accent); }
.section:not(.alt) .lead { color: var(--cream-soft); }
.section:not(.alt) p { color: var(--cream-text); }
.section:not(.alt) .section-head .eyebrow,
.section:not(.alt) .subhead .eyebrow { color: var(--accent-dim); }

/* karty „z czym pomagam" */
.section:not(.alt) .card { background: var(--cream-panel); border-color: var(--cream-line); }
.section:not(.alt) .card h3 { color: var(--cream-ink); }
.section:not(.alt) .card p { color: var(--cream-soft); }

/* os „jak to dziala" */
.section:not(.alt) .flow-step h3 { color: var(--cream-ink); }
.section:not(.alt) .flow-step p { color: var(--cream-soft); }
.section:not(.alt) .flow-step::before { background: var(--cream-panel); border-color: var(--cream-line); }
.section:not(.alt) .flow-step::after { background: var(--cream-line); }

/* opinie - karty wiadomosci na kremie */
.section:not(.alt) .msg { background: var(--cream-panel); border-color: var(--cream-line); }
.section:not(.alt) .bubble { background: var(--cream-bubble); border-color: var(--cream-line); color: var(--cream-ink); }
/* WhatsApp (odpowiedz Adriana) - zielen zostaje, czytelna na jasnym */
.section:not(.alt) .msg-meta { border-top-color: var(--cream-line); }
.section:not(.alt) .msg-who { color: var(--cream-ink); }
.section:not(.alt) .msg-src { color: var(--cream-soft); border-color: var(--cream-line); }
.section:not(.alt) .msg-messenger .msg-src { color: #3f6fd6; border-color: rgba(63,111,214,.28); }
.section:not(.alt) .msg-whatsapp  .msg-src { color: #2e7d52; border-color: rgba(46,125,82,.28); }
.section:not(.alt) .msg-note img { border-color: var(--cream-line); }
.section:not(.alt) .msg-foot { color: var(--cream-soft); }

/* „kurs czy korepetycje" - karty vs na kremie */
.section:not(.alt) .vs-card { background: var(--cream-panel); border-color: var(--cream-line); }
.section:not(.alt) .vs-card.focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim); }
.section:not(.alt) .vs-card h3 { color: var(--cream-ink); }
.section:not(.alt) .vs-card li { color: var(--cream-soft); }
.section:not(.alt) .eyebrow.slate { color: var(--cream-soft); }
.section:not(.alt) .vs-note { color: var(--cream-soft); }

/* formularz kontaktowy na kremie */
.section:not(.alt) .field label { color: var(--cream-ink); }
.section:not(.alt) .contact input,
.section:not(.alt) .contact select,
.section:not(.alt) .contact textarea { background: var(--cream-bubble); border-color: var(--cream-line); color: var(--cream-ink); }
.section:not(.alt) .contact input::placeholder,
.section:not(.alt) .contact textarea::placeholder { color: var(--cream-soft); }
.section:not(.alt) .contact .note { color: var(--cream-soft); }
.section:not(.alt) .contact-alt { color: var(--cream-soft); }

/* ===== INTERAKCJE ===== */

/* (1) karty „z czym pomagam" - hover: rozowa ramka + lawa z krawedzi do srodka */
.section:not(.alt) .card { position: relative; overflow: hidden; transition: border-color .35s ease; }
.section:not(.alt) .card > * { position: relative; z-index: 1; }
.section:not(.alt) .card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(115% 115% at 50% 50%, transparent 34%, rgba(196,101,184,.14) 64%, rgba(196,101,184,.40) 100%);
  opacity: 0; transform: scale(1.3);
  transition: opacity .5s ease, transform 1.4s cubic-bezier(.22, 1, .36, 1);
}
.section:not(.alt) .card:hover { border-color: var(--accent); }
.section:not(.alt) .card:hover::after { opacity: 1; transform: scale(1); }

/* (2) „jak to dziala" - bardziej widoczny ruch (sekwencje steruje --reveal-delay w HTML) */
.flow .flow-step.reveal { transform: translateY(50px); transition: opacity .45s ease, transform .65s cubic-bezier(.22, 1, .36, 1); }
.flow .flow-step.reveal.is-visible { transform: none; }

/* (3) „kurs vs korepetycje" - klikalne karty z mocnym podswietleniem */
.vs-card { display: block; cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.vs-cue { display: inline-block; margin-top: 1.3rem; font-family: var(--font-mono); font-size: .85rem; letter-spacing: .02em; transition: color .25s ease; }
.vs-cue-kurs { color: #1aa0ae; }
.vs-cue-korki { color: var(--accent); }
.vs-kurs:hover { border-color: #2BB7C4; box-shadow: 0 0 0 1.5px #2BB7C4, 0 16px 38px rgba(43,183,196,.30); transform: translateY(-4px); }
.vs-kurs:hover .vs-cue-kurs { color: #2BB7C4; }
.vs-korki:hover { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent), 0 16px 38px rgba(196,101,184,.32); transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .section:not(.alt) .card::after { transition: opacity .01ms; transform: none; }
  .vs-card { transition: none; }
}

/* ikonki źródła opinii (Messenger/WhatsApp) zamiast tekstu */
.msg-src { display: inline-flex; align-items: center; }
.msg-src svg { display: block; width: 15px; height: 15px; }
.msg-src:has(svg) { padding: .3rem; border-radius: 8px; } /* chip kwadratowy pod samą ikonę */

/* ---- Mapa CTA (lead z ruchu SEO, w sekcji "kurs czy korepetycje") ---- */
.mapa-cta {
  max-width: none;
  margin: 4.2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--cream-line);
  border-radius: var(--radius);
  background: var(--cream-panel);
}
.mapa-cta p { margin: 0; color: var(--cream-soft); font-size: 1rem; max-width: 40rem; }
.mapa-cta p b { color: var(--cream-ink); }
.mapa-cta .btn { flex-shrink: 0; }
.mapa-form { flex: 0 0 auto; width: min(24rem, 100%); }
/* plywajaca karta mapy - element na prawym koncu boxu, wystaje poza niego */
.mapa-visual {
  --card-w: clamp(9.8rem, 7rem + 6vw, 13.2rem);
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  align-self: center;
  margin-block: -2.6rem;
  margin-right: -2rem;
  pointer-events: none;
  z-index: 2;
}
.mapa-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(18, 19, 22, 0.30)) drop-shadow(0 3px 7px rgba(18, 19, 22, 0.18));
  animation: mapa-float 6.5s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes mapa-float {
  from { transform: translateY(-6px) rotate(4deg); }
  to   { transform: translateY(8px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mapa-visual img { animation: none; transform: rotate(3deg); }
}
@media (max-width: 700px) {
  .mapa-cta { flex-direction: column; text-align: center; margin-top: 3.6rem; }
  .mapa-visual { --card-w: 8rem; margin: 0 auto; }
}

/* ---- Honeypot (antyspam) - ukryty poza ekranem ---- */
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---- Formularz mapy w .mapa-cta (zapis przez subscribe.php) ---- */
.mapa-form { flex: 0 0 auto; width: min(21rem, 100%); }
.mapa-form-row { display: flex; gap: .55rem; }
.mapa-form-row input {
  flex: 1; min-width: 0;
  padding: .68rem .85rem;
  border-radius: 10px;
  border: 1px solid var(--cream-line);
  background: var(--cream-bubble);
  color: var(--cream-ink);
  font: inherit;
  font-size: .95rem;
}
.mapa-form-row input::placeholder { color: var(--cream-soft); }
.mapa-form-row .btn { white-space: nowrap; }
.mapa-cta .mapa-note { margin-top: .5rem; font-size: .78rem; color: var(--cream-soft); }
@media (max-width: 700px) {
  .mapa-form { width: 100%; }
  .mapa-form-row { flex-direction: column; }
}

/* ---- Molekuly na ciemnych sekcjach (jak na stronie glownej) ---- */
.section.alt { position: relative; z-index: 0; }
.section.alt::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("img/molecules-dark.svg");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center top;
  opacity: .5;
}
.section.alt > .container { position: relative; z-index: 1; }
#efekty::before { background-image: url("img/molecules-dark-2.svg"); }
#faq::before { background-image: url("img/molecules-dark-3.svg"); }

/* ---- FAQ + Wolne terminy: dwie polowy na jednym poziomie ---- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
/* separator: pociagniecie pedzlem (gradient progow) na styku z sekcja opinii,
   rozciagniete od kranca do kranca strony */
.duo::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url("img/brush-underline.png") center / 100% 100% no-repeat;
  z-index: 3;
  pointer-events: none;
}
.duo-half { min-width: 0; }
.duo-inner {
  max-width: 36rem;
  padding-inline: clamp(1.5rem, 3vw, 2.75rem);
}
.duo-inner-dark, .duo-inner-light { margin-inline: auto; }
.duo .faq { max-width: none; }
.duo .contact { max-width: none; }
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .duo-inner-dark, .duo-inner-light { margin-inline: auto; }
}
