/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/montserrat-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/montserrat-latin-300-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-500-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-600-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-700-normal.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --bg: #F1EFEC;
  --ink: #1B1E24;
  --muted: #4F535A;
  --soft: #8A8D92;
  --line: #CFCBC5;
  --dark: #1E2633;      /* granat z marynarki na zdjęciu – jedyny akcent */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.85 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong { font-weight: 600; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* Uppercase micro-label used across the site */
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}

/* ---------- Top navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(241, 239, 236, 0.94);
  backdrop-filter: blur(6px);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.brand b { font-weight: 700; }
.topbar.is-scrolled .brand { opacity: 1; }
.nav { display: flex; gap: 10px; }
.nav a {
  display: inline-block; padding: 10px 16px;
  border: 1px solid var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); line-height: 1.2;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero h1 {
  margin: 0; font-weight: 300; font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1;
}
.hero h1 b { font-weight: 700; }
.hero__roles {
  margin: 36px 0 0; text-align: right;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.hero__intro { max-width: 720px; margin: 72px auto 0; text-align: center; color: var(--muted); font-size: 15.5px; }
.hero__intro strong { color: var(--ink); }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; min-width: 200px;
  font: 600 11px/1.2 var(--font); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover, .btn--solid { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-title {
  display: flex; align-items: center; gap: 32px;
  margin: 0 0 56px; font-weight: 300; font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
}
.section-title b { font-weight: 700; }
.section-title::after { content: ""; flex: 0 1 180px; height: 1px; background: var(--soft); }

/* About */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: 64px; align-items: start; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
.about__text { color: var(--muted); font-size: 15.5px; }
.about__text h2 { margin: 6px 0 22px; font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }

/* Areas of help */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.area h3 { margin: 0 0 16px; }
.area ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 15px; }
.area li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.area li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 1px; background: var(--soft); }

/* Rules of cooperation */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.rule h3 { margin: 0 0 14px; }
.rule p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Qualifications */
.quals { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.quals > li { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.quals > li:last-child { border-bottom: 1px solid var(--line); }
.quals .yr { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--soft); padding-top: 3px; }
.quals strong { display: block; font-weight: 500; }
.quals span { display: block; color: var(--muted); font-size: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__item { margin-bottom: 26px; }
.contact__item .label { display: block; margin-bottom: 6px; }
.contact__item p, .contact__item a { margin: 0; font-size: 15.5px; color: var(--ink); }
.contact__item a { text-decoration: none; }
.contact__item a:hover { text-decoration: underline; }
.contact__item small { display: block; color: var(--muted); font-size: 13.5px; }
.note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.note a { color: var(--ink); }

.form { display: grid; gap: 6px; }
.field { display: block; }
.field input, .field textarea {
  width: 100%; padding: 14px 0 10px; font: 300 15px var(--font); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--soft); border-radius: 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.form__hint { font-size: 12.5px; color: var(--muted); margin: 14px 0 6px; line-height: 1.6; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 6px 0 20px; }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--dark); flex: none; }
.consent a { color: var(--ink); }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer a { color: var(--muted); }

/* ---------- Subpages ---------- */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-weight: 300; font-size: clamp(26px, 4vw, 36px); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 32px; line-height: 1.2; }
.page h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); }
.page li { margin-bottom: 6px; }
.page__back { margin-top: 36px; }
.backlink { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rules { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .about__photo { max-width: 420px; }
}
@media (max-width: 760px) {
  .topbar__inner { height: 64px; }
  .brand { opacity: 1; font-size: 12px; }
  .nav a:not(.nav__cta) { display: none; }
  .hero { padding: 48px 0 24px; }
  .hero h1 b { display: block; }
  .hero__roles { text-align: left; margin-top: 20px; line-height: 2; }
  .hero__intro { margin-top: 44px; text-align: left; }
  .hero__actions { justify-content: flex-start; }
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 40px; gap: 20px; }
  .section-title::after { flex-basis: 60px; }
  .areas, .rules { grid-template-columns: 1fr; gap: 40px; }
  .quals > li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15px; }
  .btn { width: 100%; }
}
.form__title { margin: 0 0 4px; }

/* Niskie ekrany telefonów: formularz bardziej zwarty, żeby mieścił się w całości */
@media (max-width: 760px) and (max-height: 720px) {
  .field input { padding: 10px 0 8px; }
  .field textarea { min-height: 70px; height: 84px; padding-top: 10px; }
  .form__hint { margin: 10px 0 4px; }
  .consent { margin-bottom: 14px; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .field textarea { min-height: 52px; height: 60px; }
  .form .btn { padding: 13px 20px; }
}

/* Szkolenia – dwie grupy */
.courses { list-style: none; margin: 0; padding: 0; }
.courses + .courses { margin-top: 12px; }
.courses li { position: relative; padding-left: 18px; font-weight: 500; }
.courses li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 8px; height: 1px; background: var(--soft); }

/* Rezerwacja przez TwójPsycholog */
.btn--book { margin-top: 10px; min-width: 0; font-size: 10.5px; }
.contact__item .btn--book { color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; padding: 13px 20px; text-align: center; }
.contact__item .btn--book:hover { color: #fff; text-decoration: none; }
.form__alt { margin: -2px 0 6px; font-size: 13px; color: var(--muted); }
.form__alt a { color: var(--ink); }

/* Przycisk "do góry" – tylko telefony/tablety */
.to-top {
  position: fixed; right: 16px; bottom: 20px; z-index: 30;
  width: 46px; height: 46px; display: none; align-items: center; justify-content: center;
  background: rgba(241, 239, 236, 0.96); color: var(--ink);
  border: 1px solid var(--ink); text-decoration: none;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:active, .to-top:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
@media (max-width: 900px) { .to-top { display: flex; } }
