:root {
  /* paleta ze zdjęcia: szaroniebieska ściana, beżowa bluzka */
  --bg: #f8f6f2;
  --text: #2b2a29;
  --muted: #6a6765;
  --accent: #4d5a63;
  --accent-dark: #3a454d;
  --line: #dcd8d2;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --callbar-height-px: 64px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.7 var(--sans);
  /* miejsce na przyklejony pasek kontaktu na telefonie */
  padding-bottom: calc(var(--callbar-height-px) + env(safe-area-inset-bottom));
}

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

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

strong, summary, .contact__value { font-weight: 500; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 300; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 7vw, 3rem); font-weight: 300; }
h3 { font-size: 1.45rem; }

.wrap { width: min(100% - 2.5rem, 1100px); margin-inline: auto; }
/* FAQ: ta sama lewa krawędź co inne sekcje, węższa kolumna tekstu */
.wrap--narrow > * { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* Nagłówek */
/* telefon i komputer: pasek z logo zawsze przyklejony; na telefonie w wersji kompaktowej */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-block: .6rem; }
/* logo: nazwisko + tytuł zawodowy */
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); line-height: 1.15; }
.logo__text { display: flex; flex-direction: column; }
.logo__photo { flex-shrink: 0; width: 56px; height: 70px; object-fit: cover; }
.logo__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.logo__role { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--text); margin-top: .2rem; }
/* ten sam styl co tytuł psychoterapeutki */
.logo__sub { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--text); margin-top: .1rem; }
.nav { display: none; }

/* Przyciski: min. 48px wysokości, wygodne dla kciuka */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.6rem;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 400; letter-spacing: .02em;
  border: 1px solid var(--accent); border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent-dark); }
.btn--small { min-height: 44px; padding: .5rem 1.1rem; }

/* Hero */
.hero { padding: 16px 0 3.5rem; }
.hero__inner { display: grid; gap: 16px; }
.hero__photo { margin: 0; display: none; } /* telefon: twarz jest w logo */
.hero__text { order: 1; } /* telefon: nazwisko, zdjęcie, opis */
.hero__photo img { width: 100%; aspect-ratio: 5 / 6; max-height: 35vh; object-fit: cover; object-position: center 25%; }
.eyebrow { font-size: 17px; line-height: 1.4; text-wrap: balance; color: var(--muted); margin: .5rem 0 0; font-weight: 400; }
.hero h1 { margin-bottom: .25em; }
/* specjalizacje na pierwszym ekranie */
.spec__title { margin: 1rem 0 .3rem; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--text); }
.spec { list-style: none; padding: 0; margin: 0; }
.spec li { position: relative; padding: .1rem 0 .1rem 1.1rem; font-size: 17px; line-height: 1.45; }
.spec__more { margin: .5rem 0 0; font-size: 17px; color: var(--muted); }
.spec li::before { content: ""; position: absolute; left: 0; top: .85em; width: .45rem; height: 1px; background: var(--accent); }
.lead { font-size: 1.1rem; line-height: 1.55; max-width: 34em; margin: 0; }
.actions { display: grid; gap: .75rem; margin: 2rem 0 1rem; }
.hero__meta { font-size: 17px; color: var(--muted); margin-bottom: 0; }
.hero__faq { display: inline-flex; align-items: center; min-height: 48px; font-size: 17px; }
/* kotwice nie chowają się pod przyklejonym paskiem na komputerze */
section[id], details[id] { scroll-margin-top: 110px; }

/* Sekcje: oddzielone tylko cienką linią */
.section { padding: 4rem 0; border-top: 1px solid var(--line); }
.section__intro { color: var(--muted); }

.cards { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; }
.card { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.card h3 { margin-bottom: .3rem; }
.card p { margin: 0; color: var(--muted); }

.cols { display: grid; gap: 2.5rem; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .7rem 0; border-top: 1px solid var(--line); }
.note { margin-top: 2.5rem; color: var(--muted); max-width: 40em; }

.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.facts span { color: var(--muted); }

/* FAQ: natywne <details>, działa bez JavaScriptu */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; min-height: 52px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 300; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 0 1.3rem; color: var(--muted); }

