/* =========================================================
   Sonar Clinic — Design System
   Paleta marki (beż/złoto + grafit) + zasady dostępności WCAG
   ========================================================= */


:root {
    /* Marka */
    --gold: #9a8464;
    --gold-dark: #796240;
    --gold-soft: #c3a97a;
    --gold-tint: #ece4d7;

    /* Tekst / tła */
    --ink: #353535;
    --ink-soft: #5a5a5a;
    --ink-muted: #837c70;
    --bg: #ffffff;
    --bg-cream: #faf8f4;
    --bg-light: #f2f2f2;
    --bg-warm: #efeee8;
    --border: #e7e1d6;

    /* System */
    --danger: #c0392b;
    --ring: rgba(154, 132, 100, .55);

    /* Skala odstępów (8pt) */
    --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
    --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem; --sp-12: 3rem;
    --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;

    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 10px rgba(53,53,53,.06);
    --shadow: 0 10px 30px rgba(53,53,53,.08);
    --shadow-lg: 0 24px 60px rgba(53,53,53,.14);
    --container: 1200px;
    --header-h: 112px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--ink-soft);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .6em;
    font-weight: 600;
    letter-spacing: .2px;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1rem; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--cream { background: var(--bg-cream); }
.section--warm { background: var(--bg-warm); }
.center { text-align: center; }
.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 2000;
    background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color:#fff; }

/* ---- Eyebrow / sekcje ---- */
.eyebrow {
    display: inline-block;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: .9rem;
}
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem,5vw,3.5rem); text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }

/* ---- Przyciski ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600; font-size: 1rem; letter-spacing: .4px;
    padding: .9rem 1.7rem; border-radius: var(--radius-pill);
    border: 2px solid transparent; cursor: pointer;
    transition: all .25s var(--ease); min-height: 48px; text-align: center;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--gold-dark); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--gold-dark); border-color: var(--gold-soft); }
.btn--ghost:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn--light { background:#fff; color: var(--gold-dark); }
.btn--light:hover { background: var(--bg-warm); color: var(--gold-dark); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.08rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky; top: var(--ann-h, 0px); z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.nav__brand { display: flex; align-items: center; gap: .7rem; }
.nav__brand img { height: 92px; width: auto; }
.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600; font-size: .96rem; letter-spacing: .6px; text-transform: uppercase;
    color: var(--ink); padding: .6rem .85rem; border-radius: 8px; position: relative;
}
.nav__links a::after {
    content:''; position:absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold-dark); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__phone { display: inline-flex; align-items:center; gap:.45rem; font-weight:600; color: var(--ink); font-family:'Roboto Condensed',sans-serif; white-space: nowrap; font-size: .98rem; }
.nav__phone svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.nav__phone:hover { color: var(--gold-dark); }
.nav__toggle {
    display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
    width: 48px; height: 48px; color: var(--ink);
}
.nav__toggle svg { width: 28px; height: 28px; }

@media (max-width: 1000px) {
    .nav__links, .nav__phone { display: none; }
    .nav__toggle { display: inline-flex; align-items:center; justify-content:center; }
    .nav.open .nav__links {
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        position: absolute; left: 0; right: 0; top: var(--header-h);
        background: #fff; border-bottom: 1px solid var(--border); padding: .5rem 1.5rem 1.5rem;
        box-shadow: var(--shadow);
    }
    .nav.open .nav__links a { padding: 1rem .25rem; border-bottom: 1px solid var(--border); text-transform: none; font-size: 1.1rem; }
    .nav.open .nav__links a::after { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(195,169,122,.22), transparent 60%),
        linear-gradient(180deg, var(--bg-cream), #fff 70%);
}
.hero__grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
    /* tylko pionowy padding — boczny zostaje z .wrap (inaczej treść hero przykleja się do krawędzi na mobile) */
    padding-block: clamp(3rem, 7vw, 6rem);
}
.hero__title { margin-bottom: 1.2rem; }
.hero__title span { color: var(--gold-dark); }
.hero__sub { font-size: 1.22rem; max-width: 36ch; margin-bottom: 2rem; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.6rem; color: var(--ink-muted); }
.hero__trust span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .95rem; }
.hero__trust svg { width: 1.3rem; height: 1.3rem; color: var(--gold); }
.hero__media { position: relative; }
.hero__media .ring {
    aspect-ratio: 1; border-radius: 50%;
    background: linear-gradient(150deg, var(--gold-soft), var(--gold));
    position: relative; box-shadow: var(--shadow-lg);
    display: grid; place-items: center; overflow: hidden;
}
.hero__media .ring img { width: 78%; opacity: .96; filter: drop-shadow(0 8px 24px rgba(0,0,0,.15)); }
.hero__badge {
    position: absolute; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: center;
}
.hero__badge svg { width: 2rem; height: 2rem; color: var(--gold); flex-shrink: 0; }
.hero__badge b { color: var(--ink); font-family:'Roboto Condensed',sans-serif; font-size: 1.05rem; }
.hero__badge small { color: var(--ink-muted); display: block; }
.hero__badge--1 { bottom: 8%; left: -4%; }
.hero__badge--2 { top: 8%; right: -2%; }

