/* ============================================================
   Dr Jerzy Lewko — Medycyna Stylu Życia
   Design system harmonizujący z resetmetaboliczny.com
   Paleta: ciepła kość słoniowa, głęboka szałwiowa zieleń,
   miedziano-terakotowy akcent
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Kolory — light */
  --cream:        #F6F3ED;
  --cream-2:      #EFEBE2;
  --card:         #FFFFFF;
  --card-soft:    #F1EFE7;
  --sage:         #43564A;   /* głęboka szałwia — nagłówki, akcenty */
  --sage-deep:    #313F36;
  --sage-soft:    #6E8275;
  --sage-tint:    #E7EAE2;   /* tła kart z odcieniem zieleni */
  --terra:        #BC6740;   /* miedź / terakota — CTA */
  --terra-deep:   #A2552F;
  --ink:          #2B2A26;   /* główny tekst */
  --ink-soft:     #565248;
  --ink-faint:    #8A8478;
  --line:         #DED8CC;
  --gold:         #C9A24B;

  --bg:           var(--cream);
  --bg-alt:       var(--cream-2);
  --text:         var(--ink);
  --text-soft:    var(--ink-soft);
  --heading:      var(--sage);

  /* Typografia */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Skala */
  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --text-sm:   clamp(0.86rem, 0.83rem + 0.18vw, 0.95rem);
  --text-base: clamp(1rem, 0.97rem + 0.25vw, 1.12rem);
  --text-lg:   clamp(1.18rem, 1.1rem + 0.5vw, 1.4rem);
  --text-xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --text-3xl:  clamp(2.6rem, 2rem + 3.2vw, 4.8rem);

  /* Spacing */
  --sp-1: .5rem;  --sp-2: 1rem;  --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-6: 3rem;   --sp-8: 4rem;  --sp-12: 6rem;  --sp-16: 8rem;

  --radius:  18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(43,42,38,.06);
  --shadow:    0 14px 40px rgba(43,42,38,.10);
  --shadow-lg: 0 30px 70px rgba(43,42,38,.16);

  --maxw: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ---------- DARK ---------- */
html[data-theme="dark"] {
  --cream:     #1A1F1B;
  --cream-2:   #161A16;
  --card:      #222A24;
  --card-soft: #1E251F;
  --sage:      #A9C0AE;
  --sage-deep: #C4D6C8;
  --sage-soft: #87A08C;
  --sage-tint: #243029;
  --terra:     #D98456;
  --terra-deep:#C56F40;
  --ink:       #E9E6DD;
  --ink-soft:  #B6B2A6;
  --ink-faint: #837F74;
  --line:      #34403A;
  --bg:        var(--cream);
  --bg-alt:    var(--cream-2);
  --text:      var(--ink);
  --text-soft: var(--ink-soft);
  --heading:   var(--sage-deep);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
  --shadow:    0 14px 40px rgba(0,0,0,.4);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.5);
}

