/* Psychoterapia systemowa Zakopane — warstwa projektu (terracotta-cream, Fraunces+Work Sans) */
:root {
  --cream: #F8F3EC; --paper: #F2EADF; --terra: #A8543A; --terra-deep: #8A4430;
  --pine: #3E5C50; --pine-deep: #2E463C; --ink: #2B2622; --ink-2: #5F554C;
  --line: #E3D8C8;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.7; margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; color: var(--ink); }
a { color: var(--terra-deep); }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.container.narrow { width: min(760px, calc(100% - 40px)); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* --- HEADER ------------------------------------------------------------------------ */
.site-header {
  background: var(--cream); border-bottom: 1px solid var(--line); backdrop-filter: none;
}
.site-header .container { padding-block: 10px; }
.brand { min-width: 0; text-decoration: none; }
.brand-name {
  display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--font-heading);
  font-size: clamp(15px, 3.9vw, 21px); color: var(--ink); overflow-wrap: anywhere;
}
.brand-name em { font-style: italic; color: var(--terra-deep); }
.brand-city { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1.5px solid var(--terra); color: var(--terra-deep) !important; border-radius: 999px;
  padding: 9px 20px; transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--terra); color: #fff !important; }


/* --- HERO centered-bold ------------------------------------------------------------- */
.hero-center { position: relative; text-align: center; padding: clamp(56px, 9vw, 120px) 0 0; overflow: hidden; }
.hero-center__in { max-width: 880px; }
.eyebrow, .sec-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra-deep); margin: 0 0 18px;
}
.hero-center h1 {
  font-size: clamp(40px, 8.4vw, 92px); line-height: 1.04; margin: 0 0 22px; letter-spacing: -.01em;
}
.hero-lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 62ch; margin: 0 auto 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px;
  transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.98); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-deep); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.hero-note { font-size: 14px; color: var(--ink-2); margin: 0 0 clamp(30px, 5vw, 54px); }
.hero-center__band { display: block; width: 100%; height: clamp(180px, 30vw, 380px); object-fit: cover; object-position: 50% 62%; }

