/**
 * BiomedicalClinic — biomedica.css
 *
 * Zmienne CSS (:root) są nadpisywane przez inline <style>
 * generowany przez bmc_customizer_css() w functions.php.
 * Ten plik zawiera wartości domyślne jako fallback.
 *
 * Struktura:
 *  1. Reset & base
 *  2. Zmienne CSS (fallback)
 *  3. Nawigacja
 *  4. Logo bar
 *  5. Slider
 *  6. Dots
 *  7. Boxy polecane (strona główna)
 *  8. Sekcja powitalna (strona główna)
 *  9. Sekcje zwijane / Zabiegi
 * 10. Strona O nas
 * 11. Galeria
 * 12. Lightbox
 * 13. Kontakt
 * 14. Stopka
 * 15. Strony generyczne (page-content)
 * 16. Responsywność
 */

/* ─────────────────────────────────────────────
   1. RESET & BASE
   ───────────────────────────────────────────── */

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

html, body { min-height: 100%; }

body {
    font-family: 'Jost', sans-serif;
    background: var(--cream-mid, #F2EFE8);
    color: var(--text-dark, #2C2C2A);
    font-size: var(--font-base, 14px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* ─────────────────────────────────────────────
   2. ZMIENNE CSS (fallback — nadpisywane przez Customizer)
   ───────────────────────────────────────────── */

:root {
    --brown-dark:        #68583e;
    --taupe:             #a29d94;
    --gold:              #d8a045;
    --gold-light:        #e6b85f;
    --beige:             #e6cb9b;
    --cream-warm:        #cec8be;
    --cream:             #FAF8F3;
    --cream-mid:         #F2EFE8;
    --cream-dark:        #E8E2D8;
    --logo-bg:           #68583e;
    --footer-bg:         #68583e;
    --section-header-bg: #a29d94;
    --text-dark:         #1A1A18;
    --text-mid:          #4A4A46;
    --text-light:        #8A8A85;
    --content-max:       960px;
    --font-base:         14px;
    --font-hero:         30px;
    --font-h1:           38px;
    --font-section:      13px;
    --font-nav:          12px;
}

/* ─────────────────────────────────────────────
   3. NAWIGACJA
   ───────────────────────────────────────────── */

.nav {
    background: var(--cream);
    height: 64px;
    border-bottom: 0.5px solid var(--cream-dark);
    position: relative;
    z-index: 50;
}

.nav-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 40px;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo a { display: block; line-height: 0; }
.nav-logo img,
.bmc-logo--nav { height: 36px; width: auto; display: block; }

.nav-right { display: flex; align-items: center; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    font-size: var(--font-nav, 12px);
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-mid);
    text-decoration: none;
    transition: color .2s;
    cursor: pointer;
}
.nav-links a.active {
    color: var(--brown-dark);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}
.nav-links a:hover { color: var(--brown-dark); }

.nav-social { display: flex; align-items: center; gap: 10px; margin-right: 20px; }
.nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--brown-dark);
    transition: color .2s, background .2s;
}
.nav-social a:hover { color: var(--gold); background: var(--cream-warm); }
.nav-social svg { width: 28px; height: 28px; }

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 32px; height: 32px;
    flex-direction: column; justify-content: center; gap: 5px; padding: 0;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--brown-dark);
    transition: .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   4. LOGO BAR
   ───────────────────────────────────────────── */

.logo-bar {
    background: var(--logo-bg);
    padding: 23px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo-bar a { display: inline-block; }
.logo-bar img,
.bmc-logo--hero { max-width: 200px; width: 100%; height: auto; }

/* ─────────────────────────────────────────────
   5. SLIDER
   ───────────────────────────────────────────── */

.slider-wrap { position: relative; height: 480px; overflow: hidden; }

.slide {
    position: absolute; inset: 0;
    transition: opacity .7s ease;
    opacity: 0; pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }

.slide-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #c8b9a8;
}
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to right,
        rgba(104,88,62,.40) 0%,
        rgba(104,88,62,.15) 50%,
        rgba(104,88,62,.05) 100%
    );
}
.slide-content {
    position: absolute; bottom: 0;
    left: 50%; transform: translateX(-50%);
    width: 100%; max-width: var(--content-max);
    padding: 40px 48px;
    display: flex; align-items: flex-end; gap: 28px;
}

