/* Fonty self-hosted (Google Fonts, licencja OFL). Variable - jeden plik na rodzinę + zakres znaków. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-lat.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-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;
}

/* kursywa Inter — używana w cytatach opinii */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-italic-lat.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: 100 900;
  font-display: swap;
  src: url('fonts/inter-italic-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/archivo-lat.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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/archivo-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;
}

/* =========================================================
   Kurs365dni.pl - arkusz główny
   Paleta: szary / ciemnoszary + złamana biel, niski kontrast,
   akcent fiolet + niebieski wzięty z tła nagrań Dawida
   (panele akustyczne: fiolet #7848cc, niebieski #0c6cf0).
   Źródło prawdy o wyglądzie: style-guide.html
   ========================================================= */

:root {
  /* kolory */
  --ink: #191b1d;
  --ink-soft: #33383d;
  --muted: #5f666d;
  --muted-2: #858c93;

  --paper: #f3f2f0;
  --paper-2: #e9e7e3;
  --white: #ffffff;

  /* grafit z chłodną domieszką - spina szarość z fioletem */
  --graphite: #23242f;
  --graphite-2: #2b2d3a;
  --graphite-3: #3a3d4c;

  /* akcent główny: fiolet; drugi plan: niebieski */
  --accent: #5f35c4;
  --accent-rgb: 95, 53, 196;
  --accent-dark: #4d2aa3;
  --accent-soft: #f0ebfd;
  --accent-2: #0c6cf0;
  --accent-2-rgb: 12, 108, 240;

  --line: #dedbd6;
  --line-dark: #3d4050;

  /* typografia */
  --font-head: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* odstępy */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* kontenery */
  --wrap: 1120px;
  --wrap-narrow: 720px;

  /* promienie i cienie */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(25, 27, 29, .06), 0 2px 8px rgba(25, 27, 29, .04);
  --shadow-md: 0 2px 6px rgba(25, 27, 29, .07), 0 12px 28px rgba(25, 27, 29, .07);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 var(--sp-4); line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0 0 var(--sp-4); }