/* --- SEKCJE ------------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--paper { background: var(--paper); }
.sec-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 50px); }
.sec-head h2, .container.narrow h2, .split-2 h2, .about-body h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.12; margin: 0 0 16px; }
.sec-lead { color: var(--ink-2); font-size: clamp(15px, 1.8vw, 17.5px); max-width: 60ch; }

/* karty oferty (card-flow) */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.offer-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card { background: #FDFBF7; border: 1px solid var(--line); border-radius: 14px; }
.offer-card { padding: clamp(22px, 3vw, 34px); }
.offer-card h3 { font-size: clamp(21px, 2.6vw, 26px); margin: 18px 0 10px; }
.offer-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.offer-art { margin: 0; border-radius: 8px; overflow: hidden; background: var(--cream); }
.offer-art img { display: block; width: 100%; height: auto; }

/* jak pracuję */
.split-2__body { max-width: 800px; }
.nurt-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.nurt-list li { padding: 18px 22px; background: #FDFBF7; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); font-size: 15.5px; }
.nurt-list strong { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }

/* pas mgły */
.mist-band { position: relative; overflow: hidden; min-height: clamp(280px, 42vw, 440px); display: grid; align-items: center; background: var(--pine-deep); }
.mist-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.mist-band::after { content: ""; position: absolute; inset: 0; background: rgba(30, 42, 38, .5); }
.mist-band__in { position: relative; z-index: 1; }
.pull-quote { margin: 0 auto; max-width: 780px; text-align: center; }
.pull-quote p { font-family: var(--font-heading); font-style: italic; font-size: clamp(21px, 3.4vw, 32px); line-height: 1.4; color: #F6F1E8; margin: 0; }

/* kroki */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.5vw, 26px); counter-reset: step; }
.step-card { padding: clamp(24px, 3vw, 34px); position: relative; }
.step-no { font-family: var(--font-heading); font-size: clamp(34px, 4vw, 46px); color: var(--terra); opacity: .55; line-height: 1; }
.step-card h3 { font-size: 21px; margin: 10px 0 8px; }
.step-card p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* o mnie */
.split-about { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split-about { grid-template-columns: 1fr; } .about-media { max-width: 340px; } }
.media-frame { margin: 0; }
.media-frame__inner {
  aspect-ratio: 4 / 5; border: 1.5px dashed var(--terra); border-radius: 14px;
  background: repeating-linear-gradient(-45deg, #FDFBF7, #FDFBF7 14px, #F6EFE5 14px, #F6EFE5 28px);
  display: grid; place-items: center; text-align: center; padding: 20px;
}
.media-frame__note { font-family: var(--font-heading); font-size: 18px; color: var(--terra-deep); line-height: 1.5; }
.media-frame__note em { font-size: 14.5px; color: var(--ink-2); font-style: italic; }
.about-body p { max-width: 60ch; }
.mini-quote { margin: 26px 0 0; padding: 20px 24px; border-left: 3px solid var(--terra); background: #FDFBF7; border-radius: 0 12px 12px 0; }
.mini-quote p { font-family: var(--font-heading); font-style: italic; font-size: 17.5px; margin: 0 0 8px; }
.mini-quote cite { font-style: normal; font-size: 13.5px; color: var(--ink-2); }

/* kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.5vw, 26px); }
.contact-card { padding: clamp(24px, 3vw, 36px); text-align: center; }
.contact-card--main { background: var(--pine-deep); border-color: var(--pine-deep); }
.contact-card--main .contact-label { color: #C9D6CE; }
.contact-label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.contact-tel { display: block; font-family: var(--font-heading); font-size: clamp(30px, 4vw, 40px); color: #F6F1E8; text-decoration: none; margin-bottom: 8px; }
.contact-card--main .contact-sub { color: #AEC0B5; }
.contact-strong { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.contact-strong a { color: var(--ink); }
.contact-sub { font-size: 14px; color: var(--ink-2); margin: 0; }
.contact-sub a { color: var(--terra-deep); }

/* hero podstrony */
.hero-sub { padding: clamp(48px, 7vw, 90px) 0 clamp(30px, 5vw, 60px); }
.hero-sub__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 880px) { .hero-sub__grid { grid-template-columns: 1fr; } .hero-sub__media { max-width: 380px; } }
.hero-sub h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.08; margin: 0 0 18px; }
.hero-sub .hero-lead { margin: 0 0 26px; }
.hero-sub .hero-cta { justify-content: flex-start; margin-bottom: 14px; }
.hero-sub .hero-note { margin: 0; }
.hero-sub__media { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #FDFBF7; }
.hero-sub__media img { display: block; }

.note-elegant { margin-top: 26px; padding: 18px 22px; border: 1.5px dashed var(--pine); border-radius: 12px; color: var(--pine-deep); background: #FBF8F2; font-size: 15.5px; }

/* --- STOPKA ------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #D9CFC4; padding: clamp(48px, 7vw, 80px) 0 34px; margin-top: 0; }
.foot-name { font-family: var(--font-heading); font-size: clamp(26px, 3.6vw, 38px); color: var(--cream); margin: 0 0 6px; }
.foot-name em { font-style: italic; color: #D89A7E; }
.foot-sub { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #A79B8D; margin: 0 0 34px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 26px; border-top: 1px solid #443C34; padding-top: 30px; }
.foot-grid > * { min-width: 0; }
.foot-grid h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #A79B8D; margin: 0 0 10px; font-family: var(--font-body); font-weight: 700; }
.foot-grid p { margin: 0 0 8px; font-size: 15px; }
.foot-grid a { color: #E8DFD4; text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-copy { margin: 30px 0 0; font-size: 13px; color: #8A7F72; }

/* sticky CTA mobile */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--cream) 94%, transparent); border-top: 1px solid var(--line); display: none; }
.mobile-cta .btn { width: 100%; }
.mobile-cta.show { display: block; }
@media (min-width: 861px) { .mobile-cta { display: none !important; } }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: .12s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: .24s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* formularz SMS */
.contact-form { margin: clamp(20px, 3vw, 30px) auto 0; padding: clamp(24px, 3vw, 36px); max-width: 640px; text-align: left; }
.contact-form .btn { display: flex; margin-inline: auto; }
.sec-head .sec-eyebrow { margin-inline: auto; }
.form-head { font-family: var(--font-heading); font-size: 21px; margin: 0 0 18px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--terra); outline-offset: 1px; border-color: var(--terra); }
.form-note { font-size: 12.5px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.6; }

/* mobilny panel: baza robi z <nav> fixed panel (translateY) — tu tylko układ listy */
@media (max-width: 767px) {
  nav[aria-label="Główna"] { inset: var(--header-h, 64px) 0 auto 0; justify-self: stretch; width: auto; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a { display: block; padding: 14px 16px; font-size: 17px; }
  .nav-cta { display: block; text-align: center; margin: 12px 8px 4px; }
}
.site-header.nav-collapsed nav[aria-label="Główna"] { inset: var(--header-h, 64px) 0 auto 0; justify-self: stretch; width: auto; }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; }

/* panel nav-collapsed (768-1100px): ta sama kolumna co na mobile */
.site-header.nav-collapsed .site-nav { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
.site-header.nav-collapsed .site-nav li { border-top: 1px solid var(--line); }
.site-header.nav-collapsed .site-nav li:first-child { border-top: 0; }
.site-header.nav-collapsed .site-nav a { display: block; padding: 14px 16px; font-size: 17px; }
.site-header.nav-collapsed .nav-cta { display: block; text-align: center; margin: 12px 8px 4px; }
