/* =============================================================================
   brand.css - Psychoterapia systemowa Dorota Barnaś-Sarna (Zakopane)
   Paleta z gabinetu: butelkowa zieleń fotela + mosiądz karniszy, kremowe tło.
   Nagłówki serif Lora (ciepło, nieklinicznie), treść Inter. Spokój, bez pobudzenia.
   Mobile-first od 360px. Ruch bardzo delikatny, szanuje prefers-reduced-motion.
   ============================================================================= */

:root {
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --green: #0E6E76;
  --green-deep: #0A565D;
  --green-ink: #093F45;
  --brass: #B5813F;
  --brass-deep: #96692F;
  --ink: #16211F;
  --ink-soft: #4C5B57;
  --cream: #FBF8F3;
  --sand: #F3EDE3;
  --line: #E3DACB;
  --soft: #E8F3F4;
  --motion-ease: cubic-bezier(.2,.7,.2,1);
}

body { background: var(--cream); color: var(--ink); font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.16; }
h2 { font-size: clamp(26px, 5vw, 39px); }
h3 { font-size: clamp(18px, 3vw, 21px); line-height: 1.3; }
p { line-height: 1.65; }
.muted { color: var(--ink-soft); }
a { color: var(--green); }

.container { width: min(100% - 40px, 1160px); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 100px); }
.section-alt { background: var(--sand); }
.section-green { background: var(--green-ink); color: #E4EFEB; }
.section-green h2, .section-green h3 { color: #fff; }
.section-green .muted, .section-green p { color: #B4CFC7; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body);
  font-weight: 600; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brass); border-radius: 2px; }
.section-green .eyebrow { color: #E0B676; }

.sec-head { max-width: 62ch; margin: 0 auto clamp(34px, 5vw, 54px); text-align: center; }
.sec-head--left { margin-inline: 0; text-align: left; }
.sec-head h2 { margin: 0; }
.sec-head p { margin-top: 14px; font-size: 19px; color: var(--ink-soft); }
.section-green .sec-head p { color: #B4CFC7; }
.section-cta { width: 100%; max-width: none; text-align: center; margin-top: clamp(30px, 4vw, 46px); }

/* --- Przyciski ------------------------------------------------------------ */
.btn { border-radius: 999px; padding: 15px 28px; font-family: var(--font-body); font-weight: 600;
  font-size: 16px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--motion-ease), background-color .25s ease, box-shadow .25s ease, color .25s ease; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(9,63,69,.28); }
.btn-brass { background: var(--brass); color: #fff; border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(150,105,47,.3); }
.btn-ghost { background: #fff; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); background: var(--soft); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-light:hover { background: #fff; color: var(--green-ink); transform: translateY(-2px); }
.btn-gold-line { background: transparent; color: #E7C68E; border-color: #E7C68E; }
.btn-gold-line:hover { background: #E7C68E; color: #2A1B04; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(231,198,142,.25); }
.btn-lg { padding: 17px 34px; font-size: 17px; min-height: 56px; }

/* --- Header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 10px rgba(9,63,69,.05); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { height: 40px; width: 40px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.brand-text { display: grid; min-width: 0; line-height: 1.15; }
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--green);
  overflow-wrap: anywhere; }
.brand-tagline { font-size: 11.5px; letter-spacing: .04em; color: var(--ink-soft); text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 1px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 13.5px;
  padding: 8px 9px; border-radius: 10px; transition: background-color .2s, color .2s; }
.main-nav a.btn { font-size: 14px; padding: 12px 18px; margin-left: 4px; }
.main-nav a:hover { background: var(--soft); color: var(--green); }
.main-nav a.btn { color: #fff; }
.main-nav a.btn:hover { color: #fff; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block;
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle span::before { transform: translateY(-7px); } .nav-toggle span::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .main-nav a.btn { font-size: 16px; padding: 14px 12px; margin-left: 0; }
  .main-nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s;
    box-shadow: 0 18px 30px rgba(0,0,0,.08); }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 14px 12px; border-radius: 12px; font-size: 16px; }
  .main-nav a.btn { margin-top: 8px; justify-content: center; }
}

/* --- HERO (pełnoekranowe zdjęcie + zielony gradient) ----------------------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,63,69,.90) 0%, rgba(9,63,69,.72) 44%, rgba(9,63,69,.30) 100%); }
@media (max-width: 720px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(9,63,69,.60) 0%, rgba(9,63,69,.82) 55%, rgba(9,63,69,.92) 100%); }
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(56px, 11vw, 116px); max-width: 640px; }
.hero .eyebrow { color: #E7C68E; }
.hero .eyebrow::before { background: #E7C68E; }
.hero h1 { color: #fff; font-size: clamp(28px, 4.6vw, 44px); margin: 0 0 22px; line-height: 1.18; }
.hero h1 .hl-gold { color: #E7C68E; font-style: italic; }
.hero-lead { font-family: var(--font-heading); font-style: italic; color: #F0E6D3;
  font-size: clamp(18px, 3vw, 24px); margin: 0 0 16px; line-height: 1.4; }
.hero-sub { color: #CFE0DA; font-size: clamp(15px, 2.3vw, 17px); margin: 0 0 28px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-facts { list-style: none; padding: 24px 0 0; margin: 30px 0 0; border-top: 1px solid rgba(255,255,255,.22);
  display: grid; gap: 12px; font-size: 15px; color: #CFE0DA; }
.hero-facts strong { display: block; color: #fff; font-weight: 600; font-family: var(--font-heading); }
@media (min-width: 720px) { .hero-facts { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; } }

/* --- Rozwidlenie ścieżek --------------------------------------------------- */
.path-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.path-card { position: relative; display: grid; gap: 10px; align-content: start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px 26px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .38s var(--motion-ease), box-shadow .38s ease, border-color .38s; }
.path-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--brass); transform: scaleY(0); transform-origin: top; transition: transform .45s ease; }
.path-card:hover, .path-card:focus-visible { transform: translateY(-6px); border-color: rgba(14,110,118,.28);
  box-shadow: 0 18px 40px rgba(9,63,69,.12); }
.path-card:hover::before, .path-card:focus-visible::before { transform: scaleY(1); }
.path-num { font-family: var(--font-heading); font-size: 14px; letter-spacing: .1em; color: var(--brass); }
.path-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--soft); color: var(--green); }
.path-icon svg { width: 27px; height: 27px; }
.path-card h3 { margin: 0; }
.path-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.path-go { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--green); }
.path-go::after { content: " \2192"; opacity: .55; transition: opacity .3s; }
.path-card:hover .path-go::after { opacity: 1; }

/* --- Kroki pierwszej wizyty (foto + lista) -------------------------------- */
.step-wrap { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
.step-media img { width: 100%; height: clamp(260px, 60vw, 520px); object-fit: cover; object-position: 50% 40%;
  border-radius: 20px; display: block; box-shadow: 0 18px 40px rgba(9,63,69,.13); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: krok; }
.steps li { position: relative; padding: 22px 0 22px 50px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { counter-increment: krok; content: counter(krok); position: absolute; left: 0; top: 22px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-family: var(--font-heading); font-size: 15px; }
.steps h3 { margin: 4px 0 8px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.step-time { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
@media (min-width: 900px) {
  .step-wrap { grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
  .step-media { position: sticky; top: 96px; }
}

/* --- Kwalifikacje (ciemnozielona sekcja) ---------------------------------- */
.cert-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.cert-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 16px;
  padding: 28px 24px; display: grid; gap: 10px; align-content: start; }
.cert-card h3 { margin: 0; }
.cert-card p { margin: 0; color: #B4CFC7; font-size: 15.5px; }
.cert-note { justify-self: start; margin-top: 4px; font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(224,182,118,.14); color: #E7C68E; border: 1px dashed rgba(224,182,118,.45); }

/* --- Galeria gabinetu ------------------------------------------------------ */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-tall { grid-row: span 2; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff;
  font-size: 13.5px; font-weight: 500; background: linear-gradient(180deg, transparent, rgba(9,63,69,.8)); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; } }

/* --- Galeria gabinetu (2 zdjęcia) ------------------------------------------ */
.gallery-duo { display: grid; gap: 16px; grid-template-columns: 1fr; }
.gallery-duo figure { margin: 0; border-radius: 18px; overflow: hidden; position: relative; background: var(--soft);
  box-shadow: 0 14px 34px rgba(9,63,69,.1); }
.gallery-duo img { width: 100%; height: clamp(280px, 60vw, 440px); object-fit: cover; display: block;
  transition: transform .5s ease; }
.gallery-duo figure:hover img { transform: scale(1.04); }
.gallery-duo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff;
  font-size: 14px; font-weight: 500; background: linear-gradient(180deg, transparent, rgba(9,63,69,.82)); }
@media (min-width: 680px) { .gallery-duo { grid-template-columns: 1fr 1fr; } }

/* --- FAQ bez zdjęcia (jedna kolumna, wyśrodkowany nagłówek) ---------------- */
#faq .sec-head--left { text-align: center; margin-inline: auto; }
#faq .accordion { max-width: 760px; margin-inline: auto; }

/* --- FAQ na ciemnym turkusie (akordeon czytelny) -------------------------- */
.section-green .accordion details { border-color: rgba(255,255,255,.16); }
.section-green .accordion summary { color: #fff; }
.section-green .accordion summary:hover { color: #E7C68E; }
.section-green .accordion summary::after { border-right-color: #E0B676; border-bottom-color: #E0B676; }
.section-green .accordion details p { color: #B4CFC7; }

/* --- Kafelek zasad wyśrodkowany ------------------------------------------- */
.rules--center { text-align: center; }
.rules--center ul { list-style: none; padding: 0; justify-items: center; }
.rules--center .hint { margin-inline: auto; max-width: 60ch; }

/* --- Cennik --------------------------------------------------------------- */
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px;
  display: grid; gap: 8px; align-content: start; text-align: center;
  transition: transform .3s ease, box-shadow .3s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(9,63,69,.1); }
.price-card--lead { border-color: rgba(14,110,118,.35); box-shadow: 0 10px 30px rgba(9,63,69,.09); }
.price-card h3 { margin: 0; }
.price-value { font-family: var(--font-heading); font-weight: 600; font-size: clamp(15px, 2.2vw, 18px); color: var(--green); }
.price-card .muted { font-size: 14.5px; }
.rules { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px,3vw,32px); }
.rules h3 { margin: 0 0 14px; }
.rules ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; color: var(--ink-soft); }
.rules .hint { margin-top: 16px; }
.hint { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

/* --- FAQ ------------------------------------------------------------------ */
.faq-wrap { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
.faq-media img { width: 100%; height: clamp(240px, 55vw, 460px); object-fit: cover; object-position: 50% 45%;
  border-radius: 20px; display: block; box-shadow: 0 18px 40px rgba(9,63,69,.13); }
.accordion { display: grid; }
.accordion details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.accordion summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-heading); font-size: clamp(16.5px, 2.6vw, 18.5px); font-weight: 600; color: var(--ink);
  transition: color .3s; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--green); }
.accordion summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--brass); border-bottom: 2px solid var(--brass);
  transform: translateY(-70%) rotate(45deg); transition: transform .35s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion details p { margin: 0 0 22px; color: var(--ink-soft); font-size: 15.5px; max-width: 64ch; }
@media (min-width: 900px) {
  .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
  .faq-media { position: sticky; top: 96px; }
}

/* --- Kontakt -------------------------------------------------------------- */
.section-contact { background: var(--sand); }
.contact-wrap { display: grid; gap: clamp(30px, 4vw, 52px); align-items: start; }
.contact-info .btn-lg { margin-bottom: 26px; }
.contact-list { display: grid; gap: 18px; margin: 0 0 26px; }
.contact-list dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 5px; font-weight: 600; }
.contact-list dd { margin: 0; color: var(--ink); line-height: 1.55; }
.map-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-frame iframe { width: 100%; height: clamp(240px, 42vw, 320px); border: 0; display: block; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px,4vw,36px);
  display: grid; gap: 22px; align-content: start; }
.contact-card .contact-list { margin: 0; }
.contact-card .btn-lg { width: 100%; margin: 0; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(26px,4vw,36px);
  display: grid; gap: 16px; align-content: start; }
.contact-form h3 { margin: 0 0 4px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14.5px; font-weight: 500; }
.field input, .field textarea { min-height: 48px; font-size: 16px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--cream); font-family: inherit;
  transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: auto; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14,110,118,.14); }