/* Kontakt */
.contact { display: grid; }
.contact__item { display: block; padding: 1rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.contact__item:last-child { border-bottom: 1px solid var(--line); }
.contact__label { display: block; font-size: 17px; color: var(--muted); }
.contact__value { display: block; font-size: 1.15rem; color: var(--accent-dark); }
.contact__item:hover .contact__value, .contact__item:focus-visible .contact__value { text-decoration: underline; }
.map { width: 100%; height: 300px; border: 0; filter: grayscale(1); }

.footer { padding: 2rem 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer p { margin: .3rem 0; }

/* numery telefonów: cały wiersz klikalny, min. 48 px, numer w jednej linii */
.tel-list { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.tel-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .4rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.tel-list li:last-child a { border-bottom: 1px solid var(--line); }
.tel-list__number { white-space: nowrap; font-weight: 500; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.footer__crisis { margin-top: 1rem; font-size: 17px; max-width: 32rem; }

/* Przyklejony pasek kontaktu: tylko telefon */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
}
.callbar__btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 2px; background: var(--accent); color: #fff; text-decoration: none; border: 1px solid var(--accent); }
.callbar__btn--ghost { background: transparent; color: var(--accent-dark); }

/* Tablet i komputer */
/* telefon: zdjęcie na cały ekran (minus dolny pasek kontaktu) */
.intro { position: relative; height: calc(100vh - var(--callbar-height-px)); height: calc(100svh - var(--callbar-height-px) - env(safe-area-inset-bottom)); overflow: hidden; background: #6f7a82; }
.intro picture, .intro__photo { display: block; width: 100%; height: 100%; }
.intro__photo { object-fit: cover; object-position: center 20%; }
.intro__caption { position: absolute; inset: auto 0 0 0; padding: 5rem 1.25rem 1rem; color: #fff; background: linear-gradient(to top, rgba(28, 33, 38, .8), rgba(28, 33, 38, .45) 60%, transparent); }
.intro__caption p { margin: 0; }
.intro__name { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1.1; margin-bottom: .35rem !important; }
.intro__role { font-size: 17px; font-weight: 600; line-height: 1.35; }
.intro__more { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: .5rem auto 0; color: #fff; font-size: 1.5rem; text-decoration: none; }

@media (min-width: 760px) {
  .intro { display: none; }
  body { padding-bottom: 0; font-size: 18px; }
  .callbar { display: none; }
  .top { position: sticky; }
  .nav { display: flex; align-items: center; gap: 1.8rem; flex-shrink: 0; white-space: nowrap; }
  .logo { margin-right: 1.5rem; }
  /* między 760 a 1100 px linki nie mieszczą się obok logo: zostaje sam przycisk */
  .nav a:not(.btn) { display: none; }
  .nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 17px; }
  .nav a:not(.btn):hover { text-decoration: underline; }
  h1 { font-size: 3rem; }
  .hero { padding: 3rem 0 5rem; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; grid-template-areas: "head photo" "text photo"; align-content: start; column-gap: 5rem; row-gap: 0; }
  .hero__head { grid-area: head; align-self: start; }
  .hero__text { grid-area: text; align-self: start; }
  .hero__photo { grid-area: photo; align-self: start; display: block; }
  .logo__photo { display: none; }
  .logo__name { font-size: 2rem; }
  .logo__role, .logo__sub { font-size: 19px; }
  .hero__photo img { aspect-ratio: 4 / 5; max-height: none; object-fit: cover; object-position: center 20%; }
  .actions { display: flex; flex-wrap: wrap; margin-top: 1.75rem; }
  .cards { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .cols { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .map { height: 100%; min-height: 340px; }
  .section { padding: 6rem 0; }
}

@media (min-width: 1100px) {
  .nav a:not(.btn) { display: inline; }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
