/* ============================================================
   Marta Siemieńska – motyw "leśny spokój"
   Paleta: kora / mech / paproć / szałwia + ciepły miód (akcent)
   Kroje: Fraunces (nagłówki) + Nunito Sans (tekst)
   ============================================================ */

:root {
    --bg:        #F3F1E7;  /* brzozowy papier */
    --bg-alt:    #E8E4D4;  /* piasek */
    --card:      #FBFAF3;  /* jasny, ciepły */
    --ink:       #2C332A;  /* ciemny mech (tekst) */
    --ink-soft:  #4F5A49;
    --muted:     #7B8471;
    --forest:    #3C4E36;  /* głęboka zieleń */
    --fern:      #5C7253;  /* paproć */
    --sage:      #9BAE8F;  /* szałwia */
    --sage-soft: #CBD6BF;
    --honey:     #C0813A;  /* ciepły miód – akcent (nie terakota) */
    --honey-dk:  #A56C2C;
    --line:      rgba(44,51,42,0.12);
    --shadow:    0 18px 40px -24px rgba(44,51,42,0.45);
    --radius:    18px;
    --radius-lg: 28px;
    --organic:   62% 38% 41% 59% / 46% 54% 46% 54%;
    --maxw:      1120px;
    --ease:      cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Nunito Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--honey-dk); }

h1, h2, h3 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500;
    line-height: 1.12;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.22rem; font-weight: 600; }

p { margin: 0 0 1rem; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92vw); margin-inline: auto; }

.eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fern);
    margin: 0 0 .8rem;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.alt-bg { background: var(--bg-alt); }
.section-head { max-width: 620px; margin: 0 auto 2.8rem; text-align: center; }
.section-intro { color: var(--ink-soft); font-size: 1.05rem; }
.muted { color: var(--muted); }