/* ---------- RESET ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1,h2,h3,h4 { font-family: var(--serif); color: var(--heading); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }

.serif { font-family: var(--serif); }
.italic { font-style: italic; }

::selection { background: var(--terra); color: #fff; }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: var(--terra); display:inline-block; }

.lead { font-size: var(--text-lg); color: var(--text-soft); line-height: 1.55; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: var(--text-sm); font-weight: 600;
  padding: .85rem 1.7rem; border-radius: var(--radius-pill);
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  letter-spacing: .01em;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 8px 22px rgba(188,103,64,.28); }
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(188,103,64,.36); }
.btn-ghost { border: 1.5px solid var(--sage); color: var(--sage); }
.btn-ghost:hover { background: var(--sage); color: var(--cream); transform: translateY(-2px); }
html[data-theme="dark"] .btn-ghost:hover { color: var(--cream-2); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .logo { width: 40px; height: 40px; color: var(--sage); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--heading); letter-spacing: .01em; }
.brand-tag { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-links a { font-size: var(--text-sm); color: var(--text-soft); font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--terra); }
.nav-actions { display: flex; align-items: center; gap: .9rem; }

.theme-toggle { width: 38px; height: 38px; border-radius: 50%; display:grid; place-items:center; color: var(--text-soft); border: 1px solid var(--line); transition: .3s var(--ease); }
.theme-toggle:hover { color: var(--terra); border-color: var(--terra); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(2.5rem,6vw,5rem) 0 clamp(3rem,7vw,6rem); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { font-size: var(--text-3xl); margin-bottom: 1.4rem; }
.hero h1 em { color: var(--terra); font-style: italic; font-weight: 500; }
.hero-sub { font-size: var(--text-lg); color: var(--text-soft); max-width: 30ch; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-meta { display: flex; gap: clamp(1rem,3vw,2.6rem); flex-wrap: wrap; }
.hero-meta .stat { }
.hero-meta .num { font-family: var(--serif); font-size: 1.9rem; color: var(--sage); font-weight: 600; line-height: 1; }
.hero-meta .lbl { font-size: var(--text-xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; margin-top: .4rem; }

.hero-photo { position: relative; }
.hero-photo .frame {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-photo::before {
  content:""; position: absolute; inset: -18px -18px auto auto; width: 60%; height: 60%;
  border: 1.5px solid var(--terra); border-radius: var(--radius-lg); z-index: -1; opacity: .55;
}
.hero-badge {
  position: absolute; left: -24px; bottom: 34px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .85rem; width: 290px; max-width: 78vw;
}
.hero-badge .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-tint); display:grid; place-items:center; color: var(--sage); flex-shrink: 0; }
.hero-badge .ic svg { width: 20px; height: 20px; }
.hero-badge .bt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hero-badge .t { font-family: var(--serif); font-size: 1.05rem; color: var(--heading); line-height: 1.15; }
.hero-badge .d { font-size: var(--text-xs); color: var(--ink-faint); line-height: 1.35; }

/* harmonia banner */
.harmony-strip { background: var(--sage-deep); color: #EEF1EA; }
html[data-theme="dark"] .harmony-strip { background: var(--sage-tint); color: var(--sage-deep); }
.harmony-strip .wrap { padding-top: 1.4rem; padding-bottom: 1.4rem; display:flex; align-items:center; justify-content:center; gap: 1rem; text-align:center; }
.harmony-strip p { font-family: var(--serif); font-style: italic; font-size: var(--text-lg); }

/* ============================================================
   GENERIC SPLIT SECTION
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.split-media.land img { aspect-ratio: 4/3; }
.split h2 { font-size: var(--text-2xl); margin: 1.2rem 0 1.3rem; }
.split p + p { margin-top: 1rem; }
.split p { color: var(--text-soft); }
.split .sig { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; font-size: var(--text-lg); color: var(--sage); }

/* Blok zdjęcia z wystąpienia (figure z podpisem) */
.media-figure { margin: 2.2rem 0 0; }
.media-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; aspect-ratio: 3/2; object-fit: cover; object-position: center 30%; }
.media-figure figcaption { margin-top: .75rem; font-size: var(--text-sm); color: var(--text-soft); font-style: italic; }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem,5vw,3.4rem); }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2 { font-size: var(--text-2xl); margin: 1.1rem 0 1rem; }
.section-head p { color: var(--text-soft); font-size: var(--text-lg); }

/* ---------- PILLARS (filozofia) ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1.2rem; margin-top: 2.4rem; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--terra); }
.pillar .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--sage-tint); color: var(--sage); display:grid; place-items:center; margin-bottom: 1.1rem; }
.pillar .ic svg { width: 24px; height: 24px; }
.pillar h3 { font-size: var(--text-lg); margin-bottom: .5rem; }
.pillar p { font-size: var(--text-sm); color: var(--text-soft); }

/* ---------- PUBLIKACJE (dorobek naukowy) ---------- */
.pubs { list-style: none; counter-reset: pub; display: flex; flex-direction: column; gap: 1.1rem; max-width: 960px; }
.pub { display: flex; gap: 1.4rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.pub:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--terra); }
.pub-year { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--sage); line-height: 1; flex-shrink: 0; width: 64px; padding-top: 2px; border-right: 1px solid var(--line); }
.pub-body { min-width: 0; }
.pub-body h3 { font-family: var(--sans); font-size: var(--text-base); font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: .5rem; }
.pub-authors { font-size: var(--text-sm); color: var(--text-soft); margin-bottom: .15rem; }
.pub-meta { font-size: var(--text-sm); color: var(--ink-faint); margin-bottom: .8rem; }
.pub-meta em { font-style: italic; color: var(--text-soft); }
.pub-link { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-xs); font-weight: 600; color: var(--terra); letter-spacing: .02em; }
.pub-link svg { width: 13px; height: 13px; }
.pub-link:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .pub { flex-direction: column; gap: .7rem; }
  .pub-year { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: .5rem; width: auto; }
}

