/* AI dla Seniora — arkusz stylów wspólny dla wszystkich podstron */

:root {
  --teal:        #579F9B;
  --teal-dark:   #2C5754;
  --teal-press:  #24413F;
  --teal-tint:   #DCEAE8;
  --teal-tint-2: #B9D4D1;
  --cream:       #FBF9F4;
  --cream-deep:  #F2EEE5;
  --grey-green:  #5A6968;
  --ink:         #2A3433;
  --white:       #FFFFFF;

  --serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --edge: clamp(20px, 5vw, 64px);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 21px;
  line-height: 1.7;
  text-wrap: pretty;
}
@media (max-width: 700px) { body { font-size: 19px; } }

h1, h2, h3 { font-family: var(--serif); color: var(--teal-dark); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 7vw, 80px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: 42ch; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
::selection { background: var(--teal-tint); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--edge); }
section { padding: clamp(40px, 6vw, 80px) 0; }
.lead { font-size: 1.14em; line-height: 1.6; }
.small { font-size: 17px; line-height: 1.55; color: var(--grey-green); max-width: 52ch; }
.kicker { display: block; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-green); margin: 0 0 14px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--cream); padding: 16px; z-index: 60; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- nagłówek ---------- */

.site-head { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 2px solid var(--ink); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; }
.wordmark .mark { position: relative; display: inline-block; font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 0.9; letter-spacing: -0.045em; background: var(--cream); padding: 0.12em; margin: -0.12em; }
.wordmark .mark .paper { color: var(--cream); text-shadow: 0.036em 0.025em 0 var(--cream), -0.031em -0.023em 0 var(--cream); }
.wordmark .mark .plate { position: absolute; inset: 0.12em; mix-blend-mode: multiply; transition: translate .25s ease; }
.wordmark .mark .plate-a { color: var(--teal); translate: 0.036em 0.025em; }
.wordmark .mark .plate-b { color: var(--teal-dark); translate: -0.031em -0.023em; }
.wordmark:hover .mark .plate-a { translate: 0.052em 0.036em; }
.wordmark:hover .mark .plate-b { translate: -0.046em -0.033em; }
.wordmark .rest { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: -0.01em; }
@media (max-width: 700px) { .wordmark .mark { font-size: 27px; } .wordmark .rest { font-size: 19px; } }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 18px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .18s, color .18s; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--teal-dark); border-bottom-color: var(--teal); }
#pasek { height: 4px; background: var(--teal); width: 0; transition: width .08s linear; }

@media (max-width: 700px) {
  .site-head .wrap { flex-direction: column; align-items: stretch; }
  .site-nav { gap: 0; }
  .site-nav a { display: block; padding: 12px 0; border-top: 2px solid var(--cream-deep); border-bottom: 0; }
  .site-nav a:hover, .site-nav a[aria-current] { border-bottom: 0; }
}

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 21px; line-height: 1.3;
  background: var(--teal-dark); color: var(--white);
  border: 2px solid var(--teal-dark); border-radius: 2px;
  padding: 16px 30px; min-height: 62px; text-decoration: none; cursor: pointer;
  transition: background .18s, border-color .18s, transform .1s, box-shadow .18s;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: var(--white); box-shadow: 0 3px 10px rgba(42,52,51,0.16); }
.btn:active { transform: translateY(1px); background: var(--teal-press); border-color: var(--teal-press); }

.btn-quiet { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn-quiet:hover { background: var(--teal-tint); color: var(--teal-dark); border-color: var(--teal); box-shadow: none; }
.btn-quiet:active { background: var(--teal-tint-2); border-color: var(--teal); }

.btn-small { font-size: 18px; padding: 12px 20px; min-height: 52px; white-space: nowrap; }
.btn-call::before { content: "\260E"; font-size: 1.1em; line-height: 1; }

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { margin-bottom: 22px; }
.hero h1 span { display: block; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--teal); margin: 0 0 26px; max-width: 26ch; }
.hero .lead { font-size: clamp(21px, 2.2vw, 24px); max-width: 36ch; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- cytaty ---------- */

.voices { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 22px; max-width: 46ch; }
.voices li { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 29px); line-height: 1.4; padding: 6px 0 6px 22px; border-left: 4px solid var(--teal); }

/* ---------- siatki ---------- */

.cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 44px 40px; }
.cols p { margin: 0; font-size: 19px; line-height: 1.65; max-width: none; }
.num { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--teal-tint-2); margin-bottom: 12px; }
.stat { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 6vw, 66px); line-height: 1; color: var(--teal-dark); letter-spacing: -0.02em; margin-bottom: 10px; }

.rules { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 16px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); max-width: 58rem; }
.rules li { border-left: 4px solid var(--teal); padding: 4px 0 4px 16px; font-weight: 700; font-size: 20px; color: var(--teal-dark); }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 34px 40px; }
.flow li { border-top: 2px solid var(--ink); padding-top: 16px; }
.flow .num { color: var(--teal); font-size: 34px; }
.flow p { margin: 0; font-size: 19px; line-height: 1.6; max-width: none; }

/* ---------- rozwijany program ---------- */