.slide-text-bg {
    background: rgba(104,88,62,.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 18px 26px;
    border-radius: 3px;
    max-width: 480px;
}
.hero-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: var(--font-hero, 30px);
    font-weight: 300;
    color: white;
    line-height: 1.2;
    margin-bottom: 8px;
    white-space: nowrap;
}
.hero-desc {
    font-size: 13px; font-weight: 300;
    color: rgba(255,255,255,.88);
    line-height: 1.6; letter-spacing: .3px;
}
.hero-divider {
    width: 1px; height: 70px;
    background: rgba(255,255,255,.4);
    align-self: center; flex-shrink: 0;
}
.hero-cta {
    font-size: 12px; font-weight: 500; letter-spacing: 2px;
    color: var(--gold-light); text-transform: uppercase;
    white-space: nowrap; cursor: pointer;
    align-self: flex-end; flex-shrink: 0;
    background: rgba(104,88,62,.32);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    padding: 14px 18px; border-radius: 3px;
    transition: background .2s;
    text-decoration: none;
}
.hero-cta:hover { background: rgba(104,88,62,.55); }

.arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(104,88,62,.35);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 2px;
    color: white; font-size: 18px;
    user-select: none; transition: background .2s;
}
.arrow:hover { background: rgba(104,88,62,.65); }
.arrow-left  { left:  max(18px, calc(50% - var(--content-max) / 2 + 18px)); }
.arrow-right { right: max(18px, calc(50% - var(--content-max) / 2 + 18px)); }

/* ─────────────────────────────────────────────
   6. DOTS
   ───────────────────────────────────────────── */

.dots {
    display: flex; justify-content: center; gap: 6px;
    padding: 18px 0; background: var(--cream-mid);
}
.dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cream-dark); cursor: pointer;
    transition: background .2s;
}
.dot.active { background: var(--brown-dark); }

/* ─────────────────────────────────────────────
   7. BOXY POLECANE
   ───────────────────────────────────────────── */

.featured { padding: 50px 40px 10px; background: var(--cream-mid); }
.featured-inner { max-width: var(--content-max); margin: 0 auto; }
.featured-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

.featured-box {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: 3px; overflow: hidden;
    display: flex; flex-direction: column;
    cursor: pointer; text-decoration: none; color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.featured-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -16px rgba(104,88,62,.45);
    border-color: var(--beige);
}
.featured-box:hover img { transform: scale(1.05); }

.featured-thumb {
    width: 100%; aspect-ratio: 4/3;
    background: var(--cream-warm);
    overflow: hidden; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.featured-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.featured-thumb-placeholder {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 13px;
    color: var(--text-light); letter-spacing: 1px;
}
.featured-body { padding: 18px 20px 22px; text-align: center; }
.featured-title {
    font-family: 'Jost', sans-serif;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-dark); font-weight: 500; margin-bottom: 8px;
}
.featured-text { font-size: 12px; color: var(--text-mid); line-height: 1.55; font-weight: 300; }

/* ─────────────────────────────────────────────
   8. SEKCJA POWITALNA
   ───────────────────────────────────────────── */

.home-extra { padding: 60px 40px; text-align: center; background: var(--cream-mid); }
.home-extra-inner { max-width: var(--content-max); margin: 0 auto; }
.home-extra-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 28px;
    color: var(--brown-dark); margin-bottom: 16px; font-weight: 400;
}
.home-extra-text { font-size: 14px; color: var(--text-mid); line-height: 1.8; font-weight: 300; }
.home-extra-divider { width: 40px; height: 1px; background: var(--gold); margin: 20px auto; }

/* ─────────────────────────────────────────────
   9. SEKCJE ZWIJANE / ZABIEGI
   ───────────────────────────────────────────── */