/* ---------- SERVICES ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.4rem; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.8rem; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service::after { content:""; position:absolute; top:0; left:0; width:100%; height:4px; background: linear-gradient(90deg,var(--sage),var(--terra)); transform: scaleX(0); transform-origin:left; transition: transform .4s var(--ease); }
.service:hover::after { transform: scaleX(1); }
.service .num { font-family: var(--serif); font-size: 2.2rem; color: var(--line); font-weight: 600; line-height: 1; }
.service h3 { font-size: var(--text-lg); margin: .8rem 0 .7rem; }
.service p { font-size: var(--text-sm); color: var(--text-soft); }
.service ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.service li { font-size: var(--text-sm); color: var(--text-soft); display: flex; gap: .55rem; align-items: flex-start; }
.service li::before { content:""; width: 6px; height: 6px; border-radius:50%; background: var(--terra); margin-top: .55rem; flex-shrink:0; }

/* ---------- RESET METABOLICZNY (highlight) ---------- */
.reset-block {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  color: #EEF2EC; padding: clamp(2.4rem,5vw,4rem);
}
html[data-theme="dark"] .reset-block { background: linear-gradient(135deg,#2B3730,#1F2922); border: 1px solid var(--line); }
.reset-block::before { content:""; position:absolute; right:-80px; top:-80px; width: 320px; height: 320px; border:1.5px solid rgba(255,255,255,.14); border-radius:50%; }
.reset-block::after { content:""; position:absolute; right:-30px; bottom:-120px; width: 260px; height: 260px; border:1.5px solid rgba(255,255,255,.1); border-radius:50%; }
.reset-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem,4vw,3.5rem); align-items: center; }
.reset-block .eyebrow { color: #E8C39B; }
.reset-block .eyebrow::before { background: #E8C39B; }
.reset-block h2 { color: #fff; font-size: var(--text-2xl); margin: 1.2rem 0 1.2rem; }
.reset-block h2 em { color: #E8C39B; font-style: italic; }
.reset-block p { color: rgba(238,242,236,.85); }
.reset-block .btn-primary { background: #fff; color: var(--sage-deep); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.reset-block .btn-primary:hover { background: #F1EDE4; }
.reset-pillars { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.6rem; }
.reset-pillars .rp { display:flex; gap:.7rem; align-items:center; font-size: var(--text-sm); }
.reset-pillars .rp svg { width:18px;height:18px;color:#E8C39B;flex-shrink:0; }
.reset-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 1.8rem; backdrop-filter: blur(4px);
}
.reset-card .q { font-family: var(--serif); font-style: italic; font-size: var(--text-lg); color:#fff; line-height: 1.3; }
.reset-card .qsmall { font-size: var(--text-sm); color: rgba(238,242,236,.8); margin-top: .9rem; }

/* ---------- WIEDZA / YOUTUBE ---------- */
.yt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1.4rem; }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); display:flex; flex-direction:column; }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.video-thumb { aspect-ratio: 16/9; background: var(--sage-tint); position: relative; display:grid; place-items:center; overflow:hidden; }
.video-thumb .grad { position:absolute; inset:0; background: linear-gradient(135deg, var(--sage), var(--sage-deep)); opacity:.92; }
.video-thumb .topic { position: absolute; bottom: 12px; left: 14px; right: 14px; z-index:2; font-family: var(--serif); color:#fff; font-size: 1.05rem; line-height:1.2; }
.video-thumb .play { position: relative; z-index: 2; width: 54px; height: 54px; border-radius:50%; background: rgba(255,255,255,.92); display:grid; place-items:center; transition: transform .3s var(--ease); }
.video-card:hover .play { transform: scale(1.12); }
.video-thumb .play svg { width: 22px; height: 22px; color: var(--terra); margin-left: 3px; }
.video-body { padding: 1.1rem 1.2rem 1.3rem; }
.video-body .tag { font-size: var(--text-xs); color: var(--terra); text-transform: uppercase; letter-spacing:.12em; font-weight:600; }
.video-body h3 { font-size: var(--text-base); margin-top: .5rem; color: var(--text); font-family: var(--sans); font-weight:600; line-height: 1.35; }

.channels { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1rem; margin-top: 1.6rem; }
.channel { display:flex; gap:.9rem; align-items:center; background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; transition: .3s var(--ease); }
.channel:hover { border-color: var(--terra); transform: translateY(-3px); }
.channel .ic { width: 42px; height:42px; border-radius:12px; display:grid; place-items:center; flex-shrink:0; color:#fff; }
.channel .ic svg { width:22px; height:22px; }
.channel .t { font-weight:600; font-size: var(--text-sm); color: var(--text); }
.channel .d { font-size: var(--text-xs); color: var(--ink-faint); }

/* ---------- KONTAKT / GABINET ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.cinfo-row { display:flex; gap:1rem; align-items:flex-start; background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; transition:.3s var(--ease); }
.cinfo-row:hover { border-color: var(--terra); }
.cinfo-row .ic { width: 44px; height:44px; border-radius:12px; background: var(--sage-tint); color: var(--sage); display:grid; place-items:center; flex-shrink:0; }
.cinfo-row .ic svg { width:21px; height:21px; }
.cinfo-row .lbl { font-size: var(--text-xs); text-transform: uppercase; letter-spacing:.12em; color: var(--ink-faint); font-weight:600; }
.cinfo-row .val { font-size: var(--text-base); color: var(--text); margin-top: 3px; }
.cinfo-row a.val:hover { color: var(--terra); }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; border:1px solid var(--line); background: var(--sage-tint); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display:block; filter: grayscale(.15); }
html[data-theme="dark"] .map iframe { filter: grayscale(.3) invert(.92) hue-rotate(180deg) brightness(.95); }
.map-link { position: absolute; right: 14px; bottom: 14px; display:inline-flex; align-items:center; gap:.4rem; background: var(--card); color: var(--terra); border:1px solid var(--line); padding: .55rem 1rem; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight:600; box-shadow: var(--shadow-sm); transition:.3s var(--ease); }
.map-link:hover { transform: translateY(-2px); border-color: var(--terra); }
.map-link svg { width: 14px; height: 14px; }
.contact-note { font-size: var(--text-sm); color: var(--ink-faint); margin-top: 1rem; line-height:1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--sage-deep); color: #C9D2C9; padding-top: clamp(3rem,6vw,5rem); }
html[data-theme="dark"] .footer { background: #11140F; }
.footer a { color: #C9D2C9; transition: color .2s; }
.footer a:hover { color: #E8C39B; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem,4vw,3rem); padding-bottom: 2.6rem; }
.footer-brand .logo { width: 42px; height:42px; color:#E8C39B; margin-bottom: 1rem; }
.footer-brand .fname { font-family: var(--serif); font-size: 1.35rem; color:#fff; }
.footer-brand p { font-size: var(--text-sm); color: #A6B3A8; margin-top: .8rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: var(--text-xs); text-transform: uppercase; letter-spacing:.16em; color:#E8C39B; margin-bottom: 1.1rem; font-weight:700; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:.7rem; }
.footer-col a, .footer-col li { font-size: var(--text-sm); }
.footer-social { display:flex; gap:.7rem; margin-top: 1.2rem; }
.footer-social a { width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.2); display:grid; place-items:center; }
.footer-social a:hover { border-color:#E8C39B; background: rgba(255,255,255,.06); }
.footer-social svg { width:18px; height:18px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 1.6rem 0; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size: var(--text-xs); color:#92A096; }
.footer-legal .legal-links { display:flex; gap:1.3rem; flex-wrap:wrap; }

.disclaimer { background: var(--bg-alt); border-top:1px solid var(--line); }
.disclaimer .wrap { padding: 1.6rem 0; }
.disclaimer p { font-size: var(--text-xs); color: var(--ink-faint); line-height:1.6; max-width: 95ch; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero { padding: clamp(3rem,6vw,5rem) 0 clamp(1.5rem,3vw,2.5rem); background: var(--bg-alt); border-bottom:1px solid var(--line); }
.legal-hero h1 { font-size: var(--text-2xl); margin-top:.8rem; }
.legal-hero p { color: var(--text-soft); margin-top: .6rem; }
.legal-body { padding: clamp(2.5rem,5vw,4rem) 0 clamp(3rem,7vw,6rem); }
.legal-body .doc { max-width: 75ch; }
.legal-body h2 { font-size: var(--text-xl); margin: 2.2rem 0 .9rem; }
.legal-body h3 { font-size: var(--text-lg); font-family: var(--sans); font-weight:700; color: var(--text); margin: 1.5rem 0 .6rem; }
.legal-body p, .legal-body li { color: var(--text-soft); font-size: var(--text-base); }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.2rem 1.3rem; display:flex; flex-direction:column; gap:.5rem; }
.legal-body strong { color: var(--text); }
.legal-body .updated { font-size: var(--text-xs); color: var(--ink-faint); text-transform:uppercase; letter-spacing:.1em; }
.back-link { display:inline-flex; align-items:center; gap:.4rem; color: var(--terra); font-size: var(--text-sm); font-weight:600; margin-bottom:1rem; }
.back-link svg { width:16px; height:16px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay:.08s; } .reveal.d2 { transition-delay:.16s; } .reveal.d3 { transition-delay:.24s; } .reveal.d4 { transition-delay:.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; margin: 0 auto; }
  .reset-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; background: var(--bg);
    padding: 1.5rem 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .4s var(--ease); box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: var(--text-base); }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 4/3; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -24px; }
  .hero-photo { margin-bottom: 2rem; }
  .footer-legal { flex-direction: column; }
}

/* ===================== OŚ CZASU (KIM JESTEM) ===================== */
.timeline { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.timeline-title { font-family: var(--serif); font-weight: 500; font-size: var(--text-xl); color: var(--heading); margin-bottom: 2rem; }
.tl { list-style: none; display: grid; gap: 0; position: relative; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 1.4rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl-item:last-child { border-bottom: none; }
.tl-year { font-family: var(--serif); font-style: italic; font-size: var(--text-lg); color: var(--terra); white-space: nowrap; padding-top: 2px; }
.tl-body h4 { font-size: var(--text-base); font-weight: 600; color: var(--heading); margin-bottom: .35rem; }
.tl-body p { color: var(--text-soft); font-size: var(--text-sm); line-height: 1.65; max-width: 60ch; }
@media (max-width: 620px) {
  .tl-item { grid-template-columns: 1fr; gap: .4rem; }
  .tl-year { font-size: var(--text-base); }
}

/* ===================== GRUPY FB ===================== */
.fb-groups { margin-top: 1.5rem; padding: 1.6rem 1.8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fb-groups-label { display: block; font-size: var(--text-sm); color: var(--text-soft); margin-bottom: 1rem; }
.fb-groups-list { display: flex; flex-wrap: wrap; gap: .8rem; }
.fb-group { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.2rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--bg); color: var(--heading); font-weight: 600; font-size: var(--text-sm);
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease); }
.fb-group svg { width: 15px; height: 15px; opacity: .7; }
.fb-group:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-2px); }

/* ===================== STREFA WIEDZY — FILTRY + KARTY ===================== */
.art-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 3rem; }
.art-filter { padding: .5rem 1.15rem; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: transparent; color: var(--text-soft); font-family: var(--sans); font-size: var(--text-sm); font-weight: 500;
  cursor: pointer; transition: .3s var(--ease); }
.art-filter:hover { color: var(--heading); border-color: var(--sage-soft); }
.art-filter.is-active { background: var(--sage); color: #fff; border-color: var(--sage); }
html[data-theme="dark"] .art-filter.is-active { color: var(--bg); }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.art-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.8rem 1.7rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sage-soft); }
.art-cat { align-self: flex-start; font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--terra); padding: .25rem .65rem; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.art-card h3 { font-family: var(--serif); font-weight: 600; font-size: var(--text-lg); line-height: 1.25; color: var(--heading); }
.art-card p { color: var(--text-soft); font-size: var(--text-sm); line-height: 1.65; flex: 1; }
.art-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-size: var(--text-sm);
  font-weight: 600; color: var(--terra); transition: gap .3s var(--ease); }
.art-more svg { width: 16px; height: 16px; }
.art-card:hover .art-more { gap: .7rem; }
.art-card.is-hidden { display: none; }
@media (max-width: 980px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .art-grid { grid-template-columns: 1fr; } }

/* ===================== STRONA ARTYKUŁU ===================== */
.article-main { padding: calc(74px + 4rem) 0 5rem; }
.article { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 clamp(1.2rem, 5vw, 2rem); }
.art-back { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--text-sm); font-weight: 600;
  color: var(--text-soft); margin-bottom: 2.2rem; transition: color .3s var(--ease), gap .3s var(--ease); }