ul { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
strong, b { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- typografia skali ---------- */
h1 { font-size: clamp(29px, 3.4vw, 42px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; }
.lead { font-size: clamp(18px, 1.7vw, 20px); color: var(--ink-soft); }
.kicker {
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 var(--sp-4);
}
.section-head { text-align: center; max-width: 780px; margin: 0 auto var(--sp-7); }
.section-head p { color: var(--muted); margin-bottom: 0; }
.small { font-size: 15px; color: var(--muted); }

/* ---------- układ ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--wrap-narrow); margin-left: auto; margin-right: auto; }
section { padding: var(--sp-9) 0; }
section[id] { scroll-margin-top: 74px; }
section.tight { padding: var(--sp-8) 0; }
.bg-paper   { background: var(--paper); }
.bg-paper-2 {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(var(--accent-rgb), .07), transparent 65%),
    var(--paper-2);
}
.bg-white   { background: var(--white); }
.bg-dark    {
  background:
    radial-gradient(85% 65% at 15% 0%, rgba(var(--accent-rgb), .26), transparent 60%),
    radial-gradient(70% 60% at 92% 88%, rgba(var(--accent-2-rgb), .20), transparent 62%),
    linear-gradient(165deg, #272935 0%, #23242f 55%, #1c1d27 100%);
  color: #e8e6e3;
  position: relative;
}
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .section-head p, .bg-dark .small { color: #a9aeb3; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-size: 17px; font-weight: 700;
  padding: 16px 30px; border-radius: var(--r-sm); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.bg-dark .btn-ghost, .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.bg-dark .btn-ghost:hover, .hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-lg { font-size: 19px; padding: 19px 40px; }

/* pulsujące CTA (sekcja zakupowa) */
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .5); transform: scale(1); }
  55%  { box-shadow: 0 0 0 16px rgba(var(--accent-rgb), 0); transform: scale(1.022); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); transform: scale(1); }
}
.btn-pulse { animation: cta-pulse 2.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.btn-pulse:hover { animation-play-state: paused; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.btn-row.center { justify-content: center; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--graphite); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
/* po zjechaniu poniżej hero: przyciemnienie, cień, cienka fioletowa krecha */
.topbar.scrolled {
  background: rgba(26, 27, 37, .95);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
  border-bottom-color: rgba(var(--accent-rgb), .45);
}
.topbar.scrolled .wrap { min-height: 56px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 62px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: var(--sp-5); }
.topbar-price { font-size: 15px; color: #b9bec3; }
.topbar-price b { color: #fff; font-weight: 700; }
.topbar .btn { padding: 10px 22px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  /* gradient z tła nagrań: grafit → fiolet po prawej, niebieski po lewej */
  background:
    radial-gradient(120% 90% at 82% 12%, rgba(var(--accent-rgb), .52), transparent 58%),
    radial-gradient(95% 85% at 6% 92%, rgba(var(--accent-2-rgb), .34), transparent 62%),
    linear-gradient(155deg, #292b38 0%, #23242f 42%, #191a23 100%);
  color: #edebe8;
  padding: var(--sp-9) 0 var(--sp-8);
  border-bottom: 1px solid var(--line-dark);
  position: relative; overflow: hidden;
}
/* Szachownica akustyczna - nawiązanie do paneli w tle nagrań Dawida.
   Kafle są tylko rozjaśnieniem/przyciemnieniem: kolor biorą z gradientu
   pod spodem, więc po prawej wychodzą fioletowe, po lewej niebieskie.
   Druga warstwa (2x większa, przesunięta) łamie regularność siatki. */
.hero::before, .bg-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* kafelek SVG zamiast repeating-conic-gradient: conic z maską malował się
     na tyle drogo, że zbijał Lighthouse o kilka punktów */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.017)'/%3E%3Crect x='1' y='1' width='1' height='1' fill='rgba(255,255,255,0.017)'/%3E%3Crect x='1' width='1' height='1' fill='rgba(0,0,0,0.03)'/%3E%3Crect y='1' width='1' height='1' fill='rgba(0,0,0,0.03)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Crect width='1' height='1' fill='rgba(255,255,255,0.013)'/%3E%3Crect x='1' y='1' width='1' height='1' fill='rgba(255,255,255,0.013)'/%3E%3C/svg%3E");
  background-size: 176px 176px, 352px 352px;
  background-position: 0 0, 88px 88px;
  /* kratka gaśnie tam, gdzie leży tekst - zostaje mocniejsza przy krawędziach */
  -webkit-mask-image: radial-gradient(70% 75% at 38% 50%, transparent 0%, #000 78%);
  mask-image: radial-gradient(70% 75% at 38% 50%, transparent 0%, #000 78%);
}
.bg-dark::before {
  -webkit-mask-image: radial-gradient(65% 70% at 50% 50%, transparent 0%, #000 82%);
  mask-image: radial-gradient(65% 70% at 50% 50%, transparent 0%, #000 82%);
}

/* delikatna poświata pod treścią + winieta na krawędziach */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 120%, rgba(var(--accent-rgb), .18), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.14) 0%, transparent 22%, transparent 78%, rgba(0,0,0,.22) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-8); align-items: center; }
.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(16px, 1.5vw, 18px); color: #c9ced3; margin-bottom: var(--sp-6); max-width: 46ch; }
.hero-sub strong { color: #fff; }
.hero-note { margin-top: var(--sp-5); font-size: 15px; color: #9aa0a6; }

.photo-slot {
  aspect-ratio: 4 / 5;
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #2b2d3a, #21222c);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: var(--sp-5); color: #8c9298;
}
.photo-slot .ph-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #b6bbc0; }
.photo-slot .ph-desc { font-size: 14px; max-width: 240px; }

.author-photo {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}
.author-grid .author-photo { box-shadow: 0 18px 36px rgba(25,27,29,.16); }

/* ---------- pasek dowodów ---------- */
.proofbar {
  background: linear-gradient(90deg, #262835 0%, #322a52 50%, #262835 100%);
  color: #fff; padding: var(--sp-6) 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), .34);
}
/* liczby i podpisy w jednej linii, bez dopisków pod spodem */
.proofbar .grid {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: var(--sp-4) var(--sp-7); text-align: center;
}
.proofbar .grid > div { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.proofbar .num { font-family: var(--font-head); font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; line-height: 1.1; }
.proofbar .lbl { font-size: 15px; color: #b3b8c4; }

/* ---------- listy problemów / korzyści ---------- */
.pointlist { list-style: none; padding: 0; margin: 0; }
.pointlist > li { padding-left: 30px; position: relative; margin-bottom: var(--sp-6); }
.pointlist > li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--accent);
}
.pointlist h3 { margin-bottom: var(--sp-2); font-size: 20px; }
.pointlist p:last-child { margin-bottom: 0; }
.pointlist.plain > li { margin-bottom: var(--sp-3); }

/* ---------- karty ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
}
.bg-white .card { background: var(--paper); }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

/* ---------- opinie ---------- */
/* układ masonry — karty mają naturalną wysokość, bez pustych dziur */
.quotes { columns: 2; column-gap: var(--sp-5); }
.quote {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-6) var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin: 0 0 var(--sp-5); display: inline-block; width: 100%;
}
.quote .quote-mark { color: var(--accent); line-height: 0; margin-bottom: var(--sp-4); display: block; }
.quote .quote-mark svg { width: 30px; height: 30px; display: block; }
.quote p { font-size: 16px; color: var(--ink-soft); font-style: italic; }
.quote p:last-child { margin-bottom: 0; }
.quote footer {
  margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.quote footer .av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 auto;
}
.quote footer span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 1px; }

/* ---------- sekcja "kim jestem" ---------- */
.author-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--sp-8); align-items: start; }
.author-grid .photo-slot { aspect-ratio: 3 / 4; border-color: var(--line); background: var(--paper-2); color: var(--muted); }
.author-grid .photo-slot .ph-title { color: var(--ink-soft); }

/* ---------- okładka / mockup ---------- */
.cover-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--sp-8); align-items: center; }
.cover-grid img { margin: 0 auto; max-height: 420px; width: auto; filter: drop-shadow(0 24px 40px rgba(25,27,29,.18)); }

/* ---------- lista lekcji ---------- */
.lessons details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
}
.lessons summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 19px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.lessons summary::-webkit-details-marker { display: none; }
.lessons summary .chev { color: var(--accent); font-size: 15px; font-family: var(--font-body); font-weight: 600; white-space: nowrap; }
.lessons details[open] summary { margin-bottom: var(--sp-5); border-bottom: 1px solid var(--line); padding-bottom: var(--sp-4); }
.lesson-search {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 16px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  margin-bottom: var(--sp-5);
}
.lesson-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--sp-7); }
.lesson-list li {
  break-inside: avoid; font-size: 15px; line-height: 1.5; color: var(--ink-soft);
  padding: 6px 0 6px 44px; position: relative; border-bottom: 1px solid var(--paper-2);
}
.lesson-list li span.n {
  position: absolute; left: 0; top: 6px; width: 34px; text-align: right;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--muted-2);
}
.lesson-empty { color: var(--muted); font-size: 15px; }