.akordeon { max-width: 54rem; border-top: 1px solid rgba(42,52,51,0.2); }
.akordeon details { border-bottom: 1px solid rgba(42,52,51,0.2); }
.akordeon summary {
  display: flex; align-items: baseline; gap: 18px; list-style: none; cursor: pointer;
  padding: 22px 4px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(21px, 2.3vw, 26px); line-height: 1.3; color: var(--ink);
  transition: color .18s;
}
.akordeon summary::-webkit-details-marker { display: none; }
.akordeon summary:hover { color: var(--teal-dark); }
.akordeon .krok { color: var(--teal); min-width: 1.6em; }
.akordeon .tytul { flex: 1; }
.akordeon .znak { font-size: 30px; line-height: 1; color: var(--teal); }
.akordeon .znak::after { content: "+"; }
.akordeon details[open] .znak::after { content: "\2212"; }
.akordeon p { margin: 0; padding: 0 4px 26px calc(1.6em + 18px); font-size: 20px; line-height: 1.65; max-width: 56ch; }
.rozwin { font-family: var(--sans); font-size: 17px; font-weight: 700; background: transparent; color: var(--teal-dark); border: 0; border-bottom: 2px solid var(--teal); padding: 4px 0; margin: 0 0 24px; cursor: pointer; transition: color .18s; }
.rozwin:hover { color: var(--teal); }

/* ---------- prowadzący, opinie ---------- */

.author { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 36px 48px; max-width: 58rem; align-items: stretch; }
.author img { width: 100%; display: block; border-radius: 2px; object-fit: cover; object-position: 50% 20%; }
@media (min-width: 860px) { .author img { height: 100%; } }
.author p { max-width: 42ch; }

.opinie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.opinie blockquote { margin: 0; padding: 26px 24px; background: var(--cream-deep); border-top: 3px solid var(--teal); border-radius: 2px; }
.opinie blockquote p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; margin: 0 0 18px; max-width: none; }
.opinie footer { font-size: 17px; color: var(--grey-green); }
.uwaga { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; line-height: 1.5; color: var(--grey-green); max-width: 50ch; margin: 0 0 36px; }

/* ---------- formularz ---------- */

.form-block { background: var(--cream-deep); border-radius: 2px; padding: clamp(26px, 4vw, 48px); max-width: 46rem; }
/* sekcja zapisu: formularz MailerLite ma własne tło, więc nie pakujemy go w drugie pudełko */
#zapis .form-block { background: transparent; padding: 0; }
#zapis .form-block .small { margin-top: 20px; }
.form-block h2 { margin-top: 0; font-size: clamp(28px, 3.4vw, 40px); }
.pola { max-width: 30rem; }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 19px; }
.field input {
  width: 100%; font-family: var(--sans); font-size: 19px; padding: 14px; min-height: 58px;
  border: 2px solid var(--grey-green); border-radius: 2px; background: var(--white); color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }

/* ---------- pas i stopka ---------- */

.strip { background: var(--cream-deep); }
.contact-lines { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-lines li { padding: 6px 0; font-size: 20px; }

.site-foot { border-top: 2px solid var(--ink); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 32px; padding-bottom: 48px; font-size: 17px; color: var(--grey-green); }
.site-foot p { margin: 0; max-width: none; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot .social { display: flex; gap: 16px; align-items: center; }
.site-foot .social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 2px; color: var(--teal-dark); transition: color .15s; }
.site-foot .social a:hover { color: var(--teal); }
.site-foot .social a:active { color: var(--teal-press); }
.site-foot .social a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.site-foot .social svg { display: block; }

/* ---------- dokument (polityka) ---------- */

.doc { max-width: 46rem; }
.doc h2 { margin-top: 44px; font-size: clamp(25px, 3vw, 32px); }
.doc ul { max-width: 46ch; padding-left: 24px; }
.doc li { margin-bottom: 12px; }

/* ---------- zdjęcia ---------- */

.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-foto { margin: 0; }
.hero-foto img { width: 100%; max-width: 440px; display: block; border-radius: 2px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } .hero-foto img { max-width: 100%; margin-left: auto; } }

.foto-pas { margin: 0 0 36px; max-width: 58rem; width: 100%; }
.foto-pas img { width: 100%; display: block; border-radius: 2px; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 8%; }
.foto-pas.foto-lewa img { object-position: 30% 14%; }
.foto-pas figcaption { font-size: 17px; color: var(--grey-green); margin-top: 10px; }

.metoda-grid { display: grid; gap: clamp(24px, 4vw, 44px); grid-template-columns: minmax(0, 1fr); max-width: 58rem; align-items: start; }
.metoda-grid p { max-width: 42ch; }
.metoda-grid p:last-child { margin-bottom: 0; }
.metoda-foto { margin: 0; align-self: stretch; }
.metoda-foto img { border-radius: 2px; }
@media (min-width: 860px) {
  .metoda-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .metoda-foto img { height: 100%; aspect-ratio: auto; }
}

.kontakt-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); max-width: 58rem; align-items: start; }
.kontakt-foto { margin: 0; }
.kontakt-foto img { width: 100%; max-width: 320px; display: block; border-radius: 2px; }
@media (min-width: 900px) { .kontakt-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }

/* ---------- baner zgody na cookies ---------- */

.cookie-baner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--cream-deep); border: 2px solid var(--ink); border-radius: 2px;
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 8px 28px rgba(42, 52, 51, 0.18);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.cookie-baner.widoczny { opacity: 1; transform: none; }
.cookie-tresc { display: grid; gap: 18px; max-width: 68rem; margin: 0 auto; align-items: center; }
.cookie-tresc p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 62ch; }
.cookie-przyciski { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-przyciski .btn { font-size: 19px; padding: 13px 24px; min-height: 54px; }
@media (min-width: 860px) {
  .cookie-tresc { grid-template-columns: minmax(0, 1fr) auto; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-baner { transition: none; }
}

/* ---------- pojawianie się sekcji ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.widoczna { opacity: 1; transform: none; }

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

@media (max-width: 700px) {
  .btn { width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
}