.section { padding: 48px 40px; }
.section-inner { max-width: var(--content-max); margin: 0 auto; }

.section-intro { text-align: center; margin-bottom: 32px; }
.section-intro-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 32px;
    color: var(--brown-dark); font-weight: 400; margin-bottom: 8px;
}
.section-intro-sub { font-size: 12px; letter-spacing: 3px; color: var(--text-light); text-transform: uppercase; }

.section-header {
    background: var(--section-header-bg);
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; border-radius: 2px;
    cursor: pointer; transition: background .2s;
}
.section-header:hover { background: #8d877d; }

.section-title {
    font-family: 'Jost', sans-serif;
    font-size: var(--font-section, 13px);
    font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; color: white;
}
.section-toggle {
    width: 30px; height: 30px;
    border: 1px solid rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px; color: white; font-size: 14px;
}

/* Box opisu kategorii — widoczny gdy kategoria ma opis (ACF wysiwyg lub term description) */
.category-desc-box {
    background: var(--cream-warm);
    border-left: 3px solid var(--gold);
    padding: 18px 24px;
    margin-bottom: 20px;
    border-radius: 2px;
}
.category-desc-box p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.7;
    font-weight: 300;
    margin: 0 0 8px;
}
.category-desc-box p:last-child { margin-bottom: 0; }
.category-desc-box strong { color: var(--text-dark); font-weight: 500; }
.category-desc-box em { font-style: italic; }

.treatments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.treatment-card {
    background: var(--cream-warm);
    padding: 22px 24px; border-radius: 2px;
    position: relative; overflow: hidden;
}
.treatment-content { position: relative; z-index: 1; }
.treatment-name {
    font-family: 'Jost', sans-serif;
    font-size: 13px; font-weight: 500; letter-spacing: 2px;
    text-transform: uppercase; color: var(--text-dark); margin-bottom: 12px;
}
.treatment-desc {
    font-size: 13px; font-weight: 300;
    color: var(--text-mid); line-height: 1.6; margin-bottom: 16px;
}
.treatment-desc p  { margin: 0 0 6px; }
.treatment-desc p:last-child { margin-bottom: 0; }
.treatment-desc strong { color: var(--text-dark); font-weight: 500; }
.treatment-desc em     { font-style: italic; }
.treatment-price { display: flex; flex-direction: column; gap: 4px; }
.price-row { font-size: 12px; color: var(--text-mid); font-weight: 300; }
.price-row span { color: var(--text-dark); font-weight: 500; }

.treatments-wrap { overflow: hidden; transition: max-height .3s ease; }
.treatments-wrap.collapsed { max-height: 0; }

/* ─────────────────────────────────────────────
   10. STRONA O NAS
   ───────────────────────────────────────────── */

.about-hero {
    display: grid; grid-template-columns: auto 1fr;
    gap: 32px; align-items: center;
    margin-bottom: 40px; padding-bottom: 32px;
    border-bottom: 1px solid var(--cream-dark);
}
.about-portrait {
    width: 170px; aspect-ratio: 3/4;
    background: var(--cream-warm); border-radius: 3px;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-placeholder {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 12px;
    color: var(--text-light); letter-spacing: 1px;
    padding: 16px; text-align: center;
}

.about-hero-tag { font-size: 11px; letter-spacing: 3px; color: var(--text-light); text-transform: uppercase; margin-bottom: 8px; }
.about-hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 28px;
    color: var(--brown-dark); font-weight: 400;
    margin-bottom: 12px; line-height: 1.2;
}
.about-hero-divider { width: 40px; height: 1px; background: var(--gold); margin-bottom: 12px; }
.about-hero-role { font-size: 13px; color: var(--text-mid); font-weight: 300; line-height: 1.6; }

.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin-bottom: 24px; }
.about-block { margin-bottom: 24px; }
.about-block:last-child { margin-bottom: 0; }
.about-block h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; color: var(--brown-dark);
    font-weight: 500; font-style: italic;
    margin: 0 0 12px; line-height: 1.3;
}
.about-block p { font-size: 13.5px; line-height: 1.75; color: var(--text-mid); font-weight: 300; margin-bottom: 12px; }