.art-back svg { width: 17px; height: 17px; }
.art-back:hover { color: var(--terra); gap: .75rem; }
.art-head { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.art-head .eyebrow { margin-bottom: 1.1rem; }
.art-head h1 { font-family: var(--serif); font-weight: 600; font-size: var(--text-2xl); line-height: 1.12; color: var(--heading); margin-bottom: 1.3rem; }
.art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: var(--text-sm); color: var(--text-soft); }
.art-byline .dot { opacity: .5; }
.art-body { font-size: var(--text-base); line-height: 1.85; color: var(--text); }
.art-body p { margin-bottom: 1.4rem; }
.art-body h2 { font-family: var(--serif); font-weight: 600; font-size: var(--text-xl); color: var(--heading);
  margin: 2.6rem 0 1.1rem; line-height: 1.2; }
.art-body strong { color: var(--heading); font-weight: 600; }
.art-sign { font-family: var(--serif); font-style: italic; font-size: var(--text-lg); color: var(--terra); margin-top: 2rem; }
.art-disclaimer { margin-top: 3rem; padding: 1.4rem 1.6rem; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: var(--text-sm); line-height: 1.7; color: var(--text-soft); }
.art-disclaimer strong { color: var(--heading); }
.art-cta { margin-top: 2.5rem; padding: 2rem 2rem; background: var(--sage-tint); border-radius: var(--radius-lg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.art-cta h3 { font-family: var(--serif); font-weight: 600; font-size: var(--text-lg); color: var(--heading); margin-bottom: .4rem; }
.art-cta p { color: var(--text-soft); font-size: var(--text-sm); }
.art-cta .btn svg { width: 17px; height: 17px; }
@media (max-width: 560px) { .art-cta { flex-direction: column; align-items: flex-start; } }

/* ---- Kontakt: godziny + akcje (integracja z wizytówką Google) ---- */
.val-sub { display:inline-block; margin-top:2px; font-size:.86rem; opacity:.72; font-style:italic; }
.contact-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.contact-actions .btn { font-size:.96rem; }
@media (max-width:560px){ .contact-actions { flex-direction:column; align-items:stretch; } .contact-actions .btn { justify-content:center; } }

/* ===== Przycisk odsłuchu artykułu (lektor) ===== */
.listen-bar{
  display:flex;align-items:center;gap:.85rem;flex-wrap:wrap;
  margin:1.4rem 0 .4rem;
}
.listen-btn{
  display:inline-flex;align-items:center;gap:.6rem;
  font:600 .95rem/1 inherit;font-family:inherit;
  color:var(--sage);background:var(--sage-tint);
  border:1px solid rgba(67,86,74,.22);border-radius:999px;
  padding:.62rem 1.15rem;cursor:pointer;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .12s ease;
}
.listen-btn:hover{background:var(--sage);color:#fff;box-shadow:0 4px 14px rgba(67,86,74,.18);}
.listen-btn:active{transform:translateY(1px);}
.listen-btn.is-playing{background:var(--sage);color:#fff;}
.listen-btn svg{width:18px;height:18px;flex:none;}
.listen-note{font-size:.82rem;color:var(--ink-faint);}
@media (max-width:560px){.listen-note{display:none;}}

/* ===== Sekcja newsletter ===== */
.newsletter-block{
  background:var(--sage-deep);border-radius:24px;
  padding:clamp(2rem,5vw,3.5rem);position:relative;overflow:hidden;
}
.newsletter-block::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(120% 120% at 100% 0%, rgba(201,162,75,.16), transparent 55%);
  pointer-events:none;
}
.newsletter-grid{
  display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(1.5rem,4vw,3rem);
  align-items:center;position:relative;z-index:1;
}
.newsletter-copy .eyebrow{color:var(--gold);}
.newsletter-copy h2{color:#fff;margin:.4rem 0 .8rem;font-size:clamp(1.5rem,3vw,2rem);}
.newsletter-copy p{color:rgba(255,255,255,.82);line-height:1.65;margin-bottom:1rem;}
.newsletter-bullets{list-style:none;padding:0;margin:1rem 0 0;display:grid;gap:.55rem;}
.newsletter-bullets li{
  display:flex;align-items:flex-start;gap:.6rem;color:rgba(255,255,255,.9);font-size:.96rem;
}
.newsletter-bullets svg{width:18px;height:18px;flex:none;color:var(--gold);margin-top:.15rem;}
.newsletter-form-card{
  background:rgba(255,255,255,.97);border-radius:18px;padding:1.6rem;
  box-shadow:0 20px 50px rgba(0,0,0,.22);
}
.newsletter-form-card .gift{
  display:flex;align-items:center;gap:.7rem;margin-bottom:1rem;
  padding:.7rem .85rem;background:var(--sage-tint);border-radius:12px;
}
.newsletter-form-card .gift svg{width:26px;height:26px;color:var(--sage);flex:none;}
.newsletter-form-card .gift strong{display:block;color:var(--sage-deep);font-size:.95rem;}
.newsletter-form-card .gift span{font-size:.82rem;color:var(--ink-soft);}
.nl-field{margin-bottom:.85rem;}
.nl-field label{display:block;font-size:.82rem;color:var(--ink-soft);margin-bottom:.3rem;font-weight:600;}
.nl-field input[type=email],.nl-field input[type=text]{
  width:100%;padding:.8rem .95rem;border:1px solid #D9D5CC;border-radius:10px;
  font:inherit;font-size:1rem;color:var(--ink);background:#fff;transition:border-color .2s;
}
.nl-field input:focus{outline:none;border-color:var(--sage);box-shadow:0 0 0 3px rgba(67,86,74,.12);}
.nl-consent{display:flex;align-items:flex-start;gap:.55rem;margin:.6rem 0 1rem;}
.nl-consent input{margin-top:.2rem;flex:none;width:16px;height:16px;accent-color:var(--sage);}
.nl-consent label{font-size:.78rem;color:var(--ink-faint);line-height:1.5;}
.nl-consent a{color:var(--sage);text-decoration:underline;}
.newsletter-form-card button[type=submit]{
  width:100%;background:var(--sage);color:#fff;border:none;border-radius:10px;
  padding:.9rem;font:inherit;font-weight:700;font-size:1rem;cursor:pointer;
  display:flex;align-items:center;justify-content:center;gap:.5rem;
  transition:background .2s,transform .1s;
}
.newsletter-form-card button[type=submit]:hover{background:var(--sage-deep);}
.newsletter-form-card button[type=submit]:active{transform:translateY(1px);}
.newsletter-form-card button svg{width:18px;height:18px;}
.nl-privacy-note{font-size:.74rem;color:var(--ink-faint);text-align:center;margin-top:.7rem;line-height:1.5;}
.nl-msg{display:none;text-align:center;padding:1rem;border-radius:10px;font-size:.95rem;margin-top:.5rem;}
.nl-msg.ok{display:block;background:var(--sage-tint);color:var(--sage-deep);}
.nl-msg.err{display:block;background:#F6E5E5;color:#8A2B2B;}
@media (max-width:780px){.newsletter-grid{grid-template-columns:1fr;}}