.contact-form .btn { justify-self: start; }
.hint.rodo { font-size: 12px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 4px; }
@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: stretch; }
  .map-frame { height: 100%; }
  .map-frame iframe { height: 100%; }
}

/* --- Stopka --------------------------------------------------------------- */
.site-footer { background: var(--green-ink); color: #B4CFC7; padding-block: clamp(48px,7vw,72px) 30px; }
.footer-grid { display: grid; gap: 32px; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0 0 7px; font-size: 14.5px; line-height: 1.55; }
.site-footer a { color: #E7C68E; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { color: #B4CFC7; }
.footer-help { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }
.footer-help p { color: #9FBDB4; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr .6fr 1.1fr; gap: 44px; } }

/* --- Sticky CTA mobile ----------------------------------------------------- */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px;
  padding: 10px 14px; background: rgba(251,248,243,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.08); }
.mobile-cta .btn { flex: 1; min-height: 48px; }
@media (max-width: 720px) { .mobile-cta { display: flex; } body { padding-bottom: 74px; } }

/* --- Warsztaty: tag „do potwierdzenia" na jasnym tle + CTA band ------------ */
.tag-todo { display: inline-block; margin-top: 6px; font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(181,129,63,.12); color: #7C5622; border: 1px dashed rgba(181,129,63,.5); }
.path-card .tag-todo { margin-top: 10px; }
.cta-green { text-align: center; }
.cta-green h2 { margin: 0 0 12px; }
.cta-green p { margin: 0 auto 26px; max-width: 54ch; }
.cta-green .hero-actions { justify-content: center; }
.lead-intro { max-width: 68ch; margin: 0 auto; text-align: center; font-size: clamp(16px,2.3vw,19px); color: var(--ink-soft); }
.back-home { display: inline-flex; align-items: center; gap: 7px; margin-top: 26px; font-size: 14.5px;
  color: var(--green); text-decoration: none; font-weight: 600; }
.back-home:hover { text-decoration: underline; }
.main-nav a.is-active { background: var(--soft); color: var(--green); }

/* --- Reveal --------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* --- Mobile: wyśrodkowane karty ------------------------------------------- */
.br-mobile { display: none; }
@media (max-width: 720px) {
  .br-mobile { display: inline; }
  .path-card { justify-items: center; text-align: center; }
  .price-card { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