.about-list { list-style: none; padding: 0; margin: 0 0 12px; }
.about-list li {
    font-size: 13px; color: var(--text-mid); font-weight: 300;
    line-height: 1.6; padding-left: 18px; position: relative; margin-bottom: 4px;
}
.about-list li::before {
    content: ''; position: absolute; left: 0; top: 11px;
    width: 8px; height: 1px; background: var(--gold);
}

.about-cta {
    text-align: center; padding: 36px 28px;
    background: var(--cream-mid); border-radius: 3px; margin: 40px 0 16px;
}
.about-cta-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 26px;
    color: var(--brown-dark); font-weight: 400; margin-bottom: 10px;
}
.about-cta-text { font-size: 13px; color: var(--text-mid); font-weight: 300; line-height: 1.7; max-width: 520px; margin: 0 auto 18px; }
.about-cta-btn {
    display: inline-block; font-size: 11px; letter-spacing: 2px;
    text-transform: uppercase; color: white; background: var(--brown-dark);
    padding: 14px 32px; border-radius: 2px; text-decoration: none;
    cursor: pointer; transition: background .2s; font-weight: 500;
}
.about-cta-btn:hover { background: #54472f; }

.publications { margin-top: 36px; }
.publications-title {
    font-family: 'Jost', sans-serif;
    font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--brown-dark); font-weight: 500;
    margin-bottom: 18px; padding-bottom: 10px;
    border-bottom: 1px solid var(--cream-dark);
}
.publication-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--cream-dark);
    text-decoration: none; color: inherit; transition: color .2s;
}
.publication-item:last-child { border-bottom: none; }
.publication-item:hover .publication-title { color: var(--brown-dark); }
.publication-num {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 22px; color: var(--gold);
    font-weight: 500; flex-shrink: 0; line-height: 1;
    padding-top: 2px; min-width: 24px;
}
.publication-body { flex: 1; }
.publication-title { font-size: 13px; color: var(--text-dark); font-weight: 500; line-height: 1.5; margin-bottom: 3px; transition: color .2s; }
.publication-meta { font-size: 11px; color: var(--text-light); font-weight: 300; letter-spacing: 1px; text-transform: uppercase; }
.publication-arrow { font-size: 13px; color: var(--gold); flex-shrink: 0; padding-top: 4px; }

/* ─────────────────────────────────────────────
   11. GALERIA
   ───────────────────────────────────────────── */

.gallery-page {
    padding: 60px 40px; width: 100%;
    max-width: calc(var(--content-max) + 80px);
    margin: 0 auto;
}
.gallery-page-header { text-align: center; margin-bottom: 36px; }
.gallery-page-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: var(--font-h1, 38px);
    color: var(--brown-dark); font-weight: 400; margin-bottom: 8px;
}
.gallery-page-header .subtitle {
    font-size: 12px; letter-spacing: 3px;
    color: var(--text-light); text-transform: uppercase;
}

.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; width: 100%; }

