/* ===== styl wspólny dla całej witryny Bieszczadzka Przystań ===== */
        :root {
            /* Paleta inspirowana Bieszczadami: tafla jeziora, hale, szlak o zachodzie słońca */
            --primary: #1a5f7a;
            --primary-dark: #123f52;
            --secondary: #c7dca7;
            --accent: #f4b41a;
            --text: #24303a;
            --text-soft: #5a6a72;
            --bg: #fbfaf7;
            --surface: #ffffff;
            --muted: #eff5f1;
            --border: rgba(26, 95, 122, 0.16);
            --shadow: 0 10px 30px rgba(18, 63, 82, 0.08);
            --on-primary: #ffffff;
            --on-accent: #21160a;
            --on-secondary: #17331a;
            --warning: #c1440e;
            --on-warning: #ffffff;
            --success: #1e7e34;
            --on-success: #ffffff;
            --focus-ring: #f4b41a;
            --font-size: 18px;
            --radius-lg: 12px;
            --radius-md: 8px;
            --radius-sm: 6px;
            --radius-pill: 8px;
        }

        /* Tryb Wysokiego Kontrastu — wszystkie tła i teksty przechodzą przez te same
           zmienne, więc nic nie zostaje "zapomniane" jako twardo wpisany biały/czarny kolor */
        body.high-contrast {
            --primary: #ffff00;
            --primary-dark: #ffff00;
            --secondary: #ffff00;
            --accent: #ffff00;
            --text: #ffffff;
            --text-soft: #ffffff;
            --bg: #000000;
            --surface: #000000;
            --muted: #000000;
            --border: #ffff00;
            --shadow: none;
            --on-primary: #000000;
            --on-accent: #000000;
            --on-secondary: #000000;
            --warning: #ffff00;
            --on-warning: #000000;
            --success: #ffff00;
            --on-success: #000000;
            --focus-ring: #ffffff;
        }

        * { box-sizing: border-box; }

        html {
            /* Root, nie body — dzięki temu przyciski A+ / A- realnie skalują całą stronę (rem) */
            font-size: var(--font-size);
        }

        body {
            font-family: -apple-system, "Segoe UI", Arial, sans-serif;
            font-size: 1rem;
            line-height: 1.65;
            margin: 0;
            background-color: var(--bg);
            color: var(--text);
            transition: background-color 0.25s ease, color 0.25s ease;
        }

        h1, h2, h3, h4, .logo {
            font-family: "Poppins", -apple-system, "Segoe UI", Arial, sans-serif;
        }

        a { color: var(--primary); }

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

        /* Widoczny fokus klawiatury — kluczowe dla dostępności */
        a:focus-visible,
        button:focus-visible,
        select:focus-visible,
        summary:focus-visible {
            outline: 3px solid var(--focus-ring);
            outline-offset: 3px;
            border-radius: 4px;
        }

        .skip-link {
            position: absolute;
            left: -999px;
            top: 0;
            background: var(--primary);
            color: var(--on-primary);
            padding: 12px 20px;
            border-radius: 0 0 6px 0;
            z-index: 2000;
            font-weight: bold;
            text-decoration: none;
        }
        .skip-link:focus { left: 0; }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                transition-duration: 0.001ms !important;
            }
        }

        /* Pasek Partnerów — loga mają białe tło "wypalone" w plikach graficznych,
           więc ten pasek celowo zostaje jasny w obu trybach (inaczej loga by znikały) */
        .partner-bar-top {
            background-color: #ffffff;
            padding: 14px 5%;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 30px;
            flex-wrap: wrap;
            border-bottom: 1px solid #e6e6e6;
        }

        .partner-bar-top .logo-container.fundacja-batorego {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .partner-bar-top .fundacja-batorego .small-text-side {
            font-size: 0.6rem;
            text-align: right;
            width: 60px;
            line-height: 1.1;
            color: #555;
            margin-right: 5px;
        }
        .partner-bar-top .fundacja-batorego .main-logo {
            text-align: left;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .partner-bar-top .fundacja-batorego .main-logo img {
            max-height: 90px;
            width: auto;
            margin-bottom: 3px;
        }
        .partner-bar-top .fundacja-batorego .main-text {
            font-weight: bold;
            font-size: 1rem;
            color: #222;
            letter-spacing: -0.5px;
        }
        .partner-bar-top .logo-container.prownychprav img {
            max-height: 40px;
            width: auto;
        }

        /* Pasek dostępności */
        .accessibility-bar {
            background: #16232b;
            padding: 10px 5%;
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .acc-btn {
            padding: 8px 16px;
            cursor: pointer;
            border: 2px solid #ffffff;
            background: transparent;
            color: #ffffff;
            font-weight: 700;
            border-radius: var(--radius-pill);
            font-size: 0.95rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        .acc-btn:hover,
        .acc-btn[aria-pressed="true"] {
            background: #ffffff;
            color: #16232b;
        }
        body.high-contrast .acc-btn {
            border-color: #ffff00;
            color: #ffff00;
        }
        body.high-contrast .acc-btn:hover,
        body.high-contrast .acc-btn[aria-pressed="true"] {
            background: #ffff00;
            color: #000000;
        }

        /* Nawigacja */
        nav {
            background: var(--surface);
            padding: 16px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid var(--border);
        }

        .logo {
            font-weight: 800;
            font-size: 1.4rem;
            color: var(--primary);
            text-decoration: none;
            letter-spacing: -0.3px;
        }

        .nav-links { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
        .nav-links a {
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            padding: 10px 14px;
            border-radius: var(--radius-pill);
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        .nav-links a:hover { background: var(--muted); color: var(--primary); }

        .nav-toggle { display: none; }
        .nav-toggle summary {
            list-style: none;
            cursor: pointer;
            padding: 8px 12px;
            border: 2px solid var(--primary);
            border-radius: var(--radius-md);
            font-weight: 700;
            color: var(--primary);
        }
        .nav-toggle summary::-webkit-details-marker { display: none; }

        /* Sekcja Hero */
        .hero {
            position: relative;
            background: linear-gradient(rgba(18, 63, 82, 0.88), rgba(26, 95, 122, 0.75)), url('hero-bieszczady.jpg');
            background-size: cover;
            background-position: center;
            color: #ffffff;
            padding: 90px 6% 120px;
            text-align: center;
        }
        body.high-contrast .hero {
            background: #000000;
            border-bottom: 3px solid #ffff00;
        }

        .hero h1 { font-size: 2.6rem; margin: 0 auto 18px; line-height: 1.2; max-width: 900px; }
        .hero > p { font-size: 1.15rem; max-width: 760px; margin: 0 auto; opacity: 0.95; }

        /* Sygnaturalny element: sylwetka gór między hero a resztą strony */
        .mountain-divider {
            display: block;
            width: 100%;
            height: 60px;
            margin-top: -4px;
        }
        .mountain-divider path { fill: var(--bg); transition: fill 0.25s ease; }

        /* Kafelki */
        .paths {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            padding: 20px 6% 60px;
            max-width: 1280px;
            margin: 0 auto;
        }

        .card {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 32px 28px;
            border-radius: var(--radius-lg);
            text-align: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
            cursor: pointer;
            text-decoration: none;
            color: var(--text);
            box-shadow: var(--shadow);
        }

        .card-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.7rem;
            background: var(--muted);
            border-radius: var(--radius-md);
            margin: 0 auto 16px;
        }
        body.high-contrast .card-icon { border: 2px solid #ffff00; }

        .card:hover, .card:focus-visible {
            transform: translateY(-4px);
            background: var(--secondary);
            color: var(--on-secondary);
            box-shadow: 0 16px 34px rgba(18, 63, 82, 0.15);
        }
        .card:hover h3, .card:focus-visible h3 { color: var(--on-secondary); }
        .card h3 { color: var(--primary); font-size: 1.3rem; margin: 0 0 10px; }
        .card .soon { font-size: 0.8rem; color: var(--text-soft); }
        .card:hover .soon, .card:focus-visible .soon { color: var(--on-secondary); opacity: 0.75; }

        /* Wyszukiwarka */
        .search-section {
            background: var(--muted);
            padding: 60px 6%;
            text-align: center;
        }
        .search-section h2 { margin-top: 0; }

        .search-box {
            background: var(--surface);
            border: 1px solid var(--border);
            padding: 28px;
            border-radius: var(--radius-lg);
            max-width: 960px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
            box-shadow: var(--shadow);
        }

        select, .search-box button {
            padding: 14px 18px;
            font-size: 1rem;
            border-radius: var(--radius-md);
            border: 2px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-family: inherit;
        }
        select:hover, select:focus-visible { border-color: var(--primary); }

        .search-box button {
            background: var(--accent);
            color: var(--on-accent);
            border-color: var(--accent);
            font-weight: 700;
            cursor: pointer;
            letter-spacing: 0.02em;
            transition: filter 0.15s ease;
        }
        .search-box button:hover { filter: brightness(0.95); }

        /* Wyniki wyszukiwania specjalistów */
        .results-list {
            max-width: 960px;
            margin: 25px auto 0;
            display: flex;
            flex-direction: column;
            gap: 16px;
            text-align: left;
        }

        .result-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-left: 5px solid var(--primary);
            border-radius: var(--radius-md);
            padding: 24px 26px;
            box-shadow: var(--shadow);
        }

        .result-card h4 {
            margin: 0 0 4px;
            color: var(--primary);
            font-size: 1.2rem;
            font-family: "Poppins", sans-serif;
        }

        .result-card .zawod {
            margin: 0 0 14px;
            color: var(--text-soft);
            font-weight: 600;
        }

        .result-card .tag-row { margin-bottom: 16px; }
        .result-card .clinic-meta { margin-bottom: 4px; }
        .result-card .result-opis {
            margin: 16px 0 0;
            padding-top: 16px;
            border-top: 1px solid var(--border);
            line-height: 1.6;
        }
        .result-card a { color: var(--primary); font-weight: 700; }

        .results-empty {
            font-weight: 600;
            color: var(--text-soft);
        }

        .btn-call {
            background: #1e7e34;
            color: #ffffff;
            font-weight: 700;
            text-decoration: none;
            padding: 16px 28px;
            display: inline-block;
            border-radius: var(--radius-pill);
            margin-top: 20px;
            font-size: 1.2rem;
            box-shadow: 0 8px 20px rgba(30, 126, 52, 0.3);
            transition: filter 0.15s ease;
        }
        .btn-call:hover { filter: brightness(1.08); }
        body.high-contrast .btn-call {
            background: #ffff00;
            color: #000000;
            box-shadow: none;
            border: 2px solid #ffffff;
        }

        footer {
            background: var(--primary-dark);
            color: #ffffff;
            padding: 55px 10% 20px;
            margin-top: 0;
        }
        body.high-contrast footer {
            background: #000000;
            color: #ffff00;
            border-top: 3px solid #ffff00;
        }
        footer h2 { font-family: "Poppins", sans-serif; }
        footer hr {
            border: none;
            border-top: 1px solid rgba(255,255,255,0.25);
            margin: 24px 0;
        }
        body.high-contrast footer hr { border-top-color: #ffff00; }
        footer a:not(.btn-call) { color: #ffffff; text-decoration: underline; }

        @media (max-width: 900px) {
            .paths { grid-template-columns: 1fr; }
        }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            .nav-toggle { display: block; }
            .hero h1 { font-size: 1.8rem; }
            .hero { padding: 60px 8% 90px; }
        }

        /* Pasek Finansowania UE na dole — jasne tło jak w pasku partnerów, z tego samego powodu */
        .funding-bar-bottom {
            background-color: #ffffff;
            padding: 20px 5%;
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 15px;
            border-top: 1px solid #e6e6e6;
            flex-wrap: wrap;
        }

        .funding-bar-bottom .funding-text p {
            margin: 0;
            font-weight: 700;
            color: #24303a;
            font-size: 1rem;
            text-align: right;
        }

        .funding-bar-bottom .eu-flag-container img {
            max-height: 80px;
            width: auto;
        }

        /* ===== Baner "Poradnie" pod wyszukiwarką na stronie głównej ===== */
        .clinics-banner {
            padding: 0 6% 60px;
            max-width: 1280px;
            margin: 0 auto;
        }
        .clinics-banner-inner {
            background: linear-gradient(120deg, var(--primary), var(--primary-dark));
            color: #ffffff;
            border-radius: var(--radius-lg);
            padding: 38px 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            flex-wrap: wrap;
            box-shadow: var(--shadow);
        }
        .clinics-banner-text h2 { margin: 0 0 8px; font-size: 1.5rem; }
        .clinics-banner-text p { margin: 0; max-width: 520px; opacity: 0.92; }
        .clinics-banner-inner .btn-banner {
            background: var(--accent);
            color: var(--on-accent);
            font-weight: 700;
            text-decoration: none;
            padding: 14px 26px;
            border-radius: var(--radius-pill);
            white-space: nowrap;
            transition: filter 0.15s ease;
            flex-shrink: 0;
        }
        .clinics-banner-inner .btn-banner:hover { filter: brightness(0.95); }
        body.high-contrast .clinics-banner-inner {
            background: #000000;
            border: 2px solid #ffff00;
        }

        /* ===== Podstrona: Poradnie ===== */
        .page-header {
            background: var(--muted);
            padding: 50px 10% 40px;
            text-align: center;
            border-bottom: 1px solid var(--border);
        }
        .page-header h1 { margin: 0 0 12px; color: var(--primary); font-size: 2.1rem; }
        .page-header p { max-width: 640px; margin: 0 auto; color: var(--text-soft); font-size: 1.05rem; }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 700;
            margin-bottom: 18px;
        }
        .back-link:hover { text-decoration: underline; }

        .clinics-wrap {
            max-width: 1280px;
            margin: 0 auto;
            padding: 45px 6% 70px;
        }

        .clinic-group-header {
            display: flex;
            align-items: flex-start;
            gap: 18px;
            background: linear-gradient(120deg, var(--muted), var(--surface));
            border: 1px solid var(--border);
            border-left: 6px solid var(--primary);
            border-radius: var(--radius-lg);
            padding: 26px 30px;
            margin: 48px 0 24px;
            box-shadow: var(--shadow);
        }
        .clinics-wrap > .clinic-group-header:first-of-type { margin-top: 0; }

        .clinic-group-icon {
            width: 54px;
            height: 54px;
            border-radius: var(--radius-md);
            background: var(--surface);
            border: 2px solid var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            flex-shrink: 0;
        }

        .clinic-group-header h2 {
            margin: 0 0 6px;
            font-size: 1.5rem;
            color: var(--primary);
            font-family: "Poppins", sans-serif;
        }
        .clinic-group-header p { margin: 0; color: var(--text-soft); font-size: 0.98rem; }

        .clinic {
            background: var(--surface);
            border: 1px solid var(--border);
            border-left: 5px solid var(--primary);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            margin-bottom: 18px;
            overflow: hidden;
        }

        .clinic > summary {
            cursor: pointer;
            list-style: none;
            padding: 22px 26px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        .clinic > summary::-webkit-details-marker { display: none; }
        .clinic > summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; border-radius: 4px; }
        .clinic > summary:hover .clinic-toggle-btn { background: var(--muted); }

        .clinic-summary-text h3 {
            margin: 0 0 4px;
            color: var(--primary);
            font-size: 1.2rem;
            font-family: "Poppins", sans-serif;
        }
        .clinic-summary-text p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

        .clinic-toggle-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
            width: fit-content;
            padding: 9px 18px;
            border: 2px solid var(--primary);
            border-radius: var(--radius-pill);
            color: var(--primary);
            font-weight: 700;
            font-size: 0.9rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        .clinic-toggle-btn .chevron {
            display: inline-block;
            transition: transform 0.2s ease;
            font-size: 0.85em;
            line-height: 1;
        }
        .clinic[open] .clinic-toggle-btn .chevron { transform: rotate(180deg); }
        .clinic[open] .clinic-toggle-btn .label-more { display: none; }
        .clinic:not([open]) .clinic-toggle-btn .label-less { display: none; }

        .clinic-body { padding: 0 26px 28px; border-top: 1px solid var(--border); }
        .clinic-body > * { margin-top: 20px; }

        .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
        .tag {
            display: inline-block;
            font-size: 0.8rem;
            font-weight: 700;
            padding: 5px 12px;
            border-radius: var(--radius-pill);
        }
        .tag-neutral { background: var(--secondary); color: var(--on-secondary); }
        .tag-warning { background: var(--warning); color: var(--on-warning); }
        .tag-success { background: var(--success); color: var(--on-success); }

        .clinic-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 18px 36px;
            padding: 18px 20px;
            background: var(--muted);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
        }

        .meta-col {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 14px;
            flex: 1 1 260px;
            min-width: 240px;
        }

        .meta-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .meta-icon {
            width: 30px;
            height: 30px;
            flex-shrink: 0;
            border-radius: var(--radius-sm);
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .meta-icon svg {
            width: 15px;
            height: 15px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        body.high-contrast .meta-icon { border-color: #ffff00; }

        .meta-text {
            font-size: 0.96rem;
            line-height: 1.55;
            padding-top: 5px;
            min-width: 0;
        }
        .meta-text a { color: var(--primary); font-weight: 700; }

        .meta-phones .meta-text a { white-space: nowrap; }

        .hours-grid {
            display: flex;
            flex-direction: column;
            gap: 6px;
            width: 100%;
        }
        .hours-line {
            display: flex;
            flex-wrap: nowrap;
            align-items: baseline;
            justify-content: space-between;
            gap: 14px;
            border-bottom: 1px dotted var(--border);
            padding-bottom: 4px;
        }
        .hours-line:last-child { border-bottom: none; padding-bottom: 0; }
        .hours-day { flex-shrink: 0; font-weight: 700; color: var(--text); white-space: nowrap; }
        .hours-time { flex-shrink: 0; color: var(--text-soft); white-space: nowrap; text-align: right; }

        @media (max-width: 500px) {
            .clinic-meta { flex-direction: column; }
            .meta-col { min-width: 0; }
        }

        .clinic-body h4 {
            margin: 0 0 8px;
            font-size: 1rem;
            color: var(--text);
            font-family: "Poppins", sans-serif;
        }
        .clinic-body p { margin: 0; line-height: 1.6; max-width: 760px; }
        .clinic-body ul.plain { margin: 0; padding-left: 20px; max-width: 760px; }
        .clinic-body ul.plain li { margin-bottom: 6px; }

        .clinic-note-warning {
            background: rgba(193, 68, 14, 0.08);
            border: 1px solid var(--warning);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            font-weight: 600;
            color: var(--text);
        }
        body.high-contrast .clinic-note-warning { background: #000000; }

        @media (max-width: 600px) {
            .clinic > summary { padding: 18px; }
            .clinic-body { padding: 0 18px 22px; }
            .clinic-group-header { padding: 20px; flex-direction: column; align-items: flex-start; }
        }

        /* ===== Przycisk CTA "Dołącz do nas" w nawigacji ===== */
        .nav-cta {
            background: var(--accent) !important;
            color: var(--on-accent) !important;
            font-weight: 700;
            padding: 10px 18px !important;
        }
        .nav-cta:hover { filter: brightness(0.95); background: var(--accent) !important; }
        body.high-contrast .nav-cta { border: 2px solid #ffffff; }

        /* ===== Osadzony formularz Google Forms "Dołącz do nas" ===== */
        .form-embed-wrap {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            padding: 8px;
            max-width: 820px;
            margin: 0 auto;
            overflow: hidden;
        }
        .form-embed-wrap iframe {
            width: 100%;
            height: 3000px;
            border: none;
            display: block;
            border-radius: var(--radius-md);
        }

        .form-note {
            font-size: 0.85rem;
            color: var(--text-soft);
            text-align: center;
            margin-top: 14px;
            max-width: 820px;
            margin-left: auto;
            margin-right: auto;
        }

        @media (max-width: 640px) {
            .form-embed-wrap iframe { height: 3600px; }
        }