@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__media { max-width: 360px; margin: 0 auto; }
    .hero__badge--1 { left: 0; }
}

/* =========================================================
   Karty usług / specjalności
   ========================================================= */
.cols { display: grid; gap: 1.5rem; }
.cols--3 { grid-template-columns: repeat(3, 1fr); }
.cols--4 { grid-template-columns: repeat(4, 1fr); }
.cols--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .cols--3, .cols--4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .cols--2, .cols--3, .cols--4 { grid-template-columns: 1fr; } }

.svc-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.8rem 1.6rem; transition: all .28s var(--ease); height: 100%;
    display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.svc-card__icon {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: var(--gold-tint); color: var(--gold-dark); margin-bottom: 1.1rem;
}
.svc-card__icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.svc-card p { font-size: .96rem; margin: 0 0 1.1rem; color: var(--ink-soft); flex-grow: 1; }
.svc-card .more {
    font-family:'Roboto Condensed',sans-serif; font-weight: 600; letter-spacing: .4px;
    display: inline-flex; align-items: center; gap: .4rem;
}
.svc-card .more svg { width: 1rem; height: 1rem; transition: transform .2s var(--ease); }
.svc-card .more:hover svg { transform: translateX(4px); }

/* ---- Bloki "feature" / why us ---- */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature__ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color:#fff; display:grid; place-items:center; }
.feature__ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.feature p { font-size: .98rem; margin: 0; }

/* ---- Split (about) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; height: auto; display: block; }
.split__media.logo-frame {
    background: var(--bg-warm); border-radius: var(--radius-lg); padding: clamp(2rem,5vw,4rem);
    display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stat b { font-family:'Roboto Condensed',sans-serif; font-size: 2.2rem; color: var(--gold-dark); display:block; line-height:1; }
.stat span { font-size: .9rem; color: var(--ink-muted); }

/* ---- Team teaser ---- */
.team-card { border-radius: var(--radius); overflow: hidden; background: var(--bg-cream); box-shadow: var(--shadow-sm); transition: all .28s var(--ease); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-card .ph { aspect-ratio: 3/4; background-size: cover; background-position: top center; }
.team-card .body { padding: 1.1rem 1.2rem 1.4rem; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.team-card p { font-size: .9rem; color: var(--gold-dark); margin: 0; font-weight: 500; }

/* ---- CTA band ---- */
.cta-band {
    background: linear-gradient(120deg, var(--gold-dark), var(--gold));
    color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4rem);
    text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 50ch; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.cta-band .btn--light { box-shadow: var(--shadow); }

/* =========================================================
   Kontakt
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ic { flex-shrink:0; width: 48px; height:48px; border-radius: 12px; background: var(--gold-tint); color: var(--gold-dark); display:grid; place-items:center; }
.info-list .ic svg { width: 24px; height:24px; }
.info-list b { color: var(--ink); font-family:'Roboto Condensed',sans-serif; display:block; font-size: 1.05rem; }
.form { background:#fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display:block; font-family:'Roboto Condensed',sans-serif; font-weight:600; color: var(--ink); margin-bottom:.4rem; }
.field input, .field textarea {
    width: 100%; font: inherit; padding: .85rem 1rem; border: 1.5px solid var(--border);
    border-radius: 10px; background: var(--bg-cream); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--ring); outline: none; background:#fff; }
.field textarea { min-height: 130px; resize: vertical; }
.req { color: var(--danger); }
.map-frame { border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-sm); border:1px solid var(--border); margin-top: 2.5rem; }
.map-frame iframe { width:100%; height: 340px; border:0; display:block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: #c9c4bb; padding: clamp(3rem,6vw,4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.1fr 1.3fr 1.5fr; gap: 2.5rem; }
@media (max-width: 1080px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; } } @media (max-width: 560px){ .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 { color:#fff; text-transform: uppercase; letter-spacing: 1.5px; font-size: 1rem; margin-bottom: 1.1rem; }
.site-footer img.flogo { height: 108px; width: auto; display: block; margin: 0 0 1rem 0; filter: brightness(0) invert(1); opacity:.92; }
.site-footer a { color: #c9c4bb; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { list-style:none; padding:0; margin:0; columns: 2; column-gap: 1.5rem; }
.footer-links li { margin-bottom: .55rem; font-size: .92rem; break-inside: avoid; }
.footer-contact { list-style:none; padding:0; margin:0; display:grid; gap:.8rem; font-size:.95rem; }
.footer-contact li { display:flex; gap:.6rem; align-items:flex-start; }
.footer-contact svg { width:1.1rem; height:1.1rem; color: var(--gold-soft); flex-shrink:0; margin-top:.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display:flex; justify-content: space-between; flex-wrap: wrap; gap:.5rem; font-size:.85rem; color:#8d877c; }

/* ---- Page header (subheader) ---- */
.page-hero {
    background:
        radial-gradient(900px 400px at 85% -20%, rgba(195,169,122,.2), transparent 60%),
        var(--bg-cream);
    padding: clamp(3rem,6vw,5rem) 0 clamp(2.5rem,5vw,3.5rem); text-align:center;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: .6rem; }
.page-hero p { max-width: 60ch; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }
.breadcrumbs { font-size:.85rem; color: var(--ink-muted); margin-bottom: 1rem; text-transform: uppercase; letter-spacing:1px; }
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--gold-dark); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity:1; transform:none; transition:none; }
    .btn:hover, .svc-card:hover, .team-card:hover { transform:none; }
}