.gallery-item {
    aspect-ratio: 4/3; background: var(--cream);
    border: 1px solid var(--cream-dark); border-radius: 3px;
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -16px rgba(104,88,62,.45);
    border-color: var(--beige);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-zoom { opacity: 1; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-thumb-placeholder { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13px; color: var(--text-light); letter-spacing: 1px; }

.gallery-zoom {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(104,88,62,.7); color: white;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s ease;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}
.gallery-zoom svg { width: 16px; height: 16px; }

/* ─────────────────────────────────────────────
   12. LIGHTBOX
   ───────────────────────────────────────────── */

.lightbox {
    position: fixed; inset: 0;
    background: rgba(20,15,8,.92);
    z-index: 1000;
    display: none;
    align-items: center; justify-content: center;
    padding: 60px 80px;
    animation: lightboxFadeIn .25s ease;
}
.lightbox.open { display: flex; }
.lightbox[hidden] { display: none !important; }

@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img-wrap {
    max-width: 100%; max-height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
    max-width: 100%; max-height: calc(100vh - 120px);
    object-fit: contain; display: block;
    border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-img-placeholder {
    width: min(800px, 80vw); aspect-ratio: 4/3;
    background: var(--cream-warm); border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 18px; letter-spacing: 1px;
}

.lightbox-close {
    position: absolute; top: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px; line-height: 1;
    transition: background .2s; z-index: 2;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

.lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.25);
    color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px;
    transition: background .2s; z-index: 2;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    user-select: none;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.22); }
.lightbox-arrow.prev { left: 24px; }
.lightbox-arrow.next { right: 24px; }

.lightbox-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,.7); font-weight: 300;
    background: rgba(0,0,0,.4); padding: 8px 18px; border-radius: 20px;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ─────────────────────────────────────────────
   13. KONTAKT
   ───────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 36px; margin-top: 24px; align-items: start;
}
.contact-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; color: var(--brown-dark);
    margin-bottom: 14px; font-weight: 500;
}
.contact-row { font-size: 13px; color: var(--text-mid); line-height: 1.8; font-weight: 300; margin-bottom: 6px; }
.contact-row strong { color: var(--text-dark); font-weight: 500; letter-spacing: 1px; }
.contact-row a { color: var(--text-mid); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.contact-row a:hover { color: var(--brown-dark); border-bottom-color: var(--gold); }

.contact-map-img {
    width: 180px; height: 180px; border-radius: 3px; overflow: hidden;
    background: var(--cream-warm); border: 1px solid var(--cream-dark);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-map-img img { width: 100%; height: 100%; object-fit: cover; }
.contact-map-img-placeholder {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 12px; color: var(--text-light);
    letter-spacing: 1px; text-align: center; padding: 12px; line-height: 1.5;
}
.contact-map-img-label {
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-light); font-weight: 300; margin-top: 10px; text-align: center;
}

.contact-form-wrap { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--cream-dark); }
.contact-form-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 26px;
    color: var(--brown-dark); font-weight: 400;
    text-align: center; margin-bottom: 8px;
}
.contact-form-sub { font-size: 12px; letter-spacing: 2px; color: var(--text-light); text-transform: uppercase; text-align: center; margin-bottom: 28px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { display: flex; flex-direction: column; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-mid); font-weight: 500; margin-bottom: 6px; }
.form-row input,
.form-row textarea {
    font-family: 'Jost', sans-serif; font-size: 13px;
    color: var(--text-dark); font-weight: 300;
    padding: 12px 14px; background: var(--cream);
    border: 1px solid var(--cream-dark); border-radius: 2px;
    transition: border-color .2s, background .2s; outline: none;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--brown-dark); background: white; }
.form-row textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-consent {
    font-size: 11px; color: var(--text-light); font-weight: 300;
    line-height: 1.5; display: flex; align-items: flex-start;
    gap: 8px; cursor: pointer;
}
.form-consent input { margin-top: 2px; flex-shrink: 0; accent-color: var(--brown-dark); }

.form-submit {
    font-family: 'Jost', sans-serif;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: white; background: var(--brown-dark);
    padding: 14px 36px; border-radius: 2px; border: none;
    cursor: pointer; transition: background .2s; font-weight: 500;
    justify-self: center; margin-top: 6px;
}
.form-submit:hover { background: #54472f; }
.form-note { font-size: 11px; color: var(--text-light); text-align: center; font-style: italic; margin-top: 14px; }

.contact-map-wrap { margin-top: 48px; }
.contact-map-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 26px;
    color: var(--brown-dark); font-weight: 400;
    text-align: center; margin-bottom: 8px;
}
.contact-map-sub { font-size: 12px; letter-spacing: 2px; color: var(--text-light); text-transform: uppercase; text-align: center; margin-bottom: 24px; }
.contact-map {
    position: relative; width: 100%; aspect-ratio: 16/9;
    border-radius: 3px; overflow: hidden;
    border: 1px solid var(--cream-dark); background: var(--cream-warm);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.contact-map-link {
    display: block; text-align: center;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--brown-dark); text-decoration: none;
    margin-top: 16px; font-weight: 500;
}
.contact-map-link:hover { color: var(--gold); }