/* ---------- Przyciski ---------- */
.btn {
    display: inline-block;
    background: var(--forest);
    color: #fff;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    border: none;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
    box-shadow: 0 10px 22px -14px rgba(60,78,54,.9);
}
.btn:hover { background: var(--fern); color: #fff; transform: translateY(-2px); }
.btn-ghost {
    background: transparent;
    color: var(--forest);
    box-shadow: none;
    border: 1.5px solid var(--sage);
}
.btn-ghost:hover { background: var(--sage-soft); color: var(--forest); }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Nagłówek / nawigacja ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(243,241,231,.86);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand-mark { color: var(--fern); display: inline-flex; }
.brand-name { font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.site-nav a:hover { color: var(--forest); }
.site-nav a.btn { color: #fff; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto auto;
    width: 40vw; height: 40vw; max-width: 520px; max-height: 520px;
    background: radial-gradient(circle at 30% 30%, var(--sage-soft), transparent 68%);
    opacity: .55; z-index: 0;
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
    align-items: center; position: relative; z-index: 1;
}
.hero-copy h1 { margin-top: .2rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-media { position: relative; }
.hero-sub .hero-grid { padding-bottom: 2rem; }

/* obraz w organicznej ramce */
.organic-frame {
    width: 100%; object-fit: cover; aspect-ratio: 5/6;
    border-radius: var(--organic);
    box-shadow: var(--shadow);
    border: 6px solid var(--card);
    transition: border-radius 1.6s var(--ease);
}
.organic-frame.flip { aspect-ratio: 6/7; border-radius: 41% 59% 59% 41% / 54% 46% 54% 46%; }
.organic-frame:hover { border-radius: 46% 54% 48% 52% / 50% 50% 50% 50%; }

/* liściowy separator sekcji (sygnaturowy element) */
.leaf-divider {
    height: 70px; margin-top: 2.5rem;
    background-image: url("../img/leaf-divider.svg");
    background-repeat: no-repeat; background-position: center; background-size: 220px auto;
}

/* ---------- O mnie ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.rich p { color: var(--ink-soft); }
.rich h2 { color: var(--ink); }
.cred-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.cred-list li {
    position: relative; padding-left: 1.9rem; color: var(--ink-soft); font-size: .98rem;
}
.cred-list li::before {
    content: ""; position: absolute; left: 0; top: .35rem; width: 1.1rem; height: 1.1rem;
    background: url("../img/leaf-mark.svg") center/contain no-repeat;
}

/* ---------- Karty (problemy / opinie) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem 1.5rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--forest); }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

.review-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.7rem 1.6rem; margin: 0; display: flex; flex-direction: column; gap: 1rem;
}
.review-card blockquote { margin: 0; font-size: 1.02rem; color: var(--ink); font-style: italic; }
.review-card figcaption { display: flex; flex-direction: column; gap: .15rem; font-size: .92rem; }
.stars { color: var(--honey); letter-spacing: .1em; }

/* ---------- CBT ---------- */
.cbt-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.check-list li {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.2rem 1rem 3rem; position: relative; color: var(--ink-soft); font-weight: 600;
}
.check-list li::before {
    content: ""; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    width: 1.3rem; height: 1.3rem; background: url("../img/leaf-mark.svg") center/contain no-repeat;
}

/* ---------- Gabinet / galeria ---------- */
.location-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--shadow); }
.gallery-wide { grid-template-columns: repeat(3, 1fr); }
.gallery-wide img { aspect-ratio: 4/3; }

/* ---------- Osadzenia (ZnanyLekarz) ---------- */
.embed { max-width: 720px; margin: 0 auto; }
.zl-embed { display: block; }
.zl-embed iframe { width: 100% !important; max-width: 100% !important; min-width: 0 !important; border-radius: var(--radius); display: block; }
.reviews-widget.spaced { margin-top: 2.75rem; }
.calendar-embed { max-width: 100%; width: 100%; min-height: 200px; }

/* ---------- Kontakt / formularz ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; font-size: 1.05rem; }
.contact-list a { font-weight: 700; }
.contact-form-wrap {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--sage-soft);
    border-radius: 12px; font: inherit; font-size: .98rem; background: #fff; color: var(--ink);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--fern); box-shadow: 0 0 0 3px rgba(92,114,83,.18);
}
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin: .9rem 0 0; font-weight: 600; }
.form-status.ok { color: var(--forest); }
.form-status.err { color: #a23a2a; }

/* ---------- Warsztaty: fakty ---------- */
.wdetails-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.fact h3 { color: var(--fern); font-size: 1rem; }
.fact p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-link { color: inherit; display: block; }
.post-thumb img { aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 1.3rem 1.4rem 1.6rem; }
.post-card-body time { font-size: .82rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.post-card-body h2 { font-size: 1.3rem; margin: .3rem 0 .5rem; }
.post-card-body p { color: var(--ink-soft); font-size: .96rem; margin-bottom: .8rem; }
.read-more { color: var(--honey-dk); font-weight: 700; font-size: .92rem; }
.empty-state { text-align: center; color: var(--muted); }

.post .eyebrow { margin-top: 1rem; }
.back-link { display: inline-block; margin-bottom: 1rem; font-weight: 700; color: var(--fern); }
.post-date { color: var(--muted); font-weight: 700; font-size: .9rem; }
.post-hero { width: 100%; aspect-ratio: 16/8; object-fit: cover; margin: 2rem 0; border-radius: var(--radius-lg); border: 6px solid var(--card); box-shadow: var(--shadow); }
.post-body { font-size: 1.08rem; }
.post-body h2 { margin-top: 2rem; }
.post-body img { border-radius: var(--radius); margin: 1.6rem 0; box-shadow: var(--shadow); }
.post-body a { text-decoration: underline; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--forest); color: #E9EEE2; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #D6E0C8; }
.site-footer a:hover { color: #fff; }
.brand-footer .brand-name { color: #fff; }
.footer-tag { color: #B9C6A9; max-width: 32ch; margin-top: .6rem; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; row-gap: .35rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; color: #B9C6A9; }
.footer-bottom > * + *::before { content: "\00b7"; padding: 0 .6rem; color: #8ea07e; }
.footer-bottom > a:last-child { margin-left: auto; }
.footer-bottom > a:last-child::before { content: none; }
@media (max-width: 560px) {
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-bottom > a:last-child { margin-left: 0; }
    .footer-bottom > a:last-child::before { content: "\00b7"; padding: 0 .6rem; color: #8ea07e; }
}

/* ---------- Dostępność ---------- */
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
    .hero-grid, .about-grid, .cbt-grid, .location-grid, .contact-grid, .wdetails-grid { grid-template-columns: 1fr; }
    .hero-media, .about-media { max-width: 460px; margin-inline: auto; }
    .cards-grid, .post-grid { grid-template-columns: 1fr 1fr; }
    .about-grid .about-media { order: -1; }

    .nav-burger {
        display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem;
    }
    .nav-burger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
    .site-nav {
        position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: flex-start;
        background: var(--bg); padding: 1.2rem 6vw 2rem; gap: 1rem;
        border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s var(--ease);
        box-shadow: var(--shadow);
    }
    .nav-toggle:checked ~ .site-nav { transform: translateY(0); }
    .site-nav a { font-size: 1.05rem; }
}

@media (max-width: 560px) {
    body { font-size: 17px; }
    .cards-grid, .post-grid, .gallery, .gallery-wide, .fact-grid { grid-template-columns: 1fr; }
    .gallery img { aspect-ratio: 4/3; }
    .footer-grid { grid-template-columns: 1fr; }
}

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

/* ---------- Cennik ---------- */
.price-card { max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.2rem, 3vw, 2rem) clamp(1.3rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: none; }
.price-name { display: flex; flex-direction: column; }
.price-name span { font-weight: 600; color: var(--ink); }
.price-name small { color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.price-value { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--forest); white-space: nowrap; font-weight: 500; }
@media (max-width: 560px) { .price-value { font-size: 1.15rem; } }

/* ---------- Lokalizacja / mapa (nad stopką) ---------- */
.map-section { padding-bottom: 0; }
.map-frame { width: 100%; line-height: 0; margin-top: 1.5rem; }
.map-frame iframe { display: block; width: 100%; height: 440px; border: 0; filter: saturate(.92); }
@media (max-width: 560px) { .map-frame iframe { height: 340px; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: color .2s var(--ease); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: "Fraunces", serif; font-size: 1.5rem; line-height: 1; color: var(--fern); font-weight: 400; transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--forest); }
.faq-answer { padding: 0 1.3rem 1.15rem; color: var(--ink-soft); }
.faq-item[open] summary { color: var(--forest); }

/* ---------- Materiały do pobrania ---------- */
.material-card .post-thumb { background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.material-card .post-thumb img { aspect-ratio: 16/10; object-fit: cover; }
.mat-type { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--fern); }
.material-card .post-card-body h2 { margin: .25rem 0 .5rem; font-size: 1.2rem; }
.mat-download { margin-top: .5rem; }
.mat-badge { font-family: "Fraunces", serif; font-weight: 600; font-size: 2rem; color: var(--forest); }


/* ---------- Strona prawna (polityka) ---------- */
.legal .eyebrow { margin-top: 1rem; }
.legal-body { font-size: 1.02rem; }
.legal-body h2 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.legal-body ul { padding-left: 1.2rem; color: var(--ink-soft); }
.legal-body li { margin-bottom: .3rem; }
