/* =========================================================
   Poznaj Duszę — style strony
   Kolory i czcionki w jednym miejscu (zmienne poniżej).
   ========================================================= */

:root {
  /* kolory z logo */
  --rose:  #f4abaf;
  --peach: #fac7a4;
  --mint:  #a6d3cd;

  /* tekst */
  --ink:   #2b2a33;
  --text:  #3e3b46;
  --muted: #6e6977;

  /* tła */
  --white: #ffffff;
  --cream: #fbf7f3;
  --blush: #fff3ec;
  --night: #2b2730;

  /* akcent (przyciski, linki) */
  --accent:      #a8644b;
  --accent-dark: #8a4f3a;
  --accent-soft: #cb8d75;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 30, .08);
  --wrap: 1140px;

  --font-head: "Merriweather", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 1.4em; }
h4 { font-size: 1.2rem; margin-top: 1.6em; }
p  { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .45em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.prose { max-width: 72ch; }
.prose-center { max-width: 72ch; margin-inline: auto; }

/* kolorowa kreska pod nagłówkiem — kolory z logo */
.accent-line::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: .45em;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--rose), var(--peach), var(--mint));
}
.center .accent-line::after, .accent-line.center::after { margin-inline: auto; }
.center { text-align: center; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.7em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
/* logo ma jasne elementy — na białym tle stoi w ciemnym kółku */
.brand img { width: 48px; height: 48px; background: var(--night); border-radius: 50%; padding: 3px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  padding: .5em .75em;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 600;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); background: var(--blush); }
.nav .btn { margin-left: .5rem; padding: .6em 1.2em; color: #fff; }
.nav .btn:hover { background: var(--accent-dark); color: #fff; }
.nav .account { display: inline-flex; padding: .5em; }
.nav .account svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: #fff;
    box-shadow: 0 20px 30px rgba(0,0,0,.08);
    transform: translateY(-120%);
    transition: transform .25s ease;
    max-height: calc(100vh - 74px);
    overflow: auto;
  }
  .nav.open { transform: none; }
  .nav a { padding: .8em .5em; font-size: 1.05rem; border-bottom: 1px solid #f1ebe6; border-radius: 0; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; border-radius: 999px; border-bottom: 0; }
}

/* ---------- hero (strona główna) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--night) center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(36, 24, 30, .72) 0%, rgba(36, 24, 30, .35) 55%, rgba(36, 24, 30, .1) 100%);
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 82%, var(--rose) 82%, var(--mint) 100%); }
.hero p.lead { font-size: 1.2rem; max-width: 44ch; color: rgba(255,255,255,.92); }

.notice {
  background: var(--blush);
  font-size: .95rem;
  padding: .9rem 0;
  text-align: center;
  border-bottom: 1px solid #f3e3d9;
}
.notice p { margin: 0; }

/* ---------- sekcje ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.cream { background: var(--cream); }
.section.blush { background: var(--blush); }
.section.tight { padding: 3rem 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.top { align-items: start; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame { position: relative; }
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--peach), var(--rose) 55%, var(--mint));
  opacity: .45;
  z-index: -1;
}
.photo-frame { isolation: isolate; }
@media (max-width: 860px) {
  .photo-frame::before { inset: .8rem -.6rem -.8rem .8rem; }
  .photo-frame { margin-right: .6rem; }
}

.bg-image {
  position: relative;
  background: var(--blush) center / cover no-repeat;
  isolation: isolate;
}
.bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 246, 240, .86);
  z-index: -1;
}

/* pytania (strona główna) */
.questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.questions p {
  margin: 0;
  padding: 1.3rem 1.4rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  border-left: 4px solid var(--peach);
}
.questions p:nth-child(3n+2) { border-left-color: var(--rose); }
.questions p:nth-child(3n)   { border-left-color: var(--mint); }

/* karty */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
  font-size: 1rem;
  line-height: 1.7;
}
.card h3 { margin-top: 0; font-size: 1.2rem; }
.card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: var(--blush);
  color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .btn { margin-top: .6rem; }

/* listy z wyróżnionym początkiem (archetypy, talenty) */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  position: relative;
  padding: 1rem 1.2rem 1rem 1.4rem;
  margin-bottom: .7rem;
  background: var(--cream);
  border-radius: 10px;
  border-left: 4px solid var(--peach);
}
.feature-list li:nth-child(3n+2) { border-left-color: var(--rose); }
.feature-list li:nth-child(3n)   { border-left-color: var(--mint); }

.quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ink);
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 34ch;
  line-height: 1.5;
}

.note {
  font-size: .95rem;
  color: var(--muted);
  border-top: 1px solid #eee3db;
  padding-top: 1.2rem;
  margin-top: 2rem;
}

/* nagłówek podstrony */
.page-head {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.2rem, 5vw, 3.2rem);
  background:
    radial-gradient(circle at 85% 20%, rgba(166, 211, 205, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(244, 171, 175, .3), transparent 45%),
    var(--blush);
  text-align: center;
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .3em; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin: 0; }
.breadcrumb a { color: var(--muted); }

/* strony prawne — mniejszy tekst, czytelne listy */
.legal { font-size: 1rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal ol ol, .legal ol ul { margin-top: .5em; }

/* kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.contact-grid .card h3 { font-size: 1.1rem; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ---------- stopka ---------- */
.site-footer {
  background: var(--night);
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  padding: 3.5rem 0 1.5rem;
}
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .9rem; font-family: var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; color: #fff; font-family: var(--font-head); font-weight: 700; }
.footer-brand img { width: 52px; height: 52px; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* ---------- popup ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(30, 22, 26, .55);
}
.modal.open { display: flex; }
.modal-box {
  position: relative;
  width: min(100%, 520px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem 2rem 1.8rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  font-size: 1rem;
}
.modal-box h2 { font-size: 1.45rem; padding-right: 2rem; }
.modal-close {
  position: absolute;
  top: .8rem; right: .8rem;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.modal-close:hover { background: var(--blush); }

/* dostępność */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