/* ─────────────────────────────────────────────
   14. STOPKA
   ───────────────────────────────────────────── */

.footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,.8);
    padding: 48px 40px 24px;
    flex-shrink: 0;
}

/* CSS Grid — auto-kolumny według liczby aktywnych kolumn (1–4) */
.footer-grid {
    display: grid;
    gap: 36px;
    max-width: var(--content-max);
    margin: 0 auto;
}
.footer-grid--1 { grid-template-columns: 1fr; max-width: 480px; }
.footer-grid--2 { grid-template-columns: repeat(2, 1fr); }
.footer-grid--3 { grid-template-columns: repeat(3, 1fr); }
.footer-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Kolumna stopki — zawsze blok, tytuł zawsze nad treścią */
.footer-col {
    display: block;
    min-width: 0;
}

/* Tytuł kolumny — zawsze na pełną szerokość, nad treścią */
.footer-col > h4 {
    display: block;
    width: 100%;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    margin: 0 0 16px;
    font-weight: 500;
}

/* Treść kolumny */
.footer-col p {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255,255,255,.7);
    font-weight: 300;
    margin: 0 0 4px;
}
.footer-col a {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255,255,255,.7);
    font-weight: 300;
    text-decoration: none;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-col strong  { color: rgba(255,255,255,.9); font-weight: 500; }

/* Obszar widgetów (footer-widget-1 / footer-widget-2) */
.footer-widget-item {
    display: block;
}
.footer-widget-title {
    display: block;
    width: 100%;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    margin: 0 0 16px;
    font-weight: 500;
}
.footer-widget-item p,
.footer-widget-item li {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255,255,255,.7);
    font-weight: 300;
    margin: 0 0 4px;
}
.footer-widget-item a {
    font-size: 12px;
    line-height: 1.9;
    color: rgba(255,255,255,.7);
    font-weight: 300;
    text-decoration: none;
    display: block;
}
.footer-widget-item a:hover { color: var(--gold-light); }
/* Wbudowane widgety WP — usuń domyślne marginesy */
.footer-widget-item .textwidget p { margin: 0; }
.footer-widget-item .textwidget a { display: inline; }

/* Social media — rząd ikon (tylko gdy włączone w Customizerze) */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    max-width: var(--content-max);
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.7);
    transition: color .2s, border-color .2s;
}
.footer-social a:hover { color: var(--gold-light); border-color: var(--gold-light); }
.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
    max-width: var(--content-max);
    margin: 36px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,.5);
    letter-spacing: 1px;
}

/* ─────────────────────────────────────────────
   15. STRONY GENERYCZNE (page-content)
   ───────────────────────────────────────────── */

.page-content { padding: 60px 40px; max-width: var(--content-max); margin: 0 auto; }
.page-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: var(--font-h1, 38px);
    color: var(--brown-dark); font-weight: 400;
    margin-bottom: 8px; text-align: center;
}
.subtitle { font-size: 12px; letter-spacing: 3px; color: var(--text-light); text-transform: uppercase; text-align: center; margin-bottom: 36px; }
.page-content p { font-size: 14px; line-height: 1.8; color: var(--text-mid); font-weight: 300; margin-bottom: 18px; }
.page-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--brown-dark); font-weight: 500; margin: 28px 0 14px; }