/* ---------- nagrania (placeholdery) ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.video-slot {
  aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, #2f3140, #21222c);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #9aa0a6; text-align: center; padding: var(--sp-5);
  position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease;
}
.video-slot::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 45%, rgba(var(--accent-rgb),.14), transparent 70%);
  pointer-events: none;
}
.video-slot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-slot .play {
  width: 66px; height: 66px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb),.35); position: relative; z-index: 1;
}
.video-slot .play svg { width: 24px; height: 24px; margin-left: 3px; }
.video-slot .ph-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: #fff; position: relative; z-index: 1; }
.video-slot .small { color: #9aa0a6; position: relative; z-index: 1; }

/* miniatura nagrania - klik ładuje iframe (script.js) */
.video-thumb { padding: 0; cursor: pointer; appearance: none; -webkit-appearance: none; font: inherit; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-thumb::after { background: linear-gradient(rgba(20,21,28,.06), rgba(20,21,28,.3)); }
.video-slot .play { transition: transform .18s ease; }
.video-thumb:hover .play { transform: scale(1.08); }
.vid-badge {
  position: absolute; left: 12px; top: 12px; z-index: 1;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #fff;
  background: rgba(20,21,28,.72); padding: 4px 10px; border-radius: 999px;
}
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { text-align: center; color: var(--muted); font-size: 15px; margin-top: var(--sp-5); }

/* ---------- ikony ---------- */
.ico { width: 24px; height: 24px; flex: 0 0 auto; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-badge {
  width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: var(--sp-4);
}
.ico-badge .ico { width: 27px; height: 27px; }
.bg-dark .ico-badge { background: rgba(var(--accent-rgb),.22); color: #b79bff; }
.ico-inline { display: inline-flex; align-items: center; gap: 8px; }

/* karta z ikoną */
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-7) var(--sp-6); box-shadow: var(--shadow-sm); height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bg-white .feature-card { background: var(--paper); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card h3 { margin-bottom: var(--sp-2); font-size: 20px; }
.feature-card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.feature-card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.feature-card p a:hover { color: var(--accent-dark); }
.cards-3 { align-items: stretch; }

/* liczby w pasku dowodów z ikoną */
.proofbar .ico { width: 22px; height: 22px; color: var(--accent); margin: 0 auto 8px; display: block; }

/* ---------- pasek CTA pod sekcjami ---------- */
.cta-strip {
  margin-top: var(--sp-8);
  background:
    radial-gradient(70% 160% at 88% 50%, rgba(var(--accent-rgb), .32), transparent 62%),
    linear-gradient(100deg, #23242f 0%, #2b2d3a 100%);
  color: #fff; border-radius: var(--r-lg);
  padding: var(--sp-7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-5); text-align: center;
}
.cta-strip .cta-text { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.3; }
.cta-strip .cta-sub { font-family: var(--font-body); font-weight: 400; font-size: 15px; color: #a9aeb3; margin-top: 6px; }
.cta-strip .btn { flex: 0 0 auto; min-width: 260px; }
.bg-dark .cta-strip { border: 1px solid var(--line-dark); }

/* ---------- okładka w sekcji zakupowej ---------- */
.pricebox .price-cover {
  max-height: 210px; width: auto; margin: 0 auto var(--sp-5);
  filter: drop-shadow(0 18px 28px rgba(25,27,29,.28));
}

/* ---------- stopka: wykonanie ---------- */
.footer-made { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.footer-made .made-label { font-size: 13px; color: #868c94; }
.footer .footer-made a { border-bottom: 0; display: inline-flex; align-items: center; }
.footer-made img { height: 40px; width: auto; opacity: .92; transition: opacity .15s ease; }
.footer-made a:hover img { opacity: 1; }

/* ---------- cena ---------- */
.pricebox {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-8); text-align: center; box-shadow: var(--shadow-md); max-width: 620px; margin: 0 auto;
}
.bg-dark .pricebox { background: var(--graphite-2); border-color: var(--line-dark); }
.price-old { font-size: 17px; color: var(--muted); text-decoration: line-through; }
.bg-dark .price-old { color: #9aa0a6; }
.price-now { font-family: var(--font-head); font-size: clamp(46px, 7vw, 68px); font-weight: 800; line-height: 1; margin: var(--sp-2) 0; }
.bg-dark .price-now { color: #fff; }
.price-note { color: var(--muted); font-size: 15px; margin-bottom: var(--sp-6); }
.bg-dark .price-note { color: #a9aeb3; }
.pricebox .btn { width: 100%; max-width: 380px; }
.price-perks { list-style: none; padding: 0; margin: var(--sp-6) 0 0; font-size: 15px; color: var(--muted); display: grid; gap: 8px; }
.bg-dark .price-perks { color: #b9bec3; }
.price-perks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }

/* ---------- efekt wjeżdżania (reveal) ---------- */
html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
html.js .tl-item .dot { transform: scale(.5); opacity: 0; }
html.js .tl-item.in .dot {
  transform: scale(1); opacity: 1;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1) .12s, opacity .4s ease .12s;
}

/* ---------- gwarancja ---------- */
.guarantee {
  display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-7); align-items: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  padding: var(--sp-7);
}
.guarantee p:last-of-type { margin-bottom: 0; }
.guarantee ul li { margin-bottom: 8px; }
.guarantee-badge {
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; line-height: 1.1;
  font-family: var(--font-head); box-shadow: 0 18px 50px rgba(var(--accent-rgb),.32);
}
.guarantee-badge b { font-size: 80px; font-weight: 800; display: block; }
.guarantee-badge span { font-size: 22px; letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; }

/* ---------- dla kogo ---------- */
.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.fit-card { text-align: center; padding: var(--sp-7) var(--sp-6); }
.fit-card h3 { margin-bottom: var(--sp-5); }
.fit-card ul { list-style: none; padding: 0; margin: 0 auto; display: inline-block; text-align: left; }
.fit-card li { padding-left: 28px; position: relative; margin-bottom: var(--sp-3); font-size: 16px; }
.fit-card li:last-child { margin-bottom: 0; }
.fit-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.fit-no li::before { content: "×"; position: absolute; left: 2px; color: var(--muted-2); font-weight: 700; font-size: 20px; line-height: 1.3; }
.fit-no { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--wrap-narrow); margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-5) 40px var(--sp-5) 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 0 var(--sp-5); color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- finalne CTA ---------- */
.final {
  text-align: center;
  background:
    radial-gradient(75% 90% at 50% 110%, rgba(var(--accent-rgb), .34), transparent 62%),
    radial-gradient(60% 60% at 50% -10%, rgba(var(--accent-rgb), .12), transparent 60%),
    linear-gradient(175deg, #26283a 0%, #1e1f29 100%);
}
.final .ico-badge { margin-bottom: var(--sp-5); }
.final h2 { margin-bottom: var(--sp-4); }
.final p { color: #b9bec3; }

/* ---------- stopka ---------- */
.footer { background: #1b1c26; color: #9aa0a6; padding: var(--sp-8) 0 var(--sp-6); font-size: 15px; }
.footer a { color: #cdd2d6; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer a:hover { color: #fff; border-color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; gap: var(--sp-6); justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand b { color: #fff; font-family: var(--font-head); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer-bottom {
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: #868c94;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap;
}
.footer-bottom p { margin: 0; max-width: 62ch; }

/* ---------- cookies ---------- */
.cookiebar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: var(--sp-5); max-width: 560px;
  display: none; font-size: 15px; color: var(--ink-soft);
}
.cookiebar.show { display: block; }
.cookiebar p { margin-bottom: var(--sp-4); }
.cookiebar .btn { padding: 10px 20px; font-size: 15px; }

/* ---------- warianty sekcji (zróżnicowanie rytmu) ---------- */
.head-rule::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--accent); margin: var(--sp-5) auto 0;
}
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .head-rule::after { margin-left: 0; }

/* problemy jako karty */
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.problem-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-6); box-shadow: var(--shadow-sm); position: relative;
}
.problem-card .ico-badge { margin-bottom: var(--sp-4); }
.problem-card h3 { font-size: 19px; margin-bottom: var(--sp-3); }
.problem-card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
/* Ozdobny numer karty. Rysowany pseudoelementem, a nie tekstem w HTML:
   to czysta dekoracja, a jako węzeł tekstowy zaniżałby audyt kontrastu. */
.problem-grid { counter-reset: problem-card; }
.problem-card { counter-increment: problem-card; }
.problem-card::after {
  content: counter(problem-card, decimal-leading-zero);
  position: absolute; top: var(--sp-5); right: var(--sp-6);
  font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--paper-2); line-height: 1;
  pointer-events: none;
}

/* ---------- figury szachowe w tle jasnych sekcji ---------- */
section { position: relative; overflow: hidden; }
section > .wrap { position: relative; z-index: 1; }

.fig-deco {
  position: absolute; pointer-events: none; z-index: 0;
  fill: var(--ink); opacity: .05;
  width: 320px; height: 320px;
  will-change: transform;
}
.bg-white .fig-deco { opacity: .045; }
.bg-paper-2 .fig-deco { opacity: .06; }
/* na ciemnych sekcjach dekoracje są jaśniejsze od tła */
.bg-dark .fig-deco, .hero .fig-deco { fill: #ffffff; opacity: .035; }

/* figury w całości widoczne — zapas 80 px, żeby parallax ich nie przyciął */
.fig-tl { top: 80px; left: 2vw; }
.fig-tr { top: 80px; right: 2vw; }
.fig-bl { bottom: 80px; left: 2vw; }
.fig-br { bottom: 80px; right: 2vw; }
.fig-sm { width: 210px; height: 210px; }
.fig-lg { width: 380px; height: 380px; }

@media (max-width: 1200px) {
  .fig-deco { width: 220px; height: 220px; }
  .fig-lg { width: 260px; height: 260px; }
  .fig-sm { width: 170px; height: 170px; }
}
@media (max-width: 900px) {
  /* na wąskim ekranie treść zajmuje całą szerokość, więc maska wygaszająca
     środek zjadłaby kratkę - wygaszamy tylko od dołu i zmniejszamy kafle */
  .hero::before, .bg-dark::before {
    background-size: 104px 104px, 208px 208px;
    background-position: 0 0, 52px 52px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
  }
  .fig-deco { width: 170px; height: 170px; opacity: .04; }
  .fig-lg { width: 200px; height: 200px; }
  .fig-sm { width: 140px; height: 140px; }
  .fig-tl, .fig-tr { top: 40px; }
  .fig-bl, .fig-br { bottom: 40px; }
}

/* blok szerszy niż kolumna tekstu (poniżej 1100 px wraca do pełnej szerokości rodzica) */
.wider { width: 100%; }
@media (min-width: 1100px) {
  .wider {
    width: min(var(--wrap), calc(100vw - 48px));
    position: relative; left: 50%; transform: translateX(-50%);
  }
}

/* oś czasu efektów */
.timeline { position: relative; padding-left: 52px; }
.timeline::before {
  content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px; background: var(--line);
  transform-origin: top center;
}
/* linia rozwija się w dół, gdy sekcja wchodzi w kadr */
html.js .timeline::before { transform: scaleY(0); transition: transform 1.1s cubic-bezier(.22,.61,.36,1); }
html.js .timeline.in::before { transform: scaleY(1); }
.tl-item { position: relative; margin-bottom: var(--sp-7); }
.tl-item:last-child { margin-bottom: 0; }
.tl-item .dot {
  position: absolute; left: -52px; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 6px var(--paper);
}
.tl-item .dot .ico { width: 20px; height: 20px; }
.tl-item h3 { margin-bottom: var(--sp-3); }
.tl-item ul { list-style: none; padding: 0; margin: 0; }
.tl-item ul li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
.tl-item ul li::before {
  content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}

/* wątpliwości */
.doubt { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-5); align-items: start; }
.doubt .ico-badge { margin-bottom: 0; }
.doubt h3 { font-size: 19px; color: var(--ink); }

/* ---------- treść stron prawnych ---------- */
.legal { padding: var(--sp-8) 0; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: var(--sp-6); }
.legal h2 { font-size: clamp(21px, 2.4vw, 26px); margin-top: var(--sp-7); }
.legal h3 { font-size: clamp(18px, 2vw, 20px); margin-top: var(--sp-6); }
.legal p, .legal li { font-size: 16px; }
/* dokumenty od kancelarii: numeracja 1. na głównym poziomie, a. w podpunktach */
.legal ol { padding-left: 1.6em; margin-bottom: var(--sp-5); }
.legal ol > li { margin-bottom: var(--sp-3); padding-left: 4px; }
.legal ol.alpha { list-style-type: lower-alpha; margin-top: var(--sp-3); }
.legal a { color: var(--accent); }
/* pole do wypełnienia we wzorze formularza odstąpienia */
.legal .form-line { border-bottom: 1px solid var(--line); margin: 0 0 var(--sp-5); max-width: 420px; }
.legal .placeholder-note {
  background: var(--accent-soft); border: 1px solid #cdbcf4; border-radius: var(--r-md);
  padding: var(--sp-5); font-size: 15px; color: var(--ink-soft); margin-bottom: var(--sp-7);
}

/* ---------- responsywność ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  section { padding: var(--sp-8) 0; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-grid .photo-slot { aspect-ratio: 3 / 2; max-height: 300px; }
  .author-grid, .cover-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .author-grid .photo-slot { aspect-ratio: 3 / 2; max-height: 300px; }
  .cover-grid img { max-height: 320px; }
  .cards-2, .cards-3, .fit-grid, .problem-grid, .videos { grid-template-columns: 1fr; }
  .quotes { columns: 1; }
  .cta-strip { padding: var(--sp-6) var(--sp-5); }
  .cta-strip .btn { width: 100%; min-width: 0; }
  .proofbar .grid { gap: var(--sp-4) var(--sp-6); }
  .lesson-list { columns: 1; }
  .guarantee { grid-template-columns: 1fr; gap: var(--sp-5); justify-items: center; text-align: center; padding: var(--sp-6) var(--sp-5); }
  .guarantee-badge { margin: 0 auto; width: 220px; height: 220px; }
  .guarantee-badge b { font-size: 62px; }
  .guarantee-badge span { font-size: 17px; }
  .guarantee ul { text-align: left; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  /* na wąskim ekranie zostaje sama cena, dopisek o zwrocie znika */
  .topbar-price { font-size: 14px; white-space: nowrap; }
  .topbar-price .tp-long { display: none; }
  .topbar-right { gap: var(--sp-3); }
  .topbar .btn { white-space: nowrap; padding: 10px 16px; }
  .timeline { padding-left: 0; }
  .timeline::before { display: none; }
  .tl-item .dot { position: static; margin-bottom: var(--sp-4); box-shadow: none; }
  .doubt { grid-template-columns: 1fr; gap: var(--sp-4); }
  .cta-strip .cta-text { font-size: 18px; }
  .topbar .wrap { min-height: 56px; }
  /* poniżej ~420 px nazwa marki nie mieści się obok ceny i CTA - zostaje samo logo */
  @media (max-width: 420px) {
    .brand span { display: none; }
  }
  .brand span { font-size: 13px; }
  .hero { padding: var(--sp-7) 0 var(--sp-7); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .topbar .btn { width: auto; }
  .cookiebar .btn { width: auto; }
  .pricebox { padding: var(--sp-6) var(--sp-5); }
  .quote, .card { padding: var(--sp-5); }
  .lessons details { padding: var(--sp-5) var(--sp-4); }
  .lessons summary { font-size: 17px; flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media print {
  .topbar, .cookiebar, .btn { display: none !important; }
  body { background: #fff; }
}

/* ===== v17: optymalizacja mobile - wyśrodkowanie elementów ===== */
html, body { overflow-x: hidden; }

@media (max-width: 900px) {
  /* zdjęcia autora: mniejsze i na środku, bez ściany zdjęcia na cały ekran */
  .author-photo { max-width: 360px; margin-left: auto; margin-right: auto; }

  /* hero: teksty i CTA na środku */
  .hero-grid > div:first-child { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }

  /* sekcja "kim jestem": nagłówki na środku, akapity zostają do lewej */
  .author-grid .kicker, .author-grid h2 { text-align: center; }

  /* karty: ikona + nagłówek + tekst na środku, listy zostają do lewej */
  .card { text-align: center; }
  .card ul, .card ol { text-align: left; }

  /* wątpliwości: ikona i tekst na środku */
  .doubt { text-align: center; }
  .doubt .ico-badge { margin-left: auto; margin-right: auto; }

  /* pasek liczb na środku */
  .proofbar .grid { justify-content: center; text-align: center; }

  /* stopka: wszystko na środku */
  .footer-grid { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: var(--sp-4); }
  .footer-bottom p { max-width: none; }
  .footer-made { justify-content: center; }
}

@media (max-width: 640px) {
  /* oś czasu: kropka i nagłówek na środku, listy do lewej */
  .tl-item { text-align: center; }
  .tl-item .dot { margin-left: auto; margin-right: auto; }
  .tl-item ul { display: inline-block; text-align: left; }

  /* przyciski na pełną szerokość są już wyżej; wyśrodkuj też te węższe */
  .btn { margin-left: auto; margin-right: auto; }

  /* pricebox: zawartość na środku */
  .pricebox { text-align: center; }
  .pricebox .btn { margin-left: auto; margin-right: auto; }
}