/* ---- Hero: zdjęcia zespołu zamiast powielonego logo ---- */
.hero__photo-main {
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center top;
    box-shadow: var(--shadow-lg);
}
.hero__photo-sub {
    position: absolute;
    bottom: -26px;
    left: -26px;
    width: 44%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center top;
    border: 6px solid #fff;
    box-shadow: var(--shadow);
}
@media (max-width: 880px) {
    .hero__photo-sub { left: 0; bottom: -20px; }
}

/* ---- Rozbudowana stopka ---- */
.footer-social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #c9c4bb; transition: all .25s var(--ease); }
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-hours { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .92rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed rgba(255,255,255,.1); padding-bottom: .35rem; }
.footer-hours li span:last-child { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.footer-legal { font-size: .85rem; color: #8d877c; margin-top: 1.2rem; line-height: 1.7; }
.footer-docs li a, .footer-services li a { display: inline-flex; align-items: flex-start; gap: .5rem; }
.footer-services { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .9rem; }
.footer-services li a { line-height: 1.4; }

/* ---- Kontakt: godziny / dane / social ---- */
.hours-card { margin-top: 2rem; background: var(--bg-cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.hours-card h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.hours-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--border); font-size: .98rem; }
.hours-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours-list li span:last-child { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-list .hours-weekend span:last-child { font-weight: 500; color: var(--ink-muted); font-style: italic; }
.contact-legal { margin-top: 1.4rem; font-size: .9rem; color: var(--ink-muted); line-height: 1.7; }
.contact-social { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.contact-social a { font-family: 'Roboto Condensed', sans-serif; font-weight: 600; font-size: .92rem; padding: .5rem 1.1rem; border: 1.5px solid var(--gold-soft); border-radius: 999px; color: var(--gold-dark); transition: all .25s var(--ease); }
.contact-social a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---- Widgety Kliniki.pl w stopce ---- */
.footer-kliniki { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.footer-kliniki .kliniki_pl_widget { color: var(--gold-soft); font-size: .9rem; }

/* ---- Karuzela zespołu (auto-przewijanie) ---- */
.team-marquee {
    overflow: hidden;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.team-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation-name: team-scroll;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.team-marquee:hover .team-track,
.team-marquee:focus-within .team-track { animation-play-state: paused; }
.team-marquee .team-card { width: 240px; flex-shrink: 0; }
@keyframes team-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .team-track { animation: none; }
    .team-marquee {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .team-marquee .team-card { scroll-snap-align: start; }
}

/* ---- Sekcja misji: zdjęcie założycielek ---- */
.mission-photo {
    margin: 0;
    position: relative;
    height: clamp(380px, 48vw, 560px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.mission-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.mission-photo figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(53,53,53,.82));
    color: #fff; font-family: 'Roboto Condensed', sans-serif; font-weight: 600;
    letter-spacing: .6px; padding: 2.2rem 1.2rem 1rem; text-align: center; font-size: 1.05rem;
}
.mission-values { margin-top: 2rem; }

/* ---- Strona pojedynczego lekarza ---- */
.doctor-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.doctor-photo { width: 100%; max-width: 360px; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin: 0 0 2rem; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doctor-bio { color: var(--ink-soft); }
.doctor-aside { position: sticky; top: calc(var(--header-h) + 1rem); }
.doctor-booking-card { background: var(--bg-cream); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.doctor-aside__title { font-size: 1.4rem; margin-bottom: 1.1rem; text-align: center; }
@media (max-width: 880px) {
  .doctor-layout { grid-template-columns: 1fr; }
  .doctor-aside { position: static; margin-top: 1rem; }
  .doctor-photo { margin-left: auto; margin-right: auto; }
}

/* ---- Strona usługi: listy "Dla kogo / Zakres" ---- */
.svc-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
.svc-list li { position: relative; padding-left: 1.6rem; font-size: .98rem; color: var(--ink-soft); }
.svc-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---- Karta specjalisty z CTA "Umów się" (strona usługi) ---- */
.team-card__link { display: block; color: inherit; text-decoration: none; }
.team-card__link .body { padding-bottom: .7rem; }
.team-card__cta { padding: 0 1.2rem 1.3rem; }
/* przewijanie do widgetu rezerwacji z offsetem na sticky header */
.doctor-booking-card { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---- Widget rezerwacji na profilu lekarza: stała, większa wysokość ---- */
.doctor-booking-card .modal-iframe-container { padding-top: 0; height: 660px; }
@media (max-width: 880px) {
  .doctor-booking-card .modal-iframe-container { height: 620px; }
}

/* ---- Wyróżnione kafle (Punkt pobrań / Badanie słuchu) ---- */
.highlight-card { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--bg-cream); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: clamp(1.4rem,3vw,1.9rem); transition: all .28s var(--ease); }
.highlight-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-left-color: var(--gold-dark); }
.highlight-card__ic { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-dark); display: grid; place-items: center; }
.highlight-card__ic svg { width: 30px; height: 30px; }
.highlight-card h3 { margin-bottom: .4rem; font-size: 1.25rem; }
.highlight-card p { font-size: .97rem; margin: 0 0 1.1rem; color: var(--ink-soft); }

/* ---- Wyrównanie przycisków w wyróżnionych kaflach ---- */
.highlight-card { align-items: stretch; }
.highlight-card__ic { align-self: flex-start; }
.highlight-card > div { display: flex; flex-direction: column; flex: 1; }
.highlight-card > div .btn { margin-top: auto; align-self: flex-start; }

/* ---- Hero: slideshow z przenikaniem ---- */
.hero__slideshow { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-warm); }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center top; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
/* plakietki na krawędziach, by nie zasłaniały kadru */
.hero__badge--2 { top: 7%; right: -22px; }
.hero__badge--1 { bottom: 9%; left: -22px; }
@media (max-width: 880px) {
  .hero__badge--1 { left: 0; bottom: 6%; }
  .hero__badge--2 { right: 0; top: 5%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
}

/* ---- Wyrównanie przycisków "Umów się" w kartach specjalistów (strona usługi) ---- */
.team-card { display: flex; flex-direction: column; }
.team-card__cta { margin-top: auto; }

/* ============ Cennik (nowy) ============ */
.price-toolbar { max-width: 820px; margin: 0 auto 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.price-info { margin: 0; color: var(--ink-muted); font-size: .95rem; flex: 1; min-width: 220px; }
.price-list { max-width: 820px; margin: 0 auto; display: grid; gap: 1rem; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease); }
.price-card[open] { box-shadow: var(--shadow-sm); }
.price-card > summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.price-card > summary::-webkit-details-marker { display: none; }
.price-card > summary:hover .price-card__name { color: var(--gold-dark); }
.price-card__name { font-family: 'Roboto Condensed', sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--ink); transition: color .2s var(--ease); }
.price-card__sched { display: block; margin-top: .25rem; font-size: .82rem; color: var(--ink-muted); }
.price-card__chev { flex-shrink: 0; color: var(--gold); transition: transform .3s var(--ease); }
.price-card__chev svg { width: 22px; height: 22px; display: block; }
.price-card[open] .price-card__chev { transform: rotate(180deg); }
.price-card__body { padding: 0 1.4rem 1.4rem; }
.price-cat { font-family: 'Roboto Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .82rem; color: var(--gold-dark); margin: 1rem 0 .4rem; padding-bottom: .4rem; border-bottom: 2px solid var(--gold-soft); }
.price-item { display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.price-item__name { flex: 1; color: var(--ink-soft); }
.price-item__price { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-item__dur { color: var(--ink-muted); font-size: .88rem; min-width: 64px; text-align: right; white-space: nowrap; }
.price-note { font-size: .9rem; color: var(--ink-soft); font-style: italic; background: var(--bg-warm); padding: .8rem 1rem; border-radius: 10px; margin: .9rem 0; }
.price-cta { margin-top: 1.3rem; }
@media (max-width: 560px) {
  .price-item { flex-wrap: wrap; gap: .2rem 1rem; }
  .price-item__name { flex-basis: 100%; }
}

/* ---- Cennik: dziedzina widoczna w nagłówku karty ---- */
.price-card__title { display: block; }
.price-card__cat-label { display: block; font-family: 'Roboto Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; font-size: .8rem; color: var(--gold-dark); margin-bottom: .25rem; }

/* ============ Poprawki UX/UI (pakiet 1–4) ============ */

/* 1. Kontrast: primary i pasma CTA do WCAG AA */
:root { --gold-darker: #5f4c30; }
.btn--primary { background: var(--gold-dark); }
.btn--primary:hover { background: var(--gold-darker); color: #fff; }
.cta-band { background: linear-gradient(125deg, #6b5535, var(--gold-dark)); }
.cta-band p { color: #fff; }

/* 3. Skeleton (shimmer) pod widgety, zanim się załadują */
@keyframes sk-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.reviews-widget, .instagram-feed, .modal-iframe-container {
  background-image: linear-gradient(100deg, var(--bg-warm) 30%, #f6f1e8 50%, var(--bg-warm) 70%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.6s ease-in-out infinite;
}
.reviews-widget { min-height: 300px; border-radius: var(--radius); }
.instagram-feed { min-height: 340px; border-radius: var(--radius); }

/* Sekcja opinii/social bez zewnętrznego widgetu (link do Google/Instagram) */
.reviews-cta { text-align: center; max-width: 640px; margin: 0 auto; }
.reviews-cta__stars { color: var(--gold); font-size: 1.8rem; letter-spacing: .25rem; line-height: 1; }
.reviews-cta p { margin: .8rem 0 1.4rem; color: var(--ink-soft); }

/* ====== Widget opinii Google (Places API, statycznie) — karuzela ====== */
/* Gwiazdki SVG */
.rv-stars { display: inline-flex; gap: 2px; line-height: 0; }
.rv-stars span { display: inline-flex; }
.rv-stars svg { width: 16px; height: 16px; }
.rv-stars .is-on { color: #f5a623; }
.rv-stars .is-off { color: #e2dccf; }
.rv-stars--lg svg { width: 22px; height: 22px; }

/* Nagłówek z oceną ogólną */
.rv-summary { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 2.2rem; }
.rv-summary__score { font-family: 'Roboto Condensed', sans-serif; font-size: 3rem; font-weight: 700; color: var(--ink); line-height: 1; }
.rv-summary__meta { display: flex; align-items: center; gap: .45rem; color: var(--ink-soft); font-size: .95rem; margin-top: .35rem; }
.rv-summary__g { display: inline-flex; width: 18px; height: 18px; }

/* Karuzela kart */
.rv-track { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: .4rem .2rem 1.4rem; scrollbar-width: thin; scrollbar-color: var(--gold-soft) transparent; }
.rv-track::-webkit-scrollbar { height: 8px; }
.rv-track::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 99px; }
.rv-track::-webkit-scrollbar-track { background: transparent; }
.rv-card { scroll-snap-align: start; flex: 0 0 clamp(280px, 31%, 360px); background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.rv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rv-card__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.rv-card__id { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.rv-avatar { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.rv-avatar--initial { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; }
.rv-card__who { min-width: 0; }
.rv-card__name { font-family: 'Roboto Condensed', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card__date { font-size: .8rem; color: var(--ink-muted); }
.rv-card__g { display: inline-flex; width: 22px; height: 22px; flex: 0 0 auto; }
.rv-card__text { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 6; line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-foot { text-align: center; margin-top: 1rem; }
/* Kropki nawigacyjne karuzeli */
.rv-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .2rem; }
.rv-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--gold-soft); opacity: .45; cursor: pointer; transition: opacity .2s, transform .2s; }
.rv-dot:hover { opacity: .8; }
.rv-dot.is-active { opacity: 1; transform: scale(1.35); background: var(--gold-dark); }
@media (prefers-reduced-motion: reduce) { .rv-card { transition: none; } .rv-card:hover { transform: none; } }
/* Mobile: jedna karta z wyraźnym podglądem następnej (sygnał, że można przewijać) */
@media (max-width: 640px) { .rv-card { flex-basis: 82%; } }
/* Na większych ekranach kropki mniej potrzebne (widać kilka kart) — ale zostają jako wskaźnik */
@media (min-width: 1000px) { .rv-dots { display: none; } }

/* 4. Hero: jednolity, delikatny overlay scalający różne tła zdjęć + lepsza czytelność plakietek */
.hero__slideshow::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 55%, rgba(95,76,48,.10) 100%),
    linear-gradient(180deg, transparent 60%, rgba(53,53,53,.12) 100%);
}

/* 2. Sticky CTA na mobile (telefon + umów wizytę) */
.mobile-cta { display: none; }
@media (max-width: 1000px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(10px);
    border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgba(53,53,53,.1);
  }
  .mobile-cta__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: 'Roboto Condensed', sans-serif; font-weight: 600; font-size: 1rem;
    min-height: 50px; border-radius: 12px; text-decoration: none; transition: background .2s var(--ease);
  }
  .mobile-cta__btn svg { width: 1.2em; height: 1.2em; }
  .mobile-cta__call { background: var(--bg-warm); color: var(--gold-dark); border: 1.5px solid var(--gold-soft); }
  .mobile-cta__call:hover { background: var(--gold-tint); }
  .mobile-cta__book { background: var(--gold-dark); color: #fff; }
  .mobile-cta__book:hover { background: var(--gold-darker); color: #fff; }
  body { padding-bottom: 76px; } /* miejsce na pasek, by nie zasłaniał stopki */
}
@media (prefers-reduced-motion: reduce) {
  .reviews-widget, .instagram-feed, .modal-iframe-container { animation: none; }
}

/* ---- Strona "Umów wizytę": osadzony widget rezerwacji ---- */
.booking-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-image: linear-gradient(100deg, var(--bg-warm) 30%, #f6f1e8 50%, var(--bg-warm) 70%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.6s ease-in-out infinite;
  min-height: 760px;
}
.booking-embed iframe { width: 100%; max-width: 1920px; min-height: 760px; border: 0; display: block; }
.booking-alt { text-align: center; margin-top: 1.5rem; color: var(--ink-muted); }
.booking-phone { margin-top: 1.4rem; font-size: 1.05rem; }
.booking-phone a { display: inline-block; margin-top: .35rem; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--gold-dark); text-decoration: none; letter-spacing: .01em; }
.booking-phone a:hover { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .booking-embed { animation: none; } }

/* ---- Mobile: ukryj górny przycisk CTA + pływające widgety zewnętrzne ---- */
@media (max-width: 1000px) {
  .nav__cta .btn--primary { display: none; }
  /* pływający tab Proassist "REJESTRACJA" po lewej */
  .proassist-custom-tab, .proassist-injection-wrapper { display: none !important; }
}

/* ---- FAQ na stronach usług ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease); }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item > summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: 'Roboto Condensed', sans-serif; font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--gold-dark); }
.faq-item__chev { width: 11px; height: 11px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .3s var(--ease); flex-shrink: 0; margin-top: -4px; }
.faq-item[open] .faq-item__chev { transform: rotate(-135deg); margin-top: 4px; }
.faq-item__a { padding: 0 1.3rem 1.2rem; }
.faq-item__a p { margin: 0; color: var(--ink-soft); }

/* ============ Dedykowany header mobilny ============ */
@media (max-width: 1000px) {
  :root { --header-h: 84px; }            /* wyższy pasek pod większe logo */
  .nav { justify-content: space-between; } /* logo do lewej, hamburger do prawej */
  .nav__brand img { height: 64px; }        /* większe logo na mobile */
  .nav.open .nav__links { padding-top: 1rem; }
}

/* Hero: na mobile chowamy pływające plakietki (zasłaniały treść) */
@media (max-width: 880px) {
  .hero__badge { display: none; }
}

/* ---- Marki aparatów słuchowych (strona badania słuchu) ---- */
.brand-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.6rem; text-align: center; transition: all .28s var(--ease); height: 100%; }
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.brand-card h3 { font-size: 1.5rem; letter-spacing: 1px; color: var(--gold-dark); margin-bottom: .6rem; }
.brand-card p { margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* ---- Przełącznik języka ---- */
.lang-switch { display: inline-flex; align-items: center; gap: .15rem; }
.lang-switch a { font-family: 'Roboto Condensed', sans-serif; font-weight: 600; font-size: .85rem; letter-spacing: .5px; color: var(--ink-muted); padding: .3rem .45rem; border-radius: 6px; line-height: 1; }
.lang-switch a:hover { color: var(--gold-dark); }
.lang-switch a.is-active { color: var(--gold-dark); background: var(--gold-tint); }
@media (max-width: 1000px) {
  /* na mobile pokaż w nav__cta tylko przełącznik języka (telefon i przycisk ukryte) */
  .nav__cta { display: inline-flex; }
  .nav__cta .btn--primary { display: none; }
}

/* ====== Leczenie otyłości + certyfikat PTLO ====== */
.obesity__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.obesity__info h3 { margin: 1.8rem 0 .6rem; font-size: 1.2rem; color: var(--ink); }
.obesity__ptlo { display: flex; align-items: flex-start; gap: .6rem; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 10px; padding: .9rem 1.1rem; margin: 1.4rem 0; font-size: .95rem; }
.obesity__ptlo-ic { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold-dark); margin-top: 1px; }
.obesity__ptlo a { color: var(--gold-dark); font-weight: 600; text-decoration: underline; }
.obesity__labs { columns: 2; column-gap: 1.5rem; }
.obesity__note { font-size: .9rem; color: var(--ink-muted); margin-top: .8rem; }
.obesity__cert { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow-sm); }
.obesity__cert > a { display: block; }
.obesity__cert img { width: 100%; height: auto; border-radius: 8px; display: block; transition: transform .25s var(--ease); }
.obesity__cert > a:hover img { transform: scale(1.015); }
.obesity__cert figcaption { display: flex; flex-direction: column; gap: .25rem; padding: 1rem .4rem .3rem; }
.obesity__cert figcaption strong { font-family: 'Roboto Condensed', sans-serif; font-size: 1.05rem; color: var(--ink); }
.obesity__cert-cap { font-size: .9rem; color: var(--ink-soft); }
.obesity__sign { font-size: .85rem; color: var(--ink); margin-top: .4rem; font-style: italic; }
.obesity__meta { font-size: .8rem; color: var(--ink-muted); }
.obesity__cert-link { font-size: .9rem; font-weight: 600; color: var(--gold-dark); text-decoration: none; margin-top: .4rem; }
.obesity__cert-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .obesity__grid { grid-template-columns: 1fr; }
  .obesity__cert { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 480px) { .obesity__labs { columns: 1; } }

/* ====== Systemy wspomagające słyszenie (strona o słuchu) ====== */
.hs-intro { max-width: 820px; margin: 0 auto 2.5rem; }
.hs-intro p { color: var(--ink-soft); }
.hs-grid { align-items: start; }
.hs-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm); }
.hs-card h3 { margin: 0 0 1rem; color: var(--gold-dark); font-size: 1.2rem; }
.hs-numbered { margin: 0; padding-left: 1.3rem; display: grid; gap: .6rem; color: var(--ink); }
.hs-numbered li { padding-left: .2rem; }
.hs-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hs-checks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.hs-check { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold-dark); margin-top: 1px; }

/* ====== Dyplom/certyfikat w biogramie lekarza ====== */
.bio-cert { margin: 1.6rem 0 0; max-width: 340px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .8rem; box-shadow: var(--shadow-sm); }
.bio-cert a { display: block; }
.bio-cert img { width: 100%; height: auto; border-radius: 6px; transition: transform .25s var(--ease); }
.bio-cert a:hover img { transform: scale(1.015); }
.bio-cert figcaption { margin-top: .6rem; font-size: .8rem; color: var(--ink-muted); line-height: 1.4; }