/* ─────────────────────────────────────────────
   16. RESPONSYWNOŚĆ
   ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
    .nav-inner  { padding: 0 24px; }
    .nav        { height: 60px; }
    .nav-links  { gap: 20px; }
    .nav-links a { font-size: 11px; letter-spacing: 1.4px; }

    .slider-wrap { height: 420px; }
    .slide-content { padding: 32px 32px; }
    .slide-text-bg { max-width: 55%; }
    .hero-quote { font-size: 28px; }

    .section, .home-extra, .page-content { padding: 40px 28px; }
    .featured { padding: 36px 28px 8px; }
    .featured-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }

    .treatments-grid { grid-template-columns: 1fr; }
    .gallery-grid    { grid-template-columns: repeat(2,1fr); }
    .gallery-page    { padding: 40px 28px; }

    .contact-grid    { grid-template-columns: 1fr 1fr; }
    .contact-map-img { width: 100%; height: auto; aspect-ratio: 1; }

    .footer-grid--3,
    .footer-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .footer-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }

    .about-columns { grid-template-columns: 1fr; gap: 0; }
}

/* Mobile */
@media (max-width: 640px) {
    body { font-size: 13px; }

    .nav        { height: 56px; }
    .nav-inner  { padding: 0 18px; }
    .nav-logo img,
    .bmc-logo--nav { height: 30px; }
    .nav-social { margin-right: 8px; gap: 6px; }
    .nav-social a   { width: 30px; height: 30px; }
    .nav-social svg { width: 26px; height: 26px; }

    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 56px; left: 0; right: 0;
        background: var(--cream);
        flex-direction: column; align-items: flex-start;
        gap: 0; padding: 0; max-height: 0; overflow: hidden;
        transition: max-height .3s ease;
        border-bottom: 0.5px solid var(--cream-dark); z-index: 100;
    }
    .nav-links.open { max-height: 500px; padding: 8px 0; }
    .nav-links a {
        padding: 14px 24px; width: 100%;
        border-bottom: 0.5px solid var(--cream-dark); font-size: 12px;
    }
    .nav-links a.active { border-bottom: 0.5px solid var(--gold); }

    .logo-bar   { padding: 18px 20px; }
    .logo-bar img,
    .bmc-logo--hero { max-width: 150px; }

    .slider-wrap { height: auto; min-height: 480px; }
    .slide-content {
        position: relative; left: auto; transform: none;
        flex-direction: column; align-items: stretch;
        gap: 14px; padding: 240px 18px 28px;
    }
    .slide-text-bg  { padding: 18px 20px; max-width: 100%; }
    .hero-quote     { font-size: 26px; white-space: normal; }
    .hero-divider   { display: none; }
    .hero-cta       { align-self: flex-start; padding: 12px 16px; }
    .arrow          { width: 36px; height: 36px; }
    .arrow-left     { left: 10px; }
    .arrow-right    { right: 10px; }

    .home-extra     { padding: 40px 22px; }
    .featured       { padding: 28px 18px 6px; }
    .featured-grid  { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .featured-body  { padding: 14px 14px 18px; }

    .section, .page-content { padding: 36px 20px; }
    .section-header { padding: 14px 18px; }
    .section-title  { font-size: 12px; letter-spacing: 2.5px; }
    .treatment-card { padding: 18px 20px; }

    .gallery-page   { padding: 36px 18px; }
    .gallery-page-header h1 { font-size: 30px; }
    .gallery-grid   { grid-template-columns: 1fr; gap: 12px; }

    .lightbox       { padding: 50px 16px; }
    .lightbox-arrow { width: 42px; height: 42px; font-size: 18px; }
    .lightbox-arrow.prev { left: 10px; }
    .lightbox-arrow.next { right: 10px; }
    .lightbox-close { top: 14px; right: 14px; width: 38px; height: 38px; font-size: 18px; }
    .lightbox-counter { bottom: 14px; font-size: 11px; padding: 6px 14px; }

    .contact-grid   { grid-template-columns: 1fr; }
    .contact-map-img { width: 100%; height: auto; aspect-ratio: 1; }
    .contact-form   { grid-template-columns: 1fr; }

    .footer { padding: 36px 22px 20px; }
    .footer-grid,
    .footer-grid--2,
    .footer-grid--3,
    .footer-grid--4 { grid-template-columns: 1fr; gap: 24px; }

    .about-hero     { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .about-portrait { width: 160px; margin: 0 auto; }
    .about-hero-divider { margin-left: auto; margin-right: auto; }
    .publication-item { flex-wrap: wrap; }

    .page-content h1 { font-size: 30px; }
}
